@claudiolabs/claudin 0.7.0 → 0.7.1

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 (892) hide show
  1. package/README.md +1 -0
  2. package/dist/chunks/AgentTool-0.7.1-d5a04rhw.mjs +1 -0
  3. package/dist/chunks/App-0.7.1-qe37xdwh.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-0.7.1-hcwrem4g.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-0.7.1-ed3kh69n.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-0.7.1-9dhakyk3.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-0.7.1-zqdx4k6r.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.1-ja900v6h.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-0.7.1-p5f8b85c.mjs +1 -0
  10. package/dist/chunks/DiffDialog-0.7.1-frcnb58g.mjs +7 -0
  11. package/dist/chunks/Doctor-0.7.1-5a5bqzar.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-0.7.1-sp9zfyb5.mjs +6 -0
  13. package/dist/chunks/Grove-0.7.1-9ats64c9.mjs +1 -0
  14. package/dist/chunks/ITermBackend-0.7.1-160z9025.mjs +1 -0
  15. package/dist/chunks/InvalidConfigDialog-0.7.1-dm3mnxja.mjs +1 -0
  16. package/dist/chunks/InvalidSettingsDialog-0.7.1-94m5wc8k.mjs +1 -0
  17. package/dist/chunks/MigrationDialog-0.7.1-2sy3633s.mjs +1 -0
  18. package/dist/chunks/Onboarding-0.7.1-4ryf7vkp.mjs +1 -0
  19. package/dist/chunks/ProviderManager-0.7.1-m863v53f.mjs +1 -0
  20. package/dist/chunks/REPL-0.7.1-a1pdjtms.mjs +1 -0
  21. package/dist/chunks/ResumeConversation-0.7.1-39h2xh04.mjs +1 -0
  22. package/dist/chunks/SnapshotUpdateDialog-0.7.1-zwedgae2.mjs +1 -0
  23. package/dist/chunks/TeleportProgress-0.7.1-9anv6ssa.mjs +1 -0
  24. package/dist/chunks/TeleportRepoMismatchDialog-0.7.1-2awpvnbb.mjs +1 -0
  25. package/dist/chunks/TeleportResumeWrapper-0.7.1-nd5kypwz.mjs +1 -0
  26. package/dist/chunks/TmuxBackend-0.7.1-7cyfxvj8.mjs +9 -0
  27. package/dist/chunks/ToolSearchTool-0.7.1-9kyy73xn.mjs +1 -0
  28. package/dist/chunks/TrustDialog-0.7.1-k2dez79x.mjs +1 -0
  29. package/dist/chunks/activeProvider-0.7.1-vv0d3v6j.mjs +1 -0
  30. package/dist/chunks/add-dir-0.7.1-4mzgm2te.mjs +1 -0
  31. package/dist/chunks/agents-0.7.1-atjgpzds.mjs +3 -0
  32. package/dist/chunks/agents-0.7.1-fyqad9rz.mjs +110 -0
  33. package/dist/chunks/api-0.7.1-fsw86vpr.mjs +1 -0
  34. package/dist/chunks/asciicast-0.7.1-2wj656v8.mjs +1 -0
  35. package/dist/chunks/assistant-0.7.1-91m5tfq4.mjs +1 -0
  36. package/dist/chunks/auth-0.7.1-b9ybay2b.mjs +1 -0
  37. package/dist/chunks/auth-0.7.1-tbd13raw.mjs +1 -0
  38. package/dist/chunks/autoMode-0.7.1-jwnj54pb.mjs +48 -0
  39. package/dist/chunks/autoUpdater-0.7.1-e4v9zzkn.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-0.7.1-jxebk27x.mjs +1 -0
  41. package/dist/chunks/branch-0.7.1-qr35xar0.mjs +4 -0
  42. package/dist/chunks/bridge-0.7.1-8qbgc2e9.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-0.7.1-5dz9y1gn.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-0.7.1-fqgbq6ry.mjs +1 -0
  45. package/dist/chunks/bridgeMain-0.7.1-hd9vv35g.mjs +88 -0
  46. package/dist/chunks/bridgePointer-0.7.1-rxxjfj3q.mjs +1 -0
  47. package/dist/chunks/btw-0.7.1-86yem67j.mjs +1 -0
  48. package/dist/chunks/buddy-0.7.1-kdmsha6s.mjs +3 -0
  49. package/dist/chunks/cacache-0.7.1-ahmz5znn.mjs +1 -0
  50. package/dist/chunks/cache-probe-0.7.1-jkjqgvf0.mjs +21 -0
  51. package/dist/chunks/cacheStats-0.7.1-wt820qhe.mjs +4 -0
  52. package/dist/chunks/caches-0.7.1-xjaktk6r.mjs +1 -0
  53. package/dist/chunks/claudeDesktop-0.7.1-pxv7ev3t.mjs +1 -0
  54. package/dist/chunks/claudemd-0.7.1-dzm84q1p.mjs +1 -0
  55. package/dist/chunks/clear-0.7.1-gx38nydx.mjs +1 -0
  56. package/dist/chunks/clearTerminal-0.7.1-5htkde19.mjs +1 -0
  57. package/dist/chunks/cli-0.7.1-01af799v.mjs +2 -0
  58. package/dist/chunks/cli-0.7.1-0ef7xs1s.mjs +2 -0
  59. package/dist/chunks/cli-0.7.1-0qwnf6wz.mjs +16 -0
  60. package/dist/chunks/cli-0.7.1-0sacamdc.mjs +2 -0
  61. package/dist/chunks/cli-0.7.1-0y31txhk.mjs +2 -0
  62. package/dist/chunks/cli-0.7.1-1188jq4p.mjs +2 -0
  63. package/dist/chunks/cli-0.7.1-1gbsnea3.mjs +2 -0
  64. package/dist/chunks/cli-0.7.1-1ts20eyt.mjs +3 -0
  65. package/dist/chunks/cli-0.7.1-21s047ay.mjs +2 -0
  66. package/dist/chunks/cli-0.7.1-24da357x.mjs +3 -0
  67. package/dist/chunks/cli-0.7.1-28433yep.mjs +2 -0
  68. package/dist/chunks/cli-0.7.1-2e97a1f7.mjs +2 -0
  69. package/dist/chunks/cli-0.7.1-2g1mhmsb.mjs +2 -0
  70. package/dist/chunks/cli-0.7.1-2q24e8yf.mjs +6 -0
  71. package/dist/chunks/cli-0.7.1-30b9rs2y.mjs +2 -0
  72. package/dist/chunks/cli-0.7.1-356bj7gh.mjs +2 -0
  73. package/dist/chunks/cli-0.7.1-37e4777p.mjs +2 -0
  74. package/dist/chunks/cli-0.7.1-3bfhg1sc.mjs +2 -0
  75. package/dist/chunks/cli-0.7.1-3cp4zkfv.mjs +2 -0
  76. package/dist/chunks/cli-0.7.1-3ehkpebq.mjs +2 -0
  77. package/dist/chunks/cli-0.7.1-3eywakdr.mjs +15 -0
  78. package/dist/chunks/cli-0.7.1-3m0mytg6.mjs +2 -0
  79. package/dist/chunks/cli-0.7.1-3s79d0ky.mjs +2 -0
  80. package/dist/chunks/cli-0.7.1-46gjthdy.mjs +2 -0
  81. package/dist/chunks/cli-0.7.1-497wkpjf.mjs +2 -0
  82. package/dist/chunks/cli-0.7.1-4ft7hrdc.mjs +3 -0
  83. package/dist/chunks/cli-0.7.1-4gvkgkvn.mjs +4 -0
  84. package/dist/chunks/cli-0.7.1-4hhqjvy4.mjs +2 -0
  85. package/dist/chunks/cli-0.7.1-4pp5s9hy.mjs +2 -0
  86. package/dist/chunks/cli-0.7.1-4t6v1n3h.mjs +2 -0
  87. package/dist/chunks/cli-0.7.1-57x4wzc4.mjs +2 -0
  88. package/dist/chunks/cli-0.7.1-5bbbwn2g.mjs +2 -0
  89. package/dist/chunks/cli-0.7.1-5fsqggqk.mjs +3 -0
  90. package/dist/chunks/cli-0.7.1-5pp47rx1.mjs +18 -0
  91. package/dist/chunks/cli-0.7.1-65bm304r.mjs +133 -0
  92. package/dist/chunks/cli-0.7.1-6d8y1qn4.mjs +4 -0
  93. package/dist/chunks/cli-0.7.1-6q9k674b.mjs +2 -0
  94. package/dist/chunks/cli-0.7.1-6rrxtyy0.mjs +2 -0
  95. package/dist/chunks/cli-0.7.1-6ta56xg1.mjs +12 -0
  96. package/dist/chunks/cli-0.7.1-6zk672en.mjs +2 -0
  97. package/dist/chunks/cli-0.7.1-71g0e9ze.mjs +6 -0
  98. package/dist/chunks/cli-0.7.1-7mmdptp2.mjs +15 -0
  99. package/dist/chunks/cli-0.7.1-7vnqyd9e.mjs +6 -0
  100. package/dist/chunks/cli-0.7.1-825msf79.mjs +2 -0
  101. package/dist/chunks/cli-0.7.1-84yhx3q1.mjs +12 -0
  102. package/dist/chunks/cli-0.7.1-88kwyk7r.mjs +17 -0
  103. package/dist/chunks/cli-0.7.1-8m2w4jnj.mjs +2 -0
  104. package/dist/chunks/cli-0.7.1-8vpv5q4z.mjs +2 -0
  105. package/dist/chunks/cli-0.7.1-90skq72m.mjs +5 -0
  106. package/dist/chunks/cli-0.7.1-9e4dha4t.mjs +2 -0
  107. package/dist/chunks/cli-0.7.1-9errxa1g.mjs +2 -0
  108. package/dist/chunks/cli-0.7.1-9fk02985.mjs +2 -0
  109. package/dist/chunks/cli-0.7.1-9jzbjqh3.mjs +2 -0
  110. package/dist/chunks/cli-0.7.1-9pspqj1n.mjs +2 -0
  111. package/dist/chunks/cli-0.7.1-9sy5d7re.mjs +2 -0
  112. package/dist/chunks/cli-0.7.1-a24fwkdp.mjs +2 -0
  113. package/dist/chunks/cli-0.7.1-a4x1wq4z.mjs +2 -0
  114. package/dist/chunks/cli-0.7.1-a4zjaz57.mjs +2 -0
  115. package/dist/chunks/cli-0.7.1-a680vzj5.mjs +2 -0
  116. package/dist/chunks/cli-0.7.1-aawgfrph.mjs +3 -0
  117. package/dist/chunks/cli-0.7.1-b1q31fh8.mjs +50 -0
  118. package/dist/chunks/cli-0.7.1-b8rrjfjb.mjs +2 -0
  119. package/dist/chunks/cli-0.7.1-bkp0aqdj.mjs +2 -0
  120. package/dist/chunks/cli-0.7.1-bmqpkffh.mjs +2 -0
  121. package/dist/chunks/cli-0.7.1-bnwqh4sh.mjs +21 -0
  122. package/dist/chunks/cli-0.7.1-bvd99qhf.mjs +2 -0
  123. package/dist/chunks/cli-0.7.1-bzk0abt1.mjs +6 -0
  124. package/dist/chunks/cli-0.7.1-c0ndrc74.mjs +2 -0
  125. package/dist/chunks/cli-0.7.1-c2g89e99.mjs +2 -0
  126. package/dist/chunks/cli-0.7.1-c5513023.mjs +2 -0
  127. package/dist/chunks/cli-0.7.1-c9fnmbwv.mjs +12 -0
  128. package/dist/chunks/cli-0.7.1-cekfrrmq.mjs +8 -0
  129. package/dist/chunks/cli-0.7.1-cf5wjthv.mjs +2 -0
  130. package/dist/chunks/cli-0.7.1-cgnzp3xh.mjs +10 -0
  131. package/dist/chunks/cli-0.7.1-cjg6h2ca.mjs +2 -0
  132. package/dist/chunks/cli-0.7.1-cxscssf3.mjs +4 -0
  133. package/dist/chunks/cli-0.7.1-cxtqva68.mjs +2 -0
  134. package/dist/chunks/cli-0.7.1-d32m4pzb.mjs +2 -0
  135. package/dist/chunks/cli-0.7.1-d566f9dm.mjs +2 -0
  136. package/dist/chunks/cli-0.7.1-dfhpzav5.mjs +2 -0
  137. package/dist/chunks/cli-0.7.1-dmk3nmr9.mjs +4 -0
  138. package/dist/chunks/cli-0.7.1-dnmrbd43.mjs +2 -0
  139. package/dist/chunks/cli-0.7.1-dr27dym5.mjs +2 -0
  140. package/dist/chunks/cli-0.7.1-dsh8dcz2.mjs +2 -0
  141. package/dist/chunks/cli-0.7.1-dw2af4d2.mjs +3 -0
  142. package/dist/chunks/cli-0.7.1-dwrmbzjk.mjs +2 -0
  143. package/dist/chunks/cli-0.7.1-dx2b4mwt.mjs +2 -0
  144. package/dist/chunks/cli-0.7.1-dxxszxaa.mjs +2 -0
  145. package/dist/chunks/cli-0.7.1-dyf7seqv.mjs +4 -0
  146. package/dist/chunks/cli-0.7.1-e59h3jkz.mjs +2 -0
  147. package/dist/chunks/cli-0.7.1-eaqxfq5j.mjs +2 -0
  148. package/dist/chunks/cli-0.7.1-ebdykdv4.mjs +4 -0
  149. package/dist/chunks/cli-0.7.1-ebkzwe4v.mjs +2 -0
  150. package/dist/chunks/cli-0.7.1-eda0jmy0.mjs +3 -0
  151. package/dist/chunks/cli-0.7.1-ef7vcnec.mjs +2 -0
  152. package/dist/chunks/cli-0.7.1-ehc0edr2.mjs +2 -0
  153. package/dist/chunks/cli-0.7.1-ehgqjz41.mjs +2 -0
  154. package/dist/chunks/cli-0.7.1-eqdjtwya.mjs +2 -0
  155. package/dist/chunks/cli-0.7.1-espp6s0y.mjs +2 -0
  156. package/dist/chunks/cli-0.7.1-ez0dpq8d.mjs +2 -0
  157. package/dist/chunks/cli-0.7.1-fgtztd75.mjs +2 -0
  158. package/dist/chunks/cli-0.7.1-g2n9j9vd.mjs +2 -0
  159. package/dist/chunks/cli-0.7.1-gaqzbbr4.mjs +133 -0
  160. package/dist/chunks/cli-0.7.1-gc8m2z4s.mjs +3 -0
  161. package/dist/chunks/cli-0.7.1-gpj27qg9.mjs +9 -0
  162. package/dist/chunks/cli-0.7.1-hdhwyta7.mjs +2 -0
  163. package/dist/chunks/cli-0.7.1-hh3seyqe.mjs +2 -0
  164. package/dist/chunks/cli-0.7.1-hkjqfdbm.mjs +2 -0
  165. package/dist/chunks/cli-0.7.1-hx5avz23.mjs +3 -0
  166. package/dist/chunks/cli-0.7.1-hxqwphz3.mjs +2 -0
  167. package/dist/chunks/cli-0.7.1-j21wk954.mjs +17 -0
  168. package/dist/chunks/cli-0.7.1-j69yv5wv.mjs +2 -0
  169. package/dist/chunks/cli-0.7.1-j71sx09z.mjs +2 -0
  170. package/dist/chunks/cli-0.7.1-jdjhwj9r.mjs +2 -0
  171. package/dist/chunks/cli-0.7.1-jgx9y8hd.mjs +2 -0
  172. package/dist/chunks/cli-0.7.1-jpemgywy.mjs +193 -0
  173. package/dist/chunks/cli-0.7.1-k2r0wewv.mjs +34 -0
  174. package/dist/chunks/cli-0.7.1-k3wrch69.mjs +5422 -0
  175. package/dist/chunks/cli-0.7.1-k62svwx3.mjs +2 -0
  176. package/dist/chunks/cli-0.7.1-k9w4ggkt.mjs +2 -0
  177. package/dist/chunks/cli-0.7.1-kbyy07ta.mjs +42 -0
  178. package/dist/chunks/cli-0.7.1-kes4v4he.mjs +39 -0
  179. package/dist/chunks/cli-0.7.1-knxxgaxv.mjs +58 -0
  180. package/dist/chunks/cli-0.7.1-kwrsgjrs.mjs +2 -0
  181. package/dist/chunks/cli-0.7.1-m00xwwcc.mjs +4 -0
  182. package/dist/chunks/cli-0.7.1-m42mhk67.mjs +2 -0
  183. package/dist/chunks/cli-0.7.1-m4gfza1p.mjs +2 -0
  184. package/dist/chunks/cli-0.7.1-m5pd7m3r.mjs +2 -0
  185. package/dist/chunks/cli-0.7.1-m9xmxtwa.mjs +2 -0
  186. package/dist/chunks/cli-0.7.1-mcb9z58y.mjs +2 -0
  187. package/dist/chunks/cli-0.7.1-md6r4s60.mjs +24 -0
  188. package/dist/chunks/cli-0.7.1-mevd6vax.mjs +2 -0
  189. package/dist/chunks/cli-0.7.1-mky7mf90.mjs +2 -0
  190. package/dist/chunks/cli-0.7.1-mr2e3dyv.mjs +12 -0
  191. package/dist/chunks/cli-0.7.1-mt57tnps.mjs +2 -0
  192. package/dist/chunks/cli-0.7.1-mvq52b0y.mjs +18 -0
  193. package/dist/chunks/cli-0.7.1-mxjp359f.mjs +2 -0
  194. package/dist/chunks/cli-0.7.1-mzdb4t95.mjs +2 -0
  195. package/dist/chunks/cli-0.7.1-n7r3qbr7.mjs +2 -0
  196. package/dist/chunks/cli-0.7.1-n90a1d1a.mjs +3 -0
  197. package/dist/chunks/cli-0.7.1-nm9xqd0t.mjs +4 -0
  198. package/dist/chunks/cli-0.7.1-ns2p247a.mjs +20 -0
  199. package/dist/chunks/cli-0.7.1-nyy6gydm.mjs +2 -0
  200. package/dist/chunks/cli-0.7.1-p0fy9hz7.mjs +2 -0
  201. package/dist/chunks/cli-0.7.1-pfb1t2vv.mjs +2 -0
  202. package/dist/chunks/cli-0.7.1-pj2bwget.mjs +2 -0
  203. package/dist/chunks/cli-0.7.1-pzmph1bb.mjs +5 -0
  204. package/dist/chunks/cli-0.7.1-q22d0nn7.mjs +2 -0
  205. package/dist/chunks/cli-0.7.1-q27rb9ya.mjs +2 -0
  206. package/dist/chunks/cli-0.7.1-q32097ec.mjs +2 -0
  207. package/dist/chunks/cli-0.7.1-q4v2wwpa.mjs +2 -0
  208. package/dist/chunks/cli-0.7.1-qbg9kspq.mjs +2 -0
  209. package/dist/chunks/cli-0.7.1-qkcd1qhy.mjs +2 -0
  210. package/dist/chunks/cli-0.7.1-qmd1fgae.mjs +2 -0
  211. package/dist/chunks/cli-0.7.1-qydxc982.mjs +2 -0
  212. package/dist/chunks/cli-0.7.1-r3ykfxwq.mjs +24 -0
  213. package/dist/chunks/cli-0.7.1-rbby6bd5.mjs +2 -0
  214. package/dist/chunks/cli-0.7.1-rd1z70bz.mjs +2 -0
  215. package/dist/chunks/cli-0.7.1-rmj9pcnx.mjs +15 -0
  216. package/dist/chunks/cli-0.7.1-rmw8587w.mjs +4 -0
  217. package/dist/chunks/cli-0.7.1-rn9q2rxz.mjs +2 -0
  218. package/dist/chunks/cli-0.7.1-rrje9ahd.mjs +2 -0
  219. package/dist/chunks/cli-0.7.1-rt9yw2nh.mjs +67 -0
  220. package/dist/chunks/cli-0.7.1-rtpvm7nh.mjs +2 -0
  221. package/dist/chunks/cli-0.7.1-rz6n3grv.mjs +2 -0
  222. package/dist/chunks/cli-0.7.1-s2eya8px.mjs +2 -0
  223. package/dist/chunks/cli-0.7.1-seanve4t.mjs +2 -0
  224. package/dist/chunks/cli-0.7.1-sz0krng6.mjs +5 -0
  225. package/dist/chunks/cli-0.7.1-thfkavh1.mjs +3 -0
  226. package/dist/chunks/cli-0.7.1-va9tcjyz.mjs +2 -0
  227. package/dist/chunks/cli-0.7.1-vc1w3czg.mjs +59 -0
  228. package/dist/chunks/cli-0.7.1-vfekmem4.mjs +3 -0
  229. package/dist/chunks/cli-0.7.1-vfqcqg6s.mjs +2 -0
  230. package/dist/chunks/cli-0.7.1-vtqvv81d.mjs +7 -0
  231. package/dist/chunks/cli-0.7.1-w2rmty6t.mjs +2 -0
  232. package/dist/chunks/cli-0.7.1-w6mgjapm.mjs +2 -0
  233. package/dist/chunks/cli-0.7.1-wg6vf0hy.mjs +2 -0
  234. package/dist/chunks/cli-0.7.1-wjw73a3c.mjs +3 -0
  235. package/dist/chunks/cli-0.7.1-wp2jn3c0.mjs +2 -0
  236. package/dist/chunks/cli-0.7.1-wqk4b4mn.mjs +2 -0
  237. package/dist/chunks/cli-0.7.1-wzqmjfjs.mjs +2 -0
  238. package/dist/chunks/cli-0.7.1-xhtmjm5c.mjs +2 -0
  239. package/dist/chunks/cli-0.7.1-xjaebq17.mjs +1 -0
  240. package/dist/chunks/cli-0.7.1-xmj6ck32.mjs +18 -0
  241. package/dist/chunks/cli-0.7.1-xn7c84qw.mjs +2 -0
  242. package/dist/chunks/cli-0.7.1-xqxh1d0k.mjs +45 -0
  243. package/dist/chunks/cli-0.7.1-xrxje264.mjs +2 -0
  244. package/dist/chunks/cli-0.7.1-xvhh6hs3.mjs +25 -0
  245. package/dist/chunks/cli-0.7.1-xvp3ptcj.mjs +2 -0
  246. package/dist/chunks/cli-0.7.1-yevrh4dk.mjs +2 -0
  247. package/dist/chunks/cli-0.7.1-ygdm4xdq.mjs +2 -0
  248. package/dist/chunks/cli-0.7.1-yhn13w5s.mjs +2 -0
  249. package/dist/chunks/cli-0.7.1-ykypfrhj.mjs +2 -0
  250. package/dist/chunks/cli-0.7.1-zjw3v1mx.mjs +4 -0
  251. package/dist/chunks/cli-0.7.1-zrz7jgv0.mjs +2 -0
  252. package/dist/chunks/cli-0.7.1-zswdgbrk.mjs +2 -0
  253. package/dist/chunks/cli-0.7.1-zt8sj5mh.mjs +2 -0
  254. package/dist/chunks/client-0.7.1-5bbqygzn.mjs +1 -0
  255. package/dist/chunks/color-0.7.1-d97h4n6v.mjs +1 -0
  256. package/dist/chunks/compact-0.7.1-kq7n7064.mjs +3 -0
  257. package/dist/chunks/config-0.7.1-qw14rnwb.mjs +1 -0
  258. package/dist/chunks/config-0.7.1-vsbb5ybm.mjs +1 -0
  259. package/dist/chunks/constants-0.7.1-j99wnd0t.mjs +1 -0
  260. package/dist/chunks/context-0.7.1-nfbvwjm3.mjs +1 -0
  261. package/dist/chunks/context-noninteractive-0.7.1-w90a8b4k.mjs +1 -0
  262. package/dist/chunks/conversation-0.7.1-cabvk10y.mjs +1 -0
  263. package/dist/chunks/copilotHeaders-0.7.1-576y551e.mjs +1 -0
  264. package/dist/chunks/copy-0.7.1-zjy3ybzx.mjs +9 -0
  265. package/dist/chunks/cost-0.7.1-2sw1r4y9.mjs +1 -0
  266. package/dist/chunks/createSSHSession-0.7.1-ajjsgkcr.mjs +1 -0
  267. package/dist/chunks/createSession-0.7.1-hm73txww.mjs +1 -0
  268. package/dist/chunks/debug-0.7.1-qaj25ne7.mjs +1 -0
  269. package/dist/chunks/defaultActionDeps-0.7.1-xqmrxq95.mjs +1422 -0
  270. package/dist/chunks/desktop-0.7.1-sbjm4tw6.mjs +1 -0
  271. package/dist/chunks/detectRepository-0.7.1-ksy35c3e.mjs +1 -0
  272. package/dist/chunks/detection-0.7.1-h9q77x0f.mjs +1 -0
  273. package/dist/chunks/diff-0.7.1-65vdjrpz.mjs +1 -0
  274. package/dist/chunks/doctor-0.7.1-qpwe5hs1.mjs +1 -0
  275. package/dist/chunks/doctorDiagnostic-0.7.1-n9ez8jjp.mjs +1 -0
  276. package/dist/chunks/earlyInput-0.7.1-evw5t8gb.mjs +1 -0
  277. package/dist/chunks/effort-0.7.1-1gx253x4.mjs +10 -0
  278. package/dist/chunks/envLessBridgeConfig-0.7.1-e9nd930z.mjs +1 -0
  279. package/dist/chunks/envUtils-0.7.1-ymk55nnf.mjs +1 -0
  280. package/dist/chunks/environmentSelection-0.7.1-487w47dh.mjs +1 -0
  281. package/dist/chunks/environments-0.7.1-rafrq9ry.mjs +1 -0
  282. package/dist/chunks/errors-0.7.1-gehaqna3.mjs +1 -0
  283. package/dist/chunks/exampleCommands-0.7.1-nq55tbjv.mjs +1 -0
  284. package/dist/chunks/exit-0.7.1-680hz28c.mjs +1 -0
  285. package/dist/chunks/explorer-0.7.1-z0967d6r.mjs +1 -0
  286. package/dist/chunks/export-0.7.1-g9bdjstd.mjs +2 -0
  287. package/dist/chunks/extra-usage-0.7.1-xdwym2xk.mjs +1 -0
  288. package/dist/chunks/extra-usage-noninteractive-0.7.1-rnf1yy0q.mjs +1 -0
  289. package/dist/chunks/fast-0.7.1-315rzkyy.mjs +1 -0
  290. package/dist/chunks/feedback-0.7.1-p8r4xr11.mjs +14 -0
  291. package/dist/chunks/firstPartyEventLogger-0.7.1-h0ny1a03.mjs +1 -0
  292. package/dist/chunks/git-0.7.1-q9en18yj.mjs +1 -0
  293. package/dist/chunks/githubModelsCredentials-0.7.1-1ew0h3ve.mjs +1 -0
  294. package/dist/chunks/goal-0.7.1-qjzjey3j.mjs +4 -0
  295. package/dist/chunks/grove-0.7.1-4t3w9441.mjs +1 -0
  296. package/dist/chunks/growthbook-0.7.1-h7xxtrvf.mjs +1 -0
  297. package/dist/chunks/headless-0.7.1-6ae94wmy.mjs +2 -0
  298. package/dist/chunks/heapdump-0.7.1-srg8ym4e.mjs +6 -0
  299. package/dist/chunks/help-0.7.1-g1s4amj9.mjs +1 -0
  300. package/dist/chunks/hookChains-0.7.1-nvzpemqb.mjs +3 -0
  301. package/dist/chunks/hooks-0.7.1-19rxqk3m.mjs +79 -0
  302. package/dist/chunks/hooks-0.7.1-918zv23z.mjs +1 -0
  303. package/dist/chunks/ide-0.7.1-29f4xm8h.mjs +3 -0
  304. package/dist/chunks/image-processor-napi-0.7.1-21880z56.mjs +1 -0
  305. package/dist/chunks/inboundAttachments-0.7.1-vj4mtwgs.mjs +1 -0
  306. package/dist/chunks/index-0.7.1-05ga11b5.mjs +1 -0
  307. package/dist/chunks/index-0.7.1-08cj1sdf.mjs +1 -0
  308. package/dist/chunks/index-0.7.1-13drp9nj.mjs +1 -0
  309. package/dist/chunks/index-0.7.1-4xrmd4xj.mjs +30 -0
  310. package/dist/chunks/index-0.7.1-6m7fqnxf.mjs +1 -0
  311. package/dist/chunks/index-0.7.1-6w21gjac.mjs +1 -0
  312. package/dist/chunks/index-0.7.1-7pweww0b.mjs +1 -0
  313. package/dist/chunks/index-0.7.1-8753b2ed.mjs +1 -0
  314. package/dist/chunks/index-0.7.1-8yjbpdj3.mjs +1 -0
  315. package/dist/chunks/index-0.7.1-bcgceyp2.mjs +2 -0
  316. package/dist/chunks/index-0.7.1-bjckst5c.mjs +1 -0
  317. package/dist/chunks/index-0.7.1-drps39aq.mjs +5 -0
  318. package/dist/chunks/index-0.7.1-gfr5qm3n.mjs +1 -0
  319. package/dist/chunks/index-0.7.1-k15r2adh.mjs +9 -0
  320. package/dist/chunks/index-0.7.1-mhbm4m18.mjs +1 -0
  321. package/dist/chunks/index-0.7.1-mshav77m.mjs +9 -0
  322. package/dist/chunks/index-0.7.1-pcnfdjxe.mjs +1 -0
  323. package/dist/chunks/index-0.7.1-pcwfft21.mjs +1 -0
  324. package/dist/chunks/index-0.7.1-th8gnyjv.mjs +1 -0
  325. package/dist/chunks/index-0.7.1-tj6byrkd.mjs +2 -0
  326. package/dist/chunks/index-0.7.1-vezza4mb.mjs +17 -0
  327. package/dist/chunks/index-0.7.1-w0rz5trr.mjs +1 -0
  328. package/dist/chunks/index-0.7.1-wpzgm03y.mjs +1 -0
  329. package/dist/chunks/init-0.7.1-saq601q7.mjs +1 -0
  330. package/dist/chunks/initReplBridge-0.7.1-aqvbm3dc.mjs +1 -0
  331. package/dist/chunks/ink-0.7.1-8q2edv8t.mjs +1 -0
  332. package/dist/chunks/insights-0.7.1-2t65g57h.mjs +870 -0
  333. package/dist/chunks/install-0.7.1-ecee3epk.mjs +1 -0
  334. package/dist/chunks/install-github-app-0.7.1-yz6sr0n1.mjs +149 -0
  335. package/dist/chunks/install-slack-app-0.7.1-z2n7dzqn.mjs +1 -0
  336. package/dist/chunks/instrumentation-0.7.1-ejkfct84.mjs +1 -0
  337. package/dist/chunks/interactiveHelpers-0.7.1-3pgg93hb.mjs +1 -0
  338. package/dist/chunks/keybindings-0.7.1-zstbszpg.mjs +2 -0
  339. package/dist/chunks/knowledge-0.7.1-b5nd9y2x.mjs +2 -0
  340. package/dist/chunks/latestVersionCache-0.7.1-6bpfy1b6.mjs +1 -0
  341. package/dist/chunks/loadAgentsDir-0.7.1-p8rq7yzm.mjs +1 -0
  342. package/dist/chunks/loadPluginHooks-0.7.1-d63pgpzs.mjs +1 -0
  343. package/dist/chunks/loadPluginHooks-0.7.1-gjb8jztz.mjs +1 -0
  344. package/dist/chunks/log-0.7.1-fxt088jb.mjs +1 -0
  345. package/dist/chunks/main-0.7.1-0vqgtt6k.mjs +1 -0
  346. package/dist/chunks/managedEnv-0.7.1-hmbbthb1.mjs +1 -0
  347. package/dist/chunks/mcp-0.7.1-79bgprwt.mjs +17 -0
  348. package/dist/chunks/mcp-0.7.1-fah2dpxt.mjs +1 -0
  349. package/dist/chunks/mcp-0.7.1-y1qkvnjg.mjs +4 -0
  350. package/dist/chunks/mcpb-0.7.1-2dapw2hx.mjs +1 -0
  351. package/dist/chunks/memory-0.7.1-ebb517bx.mjs +3 -0
  352. package/dist/chunks/model-0.7.1-3arjsbnf.mjs +2 -0
  353. package/dist/chunks/model-0.7.1-k3apa82z.mjs +1 -0
  354. package/dist/chunks/node-0.7.1-cdt9e3gn.mjs +12 -0
  355. package/dist/chunks/oauth-0.7.1-x8bhb9nz.mjs +1 -0
  356. package/dist/chunks/openaiShim-0.7.1-z2g9xzcq.mjs +14 -0
  357. package/dist/chunks/output-style-0.7.1-6pse3vv2.mjs +1 -0
  358. package/dist/chunks/package-GCDC7LJR-0.7.1-gy8kt96r.mjs +1 -0
  359. package/dist/chunks/parseConnectUrl-0.7.1-gg6kkfk2.mjs +1 -0
  360. package/dist/chunks/parser-0.7.1-5tt8chsn.mjs +1 -0
  361. package/dist/chunks/passes-0.7.1-b7rbrgkm.mjs +1 -0
  362. package/dist/chunks/permissions-0.7.1-nenep4c2.mjs +1 -0
  363. package/dist/chunks/permissions-0.7.1-zrdsqk21.mjs +3 -0
  364. package/dist/chunks/plan-0.7.1-85aa5f5y.mjs +1 -0
  365. package/dist/chunks/plist-0.7.1-qp82sdff.mjs +1 -0
  366. package/dist/chunks/plugin-0.7.1-je74p85s.mjs +29 -0
  367. package/dist/chunks/pluginStartupCheck-0.7.1-mvcejqcq.mjs +1 -0
  368. package/dist/chunks/plugins-0.7.1-m3wj9r06.mjs +9 -0
  369. package/dist/chunks/preActionHook-0.7.1-r7jz8sy6.mjs +2 -0
  370. package/dist/chunks/print-0.7.1-gsrx6f37.mjs +57 -0
  371. package/dist/chunks/privacy-settings-0.7.1-7kr3zzrk.mjs +1 -0
  372. package/dist/chunks/process-0.7.1-2776jpyn.mjs +1 -0
  373. package/dist/chunks/processBashCommand-0.7.1-5x2898xr.mjs +1 -0
  374. package/dist/chunks/processSlashCommand-0.7.1-dr876jz7.mjs +9 -0
  375. package/dist/chunks/prompt-0.7.1-7af9fgbe.mjs +1 -0
  376. package/dist/chunks/prompt-0.7.1-dw1fgpwq.mjs +1 -0
  377. package/dist/chunks/prompts-0.7.1-nbx9nyb5.mjs +1 -0
  378. package/dist/chunks/protocolHandler-0.7.1-qy15fxqj.mjs +13 -0
  379. package/dist/chunks/provider-0.7.1-0m9xffbf.mjs +2 -0
  380. package/dist/chunks/providerProfiles-0.7.1-9cc9sgnd.mjs +1 -0
  381. package/dist/chunks/providerValidation-0.7.1-jfy1rksg.mjs +6 -0
  382. package/dist/chunks/rate-limit-options-0.7.1-pxbxm170.mjs +1 -0
  383. package/dist/chunks/registerSubcommands-0.7.1-jwn9g5j8.mjs +34 -0
  384. package/dist/chunks/registry-0.7.1-gkweb7m4.mjs +1 -0
  385. package/dist/chunks/release-notes-0.7.1-h92ctc9v.mjs +5 -0
  386. package/dist/chunks/reload-plugins-0.7.1-ke9qvkbd.mjs +2 -0
  387. package/dist/chunks/remote-env-0.7.1-36s0b9x3.mjs +1 -0
  388. package/dist/chunks/remoteBridgeCore-0.7.1-fz71fhjn.mjs +1 -0
  389. package/dist/chunks/remoteSession-0.7.1-syy16saz.mjs +1 -0
  390. package/dist/chunks/rename-0.7.1-pp0vxpxy.mjs +1 -0
  391. package/dist/chunks/replBridgeHandle-0.7.1-ym42egv0.mjs +1 -0
  392. package/dist/chunks/replLauncher-0.7.1-jk6m635f.mjs +1 -0
  393. package/dist/chunks/resume-0.7.1-2q37w3de.mjs +2 -0
  394. package/dist/chunks/rewind-0.7.1-3t95cz8k.mjs +1 -0
  395. package/dist/chunks/rootOptions-0.7.1-4veg3eep.mjs +1 -0
  396. package/dist/chunks/sandbox-adapter-0.7.1-jy6rr7mq.mjs +1 -0
  397. package/dist/chunks/sandbox-toggle-0.7.1-aqpewqqh.mjs +1 -0
  398. package/dist/chunks/session-0.7.1-y1xwe626.mjs +2 -0
  399. package/dist/chunks/sessionDiscovery-0.7.1-nvdbjq60.mjs +1 -0
  400. package/dist/chunks/sessionFileAccessHooks-0.7.1-bbx6cg5g.mjs +1 -0
  401. package/dist/chunks/sessionStorage-0.7.1-n4dhbzem.mjs +1 -0
  402. package/dist/chunks/settings-0.7.1-pecm5dv1.mjs +1 -0
  403. package/dist/chunks/setup-0.7.1-gqpnyen6.mjs +5 -0
  404. package/dist/chunks/sinks-0.7.1-cq5f40zp.mjs +1 -0
  405. package/dist/chunks/skills-0.7.1-5qchbh6n.mjs +1 -0
  406. package/dist/chunks/startupProfiler-0.7.1-q1mwtr5f.mjs +1 -0
  407. package/dist/chunks/startupUpdateCheck-0.7.1-ncttf1vf.mjs +1 -0
  408. package/dist/chunks/state-0.7.1-34txp9ap.mjs +1 -0
  409. package/dist/chunks/stats-0.7.1-v8hnv2t1.mjs +6 -0
  410. package/dist/chunks/status-0.7.1-g7ngz48p.mjs +1 -0
  411. package/dist/chunks/stickers-0.7.1-y53mmmdh.mjs +1 -0
  412. package/dist/chunks/subprocessEnv-0.7.1-1t25wkzh.mjs +1 -0
  413. package/dist/chunks/tasks-0.7.1-2yky7fwg.mjs +1 -0
  414. package/dist/chunks/teamHelpers-0.7.1-0wyvqbjp.mjs +1 -0
  415. package/dist/chunks/teammateModeSnapshot-0.7.1-cgf3g4j9.mjs +1 -0
  416. package/dist/chunks/teleport-0.7.1-353z35fj.mjs +1 -0
  417. package/dist/chunks/terminalSetup-0.7.1-nw69mcxs.mjs +1 -0
  418. package/dist/chunks/theme-0.7.1-nzx60j7s.mjs +1 -0
  419. package/dist/chunks/thinkback-0.7.1-9jvy533f.mjs +1 -0
  420. package/dist/chunks/thinkback-play-0.7.1-m2kx6nfn.mjs +1 -0
  421. package/dist/chunks/toolPool-0.7.1-qywync64.mjs +1 -0
  422. package/dist/chunks/toolSearch-0.7.1-snw68bwv.mjs +1 -0
  423. package/dist/chunks/tools-0.7.1-5btn07a6.mjs +1 -0
  424. package/dist/chunks/trustedDevice-0.7.1-hma4k1vw.mjs +1 -0
  425. package/dist/chunks/turndown.cjs-0.7.1-k8n9qvhg.mjs +69 -0
  426. package/dist/chunks/types-0.7.1-9mrce42m.mjs +1 -0
  427. package/dist/chunks/ultrareviewCommand-0.7.1-h5k5xdws.mjs +4 -0
  428. package/dist/chunks/update-0.7.1-tqtsan40.mjs +86 -0
  429. package/dist/chunks/upgrade-0.7.1-b5ktjkp0.mjs +1 -0
  430. package/dist/chunks/upload-0.7.1-5910sy8s.mjs +7 -0
  431. package/dist/chunks/upstreamproxy-0.7.1-5fyja3cf.mjs +14 -0
  432. package/dist/chunks/url-handler-napi-0.7.1-paf3bx7g.mjs +1 -0
  433. package/dist/chunks/usage-0.7.1-2j0rqtzd.mjs +1 -0
  434. package/dist/chunks/util-0.7.1-62f399jk.mjs +1 -0
  435. package/dist/chunks/utils-0.7.1-vdqtwham.mjs +1 -0
  436. package/dist/chunks/vim-0.7.1-ry9xqmcy.mjs +1 -0
  437. package/dist/chunks/watcher-0.7.1-wdz2r62h.mjs +1 -0
  438. package/dist/chunks/wiki-0.7.1-sdq9xgrk.mjs +132 -0
  439. package/dist/chunks/worktree-0.7.1-e7sx150a.mjs +1 -0
  440. package/dist/chunks/worktreeModeEnabled-0.7.1-s0gwv1pz.mjs +1 -0
  441. package/dist/chunks/wrapper-0.7.1-3xjvgc6e.mjs +7 -0
  442. package/dist/claudin-vscode.vsix +0 -0
  443. package/dist/cli.mjs +2 -2
  444. package/package.json +1 -1
  445. package/dist/chunks/AgentTool-0.7.0-9peg6t20.mjs +0 -1
  446. package/dist/chunks/App-0.7.0-q5hygb50.mjs +0 -1
  447. package/dist/chunks/ApproveApiKey-0.7.0-pdj2vakp.mjs +0 -1
  448. package/dist/chunks/AssistantSessionChooser-0.7.0-190csm4h.mjs +0 -1
  449. package/dist/chunks/AutoModeOptInDialog-0.7.0-khhh5rz9.mjs +0 -1
  450. package/dist/chunks/BypassPermissionsModeDialog-0.7.0-4n7jcjsf.mjs +0 -1
  451. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.7.0-vf636a5p.mjs +0 -1
  452. package/dist/chunks/ConsoleOAuthFlow-0.7.0-z9h5bckg.mjs +0 -1
  453. package/dist/chunks/DiffDialog-0.7.0-3kqmdg48.mjs +0 -7
  454. package/dist/chunks/Doctor-0.7.0-gep401wn.mjs +0 -1
  455. package/dist/chunks/ExplorerDialog-0.7.0-2t408ngs.mjs +0 -6
  456. package/dist/chunks/Grove-0.7.0-3knq53k5.mjs +0 -1
  457. package/dist/chunks/ITermBackend-0.7.0-by807q13.mjs +0 -1
  458. package/dist/chunks/InvalidConfigDialog-0.7.0-maxj2b37.mjs +0 -1
  459. package/dist/chunks/InvalidSettingsDialog-0.7.0-2atqejbc.mjs +0 -1
  460. package/dist/chunks/MigrationDialog-0.7.0-wqtqgs70.mjs +0 -1
  461. package/dist/chunks/Onboarding-0.7.0-xe2s643k.mjs +0 -1
  462. package/dist/chunks/ProviderManager-0.7.0-4tbbvacv.mjs +0 -1
  463. package/dist/chunks/REPL-0.7.0-tvn2epfh.mjs +0 -1
  464. package/dist/chunks/ResumeConversation-0.7.0-6ycqmhh2.mjs +0 -1
  465. package/dist/chunks/SnapshotUpdateDialog-0.7.0-xwjwtj2z.mjs +0 -1
  466. package/dist/chunks/TeleportProgress-0.7.0-mwbsjw08.mjs +0 -1
  467. package/dist/chunks/TeleportRepoMismatchDialog-0.7.0-szdbz9rf.mjs +0 -1
  468. package/dist/chunks/TeleportResumeWrapper-0.7.0-sg1whfhh.mjs +0 -1
  469. package/dist/chunks/TmuxBackend-0.7.0-jdkh4z1a.mjs +0 -9
  470. package/dist/chunks/ToolSearchTool-0.7.0-f557bcbq.mjs +0 -1
  471. package/dist/chunks/TrustDialog-0.7.0-gfmvgcwc.mjs +0 -1
  472. package/dist/chunks/activeProvider-0.7.0-vvs597t9.mjs +0 -1
  473. package/dist/chunks/add-dir-0.7.0-tqy1qj7k.mjs +0 -1
  474. package/dist/chunks/agents-0.7.0-7mz67ymz.mjs +0 -110
  475. package/dist/chunks/agents-0.7.0-rzfq4nj1.mjs +0 -3
  476. package/dist/chunks/api-0.7.0-3ddtm43n.mjs +0 -1
  477. package/dist/chunks/asciicast-0.7.0-4hfhh3bz.mjs +0 -1
  478. package/dist/chunks/assistant-0.7.0-hq9qp39j.mjs +0 -1
  479. package/dist/chunks/auth-0.7.0-j0ecrgmw.mjs +0 -1
  480. package/dist/chunks/auth-0.7.0-q33dw9jq.mjs +0 -1
  481. package/dist/chunks/autoMode-0.7.0-jt8mnf1a.mjs +0 -48
  482. package/dist/chunks/autoUpdater-0.7.0-pk6cxrr5.mjs +0 -1
  483. package/dist/chunks/backgroundHousekeeping-0.7.0-n50bjkpa.mjs +0 -1
  484. package/dist/chunks/branch-0.7.0-2nvgp1ch.mjs +0 -4
  485. package/dist/chunks/bridge-0.7.0-n76zrpx7.mjs +0 -2
  486. package/dist/chunks/bridgeConfig-0.7.0-wavdtzat.mjs +0 -1
  487. package/dist/chunks/bridgeEnabled-0.7.0-eqjw3fax.mjs +0 -1
  488. package/dist/chunks/bridgeMain-0.7.0-7n73zfpq.mjs +0 -88
  489. package/dist/chunks/bridgePointer-0.7.0-49x6tn3y.mjs +0 -1
  490. package/dist/chunks/btw-0.7.0-d2cavbgh.mjs +0 -1
  491. package/dist/chunks/buddy-0.7.0-3r0qt58d.mjs +0 -3
  492. package/dist/chunks/cacache-0.7.0-tsq5tf6t.mjs +0 -1
  493. package/dist/chunks/cache-probe-0.7.0-521yf1je.mjs +0 -21
  494. package/dist/chunks/cacheStats-0.7.0-xrpkvgry.mjs +0 -4
  495. package/dist/chunks/caches-0.7.0-khrzrs38.mjs +0 -1
  496. package/dist/chunks/claudeDesktop-0.7.0-9vm9zdzp.mjs +0 -1
  497. package/dist/chunks/claudemd-0.7.0-06x6wykt.mjs +0 -1
  498. package/dist/chunks/clear-0.7.0-0hkt8avg.mjs +0 -1
  499. package/dist/chunks/clearTerminal-0.7.0-np2er6we.mjs +0 -1
  500. package/dist/chunks/cli-0.7.0-0bzz8t89.mjs +0 -2
  501. package/dist/chunks/cli-0.7.0-0cp32djm.mjs +0 -2
  502. package/dist/chunks/cli-0.7.0-0hzevdxp.mjs +0 -8
  503. package/dist/chunks/cli-0.7.0-0r9dgw51.mjs +0 -3
  504. package/dist/chunks/cli-0.7.0-0vdrrv1g.mjs +0 -2
  505. package/dist/chunks/cli-0.7.0-154gmfg4.mjs +0 -2
  506. package/dist/chunks/cli-0.7.0-15wmymmf.mjs +0 -2
  507. package/dist/chunks/cli-0.7.0-19swb9c9.mjs +0 -2
  508. package/dist/chunks/cli-0.7.0-1b6xe3b3.mjs +0 -3
  509. package/dist/chunks/cli-0.7.0-1evcxwvq.mjs +0 -9
  510. package/dist/chunks/cli-0.7.0-1tb38zvv.mjs +0 -2
  511. package/dist/chunks/cli-0.7.0-1vvj7vh2.mjs +0 -4
  512. package/dist/chunks/cli-0.7.0-21zw08ne.mjs +0 -4
  513. package/dist/chunks/cli-0.7.0-24z25c8v.mjs +0 -2
  514. package/dist/chunks/cli-0.7.0-252v8s5n.mjs +0 -20
  515. package/dist/chunks/cli-0.7.0-29zphpz9.mjs +0 -2
  516. package/dist/chunks/cli-0.7.0-2cdwx892.mjs +0 -3
  517. package/dist/chunks/cli-0.7.0-2etvr47t.mjs +0 -24
  518. package/dist/chunks/cli-0.7.0-2nytysyy.mjs +0 -2
  519. package/dist/chunks/cli-0.7.0-383nrwhr.mjs +0 -18
  520. package/dist/chunks/cli-0.7.0-3fnqxks0.mjs +0 -5
  521. package/dist/chunks/cli-0.7.0-3knzsvn6.mjs +0 -2
  522. package/dist/chunks/cli-0.7.0-3n9nagt9.mjs +0 -2
  523. package/dist/chunks/cli-0.7.0-3stm3k7p.mjs +0 -12
  524. package/dist/chunks/cli-0.7.0-3xtc467b.mjs +0 -2
  525. package/dist/chunks/cli-0.7.0-48ycf0c3.mjs +0 -2
  526. package/dist/chunks/cli-0.7.0-48yfvx4w.mjs +0 -2
  527. package/dist/chunks/cli-0.7.0-49k0drxj.mjs +0 -2
  528. package/dist/chunks/cli-0.7.0-4d58csqr.mjs +0 -2
  529. package/dist/chunks/cli-0.7.0-4s9f320h.mjs +0 -2
  530. package/dist/chunks/cli-0.7.0-4t41vxc0.mjs +0 -2
  531. package/dist/chunks/cli-0.7.0-4z8583dp.mjs +0 -2
  532. package/dist/chunks/cli-0.7.0-4z9nwzzv.mjs +0 -2
  533. package/dist/chunks/cli-0.7.0-4zvtjdd8.mjs +0 -2
  534. package/dist/chunks/cli-0.7.0-5df67dbk.mjs +0 -2
  535. package/dist/chunks/cli-0.7.0-5fx679he.mjs +0 -2
  536. package/dist/chunks/cli-0.7.0-5ktz31fq.mjs +0 -67
  537. package/dist/chunks/cli-0.7.0-5yvefnpr.mjs +0 -3
  538. package/dist/chunks/cli-0.7.0-68mgyfr7.mjs +0 -2
  539. package/dist/chunks/cli-0.7.0-6v89j1h0.mjs +0 -2
  540. package/dist/chunks/cli-0.7.0-747esby6.mjs +0 -2
  541. package/dist/chunks/cli-0.7.0-7c24mbsm.mjs +0 -2
  542. package/dist/chunks/cli-0.7.0-7g132rdj.mjs +0 -5420
  543. package/dist/chunks/cli-0.7.0-83nm3wtf.mjs +0 -2
  544. package/dist/chunks/cli-0.7.0-89798mg3.mjs +0 -2
  545. package/dist/chunks/cli-0.7.0-8begebnr.mjs +0 -3
  546. package/dist/chunks/cli-0.7.0-8qwe028y.mjs +0 -2
  547. package/dist/chunks/cli-0.7.0-9jzkqcfv.mjs +0 -16
  548. package/dist/chunks/cli-0.7.0-9mk6sjcz.mjs +0 -4
  549. package/dist/chunks/cli-0.7.0-9p8vefz6.mjs +0 -18
  550. package/dist/chunks/cli-0.7.0-a088q8ep.mjs +0 -2
  551. package/dist/chunks/cli-0.7.0-a0dt04a7.mjs +0 -2
  552. package/dist/chunks/cli-0.7.0-a7rry8ha.mjs +0 -2
  553. package/dist/chunks/cli-0.7.0-ad4z1hfv.mjs +0 -50
  554. package/dist/chunks/cli-0.7.0-aewz8nz4.mjs +0 -2
  555. package/dist/chunks/cli-0.7.0-apkk9390.mjs +0 -3
  556. package/dist/chunks/cli-0.7.0-asw5nd1q.mjs +0 -2
  557. package/dist/chunks/cli-0.7.0-avczxk44.mjs +0 -2
  558. package/dist/chunks/cli-0.7.0-avw5kb07.mjs +0 -2
  559. package/dist/chunks/cli-0.7.0-ba1xb8x3.mjs +0 -4
  560. package/dist/chunks/cli-0.7.0-bacjkqga.mjs +0 -2
  561. package/dist/chunks/cli-0.7.0-bn0k1nzk.mjs +0 -2
  562. package/dist/chunks/cli-0.7.0-cb16hgkh.mjs +0 -2
  563. package/dist/chunks/cli-0.7.0-cjxpqpns.mjs +0 -3
  564. package/dist/chunks/cli-0.7.0-ct2kfpct.mjs +0 -2
  565. package/dist/chunks/cli-0.7.0-cwxeffcg.mjs +0 -2
  566. package/dist/chunks/cli-0.7.0-d56bajvn.mjs +0 -2
  567. package/dist/chunks/cli-0.7.0-d5bt2ahd.mjs +0 -2
  568. package/dist/chunks/cli-0.7.0-d6h4eqtj.mjs +0 -2
  569. package/dist/chunks/cli-0.7.0-d8vr3j93.mjs +0 -2
  570. package/dist/chunks/cli-0.7.0-dem9bmt6.mjs +0 -2
  571. package/dist/chunks/cli-0.7.0-dpaewdhn.mjs +0 -2
  572. package/dist/chunks/cli-0.7.0-dszmq0g3.mjs +0 -2
  573. package/dist/chunks/cli-0.7.0-dtxyc2mt.mjs +0 -2
  574. package/dist/chunks/cli-0.7.0-dxnyr5rv.mjs +0 -2
  575. package/dist/chunks/cli-0.7.0-dyhamqem.mjs +0 -2
  576. package/dist/chunks/cli-0.7.0-e1esnrzt.mjs +0 -42
  577. package/dist/chunks/cli-0.7.0-e1mycvjk.mjs +0 -2
  578. package/dist/chunks/cli-0.7.0-e39zcyhp.mjs +0 -4
  579. package/dist/chunks/cli-0.7.0-e6mves6r.mjs +0 -2
  580. package/dist/chunks/cli-0.7.0-eayr3nfv.mjs +0 -2
  581. package/dist/chunks/cli-0.7.0-ecwta6mh.mjs +0 -2
  582. package/dist/chunks/cli-0.7.0-eddwmcdn.mjs +0 -2
  583. package/dist/chunks/cli-0.7.0-es6y6s82.mjs +0 -12
  584. package/dist/chunks/cli-0.7.0-ewbn59cm.mjs +0 -2
  585. package/dist/chunks/cli-0.7.0-ewcemx0m.mjs +0 -2
  586. package/dist/chunks/cli-0.7.0-f62gcsfa.mjs +0 -2
  587. package/dist/chunks/cli-0.7.0-f7mqc27p.mjs +0 -6
  588. package/dist/chunks/cli-0.7.0-ffy8few4.mjs +0 -3
  589. package/dist/chunks/cli-0.7.0-ft5gef81.mjs +0 -2
  590. package/dist/chunks/cli-0.7.0-ftjagwyg.mjs +0 -2
  591. package/dist/chunks/cli-0.7.0-fxv77y2t.mjs +0 -12
  592. package/dist/chunks/cli-0.7.0-g2ekvm09.mjs +0 -6
  593. package/dist/chunks/cli-0.7.0-g46gs4dx.mjs +0 -2
  594. package/dist/chunks/cli-0.7.0-g5qxznar.mjs +0 -2
  595. package/dist/chunks/cli-0.7.0-gafgf0er.mjs +0 -2
  596. package/dist/chunks/cli-0.7.0-gkssrwr6.mjs +0 -34
  597. package/dist/chunks/cli-0.7.0-h6kfhzzd.mjs +0 -193
  598. package/dist/chunks/cli-0.7.0-hmjg8yfx.mjs +0 -2
  599. package/dist/chunks/cli-0.7.0-hrtdae85.mjs +0 -6
  600. package/dist/chunks/cli-0.7.0-hxf1ckjt.mjs +0 -12
  601. package/dist/chunks/cli-0.7.0-hxph4t80.mjs +0 -2
  602. package/dist/chunks/cli-0.7.0-j4jzhywr.mjs +0 -3
  603. package/dist/chunks/cli-0.7.0-je29e78f.mjs +0 -2
  604. package/dist/chunks/cli-0.7.0-jmsrj8j2.mjs +0 -4
  605. package/dist/chunks/cli-0.7.0-jvkyhn8x.mjs +0 -2
  606. package/dist/chunks/cli-0.7.0-k3qqc7gx.mjs +0 -2
  607. package/dist/chunks/cli-0.7.0-k7w5n7pe.mjs +0 -2
  608. package/dist/chunks/cli-0.7.0-kkpf8bhn.mjs +0 -2
  609. package/dist/chunks/cli-0.7.0-kngw06pw.mjs +0 -4
  610. package/dist/chunks/cli-0.7.0-kp7f47zq.mjs +0 -2
  611. package/dist/chunks/cli-0.7.0-kpfe5dkw.mjs +0 -2
  612. package/dist/chunks/cli-0.7.0-kr6jdp53.mjs +0 -133
  613. package/dist/chunks/cli-0.7.0-kw0wp8vs.mjs +0 -2
  614. package/dist/chunks/cli-0.7.0-kw554ntj.mjs +0 -3
  615. package/dist/chunks/cli-0.7.0-m07xma4d.mjs +0 -2
  616. package/dist/chunks/cli-0.7.0-m6ysmj08.mjs +0 -39
  617. package/dist/chunks/cli-0.7.0-mea2neea.mjs +0 -133
  618. package/dist/chunks/cli-0.7.0-mn3gdwp2.mjs +0 -17
  619. package/dist/chunks/cli-0.7.0-mnbdk339.mjs +0 -3
  620. package/dist/chunks/cli-0.7.0-n0s94kev.mjs +0 -2
  621. package/dist/chunks/cli-0.7.0-n0twknfk.mjs +0 -2
  622. package/dist/chunks/cli-0.7.0-na9s209m.mjs +0 -2
  623. package/dist/chunks/cli-0.7.0-p96azep2.mjs +0 -7
  624. package/dist/chunks/cli-0.7.0-p9c7eask.mjs +0 -2
  625. package/dist/chunks/cli-0.7.0-p9q4x3f1.mjs +0 -59
  626. package/dist/chunks/cli-0.7.0-pbs0cx53.mjs +0 -2
  627. package/dist/chunks/cli-0.7.0-petmjdha.mjs +0 -2
  628. package/dist/chunks/cli-0.7.0-pf2fr5cc.mjs +0 -4
  629. package/dist/chunks/cli-0.7.0-pfcabga3.mjs +0 -2
  630. package/dist/chunks/cli-0.7.0-ppqzq0zp.mjs +0 -2
  631. package/dist/chunks/cli-0.7.0-q5sbn5b2.mjs +0 -4
  632. package/dist/chunks/cli-0.7.0-q70ex7jy.mjs +0 -2
  633. package/dist/chunks/cli-0.7.0-qeg8v19s.mjs +0 -2
  634. package/dist/chunks/cli-0.7.0-qftredzy.mjs +0 -2
  635. package/dist/chunks/cli-0.7.0-qmckaxpm.mjs +0 -2
  636. package/dist/chunks/cli-0.7.0-r8g195r8.mjs +0 -15
  637. package/dist/chunks/cli-0.7.0-rmprwgax.mjs +0 -2
  638. package/dist/chunks/cli-0.7.0-rnahtcw9.mjs +0 -5
  639. package/dist/chunks/cli-0.7.0-rxhbb3ca.mjs +0 -2
  640. package/dist/chunks/cli-0.7.0-s0b5jjrj.mjs +0 -2
  641. package/dist/chunks/cli-0.7.0-s14kw5d6.mjs +0 -2
  642. package/dist/chunks/cli-0.7.0-s4at7t0q.mjs +0 -2
  643. package/dist/chunks/cli-0.7.0-s8rt9fpg.mjs +0 -2
  644. package/dist/chunks/cli-0.7.0-s9hgep30.mjs +0 -3
  645. package/dist/chunks/cli-0.7.0-sbwhas5a.mjs +0 -18
  646. package/dist/chunks/cli-0.7.0-tcxmyk2w.mjs +0 -2
  647. package/dist/chunks/cli-0.7.0-tjpp46xm.mjs +0 -2
  648. package/dist/chunks/cli-0.7.0-tvwks6zm.mjs +0 -2
  649. package/dist/chunks/cli-0.7.0-twxrndmz.mjs +0 -4
  650. package/dist/chunks/cli-0.7.0-v6ceqq5f.mjs +0 -2
  651. package/dist/chunks/cli-0.7.0-v7hc34ad.mjs +0 -2
  652. package/dist/chunks/cli-0.7.0-v92q5ffm.mjs +0 -2
  653. package/dist/chunks/cli-0.7.0-vf7bbn80.mjs +0 -5
  654. package/dist/chunks/cli-0.7.0-vfzbn5qv.mjs +0 -2
  655. package/dist/chunks/cli-0.7.0-vp89ypch.mjs +0 -24
  656. package/dist/chunks/cli-0.7.0-vvb9pc7x.mjs +0 -3
  657. package/dist/chunks/cli-0.7.0-vzpjsnyh.mjs +0 -2
  658. package/dist/chunks/cli-0.7.0-vzvrhx5c.mjs +0 -2
  659. package/dist/chunks/cli-0.7.0-w0nw2kkk.mjs +0 -17
  660. package/dist/chunks/cli-0.7.0-wb82h4c2.mjs +0 -2
  661. package/dist/chunks/cli-0.7.0-wf8v2b4s.mjs +0 -15
  662. package/dist/chunks/cli-0.7.0-wgy69726.mjs +0 -2
  663. package/dist/chunks/cli-0.7.0-wm0enq59.mjs +0 -2
  664. package/dist/chunks/cli-0.7.0-wntkecma.mjs +0 -2
  665. package/dist/chunks/cli-0.7.0-wspeyepj.mjs +0 -2
  666. package/dist/chunks/cli-0.7.0-wvpty7mm.mjs +0 -2
  667. package/dist/chunks/cli-0.7.0-wxynfqax.mjs +0 -2
  668. package/dist/chunks/cli-0.7.0-wzjrm1a0.mjs +0 -2
  669. package/dist/chunks/cli-0.7.0-x1xdxk52.mjs +0 -2
  670. package/dist/chunks/cli-0.7.0-x2vc8nds.mjs +0 -2
  671. package/dist/chunks/cli-0.7.0-xb864qfd.mjs +0 -2
  672. package/dist/chunks/cli-0.7.0-xfxprc47.mjs +0 -2
  673. package/dist/chunks/cli-0.7.0-xpzg1xfc.mjs +0 -2
  674. package/dist/chunks/cli-0.7.0-xvjaw51n.mjs +0 -15
  675. package/dist/chunks/cli-0.7.0-y003ay15.mjs +0 -2
  676. package/dist/chunks/cli-0.7.0-y6nkrrpn.mjs +0 -2
  677. package/dist/chunks/cli-0.7.0-ybdk9aq6.mjs +0 -21
  678. package/dist/chunks/cli-0.7.0-ybwa4x6g.mjs +0 -2
  679. package/dist/chunks/cli-0.7.0-ycew6bek.mjs +0 -2
  680. package/dist/chunks/cli-0.7.0-ye6sm33j.mjs +0 -2
  681. package/dist/chunks/cli-0.7.0-ytqbgtvc.mjs +0 -2
  682. package/dist/chunks/cli-0.7.0-yts7snkm.mjs +0 -45
  683. package/dist/chunks/cli-0.7.0-yw6r7fw4.mjs +0 -58
  684. package/dist/chunks/cli-0.7.0-z15a5zq0.mjs +0 -2
  685. package/dist/chunks/cli-0.7.0-z7sydqy8.mjs +0 -2
  686. package/dist/chunks/cli-0.7.0-z93va7tf.mjs +0 -2
  687. package/dist/chunks/cli-0.7.0-zd1q68sv.mjs +0 -2
  688. package/dist/chunks/cli-0.7.0-zdbaf370.mjs +0 -10
  689. package/dist/chunks/cli-0.7.0-zf3jaceq.mjs +0 -2
  690. package/dist/chunks/cli-0.7.0-zh93d2ez.mjs +0 -2
  691. package/dist/chunks/cli-0.7.0-zjfpqpke.mjs +0 -1
  692. package/dist/chunks/cli-0.7.0-zmfejrs2.mjs +0 -25
  693. package/dist/chunks/cli-0.7.0-zn444tdk.mjs +0 -2
  694. package/dist/chunks/cli-0.7.0-zqv149an.mjs +0 -6
  695. package/dist/chunks/cli-0.7.0-zscdr61q.mjs +0 -2
  696. package/dist/chunks/cli-0.7.0-ztc21898.mjs +0 -2
  697. package/dist/chunks/client-0.7.0-mxq1x2gd.mjs +0 -1
  698. package/dist/chunks/color-0.7.0-q8kx1h5f.mjs +0 -1
  699. package/dist/chunks/compact-0.7.0-wej8t29a.mjs +0 -3
  700. package/dist/chunks/config-0.7.0-1vqyzdss.mjs +0 -1
  701. package/dist/chunks/config-0.7.0-29b2exhr.mjs +0 -1
  702. package/dist/chunks/constants-0.7.0-cwe25jjg.mjs +0 -1
  703. package/dist/chunks/context-0.7.0-wzkh0ek3.mjs +0 -1
  704. package/dist/chunks/context-noninteractive-0.7.0-3knrv7yy.mjs +0 -1
  705. package/dist/chunks/conversation-0.7.0-5gwkat1n.mjs +0 -1
  706. package/dist/chunks/copilotHeaders-0.7.0-k7qbvwa0.mjs +0 -1
  707. package/dist/chunks/copy-0.7.0-g9547w2e.mjs +0 -9
  708. package/dist/chunks/cost-0.7.0-g07zzraf.mjs +0 -1
  709. package/dist/chunks/createSSHSession-0.7.0-x69ccesr.mjs +0 -1
  710. package/dist/chunks/createSession-0.7.0-eythrhrd.mjs +0 -1
  711. package/dist/chunks/debug-0.7.0-grf8etmz.mjs +0 -1
  712. package/dist/chunks/defaultActionDeps-0.7.0-3msvjhye.mjs +0 -1367
  713. package/dist/chunks/desktop-0.7.0-qv2bt4fq.mjs +0 -1
  714. package/dist/chunks/detectRepository-0.7.0-8kzz057x.mjs +0 -1
  715. package/dist/chunks/detection-0.7.0-d8z59p8p.mjs +0 -1
  716. package/dist/chunks/diff-0.7.0-wx4fgtnt.mjs +0 -1
  717. package/dist/chunks/doctor-0.7.0-dzm456q1.mjs +0 -1
  718. package/dist/chunks/doctorDiagnostic-0.7.0-jysj36mx.mjs +0 -1
  719. package/dist/chunks/earlyInput-0.7.0-31tzwhjp.mjs +0 -1
  720. package/dist/chunks/effort-0.7.0-w94qsmp1.mjs +0 -10
  721. package/dist/chunks/envLessBridgeConfig-0.7.0-2vzfvw7j.mjs +0 -1
  722. package/dist/chunks/envUtils-0.7.0-wak5qkkv.mjs +0 -1
  723. package/dist/chunks/environmentSelection-0.7.0-xe6h6x4v.mjs +0 -1
  724. package/dist/chunks/environments-0.7.0-cdxqsbrp.mjs +0 -1
  725. package/dist/chunks/errors-0.7.0-hrt3tamp.mjs +0 -1
  726. package/dist/chunks/exampleCommands-0.7.0-v49vtt40.mjs +0 -1
  727. package/dist/chunks/exit-0.7.0-xpc13d1z.mjs +0 -1
  728. package/dist/chunks/explorer-0.7.0-yy3jawy1.mjs +0 -1
  729. package/dist/chunks/export-0.7.0-689scwyv.mjs +0 -2
  730. package/dist/chunks/extra-usage-0.7.0-675a7x8f.mjs +0 -1
  731. package/dist/chunks/extra-usage-noninteractive-0.7.0-2h542mq6.mjs +0 -1
  732. package/dist/chunks/fast-0.7.0-dwxy8xan.mjs +0 -1
  733. package/dist/chunks/feedback-0.7.0-kms98grz.mjs +0 -14
  734. package/dist/chunks/firstPartyEventLogger-0.7.0-5gy0hbjg.mjs +0 -1
  735. package/dist/chunks/git-0.7.0-bsn50mym.mjs +0 -1
  736. package/dist/chunks/githubModelsCredentials-0.7.0-f9n1jk8g.mjs +0 -1
  737. package/dist/chunks/goal-0.7.0-ben8pbys.mjs +0 -4
  738. package/dist/chunks/grove-0.7.0-5vca5g43.mjs +0 -1
  739. package/dist/chunks/growthbook-0.7.0-ged09pjv.mjs +0 -1
  740. package/dist/chunks/headless-0.7.0-6gxn4ya0.mjs +0 -2
  741. package/dist/chunks/heapdump-0.7.0-jbnb1enq.mjs +0 -6
  742. package/dist/chunks/help-0.7.0-s11djcbq.mjs +0 -1
  743. package/dist/chunks/hookChains-0.7.0-q104805z.mjs +0 -3
  744. package/dist/chunks/hooks-0.7.0-3tzcnyt1.mjs +0 -1
  745. package/dist/chunks/hooks-0.7.0-m0qzy27a.mjs +0 -79
  746. package/dist/chunks/ide-0.7.0-rqh7pczf.mjs +0 -3
  747. package/dist/chunks/image-processor-napi-0.7.0-t874vmrb.mjs +0 -1
  748. package/dist/chunks/inboundAttachments-0.7.0-9h4k1v8p.mjs +0 -1
  749. package/dist/chunks/index-0.7.0-0pb4fykd.mjs +0 -1
  750. package/dist/chunks/index-0.7.0-339ebzg3.mjs +0 -1
  751. package/dist/chunks/index-0.7.0-3qc9y7vs.mjs +0 -1
  752. package/dist/chunks/index-0.7.0-8xaka5b5.mjs +0 -1
  753. package/dist/chunks/index-0.7.0-aghbrz36.mjs +0 -1
  754. package/dist/chunks/index-0.7.0-asx0vcnp.mjs +0 -1
  755. package/dist/chunks/index-0.7.0-at8f760s.mjs +0 -2
  756. package/dist/chunks/index-0.7.0-aw15r8m5.mjs +0 -1
  757. package/dist/chunks/index-0.7.0-b95077ct.mjs +0 -1
  758. package/dist/chunks/index-0.7.0-etmdkstm.mjs +0 -1
  759. package/dist/chunks/index-0.7.0-fhnz63fp.mjs +0 -1
  760. package/dist/chunks/index-0.7.0-fx8935ev.mjs +0 -5
  761. package/dist/chunks/index-0.7.0-hwyk7tea.mjs +0 -30
  762. package/dist/chunks/index-0.7.0-nb6m1jch.mjs +0 -1
  763. package/dist/chunks/index-0.7.0-p4n8wp5y.mjs +0 -9
  764. package/dist/chunks/index-0.7.0-rbb0bwpy.mjs +0 -1
  765. package/dist/chunks/index-0.7.0-rq05kg71.mjs +0 -17
  766. package/dist/chunks/index-0.7.0-vk7vxjae.mjs +0 -1
  767. package/dist/chunks/index-0.7.0-wjsr1d6k.mjs +0 -2
  768. package/dist/chunks/index-0.7.0-x03pfhyx.mjs +0 -9
  769. package/dist/chunks/index-0.7.0-y22a1z29.mjs +0 -1
  770. package/dist/chunks/index-0.7.0-yx3335f1.mjs +0 -1
  771. package/dist/chunks/index-0.7.0-zsw19y1x.mjs +0 -1
  772. package/dist/chunks/init-0.7.0-f0taef1q.mjs +0 -1
  773. package/dist/chunks/initReplBridge-0.7.0-wcvxy8w8.mjs +0 -1
  774. package/dist/chunks/ink-0.7.0-xpha78d8.mjs +0 -1
  775. package/dist/chunks/insights-0.7.0-x0rwvydg.mjs +0 -870
  776. package/dist/chunks/install-0.7.0-ncp2pec7.mjs +0 -1
  777. package/dist/chunks/install-github-app-0.7.0-trt9558z.mjs +0 -149
  778. package/dist/chunks/install-slack-app-0.7.0-kjz97cdh.mjs +0 -1
  779. package/dist/chunks/instrumentation-0.7.0-bey09njh.mjs +0 -1
  780. package/dist/chunks/interactiveHelpers-0.7.0-1qs1kree.mjs +0 -1
  781. package/dist/chunks/keybindings-0.7.0-ekf19qhh.mjs +0 -2
  782. package/dist/chunks/knowledge-0.7.0-adck5x26.mjs +0 -2
  783. package/dist/chunks/latestVersionCache-0.7.0-ark5pmnp.mjs +0 -1
  784. package/dist/chunks/loadAgentsDir-0.7.0-5ae7wa3t.mjs +0 -1
  785. package/dist/chunks/loadPluginHooks-0.7.0-vhwhvb6f.mjs +0 -1
  786. package/dist/chunks/loadPluginHooks-0.7.0-xb4qdrg0.mjs +0 -1
  787. package/dist/chunks/log-0.7.0-6mtk9ch7.mjs +0 -1
  788. package/dist/chunks/main-0.7.0-v0y4hrdm.mjs +0 -1
  789. package/dist/chunks/managedEnv-0.7.0-n64hpsst.mjs +0 -1
  790. package/dist/chunks/mcp-0.7.0-2j3bkwz5.mjs +0 -1
  791. package/dist/chunks/mcp-0.7.0-rqwvyycg.mjs +0 -4
  792. package/dist/chunks/mcp-0.7.0-t0pqt6hy.mjs +0 -17
  793. package/dist/chunks/mcpb-0.7.0-wmg0861b.mjs +0 -1
  794. package/dist/chunks/memory-0.7.0-gfe3p8h2.mjs +0 -3
  795. package/dist/chunks/model-0.7.0-anb8mgtp.mjs +0 -2
  796. package/dist/chunks/model-0.7.0-jxz0n7g1.mjs +0 -1
  797. package/dist/chunks/node-0.7.0-4sagcnk2.mjs +0 -12
  798. package/dist/chunks/oauth-0.7.0-n3tj8amn.mjs +0 -1
  799. package/dist/chunks/openaiShim-0.7.0-9bq5572t.mjs +0 -14
  800. package/dist/chunks/output-style-0.7.0-wmxwqrx6.mjs +0 -1
  801. package/dist/chunks/package-GCDC7LJR-0.7.0-fke68t3z.mjs +0 -1
  802. package/dist/chunks/parseConnectUrl-0.7.0-p5aq0xy4.mjs +0 -1
  803. package/dist/chunks/parser-0.7.0-a4qhvrn9.mjs +0 -1
  804. package/dist/chunks/passes-0.7.0-4wxjh63r.mjs +0 -1
  805. package/dist/chunks/permissions-0.7.0-cth9pb19.mjs +0 -3
  806. package/dist/chunks/permissions-0.7.0-nxre3gew.mjs +0 -1
  807. package/dist/chunks/plan-0.7.0-0t3hxxwf.mjs +0 -1
  808. package/dist/chunks/plist-0.7.0-ptbkp7b8.mjs +0 -1
  809. package/dist/chunks/plugin-0.7.0-4zewdh7s.mjs +0 -29
  810. package/dist/chunks/pluginStartupCheck-0.7.0-3zvpdbjz.mjs +0 -1
  811. package/dist/chunks/plugins-0.7.0-dyrrfzzb.mjs +0 -9
  812. package/dist/chunks/preActionHook-0.7.0-agzbsqyv.mjs +0 -2
  813. package/dist/chunks/print-0.7.0-m81z10rw.mjs +0 -57
  814. package/dist/chunks/privacy-settings-0.7.0-qvrhcvbv.mjs +0 -1
  815. package/dist/chunks/process-0.7.0-4rnq2g80.mjs +0 -1
  816. package/dist/chunks/processBashCommand-0.7.0-htmch7xm.mjs +0 -1
  817. package/dist/chunks/processSlashCommand-0.7.0-gj7mbd0a.mjs +0 -9
  818. package/dist/chunks/prompt-0.7.0-2d4qsrq9.mjs +0 -1
  819. package/dist/chunks/prompt-0.7.0-rkefqrwh.mjs +0 -1
  820. package/dist/chunks/prompts-0.7.0-ty3k4n75.mjs +0 -1
  821. package/dist/chunks/protocolHandler-0.7.0-aqsa4ph2.mjs +0 -13
  822. package/dist/chunks/provider-0.7.0-yw5h323y.mjs +0 -2
  823. package/dist/chunks/providerProfiles-0.7.0-vdm0m870.mjs +0 -1
  824. package/dist/chunks/providerValidation-0.7.0-rtzpgzra.mjs +0 -6
  825. package/dist/chunks/rate-limit-options-0.7.0-dqtjdpft.mjs +0 -1
  826. package/dist/chunks/registerSubcommands-0.7.0-r5wmbkz9.mjs +0 -34
  827. package/dist/chunks/registry-0.7.0-jjaxz6ve.mjs +0 -1
  828. package/dist/chunks/release-notes-0.7.0-h6me5mww.mjs +0 -5
  829. package/dist/chunks/reload-plugins-0.7.0-vtr0cnwe.mjs +0 -2
  830. package/dist/chunks/remote-env-0.7.0-h013vass.mjs +0 -1
  831. package/dist/chunks/remoteBridgeCore-0.7.0-fmh34c6f.mjs +0 -1
  832. package/dist/chunks/remoteSession-0.7.0-40yqbh78.mjs +0 -1
  833. package/dist/chunks/rename-0.7.0-wqs6kjb7.mjs +0 -1
  834. package/dist/chunks/replBridgeHandle-0.7.0-d192ahyh.mjs +0 -1
  835. package/dist/chunks/replLauncher-0.7.0-gtmcyxgm.mjs +0 -1
  836. package/dist/chunks/resume-0.7.0-6cy3j2e8.mjs +0 -2
  837. package/dist/chunks/rewind-0.7.0-kepxqnvs.mjs +0 -1
  838. package/dist/chunks/rootOptions-0.7.0-00ekm71j.mjs +0 -1
  839. package/dist/chunks/sandbox-adapter-0.7.0-env8r2gg.mjs +0 -1
  840. package/dist/chunks/sandbox-toggle-0.7.0-wk296sbw.mjs +0 -1
  841. package/dist/chunks/session-0.7.0-qbmq7k37.mjs +0 -2
  842. package/dist/chunks/sessionDiscovery-0.7.0-xf03hmpk.mjs +0 -1
  843. package/dist/chunks/sessionFileAccessHooks-0.7.0-gw8qw3zp.mjs +0 -1
  844. package/dist/chunks/sessionStorage-0.7.0-vcyz3dw7.mjs +0 -1
  845. package/dist/chunks/settings-0.7.0-3k9dr8ys.mjs +0 -1
  846. package/dist/chunks/setup-0.7.0-9ync2tk7.mjs +0 -5
  847. package/dist/chunks/sinks-0.7.0-g1bwkwh0.mjs +0 -1
  848. package/dist/chunks/skills-0.7.0-hjdx42cr.mjs +0 -1
  849. package/dist/chunks/startupProfiler-0.7.0-b32wtvbf.mjs +0 -1
  850. package/dist/chunks/startupUpdateCheck-0.7.0-m55han8a.mjs +0 -1
  851. package/dist/chunks/state-0.7.0-g9nbt1zn.mjs +0 -1
  852. package/dist/chunks/stats-0.7.0-429ntw0k.mjs +0 -6
  853. package/dist/chunks/status-0.7.0-h19n5a31.mjs +0 -1
  854. package/dist/chunks/stickers-0.7.0-q34hs61c.mjs +0 -1
  855. package/dist/chunks/subprocessEnv-0.7.0-gz4xjdce.mjs +0 -1
  856. package/dist/chunks/tasks-0.7.0-e2rrgr6x.mjs +0 -1
  857. package/dist/chunks/teamHelpers-0.7.0-jss9q0ak.mjs +0 -1
  858. package/dist/chunks/teammateModeSnapshot-0.7.0-c7ekrdae.mjs +0 -1
  859. package/dist/chunks/teleport-0.7.0-n0h6pqs8.mjs +0 -1
  860. package/dist/chunks/terminalSetup-0.7.0-ycw8nd2k.mjs +0 -1
  861. package/dist/chunks/theme-0.7.0-2dzcdk7a.mjs +0 -1
  862. package/dist/chunks/thinkback-0.7.0-9xhfd6ab.mjs +0 -1
  863. package/dist/chunks/thinkback-play-0.7.0-yqj7b8tt.mjs +0 -1
  864. package/dist/chunks/toolPool-0.7.0-xes3fby4.mjs +0 -1
  865. package/dist/chunks/toolSearch-0.7.0-wkaae53k.mjs +0 -1
  866. package/dist/chunks/tools-0.7.0-7qjq03x9.mjs +0 -1
  867. package/dist/chunks/trustedDevice-0.7.0-0jcs8sag.mjs +0 -1
  868. package/dist/chunks/turndown.cjs-0.7.0-evvr9k3e.mjs +0 -69
  869. package/dist/chunks/types-0.7.0-7t30qdm7.mjs +0 -1
  870. package/dist/chunks/ultrareviewCommand-0.7.0-mt2gyqrs.mjs +0 -4
  871. package/dist/chunks/update-0.7.0-d79xsjyx.mjs +0 -86
  872. package/dist/chunks/upgrade-0.7.0-29j99fm4.mjs +0 -1
  873. package/dist/chunks/upload-0.7.0-c88xwfr6.mjs +0 -7
  874. package/dist/chunks/upstreamproxy-0.7.0-qha2t9zm.mjs +0 -14
  875. package/dist/chunks/url-handler-napi-0.7.0-d2khwe8w.mjs +0 -1
  876. package/dist/chunks/usage-0.7.0-fz211dwp.mjs +0 -1
  877. package/dist/chunks/util-0.7.0-kre9h9qa.mjs +0 -1
  878. package/dist/chunks/utils-0.7.0-vw4eq452.mjs +0 -1
  879. package/dist/chunks/vim-0.7.0-2tzpxf7d.mjs +0 -1
  880. package/dist/chunks/watcher-0.7.0-dbb0csvt.mjs +0 -1
  881. package/dist/chunks/wiki-0.7.0-etkhyz2p.mjs +0 -132
  882. package/dist/chunks/worktree-0.7.0-ntn0xdnq.mjs +0 -1
  883. package/dist/chunks/worktreeModeEnabled-0.7.0-h5ak3bk5.mjs +0 -1
  884. package/dist/chunks/wrapper-0.7.0-zvn0r75t.mjs +0 -7
  885. /package/dist/chunks/{cli-0.7.0-m9eza7ry.mjs → cli-0.7.1-3q21cp2p.mjs} +0 -0
  886. /package/dist/chunks/{cli-0.7.0-brqbb2d5.mjs → cli-0.7.1-3y886h54.mjs} +0 -0
  887. /package/dist/chunks/{cli-0.7.0-z555y4ap.mjs → cli-0.7.1-75dek4k4.mjs} +0 -0
  888. /package/dist/chunks/{cli-0.7.0-59h7jbfm.mjs → cli-0.7.1-cj9e468m.mjs} +0 -0
  889. /package/dist/chunks/{cli-0.7.0-8p56ked8.mjs → cli-0.7.1-f6nk5cs1.mjs} +0 -0
  890. /package/dist/chunks/{cli-0.7.0-5vszg5ys.mjs → cli-0.7.1-fs00krs3.mjs} +0 -0
  891. /package/dist/chunks/{cli-0.7.0-76wj8x34.mjs → cli-0.7.1-fzf4j9hh.mjs} +0 -0
  892. /package/dist/chunks/{cli-0.7.0-jt2afswt.mjs → cli-0.7.1-tyzsanrm.mjs} +0 -0
