@claudiolabs/claudin 0.7.6 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (911) hide show
  1. package/README.md +15 -1
  2. package/bin/claudin.exe +12 -0
  3. package/cli-wrapper.cjs +132 -0
  4. package/dist/chunks/AgentTool-1.0.3-7mvf1vaw.mjs +1 -0
  5. package/dist/chunks/App-1.0.3-rd1a3qee.mjs +1 -0
  6. package/dist/chunks/ApproveApiKey-1.0.3-1kr4x8qz.mjs +1 -0
  7. package/dist/chunks/AssistantSessionChooser-1.0.3-6cmgq2a9.mjs +1 -0
  8. package/dist/chunks/AutoModeOptInDialog-1.0.3-jezz3mfx.mjs +1 -0
  9. package/dist/chunks/BypassPermissionsModeDialog-1.0.3-y7vw80jm.mjs +1 -0
  10. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.0.3-rs8yq1c5.mjs +1 -0
  11. package/dist/chunks/ConsoleOAuthFlow-1.0.3-55e4vff7.mjs +1 -0
  12. package/dist/chunks/DiffDialog-1.0.3-2b6eqw5g.mjs +7 -0
  13. package/dist/chunks/Doctor-1.0.3-6vjhs9b3.mjs +1 -0
  14. package/dist/chunks/ExplorerDialog-1.0.3-me5rpqw8.mjs +6 -0
  15. package/dist/chunks/Grove-1.0.3-axq3s1g5.mjs +1 -0
  16. package/dist/chunks/ITermBackend-1.0.3-6w5z9f9y.mjs +1 -0
  17. package/dist/chunks/InvalidConfigDialog-1.0.3-q3qy4tjv.mjs +1 -0
  18. package/dist/chunks/InvalidSettingsDialog-1.0.3-7bnq71sp.mjs +1 -0
  19. package/dist/chunks/MigrationDialog-1.0.3-xjk5h2s1.mjs +1 -0
  20. package/dist/chunks/Onboarding-1.0.3-93mejgdx.mjs +1 -0
  21. package/dist/chunks/ProviderManager-1.0.3-gstyvce6.mjs +1 -0
  22. package/dist/chunks/REPL-1.0.3-h7gm3vzm.mjs +1 -0
  23. package/dist/chunks/ResumeConversation-1.0.3-q1sb18zb.mjs +1 -0
  24. package/dist/chunks/SnapshotUpdateDialog-1.0.3-ng8qnwzb.mjs +1 -0
  25. package/dist/chunks/TeleportProgress-1.0.3-5p8450wg.mjs +1 -0
  26. package/dist/chunks/TeleportRepoMismatchDialog-1.0.3-emssa846.mjs +1 -0
  27. package/dist/chunks/TeleportResumeWrapper-1.0.3-pdnj8z74.mjs +1 -0
  28. package/dist/chunks/TmuxBackend-1.0.3-qw12jfae.mjs +9 -0
  29. package/dist/chunks/ToolSearchTool-1.0.3-p2fdhkr4.mjs +1 -0
  30. package/dist/chunks/TrustDialog-1.0.3-w1yd56gg.mjs +1 -0
  31. package/dist/chunks/activeProvider-1.0.3-hcr43mtn.mjs +1 -0
  32. package/dist/chunks/add-dir-1.0.3-cfd5fdz5.mjs +1 -0
  33. package/dist/chunks/agentTypes-1.0.3-rhr2n817.mjs +1 -0
  34. package/dist/chunks/agents-1.0.3-00vpd5nr.mjs +110 -0
  35. package/dist/chunks/agents-1.0.3-0qny02r7.mjs +3 -0
  36. package/dist/chunks/api-1.0.3-j9q39zt3.mjs +1 -0
  37. package/dist/chunks/asciicast-1.0.3-4rdpqkbh.mjs +1 -0
  38. package/dist/chunks/assistant-1.0.3-8swg0237.mjs +1 -0
  39. package/dist/chunks/auth-1.0.3-4d3vbcf3.mjs +1 -0
  40. package/dist/chunks/auth-1.0.3-se4vwfcj.mjs +1 -0
  41. package/dist/chunks/autoMode-1.0.3-32zd86wp.mjs +48 -0
  42. package/dist/chunks/autoUpdater-1.0.3-nda09wdz.mjs +1 -0
  43. package/dist/chunks/backgroundHousekeeping-1.0.3-rwrt9v08.mjs +1 -0
  44. package/dist/chunks/branch-1.0.3-tzbvkn13.mjs +4 -0
  45. package/dist/chunks/bridge-1.0.3-fsq0q4x5.mjs +2 -0
  46. package/dist/chunks/bridgeConfig-1.0.3-16bw4j5m.mjs +1 -0
  47. package/dist/chunks/bridgeEnabled-1.0.3-2md5ck83.mjs +1 -0
  48. package/dist/chunks/bridgeMain-1.0.3-betf2hdx.mjs +88 -0
  49. package/dist/chunks/bridgePointer-1.0.3-mtfty38e.mjs +1 -0
  50. package/dist/chunks/btw-1.0.3-7vqng7en.mjs +1 -0
  51. package/dist/chunks/buddy-1.0.3-k48yw852.mjs +3 -0
  52. package/dist/chunks/cacache-1.0.3-y014wcx7.mjs +1 -0
  53. package/dist/chunks/cache-probe-1.0.3-vw577099.mjs +21 -0
  54. package/dist/chunks/cacheStats-1.0.3-2dj0n9cy.mjs +4 -0
  55. package/dist/chunks/caches-1.0.3-syrefgh1.mjs +1 -0
  56. package/dist/chunks/claudeDesktop-1.0.3-1k9dgm8c.mjs +1 -0
  57. package/dist/chunks/claudemd-1.0.3-902h9g16.mjs +1 -0
  58. package/dist/chunks/clear-1.0.3-yfnxvynd.mjs +1 -0
  59. package/dist/chunks/clearTerminal-1.0.3-kxq1nevx.mjs +1 -0
  60. package/dist/chunks/cli-1.0.3-02ax2rf7.mjs +2 -0
  61. package/dist/chunks/cli-1.0.3-087x46pf.mjs +2 -0
  62. package/dist/chunks/cli-1.0.3-0e99ksxk.mjs +2 -0
  63. package/dist/chunks/cli-1.0.3-0tgbymg8.mjs +2 -0
  64. package/dist/chunks/cli-1.0.3-0x26wvgj.mjs +1 -0
  65. package/dist/chunks/cli-1.0.3-0x2am4t7.mjs +2 -0
  66. package/dist/chunks/cli-1.0.3-10cqqc79.mjs +2 -0
  67. package/dist/chunks/cli-1.0.3-13m8868e.mjs +2 -0
  68. package/dist/chunks/cli-1.0.3-13wf4a0v.mjs +2 -0
  69. package/dist/chunks/cli-1.0.3-1462khnb.mjs +3 -0
  70. package/dist/chunks/cli-1.0.3-17cer107.mjs +2 -0
  71. package/dist/chunks/cli-1.0.3-19d1ckqm.mjs +4 -0
  72. package/dist/chunks/cli-1.0.3-1f00zm8y.mjs +2 -0
  73. package/dist/chunks/cli-1.0.3-1grrrgvh.mjs +4 -0
  74. package/dist/chunks/cli-1.0.3-1h08z2rm.mjs +2 -0
  75. package/dist/chunks/cli-1.0.3-1m413b59.mjs +2 -0
  76. package/dist/chunks/cli-1.0.3-1psnx21q.mjs +2 -0
  77. package/dist/chunks/cli-1.0.3-1v65dc93.mjs +2 -0
  78. package/dist/chunks/cli-1.0.3-1w2x2m43.mjs +2 -0
  79. package/dist/chunks/cli-1.0.3-24y7s5hp.mjs +2 -0
  80. package/dist/chunks/cli-1.0.3-2aw6f2z9.mjs +2 -0
  81. package/dist/chunks/cli-1.0.3-2h7k9bdx.mjs +2 -0
  82. package/dist/chunks/cli-1.0.3-2wzvc8te.mjs +5471 -0
  83. package/dist/chunks/cli-1.0.3-2zpv5t2p.mjs +2 -0
  84. package/dist/chunks/cli-1.0.3-3gkwhy62.mjs +2 -0
  85. package/dist/chunks/cli-1.0.3-3gtteknj.mjs +2 -0
  86. package/dist/chunks/cli-1.0.3-3j050hfw.mjs +3 -0
  87. package/dist/chunks/cli-1.0.3-3qfh5ykd.mjs +2 -0
  88. package/dist/chunks/cli-1.0.3-3wcccg4j.mjs +2 -0
  89. package/dist/chunks/cli-1.0.3-3wpp9k2f.mjs +3 -0
  90. package/dist/chunks/cli-1.0.3-3y945bqk.mjs +2 -0
  91. package/dist/chunks/cli-1.0.3-4eym93f1.mjs +2 -0
  92. package/dist/chunks/cli-1.0.3-4m0kzrq4.mjs +199 -0
  93. package/dist/chunks/cli-1.0.3-4qaa3xp4.mjs +2 -0
  94. package/dist/chunks/cli-1.0.3-4s8hd1qa.mjs +12 -0
  95. package/dist/chunks/cli-1.0.3-4x2bjq7b.mjs +2 -0
  96. package/dist/chunks/cli-1.0.3-5hpdm52h.mjs +4 -0
  97. package/dist/chunks/cli-1.0.3-5j5mv1qy.mjs +2 -0
  98. package/dist/chunks/cli-1.0.3-5kneybr4.mjs +2 -0
  99. package/dist/chunks/cli-1.0.3-5psnr7wf.mjs +16 -0
  100. package/dist/chunks/cli-1.0.3-5rg4rmk2.mjs +6 -0
  101. package/dist/chunks/cli-1.0.3-5w74xeth.mjs +3 -0
  102. package/dist/chunks/cli-1.0.3-607t5t97.mjs +2 -0
  103. package/dist/chunks/cli-1.0.3-627y4tma.mjs +2 -0
  104. package/dist/chunks/cli-1.0.3-63tn3q21.mjs +2 -0
  105. package/dist/chunks/cli-1.0.3-63xjee3t.mjs +3 -0
  106. package/dist/chunks/cli-1.0.3-6sgbgf1x.mjs +4 -0
  107. package/dist/chunks/cli-1.0.3-6x84yw4b.mjs +21 -0
  108. package/dist/chunks/cli-1.0.3-7ecz7qjw.mjs +2 -0
  109. package/dist/chunks/cli-1.0.3-7m0nfffq.mjs +2 -0
  110. package/dist/chunks/cli-1.0.3-7m2f8bwk.mjs +2 -0
  111. package/dist/chunks/cli-1.0.3-7p7gfek3.mjs +3 -0
  112. package/dist/chunks/cli-1.0.3-82ky54w7.mjs +15 -0
  113. package/dist/chunks/cli-1.0.3-87me6r9c.mjs +2 -0
  114. package/dist/chunks/cli-1.0.3-8a694ts0.mjs +6 -0
  115. package/dist/chunks/cli-1.0.3-8bz64j3f.mjs +2 -0
  116. package/dist/chunks/cli-1.0.3-8hw15ers.mjs +2 -0
  117. package/dist/chunks/cli-1.0.3-8rjp7dng.mjs +2 -0
  118. package/dist/chunks/cli-1.0.3-960aw98y.mjs +2 -0
  119. package/dist/chunks/cli-1.0.3-9xcgbd0g.mjs +2 -0
  120. package/dist/chunks/cli-1.0.3-9z1asbvz.mjs +3 -0
  121. package/dist/chunks/cli-1.0.3-a3rf1bbw.mjs +2 -0
  122. package/dist/chunks/cli-1.0.3-a630qcdb.mjs +2 -0
  123. package/dist/chunks/cli-1.0.3-ancybhm3.mjs +2 -0
  124. package/dist/chunks/cli-1.0.3-apbdyngz.mjs +2 -0
  125. package/dist/chunks/cli-1.0.3-ar488ss1.mjs +2 -0
  126. package/dist/chunks/cli-1.0.3-ar8bq7h9.mjs +4 -0
  127. package/dist/chunks/cli-1.0.3-ax2geagm.mjs +18 -0
  128. package/dist/chunks/cli-1.0.3-axzmfbvp.mjs +2 -0
  129. package/dist/chunks/cli-1.0.3-ay89chqh.mjs +2 -0
  130. package/dist/chunks/cli-1.0.3-b14b158b.mjs +2 -0
  131. package/dist/chunks/cli-1.0.3-b6f61s9v.mjs +2 -0
  132. package/dist/chunks/cli-1.0.3-b72086ew.mjs +2 -0
  133. package/dist/chunks/cli-1.0.3-b7n67qhm.mjs +24 -0
  134. package/dist/chunks/cli-1.0.3-bct9r8s9.mjs +25 -0
  135. package/dist/chunks/cli-1.0.3-bg3frggm.mjs +5 -0
  136. package/dist/chunks/cli-1.0.3-bkdmbm3w.mjs +2 -0
  137. package/dist/chunks/cli-1.0.3-bnd3wvym.mjs +2 -0
  138. package/dist/chunks/cli-1.0.3-bqdxh2fe.mjs +2 -0
  139. package/dist/chunks/cli-1.0.3-bte3v6bp.mjs +3 -0
  140. package/dist/chunks/cli-1.0.3-c38hr99q.mjs +2 -0
  141. package/dist/chunks/cli-1.0.3-c4trbm3y.mjs +2 -0
  142. package/dist/chunks/cli-1.0.3-c570dde7.mjs +24 -0
  143. package/dist/chunks/cli-1.0.3-ca8qx0d6.mjs +2 -0
  144. package/dist/chunks/cli-1.0.3-cnb1yved.mjs +2 -0
  145. package/dist/chunks/cli-1.0.3-cs5pqncv.mjs +2 -0
  146. package/dist/chunks/cli-1.0.3-cty1pfv3.mjs +2 -0
  147. package/dist/chunks/cli-1.0.3-d7597p9k.mjs +133 -0
  148. package/dist/chunks/cli-1.0.3-d8zhnzt9.mjs +2 -0
  149. package/dist/chunks/cli-1.0.3-djd4asp9.mjs +25 -0
  150. package/dist/chunks/cli-1.0.3-dyh4d1gw.mjs +2 -0
  151. package/dist/chunks/cli-1.0.3-e0s97hx3.mjs +20 -0
  152. package/dist/chunks/cli-1.0.3-e1qcabjm.mjs +2 -0
  153. package/dist/chunks/cli-1.0.3-e26nnnjx.mjs +2 -0
  154. package/dist/chunks/cli-1.0.3-e315jy0y.mjs +2 -0
  155. package/dist/chunks/cli-1.0.3-ejb4xe2y.mjs +2 -0
  156. package/dist/chunks/cli-1.0.3-em2a0n4h.mjs +2 -0
  157. package/dist/chunks/cli-1.0.3-emmwm5h6.mjs +2 -0
  158. package/dist/chunks/cli-1.0.3-epk9wqmc.mjs +2 -0
  159. package/dist/chunks/cli-1.0.3-eqxge5cb.mjs +45 -0
  160. package/dist/chunks/cli-1.0.3-eta6q17m.mjs +2 -0
  161. package/dist/chunks/cli-1.0.3-exj8yag8.mjs +2 -0
  162. package/dist/chunks/cli-1.0.3-f2qcezq1.mjs +2 -0
  163. package/dist/chunks/cli-1.0.3-f8ekk6mr.mjs +2 -0
  164. package/dist/chunks/cli-1.0.3-fdd1g4sk.mjs +2 -0
  165. package/dist/chunks/cli-1.0.3-fdye5tvt.mjs +2 -0
  166. package/dist/chunks/cli-1.0.3-g5w729g4.mjs +2 -0
  167. package/dist/chunks/cli-1.0.3-gbhfrtsf.mjs +2 -0
  168. package/dist/chunks/cli-1.0.3-gjvc6q8v.mjs +2 -0
  169. package/dist/chunks/cli-1.0.3-gpjv1akn.mjs +12 -0
  170. package/dist/chunks/cli-1.0.3-gthgjdv8.mjs +2 -0
  171. package/dist/chunks/cli-1.0.3-gwdntjh3.mjs +2 -0
  172. package/dist/chunks/cli-1.0.3-h2pjt4e4.mjs +4 -0
  173. package/dist/chunks/cli-1.0.3-hg04k516.mjs +3 -0
  174. package/dist/chunks/cli-1.0.3-hgghr2w8.mjs +2 -0
  175. package/dist/chunks/cli-1.0.3-htx4273d.mjs +39 -0
  176. package/dist/chunks/cli-1.0.3-hyc32vmv.mjs +2 -0
  177. package/dist/chunks/cli-1.0.3-hz5a6e6w.mjs +2 -0
  178. package/dist/chunks/cli-1.0.3-j62yk6x8.mjs +2 -0
  179. package/dist/chunks/cli-1.0.3-j72ztden.mjs +2 -0
  180. package/dist/chunks/cli-1.0.3-j99s8jgs.mjs +2 -0
  181. package/dist/chunks/cli-1.0.3-jmvq43wb.mjs +6 -0
  182. package/dist/chunks/cli-1.0.3-jr2ya39g.mjs +2 -0
  183. package/dist/chunks/cli-1.0.3-k99msp02.mjs +17 -0
  184. package/dist/chunks/cli-1.0.3-kesrsh8z.mjs +59 -0
  185. package/dist/chunks/cli-1.0.3-khw95075.mjs +2 -0
  186. package/dist/chunks/cli-1.0.3-km8m7h3t.mjs +2 -0
  187. package/dist/chunks/cli-1.0.3-kwe8av2x.mjs +2 -0
  188. package/dist/chunks/cli-1.0.3-m45p13pd.mjs +2 -0
  189. package/dist/chunks/cli-1.0.3-mkse8qp1.mjs +3 -0
  190. package/dist/chunks/cli-1.0.3-mv5a0w14.mjs +12 -0
  191. package/dist/chunks/cli-1.0.3-n0jxa1cv.mjs +4 -0
  192. package/dist/chunks/cli-1.0.3-n28tqrv0.mjs +2 -0
  193. package/dist/chunks/cli-1.0.3-n2h9jvgm.mjs +2 -0
  194. package/dist/chunks/cli-1.0.3-n99q1npz.mjs +2 -0
  195. package/dist/chunks/cli-1.0.3-n9tzv3mz.mjs +2 -0
  196. package/dist/chunks/cli-1.0.3-nama3pwj.mjs +7 -0
  197. package/dist/chunks/cli-1.0.3-nm63mrtv.mjs +2 -0
  198. package/dist/chunks/cli-1.0.3-nr5rgce9.mjs +2 -0
  199. package/dist/chunks/cli-1.0.3-ntywpqre.mjs +2 -0
  200. package/dist/chunks/cli-1.0.3-nw89kd8a.mjs +2 -0
  201. package/dist/chunks/cli-1.0.3-p7nbs20a.mjs +24 -0
  202. package/dist/chunks/cli-1.0.3-pc93arct.mjs +10 -0
  203. package/dist/chunks/cli-1.0.3-pf8dk52a.mjs +67 -0
  204. package/dist/chunks/cli-1.0.3-phh30dq0.mjs +4 -0
  205. package/dist/chunks/cli-1.0.3-pxw9n4f7.mjs +5 -0
  206. package/dist/chunks/cli-1.0.3-q4vc2dm9.mjs +3 -0
  207. package/dist/chunks/cli-1.0.3-q6m5azm3.mjs +2 -0
  208. package/dist/chunks/cli-1.0.3-q9hw6148.mjs +2 -0
  209. package/dist/chunks/cli-1.0.3-qd5c6ph5.mjs +34 -0
  210. package/dist/chunks/cli-1.0.3-qkkqjcsh.mjs +2 -0
  211. package/dist/chunks/cli-1.0.3-r274tqxg.mjs +2 -0
  212. package/dist/chunks/cli-1.0.3-r2amtv3x.mjs +3 -0
  213. package/dist/chunks/cli-1.0.3-ra9brq66.mjs +2 -0
  214. package/dist/chunks/cli-1.0.3-rapppvd0.mjs +2 -0
  215. package/dist/chunks/cli-1.0.3-rc9yjwv4.mjs +15 -0
  216. package/dist/chunks/cli-1.0.3-rfvvw9yn.mjs +58 -0
  217. package/dist/chunks/cli-1.0.3-rhaqdnqw.mjs +2 -0
  218. package/dist/chunks/cli-1.0.3-rpry44n3.mjs +2 -0
  219. package/dist/chunks/cli-1.0.3-rxtfhp4n.mjs +2 -0
  220. package/dist/chunks/cli-1.0.3-ryfy7hya.mjs +2 -0
  221. package/dist/chunks/cli-1.0.3-s6n9xdgm.mjs +5 -0
  222. package/dist/chunks/cli-1.0.3-sb9pchh2.mjs +6 -0
  223. package/dist/chunks/cli-1.0.3-sz2d376e.mjs +2 -0
  224. package/dist/chunks/cli-1.0.3-t52dqqw2.mjs +2 -0
  225. package/dist/chunks/cli-1.0.3-t7mfsbh1.mjs +133 -0
  226. package/dist/chunks/cli-1.0.3-t7p3714v.mjs +2 -0
  227. package/dist/chunks/cli-1.0.3-tjewxa84.mjs +2 -0
  228. package/dist/chunks/cli-1.0.3-v0jtfqtw.mjs +9 -0
  229. package/dist/chunks/cli-1.0.3-v658mswv.mjs +12 -0
  230. package/dist/chunks/cli-1.0.3-vnwqmpyv.mjs +2 -0
  231. package/dist/chunks/cli-1.0.3-vqm63ckk.mjs +2 -0
  232. package/dist/chunks/cli-1.0.3-vr8tazcf.mjs +2 -0
  233. package/dist/chunks/cli-1.0.3-vw5m6hn3.mjs +3 -0
  234. package/dist/chunks/cli-1.0.3-w3a4tnk3.mjs +2 -0
  235. package/dist/chunks/cli-1.0.3-w72bc0zg.mjs +2 -0
  236. package/dist/chunks/cli-1.0.3-w9dcn8sx.mjs +2 -0
  237. package/dist/chunks/cli-1.0.3-wf8jkyyp.mjs +15 -0
  238. package/dist/chunks/cli-1.0.3-wmtj5kj7.mjs +2 -0
  239. package/dist/chunks/cli-1.0.3-wpb05eg5.mjs +50 -0
  240. package/dist/chunks/cli-1.0.3-wv4vx65k.mjs +2 -0
  241. package/dist/chunks/cli-1.0.3-x1ngfkk5.mjs +42 -0
  242. package/dist/chunks/cli-1.0.3-xarnzm58.mjs +2 -0
  243. package/dist/chunks/cli-1.0.3-xf2r8496.mjs +2 -0
  244. package/dist/chunks/cli-1.0.3-xqmjjmss.mjs +4 -0
  245. package/dist/chunks/cli-1.0.3-xsmba4r1.mjs +17 -0
  246. package/dist/chunks/cli-1.0.3-xw1fyqpe.mjs +2 -0
  247. package/dist/chunks/cli-1.0.3-y0fz9qyb.mjs +4 -0
  248. package/dist/chunks/cli-1.0.3-yb5yjqa8.mjs +2 -0
  249. package/dist/chunks/cli-1.0.3-ycvmgeh4.mjs +2 -0
  250. package/dist/chunks/cli-1.0.3-ykkvdac6.mjs +2 -0
  251. package/dist/chunks/cli-1.0.3-ynf2sj5r.mjs +2 -0
  252. package/dist/chunks/cli-1.0.3-z3c0nwg5.mjs +2 -0
  253. package/dist/chunks/cli-1.0.3-z3f4pmp1.mjs +2 -0
  254. package/dist/chunks/cli-1.0.3-zan6y0m1.mjs +18 -0
  255. package/dist/chunks/cli-1.0.3-zfe21fjj.mjs +2 -0
  256. package/dist/chunks/cli-1.0.3-znxwm9ta.mjs +2 -0
  257. package/dist/chunks/cli-1.0.3-zqp5x3gh.mjs +18 -0
  258. package/dist/chunks/cli-1.0.3-ztgxqn0g.mjs +8 -0
  259. package/dist/chunks/cli-1.0.3-zzg0y9xx.mjs +2 -0
  260. package/dist/chunks/client-1.0.3-qkqk8q23.mjs +1 -0
  261. package/dist/chunks/color-1.0.3-x0qygswm.mjs +1 -0
  262. package/dist/chunks/compact-1.0.3-kyfmj07z.mjs +3 -0
  263. package/dist/chunks/config-1.0.3-0b1mgzs5.mjs +1 -0
  264. package/dist/chunks/config-1.0.3-nmpdbdfy.mjs +1 -0
  265. package/dist/chunks/constants-1.0.3-wk9v349h.mjs +1 -0
  266. package/dist/chunks/context-1.0.3-6sarjqp3.mjs +1 -0
  267. package/dist/chunks/context-noninteractive-1.0.3-vs9yx061.mjs +1 -0
  268. package/dist/chunks/conversation-1.0.3-v4s0g3dx.mjs +1 -0
  269. package/dist/chunks/copilotHeaders-1.0.3-5vdf973f.mjs +1 -0
  270. package/dist/chunks/copy-1.0.3-575pc6gc.mjs +9 -0
  271. package/dist/chunks/cost-1.0.3-gkgmq84a.mjs +1 -0
  272. package/dist/chunks/createSSHSession-1.0.3-bsdf1x69.mjs +1 -0
  273. package/dist/chunks/createSession-1.0.3-q2t2afxn.mjs +1 -0
  274. package/dist/chunks/debug-1.0.3-q3y4bbdd.mjs +1 -0
  275. package/dist/chunks/defaultActionDeps-1.0.3-kxgwjas7.mjs +1446 -0
  276. package/dist/chunks/desktop-1.0.3-v790cfzv.mjs +1 -0
  277. package/dist/chunks/detectRepository-1.0.3-t6x6ycq0.mjs +1 -0
  278. package/dist/chunks/detection-1.0.3-3r29qbs1.mjs +1 -0
  279. package/dist/chunks/diff-1.0.3-43a1txqm.mjs +1 -0
  280. package/dist/chunks/doctor-1.0.3-ywj8c1z9.mjs +1 -0
  281. package/dist/chunks/doctorDiagnostic-1.0.3-c3f3hz3m.mjs +1 -0
  282. package/dist/chunks/earlyInput-1.0.3-0qxwnkvm.mjs +1 -0
  283. package/dist/chunks/effort-1.0.3-28cxc122.mjs +10 -0
  284. package/dist/chunks/engine-1.0.3-y0pybv8z.mjs +1 -0
  285. package/dist/chunks/envLessBridgeConfig-1.0.3-gv54g11x.mjs +1 -0
  286. package/dist/chunks/envUtils-1.0.3-cjfgncek.mjs +1 -0
  287. package/dist/chunks/environmentSelection-1.0.3-c2qe9j1s.mjs +1 -0
  288. package/dist/chunks/environments-1.0.3-cvrm8nvn.mjs +1 -0
  289. package/dist/chunks/errors-1.0.3-jzcpdeb5.mjs +1 -0
  290. package/dist/chunks/exampleCommands-1.0.3-kjfprmrt.mjs +1 -0
  291. package/dist/chunks/exit-1.0.3-fbms8wkm.mjs +1 -0
  292. package/dist/chunks/explorer-1.0.3-8k5jhgjf.mjs +1 -0
  293. package/dist/chunks/export-1.0.3-4r98t7vv.mjs +2 -0
  294. package/dist/chunks/extra-usage-1.0.3-m17gcwmh.mjs +1 -0
  295. package/dist/chunks/extra-usage-noninteractive-1.0.3-papt6k1h.mjs +1 -0
  296. package/dist/chunks/fast-1.0.3-4atx5cja.mjs +1 -0
  297. package/dist/chunks/feedback-1.0.3-n2sjaka5.mjs +14 -0
  298. package/dist/chunks/firstPartyEventLogger-1.0.3-3ew36pwn.mjs +1 -0
  299. package/dist/chunks/git-1.0.3-tpyzsser.mjs +1 -0
  300. package/dist/chunks/githubModelsCredentials-1.0.3-a3scfsy1.mjs +1 -0
  301. package/dist/chunks/goal-1.0.3-rd7mxw5e.mjs +4 -0
  302. package/dist/chunks/grove-1.0.3-bwz91hx8.mjs +1 -0
  303. package/dist/chunks/growthbook-1.0.3-nr5dtynh.mjs +1 -0
  304. package/dist/chunks/headless-1.0.3-9kzxdtz3.mjs +2 -0
  305. package/dist/chunks/heapdump-1.0.3-hj74he6b.mjs +6 -0
  306. package/dist/chunks/help-1.0.3-e1qcej38.mjs +1 -0
  307. package/dist/chunks/hookChains-1.0.3-xtvdrx5t.mjs +3 -0
  308. package/dist/chunks/hooks-1.0.3-gfndfx5p.mjs +79 -0
  309. package/dist/chunks/hooks-1.0.3-mhatacpg.mjs +1 -0
  310. package/dist/chunks/ide-1.0.3-f60d1x9s.mjs +3 -0
  311. package/dist/chunks/image-processor-napi-1.0.3-crxm4gpq.mjs +1 -0
  312. package/dist/chunks/inboundAttachments-1.0.3-3b75nzd7.mjs +1 -0
  313. package/dist/chunks/index-1.0.3-15ym353c.mjs +1 -0
  314. package/dist/chunks/index-1.0.3-1tyen96a.mjs +1 -0
  315. package/dist/chunks/index-1.0.3-22c46a9g.mjs +1 -0
  316. package/dist/chunks/index-1.0.3-293khy5y.mjs +1 -0
  317. package/dist/chunks/index-1.0.3-3zrx6rcy.mjs +1 -0
  318. package/dist/chunks/index-1.0.3-4g5be32x.mjs +5 -0
  319. package/dist/chunks/index-1.0.3-5h227bav.mjs +17 -0
  320. package/dist/chunks/index-1.0.3-83nb50h7.mjs +1 -0
  321. package/dist/chunks/index-1.0.3-f3xy16k0.mjs +1 -0
  322. package/dist/chunks/index-1.0.3-fp6xhcab.mjs +2 -0
  323. package/dist/chunks/index-1.0.3-gecs01pd.mjs +1 -0
  324. package/dist/chunks/index-1.0.3-gwt3epj3.mjs +30 -0
  325. package/dist/chunks/index-1.0.3-gyr3x3wv.mjs +9 -0
  326. package/dist/chunks/index-1.0.3-j1rfqkax.mjs +1 -0
  327. package/dist/chunks/index-1.0.3-k6ze856z.mjs +1 -0
  328. package/dist/chunks/index-1.0.3-n8qxa0er.mjs +1 -0
  329. package/dist/chunks/index-1.0.3-pa0eqyya.mjs +1 -0
  330. package/dist/chunks/index-1.0.3-qacj9f9z.mjs +1 -0
  331. package/dist/chunks/index-1.0.3-tvpvnw2t.mjs +1 -0
  332. package/dist/chunks/index-1.0.3-w0d2skgw.mjs +2 -0
  333. package/dist/chunks/index-1.0.3-w6sndqyw.mjs +9 -0
  334. package/dist/chunks/index-1.0.3-z42381sj.mjs +1 -0
  335. package/dist/chunks/index-1.0.3-zfk75xdr.mjs +1 -0
  336. package/dist/chunks/init-1.0.3-1756vwh2.mjs +1 -0
  337. package/dist/chunks/initReplBridge-1.0.3-a00zpxtn.mjs +1 -0
  338. package/dist/chunks/ink-1.0.3-yq6e6m8b.mjs +1 -0
  339. package/dist/chunks/insights-1.0.3-4s3xgv9x.mjs +870 -0
  340. package/dist/chunks/install-1.0.3-zttqn1ez.mjs +1 -0
  341. package/dist/chunks/install-github-app-1.0.3-f0rmxqcw.mjs +149 -0
  342. package/dist/chunks/install-slack-app-1.0.3-sbd9833d.mjs +1 -0
  343. package/dist/chunks/instrumentation-1.0.3-hnskcn2k.mjs +1 -0
  344. package/dist/chunks/interactiveHelpers-1.0.3-t12dtkh1.mjs +1 -0
  345. package/dist/chunks/keybindings-1.0.3-retrpee2.mjs +2 -0
  346. package/dist/chunks/knowledge-1.0.3-gdpwz5kr.mjs +2 -0
  347. package/dist/chunks/latestVersionCache-1.0.3-kas0b0h1.mjs +1 -0
  348. package/dist/chunks/loadAgentsDir-1.0.3-wsevcydg.mjs +1 -0
  349. package/dist/chunks/loadPluginHooks-1.0.3-18zgr57f.mjs +1 -0
  350. package/dist/chunks/loadPluginHooks-1.0.3-2t4gydwe.mjs +1 -0
  351. package/dist/chunks/log-1.0.3-wzytzthn.mjs +1 -0
  352. package/dist/chunks/main-1.0.3-jzwehebm.mjs +1 -0
  353. package/dist/chunks/managedEnv-1.0.3-b8asa751.mjs +1 -0
  354. package/dist/chunks/mcp-1.0.3-aff6b6ct.mjs +1 -0
  355. package/dist/chunks/mcp-1.0.3-pjr3rvfk.mjs +4 -0
  356. package/dist/chunks/mcp-1.0.3-wfak1jpw.mjs +17 -0
  357. package/dist/chunks/mcpb-1.0.3-0s8ak7b1.mjs +1 -0
  358. package/dist/chunks/memory-1.0.3-esv79kf8.mjs +3 -0
  359. package/dist/chunks/model-1.0.3-9b4d36sd.mjs +1 -0
  360. package/dist/chunks/model-1.0.3-bh1t2s45.mjs +2 -0
  361. package/dist/chunks/node-1.0.3-gj4wsp3b.mjs +12 -0
  362. package/dist/chunks/oauth-1.0.3-q2zcdghm.mjs +1 -0
  363. package/dist/chunks/openaiShim-1.0.3-k03vgybb.mjs +14 -0
  364. package/dist/chunks/output-style-1.0.3-2vknbjw5.mjs +1 -0
  365. package/dist/chunks/package-ZZWOLTXM-1.0.3-g12q6fnk.mjs +1 -0
  366. package/dist/chunks/parseConnectUrl-1.0.3-7vrzj6hy.mjs +1 -0
  367. package/dist/chunks/parser-1.0.3-avw926ew.mjs +1 -0
  368. package/dist/chunks/passes-1.0.3-bgjyqscj.mjs +1 -0
  369. package/dist/chunks/permissions-1.0.3-8fj46mx3.mjs +3 -0
  370. package/dist/chunks/permissions-1.0.3-qpmk7fsa.mjs +1 -0
  371. package/dist/chunks/plan-1.0.3-emxq5t72.mjs +1 -0
  372. package/dist/chunks/plist-1.0.3-33z3k5gn.mjs +1 -0
  373. package/dist/chunks/plugin-1.0.3-eqxkeh3r.mjs +29 -0
  374. package/dist/chunks/pluginStartupCheck-1.0.3-3hbbay3q.mjs +1 -0
  375. package/dist/chunks/plugins-1.0.3-x021vefh.mjs +9 -0
  376. package/dist/chunks/preActionHook-1.0.3-5yyvhhra.mjs +2 -0
  377. package/dist/chunks/print-1.0.3-w721s1pr.mjs +57 -0
  378. package/dist/chunks/privacy-settings-1.0.3-v2vqkwdn.mjs +1 -0
  379. package/dist/chunks/process-1.0.3-xedhq816.mjs +1 -0
  380. package/dist/chunks/processBashCommand-1.0.3-mtgqq8k6.mjs +1 -0
  381. package/dist/chunks/processSlashCommand-1.0.3-2qxyq7z2.mjs +9 -0
  382. package/dist/chunks/prompt-1.0.3-3n87zkg4.mjs +1 -0
  383. package/dist/chunks/prompt-1.0.3-rt6xvwpb.mjs +1 -0
  384. package/dist/chunks/prompts-1.0.3-q1yewrxr.mjs +1 -0
  385. package/dist/chunks/protocolHandler-1.0.3-bsnsh8x6.mjs +13 -0
  386. package/dist/chunks/provider-1.0.3-gm23bmqy.mjs +2 -0
  387. package/dist/chunks/providerProfiles-1.0.3-cg05fwn8.mjs +1 -0
  388. package/dist/chunks/providerValidation-1.0.3-vma7539c.mjs +6 -0
  389. package/dist/chunks/rate-limit-options-1.0.3-q65cq335.mjs +1 -0
  390. package/dist/chunks/registerSubcommands-1.0.3-xv60j2ty.mjs +34 -0
  391. package/dist/chunks/registry-1.0.3-9n67m1rh.mjs +1 -0
  392. package/dist/chunks/release-notes-1.0.3-ves4zn7s.mjs +5 -0
  393. package/dist/chunks/reload-plugins-1.0.3-nj3rm6xw.mjs +2 -0
  394. package/dist/chunks/remote-env-1.0.3-ygbzc1qs.mjs +1 -0
  395. package/dist/chunks/remoteBridgeCore-1.0.3-z9c657ax.mjs +1 -0
  396. package/dist/chunks/remoteSession-1.0.3-7em2b627.mjs +1 -0
  397. package/dist/chunks/rename-1.0.3-090y3y3t.mjs +1 -0
  398. package/dist/chunks/replBridgeHandle-1.0.3-j72w7cv1.mjs +1 -0
  399. package/dist/chunks/replLauncher-1.0.3-jae5j1mr.mjs +1 -0
  400. package/dist/chunks/resume-1.0.3-b3yd0r0t.mjs +2 -0
  401. package/dist/chunks/rewind-1.0.3-qbxx991g.mjs +1 -0
  402. package/dist/chunks/rootOptions-1.0.3-5pvysebe.mjs +1 -0
  403. package/dist/chunks/sandbox-adapter-1.0.3-kzem4pfm.mjs +1 -0
  404. package/dist/chunks/sandbox-toggle-1.0.3-r0qyz4ph.mjs +1 -0
  405. package/dist/chunks/session-1.0.3-26qz9f9c.mjs +2 -0
  406. package/dist/chunks/sessionDiscovery-1.0.3-98fyhqzq.mjs +1 -0
  407. package/dist/chunks/sessionFileAccessHooks-1.0.3-g99vbb96.mjs +1 -0
  408. package/dist/chunks/sessionStorage-1.0.3-jbkq2y35.mjs +1 -0
  409. package/dist/chunks/settings-1.0.3-6hq9y9yg.mjs +1 -0
  410. package/dist/chunks/setup-1.0.3-8fxs3q79.mjs +5 -0
  411. package/dist/chunks/sinks-1.0.3-wjm4jwph.mjs +1 -0
  412. package/dist/chunks/skills-1.0.3-es2gwcs0.mjs +1 -0
  413. package/dist/chunks/startupProfiler-1.0.3-0zgy31z8.mjs +1 -0
  414. package/dist/chunks/startupUpdateCheck-1.0.3-17h3qh51.mjs +1 -0
  415. package/dist/chunks/state-1.0.3-7hxpebf0.mjs +1 -0
  416. package/dist/chunks/stats-1.0.3-mpa5ehmt.mjs +6 -0
  417. package/dist/chunks/status-1.0.3-3z7dn1ax.mjs +1 -0
  418. package/dist/chunks/stickers-1.0.3-mqdqscgw.mjs +1 -0
  419. package/dist/chunks/subprocessEnv-1.0.3-3zwx5k40.mjs +1 -0
  420. package/dist/chunks/tasks-1.0.3-fqyr9vwc.mjs +1 -0
  421. package/dist/chunks/teamHelpers-1.0.3-5rsk5yqn.mjs +1 -0
  422. package/dist/chunks/teammateModeSnapshot-1.0.3-v1270wf3.mjs +1 -0
  423. package/dist/chunks/teleport-1.0.3-4h0ww2kz.mjs +1 -0
  424. package/dist/chunks/terminalSetup-1.0.3-ern1ss4f.mjs +1 -0
  425. package/dist/chunks/theme-1.0.3-2zckbr2z.mjs +1 -0
  426. package/dist/chunks/thinkback-1.0.3-ckd0bxaf.mjs +1 -0
  427. package/dist/chunks/thinkback-play-1.0.3-6a53gc4n.mjs +1 -0
  428. package/dist/chunks/toolPool-1.0.3-w2xh8dvp.mjs +1 -0
  429. package/dist/chunks/toolSearch-1.0.3-w1f68ss0.mjs +1 -0
  430. package/dist/chunks/tools-1.0.3-7dyfg9gn.mjs +1 -0
  431. package/dist/chunks/trustedDevice-1.0.3-a34x8ydx.mjs +1 -0
  432. package/dist/chunks/turndown.cjs-1.0.3-jvqgvj65.mjs +69 -0
  433. package/dist/chunks/types-1.0.3-hrfpk0vp.mjs +1 -0
  434. package/dist/chunks/ultrareviewCommand-1.0.3-731x0mwt.mjs +4 -0
  435. package/dist/chunks/update-1.0.3-kxwpbp8h.mjs +86 -0
  436. package/dist/chunks/upgrade-1.0.3-0p7p2zsn.mjs +1 -0
  437. package/dist/chunks/upload-1.0.3-1fek6fh7.mjs +7 -0
  438. package/dist/chunks/upstreamproxy-1.0.3-g566qagg.mjs +14 -0
  439. package/dist/chunks/url-handler-napi-1.0.3-na9t0zcw.mjs +1 -0
  440. package/dist/chunks/usage-1.0.3-xdj3rkft.mjs +1 -0
  441. package/dist/chunks/util-1.0.3-5gfrxrz4.mjs +1 -0
  442. package/dist/chunks/utils-1.0.3-2mzjq8fj.mjs +1 -0
  443. package/dist/chunks/vim-1.0.3-9ckf66ks.mjs +1 -0
  444. package/dist/chunks/watcher-1.0.3-8pgwgknj.mjs +1 -0
  445. package/dist/chunks/wiki-1.0.3-hy2ve502.mjs +132 -0
  446. package/dist/chunks/workflows-1.0.3-phe0mv82.mjs +1 -0
  447. package/dist/chunks/worktree-1.0.3-pnma10rk.mjs +1 -0
  448. package/dist/chunks/worktreeModeEnabled-1.0.3-0hhtbd8p.mjs +1 -0
  449. package/dist/chunks/wrapper-1.0.3-jrm58k5e.mjs +7 -0
  450. package/dist/cli.mjs +2 -2
  451. package/install.cjs +208 -0
  452. package/package.json +29 -132
  453. package/LICENSE +0 -30
  454. package/bin/claudin +0 -272
  455. package/dist/chunks/AgentTool-0.7.6-02vh9vk8.mjs +0 -1
  456. package/dist/chunks/App-0.7.6-6rm9fw7h.mjs +0 -1
  457. package/dist/chunks/ApproveApiKey-0.7.6-3ds3vmhq.mjs +0 -1
  458. package/dist/chunks/AssistantSessionChooser-0.7.6-tdwszj02.mjs +0 -1
  459. package/dist/chunks/AutoModeOptInDialog-0.7.6-5axvmtp3.mjs +0 -1
  460. package/dist/chunks/BypassPermissionsModeDialog-0.7.6-014qynp3.mjs +0 -1
  461. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.6-z3wrhmsy.mjs +0 -1
  462. package/dist/chunks/ConsoleOAuthFlow-0.7.6-92nz3x2x.mjs +0 -1
  463. package/dist/chunks/DiffDialog-0.7.6-4303tcnm.mjs +0 -7
  464. package/dist/chunks/Doctor-0.7.6-084ce5s2.mjs +0 -1
  465. package/dist/chunks/ExplorerDialog-0.7.6-vp1m6ffx.mjs +0 -6
  466. package/dist/chunks/Grove-0.7.6-1d3f84xj.mjs +0 -1
  467. package/dist/chunks/ITermBackend-0.7.6-wdyeyjcs.mjs +0 -1
  468. package/dist/chunks/InvalidConfigDialog-0.7.6-j0gs8ee7.mjs +0 -1
  469. package/dist/chunks/InvalidSettingsDialog-0.7.6-5gtntvxr.mjs +0 -1
  470. package/dist/chunks/MigrationDialog-0.7.6-jqrhx95e.mjs +0 -1
  471. package/dist/chunks/Onboarding-0.7.6-18f6pde2.mjs +0 -1
  472. package/dist/chunks/ProviderManager-0.7.6-2q5s7q6j.mjs +0 -1
  473. package/dist/chunks/REPL-0.7.6-ayp94stx.mjs +0 -1
  474. package/dist/chunks/ResumeConversation-0.7.6-zgn8p1b4.mjs +0 -1
  475. package/dist/chunks/SnapshotUpdateDialog-0.7.6-apn9hx86.mjs +0 -1
  476. package/dist/chunks/TeleportProgress-0.7.6-1mvkc8e6.mjs +0 -1
  477. package/dist/chunks/TeleportRepoMismatchDialog-0.7.6-74t499kc.mjs +0 -1
  478. package/dist/chunks/TeleportResumeWrapper-0.7.6-aj7acqex.mjs +0 -1
  479. package/dist/chunks/TmuxBackend-0.7.6-werejha1.mjs +0 -9
  480. package/dist/chunks/ToolSearchTool-0.7.6-n01pcadg.mjs +0 -1
  481. package/dist/chunks/TrustDialog-0.7.6-bsjh0666.mjs +0 -1
  482. package/dist/chunks/activeProvider-0.7.6-eqwet2j4.mjs +0 -1
  483. package/dist/chunks/add-dir-0.7.6-8rvjxj57.mjs +0 -1
  484. package/dist/chunks/agentTypes-0.7.6-49zjnpvv.mjs +0 -1
  485. package/dist/chunks/agents-0.7.6-f2wq0zdm.mjs +0 -3
  486. package/dist/chunks/agents-0.7.6-n608c3qr.mjs +0 -110
  487. package/dist/chunks/api-0.7.6-f2fsvxyj.mjs +0 -1
  488. package/dist/chunks/asciicast-0.7.6-fv6ypvrh.mjs +0 -1
  489. package/dist/chunks/assistant-0.7.6-3d939v1n.mjs +0 -1
  490. package/dist/chunks/auth-0.7.6-e9ggcrw2.mjs +0 -1
  491. package/dist/chunks/auth-0.7.6-vprbhg4e.mjs +0 -1
  492. package/dist/chunks/autoMode-0.7.6-p12j05a6.mjs +0 -48
  493. package/dist/chunks/autoUpdater-0.7.6-nrc4g1jz.mjs +0 -1
  494. package/dist/chunks/backgroundHousekeeping-0.7.6-rb8ftxsa.mjs +0 -1
  495. package/dist/chunks/branch-0.7.6-05rh36he.mjs +0 -4
  496. package/dist/chunks/bridge-0.7.6-wddny37r.mjs +0 -2
  497. package/dist/chunks/bridgeConfig-0.7.6-b5h1a634.mjs +0 -1
  498. package/dist/chunks/bridgeEnabled-0.7.6-0fhtxtzs.mjs +0 -1
  499. package/dist/chunks/bridgeMain-0.7.6-nj17223b.mjs +0 -88
  500. package/dist/chunks/bridgePointer-0.7.6-f0qs1e6e.mjs +0 -1
  501. package/dist/chunks/btw-0.7.6-cjm6v0b9.mjs +0 -1
  502. package/dist/chunks/buddy-0.7.6-1j68vknm.mjs +0 -3
  503. package/dist/chunks/cacache-0.7.6-3mr30mas.mjs +0 -1
  504. package/dist/chunks/cache-probe-0.7.6-e8g8d94t.mjs +0 -21
  505. package/dist/chunks/cacheStats-0.7.6-4x5zqxyf.mjs +0 -4
  506. package/dist/chunks/caches-0.7.6-fpr85z6h.mjs +0 -1
  507. package/dist/chunks/claudeDesktop-0.7.6-hh4vstgr.mjs +0 -1
  508. package/dist/chunks/claudemd-0.7.6-fqehvs8g.mjs +0 -1
  509. package/dist/chunks/clear-0.7.6-h2vf452p.mjs +0 -1
  510. package/dist/chunks/clearTerminal-0.7.6-qscrqy5p.mjs +0 -1
  511. package/dist/chunks/cli-0.7.6-010st6wr.mjs +0 -2
  512. package/dist/chunks/cli-0.7.6-07eesex8.mjs +0 -2
  513. package/dist/chunks/cli-0.7.6-09hcxer2.mjs +0 -2
  514. package/dist/chunks/cli-0.7.6-0b47jy2g.mjs +0 -2
  515. package/dist/chunks/cli-0.7.6-0ekx5n2q.mjs +0 -4
  516. package/dist/chunks/cli-0.7.6-0gzsv22g.mjs +0 -2
  517. package/dist/chunks/cli-0.7.6-0h46deez.mjs +0 -2
  518. package/dist/chunks/cli-0.7.6-0mgbtp8x.mjs +0 -6
  519. package/dist/chunks/cli-0.7.6-0n7tfcxz.mjs +0 -4
  520. package/dist/chunks/cli-0.7.6-0tt8ccr8.mjs +0 -2
  521. package/dist/chunks/cli-0.7.6-0wr25ecz.mjs +0 -2
  522. package/dist/chunks/cli-0.7.6-1bfz5qa5.mjs +0 -2
  523. package/dist/chunks/cli-0.7.6-1bvzdjfc.mjs +0 -2
  524. package/dist/chunks/cli-0.7.6-1dqh462b.mjs +0 -2
  525. package/dist/chunks/cli-0.7.6-1j4p4cz3.mjs +0 -2
  526. package/dist/chunks/cli-0.7.6-1s1nbm58.mjs +0 -2
  527. package/dist/chunks/cli-0.7.6-1v73pjt7.mjs +0 -2
  528. package/dist/chunks/cli-0.7.6-1yn63f2j.mjs +0 -2
  529. package/dist/chunks/cli-0.7.6-29snre4z.mjs +0 -2
  530. package/dist/chunks/cli-0.7.6-2ff9pq9s.mjs +0 -3
  531. package/dist/chunks/cli-0.7.6-2kjdfns9.mjs +0 -6
  532. package/dist/chunks/cli-0.7.6-2qwpkx4w.mjs +0 -12
  533. package/dist/chunks/cli-0.7.6-2rwpq77s.mjs +0 -2
  534. package/dist/chunks/cli-0.7.6-310844c3.mjs +0 -4
  535. package/dist/chunks/cli-0.7.6-39q0e172.mjs +0 -2
  536. package/dist/chunks/cli-0.7.6-3vqf88sk.mjs +0 -2
  537. package/dist/chunks/cli-0.7.6-43kp2p25.mjs +0 -2
  538. package/dist/chunks/cli-0.7.6-471rvdw2.mjs +0 -2
  539. package/dist/chunks/cli-0.7.6-4e2e6mkj.mjs +0 -3
  540. package/dist/chunks/cli-0.7.6-4eaywsgw.mjs +0 -2
  541. package/dist/chunks/cli-0.7.6-4q91n1nr.mjs +0 -2
  542. package/dist/chunks/cli-0.7.6-4v3f036y.mjs +0 -2
  543. package/dist/chunks/cli-0.7.6-4ybzx76m.mjs +0 -2
  544. package/dist/chunks/cli-0.7.6-4z1q2wge.mjs +0 -2
  545. package/dist/chunks/cli-0.7.6-517m3gcx.mjs +0 -2
  546. package/dist/chunks/cli-0.7.6-56h0kfkw.mjs +0 -59
  547. package/dist/chunks/cli-0.7.6-5dk57g7k.mjs +0 -2
  548. package/dist/chunks/cli-0.7.6-5ktehyvf.mjs +0 -2
  549. package/dist/chunks/cli-0.7.6-5qabm4xe.mjs +0 -2
  550. package/dist/chunks/cli-0.7.6-5vj0s5hg.mjs +0 -5
  551. package/dist/chunks/cli-0.7.6-5wj27v22.mjs +0 -18
  552. package/dist/chunks/cli-0.7.6-5ynmp8av.mjs +0 -2
  553. package/dist/chunks/cli-0.7.6-62ea895q.mjs +0 -2
  554. package/dist/chunks/cli-0.7.6-67tqckbs.mjs +0 -133
  555. package/dist/chunks/cli-0.7.6-69b0cq0a.mjs +0 -4
  556. package/dist/chunks/cli-0.7.6-69hzrwk9.mjs +0 -2
  557. package/dist/chunks/cli-0.7.6-73gkdy2f.mjs +0 -2
  558. package/dist/chunks/cli-0.7.6-73h798cq.mjs +0 -2
  559. package/dist/chunks/cli-0.7.6-7g2b4q32.mjs +0 -2
  560. package/dist/chunks/cli-0.7.6-7ktebmzc.mjs +0 -2
  561. package/dist/chunks/cli-0.7.6-7mzraehr.mjs +0 -16
  562. package/dist/chunks/cli-0.7.6-7szsqp12.mjs +0 -2
  563. package/dist/chunks/cli-0.7.6-7ybdp9j0.mjs +0 -3
  564. package/dist/chunks/cli-0.7.6-7yce2cw8.mjs +0 -2
  565. package/dist/chunks/cli-0.7.6-8g9rtj1f.mjs +0 -2
  566. package/dist/chunks/cli-0.7.6-8h5rwm21.mjs +0 -2
  567. package/dist/chunks/cli-0.7.6-8k508w7p.mjs +0 -2
  568. package/dist/chunks/cli-0.7.6-8srvcg12.mjs +0 -2
  569. package/dist/chunks/cli-0.7.6-8vdxmbjt.mjs +0 -2
  570. package/dist/chunks/cli-0.7.6-8vftkjgf.mjs +0 -2
  571. package/dist/chunks/cli-0.7.6-8wv8rjqd.mjs +0 -2
  572. package/dist/chunks/cli-0.7.6-9508tj8e.mjs +0 -17
  573. package/dist/chunks/cli-0.7.6-96qqpq0c.mjs +0 -2
  574. package/dist/chunks/cli-0.7.6-9a706kh3.mjs +0 -2
  575. package/dist/chunks/cli-0.7.6-9w6egknj.mjs +0 -8
  576. package/dist/chunks/cli-0.7.6-ajv6cevv.mjs +0 -4
  577. package/dist/chunks/cli-0.7.6-am0sf3er.mjs +0 -2
  578. package/dist/chunks/cli-0.7.6-ama4wyv2.mjs +0 -12
  579. package/dist/chunks/cli-0.7.6-ayd8297m.mjs +0 -3
  580. package/dist/chunks/cli-0.7.6-bbmxy27v.mjs +0 -2
  581. package/dist/chunks/cli-0.7.6-berqrfpz.mjs +0 -2
  582. package/dist/chunks/cli-0.7.6-bese1aqp.mjs +0 -2
  583. package/dist/chunks/cli-0.7.6-bfwq4dm5.mjs +0 -2
  584. package/dist/chunks/cli-0.7.6-c3npkenn.mjs +0 -1
  585. package/dist/chunks/cli-0.7.6-ccbtfaqn.mjs +0 -2
  586. package/dist/chunks/cli-0.7.6-ccy8mp4f.mjs +0 -2
  587. package/dist/chunks/cli-0.7.6-cedrx1f7.mjs +0 -2
  588. package/dist/chunks/cli-0.7.6-chcjfb2p.mjs +0 -2
  589. package/dist/chunks/cli-0.7.6-cmxr1gyd.mjs +0 -3
  590. package/dist/chunks/cli-0.7.6-cq95q0m7.mjs +0 -2
  591. package/dist/chunks/cli-0.7.6-cxchkx7a.mjs +0 -18
  592. package/dist/chunks/cli-0.7.6-d4rmetja.mjs +0 -2
  593. package/dist/chunks/cli-0.7.6-d5nss1kz.mjs +0 -2
  594. package/dist/chunks/cli-0.7.6-d8hz302t.mjs +0 -2
  595. package/dist/chunks/cli-0.7.6-dd5tgszn.mjs +0 -4
  596. package/dist/chunks/cli-0.7.6-dfkaq7z7.mjs +0 -2
  597. package/dist/chunks/cli-0.7.6-dhp0vn09.mjs +0 -4
  598. package/dist/chunks/cli-0.7.6-dpfh7ypk.mjs +0 -2
  599. package/dist/chunks/cli-0.7.6-dq87daze.mjs +0 -2
  600. package/dist/chunks/cli-0.7.6-dynrpsf9.mjs +0 -10
  601. package/dist/chunks/cli-0.7.6-e01s0kjn.mjs +0 -2
  602. package/dist/chunks/cli-0.7.6-e3dwvde8.mjs +0 -58
  603. package/dist/chunks/cli-0.7.6-edjsszs3.mjs +0 -12
  604. package/dist/chunks/cli-0.7.6-ehkh8f7m.mjs +0 -2
  605. package/dist/chunks/cli-0.7.6-ejjekwys.mjs +0 -2
  606. package/dist/chunks/cli-0.7.6-ejk8n0sg.mjs +0 -2
  607. package/dist/chunks/cli-0.7.6-ek2a439r.mjs +0 -2
  608. package/dist/chunks/cli-0.7.6-ex7sezdt.mjs +0 -2
  609. package/dist/chunks/cli-0.7.6-f4nmb6r2.mjs +0 -3
  610. package/dist/chunks/cli-0.7.6-f9mzvngv.mjs +0 -2
  611. package/dist/chunks/cli-0.7.6-ffk5hz3x.mjs +0 -2
  612. package/dist/chunks/cli-0.7.6-fkshg1fg.mjs +0 -2
  613. package/dist/chunks/cli-0.7.6-fmmr53nv.mjs +0 -2
  614. package/dist/chunks/cli-0.7.6-fn56g2cc.mjs +0 -199
  615. package/dist/chunks/cli-0.7.6-frf6ynaj.mjs +0 -2
  616. package/dist/chunks/cli-0.7.6-ftdrd7jk.mjs +0 -17
  617. package/dist/chunks/cli-0.7.6-fvydk0w1.mjs +0 -2
  618. package/dist/chunks/cli-0.7.6-g1gd1372.mjs +0 -5
  619. package/dist/chunks/cli-0.7.6-g2437s1w.mjs +0 -2
  620. package/dist/chunks/cli-0.7.6-g44g34fb.mjs +0 -2
  621. package/dist/chunks/cli-0.7.6-g5cva69z.mjs +0 -2
  622. package/dist/chunks/cli-0.7.6-g736y207.mjs +0 -39
  623. package/dist/chunks/cli-0.7.6-g802sp0p.mjs +0 -2
  624. package/dist/chunks/cli-0.7.6-gkd2v7ek.mjs +0 -45
  625. package/dist/chunks/cli-0.7.6-gxbeg3ny.mjs +0 -3
  626. package/dist/chunks/cli-0.7.6-hrw7nyyq.mjs +0 -2
  627. package/dist/chunks/cli-0.7.6-hsa9j8sb.mjs +0 -2
  628. package/dist/chunks/cli-0.7.6-hsm2w1qr.mjs +0 -2
  629. package/dist/chunks/cli-0.7.6-hw3n6j75.mjs +0 -9
  630. package/dist/chunks/cli-0.7.6-j59ty8yt.mjs +0 -15
  631. package/dist/chunks/cli-0.7.6-j63vtmfa.mjs +0 -2
  632. package/dist/chunks/cli-0.7.6-j9p952mf.mjs +0 -2
  633. package/dist/chunks/cli-0.7.6-jjmm4f40.mjs +0 -2
  634. package/dist/chunks/cli-0.7.6-jmpc9xmj.mjs +0 -6
  635. package/dist/chunks/cli-0.7.6-jtdgswpn.mjs +0 -2
  636. package/dist/chunks/cli-0.7.6-jwqgj667.mjs +0 -2
  637. package/dist/chunks/cli-0.7.6-jzk3fxqa.mjs +0 -3
  638. package/dist/chunks/cli-0.7.6-k1tjb02q.mjs +0 -4
  639. package/dist/chunks/cli-0.7.6-k5r0yz41.mjs +0 -67
  640. package/dist/chunks/cli-0.7.6-k7fsgwdr.mjs +0 -2
  641. package/dist/chunks/cli-0.7.6-m51wgngt.mjs +0 -2
  642. package/dist/chunks/cli-0.7.6-md1ramb7.mjs +0 -2
  643. package/dist/chunks/cli-0.7.6-md31wz8f.mjs +0 -2
  644. package/dist/chunks/cli-0.7.6-md4x57wd.mjs +0 -2
  645. package/dist/chunks/cli-0.7.6-n6qsqdjv.mjs +0 -2
  646. package/dist/chunks/cli-0.7.6-ngmxmw82.mjs +0 -2
  647. package/dist/chunks/cli-0.7.6-ngsbbrk7.mjs +0 -3
  648. package/dist/chunks/cli-0.7.6-nxxj5qzs.mjs +0 -2
  649. package/dist/chunks/cli-0.7.6-p2268sge.mjs +0 -2
  650. package/dist/chunks/cli-0.7.6-pasrzvza.mjs +0 -2
  651. package/dist/chunks/cli-0.7.6-pbzty9n9.mjs +0 -2
  652. package/dist/chunks/cli-0.7.6-pwvs4p1w.mjs +0 -3
  653. package/dist/chunks/cli-0.7.6-pzk668w8.mjs +0 -2
  654. package/dist/chunks/cli-0.7.6-qan5xxdc.mjs +0 -5471
  655. package/dist/chunks/cli-0.7.6-qeq5tx23.mjs +0 -6
  656. package/dist/chunks/cli-0.7.6-qkcrt37c.mjs +0 -2
  657. package/dist/chunks/cli-0.7.6-qyk1jtmh.mjs +0 -2
  658. package/dist/chunks/cli-0.7.6-r6nhsg12.mjs +0 -2
  659. package/dist/chunks/cli-0.7.6-r78s2g03.mjs +0 -18
  660. package/dist/chunks/cli-0.7.6-r9dxvg8q.mjs +0 -5
  661. package/dist/chunks/cli-0.7.6-rp0xgr6t.mjs +0 -2
  662. package/dist/chunks/cli-0.7.6-rs07s8yh.mjs +0 -2
  663. package/dist/chunks/cli-0.7.6-rzhf46t3.mjs +0 -2
  664. package/dist/chunks/cli-0.7.6-s0jpd03j.mjs +0 -2
  665. package/dist/chunks/cli-0.7.6-s3kvpq11.mjs +0 -24
  666. package/dist/chunks/cli-0.7.6-se7x2a1f.mjs +0 -7
  667. package/dist/chunks/cli-0.7.6-sjbap7zg.mjs +0 -2
  668. package/dist/chunks/cli-0.7.6-svqwyxab.mjs +0 -42
  669. package/dist/chunks/cli-0.7.6-t224fm0b.mjs +0 -2
  670. package/dist/chunks/cli-0.7.6-t3wkyhpb.mjs +0 -2
  671. package/dist/chunks/cli-0.7.6-tnxct9wp.mjs +0 -2
  672. package/dist/chunks/cli-0.7.6-tp1mp7kg.mjs +0 -2
  673. package/dist/chunks/cli-0.7.6-tp4xkdj6.mjs +0 -2
  674. package/dist/chunks/cli-0.7.6-v3rjsfcr.mjs +0 -2
  675. package/dist/chunks/cli-0.7.6-vhan81qg.mjs +0 -2
  676. package/dist/chunks/cli-0.7.6-vhn7sz5q.mjs +0 -2
  677. package/dist/chunks/cli-0.7.6-vrcja2t1.mjs +0 -2
  678. package/dist/chunks/cli-0.7.6-w4bq1f08.mjs +0 -4
  679. package/dist/chunks/cli-0.7.6-w5smxper.mjs +0 -2
  680. package/dist/chunks/cli-0.7.6-w65xvz9z.mjs +0 -2
  681. package/dist/chunks/cli-0.7.6-w66170ej.mjs +0 -2
  682. package/dist/chunks/cli-0.7.6-w7k9x0kq.mjs +0 -3
  683. package/dist/chunks/cli-0.7.6-wch5kwc6.mjs +0 -3
  684. package/dist/chunks/cli-0.7.6-wepz3cym.mjs +0 -4
  685. package/dist/chunks/cli-0.7.6-wthbw2r0.mjs +0 -2
  686. package/dist/chunks/cli-0.7.6-wz34s2yk.mjs +0 -2
  687. package/dist/chunks/cli-0.7.6-wz5w8hmh.mjs +0 -2
  688. package/dist/chunks/cli-0.7.6-xczzrd9d.mjs +0 -34
  689. package/dist/chunks/cli-0.7.6-xfap6qa6.mjs +0 -20
  690. package/dist/chunks/cli-0.7.6-xg6ka3pp.mjs +0 -2
  691. package/dist/chunks/cli-0.7.6-xjemjs4e.mjs +0 -25
  692. package/dist/chunks/cli-0.7.6-xkmg4sc9.mjs +0 -2
  693. package/dist/chunks/cli-0.7.6-xky4ty14.mjs +0 -2
  694. package/dist/chunks/cli-0.7.6-xtjps7gq.mjs +0 -2
  695. package/dist/chunks/cli-0.7.6-xyx40s83.mjs +0 -21
  696. package/dist/chunks/cli-0.7.6-y36b0e0y.mjs +0 -24
  697. package/dist/chunks/cli-0.7.6-y3a6zp1r.mjs +0 -2
  698. package/dist/chunks/cli-0.7.6-y7bdxnmf.mjs +0 -133
  699. package/dist/chunks/cli-0.7.6-y8ga5pny.mjs +0 -15
  700. package/dist/chunks/cli-0.7.6-ye7kz4cr.mjs +0 -24
  701. package/dist/chunks/cli-0.7.6-ymhtbnyk.mjs +0 -2
  702. package/dist/chunks/cli-0.7.6-yv3stfxm.mjs +0 -12
  703. package/dist/chunks/cli-0.7.6-ywg6e349.mjs +0 -25
  704. package/dist/chunks/cli-0.7.6-z13va0jc.mjs +0 -2
  705. package/dist/chunks/cli-0.7.6-z4k83sx6.mjs +0 -2
  706. package/dist/chunks/cli-0.7.6-z5zw7sdz.mjs +0 -3
  707. package/dist/chunks/cli-0.7.6-zepjez10.mjs +0 -50
  708. package/dist/chunks/cli-0.7.6-zmkr521v.mjs +0 -15
  709. package/dist/chunks/cli-0.7.6-zrjrmccd.mjs +0 -2
  710. package/dist/chunks/cli-0.7.6-zrwpmp3s.mjs +0 -2
  711. package/dist/chunks/client-0.7.6-s5r00qzn.mjs +0 -1
  712. package/dist/chunks/color-0.7.6-c5m7hk8y.mjs +0 -1
  713. package/dist/chunks/compact-0.7.6-dx4c91sb.mjs +0 -3
  714. package/dist/chunks/config-0.7.6-0wrs7d25.mjs +0 -1
  715. package/dist/chunks/config-0.7.6-28k8xgy7.mjs +0 -1
  716. package/dist/chunks/constants-0.7.6-yxc2ccra.mjs +0 -1
  717. package/dist/chunks/context-0.7.6-efvp1txb.mjs +0 -1
  718. package/dist/chunks/context-noninteractive-0.7.6-8bp73hyq.mjs +0 -1
  719. package/dist/chunks/conversation-0.7.6-cqwzbr0d.mjs +0 -1
  720. package/dist/chunks/copilotHeaders-0.7.6-qm7k7b4w.mjs +0 -1
  721. package/dist/chunks/copy-0.7.6-tb3stmba.mjs +0 -9
  722. package/dist/chunks/cost-0.7.6-t2pss4xp.mjs +0 -1
  723. package/dist/chunks/createSSHSession-0.7.6-gxjfefp4.mjs +0 -1
  724. package/dist/chunks/createSession-0.7.6-s5cd1p2c.mjs +0 -1
  725. package/dist/chunks/debug-0.7.6-29wym0xr.mjs +0 -1
  726. package/dist/chunks/defaultActionDeps-0.7.6-1thsnj41.mjs +0 -1446
  727. package/dist/chunks/desktop-0.7.6-jb15m9tp.mjs +0 -1
  728. package/dist/chunks/detectRepository-0.7.6-0cp7fygx.mjs +0 -1
  729. package/dist/chunks/detection-0.7.6-rg544p2p.mjs +0 -1
  730. package/dist/chunks/diff-0.7.6-53gzzxnd.mjs +0 -1
  731. package/dist/chunks/doctor-0.7.6-95kk3h2p.mjs +0 -1
  732. package/dist/chunks/doctorDiagnostic-0.7.6-ybe5naeq.mjs +0 -1
  733. package/dist/chunks/earlyInput-0.7.6-2frqt87k.mjs +0 -1
  734. package/dist/chunks/effort-0.7.6-3hhjz5rt.mjs +0 -10
  735. package/dist/chunks/engine-0.7.6-r4hy6gpj.mjs +0 -1
  736. package/dist/chunks/envLessBridgeConfig-0.7.6-6gxkp63s.mjs +0 -1
  737. package/dist/chunks/envUtils-0.7.6-70jnybbw.mjs +0 -1
  738. package/dist/chunks/environmentSelection-0.7.6-mtg8g15a.mjs +0 -1
  739. package/dist/chunks/environments-0.7.6-4vj956d6.mjs +0 -1
  740. package/dist/chunks/errors-0.7.6-3rfme91e.mjs +0 -1
  741. package/dist/chunks/exampleCommands-0.7.6-3rwnb01j.mjs +0 -1
  742. package/dist/chunks/exit-0.7.6-1zq90j34.mjs +0 -1
  743. package/dist/chunks/explorer-0.7.6-7yxdvz4c.mjs +0 -1
  744. package/dist/chunks/export-0.7.6-6annregx.mjs +0 -2
  745. package/dist/chunks/extra-usage-0.7.6-1d8afeer.mjs +0 -1
  746. package/dist/chunks/extra-usage-noninteractive-0.7.6-yv74b9va.mjs +0 -1
  747. package/dist/chunks/fast-0.7.6-83xw5a4z.mjs +0 -1
  748. package/dist/chunks/feedback-0.7.6-r3gmhtzb.mjs +0 -14
  749. package/dist/chunks/firstPartyEventLogger-0.7.6-sxwwnk4h.mjs +0 -1
  750. package/dist/chunks/git-0.7.6-z2fwspdf.mjs +0 -1
  751. package/dist/chunks/githubModelsCredentials-0.7.6-fe39tsv6.mjs +0 -1
  752. package/dist/chunks/goal-0.7.6-ejhqdg3h.mjs +0 -4
  753. package/dist/chunks/grove-0.7.6-wq7pmtc4.mjs +0 -1
  754. package/dist/chunks/growthbook-0.7.6-268c3zv1.mjs +0 -1
  755. package/dist/chunks/headless-0.7.6-0624t1g9.mjs +0 -2
  756. package/dist/chunks/heapdump-0.7.6-0h7m92s6.mjs +0 -6
  757. package/dist/chunks/help-0.7.6-cgg68b97.mjs +0 -1
  758. package/dist/chunks/hookChains-0.7.6-r667d77r.mjs +0 -3
  759. package/dist/chunks/hooks-0.7.6-7tnwk63p.mjs +0 -79
  760. package/dist/chunks/hooks-0.7.6-btfaw4b9.mjs +0 -1
  761. package/dist/chunks/ide-0.7.6-fq0f5srk.mjs +0 -3
  762. package/dist/chunks/image-processor-napi-0.7.6-2ks1h23p.mjs +0 -1
  763. package/dist/chunks/inboundAttachments-0.7.6-femb5yew.mjs +0 -1
  764. package/dist/chunks/index-0.7.6-2rpgkwj4.mjs +0 -9
  765. package/dist/chunks/index-0.7.6-2zatk70c.mjs +0 -1
  766. package/dist/chunks/index-0.7.6-415hw608.mjs +0 -1
  767. package/dist/chunks/index-0.7.6-7wrzedvg.mjs +0 -1
  768. package/dist/chunks/index-0.7.6-98ws3n8p.mjs +0 -1
  769. package/dist/chunks/index-0.7.6-9k6nvjv8.mjs +0 -1
  770. package/dist/chunks/index-0.7.6-bbdqqv1x.mjs +0 -1
  771. package/dist/chunks/index-0.7.6-djapsy32.mjs +0 -1
  772. package/dist/chunks/index-0.7.6-efatyc79.mjs +0 -17
  773. package/dist/chunks/index-0.7.6-egyaf79a.mjs +0 -5
  774. package/dist/chunks/index-0.7.6-ew2v6b0x.mjs +0 -1
  775. package/dist/chunks/index-0.7.6-h2kqerxv.mjs +0 -1
  776. package/dist/chunks/index-0.7.6-h5xh1kf2.mjs +0 -1
  777. package/dist/chunks/index-0.7.6-jk32t8wg.mjs +0 -1
  778. package/dist/chunks/index-0.7.6-k60v4n8g.mjs +0 -9
  779. package/dist/chunks/index-0.7.6-kb22mqnf.mjs +0 -2
  780. package/dist/chunks/index-0.7.6-mj4y74z8.mjs +0 -1
  781. package/dist/chunks/index-0.7.6-pkyqwagx.mjs +0 -1
  782. package/dist/chunks/index-0.7.6-sdw9kjcj.mjs +0 -1
  783. package/dist/chunks/index-0.7.6-tc2zr05j.mjs +0 -2
  784. package/dist/chunks/index-0.7.6-tk8kmvah.mjs +0 -1
  785. package/dist/chunks/index-0.7.6-vhgb870z.mjs +0 -1
  786. package/dist/chunks/index-0.7.6-yndsc291.mjs +0 -30
  787. package/dist/chunks/init-0.7.6-w0mqjmeg.mjs +0 -1
  788. package/dist/chunks/initReplBridge-0.7.6-rf60qv0p.mjs +0 -1
  789. package/dist/chunks/ink-0.7.6-3eyfg9zt.mjs +0 -1
  790. package/dist/chunks/insights-0.7.6-7btcyfzb.mjs +0 -870
  791. package/dist/chunks/install-0.7.6-mdtm3sg3.mjs +0 -1
  792. package/dist/chunks/install-github-app-0.7.6-jvncztq4.mjs +0 -149
  793. package/dist/chunks/install-slack-app-0.7.6-yqkgptfz.mjs +0 -1
  794. package/dist/chunks/instrumentation-0.7.6-1ctp56r7.mjs +0 -1
  795. package/dist/chunks/interactiveHelpers-0.7.6-hnfccr2a.mjs +0 -1
  796. package/dist/chunks/keybindings-0.7.6-cm2a4esz.mjs +0 -2
  797. package/dist/chunks/knowledge-0.7.6-2m4hj4wv.mjs +0 -2
  798. package/dist/chunks/latestVersionCache-0.7.6-3p0jwsk1.mjs +0 -1
  799. package/dist/chunks/loadAgentsDir-0.7.6-7n8wpd6m.mjs +0 -1
  800. package/dist/chunks/loadPluginHooks-0.7.6-668vved3.mjs +0 -1
  801. package/dist/chunks/loadPluginHooks-0.7.6-fvexrndy.mjs +0 -1
  802. package/dist/chunks/log-0.7.6-n1gwe75k.mjs +0 -1
  803. package/dist/chunks/main-0.7.6-787at8bh.mjs +0 -1
  804. package/dist/chunks/managedEnv-0.7.6-b17rcr8m.mjs +0 -1
  805. package/dist/chunks/mcp-0.7.6-a2gt46m1.mjs +0 -4
  806. package/dist/chunks/mcp-0.7.6-ehgr4hy2.mjs +0 -1
  807. package/dist/chunks/mcp-0.7.6-z5yz782z.mjs +0 -17
  808. package/dist/chunks/mcpb-0.7.6-x3w00evk.mjs +0 -1
  809. package/dist/chunks/memory-0.7.6-ce56tv6x.mjs +0 -3
  810. package/dist/chunks/model-0.7.6-10bxpdy1.mjs +0 -2
  811. package/dist/chunks/model-0.7.6-463cgk44.mjs +0 -1
  812. package/dist/chunks/node-0.7.6-yq8nb00v.mjs +0 -12
  813. package/dist/chunks/oauth-0.7.6-bbgjzwfb.mjs +0 -1
  814. package/dist/chunks/openaiShim-0.7.6-kwwv7ntf.mjs +0 -14
  815. package/dist/chunks/output-style-0.7.6-cs808te7.mjs +0 -1
  816. package/dist/chunks/package-ZZWOLTXM-0.7.6-kjjaeshn.mjs +0 -1
  817. package/dist/chunks/parseConnectUrl-0.7.6-k3n1pn17.mjs +0 -1
  818. package/dist/chunks/parser-0.7.6-eae6w23n.mjs +0 -1
  819. package/dist/chunks/passes-0.7.6-k46cf658.mjs +0 -1
  820. package/dist/chunks/permissions-0.7.6-1nws00wm.mjs +0 -1
  821. package/dist/chunks/permissions-0.7.6-jq6ebtnw.mjs +0 -3
  822. package/dist/chunks/plan-0.7.6-ry44stze.mjs +0 -1
  823. package/dist/chunks/plist-0.7.6-0vee72zr.mjs +0 -1
  824. package/dist/chunks/plugin-0.7.6-vwa3avby.mjs +0 -29
  825. package/dist/chunks/pluginStartupCheck-0.7.6-wvmq9d6r.mjs +0 -1
  826. package/dist/chunks/plugins-0.7.6-sksmmrbb.mjs +0 -9
  827. package/dist/chunks/preActionHook-0.7.6-qtz2v7cq.mjs +0 -2
  828. package/dist/chunks/print-0.7.6-qddcs91f.mjs +0 -57
  829. package/dist/chunks/privacy-settings-0.7.6-5gzw6mn1.mjs +0 -1
  830. package/dist/chunks/process-0.7.6-6b1s37w1.mjs +0 -1
  831. package/dist/chunks/processBashCommand-0.7.6-yb92143k.mjs +0 -1
  832. package/dist/chunks/processSlashCommand-0.7.6-bc9jxvge.mjs +0 -9
  833. package/dist/chunks/prompt-0.7.6-sps6z4za.mjs +0 -1
  834. package/dist/chunks/prompt-0.7.6-t8yabss3.mjs +0 -1
  835. package/dist/chunks/prompts-0.7.6-x3ndp7gh.mjs +0 -1
  836. package/dist/chunks/protocolHandler-0.7.6-m1pgssvd.mjs +0 -13
  837. package/dist/chunks/provider-0.7.6-yxmt6yve.mjs +0 -2
  838. package/dist/chunks/providerProfiles-0.7.6-3027t9pt.mjs +0 -1
  839. package/dist/chunks/providerValidation-0.7.6-vpv75gd1.mjs +0 -6
  840. package/dist/chunks/rate-limit-options-0.7.6-6w5cdwx1.mjs +0 -1
  841. package/dist/chunks/registerSubcommands-0.7.6-vz4yvks2.mjs +0 -34
  842. package/dist/chunks/registry-0.7.6-gat54dy3.mjs +0 -1
  843. package/dist/chunks/release-notes-0.7.6-myz4h7d7.mjs +0 -5
  844. package/dist/chunks/reload-plugins-0.7.6-64w73d8b.mjs +0 -2
  845. package/dist/chunks/remote-env-0.7.6-zz9a22zn.mjs +0 -1
  846. package/dist/chunks/remoteBridgeCore-0.7.6-9mnzebzz.mjs +0 -1
  847. package/dist/chunks/remoteSession-0.7.6-0geea7cr.mjs +0 -1
  848. package/dist/chunks/rename-0.7.6-y40kz5p4.mjs +0 -1
  849. package/dist/chunks/replBridgeHandle-0.7.6-9q86nfkb.mjs +0 -1
  850. package/dist/chunks/replLauncher-0.7.6-appht20k.mjs +0 -1
  851. package/dist/chunks/resume-0.7.6-za9pttkz.mjs +0 -2
  852. package/dist/chunks/rewind-0.7.6-23eb1s5k.mjs +0 -1
  853. package/dist/chunks/rootOptions-0.7.6-89a7srwx.mjs +0 -1
  854. package/dist/chunks/sandbox-adapter-0.7.6-zxpg8tbn.mjs +0 -1
  855. package/dist/chunks/sandbox-toggle-0.7.6-12ddnvsb.mjs +0 -1
  856. package/dist/chunks/session-0.7.6-qtvc9q8w.mjs +0 -2
  857. package/dist/chunks/sessionDiscovery-0.7.6-d2h1v026.mjs +0 -1
  858. package/dist/chunks/sessionFileAccessHooks-0.7.6-j8rejm9s.mjs +0 -1
  859. package/dist/chunks/sessionStorage-0.7.6-whqhsy0v.mjs +0 -1
  860. package/dist/chunks/settings-0.7.6-d1x6h71y.mjs +0 -1
  861. package/dist/chunks/setup-0.7.6-f52y5q94.mjs +0 -5
  862. package/dist/chunks/sinks-0.7.6-p38qk6rn.mjs +0 -1
  863. package/dist/chunks/skills-0.7.6-4x49mjqs.mjs +0 -1
  864. package/dist/chunks/startupProfiler-0.7.6-kehr3zds.mjs +0 -1
  865. package/dist/chunks/startupUpdateCheck-0.7.6-m95yf5v2.mjs +0 -1
  866. package/dist/chunks/state-0.7.6-exkbe4vf.mjs +0 -1
  867. package/dist/chunks/stats-0.7.6-y4qxdfqk.mjs +0 -6
  868. package/dist/chunks/status-0.7.6-etkntf2w.mjs +0 -1
  869. package/dist/chunks/stickers-0.7.6-jfaby3j3.mjs +0 -1
  870. package/dist/chunks/subprocessEnv-0.7.6-2bme852w.mjs +0 -1
  871. package/dist/chunks/tasks-0.7.6-vc8j66yr.mjs +0 -1
  872. package/dist/chunks/teamHelpers-0.7.6-ax1nev6h.mjs +0 -1
  873. package/dist/chunks/teammateModeSnapshot-0.7.6-9tjnw4x3.mjs +0 -1
  874. package/dist/chunks/teleport-0.7.6-xjeqw992.mjs +0 -1
  875. package/dist/chunks/terminalSetup-0.7.6-cx56kmpg.mjs +0 -1
  876. package/dist/chunks/theme-0.7.6-artxd1km.mjs +0 -1
  877. package/dist/chunks/thinkback-0.7.6-ar7ssxsq.mjs +0 -1
  878. package/dist/chunks/thinkback-play-0.7.6-7d5g791f.mjs +0 -1
  879. package/dist/chunks/toolPool-0.7.6-58r85xft.mjs +0 -1
  880. package/dist/chunks/toolSearch-0.7.6-29hekpkv.mjs +0 -1
  881. package/dist/chunks/tools-0.7.6-6bhsctcm.mjs +0 -1
  882. package/dist/chunks/trustedDevice-0.7.6-aay0bw3y.mjs +0 -1
  883. package/dist/chunks/turndown.cjs-0.7.6-cfbcqt7b.mjs +0 -69
  884. package/dist/chunks/types-0.7.6-z2j2wxhd.mjs +0 -1
  885. package/dist/chunks/ultrareviewCommand-0.7.6-7w7yx7mv.mjs +0 -4
  886. package/dist/chunks/update-0.7.6-6s5hvmvc.mjs +0 -86
  887. package/dist/chunks/upgrade-0.7.6-nrvaa7qs.mjs +0 -1
  888. package/dist/chunks/upload-0.7.6-6880h5gd.mjs +0 -7
  889. package/dist/chunks/upstreamproxy-0.7.6-d4xfvwf7.mjs +0 -14
  890. package/dist/chunks/url-handler-napi-0.7.6-hcyxzqg6.mjs +0 -1
  891. package/dist/chunks/usage-0.7.6-vbbt70v9.mjs +0 -1
  892. package/dist/chunks/util-0.7.6-0cm7xj78.mjs +0 -1
  893. package/dist/chunks/utils-0.7.6-h3fwyhxw.mjs +0 -1
  894. package/dist/chunks/vim-0.7.6-k6evwpd5.mjs +0 -1
  895. package/dist/chunks/watcher-0.7.6-gc6rbcvg.mjs +0 -1
  896. package/dist/chunks/wiki-0.7.6-3sjbdwmf.mjs +0 -132
  897. package/dist/chunks/workflows-0.7.6-rg3kvwhe.mjs +0 -1
  898. package/dist/chunks/worktree-0.7.6-hhewj19d.mjs +0 -1
  899. package/dist/chunks/worktreeModeEnabled-0.7.6-a27ekdvp.mjs +0 -1
  900. package/dist/chunks/wrapper-0.7.6-01s6r78y.mjs +0 -7
  901. package/dist/claudin-vscode.vsix +0 -0
  902. package/scripts/postinstall-warmup.mjs +0 -70
  903. package/scripts/v8cache-gc.mjs +0 -84
  904. /package/dist/chunks/{cli-0.7.6-sznceb3v.mjs → cli-1.0.3-25zd2770.mjs} +0 -0
  905. /package/dist/chunks/{cli-0.7.6-wmhr2zkd.mjs → cli-1.0.3-43683395.mjs} +0 -0
  906. /package/dist/chunks/{cli-0.7.6-azjnjp5p.mjs → cli-1.0.3-77dec30x.mjs} +0 -0
  907. /package/dist/chunks/{cli-0.7.6-2nmq534s.mjs → cli-1.0.3-adgwsvq3.mjs} +0 -0
  908. /package/dist/chunks/{cli-0.7.6-wmk10em6.mjs → cli-1.0.3-cf280jvq.mjs} +0 -0
  909. /package/dist/chunks/{cli-0.7.6-b39v6rz1.mjs → cli-1.0.3-hn2qw1pk.mjs} +0 -0
  910. /package/dist/chunks/{cli-0.7.6-pef1cr89.mjs → cli-1.0.3-qf5pjy0v.mjs} +0 -0
  911. /package/dist/chunks/{cli-0.7.6-jpjn976y.mjs → cli-1.0.3-vzm5gxzn.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Nha as X,Qha as z}from"./cli-1.0.3-ynf2sj5r.mjs";import{Qia as $,Tia as P,tia as Z,yia as O}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as Y,vja as H}from"./cli-1.0.3-5hpdm52h.mjs";import{Xqa as x}from"./cli-1.0.3-vzm5gxzn.mjs";function h(q){return q.replace(w,(K,J,Q)=>{if(Q.length<F)return`"${J}":"[REDACTED]"`;let V=`${Q.slice(0,8)}...${Q.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let K=q.replace(/\n/g,"\\n");if(K.length<=W)return K;return K.slice(0,W)+`... (${K.length} chars)`}function R(q){let K=typeof q==="string"?q:Z(q),J=h(K);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function U(q){let K=Y(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let Q=J.data,V=typeof Q.message==="string"?Q.message:typeof Q.error==="object"&&Q.error&&("message"in Q.error)&&typeof Q.error.message==="string"?Q.error.message:void 0;if(V)return`${K}: ${V}`}}return K}function j(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function D(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function L(q,K,J){if(K)$(K);X("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{z();P();H();O();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
+ export{N as uf,R as vf,U as wf,j as xf,D as yf,L as zf,m as Af};
@@ -0,0 +1,12 @@
1
+ import{GE as x,HE as s,IE as C,KE as n,LE as $,NE as Zq,OF as o,QF as Mq,Qn as E,Rn as Uq,Un as r,Vn as Xq,Yn as d,Zn as Yq}from"./cli-1.0.3-2wzvc8te.mjs";import{I0 as Qq,IY as Jq,b0 as N,d0 as U,h0 as V,x0 as a}from"./cli-1.0.3-kesrsh8z.mjs";import{N2 as u,O2 as J,P2 as X,Q2 as g}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as zq}from"./cli-1.0.3-n9tzv3mz.mjs";import{Nha as w,Qha as qq}from"./cli-1.0.3-ynf2sj5r.mjs";import{Tqa as i,Xqa as t}from"./cli-1.0.3-vzm5gxzn.mjs";function Fq(){let z=f.c(9),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=X(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",J(U,{bold:!0,children:"October 8, 2025"}),". You can accept the updated terms today."]}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y,Z;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=J(U,{children:"· "}),Z=J(U,{bold:!0,children:"You can help improve Claude "}),z[2]=Y,z[3]=Z;else Y=z[2],Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(N,{paddingLeft:1,children:X(U,{children:[Y,Z,X(U,{children:["— Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",J(V,{url:"https://claude.ai/settings/data-privacy-controls"}),")."]})]})}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=X(N,{flexDirection:"column",children:[F,W,J(N,{paddingLeft:1,children:X(U,{children:[J(U,{children:"· "}),J(U,{bold:!0,children:"Updates to data retention "}),J(U,{children:"— To help us improve our AI models and safety protections, we're extending data retention to 5 years."})]})})]}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[6]=Q;else Q=z[6];let H;if(z[7]===Symbol.for("react.memo_cache_sentinel"))H=J(V,{url:"https://anthropic.com/legal/terms"}),z[7]=H;else H=z[7];let O;if(z[8]===Symbol.for("react.memo_cache_sentinel"))O=X(u,{children:[q,P,X(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",H,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[8]=O;else O=z[8];return O}function Nq(){let z=f.c(7),q;if(z[0]===Symbol.for("react.memo_cache_sentinel"))q=J(U,{children:"We've updated our Consumer Terms and Privacy Policy."}),z[0]=q;else q=z[0];let F;if(z[1]===Symbol.for("react.memo_cache_sentinel"))F=J(U,{children:"What's changing?"}),z[1]=F;else F=z[1];let Y;if(z[2]===Symbol.for("react.memo_cache_sentinel"))Y=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Help improve Claude"}),J(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"}),J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),z[2]=Y;else Y=z[2];let Z;if(z[3]===Symbol.for("react.memo_cache_sentinel"))Z=X(N,{flexDirection:"column",gap:1,children:[F,Y,X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"How this affects data retention"}),J(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."})]})]}),z[3]=Z;else Z=z[3];let W;if(z[4]===Symbol.for("react.memo_cache_sentinel"))W=J(V,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"}),z[4]=W;else W=z[4];let P;if(z[5]===Symbol.for("react.memo_cache_sentinel"))P=J(V,{url:"https://anthropic.com/legal/terms"}),z[5]=P;else P=z[5];let Q;if(z[6]===Symbol.for("react.memo_cache_sentinel"))Q=X(u,{children:[q,Z,X(U,{children:["Learn more (",W,") or read the updated Consumer Terms (",P,") and Privacy Policy (",J(V,{url:"https://anthropic.com/legal/privacy"}),")"]})]}),z[6]=Q;else Q=z[6];return Q}function kq(z){let q=f.c(34),{showIfAlreadyViewed:F,location:Y,onDone:Z}=z,[W,P]=_.useState(null),[Q,H]=_.useState(null),O,R;if(q[0]!==Y||q[1]!==Z||q[2]!==F)O=()=>{(async function(){let[e,c]=await Promise.all([x(),n()]),j=c.success?c.data:null;H(j);let l=$(e,c,F);if(P(l),!l){Z("skip_rendering");return}s(),w("tengu_grove_policy_viewed",{location:Y,dismissable:j?.notice_is_grace_period})})()},R=[F,Y,Z],q[0]=Y,q[1]=Z,q[2]=F,q[3]=O,q[4]=R;else O=q[3],R=q[4];if(_.useEffect(O,R),W===null)return null;if(!W)return null;let K;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Z)K=async function(v){q:switch(v){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Z(v)},q[5]=Q?.notice_is_grace_period,q[6]=Z,q[7]=K;else K=q[7];let A=K,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms · Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms · Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms · Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let I=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==A)G=function(){if(Q?.notice_is_grace_period){A("defer");return}A("escape")},q[10]=Q?.notice_is_grace_period,q[11]=A,q[12]=G;else G=q[12];let M=G,k;if(q[13]!==Q?.notice_is_grace_period)k=J(N,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?J(Fq,{}):J(Nq,{})}),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let D;if(q[15]===Symbol.for("react.memo_cache_sentinel"))D=J(N,{flexShrink:0,children:J(U,{color:"professionalBlue",children:Wq})}),q[15]=D;else D=q[15];let B;if(q[16]!==k)B=X(N,{flexDirection:"row",children:[k,D]}),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=X(N,{flexDirection:"column",children:[J(U,{bold:!0,children:"Please select how you'd like to continue"}),J(U,{children:"Your choice takes effect immediately upon confirmation."})]}),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==I||q[22]!==b)m=[...I,...b],q[21]=I,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==A)p=(h)=>A(h),q[24]=A,q[25]=p;else p=q[25];let y;if(q[26]!==M||q[27]!==m||q[28]!==p)y=X(N,{flexDirection:"column",gap:1,children:[T,J(o,{options:m,onChange:p,onCancel:M})]}),q[26]=M,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==M||q[31]!==y||q[32]!==B)S=X(d,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:M,inputGuide:Oq,children:[B,y]}),q[30]=M,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Oq(z){return z.pending?X(U,{children:["Press ",z.keyName," again to exit"]}):X(r,{children:[J(E,{shortcut:"Enter",action:"confirm"}),J(E,{shortcut:"Esc",action:"cancel"})]})}function _q(z){let q=f.c(17),{settings:F,domainExcluded:Y,onDone:Z}=z,[W,P]=_.useState(F.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];_.default.useEffect(Pq,Q);let H;if(q[1]!==Y||q[2]!==W)H=async(M,k)=>{if(!Y&&(k.tab||k.return||M===" ")){let D=!W;P(D),await C(D)}},q[1]=Y,q[2]=W,q[3]=H;else H=q[3];a(H);let O;if(q[4]===Symbol.for("react.memo_cache_sentinel"))O=J(U,{color:"error",children:"false"}),q[4]=O;else O=q[4];let R=O;if(Y){let M;if(q[5]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"error",children:"false (for emails with your domain)"}),q[5]=M;else M=q[5];R=M}else if(W){let M;if(q[6]===Symbol.for("react.memo_cache_sentinel"))M=J(U,{color:"success",children:"true"}),q[6]=M;else M=q[6];R=M}let K;if(q[7]!==Y)K=(M)=>M.pending?X(U,{children:["Press ",M.keyName," again to exit"]}):Y?J(E,{shortcut:"Esc",action:"cancel"}):X(r,{children:[J(E,{shortcut:"Enter/Tab/Space",action:"toggle"}),J(E,{shortcut:"Esc",action:"cancel"})]}),q[7]=Y,q[8]=K;else K=q[8];let A;if(q[9]===Symbol.for("react.memo_cache_sentinel"))A=X(U,{children:["Review and manage your privacy settings at"," ",J(V,{url:"https://claude.ai/settings/data-privacy-controls"})]}),q[9]=A;else A=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=J(N,{width:44,children:J(U,{bold:!0,children:"Help improve Claude"})}),q[10]=L;else L=q[10];let I;if(q[11]!==R)I=X(N,{children:[L,J(N,{children:R})]}),q[11]=R,q[12]=I;else I=q[12];let G;if(q[13]!==Z||q[14]!==K||q[15]!==I)G=X(d,{title:"Data Privacy",color:"professionalBlue",onCancel:Z,inputGuide:K,children:[A,I]}),q[13]=Z,q[14]=K,q[15]=I,q[16]=G;else G=q[16];return G}function Pq(){w("tengu_grove_privacy_settings_viewed",{})}var f,_,Wq=` _____________
2
+ | \\ \\
3
+ | NEW TERMS \\__\\
4
+ | |
5
+ | ---------- |
6
+ | ---------- |
7
+ | ---------- |
8
+ | ---------- |
9
+ | ---------- |
10
+ | |
11
+ |______________|`;var Aq=t(()=>{qq();Qq();Zq();Mq();Xq();Yq();Uq();g();f=i(Jq(),1),_=i(zq(),1)});
12
+ export{kq as sc,_q as tc,Aq as uc};
@@ -0,0 +1,2 @@
1
+ import{Xqa as C}from"./cli-1.0.3-vzm5gxzn.mjs";function F(m,q){switch(q.type){case"set_local_jsx":{if(q.generation<m.generation)return m;return{state:{...q.payload,isLocalJSXCommand:!0},generation:m.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:m.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(m.hasLocalJSXActive)return m;return{...m,state:q.payload}}case"set_null":{if(m.hasLocalJSXActive)return m;if(m.state===null)return m;return{...m,state:null}}}}var D;var G=C(()=>{D={state:null,generation:0,hasLocalJSXActive:!1}});function L(m){return B=m,()=>{if(B===m)B=null}}function M(m){let q=F(z,m);if(q===z)return;z=q,B?.(q.state)}function N(){return z.generation}var z,B=null;var H=C(()=>{G();z=D});
2
+ export{L as Oi,M as Pi,N as Qi,H as Ri};
@@ -0,0 +1,4 @@
1
+ import{Rpa as Q,Spa as V,Tpa as W,Upa as X,Vpa as Y,Wpa as Z,fqa as w}from"./cli-1.0.3-x1ngfkk5.mjs";import{Xqa as v}from"./cli-1.0.3-vzm5gxzn.mjs";function J(j,z){if(!(j instanceof Error))return!1;for(let G=Object.getPrototypeOf(j);G!==null;G=Object.getPrototypeOf(G))if(G.constructor?.name===z)return!0;return!1}function S(j){return j instanceof Q||J(j,"APIError")}function k(j){return j instanceof W||J(j,"APIConnectionError")}function F(j){return j instanceof X||J(j,"APIConnectionTimeoutError")}function D(j){return j instanceof V||J(j,"APIUserAbortError")}function P(j){return j instanceof Y||J(j,"AuthenticationError")}function x(j){return j instanceof Z||J(j,"NotFoundError")}function y(j){return j instanceof _||D(j)||j instanceof Error&&j.name==="AbortError"}function f(j,z){return j instanceof Error&&j.message===z}function N(j){return j instanceof Error?j:Error(String(j))}function I(j){return j instanceof Error?j.message:String(j)}function $(j){if(j&&typeof j==="object"&&"code"in j&&typeof j.code==="string")return j.code;return}function A(j){return $(j)==="ENOENT"}function p(j){if(j&&typeof j==="object"&&"path"in j&&typeof j.path==="string")return j.path;return}function C(j,z=5){if(!(j instanceof Error))return String(j);if(!j.stack)return j.message;let G=j.stack.split(`
2
+ `),H=G[0]??j.message,K=G.slice(1).filter((q)=>q.trim().startsWith("at "));if(K.length<=z)return j.stack;return[H,...K.slice(0,z)].join(`
3
+ `)}function h(j){let z=$(j);return z==="ENOENT"||z==="EACCES"||z==="EPERM"||z==="ENOTDIR"||z==="ELOOP"}function E(j){let z=I(j);if(!j||typeof j!=="object"||!("isAxiosError"in j)||!j.isAxiosError)return{kind:"other",message:z};let G=j,H=G.response?.status;if(H===401||H===403)return{kind:"auth",status:H,message:z};if(G.code==="ECONNABORTED")return{kind:"timeout",status:H,message:z};if(G.code==="ECONNREFUSED"||G.code==="ENOTFOUND")return{kind:"network",status:H,message:z};return{kind:"http",status:H,message:z}}var B,L,_,T,O,R,U;var b=v(()=>{w();B=class B extends Error{constructor(j,z){super(j,z);this.name=this.constructor.name}};L=class L extends Error{};_=class _ extends Error{constructor(j){super(j);this.name="AbortError"}};T=class T extends Error{filePath;defaultConfig;constructor(j,z,G){super(j);this.name="ConfigParseError",this.filePath=z,this.defaultConfig=G}};O=class O extends Error{stdout;stderr;code;interrupted;constructor(j,z,G,H){super("Shell command failed");this.stdout=j;this.stderr=z;this.code=G;this.interrupted=H;this.name="ShellError"}};R=class R extends Error{formattedMessage;constructor(j,z){super(j);this.formattedMessage=z;this.name="TeleportOperationError"}};U=class U extends Error{telemetryMessage;constructor(j,z){super(j);this.name="TelemetrySafeError",this.telemetryMessage=z??j}}});
4
+ export{B as _ia,L as $ia,_ as aja,S as bja,k as cja,F as dja,D as eja,P as fja,x as gja,y as hja,T as ija,O as jja,R as kja,U as lja,f as mja,N as nja,I as oja,$ as pja,A as qja,p as rja,C as sja,h as tja,E as uja,b as vja};
@@ -0,0 +1,2 @@
1
+ import{AB as P,GB as b,Ju as T,MB as j,bP as f,cP as L,jR as i,mP as r,rC as K,tC as I,uC as _,wC as p}from"./cli-1.0.3-2wzvc8te.mjs";import{uV as A,vV as n}from"./cli-1.0.3-3y945bqk.mjs";import{Nha as E,Qha as C}from"./cli-1.0.3-ynf2sj5r.mjs";import{Cia as M,Gia as m,Qia as Z,Tha as F,Tia as u,Vha as S}from"./cli-1.0.3-jmvq43wb.mjs";import{Qoa as v,lla as Y,mla as k,mpa as c}from"./cli-1.0.3-5kneybr4.mjs";n();c();r();C();p();P();S();u();m();i();k();import*as H from"path";var d=1000,o=500,l=300,e=2000,h=typeof Bun<"u",x=null,y=null,Q=new Set,B=!1,D=!1,V=!1,X=null,W=Y(),U=null;async function t(){if(B||D)return;if(B=!0,!V)V=!0,_(()=>{f(),W.emit()});let q=await a();if(q.length===0)return;Z(`Watching for changes in skill/command directories: ${q.join(", ")}...`),x=A.watch(q,{persistent:!1,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??d,pollInterval:U?.pollInterval??o},ignored:(w,z)=>{if(z&&!z.isFile()&&!z.isDirectory())return!0;return w.split(H.sep).some((J)=>J===".git")},ignorePermissionErrors:!0,usePolling:h,interval:U?.chokidarInterval??e,atomic:!0}),x.on("add",$),x.on("change",$),x.on("unlink",$),X=F(async()=>{await g()})}function g(){if(D=!0,X)X(),X=null;let q=Promise.resolve();if(x)q=x.close(),x=null;if(y)clearTimeout(y),y=null;return Q.clear(),W.clear(),q}var s=W.subscribe;async function a(){let q=M(),w=[],z=K("userSettings","skills");if(z)try{await q.stat(z),w.push(z)}catch{}let J=K("userSettings","commands");if(J)try{await q.stat(J),w.push(J)}catch{}let N=K("projectSettings","skills");if(N)try{let G=H.resolve(N);await q.stat(G),w.push(G)}catch{}let O=K("projectSettings","commands");if(O)try{let G=H.resolve(O);await q.stat(G),w.push(G)}catch{}for(let G of v()){let R=H.join(G,".claudin","skills");try{await q.stat(R),w.push(R)}catch{}}return w}function $(q){Z(`Detected skill change: ${q}`),E("tengu_skill_file_changed",{source:"chokidar"}),qq(q)}function qq(q){if(Q.add(q),y)clearTimeout(y);y=setTimeout(async()=>{y=null;let w=[...Q];Q.clear();let z=await j("skills",w[0]);if(b(z)){Z(`ConfigChange hook blocked skill reload (${w.length} paths)`);return}I(),L(),T(),W.emit()},U?.reloadDebounce??l)}async function wq(q){if(x)await x.close(),x=null;if(y)clearTimeout(y),y=null;Q.clear(),W.clear(),B=!1,D=!1,U=q??null}var Zq={initialize:t,dispose:g,subscribe:s,resetForTesting:wq};
2
+ export{Zq as ab};
@@ -0,0 +1,2 @@
1
+ import{Apa as e8,Bpa as R5,Cpa as _8,Dpa as E,Epa as h8,Fpa as P,Gpa as x1,Hpa as d,Ipa as xQ,Jpa as r,Kpa as UQ,Lpa as T5,Mpa as UY,npa as _Q,opa as YJ,ppa as v,qpa as P1,rpa as Y5,spa as w8,tpa as q,upa as y,vpa as S,wpa as kQ,xpa as L,ypa as a,zpa as n5}from"./cli-1.0.3-dyh4d1gw.mjs";import{Wqa as aQ,Xqa as X}from"./cli-1.0.3-vzm5gxzn.mjs";function h$(){this.__data__=new v,this.size=0}var QQ;var $Q=X(()=>{P1();QQ=h$});function n$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var JQ;var YQ=X(()=>{JQ=n$});function b$(Q){return this.__data__.get(Q)}var ZQ;var XQ=X(()=>{ZQ=b$});function i$(Q){return this.__data__.has(Q)}var HQ;var WQ=X(()=>{HQ=i$});function l$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<u$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var u$=200,KQ;var GQ=X(()=>{P1();xQ();UQ();KQ=l$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();$Q();YQ();XQ();WQ();GQ();g.prototype.clear=QQ;g.prototype.delete=JQ;g.prototype.get=ZQ;g.prototype.has=HQ;g.prototype.set=KQ;p=g});function c$(Q){return this.__data__.set(Q,T$),this}var T$="__lodash_hash_undefined__",BQ;var NQ=X(()=>{BQ=c$});function r$(Q){return this.__data__.has(Q)}var wQ;var zQ=X(()=>{wQ=r$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var FQ;var RQ=X(()=>{UQ();NQ();zQ();o.prototype.add=o.prototype.push=BQ;o.prototype.has=wQ;FQ=o});function o$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var qQ;var DQ=X(()=>{qQ=o$});function s$(Q,J){return Q.has(J)}var OQ;var VQ=X(()=>{OQ=s$});function e$(Q,J,Y,Z,H,W){var x=Y&a$,U=Q.length,B=J.length;if(U!=B&&!(x&&B>U))return!1;var K=W.get(Q),F=W.get(J);if(K&&F)return K==J&&F==Q;var z=-1,N=!0,V=Y&t$?new FQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var R=Q[z],D=J[z];if(Z)var f=x?Z(D,R,z,J,Q,W):Z(R,D,z,Q,J,W);if(f!==void 0){if(f)continue;N=!1;break}if(V){if(!qQ(J,function(C,_){if(!OQ(V,_)&&(R===C||H(R,C,Y,Z,W)))return V.push(_)})){N=!1;break}}else if(!(R===D||H(R,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var a$=1,t$=2,s;var C1=X(()=>{RQ();DQ();VQ();s=e$});var QJ,_1;var MQ=X(()=>{y();QJ=q.Uint8Array,_1=QJ});function $J(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var fQ=X(()=>{LQ=$J});function JJ(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var PQ;var IQ=X(()=>{PQ=JJ});function RJ(Q,J,Y,Z,H,W,x){switch(Y){case FJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case zJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case HJ:case WJ:case KJ:return _Q(+Q,+J);case xJ:return Q.name==J.name&&Q.message==J.message;case GJ:case NJ:return Q==J+"";case UJ:var U=LQ;case BJ:var B=Z&ZJ;if(U||(U=PQ),Q.size!=J.size&&!B)return!1;var K=x.get(Q);if(K)return K==J;Z|=XJ,x.set(Q,J);var F=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),F;case wJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var ZJ=1,XJ=2,HJ="[object Boolean]",WJ="[object Date]",xJ="[object Error]",UJ="[object Map]",KJ="[object Number]",GJ="[object RegExp]",BJ="[object Set]",NJ="[object String]",wJ="[object Symbol]",zJ="[object ArrayBuffer]",FJ="[object DataView]",CQ,k1,EQ;var vQ=X(()=>{kQ();MQ();YJ();C1();fQ();IQ();CQ=S?S.prototype:void 0,k1=CQ?CQ.valueOf:void 0;EQ=RJ});function qJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var dQ;var gQ=X(()=>{dQ=qJ});var DJ,w;var M=X(()=>{DJ=Array.isArray,w=DJ});function OJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:dQ(Z,Y(Q))}var pQ;var yQ=X(()=>{gQ();M();pQ=OJ});function VJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var SQ;var mQ=X(()=>{SQ=VJ});function MJ(){return[]}var AQ;var jQ=X(()=>{AQ=MJ});var LJ,fJ,hQ,PJ,nQ;var bQ=X(()=>{mQ();jQ();LJ=Object.prototype,fJ=LJ.propertyIsEnumerable,hQ=Object.getOwnPropertySymbols,PJ=!hQ?AQ:function(Q){if(Q==null)return[];return Q=Object(Q),SQ(hQ(Q),function(J){return fJ.call(Q,J)})},nQ=PJ});function IJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var iQ;var uQ=X(()=>{iQ=IJ});function CJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=CJ});function kJ(Q){return O(Q)&&L(Q)==_J}var _J="[object Arguments]",E1;var lQ=X(()=>{a();m();E1=kJ});var TQ,EJ,vJ,dJ,t;var v1=X(()=>{lQ();m();TQ=Object.prototype,EJ=TQ.hasOwnProperty,vJ=TQ.propertyIsEnumerable,dJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&EJ.call(Q,"callee")&&!vJ.call(Q,"callee")},t=dJ});function gJ(){return!1}var cQ;var rQ=X(()=>{cQ=gJ});var Q1={};aQ(Q1,{default:()=>A});var tQ,oQ,pJ,sQ,yJ,SJ,A;var d1=X(()=>{y();rQ();tQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,oQ=tQ&&typeof e=="object"&&e&&!e.nodeType&&e,pJ=oQ&&oQ.exports===tQ,sQ=pJ?q.Buffer:void 0,yJ=sQ?sQ.isBuffer:void 0,SJ=yJ||cQ,A=SJ});function jJ(Q,J){var Y=typeof Q;return J=J==null?mJ:J,!!J&&(Y=="number"||Y!="symbol"&&AJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var mJ=9007199254740991,AJ,$1;var g1=X(()=>{AJ=/^(?:0|[1-9]\d*)$/;$1=jJ});function nJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=hJ}var hJ=9007199254740991,j;var J1=X(()=>{j=nJ});function B8(Q){return O(Q)&&j(Q.length)&&!!G[L(Q)]}var bJ="[object Arguments]",iJ="[object Array]",uJ="[object Boolean]",lJ="[object Date]",TJ="[object Error]",cJ="[object Function]",rJ="[object Map]",oJ="[object Number]",sJ="[object Object]",aJ="[object RegExp]",tJ="[object Set]",eJ="[object String]",Q8="[object WeakMap]",$8="[object ArrayBuffer]",J8="[object DataView]",Y8="[object Float32Array]",Z8="[object Float64Array]",X8="[object Int8Array]",H8="[object Int16Array]",W8="[object Int32Array]",x8="[object Uint8Array]",U8="[object Uint8ClampedArray]",K8="[object Uint16Array]",G8="[object Uint32Array]",G,eQ;var Q5=X(()=>{a();J1();m();G={};G[Y8]=G[Z8]=G[X8]=G[H8]=G[W8]=G[x8]=G[U8]=G[K8]=G[G8]=!0;G[bJ]=G[iJ]=G[$8]=G[uJ]=G[J8]=G[lJ]=G[TJ]=G[cJ]=G[rJ]=G[oJ]=G[sJ]=G[aJ]=G[tJ]=G[eJ]=G[Q8]=!1;eQ=B8});function N8(Q){return function(J){return Q(J)}}var $5;var J5=X(()=>{$5=N8});var Z1={};aQ(Z1,{default:()=>X1});var Z5,i,z8,p1,F8,X1;var X5=X(()=>{w8();Z5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=Z5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,z8=i&&i.exports===Z5,p1=z8&&Y5.process,F8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=F8});var H5,R8,H1;var y1=X(()=>{Q5();J5();X5();H5=X1&&X1.isTypedArray,R8=H5?$5(H5):eQ,H1=R8});function O8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?iQ(Q.length,String):[],B=U.length;for(var K in Q)if((J||D8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,B))))U.push(K);return U}var q8,D8,W5;var x5=X(()=>{uQ();v1();M();d1();g1();y1();q8=Object.prototype,D8=q8.hasOwnProperty;W5=O8});function M8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||V8;return Q===Y}var V8,U5;var K5=X(()=>{V8=Object.prototype;U5=M8});function L8(Q,J){return function(Y){return Q(J(Y))}}var G5;var B5=X(()=>{G5=L8});var f8,N5;var w5=X(()=>{B5();f8=G5(Object.keys,Object),N5=f8});function C8(Q){if(!U5(Q))return N5(Q);var J=[];for(var Y in Object(Q))if(I8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var P8,I8,z5;var F5=X(()=>{K5();w5();P8=Object.prototype,I8=P8.hasOwnProperty;z5=C8});function k8(Q){return Q!=null&&j(Q.length)&&!R5(Q)}var q5;var D5=X(()=>{_8();J1();q5=k8});function E8(Q){return q5(Q)?W5(Q):z5(Q)}var W1;var S1=X(()=>{x5();F5();D5();W1=E8});function v8(Q){return pQ(Q,W1,nQ)}var m1;var O5=X(()=>{yQ();bQ();S1();m1=v8});function y8(Q,J,Y,Z,H,W){var x=Y&d8,U=m1(Q),B=U.length,K=m1(J),F=K.length;if(B!=F&&!x)return!1;var z=B;while(z--){var N=U[z];if(!(x?N in J:p8.call(J,N)))return!1}var V=W.get(Q),R=W.get(J);if(V&&R)return V==J&&R==Q;var D=!0;W.set(Q,J),W.set(J,Q);var f=x;while(++z<B){N=U[z];var C=Q[N],_=J[N];if(Z)var e1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(e1===void 0?C===_||H(C,_,Y,Z,W):e1)){D=!1;break}f||(f=N=="constructor")}if(D&&!f){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var d8=1,g8,p8,V5;var M5=X(()=>{O5();g8=Object.prototype,p8=g8.hasOwnProperty;V5=y8});var S8,U1;var L5=X(()=>{x1();y();S8=P(q,"DataView"),U1=S8});var m8,K1;var f5=X(()=>{x1();y();m8=P(q,"Promise"),K1=m8});var A8,G1;var P5=X(()=>{x1();y();A8=P(q,"Set"),G1=A8});var j8,B1;var I5=X(()=>{x1();y();j8=P(q,"WeakMap"),B1=j8});var C5="[object Map]",n8="[object Object]",_5="[object Promise]",k5="[object Set]",E5="[object WeakMap]",v5="[object DataView]",b8,i8,u8,l8,T8,k,A1;var d5=X(()=>{L5();xQ();f5();P5();I5();a();h8();b8=E(U1),i8=E(d),u8=E(K1),l8=E(G1),T8=E(B1),k=L;if(U1&&k(new U1(new ArrayBuffer(1)))!=v5||d&&k(new d)!=C5||K1&&k(K1.resolve())!=_5||G1&&k(new G1)!=k5||B1&&k(new B1)!=E5)k=function(Q){var J=L(Q),Y=J==n8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case b8:return v5;case i8:return C5;case u8:return _5;case l8:return k5;case T8:return E5}return J};A1=k});function o8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),B=x?p5:A1(Q),K=U?p5:A1(J);B=B==g5?N1:B,K=K==g5?N1:K;var F=B==N1,z=K==N1,N=B==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,F=!1}if(N&&!F)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):EQ(Q,J,B,Y,Z,H,W);if(!(Y&c8)){var V=F&&y5.call(Q,"__wrapped__"),R=z&&y5.call(J,"__wrapped__");if(V||R){var D=V?Q.value():Q,f=R?J.value():J;return W||(W=new p),H(D,f,Y,Z,W)}}if(!N)return!1;return W||(W=new p),V5(Q,J,Y,Z,H,W)}var c8=1,g5="[object Arguments]",p5="[object Array]",N1="[object Object]",r8,y5,S5;var m5=X(()=>{I1();C1();vQ();M5();d5();M();d1();y1();r8=Object.prototype,y5=r8.hasOwnProperty;S5=o8});function A5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return S5(Q,J,Y,Z,A5,H)}var w1;var j1=X(()=>{m5();m();w1=A5});function t8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var B=U[0],K=Q[B],F=U[1];if(x&&U[2]){if(K===void 0&&!(B in Q))return!1}else{var z=new p;if(Z)var N=Z(K,F,B,Q,J,z);if(!(N===void 0?w1(F,K,s8|a8,Z,z):N))return!1}}return!0}var s8=1,a8=2,j5;var h5=X(()=>{I1();j1();j5=t8});function QY(Q){return Q===Q&&!n5(Q)}var z1;var h1=X(()=>{e8();z1=QY});function $Y(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var b5;var i5=X(()=>{h1();S1();b5=$Y});function JY(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var F1;var n1=X(()=>{F1=JY});function YY(Q){var J=b5(Q);if(J.length==1&&J[0][2])return F1(J[0][0],J[0][1]);return function(Y){return Y===Q||j5(Y,Q,J)}}var u5;var l5=X(()=>{h5();i5();n1();u5=YY});function XY(Q){return typeof Q=="symbol"||O(Q)&&L(Q)==ZY}var ZY="[object Symbol]",h;var R1=X(()=>{a();m();h=XY});function xY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||h(Q))return!0;return WY.test(Q)||!HY.test(Q)||J!=null&&Q in Object(J)}var HY,WY,n;var q1=X(()=>{M();R1();HY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WY=/^\w*$/;n=xY});function GY(Q){var J=T5(Q,function(Z){if(Y.size===KY)Y.clear();return Z}),Y=J.cache;return J}var KY=500,c5;var r5=X(()=>{UY();c5=GY});var BY,NY,wY,o5;var s5=X(()=>{r5();BY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NY=/\\(\\)?/g,wY=c5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(BY,function(Y,Z,H,W){J.push(H?W.replace(NY,"$1"):Z||Y)}),J}),o5=wY});function zY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var a5;var t5=X(()=>{a5=zY});function $$(Q){if(typeof Q=="string")return Q;if(w(Q))return a5(Q,$$)+"";if(h(Q))return Q$?Q$.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-FY?"-0":J}var FY=1/0,e5,Q$,J$;var Y$=X(()=>{kQ();t5();M();R1();e5=S?S.prototype:void 0,Q$=e5?e5.toString:void 0;J$=$$});function RY(Q){return Q==null?"":J$(Q)}var Z$;var X$=X(()=>{Y$();Z$=RY});function qY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:o5(Z$(Q))}var D1;var b1=X(()=>{M();q1();s5();X$();D1=qY});function OY(Q){if(typeof Q=="string"||h(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-DY?"-0":J}var DY=1/0,I;var u=X(()=>{R1();I=OY});function VY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=VY});function MY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var H$;var W$=X(()=>{i1();H$=MY});function LY(Q,J){return Q!=null&&J in Object(Q)}var x$;var U$=X(()=>{x$=LY});function fY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&j(H)&&$1(x,H)&&(w(Q)||t(Q))}var K$;var G$=X(()=>{b1();v1();M();g1();J1();u();K$=fY});function PY(Q,J){return Q!=null&&K$(Q,J,x$)}var B$;var N$=X(()=>{U$();G$();B$=PY});function _Y(Q,J){if(n(Q)&&z1(J))return F1(I(Q),J);return function(Y){var Z=H$(Y,Q);return Z===void 0&&Z===J?B$(Y,Q):w1(J,Z,IY|CY)}}var IY=1,CY=2,w$;var z$=X(()=>{j1();W$();N$();q1();h1();n1();u();w$=_Y});function kY(Q){return Q}var F$;var R$=X(()=>{F$=kY});function EY(Q){return function(J){return J==null?void 0:J[Q]}}var q$;var D$=X(()=>{q$=EY});function vY(Q){return function(J){return O1(J,Q)}}var O$;var V$=X(()=>{i1();O$=vY});function dY(Q){return n(Q)?q$(I(Q)):O$(Q)}var M$;var L$=X(()=>{D$();V$();q1();u();M$=dY});function gY(Q){if(typeof Q=="function")return Q;if(Q==null)return F$;if(typeof Q=="object")return w(Q)?w$(Q[0],Q[1]):u5(Q);return M$(Q)}var f$;var P$=X(()=>{l5();z$();R$();M();L$();f$=gY});function pY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var I$;var C$=X(()=>{I$=pY});function yY(Q,J){return Q&&Q.length?I$(Q,f$(J,2)):0}var b;var _$=X(()=>{P$();C$();b=yY});import{randomUUID as u1}from"crypto";var k$=()=>{};function nX(){return l1}function bX(Q){l1=Q}function iX(Q){return V1.has(Q)?V1.get(Q):void 0}function uX(Q,J){V1.set(Q,J)}function lX(Q){return T1.get(Q)}function TX(Q,J){T1.set(Q,J)}function E$(){l1=null,V1.clear(),T1.clear()}function cX(){return c1}function rX(Q){c1=Q}function oX(){c1=void 0}var l1=null,V1,T1,c1;var v$=X(()=>{V1=new Map;T1=new Map});function d$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var g$=()=>{};import{realpathSync as p$}from"fs";import{cwd as SY}from"process";function Z9(Q){return r1.add(Q),()=>r1.delete(Q)}function X9(){L1()}function L1(){for(let Q of r1)try{Q()}catch{}}function y$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof p$==="function"){let Y=SY();try{Q=p$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],pendingSessionWakeup:null,sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,lspDeferLatchedTools:null,deferredDeltaLegacySession:!1,sessionEpochMs:Date.now()-process.uptime()*1000,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function H9(){return $.sessionId}function W9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,S$($.sessionId),$.sessionId}function x9(){return $.parentSessionId}function U9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,S$(Q)}function S$(Q){$.pendingSessionWakeup=null,jY(),$.sessionEpochMs=Date.now(),o1.emit(Q)}function G9(){return $.sessionProjectDir}function B9(){return $.originalCwd}function N9(){return $.projectRoot}function w9(Q){$.originalCwd=Q.normalize("NFC")}function z9(Q){$.projectRoot=Q.normalize("NFC")}function F9(){return $.cwd}function R9(Q){$.cwd=Q.normalize("NFC")}function q9(){return $.directConnectServerUrl}function D9(Q){$.directConnectServerUrl=Q}function O9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function V9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function M9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function L9(){return $.totalCostUSD}function f9(){return $.totalAPIDuration}function P9(){return Date.now()-$.startTime}function I9(){return $.totalAPIDurationWithoutRetries}function C9(){return $.totalToolDuration}function _9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function k9(){return $.turnHookDurationMs}function E9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function v9(){$.turnHookDurationMs=0,$.turnHookCount=0}function d9(){return $.turnHookCount}function g9(){return $.turnToolDurationMs}function p9(){$.turnToolDurationMs=0,$.turnToolCount=0}function y9(){return $.turnToolCount}function S9(){return $.turnClassifierDurationMs}function m9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function A9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function j9(){return $.turnClassifierCount}function h9(){return $.statsStore}function n9(Q){$.statsStore=Q}function b9(Q){if(Q)m$();else s1=!0}function i9(){if(s1)m$()}function m$(){$.lastInteractionTime=Date.now(),s1=!1}function u9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function l9(){return $.totalLinesAdded}function T9(){return $.totalLinesRemoved}function c9(){return b(Object.values($.modelUsage),"inputTokens")}function A$(){return b(Object.values($.modelUsage),"outputTokens")}function r9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function o9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function s9(){return b(Object.values($.modelUsage),"webSearchRequests")}function a9(){return A$()-a1}function t9(){return t1}function e9(Q){a1=A$(),t1=Q,f1=0}function QH(){return f1}function $H(){f1++}function JH(){$.hasUnknownModelCost=!0}function YH(){return $.hasUnknownModelCost}function ZH(){return $.lastMainRequestId}function XH(Q){$.lastMainRequestId=Q}function HH(){return $.lastApiCompletionTimestamp}function WH(Q){$.lastApiCompletionTimestamp=Q}function xH(){$.pendingPostCompaction=!0}function UH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function KH(){return $.lastInteractionTime}function GH(){if(M1=!0,l)clearTimeout(l);l=setTimeout(()=>{M1=!1,l=void 0},j$),l.unref?.()}function BH(){return M1}async function NH(){while(M1)await new Promise((Q)=>setTimeout(Q,j$).unref?.())}function wH(){return $.modelUsage}function zH(Q){return $.modelUsage[Q]}function FH(){return $.mainLoopModelOverride}function RH(){return $.initialMainLoopModel}function qH(Q){$.mainLoopModelOverride=Q}function DH(Q){$.initialMainLoopModel=Q}function OH(){return $.sdkBetas}function VH(Q){$.sdkBetas=Q}function MH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function LH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function fH(){throw Error("resetStateForTests can only be called in tests")}function PH(){return $.modelStrings}function IH(Q){$.modelStrings=Q}function CH(){$.modelStrings=null}function _H(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function kH(){return $.meter}function EH(){return $.sessionCounter}function vH(){return $.locCounter}function dH(){return $.prCounter}function gH(){return $.commitCounter}function pH(){return $.costCounter}function yH(){return $.tokenCounter}function SH(){return $.codeEditToolDecisionCounter}function mH(){return $.activeTimeCounter}function AH(){return $.loggerProvider}function jH(Q){$.loggerProvider=Q}function hH(){return $.eventLogger}function nH(Q){$.eventLogger=Q}function bH(){return $.meterProvider}function iH(Q){$.meterProvider=Q}function uH(){return $.tracerProvider}function lH(Q){$.tracerProvider=Q}function mY(){return!$.isInteractive}function TH(){return $.isInteractive}function cH(Q){$.isInteractive=Q}function rH(){return $.clientType}function oH(Q){$.clientType=Q}function sH(){return $.sdkAgentProgressSummariesEnabled}function aH(Q){$.sdkAgentProgressSummariesEnabled=Q}function tH(){return $.kairosActive}function eH(Q){$.kairosActive=Q,L1()}function Q4(){return $.strictToolResultPairing}function $4(Q){$.strictToolResultPairing=Q}function J4(){return $.userMsgOptIn}function Y4(Q){$.userMsgOptIn=Q,L1()}function Z4(){return $.sessionSource}function X4(Q){$.sessionSource=Q}function H4(){return $.questionPreviewFormat}function W4(Q){$.questionPreviewFormat=Q}function x4(){return $.agentColorMap}function U4(){return $.flagSettingsPath}function K4(Q){$.flagSettingsPath=Q}function G4(){return $.flagSettingsInline}function B4(Q){$.flagSettingsInline=Q}function N4(){return $.sessionIngressToken}function w4(Q){$.sessionIngressToken=Q}function z4(){return $.oauthTokenFromFd}function F4(Q){$.oauthTokenFromFd=Q}function R4(){return $.apiKeyFromFd}function q4(Q){$.apiKeyFromFd=Q}function D4(Q){$.lastAPIRequest=Q}function O4(){return $.lastAPIRequest}function V4(Q){$.lastAPIRequestMessages=Q}function M4(){return $.lastAPIRequestMessages}function L4(Q){$.lastClassifierRequests=Q}function f4(){return $.lastClassifierRequests}function P4(Q){$.cachedClaudeMdContent=Q}function I4(){return $.cachedClaudeMdContent}function C4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function _4(){return $.allowedSettingSources}function k4(Q){$.allowedSettingSources=Q}function E4(){return mY()&&$.clientType!=="claude-vscode"}function v4(Q){$.inlinePlugins=Q}function d4(){return $.inlinePlugins}function g4(Q){$.useCoworkPlugins=Q,E$()}function p4(){return $.useCoworkPlugins}function y4(Q){$.sessionBypassPermissionsMode=Q}function S4(){return $.sessionBypassPermissionsMode}function m4(Q){$.scheduledTasksEnabled=Q}function A4(){return $.scheduledTasksEnabled}function j4(){return $.sessionCronTasks}function h4(Q){$.sessionCronTasks.push(Q)}function n4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function b4(){return $.pendingSessionWakeup}function i4(Q){let J=$.pendingSessionWakeup!==null;return $.pendingSessionWakeup=Q,J}function u4(){$.pendingSessionWakeup=null}function l4(Q){$.sessionTrustAccepted=Q}function T4(){return $.sessionTrustAccepted}function c4(Q){$.sessionPersistenceDisabled=Q}function r4(){return $.sessionPersistenceDisabled}function o4(){return $.hasExitedPlanMode}function s4(Q){$.hasExitedPlanMode=Q}function a4(){return $.needsPlanModeExitAttachment}function t4(Q){$.needsPlanModeExitAttachment=Q}function e4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function Q3(){return $.needsAutoModeExitAttachment}function $3(Q){$.needsAutoModeExitAttachment=Q}function J3(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function Y3(Q){$.initJsonSchema=Q}function Z3(){return $.initJsonSchema}function X3(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function H3(){return $.registeredHooks}function W3(){$.registeredHooks=null}function x3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function U3(){$.initJsonSchema=null,$.registeredHooks=null}function K3(){return $.planSlugCache}function G3(){return $.sessionCreatedTeams}function B3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function N3(){return $.teleportedSessionInfo}function w3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function z3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function F3(){return $.invokedSkills}function R3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function q3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function D3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function O3(Q,J){}function V3(){return AY}function M3(){return $.mainThreadAgentType}function L3(Q){$.mainThreadAgentType=Q}function f3(){return $.isRemoteMode}function P3(Q){$.isRemoteMode=Q}function I3(){return $.systemPromptSectionCache}function C3(Q,J){$.systemPromptSectionCache.set(Q,J)}function _3(){$.systemPromptSectionCache.clear()}function k3(){return $.lastEmittedDate}function E3(Q){$.lastEmittedDate=Q}function v3(){return $.additionalDirectoriesForClaudeMd}function d3(Q){$.additionalDirectoriesForClaudeMd=Q}function g3(){return $.allowedChannels}function p3(Q){$.allowedChannels=Q,L1()}function y3(){return $.hasDevChannels}function S3(Q){$.hasDevChannels=Q}function m3(){return $.largeSystemPromptDetected}function A3(Q){$.largeSystemPromptDetected=Q}function j3(){return $.afkModeHeaderLatched}function h3(Q){$.afkModeHeaderLatched=Q}function n3(){return $.fastModeHeaderLatched}function b3(Q){$.fastModeHeaderLatched=Q}function i3(){return $.thinkingClearLatched}function u3(Q){$.thinkingClearLatched=Q}function l3(Q){return $.lspDeferLatchedTools?.has(Q)??!1}function T3(Q){if(!$.lspDeferLatchedTools)$.lspDeferLatchedTools=new Set;$.lspDeferLatchedTools.add(Q)}function c3(){return $.deferredDeltaLegacySession}function r3(Q){$.deferredDeltaLegacySession=Q}function jY(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null,$.lspDeferLatchedTools=null,$.deferredDeltaLegacySession=!1}function o3(){return $.sessionEpochMs}function s3(){return $.promptId}function a3(Q){$.promptId=Q}function t3(){return!1}function e3(){return null}var r1,$,o1,K9,s1=!1,a1=0,t1=null,f1=0,M1=!1,l,j$=150,AY;var hY=X(()=>{_$();k$();v$();g$();r1=new Set;$=y$();o1=d$();K9=o1.subscribe;AY=[]});
2
+ export{p as Mja,I1 as Nja,FQ as Oja,RQ as Pja,OQ as Qja,VQ as Rja,_1 as Sja,MQ as Tja,PQ as Uja,IQ as Vja,dQ as Wja,gQ as Xja,w as Yja,M as Zja,pQ as _ja,yQ as $ja,SQ as aka,mQ as bka,AQ as cka,jQ as dka,nQ as eka,bQ as fka,O as gka,m as hka,t as ika,v1 as jka,A as kka,d1 as lka,$1 as mka,g1 as nka,$5 as oka,J5 as pka,X1 as qka,X5 as rka,H1 as ska,y1 as tka,W5 as uka,x5 as vka,U5 as wka,K5 as xka,G5 as yka,B5 as zka,q5 as Aka,D5 as Bka,W1 as Cka,S1 as Dka,m1 as Eka,O5 as Fka,G1 as Gka,P5 as Hka,A1 as Ika,d5 as Jka,w1 as Kka,j1 as Lka,h as Mka,R1 as Nka,a5 as Oka,t5 as Pka,Z$ as Qka,X$ as Rka,D1 as Ska,b1 as Tka,I as Uka,u as Vka,O1 as Wka,i1 as Xka,F$ as Yka,R$ as Zka,f$ as _ka,P$ as $ka,nX as ala,bX as bla,iX as cla,uX as dla,lX as ela,TX as fla,E$ as gla,cX as hla,rX as ila,oX as jla,v$ as kla,d$ as lla,g$ as mla,Z9 as nla,X9 as ola,H9 as pla,W9 as qla,x9 as rla,U9 as sla,K9 as tla,G9 as ula,B9 as vla,N9 as wla,w9 as xla,z9 as yla,F9 as zla,R9 as Ala,q9 as Bla,D9 as Cla,O9 as Dla,V9 as Ela,M9 as Fla,L9 as Gla,f9 as Hla,P9 as Ila,I9 as Jla,C9 as Kla,_9 as Lla,k9 as Mla,E9 as Nla,v9 as Ola,d9 as Pla,g9 as Qla,p9 as Rla,y9 as Sla,S9 as Tla,m9 as Ula,A9 as Vla,j9 as Wla,h9 as Xla,n9 as Yla,b9 as Zla,i9 as _la,u9 as $la,l9 as ama,T9 as bma,c9 as cma,A$ as dma,r9 as ema,o9 as fma,s9 as gma,a9 as hma,t9 as ima,e9 as jma,QH as kma,$H as lma,JH as mma,YH as nma,ZH as oma,XH as pma,HH as qma,WH as rma,xH as sma,UH as tma,KH as uma,GH as vma,BH as wma,NH as xma,wH as yma,zH as zma,FH as Ama,RH as Bma,qH as Cma,DH as Dma,OH as Ema,VH as Fma,MH as Gma,LH as Hma,fH as Ima,PH as Jma,IH as Kma,CH as Lma,_H as Mma,kH as Nma,EH as Oma,vH as Pma,dH as Qma,gH as Rma,pH as Sma,yH as Tma,SH as Uma,mH as Vma,AH as Wma,jH as Xma,hH as Yma,nH as Zma,bH as _ma,iH as $ma,uH as ana,lH as bna,mY as cna,TH as dna,cH as ena,rH as fna,oH as gna,sH as hna,aH as ina,tH as jna,eH as kna,Q4 as lna,$4 as mna,J4 as nna,Y4 as ona,Z4 as pna,X4 as qna,H4 as rna,W4 as sna,x4 as tna,U4 as una,K4 as vna,G4 as wna,B4 as xna,N4 as yna,w4 as zna,z4 as Ana,F4 as Bna,R4 as Cna,q4 as Dna,D4 as Ena,O4 as Fna,V4 as Gna,M4 as Hna,L4 as Ina,f4 as Jna,P4 as Kna,I4 as Lna,C4 as Mna,_4 as Nna,k4 as Ona,E4 as Pna,v4 as Qna,d4 as Rna,g4 as Sna,p4 as Tna,y4 as Una,S4 as Vna,m4 as Wna,A4 as Xna,j4 as Yna,h4 as Zna,n4 as _na,b4 as $na,i4 as aoa,u4 as boa,l4 as coa,T4 as doa,c4 as eoa,r4 as foa,o4 as goa,s4 as hoa,a4 as ioa,t4 as joa,e4 as koa,Q3 as loa,$3 as moa,J3 as noa,Y3 as ooa,Z3 as poa,X3 as qoa,H3 as roa,W3 as soa,x3 as toa,U3 as uoa,K3 as voa,G3 as woa,B3 as xoa,N3 as yoa,w3 as zoa,z3 as Aoa,F3 as Boa,R3 as Coa,q3 as Doa,D3 as Eoa,O3 as Foa,V3 as Goa,M3 as Hoa,L3 as Ioa,f3 as Joa,P3 as Koa,I3 as Loa,C3 as Moa,_3 as Noa,k3 as Ooa,E3 as Poa,v3 as Qoa,d3 as Roa,g3 as Soa,p3 as Toa,y3 as Uoa,S3 as Voa,m3 as Woa,A3 as Xoa,j3 as Yoa,h3 as Zoa,n3 as _oa,b3 as $oa,i3 as apa,u3 as bpa,l3 as cpa,T3 as dpa,c3 as epa,r3 as fpa,jY as gpa,o3 as hpa,s3 as ipa,a3 as jpa,t3 as kpa,e3 as lpa,hY as mpa};
@@ -0,0 +1,16 @@
1
+ import{N7 as k2,P7 as x8}from"./cli-1.0.3-v658mswv.mjs";import{R7 as h,S7 as mZ}from"./cli-1.0.3-8a694ts0.mjs";import{b8 as d5,d8 as w8}from"./cli-1.0.3-bnd3wvym.mjs";import{C9 as N5,E9 as dZ,Fba as o1,Hca as n4,Iea as m5,Jca as nZ,Kca as v1,Kda as i,Kea as W4,Lca as h8,Mda as e1,Nda as zZ,Oba as WZ,Qea as c5,S8 as I4,Sda as Z4,T$ as S1,T8 as s,Tea as K,U$ as A8,U8 as L2,V8 as O0,W8 as y4,Wea as $0,X8 as s2,b9 as H0,c9 as G1,eea as V4,faa as a1,gda as d,gea as $4,gfa as N,jca as k,jea as O2,kea as tZ,lca as B2,lda as p5,m9 as D5,mda as C,oca as Q0,ofa as s0,p9 as cZ,pca as y,pda as L,vda as r1,waa as VZ,yca as j0}from"./cli-1.0.3-4m0kzrq4.mjs";import{Aga as M1,oga as A0,qga as k4}from"./cli-1.0.3-kwe8av2x.mjs";import{Eha as v5,Fha as d4,Gha as B0,Iha as z8,Jha as G8,Lha as O,Mha as y0}from"./cli-1.0.3-n99q1npz.mjs";import{Nha as x,Qha as j2}from"./cli-1.0.3-ynf2sj5r.mjs";import{Cia as i2,Gia as S8,Qia as z,Sia as d0,Tia as Z0,uia as K5,yia as pZ}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as p,qja as q1,vja as V1}from"./cli-1.0.3-5hpdm52h.mjs";import{Bja as F,Dja as g,Fja as P2,Ija as c4,Lja as u,yja as L5}from"./cli-1.0.3-1f00zm8y.mjs";import{Ama as s1,Ana as J1,Bna as Q1,Cna as X1,Dna as Y1,Ema as P4,Jma as v0,Kma as J2,Pna as x2,cna as f,jna as _1,lla as Y0,mla as w1,mma as p1,mpa as J0}from"./cli-1.0.3-5kneybr4.mjs";import{Lpa as v,Mpa as l0}from"./cli-1.0.3-dyh4d1gw.mjs";import{gqa as P,yqa as q2}from"./cli-1.0.3-zan6y0m1.mjs";import{Uqa as S0,Wqa as c2,Xqa as H,Yqa as e}from"./cli-1.0.3-vzm5gxzn.mjs";function I5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:q,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){q(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,q)=>{$.push({args:X,resolve:Y,reject:q,context:this}),Q()})}}var y5=()=>{};function C5(Z,$){return Z.find((J)=>J.includes($))??null}async function A5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=P2(),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 k2(),...J&&{requestHandler:new(await import("./index-1.0.3-zfk75xdr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.3-3zrx6rcy.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function u$(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=P2(),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 k2(),...J&&{requestHandler:new(await import("./index-1.0.3-zfk75xdr.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.0.3-3zrx6rcy.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await z0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function j8(Z){return Z.startsWith("anthropic.")}function R8(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function H8(Z){let $=R8(Z);for(let J of B8)if($.startsWith(`${J}.anthropic.`))return J;return}function m$(Z,$){let J=H8(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(j8(Z))return`${$}.${Z}`;return Z}var T5,p$,B8;var h5=H(()=>{l0();n();u();s0();x8();T5=v(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw N(X),X}});p$=v(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([A5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let q=Y.modelArn.lastIndexOf("/");return q>=0?Y.modelArn.substring(q+1):Y.modelArn}catch($){return N($),null}});B8=["us","eu","apac","global"]});var E2,_2,M2,S2,v2,I2,y2,T2,C2,a0,o0,r0,A2,h2,f2,G0,d$,f5;var g2=H(()=>{E2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},_2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},M2={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"},S2={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"},v2={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"},I2={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"},y2={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"},T2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},C2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},a0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},o0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},r0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},A2={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},h2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5"},f2={firstParty:"claude-sonnet-5",bedrock:"anthropic.claude-sonnet-5",vertex:"claude-sonnet-5",foundry:"claude-sonnet-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},G0={haiku35:M2,haiku45:S2,sonnet35:_2,sonnet37:E2,sonnet40:v2,sonnet45:I2,sonnet46:h2,sonnet5:f2,opus40:y2,opus41:T2,opus45:C2,opus46:a0,opus47:o0,opus48:r0,fable5:A2},d$=Object.values(G0).map((Z)=>Z.firstParty),f5=Object.fromEntries(Object.entries(G0).map(([Z,$])=>[$.firstParty,Z]))});function g5(){return Object.values(e0)}var e0,u2;var p2=H(()=>{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}}},u2=Object.fromEntries(Object.values(e0).map((Z)=>[Z.id,Z.name]))});var _0={};c2(_0,{prefetchCopilotModelCatalog:()=>n2,normalizeBareCopilotModelId:()=>d2,getEffectiveCopilotModels:()=>b8,getCopilotDisplayName:()=>O8,getCatalogCopilotMaxOutputTokens:()=>k8,getCatalogCopilotContextWindow:()=>P8,getCachedCopilotCatalog:()=>N8,fetchCopilotModelCatalog:()=>t5,copilotModelSupportsAnthropicMessages:()=>U8,_setCopilotCatalogForTesting:()=>E8});function E0(){let Z=K();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function n5(){if(!t)return!1;let Z=E0();return Z!==null&&x0===Z}function L8(){if(u5)return;u5=!0,p5(()=>{let Z=E0();if(Z&&x0!==Z)n2()})}function d2(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),X=Q.indexOf("/");return X===-1?Q:Q.slice(X+1)}function K8(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function D8(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},X=Z.capabilities?.supports??{},Y=X.vision===!0||Boolean(Q.vision),q=X.adaptive_thinking===!0||Array.isArray(X.reasoning_effort)||typeof X.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:Y,reasoning:q,tool_call:X.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:Y?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:K8(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function t5(){let Z=K();if(Z?.transport!=="github_copilot")return null;if(m5(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,X=setTimeout(()=>Q.abort(),F8);try{let Y=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...d5},signal:Q.signal});if(!Y.ok)return null;let q=await Y.json();if(!Array.isArray(q?.data))return null;let W=new Set,G=[];for(let B of q.data){let R=D8(B);if(!R||W.has(R.model.id))continue;W.add(R.model.id),G.push(R)}return G.length>0?G:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(X)}}function n2(){L8();let Z=E0();if(!Z)return;if(t&&x0!==Z)t=null,x0=null;if(Z2){if(m2===Z)return;Z2.finally(()=>n2());return}m2=Z,Z2=t5().then(($)=>{if($&&E0()===Z)t=$,x0=Z}).finally(()=>{Z2=null,m2=null})}function N8(){return t}function b8(){if(n5()){let Z=t?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return g5()}function $2(Z){if(!n5())return;let $=d2(Z);return t.find((J)=>J.model.id===$)}function O8(Z){let $=d2(Z);return $2($)?.model.name??e0[$]?.name}function U8(Z){let $=$2(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function P8(Z){return $2(Z)?.model.limit.context}function k8(Z){return $2(Z)?.model.limit.output}function E8(Z){t=Z,x0=Z?E0():null}var F8=5000,t=null,x0=null,Z2=null,m2=null,u5=!1;var M0=H(()=>{$0();w8();c5();i();Z0();p2()});function V(){let Z=K();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 ZJ(){return V()==="firstParty"}function $J(Z){let $=K();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(M0(),S0(_0)),X=Q(J);if(X!==null)return X}catch{}return!0}function JJ(){return V()}function QJ(){let Z=K();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 l=H(()=>{$0()});function Q2(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of l5)J[Q]=G0[Q][$];return J}async function _8(){let Z=Q2("bedrock"),$;try{$=await T5()}catch(Q){return N(Q),Z}if(!$?.length)return Z;let J={};for(let Q of l5){let X=G0[Q].firstParty;J[Q]=C5($,X)||Z[Q]}return J}function i5(Z){let $=Q0().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=f5[Q];if(Y&&X)J[Y]=X}return J}function X2(Z){let $;try{$=Q0().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M8(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}s5()}function j(){let Z=v0();if(Z===null)return M8(),i5(Q2(V()));return i5(Z)}async function jJ(){if(v0()!==null)return;if(V()!=="bedrock"){J2(Q2(V()));return}await s5()}var l5,s5;var Y2=H(()=>{J0();s0();y5();j0();h5();g2();l();l5=Object.keys(G0);s5=I5(async()=>{if(v0()!==null)return;try{let Z=await _8();J2(Z)}catch(Z){N(Z)}})});function FJ(){if(F(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=I0(),J=X0()!==null;if(!$.hasToken&&!J)return!1;let Q=L(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function LJ(){if(a5!==null)return a5;if(!U())return!1;let Z=M();if(Z==="max"||Z==="pro")return!0;let J=L().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var a5=null;var o5=H(()=>{n();i();u()});function bJ(Z){return Z}function OJ(){return!1}function r5(){return null}function e5(){return!1}var Z1=H(()=>{o5()});async function SJ(){let $=L().oauthAccount?.accountUuid,J=X0();if(!$||!J)return;let Q=`${O().BASE_API_URL}/api/claude_cli_profile`;try{return(await P.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(X){N(X)}}async function R0(Z){let $=`${O().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 t2=H(()=>{q2();y0();n();i();s0()});import{mkdirSync as v8,writeFileSync as I8}from"fs";function C8(Z,$,J){if(!F(process.env.CLAUDE_CODE_REMOTE))return;try{v8(V2,{recursive:!0,mode:448}),I8(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function $1(Z,$){try{let Q=i2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!q1(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function W1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let q=process.env[Z];if(!q){let G=$1($,J);return X(G),G}let W=parseInt(q,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${q}`,{level:"error"}),X(null),null;try{let G=i2(),B=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(B,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),C8($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let B=$1($,J);return X(B),B}}function W2(){return W1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:y8,label:"OAuth token",getCached:J1,setCached:Q1})}function l2(){return W1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:T8,label:"API key",getCached:X1,setCached:Y1})}var V2="/home/claude/.claude/remote",y8,T8,fJ;var z1=H(()=>{J0();Z0();u();V1();S8();y8=`${V2}/.oauth_token`,T8=`${V2}/.api_key`,fJ=`${V2}/.session_ingress_token`});async function x1(){if(process.platform==="darwin"){let Z=s();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function z2(Z){return Z.slice(-20)}var j1=H(()=>{G1();s2()});function dJ(Z){return Z?.name==="CredentialsProviderError"}function B1(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 a2(){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 H1=H(()=>{Z0()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!T.instance)T.instance=new T;return T.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(T.instance)T.instance.changed.clear(),T.instance=null}}var F1=H(()=>{w1()});var G2="claude-code-20250219",L1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",K1="context-management-2025-06-27",D1="structured-outputs-2025-12-15",o2="web-search-2025-03-05",N1="advanced-tool-use-2025-11-20",b1="tool-search-tool-2025-10-19",lJ="effort-2025-11-24",sJ="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",aJ="extended-cache-ttl-2025-04-11",oJ="fast-mode-2026-02-01",U1="redact-thinking-2026-02-12",P1="thinking-token-count-2026-05-13",k1="token-efficient-tools-2026-03-28",rJ="afk-mode-2026-01-31",eJ="advisor-tool-2026-03-01",r2,Z3;var e2=H(()=>{r2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),Z3=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(V()!=="firstParty")return!1;return!F(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function I1(){if(!A())return!1;return g8()===null}function f8(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 g8(){if(V()!=="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(!S1()&&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(!k("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(_.status==="disabled"){if(_.reason==="network_error"||_.reason==="unknown"){if(F(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=f8(_.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function L3(){return"opus"+(f0()?"[1m]":"")}function K3(Z){if(!A())return!1;if(!I1())return!1;if(!y1(Z))return!1;let $=Q0();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function y1(Z){if(!A())return!1;let $=Z??h0(),J=I($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function u8(){if(w0.status==="cooldown"&&Date.now()>=w0.resetAt){if(A()&&!Z5)z("Fast mode cooldown expired, re-enabling fast mode"),Z5=!0,C1.emit();w0={status:"active"}}return w0}function b3(Z,$){if(!A())return;w0={status:"cooldown",resetAt:Z,reason:$},Z5=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),T1.emit(Z,$)}function O3(){w0={status:"active"}}function U3(){if(_.status==="disabled")return;_={status:"disabled",reason:"preference"},B2("userSettings",{fastMode:void 0}),C((Z)=>({...Z,penguinModeOrgEnabled:!1})),$5.emit(!1)}function p8(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 m8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function k3(Z){let $=p8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!m8(Z))B2("userSettings",{fastMode:void 0}),C((J)=>({...J,penguinModeOrgEnabled:!1}));A1.emit($)}function c8(){return u8().status==="cooldown"}function E3(Z,$){let J=A()&&I1()&&!!$&&y1(Z);if(J&&c8())return"cooldown";if(J)return"on";return"off"}async function d8(Z){let $=`${O().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await P.get($,{headers:J})).data}function M3(){if(!A())return;if(_.status!=="pending")return;_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function S3(){if(v1())return;if(!A())return;if(C0)return z("Fast mode prefetch in progress, returning in-flight promise"),C0;let Z=X0();if(!(w()?.accessToken&&q0())&&!Z){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-E1<n8){z("Skipping fast mode prefetch, fetched recently");return}E1=J;let Q=async()=>{let Y=w(),q=Y?.accessToken&&q0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!q)throw Error("No auth available");return d8(q)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(P.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let B=w()?.accessToken;if(B)await J5(B),Y=await Q();else throw W}else throw W}let q=_.status!=="pending"?_.status==="enabled":L().penguinModeOrgEnabled;if(_=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},q!==Y.enabled){if(!Y.enabled)B2("userSettings",{fastMode:void 0});C((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),$5.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){_=L().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${_.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),x("tengu_org_penguin_mode_fetch_failed",{})}finally{C0=null}}return C0=X(),C0}var F3="Opus 4.7",w0,Z5=!1,T1,C1,D3,N3,A1,P3,_,$5,_3,n8=30000,E1=0,C0=null;var h1=H(()=>{q2();y0();M1();J0();j2();n();A8();i();Z0();u();F0();l();h8();j0();w1();w0={status:"active"},T1=Y0(),C1=Y0(),D3=T1.subscribe,N3=C1.subscribe;A1=Y0(),P3=A1.subscribe;_={status:"pending"},$5=Y0(),_3=$5.subscribe});function r8(Z){for(let $ of o8)if($.pattern.test(Z))return $.cost;return}function Q5(Z){if(A()&&Z)return i8;return K0}function e8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,X=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+X+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function ZZ(Z,$){let J=b(Z);if(J===D(a0.firstParty)||J===D(o0.firstParty)||J===D(r0.firstParty)){let X=$.speed==="fast";return Q5(X)}let Q=g1[J];if(!Q){let X=r8(Z);if(X)return X;return $Z(Z,J),g1[b(h0())]??a8}return Q}function $Z(Z,$){x("tengu_unknown_model_cost",{model:Z,shortName:$}),p1()}function JZ(Z,$){let J=ZZ(Z,$);return e8(J,$)}function h3(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return JZ(Z,J)}function u1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function m1(Z){return`${u1(Z.inputTokens)}/${u1(Z.outputTokens)} per Mtok`}var L0,f1,K0,t8,i8,l8,s8,a8,o8,g1;var c1=H(()=>{j2();J0();h1();g2();F0();L0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},f1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},K0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},t8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},l8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},s8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},a8=K0,o8=[{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(M2.firstParty)]:l8,[D(S2.firstParty)]:s8,[D(_2.firstParty)]:L0,[D(E2.firstParty)]:L0,[D(v2.firstParty)]:L0,[D(I2.firstParty)]:L0,[D(h2.firstParty)]:L0,[D(f2.firstParty)]:L0,[D(y2.firstParty)]:f1,[D(T2.firstParty)]:f1,[D(C2.firstParty)]:K0,[D(a0.firstParty)]:K0,[D(o0.firstParty)]:K0,[D(r0.firstParty)]:K0,[D(A2.firstParty)]:t8}});function m(Z){return QZ.includes(Z)}function D0(Z){return XZ.includes(Z)}var QZ,XZ;var X5=H(()=>{QZ=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];XZ=["sonnet","opus","haiku"]});function YZ(Z,$){if(Z.includes($))return!0;if(m(Z))return I(Z).toLowerCase().includes($);return!1}function d1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function qZ(Z,$){let J=m(Z)?I(Z).toLowerCase():Z;if(d1(J,$))return!0;if(!$.startsWith("claude-")&&d1(J,`claude-${$}`))return!0;return!1}function n1(Z,$){for(let J of $){if(D0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function t1(Z){let $=y()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=X2(Z).trim().toLowerCase(),Y=J.map((q)=>q.trim().toLowerCase());if(Y.includes(X)){if(!D0(X)||!n1(X,Y))return!0}for(let q of Y)if(D0(q)&&!n1(q,Y)&&YZ(X,q))return!0;if(m(X)){let q=I(X).toLowerCase();if(Y.includes(q))return!0}for(let q of Y)if(!D0(q)&&m(q)){if(I(q).toLowerCase()===X)return!0}for(let q of Y)if(!D0(q)&&!m(q)){if(qZ(X,q))return!0}return!1}var i1=H(()=>{j0();X5();F0();Y2()});function R2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function b0(){let Z=K();if(!Z?.model)return;return e1(Z.model)}function W7(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"codexspark";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return J4()}function z7(Z){return Z===j().opus40||Z===j().opus41||Z===j().opus45||Z===j().opus46||Z===j().opus47||Z===j().opus48}function Y5(){let Z,$=s1();if($!==void 0)Z=$;else{let J=y()||{},Q=R2(J.model),X=b0();if(Z4()!==void 0)Z=R2(r1().activeModelForProject)||void 0;else Z=X||Q||void 0}if(Z&&!t1(Z))return;return Z}function G7(){let Z=Y5();if(Z!==void 0&&Z!==null)return I(Z);return Q4()}function GZ(){return N0()}function N0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.5-pro";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.7";if(V()!=="firstParty")return j().opus46;return j().opus48}function g0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=b0();if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"mistral-medium-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5";if(V()!=="firstParty")return j().sonnet45;return j().sonnet5}function J4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=b0();if(V()==="mistral")return Z||"ministral-3b-latest";if(V()==="openai")return Z||"gpt-4o-mini";if(V()==="codex")return Z||"gpt-5.5";if(V()==="github")return Z||"github:copilot";if(V()==="gemini")return Z||"gemini-2.0-flash-lite";if(V()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(V()==="minimax")return Z||"MiniMax-M2.5-highspeed";return j().haiku45}function x7(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(Y5()==="opusplan"&&$==="plan"&&!Q)return N0();if(Y5()==="haiku"&&$==="plan")return g0();return J}function h0(){let Z=b0();if(V()==="github"){let $=y()||{};return R2($.model)||Z||"github:copilot"}if(V()==="gemini")return Z||"gemini-2.0-flash";if(V()==="mistral")return Z||"devstral-latest";if(V()==="openai")return Z||"gpt-4o";if(V()==="codex")return Z||"gpt-5.5";if(H2())return N0()+(f0()?"[1m]":"");if(w2())return N0()+(f0()?"[1m]":"");return g0()}function Q4(){return I(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 b(Z){return D(X2(Z))}function xZ(Z=!1){if(H2()||w2()){if(f0())return`Opus 4.8 with 1M context · Most capable for complex work${Z?l1(!0):""}`;return`Opus 4.8 · Most capable for complex work${Z?l1(!0):""}`}return"Sonnet 5 · Best for everyday tasks"}function j7(Z){if(Z==="opusplan")return"Opus 4.8 in plan mode, else Sonnet 5";return Y4(I(Z))}function l1(Z){if(V()!=="firstParty")return"";let $=m1(Q5(Z));return` ·${Z?` (${a1})`:""} ${$}`}function f0(){if(V0()||W5()||V()!=="firstParty")return!1;if(U()&&M()===null)return!1;return!0}function B7(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return o1(Z);return Y4(Z)}function X4(Z){if(V()==="openai"||V()==="gemini"||V()==="codex"||V()==="github"){if(u2[Z])return u2[Z];if(V()==="github"){let{getCopilotDisplayName:$}=(M0(),S0(_0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case j().fable5:return"Fable 5";case j().opus48:return"Opus 4.8";case j().opus48+"[1m]":return"Opus 4.8 (1M context)";case j().opus47:return"Opus 4.7";case j().opus47+"[1m]":return"Opus 4.7 (1M context)";case j().opus46:return"Opus 4.6";case j().opus46+"[1m]":return"Opus 4.6 (1M context)";case j().opus45:return"Opus 4.5";case j().opus41:return"Opus 4.1";case j().opus40:return"Opus 4";case j().sonnet5:return"Sonnet 5";case j().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case j().sonnet46:return"Sonnet 4.6";case j().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case j().sonnet45:return"Sonnet 4.5";case j().sonnet40:return"Sonnet 4";case j().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case j().sonnet37:return"Sonnet 3.7";case j().sonnet35:return"Sonnet 3.5";case j().haiku45:return"Haiku 4.5";case j().haiku35:return"Haiku 3.5";default:return null}}function Y4(Z){let $=X4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R7(Z){let $=X4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function I(Z){let $=R2(Z);if(!$)return g0();let J=$.toLowerCase(),Q=a(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return g0()+(Q?"[1m]":"");case"sonnet":return g0()+(Q?"[1m]":"");case"haiku":return J4()+(Q?"[1m]":"");case"opus":return N0()+(Q?"[1m]":"");case"best":return GZ();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(X==="fable"||X==="fable5")return j().fable5;if(V()==="firstParty"&&BZ(X)&&RZ())return N0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function H7(Z,$){if(a(Z)||!a($))return Z;if(q5(I(Z)))return Z+"[1m]";return Z}function BZ(Z){return jZ.includes(Z)}function RZ(){return!F(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function w7(Z){if(Z===null){if(U())return`Default (${xZ()})`;return`Default (${Q4()})`}let $=I(Z);return Z===$?$:`${Z} (${$})`}function F7(Z){if(V()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(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 L7(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function K7(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")||$.includes("sonnet-5")}var jZ;var F0=H(()=>{J0();$0();i();$4();n();V5();u();zZ();Y2();c1();j0();l();VZ();i1();X5();WZ();p2();jZ=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function z5(Z){return}async function N7(){}var q4=()=>{};var B4={};c2(B4,{prefetchOpenAICompatibleModels:()=>UZ,getDiscoveredContextWindow:()=>HZ,discoverOpenAICompatibleModelOptions:()=>j4});function HZ(Z){return G4.get(Z)}function wZ(){return(K()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function x4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function FZ(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function LZ(Z){let $=K()?.apiKey?.trim();if(!$)return{};if(FZ(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(x4(Z))J["api-key"]=$;return J}function KZ(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&x4(Z)?(Y)=>{try{let q=new URL(Y);return q.searchParams.set("api-version",Q),q.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function DZ(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function NZ(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function bZ(Z,$){let J=new Set;for(let Q of Z)try{let X=await P.get(Q,{headers:$,timeout:z4}),Y=[];for(let q of X.data?.data??[]){let W=q.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=q.name?.trim()||W,B=q.context_length??null;if(B&&B>0)G4.set(W,B);let R=B?` · ${NZ(B)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((q,W)=>{let G=String(q.value).split("/")[0]??"",B=String(W.value).split("/")[0]??"",R=G.localeCompare(B);return R!==0?R:String(q.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function OZ(Z,$){try{let J=await P.get(Z,{headers:$,timeout:z4}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function j4(){if(V()!=="openai")return[];let Z=wZ(),$=LZ(Z),J=await bZ(KZ(Z),$);if(J.length>0)return J;let Q=DZ(Z);if(Q)return OZ(Q,$);return[]}function UZ(){if(u0)return u0;return u0=(async()=>{if(!W4()?.startsWith("openai:"))return;try{let $=await j4();if($.length>0)V4($)}catch{}finally{u0=null}})(),u0}var z4=5000,G4,u0=null;var R4=H(()=>{q2();$0();c5();Z0();l();$4();G4=new Map});function w4(Z,$,J){let Q=K()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=H4($,J);if(X!==void 0)return X;return H4(Z,J)}function H4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function F4(Z){let $=w4(PZ,EZ,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(R4(),S0(B4)),Q=J(Z);if(Q!==void 0)return Q}catch{}try{let{getCatalogCopilotContextWindow:J}=(M0(),S0(_0));return J(Z)}catch{return}}function L4(Z){let $=w4(kZ,_Z,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(M0(),S0(_0));return J(Z)}catch{return}}var PZ,kZ,EZ,_Z;var K4=H(()=>{$0();PZ={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":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},kZ={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":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},EZ=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),_Z=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function D4(){let Z=K()?.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 a(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function q5(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("fable-5")}function p7(Z,$){if(a(Z))return 1e6;if(D4()){let Q=F4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),MZ}let J=z5(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>G5&&V0())return G5;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")))return 1e6;if($?.includes(T0)&&q5(Z))return 1e6;if(IZ(Z))return 1e6;return G5}function IZ(Z){if(V0())return!1;if(a(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return L().clientDataCache?.coral_reef_sonnet==="true"}function m7(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function c7(Z){let $,J;if(D4()){let Y=L4(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=b(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 $=SZ,J=vZ;let X=z5(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var G5=200000,MZ,f7=20000,SZ=32000,vZ=64000,g7=8000,u7=64000;var V5=H(()=>{e2();$0();i();u();F0();q4();K4();MZ=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var yZ,N4;var b4=H(()=>{l0();l();yZ=[{modelEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"},{modelEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL",capabilitiesEnvVar:"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"}],N4=v((Z,$)=>{if(V()==="firstParty")return;let J=Z.toLowerCase();for(let Q of yZ){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((q)=>q.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function TZ(Z){let $=[],J=[];for(let Q of Z)if(E4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function V9(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=TZ(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${E4.join(", ")}`);return $.length>0?$:void 0}function O4(Z){let $=N4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=V();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 CZ(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function AZ(Z){let $=b(Z),J=V();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 hZ(Z){let $=b(Z),J=V();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 W9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function z9(){let Z=V();if(Z==="vertex"||Z==="bedrock")return b1;return N1}function U4(){return(V()==="firstParty"||V()==="foundry")&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function G9(){if(F(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return V()==="firstParty"&&!F(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function x9(Z,$){let J=[..._4(Z)];if($?.isAgenticQuery){if(!J.includes(G2))J.push(G2)}let Q=P4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function M4(){x5.cache?.clear?.(),_4.cache?.clear?.(),fZ.cache?.clear?.()}var E4,x5,_4,fZ;var S4=H(()=>{l0();M1();J0();e2();y0();n();V5();u();F0();b4();l();j0();E4=[T0];x5=v((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=V(),X=U4();if(!J)$.push(G2);if(U())$.push(B0);if(a(Z))$.push(T0);if(!F(process.env.DISABLE_INTERLEAVED_THINKING)&&O4(Z))$.push(L1);if(X&&O4(Z)&&!f()&&Q0().showThinkingSummaries!==!0)$.push(U1),$.push(P1);let Y=AZ(Z);if(U4()&&Y)$.push(K1);let q=k4("tengu_tool_pear"),W=!q&&(F(process.env.CLAUDE_CODE_JSON_TOOL_USE)||A0("tengu_amber_json_tools",!1));if(X&&hZ(Z)&&q)$.push(D1);if(X&&W)$.push(k1);if(Q==="vertex"&&CZ(Z))$.push(o2);if(Q==="foundry")$.push(o2);if(X)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),_4=v((Z)=>{let $=x5(Z);if(V()==="bedrock")return $.filter((J)=>!r2.has(J));return $}),fZ=v((Z)=>{return x5(Z).filter((J)=>r2.has(J))})});import{execFile as gZ}from"child_process";function v4(Z){return new Promise(($)=>{gZ("security",["find-generic-password","-a",L2(),"-w","-s",Z],{encoding:"utf-8",timeout:uZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function w9(){if(process.platform!=="darwin"||F2||g())return;let Z=v4(s(I4)),$=v4(s());F2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)y4(J.stdout);if(!Q.timedOut)j5={stdout:Q.stdout}})}async function F9(){if(F2)await F2}function T4(){return j5}function B5(){j5=null}var uZ=1e4,j5=null,F2=null;var C4=H(()=>{u();s2()});function R5(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,B)=>{W?.removeEventListener("abort",G),B()},Z,$,q,Q);function q(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",q,{once:!0}),J?.unref)Y.unref()})}var A4=()=>{};function D9(){return h4}function f4(){h4.clear()}var h4;var g4=H(()=>{h4=new Map});var S$={};c2(S$,{validateForceLoginOrg:()=>M$,saveOAuthTokensIfNeeded:()=>J8,saveApiKey:()=>M5,removeApiKey:()=>w$,refreshGcpCredentialsIfNeeded:()=>_5,refreshGcpAuth:()=>Z8,refreshAwsAuth:()=>r4,refreshAndGetAwsCredentials:()=>z0,prefetchGcpCredentialsIfSafe:()=>j$,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>B$,prefetchApiKeyFromApiKeyHelperIfSafe:()=>$$,isUsing3PServices:()=>b2,isTeamSubscriber:()=>b$,isTeamPremiumSubscriber:()=>w2,isProSubscriber:()=>W5,isOverageProvisioningAllowed:()=>D$,isOtelHeadersHelperFromProjectOrLocalSettings:()=>q8,isMaxSubscriber:()=>H2,isGcpAuthRefreshFromProjectSettings:()=>E5,isEnterpriseSubscriber:()=>O$,isCustomApiKeyApproved:()=>H$,isConsumerSubscriber:()=>E$,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>P5,isAwsAuthRefreshFromProjectSettings:()=>O5,isAnthropicAuthEnabled:()=>k0,is1PApiCustomer:()=>K$,hasProfileScope:()=>q0,hasOpusAccess:()=>N$,hasAnthropicApiKeyAuth:()=>oZ,handleOAuth401Error:()=>J5,getSubscriptionType:()=>M,getSubscriptionName:()=>X8,getRateLimitTier:()=>Q8,getOtelHeadersFromHelper:()=>P$,getOauthAccountInfo:()=>N2,getConfiguredApiKeyHelper:()=>o,getClaudeAIOAuthTokensAsync:()=>c0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>I0,getApiKeyHelperElapsedMs:()=>rZ,getApiKeyFromConfigOrMacOSKeychain:()=>U2,getApiKeyFromApiKeyHelperCached:()=>w5,getApiKeyFromApiKeyHelper:()=>o4,getAnthropicApiKeyWithSource:()=>n0,getAnthropicApiKey:()=>X0,getAccountInformation:()=>_$,clearOAuthTokenCache:()=>S5,clearGcpCredentialsCache:()=>x$,clearAwsCredentialsCache:()=>q$,clearApiKeyHelperCache:()=>Z$,checkGcpCredentialsValid:()=>e4,checkAndRefreshOAuthTokenIfNeeded:()=>t0,calculateApiKeyHelperTTL:()=>a4});import{exec as l4}from"child_process";import{mkdir as iZ,stat as lZ}from"fs/promises";import{join as sZ}from"path";function D2(){return F(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function k0(){if(g())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=b2(),J=(y()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=n0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!D2()||Y&&!D2())}function I0(){if(g()){if(o())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(W2()){if(process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)return{source:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",hasToken:!0};return{source:"CCR_OAUTH_TOKEN_FILE",hasToken:!0}}if(o()&&!D2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(P0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function X0(){let{key:Z}=n0();return Z}function oZ(){try{let{key:Z,source:$}=n0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function n0(Z={}){let $=(()=>{let q=K();if(q?.transport!=="anthropic")return;let W=q.apiKey?.trim();return W&&W.length>0?W:void 0})();if(g()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(o())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:w5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=c4()?void 0:$;if(x2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(F(process.env.CI)){let q=l2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!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&&L().customApiKeyResponses?.approved?.includes(z2(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(o()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:w5(),source:"apiKeyHelper"}}let Y=U2();if(Y)return Y;return{key:null,source:"none"}}function o(){if(g())return k("flagSettings")?.apiKeyHelper;return(y()||{}).apiKeyHelper}function s4(){let Z=o();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function b5(){return(y()||{}).awsAuthRefresh}function O5(){let Z=b5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function U5(){return(y()||{}).awsCredentialExport}function P5(){let Z=U5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function a4(){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 aZ}function rZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function o4(Z){if(!o())return null;let $=a4();if(S){if(Date.now()-S.timestamp<$)return S.value;if(!c)c={promise:u4(Z,!1,U0),startedAt:null};return S.value}if(c)return c.promise;return c={promise:u4(Z,!0,U0),startedAt:Date.now()},c.promise}async function u4(Z,$,J){try{let Q=await eZ(Z);if(J!==U0)return Q;if(Q!==null)S={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==U0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&S&&S.value!==" ")return S={...S,timestamp:Date.now()},S.value;return S={value:" ",timestamp:Date.now()}," "}finally{if(J===U0)c=null}}async function eZ(Z){let $=o();if(!$)return null;if(s4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("apiKeyHelper invoked before trust check",Y),x("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function w5(){return S?.value??null}function Z$(){U0++,S=null,c=null}function $$(Z){if(s4()&&!d())return;o4(Z)}async function Q$(){let Z=b5();if(!Z)return!1;if(O5()){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 a2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return r4(Z)}}function r4(Z){z("Running AWS auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:X$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function Y$(){let Z=U5();if(!Z)return null;if(P5()){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 a2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=K5($.stdout.trim());if(!B1(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 q$(){z0.cache.clear()}function k5(){return(y()||{}).gcpAuthRefresh}function E5(){let Z=k5();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function e4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=R5(V$).then(()=>{throw new V8("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function z$(){let Z=k5();if(!Z)return!1;if(E5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return d0("gcpAuthRefresh invoked before trust check",J),x("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await e4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Z8(Z)}function Z8(Z){z("Running GCP auth refresh command");let $=T.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=l4(Z,{timeout:G$});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function x$(){_5.cache.clear()}function j$(){if(!k5())return;if(E5()){if(!d()&&!f())return}_5()}function B$(){let Z=b5(),$=U5();if(!Z&&!$)return;if(O5()||P5()){if(!d()&&!f())return}z0(),j()}function R$(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function M5(Z){if(!R$(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await $8();let $=!1;if(process.platform==="darwin")try{let Q=s(),X=L2(),Y=Buffer.from(Z,"utf-8").toString("hex"),q=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
2
+ `;await H0("security",["-i"],{input:q,reject:!1}),x("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){N(Q),x("tengu_api_key_keychain_error",{error:p(Q)}),x("tengu_api_key_saved_to_config",{})}else x("tengu_api_key_saved_to_config",{});let J=z2(Z);C((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U2.cache.clear?.(),B5()}function H$(Z){let $=L(),J=z2(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function w$(){await $8(),C((Z)=>({...Z,primaryApiKey:void 0})),U2.cache.clear?.(),B5()}async function $8(){try{await x1()}catch(Z){N(Z)}}function J8(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 $=O2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)x("tengu_oauth_tokens_saved",{storageBackend:J});else x("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),M4(),f4(),Y}catch(Q){return N(Q),x("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function S5(){w.cache?.clear?.(),O0()}async function F$(){try{let{mtimeMs:Z}=await lZ(sZ(L5(),".credentials.json"));if(Z!==p4)p4=Z,S5()}catch{w.cache?.clear?.()}}function J5(Z){let $=H5.get(Z);if($)return $;let J=L$(Z).finally(()=>{H5.delete(Z)});return H5.set(Z,J),J}async function L$(Z){S5();let $=await c0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("tengu_oauth_401_recovered_from_keychain",{}),!0;return t0(0,!0)}async function c0(){if(g())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||W2())return w();try{let J=(await O2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return N(Z),null}}function t0(Z=0,$=!1){if(Z===0&&!$){if(p0)return p0;return p0=F5(Z,$).finally(()=>{p0=null}),p0}return F5(Z,$)}async function F5(Z,$){await F$();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?.(),O0();let X=await c0();if(!X?.refreshToken||!m0(X.expiresAt))return!1;let Y=L5();await iZ(Y,{recursive:!0});let q;try{x("tengu_oauth_token_refresh_lock_acquiring",{}),q=await n4(Y),x("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return x("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await R5(1000+Math.random()*1000),F5(Z+1,$);return x("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return N(W),x("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),O0();let W=await c0();if(!W?.refreshToken||!m0(W.expiresAt))return x("tengu_oauth_token_refresh_race_resolved",{}),!1;x("tengu_oauth_token_refresh_starting",{});let G=await t4(W.refreshToken,{scopes:P0(W.scopes)?void 0:W.scopes});return J8(G),w.cache?.clear?.(),O0(),!0}catch(W){N(W),w.cache?.clear?.(),O0();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 U(){if(!k0())return!1;return P0(w()?.scopes)}function q0(){return w()?.scopes?.includes(d4)??!1}function K$(){{let Z=K()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function N2(){return k0()?L().oauthAccount:void 0}function D$(){let $=N2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function N$(){let Z=M();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function M(){if(e5())return r5();if(!k0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H2(){return M()==="max"}function b$(){return M()==="team"}function w2(){return M()==="team"&&Q8()==="default_claude_max_5x"}function O$(){return M()==="enterprise"}function W5(){return M()==="pro"}function Q8(){if(!k0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function X8(){switch(M()){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=K()?.transport;if(!Z)return!1;return Z!=="anthropic"}function Y8(){return(y()||{}).otelHeadersHelper}function q8(){let Z=Y8();if(!Z)return!1;let $=k("projectSettings"),J=k("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function P$(){let Z=Y8();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||U$.toString());if(K2&&Date.now()-m4<$)return K2;if(q8()){if(!d())return{}}try{let J=D5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=K5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return K2=Q,m4=Date.now(),K2}catch(J){throw N(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function k$(Z){return Z==="max"||Z==="pro"}function E$(){let Z=M();return U()&&Z!==null&&k$(Z)}function _$(){if(V()!=="firstParty")return;let{source:$}=I0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=X8();else J.tokenSource=$;let{key:Q,source:X}=n0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let q=N2()?.organizationName;if(q)J.organization=q}let Y=N2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function M$(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!k0())return{valid:!0};let Z=k("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await t0();let $=w();if(!$)return{valid:!0};let{source:J}=I0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await R0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${Z} but the profile could not be fetched.
4
+ This may be a network error, or the token may lack the user:profile scope required for
5
+ verification (tokens from 'claude setup-token' do not include this scope).
6
+ Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
+ different organization than required by this machine's managed settings.
8
+
9
+ Required organization: ${Z}
10
+ Token organization: ${Y}
11
+
12
+ Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
13
+ but this machine requires organization ${Z}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var aZ=300000,S=null,c=null,U0=0,J$=3600000,X$=180000,z0,V$=5000,W$=3600000,G$=180000,_5,U2,w,p4=0,H5,p0=null,K2=null,m4=0,U$=1740000,V8;var n=H(()=>{mZ();G1();l0();y0();j2();Y2();l();J0();$0();Z1();i4();t2();z1();j1();H1();F1();S4();i();Z0();u();V1();cZ();nZ();s0();dZ();tZ();C4();s2();j0();A4();pZ();g4();z0=N5(async()=>{let Z=await Q$(),$=await Y$();if(Z||$)await R1();return $},J$);_5=N5(async()=>{return await z$()},W$);U2=v(()=>{if(g())return null;if(process.platform==="darwin"){let $=T4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=s();try{let Q=D5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){N(Q)}}}let Z=L();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=v(()=>{if(g())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=O2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return N($),null}});H5=new Map;V8=class V8 extends Error{}});function P0(Z){return Boolean(Z?.includes(v5))}function v$(Z){return Z?.split(" ").filter(Boolean)??[]}function GQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:q,loginHint:W,loginMethod:G}){let B=X?O().CLAUDE_AI_AUTHORIZE_URL:O().CONSOLE_AUTHORIZE_URL,R=new URL(B);R.searchParams.append("code","true"),R.searchParams.append("client_id",O().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?O().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=Y?[v5]:G8;if(R.searchParams.append("scope",W0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),q)R.searchParams.append("orgUUID",q);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function xQ(Z,$,J,Q,X=!1,Y){let q={grant_type:"authorization_code",code:Z,redirect_uri:X?O().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:O().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)q.expires_in=Y;let W=await P.post(O().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return x("tengu_oauth_token_exchange_success",{}),W.data}async function t4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:O().CLIENT_ID,scope:(($?.length)?$:z8).join(" ")};try{let Q=await P.post(O().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:q=Z,expires_in:W}=X,G=Date.now()+W*1000,B=v$(X.scope);x("tengu_oauth_token_refresh_success",{});let R=L(),W0=w(),E=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await I$(Y);if(E&&R.oauthAccount){let r={};if(E.displayName!==void 0)r.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")r.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)r.billingType=E.billingType;if(E.accountCreatedAt!==void 0)r.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)r.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(r).length>0)C((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...r}:i0.oauthAccount}))}return{accessToken:Y,refreshToken:q,expiresAt:G,scopes:B,subscriptionType:E?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??W0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=P.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function jQ(Z){let $=await P.get(O().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!L().oauthAccount)throw Error("OAuth account information not found in config");C((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),x("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function BQ(Z){try{let $=await P.post(O().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await M5(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 I$(Z){let $=await R0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return x("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function RQ(){let $=L().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let X=(await R0(J))?.organization?.uuid;if(!X)return null;return X}async function HQ(){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(!L().oauthAccount)W8({accountUuid:Z,emailAddress:$,organizationUuid:J})}await t0();let X=L();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!q0())return!1;let Y=w();if(Y?.accessToken){let q=await R0(Y.accessToken);if(q){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return W8({accountUuid:q.account.uuid,emailAddress:q.account.email,organizationUuid:q.organization.uuid,displayName:q.account.display_name||void 0,hasExtraUsageEnabled:q.organization.has_extra_usage_enabled??!1,billingType:q.organization.billing_type??void 0,accountCreatedAt:q.account.created_at,subscriptionCreatedAt:q.organization.subscription_created_at??void 0}),!0}}return!1}function W8({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:q,subscriptionCreatedAt:W};if(Q)G.displayName=Q;C((B)=>{if(B.oauthAccount?.accountUuid===G.accountUuid&&B.oauthAccount?.emailAddress===G.emailAddress&&B.oauthAccount?.organizationUuid===G.organizationUuid&&B.oauthAccount?.displayName===G.displayName&&B.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&B.oauthAccount?.billingType===G.billingType&&B.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&B.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return B;return{...B,oauthAccount:G}})}var i4=H(()=>{q2();j2();y0();n();i();Z0();t2()});
16
+ export{w9 as o3,F9 as p3,C4 as q3,I5 as r3,y5 as s3,u$ as t3,p$ as u3,j8 as v3,H8 as w3,m$ as x3,h5 as y3,a0 as z3,o0 as A3,G0 as B3,g2 as C3,n2 as D3,b8 as E3,M0 as F3,V as G3,ZJ as H3,$J as I3,JJ as J3,QJ as K3,l as L3,j as M3,jJ as N3,Y2 as O3,FJ as P3,LJ as Q3,o5 as R3,bJ as S3,OJ as T3,Z1 as U3,SJ as V3,R0 as W3,t2 as X3,P0 as Y3,v$ as Z3,GQ as _3,xQ as $3,t4 as a4,jQ as b4,BQ as c4,m0 as d4,I$ as e4,RQ as f4,HQ as g4,W8 as h4,i4,fJ as j4,C8 as k4,$1 as l4,z1 as m4,z2 as n4,j1 as o4,dJ as p4,H1 as q4,T as r4,F1 as s4,T0 as t4,K1 as u4,D1 as v4,lJ as w4,sJ as x4,O1 as y4,aJ as z4,oJ as A4,U1 as B4,rJ as C4,eJ as D4,Z3 as E4,e2 as F4,A as G4,I1 as H4,g8 as I4,F3 as J4,L3 as K4,K3 as L4,y1 as M4,D3 as N4,N3 as O4,u8 as P4,b3 as Q4,O3 as R4,U3 as S4,P3 as T4,k3 as U4,c8 as V4,E3 as W4,_3 as X4,M3 as Y4,S3 as Z4,h1 as _4,L0 as $4,t8 as a5,l8 as b5,s8 as c5,Q5 as d5,JZ as e5,h3 as f5,m1 as g5,c1 as h5,QZ as i5,X5 as j5,t1 as k5,i1 as l5,W7 as m5,z7 as n5,Y5 as o5,G7 as p5,GZ as q5,N0 as r5,g0 as s5,J4 as t5,x7 as u5,h0 as v5,Q4 as w5,D as x5,b as y5,xZ as z5,j7 as A5,l1 as B5,f0 as C5,B7 as D5,X4 as E5,Y4 as F5,R7 as G5,I as H5,H7 as I5,RZ as J5,w7 as K5,F7 as L5,L7 as M5,K7 as N5,F0 as O5,N7 as P5,q4 as Q5,j4 as R5,UZ as S5,R4 as T5,f7 as U5,g7 as V5,u7 as W5,V0 as X5,a as Y5,p7 as Z5,IZ as _5,m7 as $5,c7 as a6,V5 as b6,N4 as c6,b4 as d6,V9 as e6,hZ as f6,W9 as g6,z9 as h6,U4 as i6,G9 as j6,_4 as k6,fZ as l6,x9 as m6,M4 as n6,S4 as o6,R5 as p6,A4 as q6,D9 as r6,f4 as s6,g4 as t6,k0 as u6,I0 as v6,X0 as w6,oZ as x6,n0 as y6,o as z6,O5 as A6,P5 as B6,a4 as C6,rZ as D6,o4 as E6,w5 as F6,Z$ as G6,$$ as H6,r4 as I6,z0 as J6,q$ as K6,E5 as L6,e4 as M6,Z8 as N6,_5 as O6,x$ as P6,j$ as Q6,B$ as R6,U2 as S6,M5 as T6,H$ as U6,w$ as V6,J8 as W6,w as X6,S5 as Y6,J5 as Z6,c0 as _6,t0 as $6,U as a7,q0 as b7,K$ as c7,N2 as d7,D$ as e7,N$ as f7,M as g7,H2 as h7,b$ as i7,w2 as j7,O$ as k7,W5 as l7,Q8 as m7,X8 as n7,b2 as o7,q8 as p7,P$ as q7,E$ as r7,_$ as s7,M$ as t7,S$ as u7,n as v7};
@@ -0,0 +1,6 @@
1
+ import{Eh as e,Fh as qq,Gh as Jq,Hh as _q}from"./cli-1.0.3-f8ekk6mr.mjs";import{Ih as Zq,Jh as Pq}from"./cli-1.0.3-1m413b59.mjs";import{cz as j,dz as y,hz as x}from"./cli-1.0.3-2wzvc8te.mjs";import{I0 as Iq,b0 as F,d0 as K}from"./cli-1.0.3-kesrsh8z.mjs";import{O2 as Y,P2 as L,Q2 as Qq}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as m}from"./cli-1.0.3-n9tzv3mz.mjs";import{Gba as r,M9 as w,O9 as h,Oba as Vq,V9 as f,Y8 as I,Z8 as t,l_ as Uq}from"./cli-1.0.3-4m0kzrq4.mjs";import{Lfa as Eq,wfa as Xq,xfa as Mq}from"./cli-1.0.3-phh30dq0.mjs";import{Tqa as R,Xqa as D}from"./cli-1.0.3-vzm5gxzn.mjs";function p(q,J){let{perFileStats:$}=q,z=[];for(let[Q,Z]of $){let A=J.get(Q),M=Z.isUntracked??!1,U=!Z.isBinary&&!M&&!A&&!Z.renamedFrom,H=Z.added+Z.removed,V=!U&&!Z.isBinary&&H>Kq;z.push({path:Q,linesAdded:Z.added,linesRemoved:Z.removed,isBinary:Z.isBinary,isLargeFile:U,isTruncated:V,isUntracked:M,...Z.renamedFrom?{renamedFrom:Z.renamedFrom}:{}})}return z.sort((Q,Z)=>Q.path.localeCompare(Z.path)),z}var b,Kq=400;var u=D(()=>{x();b=R(m(),1)});import{basename as S}from"path";function wq(q,J){let[$,z]=O.useState([]),[Q,Z]=O.useState([]),[A,M]=O.useState(!0),[U,H]=O.useState(0),V=q.join(`
2
+ `),X=J.join(`
3
+ `);O.useEffect(()=>{let v=!1;M(!0);async function G(){let N=V?V.split(`
4
+ `):[],_=X?X.split(`
5
+ `):[],E=(await Promise.all(_.map((B)=>h(B)))).flat(),P=w(E).filter((B)=>!N.includes(B)).sort((B,C)=>S(B).localeCompare(S(C))),k=w([...N,...P]),Yq=await Promise.all(k.map(async(B)=>{let[C,g,Aq]=await Promise.all([j(B),y(B),f(B)]);return{root:B,name:S(B),branch:Aq,files:C?p(C,g):[],hunks:g}}));if(!v)z(Yq),Z(k),M(!1)}return G().catch(()=>{if(!v)z([]),Z([]),M(!1)}),()=>{v=!0}},[V,X,U]);let W=O.useCallback(()=>H((v)=>v+1),[]);return{groups:$,roots:Q,loading:A,refresh:W}}var O;var Hq=D(()=>{Uq();x();u();O=R(m(),1)});import{basename as c}from"path";function n(q,J,$){if(q===0)return"";return J.join("")+($?vq:a)}function d(q){return{name:q,dirs:new Map,files:[]}}function Gq(q){let J=d("");for(let $ of q){let z=$.path.split("/");z.pop();let Q=J;for(let Z of z){let A=Q.dirs.get(Z);if(!A)A=d(Z),Q.dirs.set(Z,A);Q=A}Q.files.push($)}return J}function l(q,J,$,z,Q,Z,A,M){let U=[...q.dirs.values()].sort((X,W)=>X.name.localeCompare(W.name)),H=[...q.files].sort((X,W)=>c(X.path).localeCompare(c(W.path))),V=H.length>0;for(let X=0;X<U.length;X++){let W=U[X],v=W.name,G=J?`${J}/${W.name}`:W.name;while(W.files.length===0&&W.dirs.size===1){let P=W.dirs.values().next().value;v=`${v}/${P.name}`,G=`${G}/${P.name}`,W=P}let N=X===U.length-1&&!V,_=`${Q}\x00${G}`,E=z.has(_);if(A.push({kind:"dir",key:_,label:v,depth:$,collapsed:E,guides:n($,M,N)}),!E){let P=$>=1?[...M,N?Bq:a]:M;l(W,G,$+1,z,Q,Z,A,P)}}for(let X=0;X<H.length;X++){let W=H[X],v=X===H.length-1;A.push({kind:"file",file:W,root:Q,hunks:Z(W.path),depth:$,guides:n($,M,v)})}}function Nq(q,J){let $=[],z=q.length>1,Q=0;for(let Z of q){let A=z?1:0;if(z){let M=J.has(Z.root);if($.push({kind:"group",key:Z.root,name:Z.name,meta:`${Z.files.length} ${r(Z.files.length,"file")} changed`,branch:Z.branch,repoIndex:Q++,collapsed:M,depth:0}),M)continue}l(Gq(Z.files),"",A,J,Z.root,(M)=>Z.hunks.get(M)??[],$,[])}return $}var a="│ ",vq="└ ",Bq=" ";var i=D(()=>{Vq()});function hq(q){let J=0;for(let $=0;$<q.length;$++)J=Math.imul(J,31)+q.charCodeAt($)|0;return T[Math.abs(J)%T.length]}function o(q){let J=T.length;return T[(q%J+J)%J]}var T;var s=D(()=>{T=["cyan_FOR_SUBAGENTS_ONLY","green_FOR_SUBAGENTS_ONLY","yellow_FOR_SUBAGENTS_ONLY","purple_FOR_SUBAGENTS_ONLY","orange_FOR_SUBAGENTS_ONLY","pink_FOR_SUBAGENTS_ONLY","blue_FOR_SUBAGENTS_ONLY","red_FOR_SUBAGENTS_ONLY"]});function $q(){let q=Zq();return{enabled:q,fileIcon:(J)=>q?Jq(J):"",folderIcon:(J)=>q?J?qq:e:"",repoIcon:q?Oq:"",branchIcon:q?Fq:"",pointer:I.pointer}}var Oq="",Fq="";var zq=D(()=>{t();_q();Pq()});import{basename as Lq}from"path";function Dq(q,J,$){if(q<=$)return{start:0,end:q};let z=Math.max(0,J-Math.floor($/2)),Q=z+$;if(Q>q)Q=q,z=Math.max(0,Q-$);return{start:z,end:Q}}function JJ(q){return q.flatMap((J)=>J.files)}function ZJ({rows:q,selectedIndex:J,maxVisible:$,width:z,statusByPath:Q,alignFiles:Z}){let A=Wq.useMemo($q,[]),M=q.length;if(M===0)return Y(K,{dimColor:!0,children:"No changed files"});let{start:U,end:H}=Dq(M,J,$),V=[];for(let X=U;X<H;X++){let W=q[X];V.push(Y(kq,{row:W,isSelected:X===J,width:z,glyphs:A,alignFiles:Z,statusColor:W.kind==="file"?Q?.get(W.file.path):void 0},X))}return L(F,{flexDirection:"column",children:[U>0&&Y(K,{dimColor:!0,children:` ↑ ${U} more`}),V,H<M&&Y(K,{dimColor:!0,children:` ↓ ${M-H} more`})]})}function kq({row:q,isSelected:J,width:$,glyphs:z,statusColor:Q,alignFiles:Z}){if(q.kind==="group"){let N=J?`${z.pointer} `:" ",_=q.collapsed?I.triangleRight:I.triangleDown;return L(K,{dimColor:!J,bold:J,children:[`${N}${_} `,z.repoIcon&&Y(K,{color:o(q.repoIndex),dimColor:!1,children:`${z.repoIcon} `}),q.name," ",Y(K,{bold:!0,children:q.meta}),q.branch&&Y(K,{children:` ${z.branchIcon?`${z.branchIcon} `:"· "}${q.branch}`})]})}let A=J?`${z.pointer} `:" ",M=q.guides,U=2+q.depth*2;if(q.kind==="dir"){let N=q.collapsed?I.triangleRight:I.triangleDown,_=z.folderIcon(!q.collapsed),E=_?`${_} `:"",P=Math.max(4,$-U-2-(E?2:0)-1),k=Mq(q.label,P);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),`${N} ${E}${k}`]})}),Y(F,{flexGrow:1})]})}let H=z.fileIcon(q.file.path),V=H?`${H} `:"",X=Z?" ":"",W=q.file.isBinary||q.file.isLargeFile||q.file.renamedFrom?9:0,v=Math.max(4,$-U-X.length-(V?2:0)-W-1),G=Xq(Lq(q.file.path),v);return L(F,{width:$,flexDirection:"row",children:[Y(F,{flexShrink:1,overflow:"hidden",children:L(K,{wrap:"truncate",bold:J,inverse:J,children:[A,Y(K,{dimColor:!J,children:M}),X,V,Q&&!J?Y(K,{color:Q,children:G}):G]})}),Y(F,{flexGrow:1}),Y(F,{flexShrink:0,children:Y(Cq,{file:q.file,isSelected:J})})]})}function Cq({file:q,isSelected:J}){if(q.isBinary)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"binary"});if(q.isLargeFile)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"large"});if(q.renamedFrom)return Y(K,{dimColor:!J,italic:!0,wrap:"truncate",children:"renamed"});return null}var Wq;var Tq=D(()=>{t();Iq();Eq();s();i();zq();Qq();Wq=R(m(),1)});
6
+ export{wq as $f,Hq as ag,$q as bg,zq as cg,hq as dg,s as eg,Nq as fg,i as gg,JJ as hg,ZJ as ig,Tq as jg};
@@ -0,0 +1,3 @@
1
+ import{A1 as d,B1 as X,F1 as N}from"./cli-1.0.3-087x46pf.mjs";import{Kca as O,Kda as p,Lca as f,gfa as B,mda as U,ofa as y,pda as G}from"./cli-1.0.3-4m0kzrq4.mjs";import{nja as x,vja as b}from"./cli-1.0.3-5hpdm52h.mjs";import{Lja as E,yja as H}from"./cli-1.0.3-1f00zm8y.mjs";import{cna as w,mpa as P}from"./cli-1.0.3-5kneybr4.mjs";import{gqa as k,yqa as S}from"./cli-1.0.3-zan6y0m1.mjs";import{Tqa as M,Xqa as R}from"./cli-1.0.3-vzm5gxzn.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(O())return;let J=await k.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
+ `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{S();P();p();E();b();y();f();N();T=M(d(),1)});
3
+ export{zq as if,Jq as jf,C as kf,h as lf,Kq as mf,Qq as nf,g as of};
@@ -0,0 +1,2 @@
1
+ import{Wqa as Q,Xqa as U}from"./cli-1.0.3-vzm5gxzn.mjs";var w={};Q(w,{default:()=>x,createSupportsColor:()=>K});import M from"node:process";import V from"node:os";import O from"node:tty";function z(q,B=globalThis.Deno?globalThis.Deno.args:M.argv){let D=q.startsWith("-")?"":q.length===1?"-":"--",E=B.indexOf(D+q),G=B.indexOf("--");return E!==-1&&(G===-1||E<G)}function X(){if(!("FORCE_COLOR"in j))return;if(j.FORCE_COLOR==="true")return 1;if(j.FORCE_COLOR==="false")return 0;if(j.FORCE_COLOR.length===0)return 1;let q=Math.min(Number.parseInt(j.FORCE_COLOR,10),3);if(![0,1,2,3].includes(q))return;return q}function Z(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function $(q,{streamIsTTY:B,sniffFlags:D=!0}={}){let E=X();if(E!==void 0)H=E;let G=D?H:E;if(G===0)return 0;if(D){if(z("color=16m")||z("color=full")||z("color=truecolor"))return 3;if(z("color=256"))return 2}if("TF_BUILD"in j&&"AGENT_NAME"in j)return 1;if(q&&!B&&G===void 0)return 0;let J=G||0;if(j.TERM==="dumb")return J;if(M.platform==="win32"){let A=V.release().split(".");if(Number(A[0])>=10&&Number(A[2])>=10586)return Number(A[2])>=14931?3:2;return 1}if("CI"in j){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((A)=>(A in j)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((A)=>(A in j))||j.CI_NAME==="codeship")return 1;return J}if("TEAMCITY_VERSION"in j)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(j.TEAMCITY_VERSION)?1:0;if(j.COLORTERM==="truecolor")return 3;if(j.TERM==="xterm-kitty")return 3;if(j.TERM==="xterm-ghostty")return 3;if(j.TERM==="wezterm")return 3;if("TERM_PROGRAM"in j){let A=Number.parseInt((j.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(j.TERM_PROGRAM){case"iTerm.app":return A>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(j.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(j.TERM))return 1;if("COLORTERM"in j)return 1;return J}function K(q,B={}){let D=$(q,{streamIsTTY:q&&q.isTTY,...B});return Z(D)}var j,H,b,x;var L=U(()=>{({env:j}=M);if(z("no-color")||z("no-colors")||z("color=false")||z("color=never"))H=0;else if(z("color")||z("colors")||z("color=true")||z("color=always"))H=1;b={stdout:K({isTTY:O.isatty(1)}),stderr:K({isTTY:O.isatty(2)})},x=b});
2
+ export{K as Eqa,w as Fqa,L as Gqa};
@@ -0,0 +1,2 @@
1
+ import{OF as U,PF as A,TF as V,UF as E}from"./cli-1.0.3-2wzvc8te.mjs";import{dW as W,lW as G}from"./cli-1.0.3-vw5m6hn3.mjs";import{I0 as O,b0 as F,d0 as H}from"./cli-1.0.3-kesrsh8z.mjs";import{O2 as q,P2 as K,Q2 as L}from"./cli-1.0.3-wv4vx65k.mjs";import{R2 as I}from"./cli-1.0.3-n9tzv3mz.mjs";import{X6 as Q,v7 as p}from"./cli-1.0.3-5psnr7wf.mjs";import{Kda as $,mda as M,pda as N}from"./cli-1.0.3-4m0kzrq4.mjs";import{Tqa as Z,Xqa as _}from"./cli-1.0.3-vzm5gxzn.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
2
+ export{b as ec,d as fc,P as gc};
@@ -0,0 +1,2 @@
1
+ import{Xqa as $}from"./cli-1.0.3-vzm5gxzn.mjs";function w(z){return z>=48&&z<=126}var d,Y="\x1B",h="\x07",j=";",H;var L=$(()=>{d={NUL:0,SOH:1,STX:2,ETX:3,EOT:4,ENQ:5,ACK:6,BEL:7,BS:8,HT:9,LF:10,VT:11,FF:12,CR:13,SO:14,SI:15,DLE:16,DC1:17,DC2:18,DC3:19,DC4:20,NAK:21,SYN:22,ETB:23,CAN:24,EM:25,SUB:26,ESC:27,FS:28,GS:29,RS:30,US:31,DEL:127},H={CSI:91,OSC:93,DCS:80,APC:95,PM:94,SOS:88,ST:92}});function x(z){return z>=Z.PARAM_START&&z<=Z.PARAM_END}function A(z){return z>=Z.INTERMEDIATE_START&&z<=Z.INTERMEDIATE_END}function N(z){return z>=Z.FINAL_START&&z<=Z.FINAL_END}function J(...z){if(z.length===0)return B;if(z.length===1)return`${B}${z[0]}`;let Q=z.slice(0,-1),V=z[z.length-1];return`${B}${Q.join(j)}${V}`}function k(z=1){return z===0?"":J(z,"A")}function X(z=1){return z===0?"":J(z,"B")}function D(z=1){return z===0?"":J(z,"C")}function M(z=1){return z===0?"":J(z,"D")}function R(z){return J(z,"G")}function C(z,Q){return J(z,Q,"H")}function S(z,Q){let V="";if(z<0)V+=M(-z);else if(z>0)V+=D(z);if(Q<0)V+=k(-Q);else if(Q>0)V+=X(Q);return V}function o(){return J("K")}function y(z){if(z<=0)return"";let Q="";for(let V=0;V<z;V++)if(Q+=F,V<z-1)Q+=k(1);return Q+=W,Q}function a(z=1){return z===0?"":J(z,"S")}function n(z=1){return z===0?"":J(z,"T")}function c(z,Q){return J(z,Q,"r")}var B,Z,g,I,_,u,W,q,b,l,F,K,E,t,r,i,e,s,zz,Jz,Qz,Vz;var v=$(()=>{L();B=Y+String.fromCharCode(H.CSI),Z={PARAM_START:48,PARAM_END:63,INTERMEDIATE_START:32,INTERMEDIATE_END:47,FINAL_START:64,FINAL_END:126};g={CUU:65,CUD:66,CUF:67,CUB:68,CNL:69,CPL:70,CHA:71,CUP:72,CHT:73,VPA:100,HVP:102,ED:74,EL:75,ECH:88,IL:76,DL:77,ICH:64,DCH:80,SU:83,SD:84,SM:104,RM:108,SGR:109,DSR:110,DECSCUSR:113,DECSTBM:114,SCOSC:115,SCORC:117,CBT:90},I=["toEnd","toStart","all","scrollback"],_=["toEnd","toStart","all"],u=[{style:"block",blinking:!0},{style:"block",blinking:!0},{style:"block",blinking:!1},{style:"underline",blinking:!0},{style:"underline",blinking:!1},{style:"bar",blinking:!0},{style:"bar",blinking:!1}];W=J("G");q=J("H");b=J("s"),l=J("u");F=J(2,"K"),K=J(2,"J"),E=J(3,"J");t=J("r"),r=J("200~"),i=J("201~"),e=J("I"),s=J("O"),zz=J(">1u"),Jz=J("<u"),Qz=J(">4;2m"),Vz=J(">4m")});function U(){return process.platform==="win32"&&!!process.env.WT_SESSION}function p(){if(process.env.TERM_PROGRAM==="mintty")return!0;if(process.platform==="win32"&&process.env.MSYSTEM)return!0;return!1}function G(){if(U())return!0;if(process.platform==="win32"&&process.env.TERM_PROGRAM==="vscode"&&process.env.TERM_PROGRAM_VERSION)return!0;if(p())return!0;return!1}function T(){if(process.platform==="win32"&&!G())return K+P;return K+q}var P,Bz;var f=$(()=>{v();P=J(0,"f");Bz=T()});
2
+ export{d as Q0,Y as R0,h as S0,j as T0,H as U0,w as V0,L as W0,x as X0,A as Y0,N as Z0,J as _0,g as $0,I as a1,_ as b1,u as c1,R as d1,C as e1,q as f1,S as g1,o as h1,K as i1,y as j1,a as k1,n as l1,c as m1,t as n1,r as o1,i as p1,e as q1,s as r1,zz as s1,Jz as t1,Qz as u1,Vz as v1,v as w1,T as x1,Bz as y1,f as z1};
@@ -0,0 +1,3 @@
1
+ import{D as G0}from"./cli-1.0.3-gwdntjh3.mjs";import{V as p0}from"./cli-1.0.3-q4vc2dm9.mjs";import{gb as E0}from"./cli-1.0.3-j62yk6x8.mjs";import{lb as k0}from"./cli-1.0.3-3wcccg4j.mjs";import{Fc as P0,Hc as Fc}from"./cli-1.0.3-j72ztden.mjs";import{Kc as N,Lc as uc}from"./cli-1.0.3-zzg0y9xx.mjs";import{Nc as Q0,Oc as hc}from"./cli-1.0.3-yb5yjqa8.mjs";import{hd as n0,id as x0}from"./cli-1.0.3-1psnx21q.mjs";import{Ax as X,EG as y0,EM as u0,Ex as l0,FG as _c,GM as r0,JE as Y0,MF as m0,NE as lc,NF as g0,OF as r,QF as A0,Qn as p,Rn as K0,Sn as f0,Tn as N0,Un as i0,VF as Y,Vn as d0,WF as M0,XF as Z0,YF as Mc,Yn as W,Zn as j,aT as O0,gM as _0,kT as b0,lR as d,mT as B0,nR as W0,pR as Ic,pT as ac,qM as j0,sT as D0,uT as Tc}from"./cli-1.0.3-2wzvc8te.mjs";import{I0 as x,IY as G,ZY as X0,b0 as c0,bZ as oc,d0 as y,h0 as g}from"./cli-1.0.3-kesrsh8z.mjs";import{N2 as e,O2 as m,P2 as U,Q2 as C}from"./cli-1.0.3-wv4vx65k.mjs";import{H3 as H0,L3 as mc,n4 as J0,o4 as nc}from"./cli-1.0.3-5psnr7wf.mjs";import{Kda as I0,Tea as z0,Wea as ic,gda as V0,lca as V,mda as s,pca as J,pda as t,rda as q0,sca as w0,uca as U0,yca as k}from"./cli-1.0.3-4m0kzrq4.mjs";import{Qfa as R,Vfa as cc}from"./cli-1.0.3-phh30dq0.mjs";import{Aga as fc,mga as C0,uga as L0}from"./cli-1.0.3-kwe8av2x.mjs";import{Nha as q,Qha as E}from"./cli-1.0.3-ynf2sj5r.mjs";import{Tia as $0}from"./cli-1.0.3-jmvq43wb.mjs";import{Bja as K,Ija as R0,Lja as e0}from"./cli-1.0.3-1f00zm8y.mjs";import{Yla as a0,coa as T0,mpa as v0}from"./cli-1.0.3-5kneybr4.mjs";import{Tqa as D,Yqa as L}from"./cli-1.0.3-vzm5gxzn.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.3-yq6e6m8b.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.3-xjk5h2s1.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.3-93mejgdx.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.3-w1yd56gg.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.3-rs8yq1c5.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.3-axq3s1g5.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.3-1kr4x8qz.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.3-y7vw80jm.mjs");await z(f,(h)=>m(o,{onAccept:h}))}if(c==="auto"&&!U0()){let{AutoModeOptInDialog:o}=await import("./AutoModeOptInDialog-1.0.3-jezz3mfx.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 v,Lc as w,Gf as x,wc as y,z,Ef as A,kf as B,pf as C};
@@ -0,0 +1,4 @@
1
+ import{Ko as IJ,LQ as UJ,Mo as pJ,Wi as cJ,iR as jJ,jR as $V,wK as DJ,xK as BJ,yK as lJ}from"./cli-1.0.3-2wzvc8te.mjs";import{K9 as WJ,Kda as hJ,P9 as l,gfa as G,l_ as mJ,o9 as p,oca as m,ofa as dJ,p9 as fJ,pda as YJ,u_ as NJ,y_ as gJ,yca as uJ}from"./cli-1.0.3-4m0kzrq4.mjs";import{$ga as PJ,_ga as U}from"./cli-1.0.3-n2h9jvgm.mjs";import{Nha as f,Qha as SJ}from"./cli-1.0.3-ynf2sj5r.mjs";import{Cia as VJ,Gia as bJ,Qia as Q,Tia as kJ}from"./cli-1.0.3-jmvq43wb.mjs";import{oja as JJ,vja as yJ}from"./cli-1.0.3-5hpdm52h.mjs";import{lla as qJ,mla as zJ}from"./cli-1.0.3-5kneybr4.mjs";import{Tqa as wJ,Xqa as _J}from"./cli-1.0.3-vzm5gxzn.mjs";class c{paths=[];lowerPaths=[];charBits=new Int32Array(0);pathLens=new Uint16Array(0);topLevelCache=null;readyCount=0;loadFromFileList(J){let W=new Set,Z=[];for(let V of J)if(V.length>0&&!W.has(V))W.add(V),Z.push(V);this.buildIndex(Z)}loadFromFileListAsync(J){let W=()=>{},Z=new Promise((Y)=>{W=Y}),V=this.buildAsync(J,W);return{queryable:Z,done:V}}async buildAsync(J,W){let Z=new Set,V=[],Y=performance.now();for(let X=0;X<J.length;X++){let _=J[X];if(_.length>0&&!Z.has(_))Z.add(_),V.push(_);if((X&255)===255&&performance.now()-Y>4)await b(),Y=performance.now()}this.resetArrays(V),Y=performance.now();let $=!0;for(let X=0;X<V.length;X++)if(this.indexPath(X),(X&255)===255&&performance.now()-Y>4){if(this.readyCount=X+1,$)W(),$=!1;await b(),Y=performance.now()}this.readyCount=V.length,W()}buildIndex(J){this.resetArrays(J);for(let W=0;W<J.length;W++)this.indexPath(W);this.readyCount=J.length}resetArrays(J){let W=J.length;this.paths=J,this.lowerPaths=Array(W),this.charBits=new Int32Array(W),this.pathLens=new Uint16Array(W),this.readyCount=0,this.topLevelCache=LJ(J,100)}indexPath(J){let W=this.paths[J].toLowerCase();this.lowerPaths[J]=W;let Z=W.length;this.pathLens[J]=Z;let V=0;for(let Y=0;Y<Z;Y++){let $=W.charCodeAt(Y);if($>=97&&$<=122)V|=1<<$-97}this.charBits[J]=V}search(J,W){if(W<=0)return[];if(J.length===0){if(this.topLevelCache)return this.topLevelCache.slice(0,W);return[]}let Z=J!==J.toLowerCase(),V=Z?J:J.toLowerCase(),Y=Math.min(V.length,64),$=Array(Y),X=0;for(let M=0;M<Y;M++){let B=V.charAt(M);$[M]=B;let E=B.charCodeAt(0);if(E>=97&&E<=122)X|=1<<E-97}let _=Y*24+8+32,H=[],N=-1/0,{paths:I,lowerPaths:q,charBits:x,pathLens:j,readyCount:g}=this;J:for(let M=0;M<g;M++){if((x[M]&X)!==X)continue;let B=Z?I[M]:q[M],E=B.indexOf($[0]);if(E===-1)continue;y[0]=E;let C=0,u=0,h=E;for(let A=1;A<Y;A++){if(E=B.indexOf($[A],h+1),E===-1)continue J;y[A]=E;let F=E-h-1;if(F===0)u+=4;else C+=3+F*1;h=E}if(H.length===W&&_+u-C<=N)continue;let S=I[M],vJ=j[M],T=Y*16+u-C;T+=HJ(S,y[0],!0);for(let A=1;A<Y;A++)T+=HJ(S,y[A],!1);if(T+=Math.max(0,32-(vJ>>2)),H.length<W){if(H.push({path:S,fuzzScore:T}),H.length===W)H.sort((A,F)=>A.fuzzScore-F.fuzzScore),N=H[0].fuzzScore}else if(T>N){let A=0,F=H.length;while(A<F){let d=A+F>>1;if(H[d].fuzzScore<T)A=d+1;else F=d}H.splice(A,0,{path:S,fuzzScore:T}),H.shift(),N=H[0].fuzzScore}}H.sort((M,B)=>B.fuzzScore-M.fuzzScore);let D=H.length,w=Math.max(D,1),z=Array(D);for(let M=0;M<D;M++){let B=H[M].path,E=M/w,C=B.includes("test")?Math.min(E*1.05,1):E;z[M]={path:B,score:C}}return z}}function HJ(J,W,Z){if(W===0)return Z?8:0;let V=J.charCodeAt(W-1);if(RJ(V))return 8;if(GJ(V)&&CJ(J.charCodeAt(W)))return 6;return 0}function RJ(J){return J===47||J===92||J===45||J===95||J===46||J===32}function GJ(J){return J>=97&&J<=122}function CJ(J){return J>=65&&J<=90}function b(){return new Promise((J)=>setImmediate(J))}function LJ(J,W){let Z=new Set;for(let Y of J){let $=Y.length;for(let _=0;_<Y.length;_++){let H=Y.charCodeAt(_);if(H===47||H===92){$=_;break}}let X=Y.slice(0,$);if(X.length>0){if(Z.add(X),Z.size>=W)break}}let V=Array.from(Z);return V.sort((Y,$)=>{let X=Y.length-$.length;if(X!==0)return X;return Y<$?-1:Y>$?1:0}),V.slice(0,W).map((Y)=>({path:Y,score:0}))}var QJ=4,y;var MJ=_J(()=>{y=new Int32Array(64)});import{statSync as nJ}from"fs";import*as O from"path";function n(){if(!K)K=new c;return K}function vV(){K=null,v=null,R++,k=null,L=[],$J=[],XJ=[],ZJ.clear(),s=null,o=null,a=0,i=null,r=null,P=null}function xJ(J){let W=J.length,Z=Math.max(1,Math.floor(W/500)),V=-2128831035;for(let Y=0;Y<W;Y+=Z){let $=J[Y];for(let X=0;X<$.length;X++)V=(V^$.charCodeAt(X))*16777619|0;V=V*16777619|0}if(W>0){let Y=J[W-1];for(let $=0;$<Y.length;$++)V=(V^Y.charCodeAt($))*16777619|0}return`${W}:${(V>>>0).toString(16)}`}function sJ(){let J=WJ(U());if(!J)return null;try{return nJ(O.join(J,".git","index")).mtimeMs}catch{return null}}function OJ(J,W,Z){if(Z===W)return J;return J.map((V)=>{let Y=O.join(W,V);return O.relative(Z,Y)})}async function oJ(J){if(J.length===0)return;if(!K||L.length===0)return;let W=await FJ(J),Z=[...L,...$J,...XJ,...J,...W],V=xJ(Z);if(V===P){Q("[FileIndex] skipped index rebuild — merged paths unchanged");return}await K.loadFromFileListAsync(Z).done,P=V,Q(`[FileIndex] rebuilt index with ${L.length} tracked + ${J.length} untracked files`)}async function EJ(J,W){let Z=`${J}:${W}`;if(o===Z)return s;let V=VJ(),Y=[".ignore",".rgignore"],$=[...new Set([J,W])],X=KJ.default(),_=!1,H=$.flatMap((q)=>Y.map((x)=>O.join(q,x))),N=await Promise.all(H.map((q)=>V.readFile(q,{encoding:"utf8"}).catch(()=>null)));for(let[q,x]of N.entries()){if(x===null)continue;X.add(x),_=!0,Q(`[FileIndex] loaded ignore patterns from ${H[q]}`)}let I=_?X:null;return s=I,o=Z,I}async function aJ(J,W){let Z=Date.now();Q("[FileIndex] getFilesUsingGit called");let V=WJ(U());if(!V)return Q("[FileIndex] not a git repo, returning null"),null;try{let Y=U(),$=Date.now(),X=await p(l(),["-c","core.quotepath=false","ls-files","--recurse-submodules"],{timeout:5000,abortSignal:J,cwd:V});if(Q(`[FileIndex] git ls-files (tracked) took ${Date.now()-$}ms`),X.code!==0)return Q(`[FileIndex] git ls-files failed (code=${X.code}, stderr=${X.stderr}), falling back to ripgrep`),null;let _=X.stdout.trim().split(`
2
+ `).filter(Boolean),H=OJ(_,V,Y),N=await EJ(V,Y);if(N){let q=H.length;H=N.filter(H),Q(`[FileIndex] applied ignore patterns: ${q} -> ${H.length} files`)}L=H;let I=Date.now()-Z;if(Q(`[FileIndex] git ls-files: ${H.length} tracked files in ${I}ms`),f("tengu_file_suggestions_git_ls_files",{file_count:H.length,tracked_count:H.length,untracked_count:0,duration_ms:I}),!k){let q=W?["-c","core.quotepath=false","ls-files","--others","--exclude-standard"]:["-c","core.quotepath=false","ls-files","--others"],x=R;k=p(l(),q,{timeout:1e4,cwd:V}).then(async(j)=>{if(x!==R)return;if(j.code===0){let g=j.stdout.trim().split(`
3
+ `).filter(Boolean),D=OJ(g,V,Y),w=await EJ(V,Y);if(w&&D.length>0){let z=D.length;D=w.filter(D),Q(`[FileIndex] applied ignore patterns to untracked: ${z} -> ${D.length} files`)}Q(`[FileIndex] background untracked fetch: ${D.length} files`),oJ(D)}}).catch((j)=>{Q(`[FileIndex] background untracked fetch failed: ${j}`)}).finally(()=>{k=null})}return H}catch(Y){return Q(`[FileIndex] git ls-files error: ${JJ(Y)}`),null}}async function FJ(J){let W=new Set,Z=performance.now();for(let V=0;V<J.length;V++)if(iJ(J,V,V+1,W),(V&255)===255&&performance.now()-Z>QJ)await b(),Z=performance.now();return[...W].map((V)=>V+O.sep)}function iJ(J,W,Z,V){for(let Y=W;Y<Z;Y++){let $=O.dirname(J[Y]);while($!=="."&&!V.has($)){let X=O.dirname($);if(X===$)break;V.add($),$=X}}}async function rJ(J){return(await Promise.all(DJ.map((Z)=>BJ(Z,J)))).flatMap((Z)=>Z.map((V)=>V.filePath))}async function tJ(J,W){Q(`[FileIndex] getProjectFiles called, respectGitignore=${W}`);let Z=await aJ(J,W);if(Z!==null)return Q(`[FileIndex] using git ls-files result (${Z.length} files)`),Z;return Q("[FileIndex] git ls-files returned null, falling back to ripgrep"),TJ(J,W)}async function TJ(J,W){let Z=Date.now(),V=["--files","--follow","--hidden","--glob","!.git/","--glob","!.svn/","--glob","!.hg/","--glob","!.bzr/","--glob","!.jj/","--glob","!.sl/"];if(!W)V.push("--no-ignore-vcs");let $=(await IJ(V,".",J)).map((_)=>O.relative(U(),_)),X=Date.now()-Z;return Q(`[FileIndex] ripgrep: ${$.length} files in ${X}ms`),f("tengu_file_suggestions_ripgrep",{file_count:$.length,duration_ms:X}),$}async function RV(){let J=AbortSignal.timeout(1e4),W=m(),Z=YJ(),V=W.respectGitignore??Z.respectGitignore??!0;try{return await TJ(J,V)}catch(Y){return G(Y),[]}}async function eJ(){let J=AbortSignal.timeout(1e4),W=n();try{let Z=m(),V=YJ(),Y=Z.respectGitignore??V.respectGitignore??!0,$=U(),[X,_]=await Promise.all([tJ(J,Y),rJ($)]);$J=_;let H=[...X,..._],N=await FJ(H);XJ=N;let I=[...N,...H],q=xJ(I);if(q!==r)await W.loadFromFileListAsync(I).done,r=q,P=null;else Q("[FileIndex] skipped index rebuild — tracked paths unchanged")}catch(Z){G(Z)}return W}function JV(J,W){let Z=Math.min(J.length,W.length),V=0;while(V<Z&&J[V]===W[V])V++;return J.substring(0,V)}function GV(J){if(J.length===0)return"";let W=J.map((V)=>V.displayText),Z=W[0];for(let V=1;V<W.length;V++){let Y=W[V];if(Z=JV(Z,Y),Z==="")return""}return Z}function t(J,W){return{id:`file-${J}`,displayText:J,metadata:W!==void 0?{score:W}:void 0}}function VV(J,W){return J.search(W,e).map((V)=>t(V.path,V.score))}function AJ(){if(v)return;let J=sJ();if(K){if(!(J!==null&&J!==i)&&Date.now()-a<WV)return}let W=R,Z=Date.now();n(),v=eJ().then((V)=>{if(W!==R)return V;return v=null,ZJ.emit(),i=J,a=Date.now(),Q(`[FileIndex] cache refresh completed in ${Date.now()-Z}ms`),V}).catch((V)=>{if(Q(`[FileIndex] Cache refresh failed: ${JJ(V)}`),G(V),W===R)v=null;return n()})}async function YV(){let J=VJ(),W=U();try{let Z=await J.readdir(W);return Z.sort((V,Y)=>{let $=V.isDirectory(),X=Y.isDirectory();if($!==X)return $?-1:1;let _=V.name.startsWith("."),H=Y.name.startsWith(".");if(_!==H)return _?-1:1;return V.name.toLowerCase().localeCompare(Y.name.toLowerCase())}),Z.map((V)=>{let Y=O.join(W,V.name),$=O.relative(W,Y);return V.isDirectory()?$+O.sep:$})}catch(Z){return G(Z),[]}}async function CV(J,W=!1){if(!J&&!W)return[];if(m().fileSuggestion?.type==="command"){let V={...UJ(),query:J};return(await jJ(V)).slice(0,e).map(t)}if(J===""||J==="."||J==="./"){let V=await YV();return AJ(),V.slice(0,e).map(t)}let Z=Date.now();try{let V=v!==null;AJ();let Y=J,$="."+O.sep;if(J.startsWith($))Y=J.substring(2);if(Y.startsWith("~"))Y=NJ(Y);let X=K?VV(K,Y):[],_=Date.now()-Z;return Q(`[FileIndex] generateFileSuggestions: ${X.length} results in ${_}ms (${V?"partial":"full"} index)`),f("tengu_file_suggestions_query",{duration_ms:_,cache_hit:!V,result_count:X.length,query_length:J.length}),X}catch(V){return G(V),[]}}function LV(J,W,Z,V,Y,$){let X=typeof J==="string"?J:J.displayText,_=W.substring(0,V)+X+W.substring(V+Z.length);Y(_);let H=V+X.length;$(H)}var KJ,K=null,v=null,ZJ,jV,R=0,k=null,L,$J,XJ,s=null,o=null,a=0,i=null,r=null,P=null,e=100,WV=5000;var ZV=_J(()=>{lJ();MJ();SJ();hJ();PJ();kJ();yJ();fJ();bJ();mJ();$V();dJ();gJ();pJ();uJ();zJ();KJ=wJ(cJ(),1);ZJ=qJ(),jV=ZJ.subscribe,L=[],$J=[],XJ=[]});
4
+ export{c as ai,MJ as bi,jV as ci,vV as di,RV as ei,GV as fi,AJ as gi,CV as hi,LV as ii,ZV as ji};
@@ -0,0 +1,21 @@
1
+ import{GJ as X,IQ as F,PD as V,QD as $,Wq as O,Xq as Z,fk as L}from"./cli-1.0.3-2wzvc8te.mjs";import{Xqa as Y}from"./cli-1.0.3-vzm5gxzn.mjs";function W(G){let D=[],H=G.matchAll(v);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
+
3
+ IMPORTANT CONTEXT:
4
+ - You are a separate, lightweight agent spawned to answer this one question
5
+ - The main agent is NOT interrupted - it continues working independently in the background
6
+ - You share the conversation context but are a completely separate instance
7
+ - Do NOT reference being interrupted or what you were "previously doing" - that framing is incorrect
8
+
9
+ CRITICAL CONSTRAINTS:
10
+ - You have NO tools available - you cannot read files, run commands, search, or take any actions
11
+ - This is a one-off response - there will be no follow-up turns
12
+ - You can ONLY provide information based on what you already know from the conversation context
13
+ - NEVER say things like "Let me try...", "I'll now...", "Let me check...", or promise to take any action
14
+ - If you don't know the answer, say so - do not offer to look it up or investigate
15
+
16
+ Simply answer the question with the information you have.</system-reminder>
17
+
18
+ ${G}`,z=await V({promptMessages:[X({content:H})],cacheSafeParams:D,canUseTool:async()=>({behavior:"deny",message:"Side questions cannot use tools",decisionReason:{type:"other",reason:"side_question"}}),querySource:"side_question",forkLabel:"side_question",maxTurns:1,skipCacheWrite:!0});return{response:y(z.messages),usage:z.totalUsage}}function y(G){let D=G.flatMap((z)=>z.type==="assistant"?z.message.content:[]);if(D.length>0){let z=L(D,`
19
+
20
+ `).trim();if(z)return z;let J=D.find((K)=>K.type==="tool_use");if(J)return`(The model tried to call ${"name"in J?J.name:"a tool"} instead of answering directly. Try rephrasing or ask in the main conversation.)`}let H=G.find((z)=>z.type==="system"&&("subtype"in z)&&z.subtype==="api_error");if(H)return`(API error: ${O(H.error)})`;return null}var v;var C=Y(()=>{Z();$();F();v=/^\/btw\b/gi});
21
+ export{W as Kh,b as Lh,C as Mh};
@@ -0,0 +1,2 @@
1
+ import{hd as K,id as Y}from"./cli-1.0.3-1psnx21q.mjs";import{Dp as H,Ep as W,GM as X,sl as G,tl as B,xl as U,yM as J,yl as V}from"./cli-1.0.3-2wzvc8te.mjs";import{Uqa as q,Xqa as v}from"./cli-1.0.3-vzm5gxzn.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 dd,C as ed,A as fd,D as gd};