@@ -0,0 +1,16 @@
1
+ import{W6 as k2,Y6 as x8}from"./cli-0.7.1-mr2e3dyv.mjs";import{$6 as mZ,_6 as h}from"./cli-0.7.1-2q24e8yf.mjs";import{k7 as d5,m7 as w8}from"./cli-0.7.1-mcb9z58y.mjs";import{$7 as I4,$_ as S1,Cca as r1,E$ as VZ,Gba as j0,L8 as N5,N8 as dZ,Naa as o1,Pba as n4,Pda as m5,Rba as nZ,Rca as i,Rda as W4,Sba as v1,Tba as h8,Tca as e1,Uca as zZ,Waa as WZ,Xda as c5,Zca as Z4,_da as K,a$ as A8,a8 as s,b8 as L2,bea as $0,c8 as O0,d8 as y4,e8 as s2,k8 as H0,l8 as G1,lda as V4,n$ as a1,nca as d,nda as $4,nea as N,qda as O2,rba as k,rda as tZ,sca as p5,tba as B2,tca as C,v8 as D5,vea as s0,wba as Q0,wca as L,xba as y,y8 as cZ}from"./cli-0.7.1-jpemgywy.mjs";import{Hfa as M1,vfa as A0,xfa as k4}from"./cli-0.7.1-bmqpkffh.mjs";import{Mga as v5,Nga as d4,Oga as B0,Qga as z8,Rga as G8,Tga as O,Uga as y0}from"./cli-0.7.1-4pp5s9hy.mjs";import{Vga as x,Yga as j2}from"./cli-0.7.1-q4v2wwpa.mjs";import{$ha as Z0,Cha as K5,Gha as pZ,Kha as i2,Oha as S8,Yha as z,_ha as d0}from"./cli-0.7.1-7vnqyd9e.mjs";import{qia as p,sia as q1,xia as V1}from"./cli-0.7.1-6d8y1qn4.mjs";import{Aia as L5,Dia as F,Fia as g,Hia as P2,Kia as c4,Nia as u}from"./cli-0.7.1-mxjp359f.mjs";import{Cla as s1,Cma as J1,Dma as Q1,Ema as X1,Fma as Y1,Gla as P4,Lla as v0,Mla as J2,Rma as x2,ema as f,lma as _1,nka as Y0,oka as w1,ola as p1,ooa as J0}from"./cli-0.7.1-356bj7gh.mjs";import{Noa as v,Ooa as l0}from"./cli-0.7.1-m42mhk67.mjs";import{Apa as q2,ipa as P}from"./cli-0.7.1-xmj6ck32.mjs";import{Wpa as S0,Ypa as c2,Zpa as H,_pa as e}from"./cli-0.7.1-f6nk5cs1.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-0.7.1-wpzgm03y.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.7.1-8yjbpdj3.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-0.7.1-wpzgm03y.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.7.1-8yjbpdj3.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 x2,F9 as y2,C4 as z2,I5 as A2,y5 as B2,u$ as C2,p$ as D2,j8 as E2,H8 as F2,m$ as G2,h5 as H2,a0 as I2,o0 as J2,G0 as K2,g2 as L2,n2 as M2,b8 as N2,M0 as O2,V as P2,ZJ as Q2,$J as R2,JJ as S2,QJ as T2,l as U2,j as V2,jJ as W2,Y2 as X2,FJ as Y2,LJ as Z2,o5 as _2,bJ as $2,OJ as a3,Z1 as b3,SJ as c3,R0 as d3,t2 as e3,P0 as f3,v$ as g3,GQ as h3,xQ as i3,t4 as j3,jQ as k3,BQ as l3,m0 as m3,I$ as n3,RQ as o3,HQ as p3,W8 as q3,i4 as r3,fJ as s3,C8 as t3,$1 as u3,z1 as v3,z2 as w3,j1 as x3,dJ as y3,H1 as z3,T as A3,F1 as B3,T0 as C3,K1 as D3,D1 as E3,lJ as F3,sJ as G3,O1 as H3,aJ as I3,oJ as J3,U1 as K3,rJ as L3,eJ as M3,Z3 as N3,e2 as O3,A as P3,I1 as Q3,g8 as R3,F3 as S3,L3 as T3,K3 as U3,y1 as V3,D3 as W3,N3 as X3,u8 as Y3,b3 as Z3,O3 as _3,U3 as $3,P3 as a4,k3 as b4,c8 as c4,E3 as d4,_3 as e4,M3 as f4,S3 as g4,h1 as h4,L0 as i4,t8 as j4,l8 as k4,s8 as l4,Q5 as m4,JZ as n4,h3 as o4,m1 as p4,c1 as q4,QZ as r4,X5 as s4,t1 as t4,i1 as u4,W7 as v4,z7 as w4,Y5 as x4,G7 as y4,GZ as z4,N0 as A4,g0 as B4,J4 as C4,x7 as D4,h0 as E4,Q4 as F4,D as G4,b as H4,xZ as I4,j7 as J4,l1 as K4,f0 as L4,B7 as M4,X4 as N4,Y4 as O4,R7 as P4,I as Q4,H7 as R4,RZ as S4,w7 as T4,F7 as U4,L7 as V4,K7 as W4,F0 as X4,N7 as Y4,q4 as Z4,j4 as _4,UZ as $4,R4 as a5,f7 as b5,g7 as c5,u7 as d5,V0 as e5,a as f5,p7 as g5,IZ as h5,m7 as i5,c7 as j5,V5 as k5,N4 as l5,b4 as m5,V9 as n5,hZ as o5,W9 as p5,z9 as q5,U4 as r5,G9 as s5,_4 as t5,fZ as u5,x9 as v5,M4 as w5,S4 as x5,R5 as y5,A4 as z5,D9 as A5,f4 as B5,g4 as C5,k0 as D5,I0 as E5,X0 as F5,oZ as G5,n0 as H5,o as I5,O5 as J5,P5 as K5,a4 as L5,rZ as M5,o4 as N5,w5 as O5,Z$ as P5,$$ as Q5,r4 as R5,z0 as S5,q$ as T5,E5 as U5,e4 as V5,Z8 as W5,_5 as X5,x$ as Y5,j$ as Z5,B$ as _5,U2 as $5,M5 as a6,H$ as b6,w$ as c6,J8 as d6,w as e6,S5 as f6,J5 as g6,c0 as h6,t0 as i6,U as j6,q0 as k6,K$ as l6,N2 as m6,D$ as n6,N$ as o6,M as p6,H2 as q6,b$ as r6,w2 as s6,O$ as t6,W5 as u6,Q8 as v6,X8 as w6,b2 as x6,q8 as y6,P$ as z6,E$ as A6,_$ as B6,M$ as C6,S$ as D6,n as E6};
@@ -0,0 +1,2 @@
1
+ import{AW as X,yW as M}from"./cli-0.7.1-m4gfza1p.mjs";import{Gba as W,K_ as B,T_ as V,rba as K,xba as L}from"./cli-0.7.1-jpemgywy.mjs";import{Zpa as Q}from"./cli-0.7.1-f6nk5cs1.mjs";async function F(){let b=await M();if(b.length===0)return{availableEnvironments:[],selectedEnvironment:null,selectedEnvironmentSource:null};let z=L()?.remote?.defaultEnvironmentId,H=b.find((x)=>x.kind!=="bridge")??b[0],J=null;if(z){let x=b.find((q)=>q.environment_id===z);if(x){H=x;for(let q=B.length-1;q>=0;q--){let y=B[q];if(!y||y==="flagSettings")continue;if(K(y)?.remote?.defaultEnvironmentId===z){J=y;break}}}}return{availableEnvironments:b,selectedEnvironment:H,selectedEnvironmentSource:J}}var Y=Q(()=>{V();W();X()});
2
+ export{F as Sb,Y as Tb};
@@ -0,0 +1,2 @@
1
+ import{$E as w,WE as R,XE as E,YE as l,ZE as i,_E as c,aF as O,eF as y,fF as e}from"./cli-0.7.1-k3wrch69.mjs";import{BW as x,CW as s}from"./cli-0.7.1-825msf79.mjs";import{$Y as j,GZ as Q,RX as n,RZ as K,aZ as r,kZ as k,mZ as W}from"./cli-0.7.1-vc1w3czg.mjs";import{W1 as A,X1 as V,Y1 as D,Z1 as v}from"./cli-0.7.1-1188jq4p.mjs";import{_1 as t}from"./cli-0.7.1-a4zjaz57.mjs";import{Vpa as q,Zpa as p}from"./cli-0.7.1-f6nk5cs1.mjs";function X1(J){let b=S.c(17),{query:$,placeholder:N,isFocused:Z,isTerminalFocused:H,prefix:g,width:P,cursorOffset:_,borderless:Y}=J,G=N===void 0?"Search…":N,h=g===void 0?"⌕":g,L=Y===void 0?!1:Y,B=_??$.length,m=L?void 0:"round",z=Z?"suggestion":void 0,d=!Z,F=L?0:1,T=!Z,X;if(b[0]!==Z||b[1]!==H||b[2]!==B||b[3]!==G||b[4]!==$)X=Z?V(A,{children:$?H?D(A,{children:[V(W,{children:$.slice(0,B)}),V(W,{inverse:!0,children:B<$.length?$[B]:" "}),B<$.length&&V(W,{children:$.slice(B+1)})]}):V(W,{children:$}):H?D(A,{children:[V(W,{inverse:!0,children:G.charAt(0)}),V(W,{dimColor:!0,children:G.slice(1)})]}):V(W,{dimColor:!0,children:G})}):$?V(W,{children:$}):V(W,{children:G}),b[0]=Z,b[1]=H,b[2]=B,b[3]=G,b[4]=$,b[5]=X;else X=b[5];let M;if(b[6]!==h||b[7]!==T||b[8]!==X)M=D(W,{dimColor:T,children:[h," ",X]}),b[6]=h,b[7]=T,b[8]=X,b[9]=M;else M=b[9];let I;if(b[10]!==M||b[11]!==m||b[12]!==z||b[13]!==d||b[14]!==F||b[15]!==P)I=V(k,{flexShrink:0,borderStyle:m,borderColor:z,borderDimColor:d,paddingX:F,width:P,children:M}),b[10]=M,b[11]=m,b[12]=z,b[13]=d,b[14]=F,b[15]=P,b[16]=I;else I=b[16];return I}var S;var u=p(()=>{K();v();S=q(n(),1)});function d1(J){if(J.ctrl&&(J.key==="k"||J.key==="u"||J.key==="w"))return!0;if(J.meta&&J.key==="backspace")return!0;return!1}function T1(J){return(J.ctrl||J.meta)&&J.key==="y"}function W1({isActive:J,onExit:b,onCancel:$,onExitUp:N,columns:Z,passthroughCtrlKeys:H=[],initialQuery:g="",backspaceExitsOnEmpty:P=!0}){let{columns:_}=x(),Y=Z??_,[G,h]=U.useState(g),[L,B]=U.useState(g.length),m=U.useCallback((d)=>{h(d),B(d.length)},[]),z=(d)=>{if(!J)return;let F=y.fromText(G,Y,L);if(d.ctrl&&H.includes(d.key.toLowerCase()))return;if(!d1(d))l();if(!T1(d))O();if(d.key==="return"||d.key==="down"){d.preventDefault(),b();return}if(d.key==="up"){if(d.preventDefault(),N)N();return}if(d.key==="escape"){if(d.preventDefault(),$)$();else if(G.length>0)h(""),B(0);else b();return}if(d.key==="backspace"){if(d.preventDefault(),d.meta){let{cursor:X,killed:M}=F.deleteWordBefore();R(M,"prepend"),h(X.text),B(X.offset);return}if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}if(d.key==="delete"){d.preventDefault();let T=F.del();h(T.text),B(T.offset);return}if(d.key==="left"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.prevWord();B(T.offset);return}if(d.key==="right"&&(d.ctrl||d.meta||d.fn)){d.preventDefault();let T=F.nextWord();B(T.offset);return}if(d.key==="left"){d.preventDefault();let T=F.left();B(T.offset);return}if(d.key==="right"){d.preventDefault();let T=F.right();B(T.offset);return}if(d.key==="home"){d.preventDefault(),B(0);return}if(d.key==="end"){d.preventDefault(),B(G.length);return}if(d.ctrl){switch(d.preventDefault(),d.key.toLowerCase()){case"a":B(0);return;case"e":B(G.length);return;case"b":B(F.left().offset);return;case"f":B(F.right().offset);return;case"d":{if(G.length===0){($??b)();return}let T=F.del();h(T.text),B(T.offset);return}case"h":{if(G.length===0){if(P)($??b)();return}let T=F.backspace();h(T.text),B(T.offset);return}case"k":{let{cursor:T,killed:X}=F.deleteToLineEnd();R(X,"append"),h(T.text),B(T.offset);return}case"u":{let{cursor:T,killed:X}=F.deleteToLineStart();R(X,"prepend"),h(T.text),B(T.offset);return}case"w":{let{cursor:T,killed:X}=F.deleteWordBefore();R(X,"prepend"),h(T.text),B(T.offset);return}case"y":{let T=E();if(T.length>0){let X=F.offset,M=F.insert(T);i(X,T.length),h(M.text),B(M.offset)}return}case"g":case"c":if($){$();return}}return}if(d.meta){switch(d.preventDefault(),d.key.toLowerCase()){case"b":B(F.prevWord().offset);return;case"f":B(F.nextWord().offset);return;case"d":{let T=F.deleteWordAfter();h(T.text),B(T.offset);return}case"y":{let T=c();if(T){let{text:X,start:M,length:I}=T,f=G.slice(0,M),a=G.slice(M+I),C=f+X+a,o=M+X.length;w(X.length),h(C),B(o)}return}}return}if(d.key==="tab")return;if(d.key.length>=1&&!b1.has(d.key)){d.preventDefault();let T=F.insert(d.key);h(T.text),B(T.offset)}};return Q((d,F,T)=>{z(new j(T.keypress))},{isActive:J}),{query:G,setQuery:m,cursorOffset:L,handleKeyDown:z}}var U,b1;var B1=p(()=>{r();K();e();s();U=q(t(),1);b1=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});
2
+ export{X1 as Zg,u as _g,W1 as $g,B1 as ah};
@@ -0,0 +1,2 @@
1
+ import{Zpa as l}from"./cli-0.7.1-f6nk5cs1.mjs";function o(i,e,r){var t=null;if(r!==void 0&&(t=""+r),e.key!==void 0&&(t=""+e.key),"key"in e){r={};for(var s in e)s!=="key"&&(r[s]=e[s])}else r=e;return e=r.ref,{$$typeof:n,type:i,key:t,ref:e!==void 0?e:null,props:r}}var n,d,u,E,a;var c=l(()=>{n=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");u=d,E=o,a=o});
2
+ export{u as W1,E as X1,a as Y1,c as Z1};
@@ -0,0 +1,2 @@
1
+ import{An as Zq,Bn as V,Bv as c,Cn as $q,Ev as T,Fn as p,Fv as _q,Gn as zq,Gv as r,Hv as Vq,vv as u,wQ as a,wv as g,xF as h,yQ as Uq,yv as Wq,zF as Fq,zn as S}from"./cli-0.7.1-k3wrch69.mjs";import{BW as w,CW as Nq,NW as j,OW as Qq,PW as m,RW as Xq,UW as d,VW as Yq}from"./cli-0.7.1-825msf79.mjs";import{$X as H,RZ as Lq,_X as v,aY as y,kZ as J,mZ as N}from"./cli-0.7.1-vc1w3czg.mjs";import{W1 as _,X1 as q,Y1 as G,Z1 as B}from"./cli-0.7.1-1188jq4p.mjs";import{_1 as Jq}from"./cli-0.7.1-a4zjaz57.mjs";import{Gba as Gq,tba as b}from"./cli-0.7.1-jpemgywy.mjs";import{Vpa as e,Zpa as qq}from"./cli-0.7.1-f6nk5cs1.mjs";function mq({onThemeSelect:F,showIntroText:I=!1,helpText:X="",showHelpTextBelow:O=!1,hideEscToCancel:x=!1,skipExitHandling:$=!1,onCancel:A}){let[U]=v(),k=H(),{columns:l}=w(),Y=Q.useMemo(()=>c(),[]),Z=Y===null?T(U):null,{setPreviewTheme:K,savePreview:M,cancelPreview:R}=y(),z=u((L)=>L.settings.syntaxHighlightingDisabled??!1),E=g();j("ThemePicker",!0);let W=S("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),i=Q.useCallback(()=>{if(Y===null){let L=!z;b("userSettings",{syntaxHighlightingDisabled:L}),E((P)=>({...P,settings:{...P.settings,syntaxHighlightingDisabled:L}}))}},[Y,z,E]);m("theme:toggleSyntaxHighlighting",i,{context:"ThemePicker"});let f=d($?()=>{}:void 0),D=Q.useMemo(()=>[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"},{label:"Terminal default (inherit colors)",value:"terminal"},{label:"Dracula",value:"dracula"},{label:"Catppuccin Mocha (dark)",value:"catppuccin-mocha"},{label:"Catppuccin Latte (light)",value:"catppuccin-latte"},{label:"Tokyo Night",value:"tokyo-night"},{label:"Nord",value:"nord"},{label:"Gruvbox Dark",value:"gruvbox-dark"}],[]),o=Q.useCallback((L)=>{K(L)},[K]),n=Q.useCallback((L)=>{M(),F(L)},[M,F]),s=Q.useCallback(()=>{if(R(),$)A?.();else a(0)},[R,A,$]),t=Y==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:z?`Syntax highlighting disabled (${W} to enable)`:Z?`Syntax theme: ${Z.theme}${Z.source?` (from ${Z.source})`:""} (${W} to disable)`:`Syntax highlighting enabled (${W} to disable)`,C=G(J,{flexDirection:"column",gap:1,children:[G(J,{flexDirection:"column",gap:1,children:[I?q(N,{children:"Let's get started."}):q(N,{bold:!0,color:"permission",children:"Theme"}),G(J,{flexDirection:"column",children:[q(N,{bold:!0,children:"Choose the text style that looks best with your terminal"}),X&&!O?q(N,{dimColor:!0,children:X}):null]}),q(h,{options:D,onFocus:o,onChange:n,onCancel:s,visibleOptionCount:D.length,defaultValue:k,defaultFocusValue:k})]}),G(J,{flexDirection:"column",width:"100%",children:[q(J,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:q(Iq,{patch:Oq,dim:!1,filePath:"demo.js",firstLine:null,width:l})},U),G(N,{dimColor:!0,children:[" ",t]})]})]});if(!I)return G(_,{children:[q(J,{flexDirection:"column",children:C}),O&&X?q(J,{marginLeft:3,children:q(N,{dimColor:!0,children:X})}):null,!x?q(J,{marginTop:1,children:q(N,{dimColor:!0,italic:!0,children:f.pending?G(_,{children:["Press ",f.keyName," again to exit"]}):G(p,{children:[q(V,{shortcut:"Enter",action:"select"}),q(V,{shortcut:"Esc",action:"cancel"})]})})}):null]});return C}var Q,Iq,Oq;var Aq=qq(()=>{Yq();Nq();Lq();Qq();Xq();Zq();Wq();Uq();Gq();Fq();zq();$q();_q();Vq();B();Q=e(Jq(),1),Iq=r,Oq={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]}});
2
+ export{mq as Xg,Aq as Yg};
@@ -0,0 +1,3 @@
1
+ import{J0 as d,K0 as X,O0 as N}from"./cli-0.7.1-qkcd1qhy.mjs";import{Rca as p,Sba as O,Tba as f,nea as B,tca as U,vea as y,wca as G}from"./cli-0.7.1-jpemgywy.mjs";import{pia as x,xia as b}from"./cli-0.7.1-6d8y1qn4.mjs";import{Aia as H,Nia as E}from"./cli-0.7.1-mxjp359f.mjs";import{ema as w,ooa as P}from"./cli-0.7.1-356bj7gh.mjs";import{Apa as S,ipa as k}from"./cli-0.7.1-xmj6ck32.mjs";import{Vpa as M,Zpa as R}from"./cli-0.7.1-f6nk5cs1.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 _e,Jq as $e,C as af,h as bf,Kq as cf,Qq as df,g as ef};
@@ -0,0 +1,2 @@
1
+ import{hp as W,ip as n,ky as I,ly as P,py as t}from"./cli-0.7.1-k3wrch69.mjs";import{d2 as H,e2 as p}from"./cli-0.7.1-cxtqva68.mjs";import{f2 as C,h2 as i}from"./cli-0.7.1-qbg9kspq.mjs";import{E6 as l,F5 as v,P2 as S,U2 as c,e6 as R,k6 as V}from"./cli-0.7.1-0qwnf6wz.mjs";import{Qda as T,Rca as O,Rda as Y,Sba as q,Tba as u,Xda as y,_da as k,bea as g,nea as D,tca as E,vea as m,wca as X}from"./cli-0.7.1-jpemgywy.mjs";import{_fa as G,aga as f,bga as $,cga as h}from"./cli-0.7.1-rt9yw2nh.mjs";import{Oga as Z,Tga as _,Uga as M}from"./cli-0.7.1-4pp5s9hy.mjs";import{$ha as b,Yha as x}from"./cli-0.7.1-7vnqyd9e.mjs";import{Apa as A,ipa as Q}from"./cli-0.7.1-xmj6ck32.mjs";import{Zpa as U}from"./cli-0.7.1-f6nk5cs1.mjs";async function s(){if(q())return x("[Bootstrap] Skipped: Nonessential traffic disabled"),null;if(S()!=="firstParty")return x("[Bootstrap] Skipped: 3P provider"),null;let w=v();if(!(R()?.accessToken&&V())&&!w)return x("[Bootstrap] Skipped: no usable OAuth or API key"),null;let J=`${_().BASE_API_URL}/api/claude_cli/bootstrap`;try{return await H(async()=>{let j=R()?.accessToken,z;if(j&&V())z={Authorization:`Bearer ${j}`,"anthropic-beta":Z};else if(w)z={"x-api-key":w};else return x("[Bootstrap] No auth available on retry, aborting"),null;x("[Bootstrap] Fetching");let N=await Q.get(J,{headers:{"Content-Type":"application/json","User-Agent":C(),...z},timeout:5000}),B=d().safeParse(N.data);if(!B.success)return x(`[Bootstrap] Response failed validation: ${B.error.message}`),null;return x("[Bootstrap] Fetch ok"),B.data})}catch(j){if(Q.isAxiosError(j)){let z=j.response?.status??"no-response",N=j.code??"unknown-code",B=j.config?.method?.toUpperCase()??"UNKNOWN",K=j.config?.url??"unknown-url",L=j.message??"unknown axios error";x(`[Bootstrap] Fetch failed: status=${z} code=${N} method=${B} url=${K} message=${L}`)}else{let z=j instanceof Error?j.message:String(j);x(`[Bootstrap] Fetch failed: ${z}`)}throw j}}async function a(){let w=Y();if(!w?.startsWith("openai:"))return null;let{baseUrl:F}=T(),J=await P({baseUrl:F,apiKey:k()?.apiKey});if(J===null)return x("[Bootstrap] Local OpenAI model discovery failed"),null;let j=I(F);return{clientData:X().clientDataCache??null,additionalModelOptionsScope:w,additionalModelOptions:J.map((z)=>({value:z,label:z,description:`Detected from ${j}`}))}}async function Yj(){try{let w=Y(),F=null;if(w==="firstParty"){let B=await s();if(!B)return;F={clientData:B.client_data??null,additionalModelOptions:B.additional_model_options??[],additionalModelOptionsScope:w}}else if(w?.startsWith("openai:")){if(F=await a(),!F)return}else{x("[Bootstrap] Skipped: no additional model source");return}let{clientData:J,additionalModelOptions:j,additionalModelOptionsScope:z}=F,N=X();if(W(N.clientDataCache,J)&&W(N.additionalModelOptionsCache,j)&&N.additionalModelOptionsCacheScope===z){x("[Bootstrap] Cache unchanged, skipping write");return}x("[Bootstrap] Cache updated, persisting to disk"),E((B)=>({...B,clientDataCache:J,additionalModelOptionsCache:j,additionalModelOptionsCacheScope:z}))}catch(w){D(w)}}var d;var r=U(()=>{A();n();l();f();M();O();b();p();h();m();c();u();t();i();g();y();d=$(()=>G.object({client_data:G.record(G.string(),G.unknown()).nullish(),additional_model_options:G.array(G.object({model:G.string(),name:G.string(),description:G.string()}).transform(({model:w,name:F,description:J})=>({value:w,label:F,description:J}))).nullish()}))});
2
+ export{Yj as gc,r as hc};
@@ -0,0 +1,3 @@
1
+ import{dfa as L,hfa as O}from"./cli-0.7.1-wqk4b4mn.mjs";import{Zpa as N}from"./cli-0.7.1-f6nk5cs1.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
2
+ `,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
3
+ export{S as SZ,J as TZ,T as UZ,U as VZ,V as WZ,W as XZ,Q as YZ};
@@ -0,0 +1,2 @@
1
+ import{$ha as $,Yha as Q}from"./cli-0.7.1-7vnqyd9e.mjs";import{sia as K,xia as Z}from"./cli-0.7.1-6d8y1qn4.mjs";import{Aia as J,Nia as Y}from"./cli-0.7.1-mxjp359f.mjs";Y();Z();$();import{readFileSync as k}from"node:fs";import{mkdir as I,writeFile as W}from"node:fs/promises";import{join as M}from"node:path";var S="latest-version.json";function X(){return M(J(),S)}function U(q){if(!q||typeof q!=="object")return!1;let x=q;return typeof x.latest==="string"&&x.latest.length>0&&typeof x.current==="string"&&x.current.length>0&&typeof x.checkedAt==="number"&&Number.isFinite(x.checkedAt)}function T(){try{let q=k(X(),"utf8"),x=JSON.parse(q);return U(x)?x:null}catch(q){if(K(q))return null;return Q(`latestVersionCache: read failed: ${q instanceof Error?q.stack??q.message:String(q)}`),null}}var G=new Set;function w(q){return G.add(q),()=>{G.delete(q)}}async function y(q){let x=X(),R=JSON.stringify(q);try{await W(x,R,"utf8")}catch(z){if(K(z))await I(J(),{recursive:!0}),await W(x,R,"utf8");else throw z}for(let z of[...G])try{z(q)}catch(B){Q(`latestVersionCache: listener threw: ${B instanceof Error?B.stack??B.message:String(B)}`)}}
2
+ export{T as Q,w as R,y as S};
@@ -0,0 +1,2 @@
1
+ import{Xc as z,Yc as K}from"./cli-0.7.1-wg6vf0hy.mjs";import{UI as w,WI as J}from"./cli-0.7.1-k3wrch69.mjs";import{_1 as H}from"./cli-0.7.1-a4zjaz57.mjs";import{Vpa as E,Zpa as G}from"./cli-0.7.1-f6nk5cs1.mjs";function V(q,v,k){return B.useMemo(()=>{let D=w(k,v);return z(q,D,k.mode)},[q,v,k,!1,!1])}var B;var N=G(()=>{J();K();B=E(H(),1)});
2
+ export{V as Tc,N as Uc};
@@ -0,0 +1,2 @@
1
+ import{E6 as f,H5 as M,P2 as G,T2 as W,U2 as V,e6 as j}from"./cli-0.7.1-0qwnf6wz.mjs";import{Sba as x,Tba as B,V9 as w,W9 as z,Z9 as Y}from"./cli-0.7.1-jpemgywy.mjs";import{Mga as J,Uga as F}from"./cli-0.7.1-4pp5s9hy.mjs";import{Zpa as Z}from"./cli-0.7.1-f6nk5cs1.mjs";function g(){q=void 0,w()}function p(){if(q!==void 0)return q;if(G()!=="firstParty")return q=z(!1);if(!W())return q=z(!1);if(x())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=j();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(J)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=M({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var X=Z(()=>{F();f();V();B();Y()});function S(Q){let $=Q.toUpperCase();return K.has($)||k.some((m)=>$.startsWith(m))}var K,k,y,I;var b=Z(()=>{K=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDE_CODE_SUBAGENT_MODEL"]),k=["VERTEX_REGION_CLAUDE_"];y=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDE_CODE_API_KEY_HELPER_TTL_MS","CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS","CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDE_CODE_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL","CLAUDE_CODE_MAX_OUTPUT_TOKENS","CLAUDE_CODE_SKIP_BEDROCK_AUTH","CLAUDE_CODE_SKIP_FOUNDRY_AUTH","CLAUDE_CODE_SKIP_VERTEX_AUTH","CLAUDE_CODE_SUBAGENT_MODEL","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_FOUNDRY","CLAUDE_CODE_USE_GITHUB","CLAUDE_CODE_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
2
+ export{g as GS,p as HS,X as IS,S as JS,y as KS,I as LS,b as MS};
@@ -0,0 +1,6 @@
1
+ import{Zpa as j}from"./cli-0.7.1-f6nk5cs1.mjs";function c(){let q=new Map;for(let[V,z]of Object.entries(J)){for(let[D,H]of Object.entries(z))J[D]={open:`\x1B[${H[0]}m`,close:`\x1B[${H[1]}m`},z[D]=J[D],q.set(H[0],H[1]);Object.defineProperty(J,V,{value:z,enumerable:!1})}return Object.defineProperty(J,"codes",{value:q,enumerable:!1}),J.color.close="\x1B[39m",J.bgColor.close="\x1B[49m",J.color.ansi=M(),J.color.ansi256=Y(),J.color.ansi16m=k(),J.bgColor.ansi=M(10),J.bgColor.ansi256=Y(10),J.bgColor.ansi16m=k(10),Object.defineProperties(J,{rgbToAnsi256:{value(V,z,D){if(V===z&&z===D){if(V<8)return 16;if(V>248)return 231;return Math.round((V-8)/247*24)+232}return 16+36*Math.round(V/255*5)+6*Math.round(z/255*5)+Math.round(D/255*5)},enumerable:!1},hexToRgb:{value(V){let z=/[a-f\d]{6}|[a-f\d]{3}/i.exec(V.toString(16));if(!z)return[0,0,0];let[D]=z;if(D.length===3)D=[...D].map((Q)=>Q+Q).join("");let H=Number.parseInt(D,16);return[H>>16&255,H>>8&255,H&255]},enumerable:!1},hexToAnsi256:{value:(V)=>J.rgbToAnsi256(...J.hexToRgb(V)),enumerable:!1},ansi256ToAnsi:{value(V){if(V<8)return 30+V;if(V<16)return 90+(V-8);let z,D,H;if(V>=232)z=((V-232)*10+8)/255,D=z,H=z;else{V-=16;let N=V%36;z=Math.floor(V/36)/5,D=Math.floor(N/6)/5,H=N%6/5}let Q=Math.max(z,D,H)*2;if(Q===0)return 30;let U=30+(Math.round(H)<<2|Math.round(D)<<1|Math.round(z));if(Q===2)U+=60;return U},enumerable:!1},rgbToAnsi:{value:(V,z,D)=>J.ansi256ToAnsi(J.rgbToAnsi256(V,z,D)),enumerable:!1},hexToAnsi:{value:(V)=>J.ansi256ToAnsi(J.hexToAnsi256(V)),enumerable:!1}}),J}var M=(q=0)=>(V)=>`\x1B[${V+q}m`,Y=(q=0)=>(V)=>`\x1B[${38+q};5;${V}m`,k=(q=0)=>(V,z,D)=>`\x1B[${38+q};2;${V};${z};${D}m`,J,V1,u,m,q1,p,X;var R=j(()=>{J={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},V1=Object.keys(J.modifier),u=Object.keys(J.color),m=Object.keys(J.bgColor),q1=[...u,...m];p=c(),X=p});import I from"node:process";import d from"node:os";import E from"node:tty";function W(q,V=globalThis.Deno?globalThis.Deno.args:I.argv){let z=q.startsWith("-")?"":q.length===1?"-":"--",D=V.indexOf(z+q),H=V.indexOf("--");return D!==-1&&(H===-1||D<H)}function y(){if("FORCE_COLOR"in K){if(K.FORCE_COLOR==="true")return 1;if(K.FORCE_COLOR==="false")return 0;return K.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(K.FORCE_COLOR,10),3)}}function g(q){if(q===0)return!1;return{level:q,hasBasic:!0,has256:q>=2,has16m:q>=3}}function i(q,{streamIsTTY:V,sniffFlags:z=!0}={}){let D=y();if(D!==void 0)B=D;let H=z?B:D;if(H===0)return 0;if(z){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if("TF_BUILD"in K&&"AGENT_NAME"in K)return 1;if(q&&!V&&H===void 0)return 0;let Q=H||0;if(K.TERM==="dumb")return Q;if(I.platform==="win32"){let U=d.release().split(".");if(Number(U[0])>=10&&Number(U[2])>=10586)return Number(U[2])>=14931?3:2;return 1}if("CI"in K){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((U)=>(U in K)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((U)=>(U in K))||K.CI_NAME==="codeship")return 1;return Q}if("TEAMCITY_VERSION"in K)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(K.TEAMCITY_VERSION)?1:0;if(K.COLORTERM==="truecolor")return 3;if(K.TERM==="xterm-kitty")return 3;if(K.TERM==="xterm-ghostty")return 3;if(K.TERM==="wezterm")return 3;if("TERM_PROGRAM"in K){let U=Number.parseInt((K.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(K.TERM_PROGRAM){case"iTerm.app":return U>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(K.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(K.TERM))return 1;if("COLORTERM"in K)return 1;return Q}function T(q,V={}){let z=i(q,{streamIsTTY:q&&q.isTTY,...V});return g(z)}var K,B,a,A;var C=j(()=>{({env:K}=I);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))B=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))B=1;a={stdout:T({isTTY:E.isatty(1)}),stderr:T({isTTY:E.isatty(2)})},A=a});function F(q,V,z){let D=q.indexOf(V);if(D===-1)return q;let H=V.length,Q=0,U="";do U+=q.slice(Q,D)+V+z,Q=D+H,D=q.indexOf(V,Q);while(D!==-1);return U+=q.slice(Q),U}function _(q,V,z,D){let H=0,Q="";do{let U=q[D-1]==="\r";Q+=q.slice(H,U?D-1:D)+V+(U?`\r
2
+ `:`
3
+ `)+z,H=D+1,D=q.indexOf(`
4
+ `,H)}while(D!==-1);return Q+=q.slice(H),Q}var b=()=>{};class o{constructor(q){return v(q)}}function G(q){return v(q)}var S,h,L,Z,O,f,$,n=(q,V={})=>{if(V.level&&!(Number.isInteger(V.level)&&V.level>=0&&V.level<=3))throw Error("The `level` option should be an integer from 0 to 3");let z=S?S.level:0;q.level=V.level===void 0?z:V.level},v=(q)=>{let V=(...z)=>z.join(" ");return n(V,q),Object.setPrototypeOf(V,G.prototype),V},P=(q,V,z,...D)=>{if(q==="rgb"){if(V==="ansi16m")return X[z].ansi16m(...D);if(V==="ansi256")return X[z].ansi256(X.rgbToAnsi256(...D));return X[z].ansi(X.rgbToAnsi(...D))}if(q==="hex")return P("rgb",V,z,...X.hexToRgb(...D));return X[z][q](...D)},t,r,x=(q,V,z)=>{let D,H;if(z===void 0)D=q,H=V;else D=z.openAll+q,H=V+z.closeAll;return{open:q,close:V,openAll:D,closeAll:H,parent:z}},w=(q,V,z)=>{let D=(...H)=>l(D,H.length===1?""+H[0]:H.join(" "));return Object.setPrototypeOf(D,r),D[L]=q,D[Z]=V,D[O]=z,D},l=(q,V)=>{if(q.level<=0||!V)return q[O]?"":V;let z=q[Z];if(z===void 0)return V;let{openAll:D,closeAll:H}=z;if(V.includes("\x1B"))while(z!==void 0)V=F(V,z.close,z.open),z=z.parent;let Q=V.indexOf(`
5
+ `);if(Q!==-1)V=_(V,H,D,Q);return D+V+H},s,Z1,O1;var e=j(()=>{R();C();b();({stdout:S,stderr:h}=A),L=Symbol("GENERATOR"),Z=Symbol("STYLER"),O=Symbol("IS_EMPTY"),f=["ansi","ansi","ansi256","ansi16m"],$=Object.create(null);Object.setPrototypeOf(G.prototype,Function.prototype);for(let[q,V]of Object.entries(X))$[q]={get(){let z=w(this,x(V.open,V.close,this[Z]),this[O]);return Object.defineProperty(this,q,{value:z}),z}};$.visible={get(){let q=w(this,this[Z],!0);return Object.defineProperty(this,"visible",{value:q}),q}};t=["rgb","hex","ansi256"];for(let q of t){$[q]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"color",...D),X.color.close,this[Z]);return w(this,H,this[O])}}};let V="bg"+q[0].toUpperCase()+q.slice(1);$[V]={get(){let{level:z}=this;return function(...D){let H=x(P(q,f[z],"bgColor",...D),X.bgColor.close,this[Z]);return w(this,H,this[O])}}}}r=Object.defineProperties(()=>{},{...$,level:{enumerable:!0,get(){return this[L].level},set(q){this[L].level=q}}});Object.defineProperties(G.prototype,$);s=G(),Z1=G({level:h?h.level:0}),O1=s});
6
+ export{o as Z6,O1 as _6,e as $6};
@@ -0,0 +1,2 @@
1
+ import{Zpa as b}from"./cli-0.7.1-f6nk5cs1.mjs";var j=86400000,k="Remote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",q="Error: You must be logged in to use Remote Control.\n\nRemote Control is only available with claude.ai subscriptions. Run `/provider` and sign in with your claude.ai account.",w="Remote Control disconnected.";var g=()=>{};
2
+ export{j as Ve,k as We,q as Xe,w as Ye,g as Ze};
@@ -0,0 +1,2 @@
1
+ import{Aoa as a,Boa as n5,Coa as e8,Doa as R5,Eoa as _8,Foa as E,Goa as h8,Hoa as P,Ioa as x1,Joa as d,Koa as xQ,Loa as r,Moa as UQ,Noa as T5,Ooa as UY,poa as _Q,qoa as YJ,roa as v,soa as P1,toa as Y5,uoa as w8,voa as q,woa as y,xoa as S,yoa as kQ,zoa as L}from"./cli-0.7.1-m42mhk67.mjs";import{Ypa as aQ,Zpa as X}from"./cli-0.7.1-f6nk5cs1.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 Oia,I1 as Pia,FQ as Qia,RQ as Ria,OQ as Sia,VQ as Tia,_1 as Uia,MQ as Via,PQ as Wia,IQ as Xia,dQ as Yia,gQ as Zia,w as _ia,M as $ia,pQ as aja,yQ as bja,SQ as cja,mQ as dja,AQ as eja,jQ as fja,nQ as gja,bQ as hja,O as ija,m as jja,t as kja,v1 as lja,A as mja,d1 as nja,$1 as oja,g1 as pja,$5 as qja,J5 as rja,X1 as sja,X5 as tja,H1 as uja,y1 as vja,W5 as wja,x5 as xja,U5 as yja,K5 as zja,G5 as Aja,B5 as Bja,q5 as Cja,D5 as Dja,W1 as Eja,S1 as Fja,m1 as Gja,O5 as Hja,G1 as Ija,P5 as Jja,A1 as Kja,d5 as Lja,w1 as Mja,j1 as Nja,h as Oja,R1 as Pja,a5 as Qja,t5 as Rja,Z$ as Sja,X$ as Tja,D1 as Uja,b1 as Vja,I as Wja,u as Xja,O1 as Yja,i1 as Zja,F$ as _ja,R$ as $ja,f$ as aka,P$ as bka,nX as cka,bX as dka,iX as eka,uX as fka,lX as gka,TX as hka,E$ as ika,cX as jka,rX as kka,oX as lka,v$ as mka,d$ as nka,g$ as oka,Z9 as pka,X9 as qka,H9 as rka,W9 as ska,x9 as tka,U9 as uka,K9 as vka,G9 as wka,B9 as xka,N9 as yka,w9 as zka,z9 as Aka,F9 as Bka,R9 as Cka,q9 as Dka,D9 as Eka,O9 as Fka,V9 as Gka,M9 as Hka,L9 as Ika,f9 as Jka,P9 as Kka,I9 as Lka,C9 as Mka,_9 as Nka,k9 as Oka,E9 as Pka,v9 as Qka,d9 as Rka,g9 as Ska,p9 as Tka,y9 as Uka,S9 as Vka,m9 as Wka,A9 as Xka,j9 as Yka,h9 as Zka,n9 as _ka,b9 as $ka,i9 as ala,u9 as bla,l9 as cla,T9 as dla,c9 as ela,A$ as fla,r9 as gla,o9 as hla,s9 as ila,a9 as jla,t9 as kla,e9 as lla,QH as mla,$H as nla,JH as ola,YH as pla,ZH as qla,XH as rla,HH as sla,WH as tla,xH as ula,UH as vla,KH as wla,GH as xla,BH as yla,NH as zla,wH as Ala,zH as Bla,FH as Cla,RH as Dla,qH as Ela,DH as Fla,OH as Gla,VH as Hla,MH as Ila,LH as Jla,fH as Kla,PH as Lla,IH as Mla,CH as Nla,_H as Ola,kH as Pla,EH as Qla,vH as Rla,dH as Sla,gH as Tla,pH as Ula,yH as Vla,SH as Wla,mH as Xla,AH as Yla,jH as Zla,hH as _la,nH as $la,bH as ama,iH as bma,uH as cma,lH as dma,mY as ema,TH as fma,cH as gma,rH as hma,oH as ima,sH as jma,aH as kma,tH as lma,eH as mma,Q4 as nma,$4 as oma,J4 as pma,Y4 as qma,Z4 as rma,X4 as sma,H4 as tma,W4 as uma,x4 as vma,U4 as wma,K4 as xma,G4 as yma,B4 as zma,N4 as Ama,w4 as Bma,z4 as Cma,F4 as Dma,R4 as Ema,q4 as Fma,D4 as Gma,O4 as Hma,V4 as Ima,M4 as Jma,L4 as Kma,f4 as Lma,P4 as Mma,I4 as Nma,C4 as Oma,_4 as Pma,k4 as Qma,E4 as Rma,v4 as Sma,d4 as Tma,g4 as Uma,p4 as Vma,y4 as Wma,S4 as Xma,m4 as Yma,A4 as Zma,j4 as _ma,h4 as $ma,n4 as ana,b4 as bna,i4 as cna,u4 as dna,l4 as ena,T4 as fna,c4 as gna,r4 as hna,o4 as ina,s4 as jna,a4 as kna,t4 as lna,e4 as mna,Q3 as nna,$3 as ona,J3 as pna,Y3 as qna,Z3 as rna,X3 as sna,H3 as tna,W3 as una,x3 as vna,U3 as wna,K3 as xna,G3 as yna,B3 as zna,N3 as Ana,w3 as Bna,z3 as Cna,F3 as Dna,R3 as Ena,q3 as Fna,D3 as Gna,O3 as Hna,V3 as Ina,M3 as Jna,L3 as Kna,f3 as Lna,P3 as Mna,I3 as Nna,C3 as Ona,_3 as Pna,k3 as Qna,E3 as Rna,v3 as Sna,d3 as Tna,g3 as Una,p3 as Vna,y3 as Wna,S3 as Xna,m3 as Yna,A3 as Zna,j3 as _na,h3 as $na,n3 as aoa,b3 as boa,i3 as coa,u3 as doa,l3 as eoa,T3 as foa,c3 as goa,r3 as hoa,jY as ioa,o3 as joa,s3 as koa,a3 as loa,t3 as moa,e3 as noa,hY as ooa};
@@ -0,0 +1,2 @@
1
+ import{of as R,qf as d}from"./cli-0.7.1-eqdjtwya.mjs";import{Q0 as j,T0 as c}from"./cli-0.7.1-cjg6h2ca.mjs";import{$ha as D,Yha as K}from"./cli-0.7.1-7vnqyd9e.mjs";import{qia as C,xia as h}from"./cli-0.7.1-6d8y1qn4.mjs";import{Zpa as I,_pa as J}from"./cli-0.7.1-f6nk5cs1.mjs";async function i({environmentId:X,title:Q,events:q,gitRepoUrl:$,branch:Y,signal:z,baseUrl:G,getAccessToken:L,permissionMode:W}){let{getClaudeAIOAuthTokens:B}=await import("./auth-0.7.1-b9ybay2b.mjs"),{getOrganizationUUID:Z}=await import("./client-0.7.1-5bbqygzn.mjs"),{getOauthConfig:V}=await import("./oauth-0.7.1-x8bhb9nz.mjs"),{getOAuthHeaders:P}=await import("./api-0.7.1-fsw86vpr.mjs"),{parseGitHubRepository:N}=await import("./detectRepository-0.7.1-ksy35c3e.mjs"),{getDefaultBranch:_}=await import("./git-0.7.1-q9en18yj.mjs"),{getMainLoopModel:M}=await import("./model-0.7.1-k3apa82z.mjs"),{default:T}=await import("./index-0.7.1-th8gnyjv.mjs"),x=L?.()??B()?.accessToken;if(!x)return K("[bridge] No access token for session creation"),null;let k=await Z();if(!k)return K("[bridge] No org UUID for session creation"),null;let E=null,v=null;if($){let{parseGitRemote:y}=await import("./detectRepository-0.7.1-ksy35c3e.mjs"),O=y($);if(O){let{host:A,owner:S,name:f}=O,F=Y||await _()||void 0;E={type:"git_repository",url:`https://${A}/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}else{let A=N($);if(A){let[S,f]=A.split("/");if(S&&f){let F=Y||await _()||void 0;E={type:"git_repository",url:`https://github.com/${S}/${f}`,revision:F},v={type:"git_repository",git_info:{type:"github",repo:`${S}/${f}`,branches:[`claude/${Y||"task"}`]}}}}}}let m={...Q!==void 0&&{title:Q},events:q,session_context:{sources:E?[E]:[],outcomes:v?[v]:[],model:M()},environment_id:X,source:"remote-control",...W&&{permission_mode:W}},U={...P(x),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":k},b=`${G??V().BASE_API_URL}/v1/sessions`,H;try{H=await T.post(b,m,{headers:U,signal:z,validateStatus:(y)=>y<500})}catch(y){return K(`[bridge] Session creation request failed: ${C(y)}`),null}if(!(H.status===200||H.status===201)){let y=R(H.data);return K(`[bridge] Session creation failed with status ${H.status}${y?`: ${y}`:""}`),null}let w=H.data;if(!w||typeof w!=="object"||!("id"in w)||typeof w.id!=="string")return K("[bridge] No session ID in response"),null;return w.id}async function r(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.7.1-b9ybay2b.mjs"),{getOrganizationUUID:$}=await import("./client-0.7.1-5bbqygzn.mjs"),{getOauthConfig:Y}=await import("./oauth-0.7.1-x8bhb9nz.mjs"),{getOAuthHeaders:z}=await import("./api-0.7.1-fsw86vpr.mjs"),{default:G}=await import("./index-0.7.1-th8gnyjv.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L)return K("[bridge] No access token for session fetch"),null;let W=await $();if(!W)return K("[bridge] No org UUID for session fetch"),null;let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}`,V=1e4;K(`[bridge] Fetching session ${X}`);let P;try{P=await G.get(Z,{headers:B,timeout:V,validateStatus:(N)=>N<500})}catch(N){if(G.isAxiosError(N)){let _=N.response?.status??"no-response",M=N.code??"unknown-code",T=N.config?.url??Z,x=N.config?.method?.toUpperCase()??"GET",k=N.message??C(N),E=N.config?.timeout??V;K(`[bridge] Session fetch request failed: status=${_} code=${M} method=${x} url=${T} timeout=${E} message=${k}`)}else K(`[bridge] Session fetch request failed: url=${Z} timeout=${V} message=${C(N)}`);return null}if(P.status!==200){let N=R(P.data);return K(`[bridge] Session fetch failed with status ${P.status} url=${Z}${N?`: ${N}`:""}`),null}return P.data}async function t(X,Q){let{getClaudeAIOAuthTokens:q}=await import("./auth-0.7.1-b9ybay2b.mjs"),{getOrganizationUUID:$}=await import("./client-0.7.1-5bbqygzn.mjs"),{getOauthConfig:Y}=await import("./oauth-0.7.1-x8bhb9nz.mjs"),{getOAuthHeaders:z}=await import("./api-0.7.1-fsw86vpr.mjs"),{default:G}=await import("./index-0.7.1-th8gnyjv.mjs"),L=Q?.getAccessToken?.()??q()?.accessToken;if(!L){K("[bridge] No access token for session archive");return}let W=await $();if(!W){K("[bridge] No org UUID for session archive");return}let B={...z(L),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":W},Z=`${Q?.baseUrl??Y().BASE_API_URL}/v1/sessions/${X}/archive`;K(`[bridge] Archiving session ${X}`);let V=await G.post(Z,{},{headers:B,timeout:Q?.timeoutMs??1e4,validateStatus:(P)=>P<500});if(V.status===200)K(`[bridge] Session ${X} archived successfully`);else{let P=R(V.data);K(`[bridge] Session archive failed with status ${V.status}${P?`: ${P}`:""}`)}}async function o(X,Q,q){let{getClaudeAIOAuthTokens:$}=await import("./auth-0.7.1-b9ybay2b.mjs"),{getOrganizationUUID:Y}=await import("./client-0.7.1-5bbqygzn.mjs"),{getOauthConfig:z}=await import("./oauth-0.7.1-x8bhb9nz.mjs"),{getOAuthHeaders:G}=await import("./api-0.7.1-fsw86vpr.mjs"),{default:L}=await import("./index-0.7.1-th8gnyjv.mjs"),W=q?.getAccessToken?.()??$()?.accessToken;if(!W){K("[bridge] No access token for session title update");return}let B=await Y();if(!B){K("[bridge] No org UUID for session title update");return}let Z={...G(W),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":B},V=j(X),P=`${q?.baseUrl??z().BASE_API_URL}/v1/sessions/${V}`;K(`[bridge] Updating session title: ${V} → ${Q}`);try{let N=await L.patch(P,{title:Q},{headers:Z,timeout:1e4,validateStatus:(_)=>_<500});if(N.status===200)K("[bridge] Session title updated successfully");else{let _=R(N.data);K(`[bridge] Session title update failed with status ${N.status}${_?`: ${_}`:""}`)}}catch(N){K(`[bridge] Session title update request failed: ${C(N)}`)}}var p=I(()=>{D();h();d();c()});
2
+ export{i as ff,r as gf,t as hf,o as if,p as jf};
@@ -0,0 +1,2 @@
1
+ import{RX as u2,RZ as e2,_X as Z,kZ as Y,mZ as u}from"./cli-0.7.1-vc1w3czg.mjs";import{X1 as t,Y1 as o,Z1 as U}from"./cli-0.7.1-1188jq4p.mjs";import{f$ as X,h$ as j}from"./cli-0.7.1-jpemgywy.mjs";import{Vpa as s}from"./cli-0.7.1-f6nk5cs1.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.7.1"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudin"," "]}),o(u,{dimColor:!0,children:["v","0.7.1"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.7.1"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.7.1"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
+ export{c2 as O};
@@ -0,0 +1,2 @@
1
+ import{Zpa as B}from"./cli-0.7.1-f6nk5cs1.mjs";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
2
+ export{F as li,C as mi};
@@ -0,0 +1,2 @@
1
+ import{Zpa as y}from"./cli-0.7.1-f6nk5cs1.mjs";function $(q){return typeof q==="number"&&Number.isFinite(q)?q:0}function F(q,z){let B=q;for(let K of z){if(B==null||typeof B!=="object")return;B=B[K]}return B}function x(q){if(!q)return!1;let z="";try{z=new URL(q).hostname.toLowerCase()}catch{}if(!z){let W=q.toLowerCase();return W.includes("localhost")||W.includes("127.0.0.1")||W.includes("::1")}let B=z.startsWith("[")&&z.endsWith("]")?z.slice(1,-1):z;if(B==="localhost"||B.endsWith(".localhost")||B.endsWith(".local")||B.endsWith(".lan")||B.endsWith(".internal")||B.endsWith(".intranet")||B.endsWith(".home.arpa"))return!0;let K=B.match(U);if(K){let W=Number(K[1]),j=Number(K[2]);if(W===10)return!0;if(W===172&&j>=16&&j<=31)return!0;if(W===192&&j===168)return!0;if(W===127)return!0;if(W===169&&j===254)return!0;if(W===100&&j>=64&&j<=127)return!0}if(B==="::1"||B==="::")return!0;if(B.startsWith("fe80:")||f.test(B)||A.test(B))return!0;return!1}function N(q,z){if(q==="github")return z?.githubNativeAnthropic?"copilot-claude":"copilot";if(q==="firstParty"||q==="bedrock"||q==="vertex"||q==="foundry")return"anthropic";if(q==="gemini")return"gemini";if(q==="codex")return"codex";if(q==="openai"){let B=z?.openAiBaseUrl??"";if(x(B))return"self-hosted";let K=B.toLowerCase();if(K.includes(":11434"))return"ollama";if(K.includes("moonshot")||K.includes("kimi"))return"kimi";if(K.includes("deepseek"))return"deepseek";return"openai"}return"openai"}function D(q){if(!q||typeof q!=="object")return 0;let z=q,B=$(z.cache_read_input_tokens);if(B>0)return B;let K=$(F(q,["input_tokens_details","cached_tokens"]))||$(F(q,["prompt_tokens_details","cached_tokens"]));if(K>0)return K;let W=$(z.cached_tokens);if(W>0)return W;let j=$(z.prompt_cache_hit_tokens);if(j>0)return j;let Q=$(z.cached_content_token_count);if(Q>0)return Q;return 0}function Y(q){if(!q||typeof q!=="object")return 0;let B=$(q.cache_creation_input_tokens);if(B>0)return B;return $(F(q,["cache_creation","ephemeral_5m_input_tokens"]))+$(F(q,["cache_creation","ephemeral_1h_input_tokens"]))}function P(q){let z=D(q),B=q??{},K=$(B.input_tokens)||$(B.prompt_tokens),W=K>=z?K-z:K,j=$(B.output_tokens)||$(B.completion_tokens);return{input_tokens:W,output_tokens:j,cache_creation_input_tokens:Y(q),cache_read_input_tokens:z}}function M(q,z){if(!q||typeof q!=="object")return X;let B=q,K=$(B.cache_read_input_tokens),W=$(B.cache_creation_input_tokens),j=$(B.input_tokens);if(z==="copilot"||z==="ollama")return X;if(z==="self-hosted"&&K===0&&W===0)return X;let Q=K+W+j;return{read:K,created:W,total:Q,hitRate:Q>0?Math.min(1,K/Q):null,supported:!0}}function C(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";if(q.read===0&&q.created===0)return"[Cache: cold]";let z=[`${G(q.read)} read`];if(q.hitRate!==null)z.push(`hit ${Math.round(q.hitRate*100)}%`);return`[Cache: ${z.join(" • ")}]`}function I(q){if(!q)return"[Cache: N/A]";if(!q.supported)return"[Cache: N/A]";let z=[`read=${G(q.read)}`,`created=${G(q.created)}`];if(q.hitRate!==null)z.push(`hit=${Math.round(q.hitRate*100)}%`);else z.push("hit=n/a");return`[Cache: ${z.join(" ")}]`}function G(q){if(q<1000)return String(q);if(q<1e6)return`${(q/1000).toFixed(1).replace(Z,"")}k`;return`${(q/1e6).toFixed(1).replace(Z,"")}m`}function H(q,z){if(!q.supported&&!z.supported)return X;if(!q.supported)return z;if(!z.supported)return q;let B=q.read+z.read,K=q.created+z.created,W=q.total+z.total;return{read:B,created:K,total:W,hitRate:W>0?B/W:null,supported:!0}}var X,U,f,A,Z;var L=y(()=>{X={read:0,created:0,total:0,hitRate:null,supported:!1};U=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,f=/^fc[0-9a-f]{0,2}:/,A=/^fd[0-9a-f]{0,2}:/,Z=/\.0$/});function S(q){return{currentTurn:V,session:V,history:Array(q),historyWriteIdx:0,historySize:0,historyMax:q}}function w(q,z){J.currentTurn=H(J.currentTurn,q),J.session=H(J.session,q);let B={timestamp:Date.now(),label:z,metrics:q};if(J.history[J.historyWriteIdx]=B,J.historyWriteIdx=(J.historyWriteIdx+1)%J.historyMax,J.historySize<J.historyMax)J.historySize++}function T(){J.currentTurn=V}function R(){J.currentTurn=V,J.session=V,J.history=Array(J.historyMax),J.historyWriteIdx=0,J.historySize=0}function b(){return J.currentTurn}function g(){return J.session}function l(){if(J.historySize<J.historyMax)return J.history.slice(0,J.historySize);let q=J.history.slice(J.historyWriteIdx),z=J.history.slice(0,J.historyWriteIdx);return q.concat(z)}var O=500,V,J;var k=y(()=>{L();V={read:0,created:0,total:0,hitRate:null,supported:!1};J=S(O)});
2
+ export{N as h1,P as i1,M as j1,C as k1,I as l1,L as m1,w as n1,T as o1,R as p1,b as q1,g as r1,l as s1,k as t1};