@claudiolabs/claudin 1.1.33 → 1.1.34

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 (827) hide show
  1. package/dist/chunks/App-1.1.34-5bkzspjw.mjs +1 -0
  2. package/dist/chunks/ApproveApiKey-1.1.34-v9m1h6yf.mjs +1 -0
  3. package/dist/chunks/AutoModeOptInDialog-1.1.34-s8q45b8r.mjs +1 -0
  4. package/dist/chunks/BypassPermissionsModeDialog-1.1.34-za20vma5.mjs +1 -0
  5. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.34-bfqcybrw.mjs +1 -0
  6. package/dist/chunks/ConsoleOAuthFlow-1.1.34-y3y8zaw0.mjs +1 -0
  7. package/dist/chunks/DiffDialog-1.1.34-2c48wrw2.mjs +6 -0
  8. package/dist/chunks/Doctor-1.1.34-5pfk2t4c.mjs +1 -0
  9. package/dist/chunks/ExplorerDialog-1.1.34-jhjx7d79.mjs +6 -0
  10. package/dist/chunks/ITermBackend-1.1.34-fdz2yay1.mjs +1 -0
  11. package/dist/chunks/InvalidConfigDialog-1.1.34-9kn20864.mjs +1 -0
  12. package/dist/chunks/InvalidSettingsDialog-1.1.34-rs0n3tbm.mjs +1 -0
  13. package/dist/chunks/MigrationDialog-1.1.34-mb74003t.mjs +1 -0
  14. package/dist/chunks/Onboarding-1.1.34-bfdfnz31.mjs +1 -0
  15. package/dist/chunks/ProviderManager-1.1.34-mxhsj5pz.mjs +1 -0
  16. package/dist/chunks/REPL-1.1.34-g9xtcxfm.mjs +1 -0
  17. package/dist/chunks/ResumeConversation-1.1.34-wjd1x7s6.mjs +1 -0
  18. package/dist/chunks/TeleportProgress-1.1.34-zpsemk3f.mjs +1 -0
  19. package/dist/chunks/TeleportRepoMismatchDialog-1.1.34-gse2x86w.mjs +1 -0
  20. package/dist/chunks/TeleportResumeWrapper-1.1.34-cp51s05w.mjs +1 -0
  21. package/dist/chunks/TmuxBackend-1.1.34-pcx5e2xc.mjs +9 -0
  22. package/dist/chunks/ToolSearchTool-1.1.34-s3tfzny5.mjs +1 -0
  23. package/dist/chunks/TrustDialog-1.1.34-g8hnps71.mjs +1 -0
  24. package/dist/chunks/activeProvider-1.1.34-a1bg24mk.mjs +1 -0
  25. package/dist/chunks/add-dir-1.1.34-fs7fa841.mjs +1 -0
  26. package/dist/chunks/agentTypes-1.1.34-ybf25dvm.mjs +1 -0
  27. package/dist/chunks/agents-1.1.34-6xhfrt25.mjs +3 -0
  28. package/dist/chunks/agents-1.1.34-wsjsbryq.mjs +110 -0
  29. package/dist/chunks/api-1.1.34-99hm00p0.mjs +1 -0
  30. package/dist/chunks/asciicast-1.1.34-qydk3ezz.mjs +1 -0
  31. package/dist/chunks/auth-1.1.34-32n80bwr.mjs +1 -0
  32. package/dist/chunks/auth-1.1.34-mhmakxvf.mjs +1 -0
  33. package/dist/chunks/autoMode-1.1.34-jyxbmbqd.mjs +52 -0
  34. package/dist/chunks/autoModeSetup-1.1.34-2b10v0j4.mjs +44 -0
  35. package/dist/chunks/autoUpdater-1.1.34-bd3mdsv9.mjs +1 -0
  36. package/dist/chunks/backgroundHousekeeping-1.1.34-v4c2njkh.mjs +1 -0
  37. package/dist/chunks/branch-1.1.34-949t9ara.mjs +4 -0
  38. package/dist/chunks/bridge-1.1.34-8jc0ek6w.mjs +2 -0
  39. package/dist/chunks/bridgeConfig-1.1.34-kgr2qvyz.mjs +1 -0
  40. package/dist/chunks/bridgeEnabled-1.1.34-ygna8r55.mjs +1 -0
  41. package/dist/chunks/bridgeMain-1.1.34-saff9rp6.mjs +88 -0
  42. package/dist/chunks/bridgePointer-1.1.34-5apzxa58.mjs +1 -0
  43. package/dist/chunks/btw-1.1.34-4246e84n.mjs +1 -0
  44. package/dist/chunks/buddy-1.1.34-kj9mygnh.mjs +3 -0
  45. package/dist/chunks/cache-probe-1.1.34-gyemr2df.mjs +21 -0
  46. package/dist/chunks/cacheStats-1.1.34-fqz6k1qv.mjs +4 -0
  47. package/dist/chunks/caches-1.1.34-ebn0bryh.mjs +1 -0
  48. package/dist/chunks/cd-1.1.34-6458ex95.mjs +3 -0
  49. package/dist/chunks/claudeDesktop-1.1.34-4jr3kmkg.mjs +1 -0
  50. package/dist/chunks/clear-1.1.34-da0gwb7n.mjs +1 -0
  51. package/dist/chunks/clearTerminal-1.1.34-410eb173.mjs +1 -0
  52. package/dist/chunks/cli-1.1.34-00hxx56p.mjs +2 -0
  53. package/dist/chunks/cli-1.1.34-0cmmxs6g.mjs +9 -0
  54. package/dist/chunks/cli-1.1.34-0h4whfas.mjs +6 -0
  55. package/dist/chunks/cli-1.1.34-0kkae10p.mjs +2 -0
  56. package/dist/chunks/cli-1.1.34-0mjf3pve.mjs +2 -0
  57. package/dist/chunks/cli-1.1.34-0t1h2v5v.mjs +2 -0
  58. package/dist/chunks/cli-1.1.34-0zqthr52.mjs +2 -0
  59. package/dist/chunks/cli-1.1.34-1229x70a.mjs +2 -0
  60. package/dist/chunks/cli-1.1.34-166q8s04.mjs +24 -0
  61. package/dist/chunks/cli-1.1.34-1a3s3rqs.mjs +3 -0
  62. package/dist/chunks/cli-1.1.34-1ategs07.mjs +2 -0
  63. package/dist/chunks/cli-1.1.34-1m5v3ffj.mjs +2 -0
  64. package/dist/chunks/cli-1.1.34-1nxczs7m.mjs +3 -0
  65. package/dist/chunks/cli-1.1.34-1xg52b7q.mjs +12 -0
  66. package/dist/chunks/cli-1.1.34-20femz8z.mjs +2 -0
  67. package/dist/chunks/cli-1.1.34-20p72tmb.mjs +20 -0
  68. package/dist/chunks/cli-1.1.34-21nzcpj6.mjs +5 -0
  69. package/dist/chunks/cli-1.1.34-24h4yeqf.mjs +2 -0
  70. package/dist/chunks/cli-1.1.34-2tf44a9a.mjs +2 -0
  71. package/dist/chunks/cli-1.1.34-33s2xs9e.mjs +2 -0
  72. package/dist/chunks/cli-1.1.34-372a0qyj.mjs +2 -0
  73. package/dist/chunks/cli-1.1.34-37g65vk7.mjs +2 -0
  74. package/dist/chunks/cli-1.1.34-37mgsk8w.mjs +2 -0
  75. package/dist/chunks/cli-1.1.34-3pr2wgys.mjs +2 -0
  76. package/dist/chunks/cli-1.1.34-3qpxmhy6.mjs +2 -0
  77. package/dist/chunks/cli-1.1.34-3rcacat5.mjs +3 -0
  78. package/dist/chunks/cli-1.1.34-4v8eanby.mjs +2 -0
  79. package/dist/chunks/cli-1.1.34-4x915j9t.mjs +2 -0
  80. package/dist/chunks/cli-1.1.34-4y5bvnfe.mjs +2 -0
  81. package/dist/chunks/cli-1.1.34-4zj4kbw4.mjs +2 -0
  82. package/dist/chunks/cli-1.1.34-58ergrxf.mjs +7 -0
  83. package/dist/chunks/cli-1.1.34-59csbz1a.mjs +60 -0
  84. package/dist/chunks/cli-1.1.34-5ec767fj.mjs +2 -0
  85. package/dist/chunks/cli-1.1.34-5ffnhvmt.mjs +3 -0
  86. package/dist/chunks/cli-1.1.34-5jdjfha3.mjs +2 -0
  87. package/dist/chunks/cli-1.1.34-5jnn83ne.mjs +2 -0
  88. package/dist/chunks/cli-1.1.34-5mg7y1hs.mjs +2 -0
  89. package/dist/chunks/cli-1.1.34-5qzy93s7.mjs +2 -0
  90. package/dist/chunks/cli-1.1.34-5t01yf6x.mjs +2 -0
  91. package/dist/chunks/cli-1.1.34-5vktvncs.mjs +2 -0
  92. package/dist/chunks/cli-1.1.34-5z4epq5b.mjs +4 -0
  93. package/dist/chunks/cli-1.1.34-643n510j.mjs +2 -0
  94. package/dist/chunks/cli-1.1.34-6jkjn6pd.mjs +2 -0
  95. package/dist/chunks/cli-1.1.34-70pxm3rb.mjs +133 -0
  96. package/dist/chunks/cli-1.1.34-79mxk0bc.mjs +2 -0
  97. package/dist/chunks/cli-1.1.34-7ad0dt89.mjs +2 -0
  98. package/dist/chunks/cli-1.1.34-7bcbswdn.mjs +2 -0
  99. package/dist/chunks/cli-1.1.34-7bxexffs.mjs +6 -0
  100. package/dist/chunks/cli-1.1.34-7n5bvchq.mjs +2 -0
  101. package/dist/chunks/cli-1.1.34-7npd3as5.mjs +18 -0
  102. package/dist/chunks/cli-1.1.34-7rd2xv38.mjs +3 -0
  103. package/dist/chunks/cli-1.1.34-80nhtgdq.mjs +2 -0
  104. package/dist/chunks/cli-1.1.34-83s0mm9a.mjs +2 -0
  105. package/dist/chunks/cli-1.1.34-84707tma.mjs +5491 -0
  106. package/dist/chunks/cli-1.1.34-859ap6f7.mjs +2 -0
  107. package/dist/chunks/cli-1.1.34-8r5c91mz.mjs +2 -0
  108. package/dist/chunks/cli-1.1.34-8s2k8jnr.mjs +39 -0
  109. package/dist/chunks/cli-1.1.34-8vfey6b5.mjs +2 -0
  110. package/dist/chunks/cli-1.1.34-92kps6jn.mjs +63 -0
  111. package/dist/chunks/cli-1.1.34-9jn997h8.mjs +2 -0
  112. package/dist/chunks/cli-1.1.34-9tctqya9.mjs +6 -0
  113. package/dist/chunks/cli-1.1.34-9tze8t1x.mjs +2 -0
  114. package/dist/chunks/cli-1.1.34-9z887t80.mjs +2 -0
  115. package/dist/chunks/cli-1.1.34-a6gj1b3g.mjs +2 -0
  116. package/dist/chunks/cli-1.1.34-a7et4z4n.mjs +2 -0
  117. package/dist/chunks/cli-1.1.34-ajqsr81p.mjs +2 -0
  118. package/dist/chunks/cli-1.1.34-ak4sm3t1.mjs +2 -0
  119. package/dist/chunks/cli-1.1.34-axnnzxpw.mjs +2 -0
  120. package/dist/chunks/cli-1.1.34-b9j8be5k.mjs +2 -0
  121. package/dist/chunks/cli-1.1.34-bt9brnrs.mjs +2 -0
  122. package/dist/chunks/cli-1.1.34-c3w48hst.mjs +2 -0
  123. package/dist/chunks/cli-1.1.34-cp457g25.mjs +11 -0
  124. package/dist/chunks/cli-1.1.34-cptp243m.mjs +2 -0
  125. package/dist/chunks/cli-1.1.34-cqxr7fsq.mjs +2 -0
  126. package/dist/chunks/cli-1.1.34-ctjatnq8.mjs +2 -0
  127. package/dist/chunks/cli-1.1.34-czhcyzgw.mjs +2 -0
  128. package/dist/chunks/cli-1.1.34-d0sgyvr1.mjs +4 -0
  129. package/dist/chunks/cli-1.1.34-d5enzbca.mjs +2 -0
  130. package/dist/chunks/cli-1.1.34-d8bccy48.mjs +7 -0
  131. package/dist/chunks/cli-1.1.34-dceap5rk.mjs +4 -0
  132. package/dist/chunks/cli-1.1.34-dj3hwt6m.mjs +3 -0
  133. package/dist/chunks/cli-1.1.34-dvx08sv2.mjs +2 -0
  134. package/dist/chunks/cli-1.1.34-e1vkhvbm.mjs +2 -0
  135. package/dist/chunks/cli-1.1.34-e4f2qw6n.mjs +2 -0
  136. package/dist/chunks/cli-1.1.34-e7fd8zh6.mjs +2 -0
  137. package/dist/chunks/cli-1.1.34-e9rxgan0.mjs +2 -0
  138. package/dist/chunks/cli-1.1.34-ehad4d4f.mjs +2 -0
  139. package/dist/chunks/cli-1.1.34-ev8ffgr9.mjs +2 -0
  140. package/dist/chunks/cli-1.1.34-ew7p2ct8.mjs +2 -0
  141. package/dist/chunks/cli-1.1.34-exsrnr6k.mjs +2 -0
  142. package/dist/chunks/cli-1.1.34-f806gv2e.mjs +7 -0
  143. package/dist/chunks/cli-1.1.34-faavcjnj.mjs +2 -0
  144. package/dist/chunks/cli-1.1.34-fd3cb4wv.mjs +2 -0
  145. package/dist/chunks/cli-1.1.34-ff6hyf5n.mjs +2 -0
  146. package/dist/chunks/cli-1.1.34-ffs3510y.mjs +2 -0
  147. package/dist/chunks/cli-1.1.34-fgbv1rw4.mjs +17 -0
  148. package/dist/chunks/cli-1.1.34-fgx6ej2m.mjs +34 -0
  149. package/dist/chunks/cli-1.1.34-fm4a40ta.mjs +2 -0
  150. package/dist/chunks/cli-1.1.34-fnds3msv.mjs +6 -0
  151. package/dist/chunks/cli-1.1.34-ftd1h34q.mjs +2 -0
  152. package/dist/chunks/cli-1.1.34-g0sqgp9m.mjs +2 -0
  153. package/dist/chunks/cli-1.1.34-g6kkzzxg.mjs +2 -0
  154. package/dist/chunks/cli-1.1.34-g7q1qz3e.mjs +2 -0
  155. package/dist/chunks/cli-1.1.34-g888fgsj.mjs +4 -0
  156. package/dist/chunks/cli-1.1.34-ge8xp99z.mjs +2 -0
  157. package/dist/chunks/cli-1.1.34-gsrndv90.mjs +2 -0
  158. package/dist/chunks/cli-1.1.34-h3ysfavt.mjs +4 -0
  159. package/dist/chunks/cli-1.1.34-h7927ctg.mjs +2 -0
  160. package/dist/chunks/cli-1.1.34-h7bcvee5.mjs +2 -0
  161. package/dist/chunks/cli-1.1.34-hdva7ptv.mjs +10 -0
  162. package/dist/chunks/cli-1.1.34-he92bjvt.mjs +2 -0
  163. package/dist/chunks/cli-1.1.34-hpn89fzn.mjs +2 -0
  164. package/dist/chunks/cli-1.1.34-hpt8kch4.mjs +2 -0
  165. package/dist/chunks/cli-1.1.34-hrw37per.mjs +8 -0
  166. package/dist/chunks/cli-1.1.34-hsngtgbm.mjs +24 -0
  167. package/dist/chunks/cli-1.1.34-hyya784q.mjs +2 -0
  168. package/dist/chunks/cli-1.1.34-j8ab267c.mjs +2 -0
  169. package/dist/chunks/cli-1.1.34-jkdgk3ns.mjs +2 -0
  170. package/dist/chunks/cli-1.1.34-jrxh48kf.mjs +4 -0
  171. package/dist/chunks/cli-1.1.34-jsp1hy0k.mjs +2 -0
  172. package/dist/chunks/cli-1.1.34-k4zd38bd.mjs +15 -0
  173. package/dist/chunks/cli-1.1.34-k761g5m2.mjs +2 -0
  174. package/dist/chunks/cli-1.1.34-k8gmdsqr.mjs +2 -0
  175. package/dist/chunks/cli-1.1.34-mbeaqq0q.mjs +6 -0
  176. package/dist/chunks/cli-1.1.34-mhjjf878.mjs +5 -0
  177. package/dist/chunks/cli-1.1.34-n5t6xk0e.mjs +2 -0
  178. package/dist/chunks/cli-1.1.34-n5zh4wyg.mjs +42 -0
  179. package/dist/chunks/cli-1.1.34-ncz9dava.mjs +2 -0
  180. package/dist/chunks/cli-1.1.34-nr50vg8g.mjs +25 -0
  181. package/dist/chunks/cli-1.1.34-nxeb9r8s.mjs +2 -0
  182. package/dist/chunks/cli-1.1.34-p5v4dwpg.mjs +4 -0
  183. package/dist/chunks/cli-1.1.34-p7yjh2wb.mjs +2 -0
  184. package/dist/chunks/cli-1.1.34-p9rd6dtm.mjs +2 -0
  185. package/dist/chunks/cli-1.1.34-q5stzg7k.mjs +2 -0
  186. package/dist/chunks/cli-1.1.34-q83yydqv.mjs +133 -0
  187. package/dist/chunks/cli-1.1.34-q8chhxkt.mjs +2 -0
  188. package/dist/chunks/cli-1.1.34-qc15bhsg.mjs +10 -0
  189. package/dist/chunks/cli-1.1.34-qef4zhc3.mjs +2 -0
  190. package/dist/chunks/cli-1.1.34-qs805z7n.mjs +9 -0
  191. package/dist/chunks/cli-1.1.34-qwd6k5t4.mjs +2 -0
  192. package/dist/chunks/cli-1.1.34-r222exkd.mjs +2 -0
  193. package/dist/chunks/cli-1.1.34-r3kdjy4e.mjs +2 -0
  194. package/dist/chunks/cli-1.1.34-r5dphbcm.mjs +2 -0
  195. package/dist/chunks/cli-1.1.34-rb7wdjza.mjs +45 -0
  196. package/dist/chunks/cli-1.1.34-rkx3x9f6.mjs +4 -0
  197. package/dist/chunks/cli-1.1.34-rqkzp4n2.mjs +2 -0
  198. package/dist/chunks/cli-1.1.34-rs4xg86x.mjs +2 -0
  199. package/dist/chunks/cli-1.1.34-s4gsmtx9.mjs +21 -0
  200. package/dist/chunks/cli-1.1.34-s8c2c7g3.mjs +3 -0
  201. package/dist/chunks/cli-1.1.34-s9g6mekb.mjs +2 -0
  202. package/dist/chunks/cli-1.1.34-sfxba1xz.mjs +3 -0
  203. package/dist/chunks/cli-1.1.34-shm51n5s.mjs +2 -0
  204. package/dist/chunks/cli-1.1.34-sj1pcnn3.mjs +2 -0
  205. package/dist/chunks/cli-1.1.34-sq51za8b.mjs +2 -0
  206. package/dist/chunks/cli-1.1.34-sxpgdyxm.mjs +2 -0
  207. package/dist/chunks/cli-1.1.34-syx85e6f.mjs +15 -0
  208. package/dist/chunks/cli-1.1.34-t4rp44p7.mjs +2 -0
  209. package/dist/chunks/cli-1.1.34-tj5mvsam.mjs +2 -0
  210. package/dist/chunks/cli-1.1.34-tmwcg7q1.mjs +2 -0
  211. package/dist/chunks/cli-1.1.34-ty06ehzt.mjs +3 -0
  212. package/dist/chunks/cli-1.1.34-v2gbtt59.mjs +50 -0
  213. package/dist/chunks/cli-1.1.34-vdk5kjz7.mjs +15 -0
  214. package/dist/chunks/cli-1.1.34-vdwfqapw.mjs +2 -0
  215. package/dist/chunks/cli-1.1.34-vmnqkma9.mjs +2 -0
  216. package/dist/chunks/cli-1.1.34-vpwwhg8z.mjs +2 -0
  217. package/dist/chunks/cli-1.1.34-vrsb0pea.mjs +2 -0
  218. package/dist/chunks/cli-1.1.34-vz14r55x.mjs +3 -0
  219. package/dist/chunks/cli-1.1.34-w7vjt3vm.mjs +2 -0
  220. package/dist/chunks/cli-1.1.34-w9ek3z9c.mjs +2 -0
  221. package/dist/chunks/cli-1.1.34-webjc1s3.mjs +2 -0
  222. package/dist/chunks/cli-1.1.34-wfb66gsv.mjs +2 -0
  223. package/dist/chunks/cli-1.1.34-wh74w227.mjs +2 -0
  224. package/dist/chunks/cli-1.1.34-whbj9gb8.mjs +24 -0
  225. package/dist/chunks/cli-1.1.34-wqkce8kj.mjs +2 -0
  226. package/dist/chunks/cli-1.1.34-wwjkncsv.mjs +203 -0
  227. package/dist/chunks/cli-1.1.34-wwvcrp2d.mjs +2 -0
  228. package/dist/chunks/cli-1.1.34-xptd4xtb.mjs +2 -0
  229. package/dist/chunks/cli-1.1.34-xwg0x7p4.mjs +5 -0
  230. package/dist/chunks/cli-1.1.34-xx555z7d.mjs +25 -0
  231. package/dist/chunks/cli-1.1.34-yfasvar9.mjs +2 -0
  232. package/dist/chunks/cli-1.1.34-yk56k2na.mjs +2 -0
  233. package/dist/chunks/cli-1.1.34-yqryw36t.mjs +2 -0
  234. package/dist/chunks/cli-1.1.34-yqyrt954.mjs +2 -0
  235. package/dist/chunks/cli-1.1.34-yrk4mxjw.mjs +16 -0
  236. package/dist/chunks/cli-1.1.34-z14xw89f.mjs +2 -0
  237. package/dist/chunks/cli-1.1.34-z1htezxg.mjs +2 -0
  238. package/dist/chunks/cli-1.1.34-z1tmh10g.mjs +2 -0
  239. package/dist/chunks/cli-1.1.34-z84fkt5q.mjs +2 -0
  240. package/dist/chunks/cli-1.1.34-zpsaqq15.mjs +17 -0
  241. package/dist/chunks/client-1.1.34-4exntck8.mjs +1 -0
  242. package/dist/chunks/color-1.1.34-d4199wch.mjs +1 -0
  243. package/dist/chunks/compact-1.1.34-jwr60dt0.mjs +2 -0
  244. package/dist/chunks/config-1.1.34-acewhfv4.mjs +1 -0
  245. package/dist/chunks/config-1.1.34-tqzmnvs7.mjs +1 -0
  246. package/dist/chunks/constants-1.1.34-s2nkrx7g.mjs +1 -0
  247. package/dist/chunks/context-1.1.34-wc822wp5.mjs +1 -0
  248. package/dist/chunks/context-noninteractive-1.1.34-59xb33ys.mjs +1 -0
  249. package/dist/chunks/conversation-1.1.34-5k03q5nt.mjs +1 -0
  250. package/dist/chunks/copilotHeaders-1.1.34-dkmsvh40.mjs +1 -0
  251. package/dist/chunks/copy-1.1.34-efb24nm3.mjs +9 -0
  252. package/dist/chunks/cost-1.1.34-nqqv2xjh.mjs +1 -0
  253. package/dist/chunks/createSession-1.1.34-69d3ep6s.mjs +1 -0
  254. package/dist/chunks/debug-1.1.34-k568mcye.mjs +1 -0
  255. package/dist/chunks/defaultActionDeps-1.1.34-16tn959k.mjs +1480 -0
  256. package/dist/chunks/desktop-1.1.34-p9x626qf.mjs +2 -0
  257. package/dist/chunks/detectRepository-1.1.34-rqyapz8m.mjs +1 -0
  258. package/dist/chunks/detection-1.1.34-5xfznq79.mjs +1 -0
  259. package/dist/chunks/diff-1.1.34-5ggzgzf5.mjs +1 -0
  260. package/dist/chunks/doctor-1.1.34-j6mbdd5g.mjs +1 -0
  261. package/dist/chunks/doctorDiagnostic-1.1.34-spmjpktf.mjs +1 -0
  262. package/dist/chunks/earlyInput-1.1.34-a0ptf6h4.mjs +1 -0
  263. package/dist/chunks/effort-1.1.34-9k8mc8ca.mjs +13 -0
  264. package/dist/chunks/engine-1.1.34-y28mg4na.mjs +1 -0
  265. package/dist/chunks/envLessBridgeConfig-1.1.34-wm7tybv6.mjs +1 -0
  266. package/dist/chunks/envUtils-1.1.34-rmsh5nt5.mjs +1 -0
  267. package/dist/chunks/errors-1.1.34-61fzsrh4.mjs +1 -0
  268. package/dist/chunks/exampleCommands-1.1.34-8x8b7p9t.mjs +1 -0
  269. package/dist/chunks/execFileNoThrow-1.1.34-zemxr8xw.mjs +1 -0
  270. package/dist/chunks/exit-1.1.34-sw6zmmgn.mjs +1 -0
  271. package/dist/chunks/explorer-1.1.34-3apnqz0a.mjs +1 -0
  272. package/dist/chunks/export-1.1.34-1hyv5efm.mjs +2 -0
  273. package/dist/chunks/fast-1.1.34-3d72mbz1.mjs +1 -0
  274. package/dist/chunks/feedback-1.1.34-k74bh5v8.mjs +16 -0
  275. package/dist/chunks/git-1.1.34-p3qv0ed3.mjs +1 -0
  276. package/dist/chunks/githubModelsCredentials-1.1.34-hmjt89m3.mjs +1 -0
  277. package/dist/chunks/goal-1.1.34-m6dge19b.mjs +4 -0
  278. package/dist/chunks/headless-1.1.34-hpaadbg6.mjs +2 -0
  279. package/dist/chunks/heapdump-1.1.34-zc52x1pc.mjs +6 -0
  280. package/dist/chunks/help-1.1.34-0sgw7jbh.mjs +1 -0
  281. package/dist/chunks/hooks-1.1.34-8s6pawxx.mjs +1 -0
  282. package/dist/chunks/hooks-1.1.34-vnm6rywf.mjs +79 -0
  283. package/dist/chunks/ide-1.1.34-jbcf8ma9.mjs +3 -0
  284. package/dist/chunks/image-processor-napi-1.1.34-zrk7wvw2.mjs +1 -0
  285. package/dist/chunks/import-1.1.34-4j35p307.mjs +261 -0
  286. package/dist/chunks/inboundAttachments-1.1.34-pk5t3y0v.mjs +1 -0
  287. package/dist/chunks/index-1.1.34-086aty1n.mjs +1 -0
  288. package/dist/chunks/index-1.1.34-0q46c1bj.mjs +1 -0
  289. package/dist/chunks/index-1.1.34-2j48ar1m.mjs +1 -0
  290. package/dist/chunks/index-1.1.34-427npr7a.mjs +1 -0
  291. package/dist/chunks/index-1.1.34-50d0rg8h.mjs +5 -0
  292. package/dist/chunks/index-1.1.34-50j6q6gr.mjs +1 -0
  293. package/dist/chunks/index-1.1.34-ehvgt047.mjs +1 -0
  294. package/dist/chunks/index-1.1.34-faq1af2v.mjs +1 -0
  295. package/dist/chunks/index-1.1.34-fvrswew9.mjs +2 -0
  296. package/dist/chunks/index-1.1.34-mx39dxjj.mjs +30 -0
  297. package/dist/chunks/index-1.1.34-mxpb8hvr.mjs +9 -0
  298. package/dist/chunks/index-1.1.34-nye63dch.mjs +1 -0
  299. package/dist/chunks/index-1.1.34-qmmg0npy.mjs +2 -0
  300. package/dist/chunks/index-1.1.34-qxa3e3cv.mjs +1 -0
  301. package/dist/chunks/index-1.1.34-snehdv50.mjs +1 -0
  302. package/dist/chunks/index-1.1.34-t7jsxdbk.mjs +1 -0
  303. package/dist/chunks/index-1.1.34-wgm8z1dz.mjs +1 -0
  304. package/dist/chunks/index-1.1.34-wz64a3d4.mjs +9 -0
  305. package/dist/chunks/index-1.1.34-x83gwj6g.mjs +23 -0
  306. package/dist/chunks/index-1.1.34-xa114b8t.mjs +1 -0
  307. package/dist/chunks/index-1.1.34-y10pcdv1.mjs +1 -0
  308. package/dist/chunks/index-1.1.34-yqzmcm9y.mjs +1 -0
  309. package/dist/chunks/index-1.1.34-yxzywg42.mjs +1 -0
  310. package/dist/chunks/init-1.1.34-jdhgqsrc.mjs +2 -0
  311. package/dist/chunks/initReplBridge-1.1.34-b0awafmd.mjs +1 -0
  312. package/dist/chunks/ink-1.1.34-yb3z87en.mjs +1 -0
  313. package/dist/chunks/insights-1.1.34-a321wxgf.mjs +870 -0
  314. package/dist/chunks/install-1.1.34-064wyxwb.mjs +1 -0
  315. package/dist/chunks/install-github-app-1.1.34-smwffy57.mjs +149 -0
  316. package/dist/chunks/install-slack-app-1.1.34-a5bwj8gk.mjs +1 -0
  317. package/dist/chunks/interactiveHelpers-1.1.34-pq1b6btm.mjs +1 -0
  318. package/dist/chunks/keybindings-1.1.34-rq312f3j.mjs +2 -0
  319. package/dist/chunks/latestVersionCache-1.1.34-x006sta9.mjs +1 -0
  320. package/dist/chunks/loadAgentsDir-1.1.34-2w0hm9wz.mjs +1 -0
  321. package/dist/chunks/loadPluginHooks-1.1.34-t9s8mknk.mjs +1 -0
  322. package/dist/chunks/log-1.1.34-n41t6etn.mjs +1 -0
  323. package/dist/chunks/main-1.1.34-gh9n8dgw.mjs +1 -0
  324. package/dist/chunks/managedEnv-1.1.34-qntg5ykr.mjs +1 -0
  325. package/dist/chunks/mcp-1.1.34-5mtgev8d.mjs +17 -0
  326. package/dist/chunks/mcp-1.1.34-61dcjzjk.mjs +4 -0
  327. package/dist/chunks/mcp-1.1.34-9d1py1ez.mjs +1 -0
  328. package/dist/chunks/mcpb-1.1.34-x9mxeryp.mjs +1 -0
  329. package/dist/chunks/memory-1.1.34-sys90hns.mjs +128 -0
  330. package/dist/chunks/model-1.1.34-v1r14fy7.mjs +1 -0
  331. package/dist/chunks/model-1.1.34-vks7w05g.mjs +2 -0
  332. package/dist/chunks/node-1.1.34-5b5b2m9b.mjs +1 -0
  333. package/dist/chunks/node-1.1.34-sdqnj3qm.mjs +15 -0
  334. package/dist/chunks/oauth-1.1.34-bbmwrswg.mjs +1 -0
  335. package/dist/chunks/openaiShim-1.1.34-kj2a4r19.mjs +14 -0
  336. package/dist/chunks/output-style-1.1.34-a4dykckn.mjs +1 -0
  337. package/dist/chunks/package-F6O7J2XI-1.1.34-291qk0fk.mjs +1 -0
  338. package/dist/chunks/permissions-1.1.34-bqhsed60.mjs +1 -0
  339. package/dist/chunks/permissions-1.1.34-xkrhteme.mjs +3 -0
  340. package/dist/chunks/plan-1.1.34-j7qcpv9s.mjs +1 -0
  341. package/dist/chunks/plist-1.1.34-ykta36sg.mjs +1 -0
  342. package/dist/chunks/plugin-1.1.34-vszmzh0r.mjs +29 -0
  343. package/dist/chunks/pluginStartupCheck-1.1.34-5xap799m.mjs +1 -0
  344. package/dist/chunks/plugins-1.1.34-6ea553qa.mjs +9 -0
  345. package/dist/chunks/preActionHook-1.1.34-xy1pecch.mjs +2 -0
  346. package/dist/chunks/print-1.1.34-2gdkw86g.mjs +57 -0
  347. package/dist/chunks/process-1.1.34-fms89mxv.mjs +1 -0
  348. package/dist/chunks/processBashCommand-1.1.34-gcydk2hd.mjs +1 -0
  349. package/dist/chunks/processSlashCommand-1.1.34-a3q257ff.mjs +9 -0
  350. package/dist/chunks/prompt-1.1.34-ctfxsw9h.mjs +1 -0
  351. package/dist/chunks/prompt-1.1.34-wp8mvh7t.mjs +1 -0
  352. package/dist/chunks/prompts-1.1.34-bmq3swzy.mjs +1 -0
  353. package/dist/chunks/provider-1.1.34-00xnjkhs.mjs +2 -0
  354. package/dist/chunks/providerProfiles-1.1.34-psred1pr.mjs +1 -0
  355. package/dist/chunks/providerValidation-1.1.34-0vamj708.mjs +6 -0
  356. package/dist/chunks/registerSubcommands-1.1.34-pmqr2nmf.mjs +26 -0
  357. package/dist/chunks/registry-1.1.34-sapmjhjz.mjs +1 -0
  358. package/dist/chunks/release-notes-1.1.34-p6wg8evp.mjs +5 -0
  359. package/dist/chunks/reload-plugins-1.1.34-cd8e00jp.mjs +2 -0
  360. package/dist/chunks/remote-env-1.1.34-fpepp6cm.mjs +1 -0
  361. package/dist/chunks/remoteBridgeCore-1.1.34-mmxz0ypj.mjs +1 -0
  362. package/dist/chunks/rename-1.1.34-gwdavcb8.mjs +1 -0
  363. package/dist/chunks/replLauncher-1.1.34-5yvyazea.mjs +1 -0
  364. package/dist/chunks/resume-1.1.34-9abwrf3b.mjs +2 -0
  365. package/dist/chunks/rewind-1.1.34-qf51de9x.mjs +1 -0
  366. package/dist/chunks/rootOptions-1.1.34-dkd3s4x5.mjs +1 -0
  367. package/dist/chunks/runWorkflowHeadless-1.1.34-c0j2ym4w.mjs +10 -0
  368. package/dist/chunks/sandbox-adapter-1.1.34-ad556paa.mjs +1 -0
  369. package/dist/chunks/sandbox-toggle-1.1.34-1x2ddxv2.mjs +1 -0
  370. package/dist/chunks/session-1.1.34-h46ywygv.mjs +2 -0
  371. package/dist/chunks/sessionStorage-1.1.34-tc7rwcvm.mjs +1 -0
  372. package/dist/chunks/settings-1.1.34-bk3tb34s.mjs +1 -0
  373. package/dist/chunks/setup-1.1.34-3ddxnk01.mjs +12 -0
  374. package/dist/chunks/sinks-1.1.34-ww0tcz6j.mjs +1 -0
  375. package/dist/chunks/skills-1.1.34-3ybbxgjn.mjs +1 -0
  376. package/dist/chunks/startupProfiler-1.1.34-7z13z7v7.mjs +1 -0
  377. package/dist/chunks/startupUpdateCheck-1.1.34-45fyr9wz.mjs +1 -0
  378. package/dist/chunks/state-1.1.34-pymefs1m.mjs +1 -0
  379. package/dist/chunks/stats-1.1.34-4jw41qjm.mjs +1 -0
  380. package/dist/chunks/status-1.1.34-r120pa8k.mjs +1 -0
  381. package/dist/chunks/stickers-1.1.34-5zsfjhdn.mjs +1 -0
  382. package/dist/chunks/subprocessEnv-1.1.34-44r7jf62.mjs +1 -0
  383. package/dist/chunks/tasks-1.1.34-1mhjk4hs.mjs +1 -0
  384. package/dist/chunks/teamHelpers-1.1.34-jfmrh1r7.mjs +1 -0
  385. package/dist/chunks/teammateModeSnapshot-1.1.34-m47hpvj2.mjs +1 -0
  386. package/dist/chunks/teleport-1.1.34-g7gk9g3q.mjs +1 -0
  387. package/dist/chunks/terminalSetup-1.1.34-8e12gzad.mjs +1 -0
  388. package/dist/chunks/theme-1.1.34-bvmx3zyc.mjs +1 -0
  389. package/dist/chunks/thinkback-1.1.34-bz9h3qn7.mjs +1 -0
  390. package/dist/chunks/thinkback-play-1.1.34-azysb61e.mjs +1 -0
  391. package/dist/chunks/toolPool-1.1.34-tewk9s1e.mjs +1 -0
  392. package/dist/chunks/toolSearch-1.1.34-70r6c6d3.mjs +1 -0
  393. package/dist/chunks/tools-1.1.34-a7jpjvb5.mjs +1 -0
  394. package/dist/chunks/trustedDevice-1.1.34-jhn5330j.mjs +1 -0
  395. package/dist/chunks/turndown.cjs-1.1.34-8ve160tv.mjs +69 -0
  396. package/dist/chunks/types-1.1.34-0as4p0wf.mjs +1 -0
  397. package/dist/chunks/ultrareviewCommand-1.1.34-b7bpj27y.mjs +4 -0
  398. package/dist/chunks/update-1.1.34-wnetpcv6.mjs +72 -0
  399. package/dist/chunks/upload-1.1.34-3cdkjhmm.mjs +7 -0
  400. package/dist/chunks/upstreamproxy-1.1.34-x376823n.mjs +14 -0
  401. package/dist/chunks/usage-1.1.34-h5bv8trt.mjs +1 -0
  402. package/dist/chunks/util-1.1.34-7ctz504f.mjs +1 -0
  403. package/dist/chunks/utils-1.1.34-h9r9ybtj.mjs +1 -0
  404. package/dist/chunks/vim-1.1.34-4y4504z8.mjs +1 -0
  405. package/dist/chunks/watchLoop-1.1.34-tnjnpc05.mjs +13 -0
  406. package/dist/chunks/wiki-1.1.34-53n04tv3.mjs +132 -0
  407. package/dist/chunks/workflows-1.1.34-zefy425g.mjs +1 -0
  408. package/dist/chunks/worktree-1.1.34-gzm7041w.mjs +1 -0
  409. package/dist/chunks/worktreeModeEnabled-1.1.34-x9qxm01a.mjs +1 -0
  410. package/dist/chunks/wrapper-1.1.34-jmcmxyrm.mjs +7 -0
  411. package/dist/cli.mjs +2 -2
  412. package/package.json +9 -9
  413. package/dist/chunks/App-1.1.33-y76d67dw.mjs +0 -1
  414. package/dist/chunks/ApproveApiKey-1.1.33-fz6kxvwx.mjs +0 -1
  415. package/dist/chunks/AutoModeOptInDialog-1.1.33-99ykhjpz.mjs +0 -1
  416. package/dist/chunks/BypassPermissionsModeDialog-1.1.33-tzr7atf1.mjs +0 -1
  417. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.33-3ehzc9bn.mjs +0 -1
  418. package/dist/chunks/ConsoleOAuthFlow-1.1.33-mptzgfxf.mjs +0 -1
  419. package/dist/chunks/DiffDialog-1.1.33-anvv0w3b.mjs +0 -6
  420. package/dist/chunks/Doctor-1.1.33-8m3ek5ex.mjs +0 -1
  421. package/dist/chunks/ExplorerDialog-1.1.33-70aphca6.mjs +0 -6
  422. package/dist/chunks/ITermBackend-1.1.33-0syshawj.mjs +0 -1
  423. package/dist/chunks/InvalidConfigDialog-1.1.33-40sq04vm.mjs +0 -1
  424. package/dist/chunks/InvalidSettingsDialog-1.1.33-tgp186pw.mjs +0 -1
  425. package/dist/chunks/MigrationDialog-1.1.33-9tcy3d33.mjs +0 -1
  426. package/dist/chunks/Onboarding-1.1.33-zjx8xhqz.mjs +0 -1
  427. package/dist/chunks/ProviderManager-1.1.33-zm2tkf0s.mjs +0 -1
  428. package/dist/chunks/REPL-1.1.33-gh2kz8dk.mjs +0 -1
  429. package/dist/chunks/ResumeConversation-1.1.33-v284310j.mjs +0 -1
  430. package/dist/chunks/TeleportProgress-1.1.33-5dqj1qp9.mjs +0 -1
  431. package/dist/chunks/TeleportRepoMismatchDialog-1.1.33-q3p5maex.mjs +0 -1
  432. package/dist/chunks/TeleportResumeWrapper-1.1.33-dhrpj9a6.mjs +0 -1
  433. package/dist/chunks/TmuxBackend-1.1.33-gph2cfsr.mjs +0 -9
  434. package/dist/chunks/ToolSearchTool-1.1.33-qv8tchk3.mjs +0 -1
  435. package/dist/chunks/TrustDialog-1.1.33-bq45cvv6.mjs +0 -1
  436. package/dist/chunks/activeProvider-1.1.33-v055y8f3.mjs +0 -1
  437. package/dist/chunks/add-dir-1.1.33-e811cqdx.mjs +0 -1
  438. package/dist/chunks/agentTypes-1.1.33-t5nvprgp.mjs +0 -1
  439. package/dist/chunks/agents-1.1.33-mbve4trn.mjs +0 -3
  440. package/dist/chunks/agents-1.1.33-nhfb2axy.mjs +0 -110
  441. package/dist/chunks/api-1.1.33-2sg5ga0j.mjs +0 -1
  442. package/dist/chunks/asciicast-1.1.33-xr41erq2.mjs +0 -1
  443. package/dist/chunks/auth-1.1.33-k778a810.mjs +0 -1
  444. package/dist/chunks/auth-1.1.33-xappxyn1.mjs +0 -1
  445. package/dist/chunks/autoMode-1.1.33-wb6nwcf3.mjs +0 -52
  446. package/dist/chunks/autoModeSetup-1.1.33-43tmanjr.mjs +0 -44
  447. package/dist/chunks/autoUpdater-1.1.33-py6amejh.mjs +0 -1
  448. package/dist/chunks/backgroundHousekeeping-1.1.33-zn01axaz.mjs +0 -1
  449. package/dist/chunks/branch-1.1.33-gthrar82.mjs +0 -4
  450. package/dist/chunks/bridge-1.1.33-9s3v1h77.mjs +0 -2
  451. package/dist/chunks/bridgeConfig-1.1.33-183x874k.mjs +0 -1
  452. package/dist/chunks/bridgeEnabled-1.1.33-42yktg6p.mjs +0 -1
  453. package/dist/chunks/bridgeMain-1.1.33-62ytf81q.mjs +0 -88
  454. package/dist/chunks/bridgePointer-1.1.33-weh8egz5.mjs +0 -1
  455. package/dist/chunks/btw-1.1.33-xhjhwhex.mjs +0 -1
  456. package/dist/chunks/buddy-1.1.33-6e4bcghj.mjs +0 -3
  457. package/dist/chunks/cache-probe-1.1.33-65t8nv3y.mjs +0 -21
  458. package/dist/chunks/cacheStats-1.1.33-anfjhga9.mjs +0 -4
  459. package/dist/chunks/caches-1.1.33-ehvfr1c6.mjs +0 -1
  460. package/dist/chunks/cd-1.1.33-xbpsa40s.mjs +0 -3
  461. package/dist/chunks/claudeDesktop-1.1.33-en5r91rv.mjs +0 -1
  462. package/dist/chunks/clear-1.1.33-90jr5w5d.mjs +0 -1
  463. package/dist/chunks/clearTerminal-1.1.33-4ts9jf6w.mjs +0 -1
  464. package/dist/chunks/cli-1.1.33-05291q1a.mjs +0 -2
  465. package/dist/chunks/cli-1.1.33-0bk8mrfh.mjs +0 -15
  466. package/dist/chunks/cli-1.1.33-0ktq50cd.mjs +0 -133
  467. package/dist/chunks/cli-1.1.33-0kvxjey5.mjs +0 -24
  468. package/dist/chunks/cli-1.1.33-0sckqj39.mjs +0 -2
  469. package/dist/chunks/cli-1.1.33-1fpzq80d.mjs +0 -2
  470. package/dist/chunks/cli-1.1.33-20v60hvd.mjs +0 -203
  471. package/dist/chunks/cli-1.1.33-20zqrzzq.mjs +0 -2
  472. package/dist/chunks/cli-1.1.33-22addsh7.mjs +0 -4
  473. package/dist/chunks/cli-1.1.33-231zj4yg.mjs +0 -2
  474. package/dist/chunks/cli-1.1.33-241y9eee.mjs +0 -5
  475. package/dist/chunks/cli-1.1.33-283f43sy.mjs +0 -2
  476. package/dist/chunks/cli-1.1.33-2chamq3v.mjs +0 -2
  477. package/dist/chunks/cli-1.1.33-2xqjkz7r.mjs +0 -2
  478. package/dist/chunks/cli-1.1.33-303jm377.mjs +0 -2
  479. package/dist/chunks/cli-1.1.33-30vd7w1w.mjs +0 -10
  480. package/dist/chunks/cli-1.1.33-39q98nwa.mjs +0 -2
  481. package/dist/chunks/cli-1.1.33-3by7vn1v.mjs +0 -2
  482. package/dist/chunks/cli-1.1.33-3de2dtv6.mjs +0 -2
  483. package/dist/chunks/cli-1.1.33-3kk4en4s.mjs +0 -2
  484. package/dist/chunks/cli-1.1.33-3yjvh7fr.mjs +0 -2
  485. package/dist/chunks/cli-1.1.33-46bkj0rz.mjs +0 -5
  486. package/dist/chunks/cli-1.1.33-4ghpq4rw.mjs +0 -24
  487. package/dist/chunks/cli-1.1.33-4t7b2799.mjs +0 -2
  488. package/dist/chunks/cli-1.1.33-525zf497.mjs +0 -16
  489. package/dist/chunks/cli-1.1.33-56fen5jd.mjs +0 -4
  490. package/dist/chunks/cli-1.1.33-5c19q87v.mjs +0 -2
  491. package/dist/chunks/cli-1.1.33-5ehc9tkd.mjs +0 -2
  492. package/dist/chunks/cli-1.1.33-5fc0dkzm.mjs +0 -2
  493. package/dist/chunks/cli-1.1.33-5pa215hx.mjs +0 -2
  494. package/dist/chunks/cli-1.1.33-6fq5cn5g.mjs +0 -17
  495. package/dist/chunks/cli-1.1.33-726gr74y.mjs +0 -2
  496. package/dist/chunks/cli-1.1.33-7b2yeb1x.mjs +0 -2
  497. package/dist/chunks/cli-1.1.33-7qjhgket.mjs +0 -2
  498. package/dist/chunks/cli-1.1.33-7qr8n3qn.mjs +0 -2
  499. package/dist/chunks/cli-1.1.33-7rd596wq.mjs +0 -2
  500. package/dist/chunks/cli-1.1.33-7shybbdj.mjs +0 -2
  501. package/dist/chunks/cli-1.1.33-7sm3r61g.mjs +0 -50
  502. package/dist/chunks/cli-1.1.33-87p06j57.mjs +0 -2
  503. package/dist/chunks/cli-1.1.33-8dxvf995.mjs +0 -2
  504. package/dist/chunks/cli-1.1.33-8esj8tkg.mjs +0 -18
  505. package/dist/chunks/cli-1.1.33-8p3h818h.mjs +0 -2
  506. package/dist/chunks/cli-1.1.33-8q8sfbe6.mjs +0 -2
  507. package/dist/chunks/cli-1.1.33-8xyzgp13.mjs +0 -2
  508. package/dist/chunks/cli-1.1.33-90w26xxw.mjs +0 -4
  509. package/dist/chunks/cli-1.1.33-94s66kd2.mjs +0 -2
  510. package/dist/chunks/cli-1.1.33-9dt8xzkt.mjs +0 -2
  511. package/dist/chunks/cli-1.1.33-9fetbt6a.mjs +0 -2
  512. package/dist/chunks/cli-1.1.33-9z2gy96d.mjs +0 -2
  513. package/dist/chunks/cli-1.1.33-9zba2a1d.mjs +0 -60
  514. package/dist/chunks/cli-1.1.33-a49fwy5a.mjs +0 -3
  515. package/dist/chunks/cli-1.1.33-a6dvne78.mjs +0 -2
  516. package/dist/chunks/cli-1.1.33-ad43mr1x.mjs +0 -2
  517. package/dist/chunks/cli-1.1.33-ad75ezdj.mjs +0 -2
  518. package/dist/chunks/cli-1.1.33-afsw641c.mjs +0 -2
  519. package/dist/chunks/cli-1.1.33-aj5dy49h.mjs +0 -3
  520. package/dist/chunks/cli-1.1.33-apx2xgzn.mjs +0 -11
  521. package/dist/chunks/cli-1.1.33-bczwyjaq.mjs +0 -2
  522. package/dist/chunks/cli-1.1.33-bfx6z02g.mjs +0 -2
  523. package/dist/chunks/cli-1.1.33-bh8452tq.mjs +0 -2
  524. package/dist/chunks/cli-1.1.33-btd9w5q2.mjs +0 -2
  525. package/dist/chunks/cli-1.1.33-bxw3sz3d.mjs +0 -2
  526. package/dist/chunks/cli-1.1.33-c14msjsc.mjs +0 -2
  527. package/dist/chunks/cli-1.1.33-c37dxjja.mjs +0 -2
  528. package/dist/chunks/cli-1.1.33-c45mt1yq.mjs +0 -2
  529. package/dist/chunks/cli-1.1.33-c5j1t4gd.mjs +0 -2
  530. package/dist/chunks/cli-1.1.33-cdzhbn5g.mjs +0 -15
  531. package/dist/chunks/cli-1.1.33-cfj1bzen.mjs +0 -2
  532. package/dist/chunks/cli-1.1.33-cj2t55an.mjs +0 -2
  533. package/dist/chunks/cli-1.1.33-cjfrq2jz.mjs +0 -4
  534. package/dist/chunks/cli-1.1.33-czpahv90.mjs +0 -25
  535. package/dist/chunks/cli-1.1.33-czrp8ff2.mjs +0 -2
  536. package/dist/chunks/cli-1.1.33-d2jds1x5.mjs +0 -4
  537. package/dist/chunks/cli-1.1.33-d9fea5m8.mjs +0 -2
  538. package/dist/chunks/cli-1.1.33-das1k5jq.mjs +0 -3
  539. package/dist/chunks/cli-1.1.33-dd7gk6d2.mjs +0 -5
  540. package/dist/chunks/cli-1.1.33-df8tggjt.mjs +0 -2
  541. package/dist/chunks/cli-1.1.33-dfb8xrtp.mjs +0 -2
  542. package/dist/chunks/cli-1.1.33-dfbvd02g.mjs +0 -3
  543. package/dist/chunks/cli-1.1.33-dm8nxxnv.mjs +0 -2
  544. package/dist/chunks/cli-1.1.33-dp41gds0.mjs +0 -2
  545. package/dist/chunks/cli-1.1.33-dv29f6yk.mjs +0 -2
  546. package/dist/chunks/cli-1.1.33-e2jx0b65.mjs +0 -2
  547. package/dist/chunks/cli-1.1.33-e4gbaaq5.mjs +0 -3
  548. package/dist/chunks/cli-1.1.33-e87tvy6n.mjs +0 -2
  549. package/dist/chunks/cli-1.1.33-edgxaxbt.mjs +0 -10
  550. package/dist/chunks/cli-1.1.33-effqmrgb.mjs +0 -2
  551. package/dist/chunks/cli-1.1.33-evp1q65w.mjs +0 -2
  552. package/dist/chunks/cli-1.1.33-ezzc0e6x.mjs +0 -2
  553. package/dist/chunks/cli-1.1.33-f4vhy9zk.mjs +0 -2
  554. package/dist/chunks/cli-1.1.33-f83qf2zv.mjs +0 -63
  555. package/dist/chunks/cli-1.1.33-fcfv2vn6.mjs +0 -2
  556. package/dist/chunks/cli-1.1.33-g3wvn6f8.mjs +0 -2
  557. package/dist/chunks/cli-1.1.33-gbjym0yt.mjs +0 -6
  558. package/dist/chunks/cli-1.1.33-gfehnxj8.mjs +0 -2
  559. package/dist/chunks/cli-1.1.33-ggk9m978.mjs +0 -7
  560. package/dist/chunks/cli-1.1.33-ghcxb1ce.mjs +0 -34
  561. package/dist/chunks/cli-1.1.33-gnejtk17.mjs +0 -7
  562. package/dist/chunks/cli-1.1.33-gpp6mbxj.mjs +0 -17
  563. package/dist/chunks/cli-1.1.33-h0mx2ccc.mjs +0 -2
  564. package/dist/chunks/cli-1.1.33-h27b2an0.mjs +0 -2
  565. package/dist/chunks/cli-1.1.33-h75frpfe.mjs +0 -2
  566. package/dist/chunks/cli-1.1.33-heys42qe.mjs +0 -9
  567. package/dist/chunks/cli-1.1.33-hfkfz9g9.mjs +0 -2
  568. package/dist/chunks/cli-1.1.33-hwmqqtqr.mjs +0 -45
  569. package/dist/chunks/cli-1.1.33-j5q2mpwf.mjs +0 -2
  570. package/dist/chunks/cli-1.1.33-j6ep4mfm.mjs +0 -6
  571. package/dist/chunks/cli-1.1.33-j75f13gr.mjs +0 -2
  572. package/dist/chunks/cli-1.1.33-j8ajj3nv.mjs +0 -2
  573. package/dist/chunks/cli-1.1.33-jdtfdqvz.mjs +0 -2
  574. package/dist/chunks/cli-1.1.33-jp2qs3mr.mjs +0 -2
  575. package/dist/chunks/cli-1.1.33-jsyd53zn.mjs +0 -2
  576. package/dist/chunks/cli-1.1.33-jww2z5yy.mjs +0 -2
  577. package/dist/chunks/cli-1.1.33-k1vhqgx4.mjs +0 -2
  578. package/dist/chunks/cli-1.1.33-k466m68a.mjs +0 -2
  579. package/dist/chunks/cli-1.1.33-k51bffb8.mjs +0 -2
  580. package/dist/chunks/cli-1.1.33-kdbb1eq4.mjs +0 -2
  581. package/dist/chunks/cli-1.1.33-kg221c89.mjs +0 -2
  582. package/dist/chunks/cli-1.1.33-kqsskxv0.mjs +0 -133
  583. package/dist/chunks/cli-1.1.33-kth7ttsa.mjs +0 -4
  584. package/dist/chunks/cli-1.1.33-kty1kjfd.mjs +0 -2
  585. package/dist/chunks/cli-1.1.33-kxjb58yw.mjs +0 -2
  586. package/dist/chunks/cli-1.1.33-m06xge1a.mjs +0 -2
  587. package/dist/chunks/cli-1.1.33-m08stm17.mjs +0 -2
  588. package/dist/chunks/cli-1.1.33-m402nk5n.mjs +0 -2
  589. package/dist/chunks/cli-1.1.33-mg60nkfe.mjs +0 -2
  590. package/dist/chunks/cli-1.1.33-mgmqjt4t.mjs +0 -2
  591. package/dist/chunks/cli-1.1.33-mhph00kg.mjs +0 -24
  592. package/dist/chunks/cli-1.1.33-mkzxq2c9.mjs +0 -2
  593. package/dist/chunks/cli-1.1.33-mm3hdty7.mjs +0 -2
  594. package/dist/chunks/cli-1.1.33-n2d1txyn.mjs +0 -4
  595. package/dist/chunks/cli-1.1.33-n55k105y.mjs +0 -2
  596. package/dist/chunks/cli-1.1.33-n7rpkhs4.mjs +0 -2
  597. package/dist/chunks/cli-1.1.33-nd6tv1an.mjs +0 -15
  598. package/dist/chunks/cli-1.1.33-ndste4rf.mjs +0 -39
  599. package/dist/chunks/cli-1.1.33-nq2hxcp4.mjs +0 -9
  600. package/dist/chunks/cli-1.1.33-nvfshp5c.mjs +0 -6
  601. package/dist/chunks/cli-1.1.33-p0fb1k1s.mjs +0 -7
  602. package/dist/chunks/cli-1.1.33-pcsrkgrn.mjs +0 -8
  603. package/dist/chunks/cli-1.1.33-pw7bmns5.mjs +0 -42
  604. package/dist/chunks/cli-1.1.33-q8hq263y.mjs +0 -2
  605. package/dist/chunks/cli-1.1.33-qr675sx2.mjs +0 -2
  606. package/dist/chunks/cli-1.1.33-qss1gs3e.mjs +0 -2
  607. package/dist/chunks/cli-1.1.33-ra054vbq.mjs +0 -2
  608. package/dist/chunks/cli-1.1.33-raynjbkq.mjs +0 -2
  609. package/dist/chunks/cli-1.1.33-rr2q4wq6.mjs +0 -2
  610. package/dist/chunks/cli-1.1.33-rr5sxpa0.mjs +0 -2
  611. package/dist/chunks/cli-1.1.33-rrhe6g9q.mjs +0 -2
  612. package/dist/chunks/cli-1.1.33-rrvgm0jd.mjs +0 -2
  613. package/dist/chunks/cli-1.1.33-rtme70ck.mjs +0 -2
  614. package/dist/chunks/cli-1.1.33-rv2bkx6b.mjs +0 -2
  615. package/dist/chunks/cli-1.1.33-rxe1dmbg.mjs +0 -2
  616. package/dist/chunks/cli-1.1.33-s5kw6064.mjs +0 -3
  617. package/dist/chunks/cli-1.1.33-sbgh2rsy.mjs +0 -2
  618. package/dist/chunks/cli-1.1.33-sf95jk5d.mjs +0 -2
  619. package/dist/chunks/cli-1.1.33-sv5dwqh6.mjs +0 -3
  620. package/dist/chunks/cli-1.1.33-t0fg1hsr.mjs +0 -2
  621. package/dist/chunks/cli-1.1.33-t10xrxez.mjs +0 -2
  622. package/dist/chunks/cli-1.1.33-t26pazs8.mjs +0 -2
  623. package/dist/chunks/cli-1.1.33-t591k29k.mjs +0 -21
  624. package/dist/chunks/cli-1.1.33-t63yat1z.mjs +0 -2
  625. package/dist/chunks/cli-1.1.33-t78313g4.mjs +0 -3
  626. package/dist/chunks/cli-1.1.33-t8cxmf0c.mjs +0 -12
  627. package/dist/chunks/cli-1.1.33-tp6bhara.mjs +0 -4
  628. package/dist/chunks/cli-1.1.33-ts50d9at.mjs +0 -2
  629. package/dist/chunks/cli-1.1.33-ttc7emph.mjs +0 -25
  630. package/dist/chunks/cli-1.1.33-ty6y9kn2.mjs +0 -2
  631. package/dist/chunks/cli-1.1.33-v08vb0sv.mjs +0 -6
  632. package/dist/chunks/cli-1.1.33-v615gn7w.mjs +0 -3
  633. package/dist/chunks/cli-1.1.33-vgynvhys.mjs +0 -5491
  634. package/dist/chunks/cli-1.1.33-vr8cqqar.mjs +0 -2
  635. package/dist/chunks/cli-1.1.33-wfjtjsvq.mjs +0 -6
  636. package/dist/chunks/cli-1.1.33-wrdskpzf.mjs +0 -2
  637. package/dist/chunks/cli-1.1.33-wx8rtpc5.mjs +0 -2
  638. package/dist/chunks/cli-1.1.33-x6zgk4kb.mjs +0 -2
  639. package/dist/chunks/cli-1.1.33-xdqetcyr.mjs +0 -2
  640. package/dist/chunks/cli-1.1.33-xfawy00r.mjs +0 -2
  641. package/dist/chunks/cli-1.1.33-xt2ehzej.mjs +0 -2
  642. package/dist/chunks/cli-1.1.33-yd2b6czv.mjs +0 -2
  643. package/dist/chunks/cli-1.1.33-yd4xhx6x.mjs +0 -20
  644. package/dist/chunks/cli-1.1.33-ypfa1t3b.mjs +0 -2
  645. package/dist/chunks/cli-1.1.33-yqqr1e67.mjs +0 -2
  646. package/dist/chunks/cli-1.1.33-yqxphe1x.mjs +0 -2
  647. package/dist/chunks/cli-1.1.33-yy53bmhe.mjs +0 -2
  648. package/dist/chunks/cli-1.1.33-yygdy86h.mjs +0 -2
  649. package/dist/chunks/cli-1.1.33-z5rv4tr3.mjs +0 -3
  650. package/dist/chunks/cli-1.1.33-z7fa1fgt.mjs +0 -2
  651. package/dist/chunks/cli-1.1.33-zqqj4d1f.mjs +0 -2
  652. package/dist/chunks/cli-1.1.33-zsk851wd.mjs +0 -2
  653. package/dist/chunks/client-1.1.33-qhf9zz8n.mjs +0 -1
  654. package/dist/chunks/color-1.1.33-q69y353w.mjs +0 -1
  655. package/dist/chunks/compact-1.1.33-5vxewt1w.mjs +0 -2
  656. package/dist/chunks/config-1.1.33-h6tzt18x.mjs +0 -1
  657. package/dist/chunks/config-1.1.33-m6rgj5rq.mjs +0 -1
  658. package/dist/chunks/constants-1.1.33-myvdtn6q.mjs +0 -1
  659. package/dist/chunks/context-1.1.33-pm79kmgf.mjs +0 -1
  660. package/dist/chunks/context-noninteractive-1.1.33-6pd4by4q.mjs +0 -1
  661. package/dist/chunks/conversation-1.1.33-acjggjj2.mjs +0 -1
  662. package/dist/chunks/copilotHeaders-1.1.33-s1k9b90v.mjs +0 -1
  663. package/dist/chunks/copy-1.1.33-yynkyja4.mjs +0 -9
  664. package/dist/chunks/cost-1.1.33-sjebbq22.mjs +0 -1
  665. package/dist/chunks/createSession-1.1.33-cw4pppsw.mjs +0 -1
  666. package/dist/chunks/debug-1.1.33-h1ep6bea.mjs +0 -1
  667. package/dist/chunks/defaultActionDeps-1.1.33-t1wa4x2g.mjs +0 -1480
  668. package/dist/chunks/desktop-1.1.33-cgj2ar5t.mjs +0 -2
  669. package/dist/chunks/detectRepository-1.1.33-5yfd53ae.mjs +0 -1
  670. package/dist/chunks/detection-1.1.33-dnyn9hs6.mjs +0 -1
  671. package/dist/chunks/diff-1.1.33-nf6wy43p.mjs +0 -1
  672. package/dist/chunks/doctor-1.1.33-58atgaxs.mjs +0 -1
  673. package/dist/chunks/doctorDiagnostic-1.1.33-v3ht88pf.mjs +0 -1
  674. package/dist/chunks/earlyInput-1.1.33-qff3qk4b.mjs +0 -1
  675. package/dist/chunks/effort-1.1.33-nf63b81y.mjs +0 -13
  676. package/dist/chunks/engine-1.1.33-bqcqevb5.mjs +0 -1
  677. package/dist/chunks/envLessBridgeConfig-1.1.33-1bfctzjp.mjs +0 -1
  678. package/dist/chunks/envUtils-1.1.33-1jg5pqx5.mjs +0 -1
  679. package/dist/chunks/errors-1.1.33-xdf8frps.mjs +0 -1
  680. package/dist/chunks/exampleCommands-1.1.33-br81c33d.mjs +0 -1
  681. package/dist/chunks/execFileNoThrow-1.1.33-mmyfbtpt.mjs +0 -1
  682. package/dist/chunks/exit-1.1.33-s8c549bt.mjs +0 -1
  683. package/dist/chunks/explorer-1.1.33-q2kc2yjm.mjs +0 -1
  684. package/dist/chunks/export-1.1.33-wzsrmyr9.mjs +0 -2
  685. package/dist/chunks/fast-1.1.33-hh2t95cz.mjs +0 -1
  686. package/dist/chunks/feedback-1.1.33-fhamzkxx.mjs +0 -16
  687. package/dist/chunks/git-1.1.33-nb9mf6gs.mjs +0 -1
  688. package/dist/chunks/githubModelsCredentials-1.1.33-zzecd9we.mjs +0 -1
  689. package/dist/chunks/goal-1.1.33-6ptfsbeb.mjs +0 -4
  690. package/dist/chunks/headless-1.1.33-2ks3qpn2.mjs +0 -2
  691. package/dist/chunks/heapdump-1.1.33-48a71a5d.mjs +0 -6
  692. package/dist/chunks/help-1.1.33-65k2zqsp.mjs +0 -1
  693. package/dist/chunks/hooks-1.1.33-7zb4rp07.mjs +0 -1
  694. package/dist/chunks/hooks-1.1.33-87w55gzt.mjs +0 -79
  695. package/dist/chunks/ide-1.1.33-jpbj91cb.mjs +0 -3
  696. package/dist/chunks/image-processor-napi-1.1.33-cb605b4s.mjs +0 -1
  697. package/dist/chunks/import-1.1.33-9vq41kwx.mjs +0 -261
  698. package/dist/chunks/inboundAttachments-1.1.33-pshb9f55.mjs +0 -1
  699. package/dist/chunks/index-1.1.33-0szd959f.mjs +0 -9
  700. package/dist/chunks/index-1.1.33-1cyg72cg.mjs +0 -5
  701. package/dist/chunks/index-1.1.33-20n0wyay.mjs +0 -2
  702. package/dist/chunks/index-1.1.33-37m0wr5f.mjs +0 -1
  703. package/dist/chunks/index-1.1.33-4e6weswv.mjs +0 -2
  704. package/dist/chunks/index-1.1.33-5at6jw86.mjs +0 -9
  705. package/dist/chunks/index-1.1.33-5bb2bqbt.mjs +0 -1
  706. package/dist/chunks/index-1.1.33-6r4xb4kw.mjs +0 -1
  707. package/dist/chunks/index-1.1.33-809kmg0e.mjs +0 -1
  708. package/dist/chunks/index-1.1.33-av56945n.mjs +0 -1
  709. package/dist/chunks/index-1.1.33-ayj1khn3.mjs +0 -1
  710. package/dist/chunks/index-1.1.33-d4h14a2g.mjs +0 -1
  711. package/dist/chunks/index-1.1.33-j01a41jn.mjs +0 -1
  712. package/dist/chunks/index-1.1.33-j3pffnmd.mjs +0 -30
  713. package/dist/chunks/index-1.1.33-nbb1jr6q.mjs +0 -23
  714. package/dist/chunks/index-1.1.33-pdret8nd.mjs +0 -1
  715. package/dist/chunks/index-1.1.33-px65xz19.mjs +0 -1
  716. package/dist/chunks/index-1.1.33-q02fr1yn.mjs +0 -1
  717. package/dist/chunks/index-1.1.33-qckmwfjb.mjs +0 -1
  718. package/dist/chunks/index-1.1.33-sj1fgs0b.mjs +0 -1
  719. package/dist/chunks/index-1.1.33-thfe8yxq.mjs +0 -1
  720. package/dist/chunks/index-1.1.33-vpdejaqk.mjs +0 -1
  721. package/dist/chunks/index-1.1.33-x6vn8g63.mjs +0 -1
  722. package/dist/chunks/init-1.1.33-8jzeqmrh.mjs +0 -2
  723. package/dist/chunks/initReplBridge-1.1.33-xhzad71d.mjs +0 -1
  724. package/dist/chunks/ink-1.1.33-8xkyvv5c.mjs +0 -1
  725. package/dist/chunks/insights-1.1.33-p2xfqqpr.mjs +0 -870
  726. package/dist/chunks/install-1.1.33-yddevjtj.mjs +0 -1
  727. package/dist/chunks/install-github-app-1.1.33-3wksmje2.mjs +0 -149
  728. package/dist/chunks/install-slack-app-1.1.33-mgb365bd.mjs +0 -1
  729. package/dist/chunks/interactiveHelpers-1.1.33-ac7wkzh0.mjs +0 -1
  730. package/dist/chunks/keybindings-1.1.33-pwx8bd0q.mjs +0 -2
  731. package/dist/chunks/latestVersionCache-1.1.33-fqw2q9w0.mjs +0 -1
  732. package/dist/chunks/loadAgentsDir-1.1.33-y4yydpcn.mjs +0 -1
  733. package/dist/chunks/loadPluginHooks-1.1.33-3rxrvf8b.mjs +0 -1
  734. package/dist/chunks/log-1.1.33-pqjf8wsv.mjs +0 -1
  735. package/dist/chunks/main-1.1.33-qvas86jh.mjs +0 -1
  736. package/dist/chunks/managedEnv-1.1.33-67fc5dj7.mjs +0 -1
  737. package/dist/chunks/mcp-1.1.33-88w7d35a.mjs +0 -1
  738. package/dist/chunks/mcp-1.1.33-ewqaq0ms.mjs +0 -4
  739. package/dist/chunks/mcp-1.1.33-v74knj3c.mjs +0 -17
  740. package/dist/chunks/mcpb-1.1.33-dnjbpy7e.mjs +0 -1
  741. package/dist/chunks/memory-1.1.33-9qffk96q.mjs +0 -128
  742. package/dist/chunks/model-1.1.33-h0mjh5z8.mjs +0 -1
  743. package/dist/chunks/model-1.1.33-v4vqzg9w.mjs +0 -2
  744. package/dist/chunks/node-1.1.33-jm7rqpq8.mjs +0 -1
  745. package/dist/chunks/node-1.1.33-qg258pyx.mjs +0 -15
  746. package/dist/chunks/oauth-1.1.33-423q5vp6.mjs +0 -1
  747. package/dist/chunks/openaiShim-1.1.33-dsp1wwgs.mjs +0 -14
  748. package/dist/chunks/output-style-1.1.33-ayj4863v.mjs +0 -1
  749. package/dist/chunks/package-F6O7J2XI-1.1.33-cwk2kcw8.mjs +0 -1
  750. package/dist/chunks/permissions-1.1.33-mtca1vka.mjs +0 -1
  751. package/dist/chunks/permissions-1.1.33-qk86j364.mjs +0 -3
  752. package/dist/chunks/plan-1.1.33-brttkasm.mjs +0 -1
  753. package/dist/chunks/plist-1.1.33-j08fwnf5.mjs +0 -1
  754. package/dist/chunks/plugin-1.1.33-ed5352d9.mjs +0 -29
  755. package/dist/chunks/pluginStartupCheck-1.1.33-w1dcdv7e.mjs +0 -1
  756. package/dist/chunks/plugins-1.1.33-dz0szv60.mjs +0 -9
  757. package/dist/chunks/preActionHook-1.1.33-cyss3q48.mjs +0 -2
  758. package/dist/chunks/print-1.1.33-0an9v6wm.mjs +0 -57
  759. package/dist/chunks/process-1.1.33-34nr1vvf.mjs +0 -1
  760. package/dist/chunks/processBashCommand-1.1.33-c3baefbs.mjs +0 -1
  761. package/dist/chunks/processSlashCommand-1.1.33-7z1q5tgw.mjs +0 -9
  762. package/dist/chunks/prompt-1.1.33-a9nfj0nx.mjs +0 -1
  763. package/dist/chunks/prompt-1.1.33-t1x27qfd.mjs +0 -1
  764. package/dist/chunks/prompts-1.1.33-n8cpfrn6.mjs +0 -1
  765. package/dist/chunks/provider-1.1.33-s17k8dew.mjs +0 -2
  766. package/dist/chunks/providerProfiles-1.1.33-nabanrxj.mjs +0 -1
  767. package/dist/chunks/providerValidation-1.1.33-45rfx8mk.mjs +0 -6
  768. package/dist/chunks/registerSubcommands-1.1.33-drbt7d0n.mjs +0 -26
  769. package/dist/chunks/registry-1.1.33-2rc0g3js.mjs +0 -1
  770. package/dist/chunks/release-notes-1.1.33-azfdj96s.mjs +0 -5
  771. package/dist/chunks/reload-plugins-1.1.33-22m52m4k.mjs +0 -2
  772. package/dist/chunks/remote-env-1.1.33-2zxh4gns.mjs +0 -1
  773. package/dist/chunks/remoteBridgeCore-1.1.33-tvhbeebf.mjs +0 -1
  774. package/dist/chunks/rename-1.1.33-hh0a7vzm.mjs +0 -1
  775. package/dist/chunks/replLauncher-1.1.33-17gj37pg.mjs +0 -1
  776. package/dist/chunks/resume-1.1.33-cxjpjtfg.mjs +0 -2
  777. package/dist/chunks/rewind-1.1.33-gwyc73ty.mjs +0 -1
  778. package/dist/chunks/rootOptions-1.1.33-t9mmhhea.mjs +0 -1
  779. package/dist/chunks/runWorkflowHeadless-1.1.33-9e4hd973.mjs +0 -10
  780. package/dist/chunks/sandbox-adapter-1.1.33-ydzap1ky.mjs +0 -1
  781. package/dist/chunks/sandbox-toggle-1.1.33-vch1t63t.mjs +0 -1
  782. package/dist/chunks/session-1.1.33-aepc1jdx.mjs +0 -2
  783. package/dist/chunks/sessionStorage-1.1.33-170gteyg.mjs +0 -1
  784. package/dist/chunks/settings-1.1.33-16470dd7.mjs +0 -1
  785. package/dist/chunks/setup-1.1.33-nbfqv6x2.mjs +0 -12
  786. package/dist/chunks/sinks-1.1.33-8qav4btz.mjs +0 -1
  787. package/dist/chunks/skills-1.1.33-srydghps.mjs +0 -1
  788. package/dist/chunks/startupProfiler-1.1.33-a97fyetk.mjs +0 -1
  789. package/dist/chunks/startupUpdateCheck-1.1.33-n5x93kr9.mjs +0 -1
  790. package/dist/chunks/state-1.1.33-yr57kw5b.mjs +0 -1
  791. package/dist/chunks/stats-1.1.33-py9web9f.mjs +0 -1
  792. package/dist/chunks/status-1.1.33-rstx4c0p.mjs +0 -1
  793. package/dist/chunks/stickers-1.1.33-bag4g2g6.mjs +0 -1
  794. package/dist/chunks/subprocessEnv-1.1.33-k219nhcm.mjs +0 -1
  795. package/dist/chunks/tasks-1.1.33-170ayzks.mjs +0 -1
  796. package/dist/chunks/teamHelpers-1.1.33-d0etezah.mjs +0 -1
  797. package/dist/chunks/teammateModeSnapshot-1.1.33-wwj36vt2.mjs +0 -1
  798. package/dist/chunks/teleport-1.1.33-zvzb36mc.mjs +0 -1
  799. package/dist/chunks/terminalSetup-1.1.33-6btb4bdr.mjs +0 -1
  800. package/dist/chunks/theme-1.1.33-ht9yrvwn.mjs +0 -1
  801. package/dist/chunks/thinkback-1.1.33-kvaqf5ep.mjs +0 -1
  802. package/dist/chunks/thinkback-play-1.1.33-dfqez4t9.mjs +0 -1
  803. package/dist/chunks/toolPool-1.1.33-fsqgv07g.mjs +0 -1
  804. package/dist/chunks/toolSearch-1.1.33-g3ha7h5f.mjs +0 -1
  805. package/dist/chunks/tools-1.1.33-6qn3rfzr.mjs +0 -1
  806. package/dist/chunks/trustedDevice-1.1.33-f5feh965.mjs +0 -1
  807. package/dist/chunks/turndown.cjs-1.1.33-km66apwr.mjs +0 -69
  808. package/dist/chunks/types-1.1.33-bc49bs3y.mjs +0 -1
  809. package/dist/chunks/ultrareviewCommand-1.1.33-byqccwrh.mjs +0 -4
  810. package/dist/chunks/update-1.1.33-hz986n0w.mjs +0 -72
  811. package/dist/chunks/upload-1.1.33-cc27f6xm.mjs +0 -7
  812. package/dist/chunks/upstreamproxy-1.1.33-k5haaaqa.mjs +0 -14
  813. package/dist/chunks/usage-1.1.33-jspq6593.mjs +0 -1
  814. package/dist/chunks/util-1.1.33-8w7wsk2x.mjs +0 -1
  815. package/dist/chunks/utils-1.1.33-613tmzqb.mjs +0 -1
  816. package/dist/chunks/vim-1.1.33-gamhf412.mjs +0 -1
  817. package/dist/chunks/watchLoop-1.1.33-w4q3ncxj.mjs +0 -13
  818. package/dist/chunks/wiki-1.1.33-qgzy0eh8.mjs +0 -132
  819. package/dist/chunks/workflows-1.1.33-82kzthpb.mjs +0 -1
  820. package/dist/chunks/worktree-1.1.33-7n8nkfht.mjs +0 -1
  821. package/dist/chunks/worktreeModeEnabled-1.1.33-qq22bj1e.mjs +0 -1
  822. package/dist/chunks/wrapper-1.1.33-qgpy796k.mjs +0 -7
  823. /package/dist/chunks/{cli-1.1.33-kx980gfw.mjs → cli-1.1.34-0f5qa0q0.mjs} +0 -0
  824. /package/dist/chunks/{cli-1.1.33-5ff9vmz9.mjs → cli-1.1.34-1426jsf4.mjs} +0 -0
  825. /package/dist/chunks/{cli-1.1.33-xyh0vcv7.mjs → cli-1.1.34-6ndxsqp1.mjs} +0 -0
  826. /package/dist/chunks/{cli-1.1.33-f0vf76a6.mjs → cli-1.1.34-gmaedxb1.mjs} +0 -0
  827. /package/dist/chunks/{cli-1.1.33-1mfasbf1.mjs → cli-1.1.34-h9h6119y.mjs} +0 -0
@@ -0,0 +1,2 @@
1
+ import{Iqa as B}from"./cli-1.1.34-4x915j9t.mjs";function D(g,q){switch(q.type){case"set_local_jsx":{if(q.generation<g.generation)return g;return{state:{...q.payload,isLocalJSXCommand:!0},generation:g.generation+1,hasLocalJSXActive:!0}}case"clear_local_jsx":return{state:null,generation:g.generation+1,hasLocalJSXActive:!1};case"set_regular":{if(g.hasLocalJSXActive)return g;return{...g,state:q.payload}}case"set_null":{if(g.hasLocalJSXActive)return g;if(g.state===null)return g;return{...g,state:null}}}}var C;var F=B(()=>{C={state:null,generation:0,hasLocalJSXActive:!1}});function K(g){return z=g,()=>{if(z===g)z=null}}function L(g){let q=D(w,g);if(q===w)return;w=q,z?.(q.state)}function M(){return w.generation}var w,z=null;var G=B(()=>{F();w=C});
2
+ export{K as Ui,L as Vi,M as Wi,G as Xi};
@@ -0,0 +1,2 @@
1
+ import{VG as U,WG as w}from"./cli-1.1.34-84707tma.mjs";import{IX as N,KX as O,pY as k,wW as f}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as M,U1 as H,V1 as R}from"./cli-1.1.34-8vfey6b5.mjs";import{Eqa as Y,Iqa as Z}from"./cli-1.1.34-4x915j9t.mjs";function _(X){let q=V.c(10),{message:I,bold:P,dimColor:Q,subtitle:D}=X,J=P===void 0?!1:P,K=Q===void 0?!1:Q,E;if(q[0]===Symbol.for("react.memo_cache_sentinel"))E=M(U,{}),q[0]=E;else E=q[0];let v;if(q[1]!==J||q[2]!==K||q[3]!==I)v=H(N,{flexDirection:"row",children:[E,H(O,{bold:J,dimColor:K,children:[" ",I]})]}),q[1]=J,q[2]=K,q[3]=I,q[4]=v;else v=q[4];let z;if(q[5]!==D)z=D&&M(O,{dimColor:!0,children:D}),q[5]=D,q[6]=z;else z=q[6];let G;if(q[7]!==v||q[8]!==z)G=H(N,{flexDirection:"column",children:[v,z]}),q[7]=v,q[8]=z,q[9]=G;else G=q[9];return G}var V;var A=Z(()=>{k();w();R();V=Y(f(),1)});
2
+ export{_ as Lg,A as Mg};
@@ -0,0 +1,5 @@
1
+ import{wja as XX,zja as P8}from"./cli-1.1.34-fm4a40ta.mjs";import{Rja as r,Xja as C8}from"./cli-1.1.34-d0sgyvr1.mjs";import{_ja as QX,bka as NJ,jka as T8}from"./cli-1.1.34-ev8ffgr9.mjs";import{$la as O,Ala as LQ,Dla as pQ,Ela as T6,Hla as l,Ila as wQ,Jla as w,Kla as kQ,Nla as yJ,Ola as _X,Pla as h,Qla as vJ,Rka as JX,Rla as tJ,Sla as jX,Tla as hJ,Ula as SX,Vla as y,Wla as OJ,Xla as gQ,Yla as P6,ama as GJ,dla as dQ,ela as w6,jla as HJ,kla as iX,nla as eJ,ola as hX,pla as fQ,qla as k6,rla as $Q,sla as bX,upa as k8,vla as JQ,wla as dX,xla as g,yla as oJ,zla as n}from"./cli-1.1.34-qef4zhc3.mjs";import{Bpa as cJ,Cpa as kX,Dpa as qJ,Epa as tX,Hpa as L,Ipa as XJ,Npa as LJ,Opa as EX,Tpa as x,Upa as FJ,vpa as SJ,wpa as IX}from"./cli-1.1.34-n5t6xk0e.mjs";import{Hqa as uJ,Iqa as U,Kqa as N,Lqa as W}from"./cli-1.1.34-4x915j9t.mjs";function zJ({writeFn:J,flushIntervalMs:Q=1000,maxBufferSize:X=100,maxBufferBytes:$=1/0,immediateMode:Y=!1}){let Z=[],H=0,q=null,G=null;function B(){if(q)clearTimeout(q),q=null}function I(){if(G)J(G.join("")),G=null;if(Z.length===0)return;J(Z.join("")),Z=[],H=0,B()}function M(){if(!q)q=setTimeout(I,Q)}function V(){if(G){G.push(...Z),Z=[],H=0,B();return}let F=Z;Z=[],H=0,B(),G=F,setImmediate(()=>{let v=G;if(G=null,v)J(v.join(""))})}return{write(F){if(Y){J(F);return}if(Z.push(F),H+=F.length,M(),Z.length>=X||H>=$)V()},flush:I,dispose(){I()}}}var IJ=()=>{};function BJ(J){return t.add(J),()=>t.delete(J)}async function n8(){await Promise.all(Array.from(t).map((J)=>J()))}var t;var CJ=U(()=>{t=new Set});function UX(J){let Q=[],X=J.match(/^MCP server ["']([^"']+)["']/);if(X&&X[1])Q.push("mcp"),Q.push(X[1].toLowerCase());else{let Z=J.match(/^([^:[]+):/);if(Z&&Z[1])Q.push(Z[1].trim().toLowerCase())}let $=J.match(/^\[([^\]]+)]/);if($&&$[1])Q.push($[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))Q.push("1p");let Y=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Y&&Y[1]){let Z=Y[1].trim().toLowerCase();if(Z.length<30&&!Z.includes(" "))Q.push(Z)}return Array.from(new Set(Q))}function NX(J,Q){if(!Q)return!0;if(J.length===0)return!1;if(Q.isExclusive)return!J.some((X)=>Q.exclude.includes(X));else return J.some((X)=>Q.include.includes(X))}function xJ(J,Q){if(!Q)return!0;let X=UX(J);return NX(X,Q)}var VJ;var DJ=U(()=>{FJ();VJ=x((J)=>{if(!J||J.trim()==="")return null;let Q=J.split(",").map((Z)=>Z.trim()).filter(Boolean);if(Q.length===0)return null;let X=Q.some((Z)=>Z.startsWith("!")),$=Q.some((Z)=>!Z.startsWith("!"));if(X&&$)return null;let Y=Q.map((Z)=>Z.replace(/^!/,"").toLowerCase());return{include:X?[]:Y,exclude:X?Y:[],isExclusive:X}})});function WX(J,Q){var X=-1,$=J==null?0:J.length;while(++X<$)if(Q(J[X],X,J)===!1)break;return J}var RJ;var AJ=U(()=>{RJ=WX});var MX,e;var _J=U(()=>{EX();MX=function(){try{var J=LJ(Object,"defineProperty");return J({},"",{}),J}catch(Q){}}(),e=MX});function zX(J,Q,X){if(Q=="__proto__"&&e)e(J,Q,{configurable:!0,enumerable:!0,value:X,writable:!0});else J[Q]=X}var m;var JJ=U(()=>{_J();m=zX});function FX(J,Q,X){var $=J[Q];if(!(CX.call(J,Q)&&SJ($,X))||X===void 0&&!(Q in J))m(J,Q,X)}var BX,CX,j;var QJ=U(()=>{JJ();IX();BX=Object.prototype,CX=BX.hasOwnProperty;j=FX});function VX(J,Q,X,$){var Y=!X;X||(X={});var Z=-1,H=Q.length;while(++Z<H){var q=Q[Z],G=$?$(X[q],J[q],q,X,J):void 0;if(G===void 0)G=J[q];if(Y)m(X,q,G);else j(X,q,G)}return X}var R;var k=U(()=>{QJ();JJ();R=VX});function xX(J,Q){return J&&R(Q,y(Q),J)}var wJ;var kJ=U(()=>{k();OJ();wJ=xX});function DX(J){var Q=[];if(J!=null)for(var X in Object(J))Q.push(X);return Q}var TJ;var PJ=U(()=>{TJ=DX});function LX(J){if(!L(J))return TJ(J);var Q=h(J),X=[];for(var $ in J)if(!($=="constructor"&&(Q||!AX.call(J,$))))X.push($);return X}var RX,AX,mJ;var jJ=U(()=>{XJ();vJ();PJ();RX=Object.prototype,AX=RX.hasOwnProperty;mJ=LX});function OX(J){return hJ(J)?yJ(J,!0):mJ(J)}var _;var d=U(()=>{_X();jJ();SX();_=OX});function wX(J,Q){return J&&R(Q,_(Q),J)}var dJ;var fJ=U(()=>{k();d();dJ=wX});var p={};uJ(p,{default:()=>$J});function PX(J,Q){if(Q)return J.slice();var X=J.length,$=bJ?bJ(X):new J.constructor(X);return J.copy($),$}var nJ,pJ,TX,gJ,bJ,$J;var lJ=U(()=>{kX();nJ=typeof p=="object"&&p&&!p.nodeType&&p,pJ=nJ&&typeof f=="object"&&f&&!f.nodeType&&f,TX=pJ&&pJ.exports===nJ,gJ=TX?cJ.Buffer:void 0,bJ=gJ?gJ.allocUnsafe:void 0;$J=PX});function vX(J,Q){var X=-1,$=J.length;Q||(Q=Array($));while(++X<$)Q[X]=J[X];return Q}var iJ;var rJ=U(()=>{iJ=vX});function mX(J,Q){return R(J,g(J),Q)}var sJ;var aJ=U(()=>{k();oJ();sJ=mX});var yX,b;var ZJ=U(()=>{jX();yX=tJ(Object.getPrototypeOf,Object),b=yX});var fX,pX,u;var YJ=U(()=>{hX();ZJ();oJ();dX();fX=Object.getOwnPropertySymbols,pX=!fX?JQ:function(J){var Q=[];while(J)eJ(Q,g(J)),J=b(J);return Q},u=pX});function gX(J,Q){return R(J,u(J),Q)}var QQ;var XQ=U(()=>{k();YJ();QQ=gX});function uX(J){return $Q(J,_,u)}var ZQ;var YQ=U(()=>{bX();YJ();d();ZQ=uX});function lX(J){var Q=J.length,X=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&nX.call(J,"index"))X.index=J.index,X.input=J.input;return X}var cX,nX,HQ;var qQ=U(()=>{cX=Object.prototype,nX=cX.hasOwnProperty;HQ=lX});function rX(J){var Q=new J.constructor(J.byteLength);return new HJ(Q).set(new HJ(J)),Q}var S;var c=U(()=>{iX();S=rX});function oX(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.byteLength)}var GQ;var KQ=U(()=>{c();GQ=oX});function aX(J){var Q=new J.constructor(J.source,sX.exec(J));return Q.lastIndex=J.lastIndex,Q}var sX,UQ;var NQ=U(()=>{sX=/\w*$/;UQ=aX});function eX(J){return EQ?Object(EQ.call(J)):{}}var WQ,EQ,MQ;var zQ=U(()=>{tX();WQ=qJ?qJ.prototype:void 0,EQ=WQ?WQ.valueOf:void 0;MQ=eX});function J6(J,Q){var X=Q?S(J.buffer):J.buffer;return new J.constructor(X,J.byteOffset,J.length)}var IQ;var BQ=U(()=>{c();IQ=J6});function V6(J,Q,X){var $=J.constructor;switch(Q){case K6:return S(J);case Q6:case X6:return new $(+J);case U6:return GQ(J,X);case N6:case W6:case E6:case M6:case z6:case I6:case B6:case C6:case F6:return IQ(J,X);case $6:return new $;case Z6:case q6:return new $(J);case Y6:return UQ(J);case H6:return new $;case G6:return MQ(J)}}var Q6="[object Boolean]",X6="[object Date]",$6="[object Map]",Z6="[object Number]",Y6="[object RegExp]",H6="[object Set]",q6="[object String]",G6="[object Symbol]",K6="[object ArrayBuffer]",U6="[object DataView]",N6="[object Float32Array]",W6="[object Float64Array]",E6="[object Int8Array]",M6="[object Int16Array]",z6="[object Int32Array]",I6="[object Uint8Array]",B6="[object Uint8ClampedArray]",C6="[object Uint16Array]",F6="[object Uint32Array]",CQ;var FQ=U(()=>{c();KQ();NQ();zQ();BQ();CQ=V6});var VQ,x6,xQ;var DQ=U(()=>{XJ();VQ=Object.create,x6=function(){function J(){}return function(Q){if(!L(Q))return{};if(VQ)return VQ(Q);J.prototype=Q;var X=new J;return J.prototype=void 0,X}}(),xQ=x6});function D6(J){return typeof J.constructor=="function"&&!h(J)?xQ(b(J)):{}}var RQ;var AQ=U(()=>{DQ();ZJ();vJ();RQ=D6});function A6(J){return n(J)&&O(J)==R6}var R6="[object Map]",_Q;var SQ=U(()=>{GJ();LQ();_Q=A6});var OQ,L6,TQ;var PQ=U(()=>{SQ();wQ();kQ();OQ=w&&w.isMap,L6=OQ?l(OQ):_Q,TQ=L6});function S6(J){return n(J)&&O(J)==_6}var _6="[object Set]",vQ;var mQ=U(()=>{GJ();LQ();vQ=S6});var jQ,O6,yQ;var hQ=U(()=>{mQ();wQ();kQ();jQ=w&&w.isSet,O6=jQ?l(jQ):vQ,yQ=O6});function i(J,Q,X,$,Y,Z){var H,q=Q&v6,G=Q&m6,B=Q&j6;if(X)H=Y?X(J,$,Y,Z):X(J);if(H!==void 0)return H;if(!L(J))return J;var I=fQ(J);if(I){if(H=HQ(J),!q)return iJ(J,H)}else{var M=O(J),V=M==uQ||M==p6;if(pQ(J))return $J(J,q);if(M==cQ||M==bQ||V&&!Y){if(H=G||V?{}:RQ(J),!q)return G?QQ(J,dJ(H,J)):sJ(J,wJ(H,J))}else{if(!z[M])return Y?J:{};H=CQ(J,M,q)}}Z||(Z=new dQ);var F=Z.get(J);if(F)return F;if(Z.set(J,H),yQ(J))J.forEach(function(D){H.add(i(D,Q,X,D,J,Z))});else if(TQ(J))J.forEach(function(D,A){H.set(A,i(D,Q,X,A,J,Z))});var v=B?G?ZQ:gQ:G?_:y,MJ=I?void 0:v(J);return RJ(MJ||J,function(D,A){if(MJ)A=D,D=J[A];j(H,A,i(D,Q,X,A,J,Z))}),H}var v6=1,m6=2,j6=4,bQ="[object Arguments]",y6="[object Array]",h6="[object Boolean]",d6="[object Date]",f6="[object Error]",uQ="[object Function]",p6="[object GeneratorFunction]",g6="[object Map]",b6="[object Number]",cQ="[object Object]",u6="[object RegExp]",c6="[object Set]",n6="[object String]",l6="[object Symbol]",i6="[object WeakMap]",r6="[object ArrayBuffer]",o6="[object DataView]",s6="[object Float32Array]",a6="[object Float64Array]",t6="[object Int8Array]",e6="[object Int16Array]",J8="[object Int32Array]",Q8="[object Uint8Array]",X8="[object Uint8ClampedArray]",$8="[object Uint16Array]",Z8="[object Uint32Array]",z,nQ;var lQ=U(()=>{w6();AJ();QJ();kJ();fJ();lJ();rJ();aJ();XQ();P6();YQ();GJ();qQ();FQ();AQ();k6();T6();PQ();XJ();hQ();OJ();d();z={};z[bQ]=z[y6]=z[r6]=z[o6]=z[h6]=z[d6]=z[s6]=z[a6]=z[t6]=z[e6]=z[J8]=z[g6]=z[b6]=z[cQ]=z[u6]=z[c6]=z[n6]=z[l6]=z[Q8]=z[X8]=z[$8]=z[Z8]=!0;z[f6]=z[uQ]=z[i6]=!1;nQ=i});function q8(J){return nQ(J,Y8|H8)}var Y8=1,H8=4,iQ;var rQ=U(()=>{lQ();iQ=q8});var B8={};uJ(B8,{writeFileSync_DEPRECATED:()=>I8,slowLogging:()=>E,jsonStringify:()=>KJ,jsonParse:()=>E8,cloneDeep:()=>z8,clone:()=>M8});import{closeSync as G8,writeFileSync as oQ,fsyncSync as K8,openSync as U8}from"fs";function W8(){return N8}function KJ(J,Q,X){let Y=[];try{const $=N(Y,E`JSON.stringify(${J})`,0);return JSON.stringify(J,Q,X)}catch(Z){var H=Z,q=1}finally{W(Y,H,q)}}function M8(J,Q){let $=[];try{const X=N($,E`structuredClone(${J})`,0);return structuredClone(J,Q)}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}}function z8(J){let X=[];try{const Q=N(X,E`cloneDeep(${J})`,0);return iQ(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}}function I8(J,Q,X){let Z=[];try{const $=N(Z,E`fs.writeFileSync(${J}, ${Q})`,0);let Y=X!==null&&typeof X==="object"&&"flush"in X&&X.flush===!0;if(Y){let B=typeof X==="object"&&"encoding"in X?X.encoding:void 0,I=typeof X==="object"&&"mode"in X?X.mode:void 0,M;try{M=U8(J,"w",I),oQ(M,Q,{encoding:B??void 0}),K8(M)}finally{if(M!==void 0)G8(M)}}else oQ(J,Q,X)}catch(H){var q=H,G=1}finally{W(Z,q,G)}}var N8,E,E8=(J,Q)=>{let $=[];try{const X=N($,E`JSON.parse(${J})`,0);return typeof Q>"u"?JSON.parse(J):JSON.parse(J,Q)}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}};var UJ=U(()=>{rQ();N8={[Symbol.dispose](){}};E=W8});import*as K from"fs";import{mkdir as F8,open as o,readdir as V8,readFile as sQ,copyFile as x8,rename as D8,rmdir as R8,rm as A8,stat as L8,unlink as _8}from"fs/promises";import{homedir as aQ}from"os";import*as C from"path";function tQ(J,Q){if(Q.startsWith("//")||Q.startsWith("\\\\"))return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};try{let X=J.lstatSync(Q);if(X.isFIFO()||X.isSocket()||X.isCharacterDevice()||X.isBlockDevice())return{resolvedPath:Q,isSymlink:!1,isCanonical:!1};let $=J.realpathSync(Q);return{resolvedPath:$,isSymlink:$!==Q,isCanonical:!0}}catch(X){return{resolvedPath:Q,isSymlink:!1,isCanonical:!1}}}function Q1(J,Q,X){let{resolvedPath:$}=tQ(J,Q);if(X.has($))return!0;return X.add($),!1}function S8(J,Q){let X=Q,$=[];while(X!==C.dirname(X)){let Y;try{Y=J.lstatSync(X)}catch{$.unshift(C.basename(X)),X=C.dirname(X);continue}if(Y.isSymbolicLink())try{let Z=J.realpathSync(X);return $.length===0?Z:C.join(Z,...$)}catch{let Z=J.readlinkSync(X),H=C.isAbsolute(Z)?Z:C.resolve(C.dirname(X),Z);return $.length===0?H:C.join(H,...$)}try{let Z=J.realpathSync(X);if(Z!==X)return $.length===0?Z:C.join(Z,...$)}catch{}return}return}function X1(J){let Q=J;if(Q==="~")Q=aQ().normalize("NFC");else if(Q.startsWith("~/"))Q=C.join(aQ().normalize("NFC"),Q.slice(2));let X=new Set,$=s();if(X.add(Q),Q.startsWith("//")||Q.startsWith("\\\\"))return Array.from(X);try{let H=Q,q=new Set,G=40;for(let B=0;B<G;B++){if(q.has(H))break;if(q.add(H),!$.existsSync(H)){if(H===Q){let F=S8($,Q);if(F!==void 0)X.add(F)}break}let I=$.lstatSync(H);if(I.isFIFO()||I.isSocket()||I.isCharacterDevice()||I.isBlockDevice())break;if(!I.isSymbolicLink())break;let M=$.readlinkSync(H),V=C.isAbsolute(M)?M:C.resolve(C.dirname(H),M);X.add(V),H=V}}catch{}let{resolvedPath:Y,isSymlink:Z}=tQ($,Q);if(Z&&Y!==Q)X.add(Y);return Array.from(X)}function s(){return w8}async function $1(J,Q,X){let G=[];try{const $=N(G,await o(J,"r"),1);let Y=(await $.stat()).size;if(Y<=Q)return null;let Z=Math.min(Y-Q,X);let H=Buffer.allocUnsafe(Z);let q=0;while(q<Z){let{bytesRead:F}=await $.read(H,q,Z-q,Q+q);if(F===0)break;q+=F}return{content:H.toString("utf8",0,q),bytesRead:q,bytesTotal:Y}}catch(B){var I=B,M=1}finally{var V=W(G,I,M);V&&await V}}async function Z1(J,Q){let G=[];try{const X=N(G,await o(J,"r"),1);let $=(await X.stat()).size;if($===0)return{content:"",bytesRead:0,bytesTotal:0};let Y=Math.max(0,$-Q);let Z=$-Y;let H=Buffer.allocUnsafe(Z);let q=0;while(q<Z){let{bytesRead:F}=await X.read(H,q,Z-q,Y+q);if(F===0)break;q+=F}return{content:H.toString("utf8",0,q),bytesRead:q,bytesTotal:$}}catch(B){var I=B,M=1}finally{var V=W(G,I,M);V&&await V}}async function*Y1(J){let X=await o(J,"r");try{let Y=(await X.stat()).size,Z=Buffer.alloc(0),H=Buffer.alloc(4096);while(Y>0){let q=Math.min(4096,Y);Y-=q,await X.read(H,0,q,Y);let G=Buffer.concat([H.subarray(0,q),Z]),B=G.indexOf(10);if(B===-1){Z=G;continue}Z=Buffer.from(G.subarray(0,B));let I=G.toString("utf8",B+1).split(`
2
+ `);for(let M=I.length-1;M>=0;M--){let V=I[M];if(V)yield V}}if(Z.length>0)yield Z.toString("utf8")}finally{await X.close()}}var O8,w8;var eQ=U(()=>{C8();UJ();O8={cwd(){return process.cwd()},existsSync(J){let X=[];try{const Q=N(X,E`fs.existsSync(${J})`,0);return K.existsSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},async stat(J){return L8(J)},async readdir(J){return V8(J,{withFileTypes:!0})},async unlink(J){return _8(J)},async rmdir(J){return R8(J)},async rm(J,Q){return A8(J,Q)},async mkdir(J,Q){try{await F8(J,{recursive:!0,...Q})}catch(X){if(r(X)!=="EEXIST")throw X}},async readFile(J,Q){return sQ(J,{encoding:Q.encoding})},async rename(J,Q){return D8(J,Q)},async copyFile(J,Q){let $=[];try{const X=N($,E`fs.copyFile(${J} → ${Q})`,0);return x8(J,Q)}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}},statSync(J){let X=[];try{const Q=N(X,E`fs.statSync(${J})`,0);return K.statSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},lstatSync(J){let X=[];try{const Q=N(X,E`fs.lstatSync(${J})`,0);return K.lstatSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readFileSync(J,Q){let $=[];try{const X=N($,E`fs.readFileSync(${J})`,0);return K.readFileSync(J,{encoding:Q.encoding})}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}},readFileBytesSync(J){let X=[];try{const Q=N(X,E`fs.readFileBytesSync(${J})`,0);return K.readFileSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readSync(J,Q){let Y=[];try{const X=N(Y,E`fs.readSync(${J}, ${Q.length} bytes)`,0);let $=void 0;try{$=K.openSync(J,"r");let G=Buffer.alloc(Q.length),B=K.readSync($,G,0,Q.length,0);return{buffer:G,bytesRead:B}}finally{if($)K.closeSync($)}}catch(Z){var H=Z,q=1}finally{W(Y,H,q)}},appendFileSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.appendFileSync(${J}, ${Q.length} chars)`,0);if(X?.mode!==void 0)try{let G=K.openSync(J,"ax",X.mode);try{K.appendFileSync(G,Q)}finally{K.closeSync(G)}return}catch(G){if(r(G)!=="EEXIST")throw G}K.appendFileSync(J,Q)}catch(Z){var H=Z,q=1}finally{W(Y,H,q)}},copyFileSync(J,Q){let $=[];try{const X=N($,E`fs.copyFileSync(${J} → ${Q})`,0);K.copyFileSync(J,Q)}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}},unlinkSync(J){let X=[];try{const Q=N(X,E`fs.unlinkSync(${J})`,0);K.unlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},renameSync(J,Q){let $=[];try{const X=N($,E`fs.renameSync(${J} → ${Q})`,0);K.renameSync(J,Q)}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}},linkSync(J,Q){let $=[];try{const X=N($,E`fs.linkSync(${J} → ${Q})`,0);K.linkSync(J,Q)}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}},symlinkSync(J,Q,X){let Y=[];try{const $=N(Y,E`fs.symlinkSync(${J} → ${Q})`,0);K.symlinkSync(J,Q,X)}catch(Z){var H=Z,q=1}finally{W(Y,H,q)}},readlinkSync(J){let X=[];try{const Q=N(X,E`fs.readlinkSync(${J})`,0);return K.readlinkSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},realpathSync(J){let X=[];try{const Q=N(X,E`fs.realpathSync(${J})`,0);return K.realpathSync(J).normalize("NFC")}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},mkdirSync(J,Q){let Y=[];try{const X=N(Y,E`fs.mkdirSync(${J})`,0);let $={recursive:!0};if(Q?.mode!==void 0)$.mode=Q.mode;try{K.mkdirSync(J,$)}catch(G){if(r(G)!=="EEXIST")throw G}}catch(Z){var H=Z,q=1}finally{W(Y,H,q)}},readdirSync(J){let X=[];try{const Q=N(X,E`fs.readdirSync(${J})`,0);return K.readdirSync(J,{withFileTypes:!0})}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},readdirStringSync(J){let X=[];try{const Q=N(X,E`fs.readdirStringSync(${J})`,0);return K.readdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},isDirEmptySync(J){let $=[];try{const Q=N($,E`fs.isDirEmptySync(${J})`,0);let X=this.readdirSync(J);return X.length===0}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}},rmdirSync(J){let X=[];try{const Q=N(X,E`fs.rmdirSync(${J})`,0);K.rmdirSync(J)}catch($){var Y=$,Z=1}finally{W(X,Y,Z)}},rmSync(J,Q){let $=[];try{const X=N($,E`fs.rmSync(${J})`,0);K.rmSync(J,Q)}catch(Y){var Z=Y,H=1}finally{W($,Z,H)}},createWriteStream(J){return K.createWriteStream(J)},async readFileBytes(J,Q){if(Q===void 0)return sQ(J);let X=await o(J,"r");try{let{size:$}=await X.stat(),Y=Math.min($,Q),Z=Buffer.allocUnsafe(Y),H=0;while(H<Y){let{bytesRead:q}=await X.read(Z,H,Y-H,H);if(q===0)break;H+=q}return H<Y?Z.subarray(0,H):Z}finally{await X.close()}}},w8=O8});import{appendFile as v8,mkdir as m8,symlink as j8,unlink as y8}from"fs/promises";import{dirname as $X,join as ZX}from"path";function F1(){let J=P();return YX=!0,P.cache.clear?.(),J}function f8(J){if(!P())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let Q=d8();return xJ(J,Q)}function V1(J){EJ=J}function x1(){return EJ}async function p8(J,Q,X,$){if(J)await m8(Q,{recursive:!0}).catch(()=>{});await v8(X,$),KX()}function g8(){}function b8(){if(!T){let J=null;T=zJ({writeFn:(Q)=>{let X=GX(),$=$X(X),Y=J!==$;if(J=$,P()){if(Y)try{s().mkdirSync($)}catch{}s().appendFileSync(X,Q),KX();return}a=a.then(p8.bind(null,Y,$,X,Q)).catch(g8)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:P()}),BJ(async()=>{T?.dispose(),await a})}return T}async function D1(){T?.flush(),await a}function R1(J,{level:Q}={level:"debug"}){if(WJ[Q]<WJ[h8()])return;if(!f8(J))return;if(EJ&&J.includes(`
3
+ `))J=KJ(J);let $=`${new Date().toISOString()} [${Q.toUpperCase()}] ${J.trim()}
4
+ `;if(HX()){XX($);return}b8().write($)}function GX(){return qX()??process.env.CLAUDIN_DEBUG_LOGS_DIR??ZX(QX(),"debug",`${JX()}.txt`)}function A1(J,Q){}var WJ,h8,YX=!1,P,d8,HX,qX,EJ=!1,T=null,a,KX;var u8=U(()=>{FJ();k8();IJ();CJ();DJ();T8();eQ();P8();UJ();WJ={verbose:0,debug:1,info:2,warn:3,error:4},h8=x(()=>{let J=process.env.CLAUDIN_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(WJ,J))return J;return"debug"}),P=x(()=>{return YX||NJ(process.env.DEBUG)||NJ(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||HX()||process.argv.some((J)=>J.startsWith("--debug="))||qX()!==null});d8=x(()=>{let J=process.argv.find((X)=>X.startsWith("--debug="));if(!J)return null;let Q=J.substring(8);return VJ(Q)}),HX=x(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-D")}),qX=x(()=>{for(let J=0;J<process.argv.length;J++){let Q=process.argv[J];if(Q.startsWith("--debug-file="))return Q.substring(13);if(Q==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});a=Promise.resolve();KX=x(async()=>{try{let J=GX(),Q=$X(J),X=ZX(Q,"latest");await y8(X).catch(()=>{}),await j8(J,X)}catch{}})});
5
+ export{zJ as ria,IJ as sia,BJ as tia,n8 as uia,CJ as via,e as wia,_J as xia,m as yia,JJ as zia,j as Aia,QJ as Bia,R as Cia,k as Dia,_ as Eia,d as Fia,$J as Gia,lJ as Hia,iJ as Iia,rJ as Jia,b as Kia,ZJ as Lia,ZQ as Mia,YQ as Nia,IQ as Oia,BQ as Pia,RQ as Qia,AQ as Ria,nQ as Sia,lQ as Tia,E as Uia,KJ as Via,E8 as Wia,M8 as Xia,I8 as Yia,B8 as Zia,UJ as _ia,tQ as $ia,Q1 as aja,X1 as bja,s as cja,$1 as dja,Z1 as eja,Y1 as fja,eQ as gja,h8 as hja,P as ija,F1 as jja,d8 as kja,HX as lja,qX as mja,V1 as nja,x1 as oja,D1 as pja,R1 as qja,GX as rja,A1 as sja,u8 as tja};
@@ -0,0 +1,25 @@
1
+ import{BQ as yq,CJ as Jq,DJ as Qq,HJ as Oq,LJ as Vq,Lq as a,Rq as s,Xq as Kq,ZJ as Pq,bl as r,dl as vq,eK as Yq,fy as t,gK as Uq,gy as Wq,lJ as S,mJ as R,nJ as hq,qJ as p,rJ as k,sJ as Bq,tA as e,tJ as Gq,uJ as I,vA as Hq,vJ as b,vQ as Zq,wC as qq,xC as Nq,xE as zq,yE as Xq}from"./cli-1.1.34-84707tma.mjs";import{nga as w,sga as Fq}from"./cli-1.1.34-wwjkncsv.mjs";import{Eha as o,Gha as Lq}from"./cli-1.1.34-0t1h2v5v.mjs";import{Jja as y,Xja as jq}from"./cli-1.1.34-d0sgyvr1.mjs";import{Iqa as M}from"./cli-1.1.34-4x915j9t.mjs";function x(B,z){let G=m[z]??1,Y=B!==void 0?m[B]:void 0;if(Y===void 0)return z;return Y<=G?B:z}var m;var g=M(()=>{m={plan:0,default:1,acceptEdits:2,bypassPermissions:3}});function C(B,z){if(B.length<=z)return B;return`${B.slice(0,z)}
2
+ …[truncated ${B.length-z} chars]`}function u(B,z,G,Y){let V=[];if(V.push(`You are a worker agent in the "${B.name}" workflow, phase "${Y.name}".`),B.instructions.trim())V.push(`Workflow instructions:
3
+ ${B.instructions.trim()}`);if(V.push(`Task:
4
+ ${z}`),G.trim())V.push(`Work so far (accumulated artifact from earlier phases):
5
+ ${C(G.trim(),$q)}`);return V.push("Do your part of this phase and report your findings/output. Another agent (the orchestrator) will synthesize the phase and decide what happens next — you do not decide the flow."),V.join(`
6
+
7
+ `)}function c(B,z){let G=[];if(G.push(`You are the orchestrator (main) of the "${z.name}" workflow. You control the flow.`),z.instructions.trim())G.push(`Workflow instructions:
8
+ ${z.instructions.trim()}`);G.push(`Task:
9
+ ${B.task}`);let Y=z.steps.findIndex((Q)=>Q.name===B.currentStep),V=z.steps.map((Q,J)=>{let j=J<Y?"[done]":J===Y?"[current]":"[pending]",W=I(Q)?" (terminal)":"";return` ${J+1}. ${Q.name} ${j}${W}`}).join(`
10
+ `);if(G.push(`Phases:
11
+ ${V}`),B.history.length>0){let Q=B.history.map((J)=>{let j=J.agents.map((q)=>{let L=q.failed?" (FAILED)":"";return` • ${q.label}${L}:
12
+ ${C(q.output,f).split(`
13
+ `).map((H)=>` ${H}`).join(`
14
+ `)}`}).join(`
15
+ `),W=J.decision?` decision: ${J.decision.decision}${J.decision.target?` → ${J.decision.target}`:""} — ${J.decision.notes}`:" decision: (pending — this is the phase you are deciding now)";return` Phase "${J.step}":
16
+ ${j}
17
+ ${J.synthesis?` synthesis: ${C(J.synthesis,f)}
18
+ `:""}${W}`}).join(`
19
+
20
+ `);G.push(`History (all phases so far):
21
+ ${Q}`)}let $=z.steps[Y]?.handbackTo??[];return G.push($.length>0?`From the current phase you may hand back to: ${$.join(", ")}.`:"The current phase has no handback targets; you may only advance or refine."),G.push("Synthesize the current phase's worker outputs into an updated artifact (your final text), then call the StructuredOutput tool with your decision: advance (next phase), refine (re-run this phase), or handback (return to an allowed earlier phase). Include a short `notes` explaining why."),G.join(`
22
+
23
+ `)}var f=4000,$q=6000;var l=M(()=>{b()});function d(B,z,G){let Y=G.steps,V=Y.findIndex((j)=>j.name===B.currentStep),Z={...B.refineCounts},$=B.transitions+1,Q=B.currentStep,J="running";if(z.decision==="advance"){let j=Y[V+1];if(I(j)){if(J="done",j)Q=j.name}else Q=j.name}else if(z.decision==="refine"){if(Z[Q]=(Z[Q]??0)+1,Z[Q]>k)J="stalled"}else{let j=Y[V]?.handbackTo??[];if(!z.target||!j.includes(z.target))J="stalled";else if(Z[z.target]=(Z[z.target]??0)+1,Z[z.target]>k)J="stalled";else Q=z.target}if(J==="running"&&$>=p)J="stalled";return{...B,currentStep:Q,status:J,refineCounts:Z,transitions:$,updatedAt:Date.now()}}var i=M(()=>{b()});import Dq from"os";function Iq(){return Math.max(1,Math.min(8,Dq.cpus().length-1))}function wq(B){let z="",G=0;for(let V=B.length-1;V>=0;V--){let Z=B[V];if(Z.type!=="assistant"||!Z.message)continue;if(!z){let $=(Z.message.content??[]).filter((Q)=>Q.type==="text"&&Q.text);if($.length>0)z=$.map((Q)=>Q.text??"").join(`
24
+ `)}if(G===0&&Z.message.usage)G=Zq(Z.message.usage);if(z&&G)break}let Y=qq(B);return{text:z,tokens:G,tools:Y}}async function n(B){let{label:z,agentDef:G,promptText:Y,toolUseContext:V,canUseTool:Z,extraTools:$,runId:Q}=B,J=Date.now(),j=V.getAppState(),W=j.toolPermissionContext.mode,q={...j.toolPermissionContext,mode:x(G.permissionMode,W)},L=Yq(q,j.mcp.tools);if($&&$.length>0)L=[...L,...$];let H=G.model??String(V.options.mainLoopModel??""),F=[],N,P=!1;try{let K=zq({agentDefinition:G,promptMessages:[Vq({content:Y})],toolUseContext:V,canUseTool:Z,isAsync:!1,querySource:e(G.agentType,a(G)),availableTools:L,transcriptSubdir:`workflows/${Q}`,description:`${z} (workflow)`,override:{abortController:B.abortController}});for await(let h of K)if(F.push(h),h.type==="attachment"&&h.attachment?.type==="structured_output")N=h.attachment.data}catch(K){if(y(K))throw K;w(K),P=!0}let{text:E,tokens:_,tools:X}=wq(F);return{run:{label:z,model:H,tokens:_,tools:X,ms:Date.now()-J,output:P?"":E,failed:P},structuredOutput:N}}async function tq(B){let{def:z,task:G,toolUseContext:Y,canUseTool:V,onProgress:Z,signal:$}=B,{allAgents:Q}=await s(o()),J=new Map(Q.map((H)=>[H.agentType,H]));J.set(S,R);let j=J.get(z.main??S)??R,W=new AbortController;if($)if($.aborted)W.abort();else $.addEventListener("abort",()=>W.abort(),{once:!0});let q=await Jq({workflow:z.name,description:z.description,task:G,firstStep:z.steps[0].name});Z?.(q);let L=async()=>{await Qq(q),Z?.(q)};while(q.status==="running"){if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let H=z.steps.findIndex((v)=>v.name===q.currentStep),F=z.steps[H];if(I(F)){q={...q,status:"done",updatedAt:Date.now()},await L();break}q={...q,agentsInPhase:F.agents.length,agentsDone:0,updatedAt:Date.now()},await L();let N;try{N=(await t(F.agents,async(O)=>{let T={run:{label:`${F.name}:${O}`,model:"",tokens:0,tools:0,ms:0,output:"",failed:!0}},A;try{let D=J.get(O);A=D?await n({label:`${F.name}:${O}`,agentDef:D,promptText:u(z,G,q.artifact,F),toolUseContext:Y,canUseTool:V,runId:q.runId,abortController:W}):T}catch(D){if(y(D))throw D;w(D),A=T}return q={...q,agentsDone:(q.agentsDone??0)+1,updatedAt:Date.now()},await L(),A},{concurrency:Iq()})).map((O)=>O.run)}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let P={step:F.name,stepIndex:H,agents:N,synthesis:"",decision:null,at:Date.now()};if(q={...q,history:[...q.history,P],totalTokens:q.totalTokens+N.reduce((v,O)=>v+O.tokens,0),updatedAt:Date.now()},await L(),F.agents.length>0&&N.every((v)=>v.failed)){w(Error(`workflow phase "${F.name}": all ${N.length} worker(s) failed`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}if($?.aborted){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}let E=r(Gq(F));if(!("tool"in E)){w(Error(`workflow decision schema build failed: ${E.error}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let _=[E.tool],X;try{X=await n({label:"main",agentDef:j,promptText:c(q,z),toolUseContext:Y,canUseTool:V,extraTools:_,runId:q.runId,abortController:W})}catch(v){if(y(v)){q={...q,status:"cancelled",updatedAt:Date.now()},await L();break}throw v}let K=Bq.safeParse(X.structuredOutput),h=[...q.history];if(h[h.length-1]={...P,synthesis:X.run.output,decision:K.success?K.data:null,agents:[...N,X.run]},q={...q,history:h,artifact:X.run.output.trim()?X.run.output:q.artifact,totalTokens:q.totalTokens+X.run.tokens,updatedAt:Date.now()},!K.success){w(Error(`workflow main produced no valid decision: ${K.error?.message??"no decision"}`)),q={...q,status:"failed",updatedAt:Date.now()},await L();break}let U=d(q,K.data,z);q={...q,currentStep:U.currentStep,status:U.status,refineCounts:U.refineCounts,transitions:U.transitions,updatedAt:U.updatedAt},await L()}return q}var Eq=M(()=>{Wq();Uq();Kq();Nq();Xq();vq();Lq();jq();Fq();Pq();Hq();yq();hq();g();l();Oq();i();b()});
25
+ export{tq as xi,Eq as yi};
@@ -0,0 +1,2 @@
1
+ import{Iqa as g}from"./cli-1.1.34-4x915j9t.mjs";import{lstat as c,readdir as Cq,realpath as Mq,stat as Kq}from"node:fs/promises";import{join as Nq,relative as Hq,resolve as l,sep as Yq}from"node:path";import{Readable as Oq}from"node:stream";function i(q,J={}){let X=J.entryType||J.type;if(X==="both")X=H.FILE_DIR_TYPE;if(X)J.type=X;if(!q)throw Error("readdirp: root argument is required. Usage: readdirp(root, options)");else if(typeof q!=="string")throw TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");else if(X&&!o.includes(X))throw Error(`readdirp: Invalid type passed. Use one of ${o.join(", ")}`);return J.root=q,new u(J)}var H,_,h="READDIRP_RECURSIVE_ERROR",Iq,o,bq,Dq,Vq=(q)=>Iq.has(q.code),Lq,p=(q)=>!0,n=(q)=>{if(q===void 0)return p;if(typeof q==="function")return q;if(typeof q==="string"){let J=q.trim();return(X)=>X.basename===J}if(Array.isArray(q)){let J=q.map((X)=>X.trim());return(X)=>J.some((Q)=>X.basename===Q)}return p},u;var s=g(()=>{H={FILE_TYPE:"files",DIR_TYPE:"directories",FILE_DIR_TYPE:"files_directories",EVERYTHING_TYPE:"all"},_={root:".",fileFilter:(q)=>!0,directoryFilter:(q)=>!0,type:H.FILE_TYPE,lstat:!1,depth:2147483648,alwaysStat:!1,highWaterMark:4096};Object.freeze(_);Iq=new Set(["ENOENT","EPERM","EACCES","ELOOP",h]),o=[H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE],bq=new Set([H.DIR_TYPE,H.EVERYTHING_TYPE,H.FILE_DIR_TYPE]),Dq=new Set([H.EVERYTHING_TYPE,H.FILE_DIR_TYPE,H.FILE_TYPE]),Lq=process.platform==="win32";u=class u extends Oq{parents;reading;parent;_stat;_maxDepth;_wantsDir;_wantsFile;_wantsEverything;_root;_isDirent;_statsProp;_rdOptions;_fileFilter;_directoryFilter;constructor(q={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:q.highWaterMark});let J={..._,...q},{root:X,type:Q}=J;this._fileFilter=n(J.fileFilter),this._directoryFilter=n(J.directoryFilter);let Z=J.lstat?c:Kq;if(Lq)this._stat=(z)=>Z(z,{bigint:!0});else this._stat=Z;this._maxDepth=J.depth!=null&&Number.isSafeInteger(J.depth)?J.depth:_.depth,this._wantsDir=Q?bq.has(Q):!1,this._wantsFile=Q?Dq.has(Q):!1,this._wantsEverything=Q===H.EVERYTHING_TYPE,this._root=l(X),this._isDirent=!J.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(X,1)],this.reading=!1,this.parent=void 0}async _read(q){if(this.reading)return;this.reading=!0;try{while(!this.destroyed&&q>0){let J=this.parent,X=J&&J.files;if(X&&X.length>0){let{path:Q,depth:Z}=J,z=X.splice(0,q).map((G)=>this._formatEntry(G,Q)),$=await Promise.all(z);for(let G of $){if(!G)continue;if(this.destroyed)return;let U=await this._getEntryType(G);if(U==="directory"&&this._directoryFilter(G)){if(Z<=this._maxDepth)this.parents.push(this._exploreDir(G.fullPath,Z+1));if(this._wantsDir)this.push(G),q--}else if((U==="file"||this._includeAsFile(G))&&this._fileFilter(G)){if(this._wantsFile)this.push(G),q--}}}else{let Q=this.parents.pop();if(!Q){this.push(null);break}if(this.parent=await Q,this.destroyed)return}}}catch(J){this.destroy(J)}finally{this.reading=!1}}async _exploreDir(q,J){let X;try{X=await Cq(q,this._rdOptions)}catch(Q){this._onError(Q)}return{files:X,depth:J,path:q}}async _formatEntry(q,J){let X,Q=this._isDirent?q.name:q;try{let Z=l(Nq(J,Q));X={path:Hq(this._root,Z),fullPath:Z,basename:Q},X[this._statsProp]=this._isDirent?q:await this._stat(Z)}catch(Z){this._onError(Z);return}return X}_onError(q){if(Vq(q)&&!this.destroyed)this.emit("warn",q);else this.destroy(q)}async _getEntryType(q){if(!q&&this._statsProp in q)return"";let J=q[this._statsProp];if(J.isFile())return"file";if(J.isDirectory())return"directory";if(J&&J.isSymbolicLink()){let X=q.fullPath;try{let Q=await Mq(X),Z=await c(Q);if(Z.isFile())return"file";if(Z.isDirectory()){let z=Q.length;if(X.startsWith(Q)&&X.substr(z,1)===Yq){let $=Error(`Circular symlink detected: "${X}" points to "${Q}"`);return $.code=h,this._onError($)}return"directory"}}catch(Q){return this._onError(Q),""}}}_includeAsFile(q){let J=q&&q[this._statsProp];return J&&this._wantsEverything&&!J.isDirectory()}}});import{watch as Aq,unwatchFile as a,watchFile as Wq}from"node:fs";import{realpath as P,lstat as Fq,open as Rq,stat as e}from"node:fs/promises";import{type as Tq}from"node:os";import*as M from"node:path";function r(q,J,X,Q,Z){let z=($,G)=>{if(X(q),Z($,G,{watchedPath:q}),G&&q!==G)W(M.resolve(q,G),I,M.join(q,G))};try{return Aq(q,{persistent:J.persistent},z)}catch($){Q($);return}}class f{fsw;_boundHandleError;constructor(q){this.fsw=q,this._boundHandleError=(J)=>q._handleError(J)}_watchWithNodeFs(q,J){let X=this.fsw.options,Q=M.dirname(q),Z=M.basename(q);this.fsw._getWatchedDir(Q).add(Z);let $=M.resolve(q),G={persistent:X.persistent};if(!J)J=F;let U;if(X.usePolling){let x=X.interval!==X.binaryInterval;G.interval=x&&fq(Z)?X.binaryInterval:X.interval,U=dq(q,$,G,{listener:J,rawEmitter:this.fsw._emitRaw})}else U=mq(q,$,G,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return U}_handleFile(q,J,X){if(this.fsw.closed)return;let Q=M.dirname(q),Z=M.basename(q),z=this.fsw._getWatchedDir(Q),$=J;if(z.has(Z))return;let G=async(x,j)=>{if(!this.fsw._throttle(Sq,q,5))return;if(!j||j.mtimeMs===0)try{let k=await e(q);if(this.fsw.closed)return;let{atimeMs:K,mtimeMs:N}=k;if(!K||K<=N||N!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,k);if((gq||uq||Pq)&&$.ino!==k.ino){this.fsw._closeFile(x),$=k;let O=this._watchWithNodeFs(q,G);if(O)this.fsw._addPathCloser(x,O)}else $=k}catch(k){this.fsw._remove(Q,Z)}else if(z.has(Z)){let{atimeMs:k,mtimeMs:K}=j;if(!k||k<=K||K!==$.mtimeMs)this.fsw._emit(Y.CHANGE,q,j);$=j}},U=this._watchWithNodeFs(q,G);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(q)){if(!this.fsw._throttle(Y.ADD,q,0))return;this.fsw._emit(Y.ADD,q,J)}return U}async _handleSymlink(q,J,X,Q){if(this.fsw.closed)return;let Z=q.fullPath,z=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let $;try{$=await P(X)}catch(G){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if(z.has(Q)){if(this.fsw._symlinkPaths.get(Z)!==$)this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.CHANGE,X,q.stats)}else z.add(Q),this.fsw._symlinkPaths.set(Z,$),this.fsw._emit(Y.ADD,X,q.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(Z))return!0;this.fsw._symlinkPaths.set(Z,!0)}_handleRead(q,J,X,Q,Z,z,$){q=M.join(q,"");let G=Q?`${q}:${Q}`:q;if($=this.fsw._throttle("readdir",G,1000),!$)return;let U=this.fsw._getWatchedDir(X.path),x=new Set,j=this.fsw._readdirp(q,{fileFilter:(k)=>X.filterPath(k),directoryFilter:(k)=>X.filterDir(k)});if(!j)return;return j.on(_q,async(k)=>{if(this.fsw.closed){j=void 0;return}let K=k.path,N=M.join(q,K);if(x.add(K),k.stats.isSymbolicLink()&&await this._handleSymlink(k,q,N,K))return;if(this.fsw.closed){j=void 0;return}if(K===Q||!Q&&!U.has(K))this.fsw._incrReadyCount(),N=M.join(Z,M.relative(Z,N)),this._addToNodeFs(N,J,X,z+1)}).on(Y.ERROR,this._boundHandleError),new Promise((k,K)=>{if(!j)return K();j.once(w,()=>{if(this.fsw.closed){j=void 0;return}let N=$?$.clear():!1;if(k(void 0),U.getChildren().filter((O)=>{return O!==q&&!x.has(O)}).forEach((O)=>{this.fsw._remove(q,O)}),j=void 0,N)this._handleRead(q,!1,X,Q,Z,z,$)})})}async _handleDir(q,J,X,Q,Z,z,$){let G=this.fsw._getWatchedDir(M.dirname(q)),U=G.has(M.basename(q));if(!(X&&this.fsw.options.ignoreInitial)&&!Z&&!U)this.fsw._emit(Y.ADD_DIR,q,J);G.add(M.basename(q)),this.fsw._getWatchedDir(q);let x,j,k=this.fsw.options.depth;if((k==null||Q<=k)&&!this.fsw._symlinkPaths.has($)){if(!Z){if(await this._handleRead(q,X,z,Z,q,Q,x),this.fsw.closed)return}j=this._watchWithNodeFs(q,(K,N)=>{if(N&&N.mtimeMs===0)return;this._handleRead(K,!1,z,Z,q,Q,x)})}return j}async _addToNodeFs(q,J,X,Q,Z){let z=this.fsw._emitReady;if(this.fsw._isIgnored(q)||this.fsw.closed)return z(),!1;let $=this.fsw._getWatchHelpers(q);if(X)$.filterPath=(G)=>X.filterPath(G),$.filterDir=(G)=>X.filterDir(G);try{let G=await vq[$.statMethod]($.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored($.watchPath,G))return z(),!1;let U=this.fsw.options.followSymlinks,x;if(G.isDirectory()){let j=M.resolve(q),k=U?await P(q):q;if(this.fsw.closed)return;if(x=await this._handleDir($.watchPath,G,J,Q,Z,$,k),this.fsw.closed)return;if(j!==k&&k!==void 0)this.fsw._symlinkPaths.set(j,k)}else if(G.isSymbolicLink()){let j=U?await P(q):q;if(this.fsw.closed)return;let k=M.dirname($.watchPath);if(this.fsw._getWatchedDir(k).add($.watchPath),this.fsw._emit(Y.ADD,$.watchPath,G),x=await this._handleDir(k,G,J,Q,q,$,j),this.fsw.closed)return;if(j!==void 0)this.fsw._symlinkPaths.set(M.resolve(q),j)}else x=this._handleFile($.watchPath,G,J);if(z(),x)this.fsw._addPathCloser(q,x);return!1}catch(G){if(this.fsw._handleError(G))return z(),q}}}var _q="data",w="end",t="close",F=()=>{},R,E,gq,uq,Pq,qq,C,Y,Sq="watch",vq,I="listeners",L="errHandlers",b="rawEmitters",wq,Eq,fq=(q)=>Eq.has(M.extname(q).slice(1).toLowerCase()),v=(q,J)=>{if(q instanceof Set)q.forEach(J);else J(q)},D=(q,J,X)=>{let Q=q[J];if(!(Q instanceof Set))q[J]=Q=new Set([Q]);Q.add(X)},yq=(q)=>(J)=>{let X=q[J];if(X instanceof Set)X.clear();else delete q[J]},V=(q,J,X)=>{let Q=q[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete q[J]},Jq=(q)=>q instanceof Set?q.size===0:!q,A,W=(q,J,X,Q,Z)=>{let z=A.get(q);if(!z)return;v(z[J],($)=>{$(X,Q,Z)})},mq=(q,J,X,Q)=>{let{listener:Z,errHandler:z,rawEmitter:$}=Q,G=A.get(J),U;if(!X.persistent){if(U=r(q,X,Z,z,$),!U)return;return U.close.bind(U)}if(G)D(G,I,Z),D(G,L,z),D(G,b,$);else{if(U=r(q,X,W.bind(null,J,I),z,W.bind(null,J,b)),!U)return;U.on(Y.ERROR,async(x)=>{let j=W.bind(null,J,L);if(G)G.watcherUnusable=!0;if(E&&x.code==="EPERM")try{await(await Rq(q,"r")).close(),j(x)}catch(k){}else j(x)}),G={listeners:Z,errHandlers:z,rawEmitters:$,watcher:U},A.set(J,G)}return()=>{if(V(G,I,Z),V(G,L,z),V(G,b,$),Jq(G.listeners))G.watcher.close(),A.delete(J),wq.forEach(yq(G)),G.watcher=void 0,Object.freeze(G)}},S,dq=(q,J,X,Q)=>{let{listener:Z,rawEmitter:z}=Q,$=S.get(J),G=$&&$.options;if(G&&(G.persistent<X.persistent||G.interval>X.interval))a(J),$=void 0;if($)D($,I,Z),D($,b,z);else $={listeners:Z,rawEmitters:z,options:X,watcher:Wq(J,X,(U,x)=>{v($.rawEmitters,(k)=>{k(Y.CHANGE,J,{curr:U,prev:x})});let j=U.mtimeMs;if(U.size!==x.size||j>x.mtimeMs||j===0)v($.listeners,(k)=>k(q,U))})},S.set(J,$);return()=>{if(V($,I,Z),V($,b,z),Jq($.listeners))S.delete(J),a(J),$.options=$.watcher=void 0,Object.freeze($)}};var Qq=g(()=>{R=process.platform,E=R==="win32",gq=R==="darwin",uq=R==="linux",Pq=R==="freebsd",qq=Tq()==="OS400",C={ALL:"all",READY:"ready",ADD:"add",CHANGE:"change",ADD_DIR:"addDir",UNLINK:"unlink",UNLINK_DIR:"unlinkDir",RAW:"raw",ERROR:"error"},Y=C,vq={lstat:Fq,stat:e},wq=[I,L,b],Eq=new Set(["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]),A=new Map;S=new Map});import{EventEmitter as cq}from"node:events";import{stat as lq,Stats as YJ}from"node:fs";import{readdir as oq,stat as pq}from"node:fs/promises";import*as B from"node:path";function T(q){return Array.isArray(q)?q:[q]}function eq(q){if(typeof q==="function")return q;if(typeof q==="string")return(J)=>q===J;if(q instanceof RegExp)return(J)=>q.test(J);if(typeof q==="object"&&q!==null)return(J)=>{if(q.path===J)return!0;if(q.recursive){let X=B.relative(q.path,J);if(!X)return!1;return!X.startsWith("..")&&!B.isAbsolute(X)}return!1};return()=>!1}function tq(q){if(typeof q!=="string")throw Error("string expected");q=B.normalize(q),q=q.replace(/\\/g,"/");let J=!1;if(q.startsWith("//"))J=!0;if(q=q.replace(Uq,"/"),J)q="/"+q;return q}function Xq(q,J,X){let Q=tq(J);for(let Z=0;Z<q.length;Z++){let z=q[Z];if(z(Q,X))return!0}return!1}function qJ(q,J){if(q==null)throw TypeError("anymatch: specify first argument");let Q=T(q).map((Z)=>eq(Z));if(J==null)return(Z,z)=>{return Xq(Q,Z,z)};return Xq(Q,J)}class kq{path;_removeWatcher;items;constructor(q,J){this.path=q,this._removeWatcher=J,this.items=new Set}add(q){let{items:J}=this;if(!J)return;if(q!==zq&&q!==hq)J.add(q)}async remove(q){let{items:J}=this;if(!J)return;if(J.delete(q),J.size>0)return;let X=this.path;try{await oq(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(B.dirname(X),B.basename(X))}}has(q){let{items:J}=this;if(!J)return;return J.has(q)}getChildren(){let{items:q}=this;if(!q)return[];return[...q.values()]}dispose(){this.items.clear(),this.path="",this._removeWatcher=F,this.items=QJ,Object.freeze(this)}}class Bq{fsw;path;watchPath;fullWatchPath;dirParts;followSymlinks;statMethod;constructor(q,J,X){this.fsw=X;let Q=q;this.path=q=q.replace(rq,""),this.watchPath=Q,this.fullWatchPath=B.resolve(Q),this.dirParts=[],this.dirParts.forEach((Z)=>{if(Z.length>1)Z.pop()}),this.followSymlinks=J,this.statMethod=J?XJ:ZJ}entryPath(q){return B.join(this.watchPath,B.relative(this.watchPath,q.fullPath))}filterPath(q){let{stats:J}=q;if(J&&J.isSymbolicLink())return this.filterDir(q);let X=this.entryPath(q);return this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}filterDir(q){return this.fsw._isntIgnored(this.entryPath(q),q.stats)}}function $J(q,J={}){let X=new d(J);return X.add(q),X}var y="/",nq="//",zq=".",hq="..",iq="string",sq,Uq,aq,rq,m=(q)=>typeof q==="object"&&q!==null&&!(q instanceof RegExp),Zq=(q)=>{let J=T(q).flat();if(!J.every((X)=>typeof X===iq))throw TypeError(`Non-string provided as watch path: ${J}`);return J.map(xq)},$q=(q)=>{let J=q.replace(sq,y),X=!1;if(J.startsWith(nq))X=!0;if(J=J.replace(Uq,y),X)J=y+J;return J},xq=(q)=>$q(B.normalize($q(q))),Gq=(q="")=>(J)=>{if(typeof J==="string")return xq(B.isAbsolute(J)?J:B.join(q,J));else return J},JJ=(q,J)=>{if(B.isAbsolute(q))return q;return B.join(J,q)},QJ,XJ="stat",ZJ="lstat",d,DJ;var GJ=g(()=>{s();Qq();/*! chokidar - MIT License (c) 2012 Paul Miller (paulmillr.com) */sq=/\\/g,Uq=/\/\//g,aq=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,rq=/^\.[/\\]/;QJ=Object.freeze(new Set);d=class d extends cq{closed;options;_closers;_ignoredPaths;_throttled;_streams;_symlinkPaths;_watched;_pendingWrites;_pendingUnlinks;_readyCount;_emitReady;_closePromise;_userIgnored;_readyEmitted;_emitRaw;_boundRemove;_nodeFsHandler;constructor(q={}){super();this.closed=!1,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._streams=new Set,this._symlinkPaths=new Map,this._watched=new Map,this._pendingWrites=new Map,this._pendingUnlinks=new Map,this._readyCount=0,this._readyEmitted=!1;let J=q.awaitWriteFinish,X={stabilityThreshold:2000,pollInterval:100},Q={persistent:!0,ignoreInitial:!1,ignorePermissionErrors:!1,interval:100,binaryInterval:300,followSymlinks:!0,usePolling:!1,atomic:!0,...q,ignored:q.ignored?T(q.ignored):T([]),awaitWriteFinish:J===!0?X:typeof J==="object"?{...X,...J}:!1};if(qq)Q.usePolling=!0;if(Q.atomic===void 0)Q.atomic=!Q.usePolling;let Z=process.env.CHOKIDAR_USEPOLLING;if(Z!==void 0){let G=Z.toLowerCase();if(G==="false"||G==="0")Q.usePolling=!1;else if(G==="true"||G==="1")Q.usePolling=!0;else Q.usePolling=!!G}let z=process.env.CHOKIDAR_INTERVAL;if(z)Q.interval=Number.parseInt(z,10);let $=0;this._emitReady=()=>{if($++,$>=this._readyCount)this._emitReady=F,this._readyEmitted=!0,process.nextTick(()=>this.emit(C.READY))},this._emitRaw=(...G)=>this.emit(C.RAW,...G),this._boundRemove=this._remove.bind(this),this.options=Q,this._nodeFsHandler=new f(this),Object.freeze(Q)}_addIgnoredPath(q){if(m(q)){for(let J of this._ignoredPaths)if(m(J)&&J.path===q.path&&J.recursive===q.recursive)return}this._ignoredPaths.add(q)}_removeIgnoredPath(q){if(this._ignoredPaths.delete(q),typeof q==="string"){for(let J of this._ignoredPaths)if(m(J)&&J.path===q)this._ignoredPaths.delete(J)}}add(q,J,X){let{cwd:Q}=this.options;this.closed=!1,this._closePromise=void 0;let Z=Zq(q);if(Q)Z=Z.map((z)=>{return JJ(z,Q)});if(Z.forEach((z)=>{this._removeIgnoredPath(z)}),this._userIgnored=void 0,!this._readyCount)this._readyCount=0;return this._readyCount+=Z.length,Promise.all(Z.map(async(z)=>{let $=await this._nodeFsHandler._addToNodeFs(z,!X,void 0,0,J);if($)this._emitReady();return $})).then((z)=>{if(this.closed)return;z.forEach(($)=>{if($)this.add(B.dirname($),B.basename(J||$))})}),this}unwatch(q){if(this.closed)return this;let J=Zq(q),{cwd:X}=this.options;return J.forEach((Q)=>{if(!B.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=B.join(X,Q);Q=B.resolve(Q)}if(this._closePath(Q),this._addIgnoredPath(Q),this._watched.has(Q))this._addIgnoredPath({path:Q,recursive:!0});this._userIgnored=void 0}),this}close(){if(this._closePromise)return this._closePromise;this.closed=!0,this.removeAllListeners();let q=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)q.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),this._closers.clear(),this._watched.clear(),this._streams.clear(),this._symlinkPaths.clear(),this._throttled.clear(),this._closePromise=q.length?Promise.all(q).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let q={};return this._watched.forEach((J,X)=>{let Z=(this.options.cwd?B.relative(this.options.cwd,X):X)||zq;q[Z]=J.getChildren().sort()}),q}emitWithAll(q,J){if(this.emit(q,...J),q!==C.ERROR)this.emit(C.ALL,q,...J)}async _emit(q,J,X){if(this.closed)return;let Q=this.options;if(E)J=B.normalize(J);if(Q.cwd)J=B.relative(Q.cwd,J);let Z=[J];if(X!=null)Z.push(X);let z=Q.awaitWriteFinish,$;if(z&&($=this._pendingWrites.get(J)))return $.lastChange=new Date,this;if(Q.atomic){if(q===C.UNLINK)return this._pendingUnlinks.set(J,[q,...Z]),setTimeout(()=>{this._pendingUnlinks.forEach((G,U)=>{this.emit(...G),this.emit(C.ALL,...G),this._pendingUnlinks.delete(U)})},typeof Q.atomic==="number"?Q.atomic:100),this;if(q===C.ADD&&this._pendingUnlinks.has(J))q=C.CHANGE,this._pendingUnlinks.delete(J)}if(z&&(q===C.ADD||q===C.CHANGE)&&this._readyEmitted){let G=(U,x)=>{if(U)q=C.ERROR,Z[0]=U,this.emitWithAll(q,Z);else if(x){if(Z.length>1)Z[1]=x;else Z.push(x);this.emitWithAll(q,Z)}};return this._awaitWriteFinish(J,z.stabilityThreshold,q,G),this}if(q===C.CHANGE){if(!this._throttle(C.CHANGE,J,50))return this}if(Q.alwaysStat&&X===void 0&&(q===C.ADD||q===C.ADD_DIR||q===C.CHANGE)){let G=Q.cwd?B.join(Q.cwd,J):J,U;try{U=await pq(G)}catch(x){}if(!U||this.closed)return;Z.push(U)}return this.emitWithAll(q,Z),this}_handleError(q){let J=q&&q.code;if(q&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(C.ERROR,q);return q||this.closed}_throttle(q,J,X){if(!this._throttled.has(q))this._throttled.set(q,new Map);let Q=this._throttled.get(q);if(!Q)throw Error("invalid throttle");let Z=Q.get(J);if(Z)return Z.count++,!1;let z,$=()=>{let U=Q.get(J),x=U?U.count:0;if(Q.delete(J),clearTimeout(z),U)clearTimeout(U.timeoutObject);return x};z=setTimeout($,X);let G={timeoutObject:z,clear:$,count:0};return Q.set(J,G),G}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(q,J,X,Q){let Z=this.options.awaitWriteFinish;if(typeof Z!=="object")return;let z=Z.pollInterval,$,G=q;if(this.options.cwd&&!B.isAbsolute(q))G=B.join(this.options.cwd,q);let U=new Date,x=this._pendingWrites;function j(k){lq(G,(K,N)=>{if(K||!x.has(q)){if(K&&K.code!=="ENOENT")Q(K);return}let O=Number(new Date);if(k&&N.size!==k.size)x.get(q).lastChange=O;let jq=x.get(q);if(O-jq.lastChange>=J)x.delete(q),Q(void 0,N);else $=setTimeout(j,z,N)})}if(!x.has(q))x.set(q,{lastChange:U,cancelWait:()=>{return x.delete(q),clearTimeout($),X}}),$=setTimeout(j,z)}_isIgnored(q,J){if(this.options.atomic&&aq.test(q))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Z=(this.options.ignored||[]).map(Gq(X)),$=[...[...this._ignoredPaths].map(Gq(X)),...Z];this._userIgnored=qJ($,void 0)}return this._userIgnored(q,J)}_isntIgnored(q,J){return!this._isIgnored(q,J)}_getWatchHelpers(q){return new Bq(q,this.options.followSymlinks,this)}_getWatchedDir(q){let J=B.resolve(q);if(!this._watched.has(J))this._watched.set(J,new kq(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(q){if(this.options.ignorePermissionErrors)return!0;return Boolean(Number(q.mode)&256)}_remove(q,J,X){let Q=B.join(q,J),Z=B.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(Z),!this._throttle("remove",Q,100))return;if(!X&&this._watched.size===1)this.add(q,J,!0);this._getWatchedDir(Q).getChildren().forEach((k)=>this._remove(Q,k));let G=this._getWatchedDir(q),U=G.has(J);if(G.remove(J),this._symlinkPaths.has(Z))this._symlinkPaths.delete(Z);let x=Q;if(this.options.cwd)x=B.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(x)){if(this._pendingWrites.get(x).cancelWait()===C.ADD)return}this._watched.delete(Q),this._watched.delete(Z);let j=X?C.UNLINK_DIR:C.UNLINK;if(U&&!this._isIgnored(Q))this._emit(j,Q);this._closePath(Q)}_closePath(q){this._closeFile(q);let J=B.dirname(q);this._getWatchedDir(J).remove(B.basename(q))}_closeFile(q){let J=this._closers.get(q);if(!J)return;J.forEach((X)=>X()),this._closers.delete(q)}_addPathCloser(q,J){if(!J)return;let X=this._closers.get(q);if(!X)X=[],this._closers.set(q,X);X.push(J)}_readdirp(q,J){if(this.closed)return;let X={type:C.ALL,alwaysStat:!0,lstat:!0,...J,depth:0},Q=i(q,X);return this._streams.add(Q),Q.once(t,()=>{Q=void 0}),Q.once(w,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}};DJ={watch:$J,FSWatcher:d}});
2
+ export{Bq as fV,d as gV,$J as hV,DJ as iV,GJ as jV};
@@ -0,0 +1,2 @@
1
+ import{rc as Q,sc as Y}from"./cli-1.1.34-vdwfqapw.mjs";import{Al as B,El as U,Fl as V,oz as K,tt as J,ut as W,wz as X,zl as H}from"./cli-1.1.34-84707tma.mjs";import{Fqa as q,Iqa as v}from"./cli-1.1.34-4x915j9t.mjs";function P(k){return x.some((h)=>k.endsWith(h))}function C(k){return k.filter((h)=>H.has(h.name)||P(h.name))}function A(k,h,E){let[Z,$]=Q(J([...k,...h],"name"),K),w=(g,j)=>g.name.localeCompare(j.name),z=[...$.sort(w),...Z.sort(w)];if(G){if(G.isCoordinatorMode())return C(z)}return z}var x,G;var D=v(()=>{Y();W();B();X();x=["subscribe_pr_activity","unsubscribe_pr_activity"];G=(V(),q(U))});
2
+ export{P as nc,C as oc,A as pc,D as qc};
@@ -0,0 +1,2 @@
1
+ import{$_ as K,Q_ as G}from"./cli-1.1.34-wwjkncsv.mjs";import{Aha as J,Bha as N,yha as j,zha as M}from"./cli-1.1.34-92kps6jn.mjs";M();K();N();var q={poll_interval_ms_not_at_capacity:2000,poll_interval_ms_at_capacity:600000,non_exclusive_heartbeat_interval_ms:0,multisession_poll_interval_ms_not_at_capacity:2000,multisession_poll_interval_ms_partial_capacity:2000,multisession_poll_interval_ms_at_capacity:600000,reclaim_older_than_ms:5000,session_keepalive_interval_v2_ms:120000};var B={message:"must be 0 (disabled) or ≥100ms"},P=J(()=>j.object({poll_interval_ms_not_at_capacity:j.number().int().min(100),poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B),non_exclusive_heartbeat_interval_ms:j.number().int().min(0).default(0),multisession_poll_interval_ms_not_at_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_not_at_capacity),multisession_poll_interval_ms_partial_capacity:j.number().int().min(100).default(q.multisession_poll_interval_ms_partial_capacity),multisession_poll_interval_ms_at_capacity:j.number().int().refine((b)=>b===0||b>=100,B).default(q.multisession_poll_interval_ms_at_capacity),reclaim_older_than_ms:j.number().int().min(1).default(5000),session_keepalive_interval_v2_ms:j.number().int().min(0).default(120000)}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or poll_interval_ms_at_capacity > 0"}).refine((b)=>b.non_exclusive_heartbeat_interval_ms>0||b.multisession_poll_interval_ms_at_capacity>0,{message:"at-capacity liveness requires non_exclusive_heartbeat_interval_ms > 0 or multisession_poll_interval_ms_at_capacity > 0"}));function $(){let b=G("tengu_bridge_poll_interval_config",q,300000),x=P().safeParse(b);return x.success?x.data:q}
2
+ export{q as Z,$ as _};
@@ -0,0 +1,2 @@
1
+ import{Lb as N}from"./cli-1.1.34-h9h6119y.mjs";import{yV as A,zV as w}from"./cli-1.1.34-9z887t80.mjs";import{hga as x,jga as j}from"./cli-1.1.34-wwjkncsv.mjs";import{Wia as L,_ia as E,qja as X,tja as K}from"./cli-1.1.34-xwg0x7p4.mjs";import{Qja as G,Xja as k}from"./cli-1.1.34-d0sgyvr1.mjs";w();import{randomUUID as C}from"crypto";K();j();k();E();function O(H){return H!==null&&typeof H==="object"&&"type"in H&&typeof H.type==="string"}function T(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_response"&&"response"in H}function h(H){return H!==null&&typeof H==="object"&&"type"in H&&H.type==="control_request"&&"request_id"in H&&"request"in H}function D(H){if((H.type==="user"||H.type==="assistant")&&H.isVirtual)return!1;return H.type==="user"||H.type==="assistant"||H.type==="system"&&H.subtype==="local_command"}function c(H){if(H.type!=="user"||H.isMeta||H.toolUseResult||H.isCompactSummary)return;if(H.origin&&H.origin.kind!=="human")return;let Z=H.message.content,V;if(typeof Z==="string")V=Z;else for(let $ of Z)if($.type==="text"){V=$.text;break}if(!V)return;return x(V)||void 0}function m(H,Z,V,f,$,B){try{let J=N(L(H));if(T(J)){X("[bridge:repl] Ingress message type=control_response"),$?.(J);return}if(h(J)){X(`[bridge:repl] Inbound control_request subtype=${J.request.subtype}`),B?.(J);return}if(!O(J))return;let Q="uuid"in J&&typeof J.uuid==="string"?J.uuid:void 0;if(Q&&Z.has(Q)){X(`[bridge:repl] Ignoring echo: type=${J.type} uuid=${Q}`);return}if(Q&&V.has(Q)){X(`[bridge:repl] Ignoring re-delivered inbound: type=${J.type} uuid=${Q}`);return}if(X(`[bridge:repl] Ingress message type=${J.type}${Q?` uuid=${Q}`:""}`),J.type==="user"){if(Q)V.add(Q);f?.(J)}else X(`[bridge:repl] Ignoring non-user inbound message: type=${J.type}`)}catch(J){X(`[bridge:repl] Failed to parse ingress message: ${G(J)}`)}}var P="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function v(H,Z){let{transport:V,sessionId:f,outboundOnly:$,onInterrupt:B,onSetModel:J,onSetMaxThinkingTokens:Q,onSetPermissionMode:Y}=Z;if(!V){X("[bridge:repl] Cannot respond to control_request: transport not configured");return}let W;if($&&H.request.subtype!=="initialize"){W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:P}};let z={...W,session_id:f};V.write(z),X(`[bridge:repl] Rejected ${H.request.subtype} (outbound-only) request_id=${H.request_id}`);return}switch(H.request.subtype){case"initialize":W={type:"control_response",response:{subtype:"success",request_id:H.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":J?.(H.request.model),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_max_thinking_tokens":Q?.(H.request.max_thinking_tokens),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;case"set_permission_mode":{let z=Y?.(H.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(z.ok)W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};else W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:z.error}};break}case"interrupt":B?.(),W={type:"control_response",response:{subtype:"success",request_id:H.request_id}};break;default:W={type:"control_response",response:{subtype:"error",request_id:H.request_id,error:`REPL bridge does not handle control_request subtype: ${H.request.subtype}`}}}let _={...W,session_id:f};V.write(_),X(`[bridge:repl] Sent control_response for ${H.request.subtype} request_id=${H.request_id} result=${W.response.subtype}`)}function q(H){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...A},modelUsage:{},permission_denials:[],session_id:H,uuid:C()}}class S{capacity;ring;set=new Set;writeIdx=0;constructor(H){this.capacity=H,this.ring=Array(H)}add(H){if(this.set.has(H))return;let Z=this.ring[this.writeIdx];if(Z!==void 0)this.set.delete(Z);this.ring[this.writeIdx]=H,this.set.add(H),this.writeIdx=(this.writeIdx+1)%this.capacity}has(H){return this.set.has(H)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
2
+ export{D as Fb,c as Gb,m as Hb,v as Ib,q as Jb,S as Kb};
@@ -0,0 +1,16 @@
1
+ import{r6 as h2,t6 as G8}from"./cli-1.1.34-1xg52b7q.mjs";import{v6 as M,w6 as jJ}from"./cli-1.1.34-7bxexffs.mjs";import{y6 as I5,z6 as GJ}from"./cli-1.1.34-4zj4kbw4.mjs";import{x7 as J1,z7 as F8}from"./cli-1.1.34-hpt8kch4.mjs";import{T8 as U,j9 as Z2}from"./cli-1.1.34-166q8s04.mjs";import{$_ as C1,$fa as $1,C_ as o5,D_ as _,E9 as C4,F9 as m,F_ as k,G9 as N2,H9 as K0,I9 as f4,J9 as e2,Naa as Z4,O9 as B0,P9 as w1,P_ as T0,Pba as K2,Qaa as i,S_ as I4,Sfa as e5,T$ as l4,Tda as E,Tea as j0,V$ as zJ,Vda as x2,Vea as Q4,Vfa as H4,Wea as H$,Yda as D,_$ as s4,_ea as Y4,baa as BJ,c_ as h5,cga as F,e_ as WJ,eca as G$,fga as o,jea as W0,n_ as A1,nfa as G4,nga as b,o_ as g8,pfa as X4,sea as f1,sfa as v2,sga as n0,tfa as xJ,uea as p8}from"./cli-1.1.34-wwjkncsv.mjs";import{iia as m5,jia as i4,kia as B2,mia as B8,nia as x8,pia as N,qia as y0}from"./cli-1.1.34-5t01yf6x.mjs";import{Wia as t4,_ia as VJ,cja as r2,gja as S8,qja as W,sja as p0,tja as r}from"./cli-1.1.34-xwg0x7p4.mjs";import{Qja as Q2,Sja as G1,Xja as _8}from"./cli-1.1.34-d0sgyvr1.mjs";import{_ja as y5,bka as K,dka as C,fka as y2,jka as f}from"./cli-1.1.34-ev8ffgr9.mjs";import{Ana as O0,Bna as o0,Ona as A,Pka as $0,Qka as k1,Vna as M1,ena as i1,koa as W1,loa as z1,moa as B1,noa as x1,qoa as z2,sna as J4,upa as e,wna as h4}from"./cli-1.1.34-qef4zhc3.mjs";import{Tpa as h,Upa as d0}from"./cli-1.1.34-n5t6xk0e.mjs";import{Fqa as E0,Hqa as i2,Iqa as H,Jqa as s}from"./cli-1.1.34-4x915j9t.mjs";function c5($){let J=[],Z=!1;async function Q(){if(Z)return;if(J.length===0)return;Z=!0;while(J.length>0){let{args:Y,resolve:X,reject:q,context:V}=J.shift();try{let z=await $.apply(V,Y);X(z)}catch(z){q(z)}}if(Z=!1,J.length>0)Q()}return function(...Y){return new Promise((X,q)=>{J.push({args:Y,resolve:X,reject:q,context:this}),Q()})}}var d5=()=>{};function t5($,J){return $.find((Z)=>Z.includes(J))??null}async function i5(){let{BedrockClient:$}=await import("@aws-sdk/client-bedrock"),J=y2(),Z=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await h2(),...Z&&{requestHandler:new(await import("./index-1.1.34-nye63dch.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.34-0q46c1bj.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}async function eJ(){let{BedrockRuntimeClient:$}=await import("@aws-sdk/client-bedrock-runtime"),J=y2(),Z=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:J,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await h2(),...Z&&{requestHandler:new(await import("./index-1.1.34-nye63dch.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.34-0q46c1bj.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!Z&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await X0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new $(Q)}function H8($){return $.startsWith("anthropic.")}function w8($){if(!$.startsWith("arn:"))return $;let J=$.lastIndexOf("/");if(J===-1)return $;return $.substring(J+1)}function K8($){let J=w8($);for(let Z of R8)if(J.startsWith(`${Z}.anthropic.`))return Z;return}function JZ($,J){let Z=K8($);if(Z)return $.replace(`${Z}.`,`${J}.`);if(H8($))return`${J}.${$}`;return $}var n5,$Z,R8;var l5=H(()=>{d0();q0();f();n0();G8();n5=h(async function(){let[$,{ListInferenceProfilesCommand:J}]=await Promise.all([i5(),import("@aws-sdk/client-bedrock")]),Z=[],Q;try{do{let Y=new J({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),X=await $.send(Y);if(X.inferenceProfileSummaries)Z.push(...X.inferenceProfileSummaries);Q=X.nextToken}while(Q);return Z.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw b(Y),Y}});$Z=h(async function($){try{let[J,{GetInferenceProfileCommand:Z}]=await Promise.all([i5(),import("@aws-sdk/client-bedrock")]),Q=new Z({inferenceProfileIdentifier:$}),Y=await J.send(Q);if(!Y.models||Y.models.length===0)return null;let X=Y.models[0];if(!X?.modelArn)return null;let q=X.modelArn.lastIndexOf("/");return q>=0?X.modelArn.substring(q+1):X.modelArn}catch(J){return b(J),null}});R8=["us","eu","apac","global"]});var I2,T2,_2,S2,M2,A2,C2,f2,u2,t0,i0,l0,b0,k0,g2,p2,m2,N0,s5;var c2=H(()=>{I2={firstParty:"claude-3-7-sonnet-20250219",bedrock:"us.anthropic.claude-3-7-sonnet-20250219-v1:0",vertex:"claude-3-7-sonnet@20250219",foundry:"claude-3-7-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},T2={firstParty:"claude-3-5-sonnet-20241022",bedrock:"anthropic.claude-3-5-sonnet-20241022-v2:0",vertex:"claude-3-5-sonnet-v2@20241022",foundry:"claude-3-5-sonnet",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},_2={firstParty:"claude-3-5-haiku-20241022",bedrock:"us.anthropic.claude-3-5-haiku-20241022-v1:0",vertex:"claude-3-5-haiku@20241022",foundry:"claude-3-5-haiku",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash-lite",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"ministral-3b-latest"},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",mistral:"ministral-3b-latest"},M2={firstParty:"claude-sonnet-4-20250514",bedrock:"us.anthropic.claude-sonnet-4-20250514-v1:0",vertex:"claude-sonnet-4@20250514",foundry:"claude-sonnet-4",openai:"gpt-4o-mini",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},A2={firstParty:"claude-sonnet-4-5-20250929",bedrock:"us.anthropic.claude-sonnet-4-5-20250929-v1:0",vertex:"claude-sonnet-4-5@20250929",foundry:"claude-sonnet-4-5",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},C2={firstParty:"claude-opus-4-20250514",bedrock:"us.anthropic.claude-opus-4-20250514-v1:0",vertex:"claude-opus-4@20250514",foundry:"claude-opus-4",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},f2={firstParty:"claude-opus-4-1-20250805",bedrock:"us.anthropic.claude-opus-4-1-20250805-v1:0",vertex:"claude-opus-4-1@20250805",foundry:"claude-opus-4-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},u2={firstParty:"claude-opus-4-5-20251101",bedrock:"us.anthropic.claude-opus-4-5-20251101-v1:0",vertex:"claude-opus-4-5@20251101",foundry:"claude-opus-4-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},t0={firstParty:"claude-opus-4-6",bedrock:"us.anthropic.claude-opus-4-6-v1",vertex:"claude-opus-4-6",foundry:"claude-opus-4-6",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},i0={firstParty:"claude-opus-4-7",bedrock:"us.anthropic.claude-opus-4-7-v1",vertex:"claude-opus-4-7",foundry:"claude-opus-4-7",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},l0={firstParty:"claude-opus-4-8",bedrock:"anthropic.claude-opus-4-8",vertex:"claude-opus-4-8",foundry:"claude-opus-4-8",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},b0={firstParty:"claude-opus-5",bedrock:"anthropic.claude-opus-5",vertex:"claude-opus-5",foundry:"claude-opus-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},k0={firstParty:"claude-opus-5-5",bedrock:"anthropic.claude-opus-5-5",vertex:"claude-opus-5-5",foundry:"claude-opus-5-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"},g2={firstParty:"claude-fable-5-1",bedrock:"anthropic.claude-fable-5-1",vertex:"claude-fable-5-1",foundry:"claude-fable-5-1",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},p2={firstParty:"claude-sonnet-4-6",bedrock:"us.anthropic.claude-sonnet-4-6",vertex:"claude-sonnet-4-6",foundry:"claude-sonnet-4-6",openai:"gpt-4o",gemini:"gemini-2.0-flash",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"mistral-medium-latest"},m2={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"},N0={haiku35:_2,haiku45:S2,sonnet35:T2,sonnet37:I2,sonnet40:M2,sonnet45:A2,sonnet46:p2,sonnet5:m2,opus40:C2,opus41:f2,opus45:u2,opus46:t0,opus47:i0,opus48:l0,opus5:b0,opus55:k0,fable51:g2},s5=Object.fromEntries(Object.entries(N0).map(([$,J])=>[J.firstParty,$]))});function a5(){return Object.values(s0)}var s0,d2;var n2=H(()=>{s0={"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}}},d2=Object.fromEntries(Object.values(s0).map(($)=>[$.id,$.name]))});var P0={};i2(P0,{prefetchCopilotModelCatalog:()=>s2,normalizeBareCopilotModelId:()=>l2,getEffectiveCopilotModels:()=>N8,getCopilotDisplayName:()=>U8,getCatalogCopilotMaxOutputTokens:()=>E8,getCatalogCopilotContextWindow:()=>v8,fetchCopilotModelCatalog:()=>Q1,copilotModelSupportsAnthropicMessages:()=>P8,_setCopilotCatalogForTesting:()=>O8});function U0(){let $=F();if($?.transport!=="github_copilot")return null;return($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function Z1(){if(!a)return!1;let $=U0();return $!==null&&V0===$}function D8(){if(r5)return;r5=!0,o5(()=>{let $=U0();if($&&V0!==$)s2()})}function l2($){let J=$.split("?",1)[0]??$,Z=J.lastIndexOf(":"),Q=(Z===-1?J:J.slice(Z+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function b8($){if(!Array.isArray($))return null;return $.filter((J)=>typeof J==="string")}function k8($){let J=$.id?.trim();if(!J)return null;let Z=$.capabilities?.type?.trim().toLowerCase();if(Z&&Z!=="chat")return null;if($.policy?.state==="disabled")return null;let Q=$.capabilities?.limits??{},Y=$.capabilities?.supports??{},X=Y.vision===!0||Boolean(Q.vision),q=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:J,name:$.name?.trim()||J,family:$.capabilities?.family?.trim()||J,attachment:X,reasoning:q,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:X?["text","image"]:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:Q.max_context_window_tokens??128000,...typeof Q.max_prompt_tokens==="number"?{input:Q.max_prompt_tokens}:{},output:Q.max_output_tokens??16384}},supportedEndpoints:b8($.supported_endpoints),pickerEnabled:$.model_picker_enabled!==!1}}async function Q1(){let $=F();if($?.transport!=="github_copilot")return null;if(e5($.baseUrl)!=="copilot")return null;let J=$.extras?.githubToken??$.apiKey;if(!J)return null;let Z=($.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),L8);try{let X=await fetch(`${Z}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...J1},signal:Q.signal});if(!X.ok)return null;let q=await X.json();if(!Array.isArray(q?.data))return null;let V=new Set,z=[];for(let x of q.data){let G=k8(x);if(!G||V.has(G.model.id))continue;V.add(G.model.id),z.push(G)}return z.length>0?z:null}catch{return W("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function s2(){D8();let $=U0();if(!$)return;if(a&&V0!==$)a=null,V0=null;if(a0){if(t2===$)return;a0.finally(()=>s2());return}t2=$,a0=Q1().then((J)=>{if(J&&U0()===$)a=J,V0=$}).finally(()=>{a0=null,t2=null})}function N8(){if(Z1()){let $=a?.filter((J)=>J.pickerEnabled).map((J)=>J.model);if($&&$.length>0)return $}return a5()}function r0($){if(!Z1())return;let J=l2($);return a.find((Z)=>Z.model.id===J)}function U8($){let J=l2($);return r0(J)?.model.name??s0[J]?.name}function P8($){let J=r0($);if(!J||J.supportedEndpoints===null)return null;return J.supportedEndpoints.some((Z)=>Z.includes("/v1/messages"))}function v8($){return r0($)?.model.limit.context}function E8($){return r0($)?.model.limit.output}function O8($){a=$,V0=$?U0():null}var L8=5000,a=null,V0=null,a0=null,t2=null,r5=!1;var v0=H(()=>{o();F8();$1();j0();r();n2()});function j(){let $=F();if(!$)return"firstParty";switch($.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 J=$.baseUrl?.toLowerCase()??"";if(J.includes("nvidia"))return"nvidia-nim";if(J.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function xZ(){return j()==="firstParty"}function y8($){let J=F();if(J?.transport!=="github_copilot")return!1;let Z=$?.trim()||J.model?.trim()||"";if(!Z.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(v0(),E0(P0)),Y=Q(Z);if(Y!==null)return Y}catch{}return!0}function GZ($){let J=F()?.transport??"anthropic";if(!h8.has(J))return!1;if(J==="github_copilot"&&y8($))return!1;return!0}function Y1(){let $=F();if(!$)return!0;if($.transport!=="anthropic")return!1;let J=$.baseUrl;if(!J)return!0;try{let Z=new URL(J).host;return["api.anthropic.com"].includes(Z)}catch{return!1}}var h8;var u=H(()=>{o();h8=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function e0($){let J=$==="codex"||$==="github"?"openai":$,Z={};for(let Q of q1)Z[Q]=N0[Q][J];return Z}async function I8(){let $=e0("bedrock"),J;try{J=await n5()}catch(Q){return b(Q),$}if(!J?.length)return $;let Z={};for(let Q of q1){let Y=N0[Q].firstParty;Z[Q]=t5(J,Y)||$[Q]}return Z}function X1($){let J=D().modelOverrides;if(!J)return $;let Z={...$};for(let[Q,Y]of Object.entries(J)){let X=s5[Q];if(X&&Y)Z[X]=Y}return Z}function $2($){let J;try{J=D().modelOverrides}catch{return $}if(!J)return $;for(let[Z,Q]of Object.entries(J))if(Q===$)return Z;return $}function T8(){if(O0()!==null)return;if(j()!=="bedrock"){o0(e0(j()));return}V1()}function B(){let $=O0();if($===null)return T8(),X1(e0(j()));return X1($)}async function kZ(){if(O0()!==null)return;if(j()!=="bedrock"){o0(e0(j()));return}await V1()}var q1,V1;var J2=H(()=>{e();n0();d5();W0();l5();c2();u();q1=Object.keys(N0);V1=c5(async()=>{if(O0()!==null)return;try{let $=await I8();o0($)}catch($){b($)}})});async function z0($){let J=`${N().BASE_API_URL}/api/oauth/profile`;try{return(await U.get(J,{headers:{Authorization:`Bearer ${$}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(Z){b(Z)}}var a2=H(()=>{Z2();y0();n0()});import{mkdirSync as M8,writeFileSync as A8}from"fs";function u8($,J,Z){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{M8(Y2,{recursive:!0,mode:448}),A8($,J,{encoding:"utf8",mode:384}),W(`Persisted ${Z} to ${$} for subprocess access`)}catch(Q){W(`Failed to persist ${Z} to disk (non-fatal): ${Q2(Q)}`,{level:"error"})}}function j1($,J){try{let Q=r2().readFileSync($,{encoding:"utf8"}).trim();if(!Q)return null;return W(`Read ${J} from well-known file ${$}`),Q}catch(Z){if(!G1(Z))W(`Failed to read ${J} from ${$}: ${Q2(Z)}`,{level:"debug"});return null}}function H1({envVar:$,wellKnownPath:J,label:Z,getCached:Q,setCached:Y}){let X=Q();if(X!==void 0)return X;let q=process.env[$];if(!q){let z=j1(J,Z);return Y(z),z}let V=parseInt(q,10);if(Number.isNaN(V))return W(`${$} must be a valid file descriptor number, got: ${q}`,{level:"error"}),Y(null),null;try{let z=r2(),x=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,G=z.readFileSync(x,{encoding:"utf8"}).trim();if(!G)return W(`File descriptor contained empty ${Z}`,{level:"error"}),Y(null),null;return W(`Successfully read ${Z} from file descriptor ${V}`),Y(G),u8(J,G,Z),G}catch(z){W(`Failed to read ${Z} from file descriptor ${V}: ${Q2(z)}`,{level:"error"});let x=j1(J,Z);return Y(x),x}}function X2(){return H1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C8,label:"OAuth token",getCached:W1,setCached:z1})}function o2(){return H1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:f8,label:"API key",getCached:B1,setCached:x1})}var Y2="/home/claude/.claude/remote",C8,f8,SZ;var R1=H(()=>{e();r();f();_8();S8();C8=`${Y2}/.oauth_token`,f8=`${Y2}/.api_key`,SZ=`${Y2}/.session_ingress_token`});async function K1(){if(process.platform==="darwin"){let $=m();if((await B0(`security delete-generic-password -a $USER -s "${$}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function $5($){return $.slice(-20)}var F1=H(()=>{w1();e2()});function gZ($){return $?.name==="CredentialsProviderError"}function L1($){if(!$||typeof $!=="object")return!1;let J=$;if(!J.Credentials||typeof J.Credentials!=="object")return!1;let Z=J.Credentials;return typeof Z.AccessKeyId==="string"&&typeof Z.SecretAccessKey==="string"&&typeof Z.SessionToken==="string"&&Z.AccessKeyId.length>0&&Z.SecretAccessKey.length>0&&Z.SessionToken.length>0}async function J5(){let{STSClient:$,GetCallerIdentityCommand:J}=await import("@aws-sdk/client-sts");await new $().send(new J({}))}async function D1(){try{W("Clearing AWS credential provider cache");let{fromIni:$}=await import("@aws-sdk/credential-providers");await $({ignoreCache:!0})(),W("AWS credential provider cache refreshed")}catch($){W("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var b1=H(()=>{r()});class T{static instance=null;status={isAuthenticating:!1,output:[]};changed=$0();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($){this.status.output.push($),this.changed.emit(this.getStatus())}setError($){this.status.error=$,this.changed.emit(this.getStatus())}endAuthentication($){if($)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 N1=H(()=>{k1()});var q2="claude-code-20250219",U1="interleaved-thinking-2025-05-14",h0="context-1m-2025-08-07",V2="context-management-2025-06-27",P1="structured-outputs-2025-12-15",Z5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",E1="tool-search-tool-2025-10-19",dZ="effort-2025-11-24",nZ="task-budgets-2026-03-13",j2="prompt-caching-scope-2026-01-05",tZ="extended-cache-ttl-2025-04-11",iZ="fast-mode-2026-02-01",O1="redact-thinking-2026-02-12",x0="thinking-token-count-2026-05-13",y1="thinking-display-updates-2026-08-18",h1="cache-diagnosis-2026-04-07",I1="thinking-binding-controls-2026-08-01",T1="token-efficient-tools-2026-03-28",_1="afk-mode-2026-01-31",lZ="advisor-tool-2026-03-01",Q5,sZ;var W2=H(()=>{Q5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),sZ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function O(){if(j()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function u1(){if(!O())return!1;return c8()===null}function m8($,J){switch($){case"free":return J==="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 · enable it at claude.ai/settings/usage";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function c8(){if(j()!=="firstParty")return"Fast mode is not available on third-party providers";if(!O())return"Fast mode is not available";let $=T0("tengu_penguins_off",null);if($!==null)return W(`Fast mode unavailable: ${$}`),$;if(!A1()&&T0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(A()&&z2()&&!M1()){if(!E("flagSettings")?.fastMode)return W("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(v.status==="disabled"){if(v.reason==="network_error"||v.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let J=w()!==null?"oauth":"api-key",Z=m8(v.reason,J);return W(`Fast mode unavailable: ${Z}`),Z}return null}function x7(){let $=G2(Z0());return"opus"+(q5()&&!$?"[1m]":"")}function G7($){if(!O())return!1;if(!u1())return!1;if(!g1($))return!1;let J=D();if(J.fastModePerSessionOptIn)return!1;return J.fastMode===!0}function g1($){if(!O())return!1;let J=$??_0(),Z=I(J).toLowerCase();return Z.includes("opus-5")||Z.includes("opus-4-7")||Z.includes("opus-4-6")}function d8(){if(G0.status==="cooldown"&&Date.now()>=G0.resetAt){if(O()&&!Y5)W("Fast mode cooldown expired, re-enabling fast mode"),Y5=!0,m1.emit();G0={status:"active"}}return G0}function w7($,J){if(!O())return;G0={status:"cooldown",resetAt:$,reason:J},Y5=!1;let Z=$-Date.now();W(`Fast mode cooldown triggered (${J}), duration ${Math.round(Z/1000)}s`),p1.emit($,J)}function K7(){G0={status:"active"}}function F7(){if(v.status==="disabled")return;v={status:"disabled",reason:"preference"},x2("userSettings",{fastMode:void 0}),_(($)=>({...$,penguinModeOrgEnabled:!1})),X5.emit(!1)}function n8($){switch($){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 · enable it at claude.ai/settings/usage";default:return"Fast mode disabled · extra usage not available"}}function t8($){return $==="org_level_disabled_until"||$==="out_of_credits"}function D7($){let J=n8($);if(W(`Fast mode overage rejection: ${$??"unknown"} — ${J}`),!t8($))x2("userSettings",{fastMode:void 0}),_((Z)=>({...Z,penguinModeOrgEnabled:!1}));c1.emit(J)}function i8(){return d8().status==="cooldown"}function b7($,J){let Z=O()&&u1()&&!!J&&g1($);if(Z&&i8())return"cooldown";if(Z)return"on";return"off"}async function l8($){let J=`${N().BASE_API_URL}/api/claude_code_penguin_mode`,Z="accessToken"in $?{Authorization:`Bearer ${$.accessToken}`,"anthropic-beta":B2}:{"x-api-key":$.apiKey};return(await U.get(J,{headers:Z})).data}function N7(){if(!O())return;if(v.status!=="pending")return;v=k().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function U7(){if(f1())return;if(!O())return;if(I0)return W("Fast mode prefetch in progress, returning in-flight promise"),I0;let $=V5();if(!(w()?.accessToken&&J0())&&!$){v=k().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let Z=Date.now();if(Z-S1<s8){W("Skipping fast mode prefetch, fetched recently");return}S1=Z;let Q=async()=>{let X=w(),q=X?.accessToken&&J0()?{accessToken:X.accessToken}:$?{apiKey:$}:null;if(!q)throw Error("No auth available");return l8(q)};async function Y(){try{let X;try{X=await Q()}catch(V){if(U.isAxiosError(V)&&(V.response?.status===401||V.response?.status===403&&typeof V.response?.data==="string"&&V.response.data.includes("OAuth token has been revoked"))){let x=w()?.accessToken;if(x)await j5(x),X=await Q();else throw V}else throw V}let q=v.status!=="pending"?v.status==="enabled":k().penguinModeOrgEnabled;if(v=X.enabled?{status:"enabled"}:{status:"disabled",reason:X.disabled_reason??"preference"},q!==X.enabled){if(!X.enabled)x2("userSettings",{fastMode:void 0});_((V)=>({...V,penguinModeOrgEnabled:X.enabled})),X5.emit(X.enabled)}W(`Org fast mode: ${X.enabled?"enabled":`disabled (${X.disabled_reason??"preference"})`}`)}catch(X){v=k().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},W(`Failed to fetch org fast mode status, defaulting to ${v.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${X}`,{level:"error"})}finally{I0=null}}return I0=Y(),I0}var B7="Opus 5.5",G0,Y5=!1,p1,m1,H7,R7,c1,L7,v,X5,k7,s8=30000,S1=0,I0=null;var d1=H(()=>{Z2();y0();C1();e();q0();g8();j0();r();f();H0();u();p8();W0();k1();G0={status:"active"},p1=$0(),m1=$0(),H7=p1.subscribe,R7=m1.subscribe;c1=$0(),L7=c1.subscribe;v={status:"pending"},X5=$0(),k7=X5.subscribe});function Y$($){for(let J of Q$)if(J.pattern.test($))return J.cost;return}function W5($){if(O()&&$)return s1;return c}function z5($){if(O()&&$)return s1;return H2[R(b0.firstParty)]??c}function B5($){if(O()&&$)return r8;return H2[R(k0.firstParty)]??l1}function X$($,J){let Z=$.promptCacheWrite1hTokens??$.promptCacheWriteTokens,Q=J.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*$.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*Z:(J.cache_creation_input_tokens??0)/1e6*$.promptCacheWriteTokens;return J.input_tokens/1e6*$.inputTokens+J.output_tokens/1e6*$.outputTokens+(J.cache_read_input_tokens??0)/1e6*$.promptCacheReadTokens+Y+(J.server_tool_use?.web_search_requests??0)*$.webSearchRequests}function q$($,J){let Z=L($);if(Z===R(t0.firstParty)||Z===R(i0.firstParty)||Z===R(l0.firstParty)){let Y=J.speed==="fast";return W5(Y)}if(Z===R(k0.firstParty))return B5(J.speed==="fast");if(Z===R(b0.firstParty))return z5(J.speed==="fast");let Q=H2[Z];if(!Q){let Y=Y$($);if(Y)return Y;return V$($,Z),H2[L(_0())]??Z$}return Q}function V$($,J){i1()}function j$($,J){let Z=q$($,J);return X$(Z,J)}function h7($,J){let Z={input_tokens:J.inputTokens,output_tokens:J.outputTokens,cache_read_input_tokens:J.cacheReadInputTokens,cache_creation_input_tokens:J.cacheCreationInputTokens};return j$($,Z)}function t1($){if(Number.isInteger($))return`$${$}`;return`$${$.toFixed(2)}`}function R2($){return`${t1($.inputTokens)}/${t1($.outputTokens)} per Mtok`}var a8,S0,n1,c,l1,r8,o8,e8,s1,$$,J$,Z$,Q$,H2;var a1=H(()=>{e();d1();c2();H0();a8={inputTokens:2,outputTokens:10,promptCacheWriteTokens:2.5,promptCacheWrite1hTokens:4,promptCacheReadTokens:0.2,webSearchRequests:0.01},S0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},n1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},c={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},l1={inputTokens:4,outputTokens:20,promptCacheWriteTokens:5,promptCacheWrite1hTokens:8,promptCacheReadTokens:0.2,webSearchRequests:0.01},r8={inputTokens:8,outputTokens:40,promptCacheWriteTokens:10,promptCacheWrite1hTokens:16,promptCacheReadTokens:0.4,webSearchRequests:0.01},o8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:0.25,webSearchRequests:0.01},e8={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},s1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},$$={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},J$={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z$=c,Q$=[{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}}];H2={[R(_2.firstParty)]:$$,[R(S2.firstParty)]:J$,[R(T2.firstParty)]:S0,[R(I2.firstParty)]:S0,[R(M2.firstParty)]:S0,[R(A2.firstParty)]:S0,[R(p2.firstParty)]:S0,[R(m2.firstParty)]:a8,[R(C2.firstParty)]:n1,[R(f2.firstParty)]:n1,[R(u2.firstParty)]:c,[R(t0.firstParty)]:c,[R(i0.firstParty)]:c,[R(l0.firstParty)]:c,[R(b0.firstParty)]:c,[R(k0.firstParty)]:l1,[R(g2.firstParty)]:o8,"claude-fable-5":e8}});function d($){return W$.includes($)}function R0($){return z$.includes($)}var W$,z$;var x5=H(()=>{W$=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];z$=["sonnet","opus","haiku"]});function B$($,J){if($.includes(J))return!0;if(d($))return I($).toLowerCase().includes(J);return!1}function r1($,J){if(!$.startsWith(J))return!1;return $.length===J.length||$[J.length]==="-"}function x$($,J){let Z=d($)?I($).toLowerCase():$;if(r1(Z,J))return!0;if(!J.startsWith("claude-")&&r1(Z,`claude-${J}`))return!0;return!1}function o1($,J){for(let Z of J){if(R0(Z))continue;let Q=Z.indexOf($);if(Q===-1)continue;let Y=Q+$.length;if(Y===Z.length||Z[Y]==="-")return!0}return!1}function e1($){let J=D()||{},{availableModels:Z}=J;if(!Z)return!0;if(Z.length===0)return!1;let Y=$2($).trim().toLowerCase(),X=Z.map((q)=>q.trim().toLowerCase());if(X.includes(Y)){if(!R0(Y)||!o1(Y,X))return!0}for(let q of X)if(R0(q)&&!o1(q,X)&&B$(Y,q))return!0;if(d(Y)){let q=I(Y).toLowerCase();if(X.includes(q))return!0}for(let q of X)if(!R0(q)&&d(q)){if(I(q).toLowerCase()===Y)return!0}for(let q of X)if(!R0(q)&&!d(q)){if(x$(Y,q))return!0}return!1}var $4=H(()=>{W0();x5();H0();J2()});function w2($){if(typeof $!=="string")return;let J=$.trim();return J.length>0?J:void 0}function w0(){let $=F();if(!$?.model)return;return Q4($.model)}function $9(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let $=w0();if(j()==="gemini")return $||"gemini-2.0-flash-lite";if(j()==="mistral")return $||"ministral-3b-latest";if(j()==="openai")return $||"gpt-4o-mini";if(j()==="codex")return $||"codexspark";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5-highspeed";return q4()}function J9($){return $===B().opus40||$===B().opus41||$===B().opus45||$===B().opus46||$===B().opus47||$===B().opus48||$===B().opus5||$===B().opus55}function G2($){let J=L($);return J.includes("opus-5")||J.includes("sonnet-5")||J.includes("fable-5")}function G5(){let $,J=J4();if(J!==void 0)$=J;else{let Z=D()||{},Q=w2(Z.model),X=w0()||Q||void 0,q=Z4(),V=w2(q.activeModelForProject);if(V){let z=Y4()?.id,x=q.activeModelForProjectProfileId;$=x===void 0||x===z?V:X}else $=X}if($&&!e1($))return;return $}function Z9(){let $=G5();if($!==void 0&&$!==null)return I($);return V4()}function R$(){return Z0()}function Z0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let $=w0();if(j()==="gemini")return $||"gemini-2.5-pro";if(j()==="mistral")return $||"devstral-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(j()==="minimax")return $||"MiniMax-M2.7";if(j()!=="firstParty")return B().opus46;return B().opus55}function M0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let $=w0();if(j()==="gemini")return $||"gemini-2.0-flash";if(j()==="mistral")return $||"mistral-medium-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="nvidia-nim")return $||"nvidia/llama-3.1-nemotron-70b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5";if(j()!=="firstParty")return B().sonnet45;return B().sonnet5}function q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let $=w0();if(j()==="mistral")return $||"ministral-3b-latest";if(j()==="openai")return $||"gpt-4o-mini";if(j()==="codex")return $||"gpt-5.5";if(j()==="github")return $||"github:copilot";if(j()==="gemini")return $||"gemini-2.0-flash-lite";if(j()==="nvidia-nim")return $||"meta/llama-3.1-8b-instruct";if(j()==="minimax")return $||"MiniMax-M2.5-highspeed";return B().haiku45}function Q9($){let{permissionMode:J,mainLoopModel:Z,exceeds200kTokens:Q=!1}=$;if(G5()==="opusplan"&&J==="plan"&&!Q)return Z0();if(G5()==="haiku"&&J==="plan")return M0();return Z}function _0(){let $=w0();if(j()==="github"){let J=D()||{};return w2(J.model)||$||"github:copilot"}if(j()==="gemini")return $||"gemini-2.0-flash";if(j()==="mistral")return $||"devstral-latest";if(j()==="openai")return $||"gpt-4o";if(j()==="codex")return $||"gpt-5.5";if(F2()||L2()){let J=Z0();return J+(q5()&&!G2(J)?"[1m]":"")}return M0()}function V4(){return I(_0())}function R($){if($=$.toLowerCase(),$.includes("claude-fable-5-1"))return"claude-fable-5-1";if($.includes("claude-fable-5"))return"claude-fable-5";if($.includes("claude-opus-5-5"))return"claude-opus-5-5";if($.includes("claude-opus-5"))return"claude-opus-5";if($.includes("claude-opus-4-8"))return"claude-opus-4-8";if($.includes("claude-opus-4-7"))return"claude-opus-4-7";if($.includes("claude-opus-4-6"))return"claude-opus-4-6";if($.includes("claude-opus-4-5"))return"claude-opus-4-5";if($.includes("claude-opus-4-1"))return"claude-opus-4-1";if($.includes("claude-opus-4"))return"claude-opus-4";if($.includes("claude-sonnet-5"))return"claude-sonnet-5";if($.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if($.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if($.includes("claude-sonnet-4"))return"claude-sonnet-4";if($.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if($.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if($.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if($.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if($.includes("claude-3-opus"))return"claude-3-opus";if($.includes("claude-3-sonnet"))return"claude-3-sonnet";if($.includes("claude-3-haiku"))return"claude-3-haiku";let J=$.match(/(claude-(\d+-\d+-)?\w+)/);if(J&&J[1])return J[1];return $}function L($){return R($2($))}function w$($=!1){if(F2()||L2())return`Opus 5.5 · Most capable for complex work${$?K$(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function Y9($){if($==="opusplan")return"Opus 5.5 in plan mode, else Sonnet 5";return L$(I($))}function X9($){if(j()!=="firstParty")return"";let J=R2(W5($));return` ·${$?` (${K2})`:""} ${J}`}function q9($){if(j()!=="firstParty")return"";let J=R2(z5($));return` ·${$?` (${K2})`:""} ${J}`}function K$($){if(j()!=="firstParty")return"";let J=R2(B5($));return` ·${$?` (${K2})`:""} ${J}`}function q5(){if(Q0()||w5()||j()!=="firstParty")return!1;if(S()&&g()===null)return!1;return!0}function F$($){if(j()==="openai"||j()==="gemini"||j()==="codex"||j()==="github"){if(d2[$])return d2[$];if(j()==="github"){let{getCopilotDisplayName:J}=(v0(),E0(P0));return J($)??null}return null}switch($){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable51:return"Fable 5.1";case B().opus55:return"Opus 5.5";case B().opus5:return"Opus 5";case B().opus48:return"Opus 4.8";case B().opus48+"[1m]":return"Opus 4.8 (1M context)";case B().opus47:return"Opus 4.7";case B().opus47+"[1m]":return"Opus 4.7 (1M context)";case B().opus46:return"Opus 4.6";case B().opus46+"[1m]":return"Opus 4.6 (1M context)";case B().opus45:return"Opus 4.5";case B().opus41:return"Opus 4.1";case B().opus40:return"Opus 4";case B().sonnet5:return"Sonnet 5";case B().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case B().sonnet46:return"Sonnet 4.6";case B().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case B().sonnet45:return"Sonnet 4.5";case B().sonnet40:return"Sonnet 4";case B().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case B().sonnet37:return"Sonnet 3.7";case B().sonnet35:return"Sonnet 3.5";case B().haiku45:return"Haiku 4.5";case B().haiku35:return"Haiku 3.5";default:return null}}function L$($){let J=F$($);if(J)return J;if($==="github:copilot")return"GPT-4o";return $}function I($){let J=w2($);if(!J)return M0();let Z=J.toLowerCase(),Q=n(Z),Y=Q?Z.replace(/\[1m]$/i,"").trim():Z;if(d(Y)){let X=(q)=>Q&&!G2(q)?q+"[1m]":q;switch(Y){case"opusplan":return X(M0());case"sonnet":return X(M0());case"haiku":return X(q4());case"opus":return X(Z0());case"best":return R$();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5"||Y==="fable51")return B().fable51;if(j()==="firstParty"&&b$(Y)&&k$())return Z0()+(Q?"[1m]":"");if(Q)return J.replace(/\[1m\]$/i,"").trim()+"[1m]";return J}function V9($,J){if(n($)||!n(J))return $;if(H5(I($)))return $+"[1m]";return $}function b$($){return D$.includes($)}function k$(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function j9($){if($===null){if(S())return`Default (${w$()})`;return`Default (${V4()})`}let J=I($);return $===J?J:`${$} (${J})`}function W9($){if(j()==="foundry")return;let J=$.toLowerCase().includes("[1m]"),Z=L($);if(Z.includes("claude-fable-5-1"))return"Fable 5.1";if(Z.includes("claude-fable-5"))return"Fable 5";if(Z.includes("claude-opus-5-5"))return"Opus 5.5";if(Z.includes("claude-opus-5"))return"Opus 5";if(Z.includes("claude-opus-4-8"))return J?"Opus 4.8 (with 1M context)":"Opus 4.8";if(Z.includes("claude-opus-4-7"))return J?"Opus 4.7 (with 1M context)":"Opus 4.7";if(Z.includes("claude-opus-4-6"))return J?"Opus 4.6 (with 1M context)":"Opus 4.6";if(Z.includes("claude-opus-4-5"))return"Opus 4.5";if(Z.includes("claude-opus-4-1"))return"Opus 4.1";if(Z.includes("claude-opus-4"))return"Opus 4";if(Z.includes("claude-sonnet-5"))return"Sonnet 5";if(Z.includes("claude-sonnet-4-6"))return J?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(Z.includes("claude-sonnet-4-5"))return J?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(Z.includes("claude-sonnet-4"))return J?"Sonnet 4 (with 1M context)":"Sonnet 4";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-haiku-4-5"))return"Haiku 4.5";if(Z.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function z9($){return $.replace(/\[(1|2)m\]/gi,"")}function B9($){let J=L($);return J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")||J.includes("sonnet-5")}var D$;var H0=H(()=>{e();o();j0();X4();q0();R5();f();H$();J2();a1();W0();u();G$();$4();x5();n2();D$=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function K5($){return}var j4=()=>{};function v$($,J={}){if(J.isPro??(P$.test($)||W4.has($)))return!1;if(N$.has($))return!0;if(W4.has($))return!1;let Q=$.match(U$);return Q?Number.parseFloat(Q[1])>5.4:!1}function H9(){return D2.filter(($)=>v$($.id,{isPro:$.isPro}))}var D2,N$,W4,U$,P$,z4,B4;var x4=H(()=>{D2=[{id:"gpt-5.6-sol",label:"gpt-5.6-sol",description:"GPT-5.6 Sol - flagship, high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-terra",label:"gpt-5.6-terra",description:"GPT-5.6 Terra with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.6-luna",label:"gpt-5.6-luna",description:"GPT-5.6 Luna with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.5",label:"gpt-5.5",description:"GPT-5.5 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.4",label:"gpt-5.4",description:"GPT-5.4 with high reasoning",reasoningEffort:"high",contextInput:1050000,contextOutput:128000},{id:"gpt-5.3-codex",label:"gpt-5.3-codex",description:"GPT-5.3 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.3-codex-spark",label:"gpt-5.3-codex-spark",description:"GPT-5.3 Codex Spark for fast tool loops"},{id:"codexspark",label:"codexspark",description:"GPT-5.3 Codex Spark alias for fast tool loops"},{id:"gpt-5.2-codex",label:"gpt-5.2-codex",description:"GPT-5.2 Codex with high reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-max",label:"gpt-5.1-codex-max",description:"GPT-5.1 Codex Max for deep reasoning",reasoningEffort:"high"},{id:"gpt-5.1-codex-mini",label:"gpt-5.1-codex-mini",description:"GPT-5.1 Codex Mini - faster, cheaper"},{id:"gpt-5.5-mini",label:"gpt-5.5-mini",description:"GPT-5.5 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000},{id:"gpt-5.4-mini",label:"gpt-5.4-mini",description:"GPT-5.4 Mini - faster, cheaper",reasoningEffort:"medium",contextInput:400000,contextOutput:128000}],N$=new Set(D2.filter(($)=>!$.isPro).map(($)=>$.id)),W4=new Set(["gpt-5.5-pro"]),U$=/^gpt-(\d+\.\d+)/,P$=/-pro$/;z4=Object.fromEntries(D2.filter(($)=>$.contextInput!==void 0).map(($)=>[$.id,$.contextInput])),B4=Object.fromEntries(D2.filter(($)=>$.contextOutput!==void 0).map(($)=>[$.id,$.contextOutput]))});var L4={};i2(L4,{prefetchOpenAICompatibleModels:()=>A$,getDiscoveredContextWindow:()=>E$,discoverOpenAICompatibleModelOptions:()=>F4});function E$($){return w4.get($)}function O$(){return(F()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function K4($){try{let J=new URL($).hostname.toLowerCase();return J.endsWith(".openai.azure.com")||J.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function y$($){try{return new URL($).hostname.toLowerCase().includes("bankr")}catch{return!1}}function h$($){let J=F()?.apiKey?.trim();if(!J)return{};if(y$($))return{"X-API-Key":J};let Z={Authorization:`Bearer ${J}`};if(K4($))Z["api-key"]=J;return Z}function I$($){let J=$.endsWith("/v1")?`${$}/models`:`${$}/v1/models`,Z=`${$}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&K4($)?(X)=>{try{let q=new URL(X);return q.searchParams.set("api-version",Q),q.toString()}catch{return X}}:(X)=>X;if(J===Z)return[Y(J)];return[Y(J),Y(Z)]}function T$($){try{let J=new URL($),Z=J.pathname.replace(/\/+$/,""),Y=`${Z.endsWith("/v1")?Z.slice(0,-3):Z}/api/tags`.replace(/\/{2,}/g,"/");return`${J.origin}${Y}`}catch{return null}}function _$($){if($>=1e6)return`${$/1e6}M ctx`;if($>=1000)return`${Math.round($/1000)}K ctx`;return`${$} ctx`}async function S$($,J){let Z=new Set;for(let Q of $)try{let Y=await U.get(Q,{headers:J,timeout:R4}),X=[];for(let q of Y.data?.data??[]){let V=q.id?.trim();if(!V||Z.has(V))continue;Z.add(V);let z=q.name?.trim()||V,x=q.context_length??null;if(x&&x>0)w4.set(V,x);let G=x?` · ${_$(x)}`:"";X.push({value:V,label:z,description:`${V}${G}`})}if(X.length>0)return X.sort((q,V)=>{let z=String(q.value).split("/")[0]??"",x=String(V.value).split("/")[0]??"",G=z.localeCompare(x);return G!==0?G:String(q.value).localeCompare(String(V.value))}),X}catch{W(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function M$($,J){try{let Z=await U.get($,{headers:J,timeout:R4}),Q=new Set;return(Z.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return W(`[ModelDiscovery] Failed to fetch Ollama models from ${$}`),[]}}async function F4(){if(j()!=="openai")return[];let $=O$(),J=h$($),Z=await S$(I$($),J);if(Z.length>0)return Z;let Q=T$($);if(Q)return M$(Q,J);return[]}function A$(){if(A0)return A0;return A0=(async()=>{if(!H4()?.startsWith("openai:"))return;try{let J=await F4();if(J.length>0)G4(J)}catch{}finally{A0=null}})(),A0}var R4=5000,w4,A0=null;var D4=H(()=>{Z2();o();$1();r();u();X4();w4=new Map});function k4($,J,Z){let Q=F()?.model?.trim();if(Q&&Q!==Z){let X=`${Q}:${Z}`;if(J[X]!==void 0)return J[X];if($[X]!==void 0)return $[X]}let Y=b4(J,Z);if(Y!==void 0)return Y;return b4($,Z)}function b4($,J){if($[J]!==void 0)return $[J];let Z=Object.keys($).sort((Q,Y)=>Y.length-Q.length);for(let Q of Z)if(J.startsWith(Q))return $[Q];return}function N4($){try{let{getDiscoveredContextWindow:Z}=(D4(),E0(L4)),Q=Z($);if(Q!==void 0)return Q}catch{}let J=k4(C$,u$,$);if(J!==void 0)return J;try{let{getCatalogCopilotContextWindow:Z}=(v0(),E0(P0));return Z($)}catch{return}}function U4($){let J=k4(f$,g$,$);if(J!==void 0)return J;try{let{getCatalogCopilotMaxOutputTokens:Z}=(v0(),E0(P0));return Z($)}catch{return}}var C$,f$,u$,g$;var P4=H(()=>{o();x4();C$={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,...z4,"gpt-5.5-nano":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,k3:1048576,"kimi-for-coding":262144,"kimi-for-coding-highspeed":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},f$={"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,...B4,"gpt-5.5-nano":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,k3:32768,"kimi-for-coding":32768,"kimi-for-coding-highspeed":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},u$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})(),g$=(()=>{try{let $=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if($){let J=JSON.parse($);if(typeof J==="object"&&J!==null)return J}}catch{}return{}})()});function v4(){let $=F()?.transport;return $==="openai_compat"||$==="gemini"||$==="mistral"||$==="github_copilot"||$==="codex_responses"}function Q0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function n($){if(Q0())return!1;return/\[1m\]/i.test($)}function H5($){if(Q0())return!1;let J=L($);return J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("opus-4-6")||J.includes("opus-4-7")||J.includes("opus-4-8")||J.includes("opus-5")||J.includes("fable-5")}function M9($,J){if(n($))return 1e6;if(v4()){let Q=N4($);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${$}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),p$}let Z=K5($);if(Z?.max_input_tokens&&Z.max_input_tokens>=1e5){if(Z.max_input_tokens>F5&&Q0())return F5;return Z.max_input_tokens}if(!Q0()&&(L($).includes("fable-5")||L($).includes("sonnet-5")||L($).includes("opus-5")))return 1e6;if(J?.includes(h0)&&H5($))return 1e6;if(d$($))return 1e6;return F5}function d$($){if(Q0())return!1;if(n($))return!1;if(!L($).includes("sonnet-4-6"))return!1;return k().clientDataCache?.coral_reef_sonnet==="true"}function A9($,J){if(!$)return{used:null,remaining:null};let Z=$.input_tokens+$.cache_creation_input_tokens+$.cache_read_input_tokens,Q=Math.round(Z/J*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function C9($){let J,Z;if(v4()){let X=U4($);if(X!==void 0)return{default:X,upperLimit:X}}let Q=L($);if(Q.includes("opus-5-5"))J=128000,Z=128000;else if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("sonnet-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))J=64000,Z=128000;else if(Q.includes("sonnet-4-6"))J=32000,Z=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))J=32000,Z=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))J=32000,Z=32000;else if(Q.includes("claude-3-opus"))J=4096,Z=4096;else if(Q.includes("claude-3-sonnet"))J=8192,Z=8192;else if(Q.includes("claude-3-haiku"))J=4096,Z=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))J=8192,Z=8192;else if(Q.includes("3-7-sonnet"))J=32000,Z=64000;else J=m$,Z=c$;let Y=K5($);if(Y?.max_tokens&&Y.max_tokens>=4096)Z=Y.max_tokens,J=Math.min(J,Z);return{default:J,upperLimit:Z}}var F5=200000,p$,T9=20000,m$=32000,c$=64000,_9=8000,S9=64000;var R5=H(()=>{W2();o();j0();f();H0();j4();P4();p$=(()=>{let $=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN($)&&$>0?$:128000})()});var n$,E4;var O4=H(()=>{d0();u();n$=[{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"}],E4=h(($,J)=>{if(j()==="firstParty")return;let Z=$.toLowerCase();for(let Q of n$){let Y=process.env[Q.modelEnvVar],X=process.env[Q.capabilitiesEnvVar];if(!Y||X===void 0)continue;if(Z!==Y.toLowerCase())continue;return X.toLowerCase().split(",").map((q)=>q.trim()).includes(J)}return},($,J)=>`${$.toLowerCase()}:${J}`)});function i$($){if($.provider!=="firstParty"||!$.profileIsFirstParty)return!1;if(!$.envBaseUrl||$.assumeFirstParty)return!0;try{return new URL($.envBaseUrl).host===t$}catch{return!1}}function D5(){return i$({provider:j(),profileIsFirstParty:Y1(),envBaseUrl:process.env.ANTHROPIC_BASE_URL,assumeFirstParty:K(process.env.CLAUDIN_ASSUME_FIRST_PARTY_BASE_URL)})}function b2($){return!C0.has($)&&!K(process.env[L5[$].killswitch])&&D5()}function n9($){return C0.has($)}function t9($){C0.add($)}function i9($){if(C0.size===0)return[...$];let J=new Set([...C0].map((Z)=>L5[Z].header));return $.filter((Z)=>!J.has(Z))}function l9($,J){if($!==400||!J)return null;let Z=l$.exec(J)?.[1];if(Z!==void 0){for(let[Q,{header:Y}]of Object.entries(L5))if(Y&&Z.includes(Y))return Q;return null}if(s$.test(J))return"thinkingDisplayUpdates";if(a$.test(J))return"cacheDiagnosis";if(r$.test(J))return"contextManagement";return null}var L5,t$="api.anthropic.com",C0,l$,s$,a$,r$;var y4=H(()=>{W2();f();u();L5={thinkingDisplayUpdates:{header:y1,killswitch:"CLAUDIN_DISABLE_THINKING_DISPLAY_UPDATES"},thinkingTokenCount:{header:x0,killswitch:"CLAUDIN_DISABLE_THINKING_TOKEN_COUNT"},contextManagement:{header:V2,killswitch:"CLAUDIN_DISABLE_CONTEXT_MANAGEMENT"},promptCachingScope:{header:j2,killswitch:"CLAUDIN_DISABLE_PROMPT_CACHING_SCOPE"},cacheDiagnosis:{header:h1,killswitch:"CLAUDIN_DISABLE_CACHE_DIAGNOSIS"},afkMode:{header:_1,killswitch:"CLAUDIN_DISABLE_AFK_MODE_BETA"}};C0=new Set;l$=/Unexpected value\(s\) (.+?) for the `anthropic-beta` header/,s$=/\bthinking\.(?:adaptive|enabled)\.display:/,a$=/\bdiagnostics(?:\.[a-z_]+)*:/,r$=/\bcontext_management(?:\.[a-z_0-9]+)*:/});function o$($){let J=[],Z=[];for(let Q of $)if(T4.includes(Q))J.push(Q);else Z.push(Q);return{allowed:J,disallowed:Z}}function zQ($){if(!$||$.length===0)return;if(S()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:J,disallowed:Z}=o$($);for(let Q of Z)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${T4.join(", ")}`);return J.length>0?J:void 0}function b5($){let J=E4($,"interleaved_thinking");if(J!==void 0)return J;let Z=L($),Q=j();if(Q==="foundry")return!0;if(Q==="firstParty")return!Z.includes("claude-3-");return Z.includes("claude-opus-4")||Z.includes("claude-opus-5")||Z.includes("claude-sonnet-5")||Z.includes("claude-sonnet-4")}function e$($){let J=L($);return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("claude-haiku-4")}function $J($){let J=L($),Z=j();if(Z==="foundry")return!0;if(Z==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")||J.includes("claude-haiku-4")}function JJ($){let J=L($),Z=j();if(Z!=="firstParty"&&Z!=="foundry")return!1;return J.includes("claude-fable-5")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4-6")||J.includes("claude-sonnet-4-5")||J.includes("claude-opus-4-1")||J.includes("claude-opus-4-5")||J.includes("claude-opus-4-6")||J.includes("claude-opus-4-7")||J.includes("claude-opus-4-8")||J.includes("claude-haiku-4-5")}function ZJ($){if(j()!=="firstParty")return!1;let J=L($);return J.includes("claude-opus-5-5")||J.includes("claude-fable-5-1")}function BQ($){let J=L($);if(!J.startsWith("claude-"))return!1;if(J.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test(J))return!1;return!0}function xQ(){let $=j();if($==="vertex"||$==="bedrock")return E1;return v1}function QJ(){return(j()==="firstParty"||j()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function GQ(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return j()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function HQ($,J){let Z=[..._4($)];if(J?.isAgenticQuery){if(!Z.includes(q2))Z.push(q2)}let Q=h4();if(!Q||Q.length===0)return Z;return[...Z,...Q.filter((Y)=>!Z.includes(Y))]}function S4(){k5.cache?.clear?.(),_4.cache?.clear?.(),YJ.cache?.clear?.()}var T4,k5,_4,YJ;var M4=H(()=>{d0();C1();e();W2();y0();q0();R5();f();H0();O4();u();W0();y4();T4=[h0];k5=h(($)=>{let J=[],Z=L($).includes("haiku"),Q=j(),Y=QJ();if(!Z)J.push(q2);if(S())J.push(B2);if(n($))J.push(h0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&b5($))J.push(U1);if(Y&&b5($)&&!A()&&D().showThinkingSummaries!==!0&&!D5())J.push(O1),J.push(x0);if(b5($)&&b2("thinkingTokenCount")&&!J.includes(x0))J.push(x0);let X=$J($);if((Y||b2("contextManagement"))&&X)J.push(V2);if(ZJ($))J.push(I1);let q=I4("tengu_tool_pear"),V=!q&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||T0("tengu_amber_json_tools",!1));if(Y&&JJ($)&&q)J.push(P1);if(Y&&V)J.push(T1);if(Q==="vertex"&&e$($))J.push(Z5);if(Q==="foundry")J.push(Z5);if(Y||b2("promptCachingScope"))J.push(j2);if(process.env.ANTHROPIC_BETAS)J.push(...process.env.ANTHROPIC_BETAS.split(",").map((z)=>z.trim()).filter(Boolean));return J}),_4=h(($)=>{let J=k5($);if(j()==="bedrock")return J.filter((Z)=>!Q5.has(Z));return J}),YJ=h(($)=>{return k5($).filter((Z)=>Q5.has(Z))})});import{execFile as XJ}from"child_process";function A4($){return new Promise((J)=>{XJ("security",["find-generic-password","-a",N2(),"-w","-s",$],{encoding:"utf-8",timeout:qJ},(Z,Q)=>{J({stdout:Z?null:Q?.trim()||null,timedOut:Boolean(Z&&"killed"in Z&&Z.killed)})})})}function LQ(){if(process.platform!=="darwin"||k2||C())return;let $=A4(m(C4)),J=A4(m());k2=Promise.all([$,J]).then(([Z,Q])=>{if(!Z.timedOut)f4(Z.stdout);if(!Q.timedOut)N5={stdout:Q.stdout}})}async function DQ(){if(k2)await k2}function u4(){return N5}function U5(){N5=null}var qJ=1e4,N5=null,k2=null;var g4=H(()=>{f();e2()});function kQ(){return p4}function m4(){p4.clear()}var p4;var c4=H(()=>{p4=new Map});var cJ={};i2(cJ,{validateForceLoginOrg:()=>mJ,saveOAuthTokensIfNeeded:()=>q8,saveApiKey:()=>g5,removeApiKey:()=>MJ,refreshGcpCredentialsIfNeeded:()=>u5,refreshGcpAuth:()=>Y8,refreshAwsAuth:()=>Z8,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>TJ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>_J,prefetchApiKeyFromApiKeyHelperIfSafe:()=>bJ,isUsing3PServices:()=>P2,isTeamSubscriber:()=>uJ,isTeamPremiumSubscriber:()=>L2,isProSubscriber:()=>w5,isMaxSubscriber:()=>F2,isGcpAuthRefreshFromProjectSettings:()=>f5,isEnterpriseSubscriber:()=>gJ,isClaudeAISubscriber:()=>S,isAwsCredentialExportFromProjectSettings:()=>A5,isAwsAuthRefreshFromProjectSettings:()=>S5,isAnthropicAuthEnabled:()=>D0,is1PApiCustomer:()=>fJ,hasProfileScope:()=>J0,handleOAuth401Error:()=>j5,getSubscriptionType:()=>g,getSubscriptionName:()=>j8,getRateLimitTier:()=>V8,getOauthAccountInfo:()=>O5,getConfiguredApiKeyHelper:()=>t,getClaudeAIOAuthTokensAsync:()=>g0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>T5,getApiKeyHelperElapsedMs:()=>FJ,getApiKeyFromConfigOrMacOSKeychain:()=>O2,getApiKeyFromApiKeyHelperCached:()=>v5,getApiKeyFromApiKeyHelper:()=>J8,getAnthropicApiKeyWithSource:()=>E2,getAnthropicApiKey:()=>V5,getAccountInformation:()=>pJ,clearOAuthTokenCache:()=>p5,clearGcpCredentialsCache:()=>IJ,clearAwsCredentialsCache:()=>vJ,clearApiKeyHelperCache:()=>DJ,checkGcpCredentialsValid:()=>Q8,checkAndRefreshOAuthTokenIfNeeded:()=>m0,calculateApiKeyHelperTTL:()=>$8});import{exec as o4}from"child_process";import{mkdir as HJ,stat as RJ}from"fs/promises";import{join as wJ}from"path";function U2(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function D0(){if(C())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let $=P2(),Z=(D()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||Z||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=E2({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let X=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!($||Q&&!U2()||X&&!U2())}function T5(){if(C()){if(t())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!U2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X2()){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(t()&&!U2())return{source:"apiKeyHelper",hasToken:!0};let Z=w();if(L0(Z?.scopes)&&Z?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function V5(){let{key:$}=E2();return $}function E2($={}){let J=(()=>{let q=F();if(q?.transport!=="anthropic")return;let V=q.apiKey?.trim();return V&&V.length>0?V:void 0})();if(C()){if(J)return{key:J,source:"ANTHROPIC_API_KEY"};if(t())return{key:$.skipRetrievingKeyFromApiKeyHelper?null:v5(),source:"apiKeyHelper"};return{key:null,source:"none"}}let Z=J;if(z2()&&Z)return{key:Z,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let q=o2();if(q)return{key:q,source:"ANTHROPIC_API_KEY"};if(!P2()&&!Z&&!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(Z&&!P2())return{key:Z,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(Z&&k().customApiKeyResponses?.approved?.includes($5(Z)))return{key:Z,source:"ANTHROPIC_API_KEY"};let Q=o2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(t()){if($.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:v5(),source:"apiKeyHelper"}}let X=O2();if(X)return X;return{key:null,source:"none"}}function t(){if(C())return E("flagSettings")?.apiKeyHelper;return(D()||{}).apiKeyHelper}function e4(){let $=t();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.apiKeyHelper===$||Z?.apiKeyHelper===$}function _5(){return(D()||{}).awsAuthRefresh}function S5(){let $=_5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsAuthRefresh===$||Z?.awsAuthRefresh===$}function M5(){return(D()||{}).awsCredentialExport}function A5(){let $=M5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.awsCredentialExport===$||Z?.awsCredentialExport===$}function $8(){let $=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if($){let J=parseInt($,10);if(!Number.isNaN(J)&&J>=0)return J;W(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${$}`,{level:"error"})}return KJ}function FJ(){let $=p?.startedAt;return $?Date.now()-$:0}async function J8($){if(!t())return null;let J=$8();if(y){if(Date.now()-y.timestamp<J)return y.value;if(!p)p={promise:d4($,!1,F0),startedAt:null};return y.value}if(p)return p.promise;return p={promise:d4($,!0,F0),startedAt:Date.now()},p.promise}async function d4($,J,Z){try{let Q=await LJ($);if(Z!==F0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(Z!==F0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(M.red(`apiKeyHelper failed: ${Y}`)),W(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!J&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(Z===F0)p=null}}async function LJ($){let J=t();if(!J)return null;if(e4()){if(!i()&&!$){let X=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("apiKeyHelper invoked before trust check",X),null}}let Z=await B0(J,{shell:!0,timeout:600000,reject:!1});if(Z.failed){let Y=Z.timedOut?"timed out":`exited ${Z.exitCode}`,X=Z.stderr?.trim();throw Error(X?`${Y}: ${X}`:Y)}let Q=Z.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function v5(){return y?.value??null}function DJ(){F0++,y=null,p=null}function bJ($){if(e4()&&!i())return;J8($)}async function NJ(){let $=_5();if(!$)return!1;if(S5()){if(!i()&&!A()){let Z=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("awsAuthRefresh invoked before trust check",Z),!1}}try{return W("Fetching AWS caller identity for AWS auth refresh command"),await J5(),W("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return Z8($)}}function Z8($){W("Running AWS auth refresh command");let J=T.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=o4($,{timeout:UJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("AWS auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let V=X==="SIGTERM"?M.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):M.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),J.endAuthentication(!1),Z(!1)}})})}async function PJ(){let $=M5();if(!$)return null;if(A5()){if(!i()&&!A()){let Z=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("awsCredentialExport invoked before trust check",Z),null}}try{return W("Fetching AWS caller identity for credential export command"),await J5(),W("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{W("Running AWS credential export command");let J=await B0($,{shell:!0,reject:!1});if(J.exitCode!==0||!J.stdout)throw Error("awsCredentialExport did not return a valid value");let Z=t4(J.stdout.trim());if(!L1(Z))throw Error("awsCredentialExport did not return valid AWS STS output structure");return W("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:Z.Credentials.AccessKeyId,secretAccessKey:Z.Credentials.SecretAccessKey,sessionToken:Z.Credentials.SessionToken}}catch(J){let Z=M.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if(J instanceof Error)console.error(Z,J.message);else console.error(Z,J);return null}}}function vJ(){X0.cache.clear()}function C5(){return(D()||{}).gcpAuthRefresh}function f5(){let $=C5();if(!$)return!1;let J=E("projectSettings"),Z=E("localSettings");return J?.gcpAuthRefresh===$||Z?.gcpAuthRefresh===$}async function Q8(){try{let{GoogleAuth:$}=await import("google-auth-library"),J=new $({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),Z=(async()=>{await(await J.getClient()).getAccessToken()})(),Q=I5(EJ).then(()=>{throw new W8("GCP credentials check timed out")});return await Promise.race([Z,Q]),!0}catch{return!1}}async function yJ(){let $=C5();if(!$)return!1;if(f5()){if(!i()&&!A()){let Z=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return p0("gcpAuthRefresh invoked before trust check",Z),!1}}try{if(W("Checking GCP credentials validity for auth refresh"),await Q8())return W("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y8($)}function Y8($){W("Running GCP auth refresh command");let J=T.getInstance();return J.startAuthentication(),new Promise((Z)=>{let Q=o4($,{timeout:hJ});Q.stdout.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.addOutput(X),W(X,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let X=Y.toString().trim();if(X)J.setError(X),W(X,{level:"error"})}),Q.on("close",(Y,X)=>{if(Y===0)W("GCP auth refresh completed successfully"),J.endAuthentication(!0),Z(!0);else{let V=X==="SIGTERM"?M.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):M.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),J.endAuthentication(!1),Z(!1)}})})}function IJ(){u5.cache.clear()}function TJ(){if(!C5())return;if(f5()){if(!i()&&!A())return}u5()}function _J(){let $=_5(),J=M5();if(!$&&!J)return;if(S5()||A5()){if(!i()&&!A())return}X0(),B()}function SJ($){return/^[a-zA-Z0-9-_]+$/.test($)}async function g5($){if(!SJ($))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await X8();let J=!1;if(process.platform==="darwin")try{let Q=m(),Y=N2(),X=Buffer.from($,"utf-8").toString("hex"),q=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${X}"
2
+ `;await B0("security",["-i"],{input:q,reject:!1}),J=!0}catch(Q){b(Q)}let Z=$5($);_((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:J?Q.primaryApiKey:$,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(Z)?Y:[...Y,Z],rejected:Q.customApiKeyResponses?.rejected??[]}}}),O2.cache.clear?.(),U5()}async function MJ(){await X8(),_(($)=>({...$,primaryApiKey:void 0})),O2.cache.clear?.(),U5()}async function X8(){try{await K1()}catch($){b($)}}function q8($){if(!L0($.scopes))return{success:!0};if(!$.refreshToken||!$.expiresAt)return{success:!0};let J=v2();try{let Z=J.read()||{},Q=Z.claudeAiOauth;Z.claudeAiOauth={accessToken:$.accessToken,refreshToken:$.refreshToken,expiresAt:$.expiresAt,scopes:$.scopes,subscriptionType:$.subscriptionType??Q?.subscriptionType??null,rateLimitTier:$.rateLimitTier??Q?.rateLimitTier??null};let Y=J.update(Z);return w.cache?.clear?.(),S4(),m4(),Y}catch(Z){return b(Z),{success:!1,warning:"Failed to save OAuth tokens"}}}function p5(){w.cache?.clear?.(),K0()}async function AJ(){try{let{mtimeMs:$}=await RJ(wJ(y5(),".credentials.json"));if($!==n4)n4=$,p5()}catch{w.cache?.clear?.()}}function j5($){let J=P5.get($);if(J)return J;let Z=CJ($).finally(()=>{P5.delete($)});return P5.set($,Z),Z}async function CJ($){p5();let J=await g0();if(!J?.refreshToken)return!1;if(J.accessToken!==$)return!0;return m0(0,!0)}async function g0(){if(C())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X2())return w();try{let Z=(await v2().readAsync())?.claudeAiOauth;if(!Z?.accessToken)return null;return Z}catch($){return b($),null}}function m0($=0,J=!1){if($===0&&!J){if(f0)return f0;return f0=E5($,J).finally(()=>{f0=null}),f0}return E5($,J)}async function E5($,J){await AJ();let Q=w();if(!J){if(!Q?.refreshToken||!u0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!L0(Q.scopes))return!1;w.cache?.clear?.(),K0();let Y=await g0();if(!Y?.refreshToken||!u0(Y.expiresAt))return!1;let X=y5();await HJ(X,{recursive:!0});let q;try{q=await l4(X)}catch(V){if(V.code==="ELOCKED"){if($<5)return await I5(1000+Math.random()*1000),E5($+1,J);return!1}return b(V),!1}try{w.cache?.clear?.(),K0();let V=await g0();if(!V?.refreshToken||!u0(V.expiresAt))return!1;let z=await a4(V.refreshToken,{scopes:L0(V.scopes)?void 0:V.scopes});return q8(z),w.cache?.clear?.(),K0(),!0}catch(V){b(V),w.cache?.clear?.(),K0();let z=await g0();if(z&&!u0(z.expiresAt))return!0;return!1}finally{await q()}}function S(){if(!D0())return!1;return L0(w()?.scopes)}function J0(){return w()?.scopes?.includes(i4)??!1}function fJ(){{let $=F()?.transport;if($==="bedrock"||$==="vertex"||$==="foundry")return!1}if(S())return!1;return!0}function O5(){return D0()?k().oauthAccount:void 0}function g(){if(!D0())return null;let $=w();if(!$)return null;return $.subscriptionType??null}function F2(){return g()==="max"}function uJ(){return g()==="team"}function L2(){return g()==="team"&&V8()==="default_claude_max_5x"}function gJ(){return g()==="enterprise"}function w5(){return g()==="pro"}function V8(){if(!D0())return null;let $=w();if(!$)return null;return $.rateLimitTier??null}function j8(){switch(g()){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 P2(){let $=F()?.transport;if(!$)return!1;return $!=="anthropic"}function pJ(){if(j()!=="firstParty")return;let{source:J}=T5(),Z={};if(J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")Z.tokenSource=J;else if(S())Z.subscription=j8();else Z.tokenSource=J;let{key:Q,source:Y}=E2();if(Q)Z.apiKeySource=Y;if(J==="claude.ai"||Y==="/login managed key"){let q=O5()?.organizationName;if(q)Z.organization=q}let X=O5()?.emailAddress;if((J==="claude.ai"||Y==="/login managed key")&&X)Z.email=X;return Z}async function mJ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!D0())return{valid:!0};let $=E("policySettings")?.forceLoginOrgUUID;if(!$)return{valid:!0};await m0();let J=w();if(!J)return{valid:!0};let{source:Z}=T5(),Q=Z==="CLAUDE_CODE_OAUTH_TOKEN"||Z==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await z0(J.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
+ This machine requires organization ${$} but the profile could not be fetched.
4
+ This may be a network error, or the token may lack the user:profile scope required for
5
+ verification (tokens from 'claude setup-token' do not include this scope).
6
+ Try again, or obtain a full-scope token via 'claude auth login'.`};let X=Y.organization.uuid;if(X===$)return{valid:!0};if(Q)return{valid:!1,message:`The ${Z==="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: ${$}
10
+ Token organization: ${X}
11
+
12
+ Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${X},
13
+ but this machine requires organization ${$}.
14
+
15
+ Please log in with the correct organization: claude auth login`}}var KJ=300000,y=null,p=null,F0=0,kJ=3600000,UJ=180000,X0,EJ=5000,OJ=3600000,hJ=180000,u5,O2,w,n4=0,P5,f0=null,W8;var q0=H(()=>{jJ();w1();d0();y0();J2();u();e();o();r4();a2();R1();F1();b1();N1();M4();j0();r();f();BJ();zJ();n0();WJ();xJ();g4();e2();W0();GJ();VJ();c4();X0=h5(async()=>{let $=await NJ(),J=await PJ();if($||J)await D1();return J},kJ);u5=h5(async()=>{return await yJ()},OJ);O2=h(()=>{if(C())return null;if(process.platform==="darwin"){let J=u4();if(J){if(J.stdout)return{key:J.stdout,source:"/login managed key"}}else{let Z=m();try{let Q=s4(`security find-generic-password -a $USER -w -s "${Z}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){b(Q)}}}let $=k();if(!$.primaryApiKey)return null;return{key:$.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(C())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 $=X2();if($)return{accessToken:$,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=v2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch(J){return b(J),null}});P5=new Map;W8=class W8 extends Error{}});function L0($){return Boolean($?.includes(m5))}function dJ($){return $?.split(" ").filter(Boolean)??[]}function j3({codeChallenge:$,state:J,port:Z,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:X,orgUUID:q,loginHint:V,loginMethod:z}){let x=Y?N().CLAUDE_AI_AUTHORIZE_URL:N().CONSOLE_AUTHORIZE_URL,G=new URL(x);G.searchParams.append("code","true"),G.searchParams.append("client_id",N().CLIENT_ID),G.searchParams.append("response_type","code"),G.searchParams.append("redirect_uri",Q?N().MANUAL_REDIRECT_URL:`http://localhost:${Z}/callback`);let Y0=X?[m5]:x8;if(G.searchParams.append("scope",Y0.join(" ")),G.searchParams.append("code_challenge",$),G.searchParams.append("code_challenge_method","S256"),G.searchParams.append("state",J),q)G.searchParams.append("orgUUID",q);if(V)G.searchParams.append("login_hint",V);if(z)G.searchParams.append("login_method",z);return G.toString()}async function W3($,J,Z,Q,Y=!1,X){let q={grant_type:"authorization_code",code:$,redirect_uri:Y?N().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:N().CLIENT_ID,code_verifier:Z,state:J};if(X!==void 0)q.expires_in=X;let V=await U.post(N().TOKEN_URL,q,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return V.data}async function a4($,{scopes:J}={}){let Z={grant_type:"refresh_token",refresh_token:$,client_id:N().CLIENT_ID,scope:((J?.length)?J:B8).join(" ")};try{let Q=await U.post(N().TOKEN_URL,Z,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:X,refresh_token:q=$,expires_in:V}=Y,z=Date.now()+V*1000,x=dJ(Y.scope),G=k(),Y0=w(),P=G.oauthAccount?.billingType!==void 0&&G.oauthAccount?.accountCreatedAt!==void 0&&G.oauthAccount?.subscriptionCreatedAt!==void 0&&Y0?.subscriptionType!=null&&Y0?.rateLimitTier!=null?null:await nJ(X);if(P&&G.oauthAccount){let l={};if(P.displayName!==void 0)l.displayName=P.displayName;if(typeof P.hasExtraUsageEnabled==="boolean")l.hasExtraUsageEnabled=P.hasExtraUsageEnabled;if(P.billingType!==null)l.billingType=P.billingType;if(P.accountCreatedAt!==void 0)l.accountCreatedAt=P.accountCreatedAt;if(P.subscriptionCreatedAt!==void 0)l.subscriptionCreatedAt=P.subscriptionCreatedAt;if(Object.keys(l).length>0)_((c0)=>({...c0,oauthAccount:c0.oauthAccount?{...c0.oauthAccount,...l}:c0.oauthAccount}))}return{accessToken:X,refreshToken:q,expiresAt:z,scopes:x,subscriptionType:P?.subscriptionType??Y0?.subscriptionType??null,rateLimitTier:P?.rateLimitTier??Y0?.rateLimitTier??null,profile:P?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=U.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw Q}}async function z3($){let J=await U.get(N().ROLES_URL,{headers:{Authorization:`Bearer ${$}`}});if(J.status!==200)throw Error(`Failed to fetch user roles: ${J.statusText}`);let Z=J.data;if(!k().oauthAccount)throw Error("OAuth account information not found in config");_((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:Z.organization_role,workspaceRole:Z.workspace_role,organizationName:Z.organization_name}:Y.oauthAccount}))}async function B3($){try{let Z=(await U.post(N().API_KEY_URL,null,{headers:{Authorization:`Bearer ${$}`}})).data?.raw_key;if(Z)return await g5(Z),Z;return null}catch(J){throw J}}function u0($){if($===null)return!1;let J=300000;return Date.now()+J>=$}async function nJ($){let J=await z0($),Z=J?.organization?.organization_type,Q=null;switch(Z){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:J?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:J?.organization?.has_extra_usage_enabled??null,billingType:J?.organization?.billing_type??null};if(J?.account?.display_name)Y.displayName=J.account.display_name;if(J?.account?.created_at)Y.accountCreatedAt=J.account.created_at;if(J?.organization?.subscription_created_at)Y.subscriptionCreatedAt=J.organization.subscription_created_at;return{...Y,rawProfile:J}}async function x3(){let J=k().oauthAccount?.organizationUuid;if(J)return J;let Z=w()?.accessToken;if(Z===void 0||!J0())return null;let Y=(await z0(Z))?.organization?.uuid;if(!Y)return null;return Y}async function G3(){let $=process.env.CLAUDE_CODE_ACCOUNT_UUID,J=process.env.CLAUDE_CODE_USER_EMAIL,Z=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean($&&J&&Z);if($&&J&&Z){if(!k().oauthAccount)z8({accountUuid:$,emailAddress:J,organizationUuid:Z})}await m0();let Y=k();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!S()||!J0())return!1;let X=w();if(X?.accessToken){let q=await z0(X.accessToken),V=q?.account,z=q?.organization;if(V){if(Q)W("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return z8({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:z?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:z?.has_extra_usage_enabled??!1,billingType:z?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:z?.subscription_created_at??void 0}),!0}}return!1}function z8({accountUuid:$,emailAddress:J,organizationUuid:Z,displayName:Q,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V}){let z={accountUuid:$,emailAddress:J,organizationUuid:Z,hasExtraUsageEnabled:Y,billingType:X,accountCreatedAt:q,subscriptionCreatedAt:V};if(Q)z.displayName=Q;_((x)=>{if(x.oauthAccount?.accountUuid===z.accountUuid&&x.oauthAccount?.emailAddress===z.emailAddress&&x.oauthAccount?.organizationUuid===z.organizationUuid&&x.oauthAccount?.displayName===z.displayName&&x.oauthAccount?.hasExtraUsageEnabled===z.hasExtraUsageEnabled&&x.oauthAccount?.billingType===z.billingType&&x.oauthAccount?.accountCreatedAt===z.accountCreatedAt&&x.oauthAccount?.subscriptionCreatedAt===z.subscriptionCreatedAt)return x;return{...x,oauthAccount:z}})}var r4=H(()=>{Z2();y0();q0();j0();r();a2()});
16
+ export{LQ as Z1,DQ as _1,g4 as $1,c5 as a2,d5 as b2,eJ as c2,$Z as d2,H8 as e2,K8 as f2,JZ as g2,l5 as h2,t0 as i2,k0 as j2,c2 as k2,s2 as l2,N8 as m2,v0 as n2,j as o2,xZ as p2,y8 as q2,GZ as r2,Y1 as s2,u as t2,B as u2,kZ as v2,J2 as w2,z0 as x2,a2 as y2,L0 as z2,dJ as A2,j3 as B2,W3 as C2,a4 as D2,z3 as E2,B3 as F2,u0 as G2,nJ as H2,x3 as I2,G3 as J2,z8 as K2,r4 as L2,SZ as M2,u8 as N2,j1 as O2,R1 as P2,$5 as Q2,F1 as R2,gZ as S2,b1 as T2,T as U2,N1 as V2,h0 as W2,V2 as X2,P1 as Y2,dZ as Z2,nZ as _2,j2 as $2,tZ as a3,iZ as b3,O1 as c3,y1 as d3,h1 as e3,I1 as f3,_1 as g3,lZ as h3,sZ as i3,W2 as j3,O as k3,u1 as l3,c8 as m3,B7 as n3,x7 as o3,G7 as p3,g1 as q3,H7 as r3,R7 as s3,d8 as t3,w7 as u3,K7 as v3,F7 as w3,L7 as x3,D7 as y3,i8 as z3,b7 as A3,k7 as B3,N7 as C3,U7 as D3,d1 as E3,S0 as F3,o8 as G3,$$ as H3,J$ as I3,W5 as J3,j$ as K3,h7 as L3,R2 as M3,a1 as N3,W$ as O3,x5 as P3,e1 as Q3,$4 as R3,$9 as S3,J9 as T3,G2 as U3,G5 as V3,Z9 as W3,R$ as X3,Z0 as Y3,M0 as Z3,q4 as _3,Q9 as $3,_0 as a4,V4 as b4,R as c4,L as d4,w$ as e4,Y9 as f4,X9 as g4,q9 as h4,K$ as i4,q5 as j4,F$ as k4,L$ as l4,I as m4,V9 as n4,k$ as o4,j9 as p4,W9 as q4,z9 as r4,B9 as s4,H0 as t4,H9 as u4,x4 as v4,F4 as w4,A$ as x4,D4 as y4,T9 as z4,_9 as A4,S9 as B4,Q0 as C4,n as D4,M9 as E4,d$ as F4,A9 as G4,C9 as H4,R5 as I4,E4 as J4,O4 as K4,L5 as L4,D5 as M4,b2 as N4,n9 as O4,t9 as P4,i9 as Q4,l9 as R4,y4 as S4,zQ as T4,JJ as U4,BQ as V4,xQ as W4,QJ as X4,GQ as Y4,_4 as Z4,YJ as _4,HQ as $4,S4 as a5,M4 as b5,kQ as c5,m4 as d5,c4 as e5,D0 as f5,T5 as g5,V5 as h5,E2 as i5,t as j5,S5 as k5,A5 as l5,$8 as m5,FJ as n5,J8 as o5,v5 as p5,DJ as q5,bJ as r5,Z8 as s5,X0 as t5,vJ as u5,f5 as v5,Q8 as w5,Y8 as x5,u5 as y5,IJ as z5,TJ as A5,_J as B5,O2 as C5,g5 as D5,MJ as E5,q8 as F5,w as G5,p5 as H5,j5 as I5,g0 as J5,m0 as K5,S as L5,J0 as M5,fJ as N5,O5,g as P5,F2 as Q5,uJ as R5,L2 as S5,gJ as T5,w5 as U5,V8 as V5,j8 as W5,P2 as X5,pJ as Y5,mJ as Z5,cJ as _5,q0 as $5};
@@ -0,0 +1,2 @@
1
+ import{Iqa as b}from"./cli-1.1.34-4x915j9t.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 Mb,k as Nb,q as Ob,w as Pb,g as Qb};
@@ -0,0 +1,2 @@
1
+ import{JZ as M,KZ as D}from"./cli-1.1.34-5ffnhvmt.mjs";import{Yea as F,cga as S,efa as _,fga as p,pfa as l,sfa as L,tfa as c}from"./cli-1.1.34-wwjkncsv.mjs";import{dka as Y,jka as m}from"./cli-1.1.34-ev8ffgr9.mjs";import{Iqa as B}from"./cli-1.1.34-4x915j9t.mjs";function R(J){if(!J)return;let Q=J.trim().replace(/^https?:\/\//i,"").replace(/\/+$/,"");if(!Q||Q.toLowerCase()==="github.com")return;return Q}function b(J){return J?`https://${J}/login/device/code`:T}function v(J){return J?`https://${J}/login/oauth/access_token`:f}function h(J){return J?`https://api.${J}/copilot_internal/v2/token`:G}function H(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||E}function P(J){return new Promise((Q)=>setTimeout(Q,J))}async function r(J){let Q=J?.clientId??H();if(!Q)throw new q("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let Z=J?.fetchImpl??fetch,j=J?.scope?.trim()||C,$=j===C?[j]:[j,C],z="Device code request failed.",y=b(R(J?.domain));for(let V of $){let W=await Z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Q,scope:V})});if(!W.ok){let x=await W.text().catch(()=>"");z=`Device code request failed: ${W.status} ${x}`;let k=/invalid_scope/i.test(x);if(V!==C&&k)continue;throw new q(z)}let X=await W.json(),N=X.device_code,K=X.user_code,w=X.verification_uri;if(typeof N!=="string"||typeof K!=="string"||typeof w!=="string")throw new q("Malformed device code response from GitHub");return{device_code:N,user_code:K,verification_uri:w,expires_in:typeof X.expires_in==="number"?X.expires_in:900,interval:typeof X.interval==="number"?X.interval:5}}throw new q(z)}async function o(J,Q){let Z=Q?.clientId??H();if(!Z)throw new q("client_id required for polling");let j=Math.max(1,Q?.initialInterval??5),$=Q?.timeoutSeconds??900,z=Q?.fetchImpl??fetch,y=v(R(Q?.domain)),V=Date.now();while((Date.now()-V)/1000<$){let W=await z(y,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:Z,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!W.ok){let K=await W.text().catch(()=>"");throw new q(`Token request failed: ${W.status} ${K}`)}let X=await W.json(),N=X.error;if(N==null){let K=X.access_token;if(typeof K==="string"&&K)return K;throw new q("No access_token in response")}if(N==="authorization_pending"){await P(j*1000);continue}if(N==="slow_down"){j=typeof X.interval==="number"?X.interval:j+5,await P(j*1000);continue}if(N==="expired_token")throw new q("Device code expired. Start the login flow again.");if(N==="access_denied")throw new q("Authorization was denied or cancelled.");throw new q(`GitHub OAuth error: ${N}`)}throw new q("Timed out waiting for authorization.")}async function e(J){await M(J)}async function I(J,Q){let Z=typeof Q==="function"?{fetchImpl:Q}:Q??{},j=Z.fetchImpl??fetch,$=h(R(Z.domain)),z=await j($,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...u}});if(!z.ok){let K=await z.text().catch(()=>"");throw new q(`Copilot token exchange failed: ${z.status} ${K}`)}let y=await z.json(),V=y.token,W=y.expires_at,X=y.refresh_in,N=y.endpoints;if(typeof V!=="string"||typeof W!=="number"||typeof X!=="number"||!N||typeof N!=="object"||typeof N.api!=="string")throw new q("Malformed Copilot token response");return{token:V,expires_at:W,refresh_in:X,endpoints:N}}var E="Iv1.b507a08c87ecfe98",T="https://github.com/login/device/code",f="https://github.com/login/oauth/access_token",G="https://api.github.com/copilot_internal/v2/token",C="read:user",u,q;var O=B(()=>{D();u={"User-Agent":"GitHubCopilotChat/0.26.7","Editor-Version":"vscode/1.99.3","Editor-Plugin-Version":"copilot-chat/0.26.7","Copilot-Integration-Id":"vscode-chat"};q=class q extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function g(){return S()?.transport==="github_copilot"}function d(J){let Q=J.match(/exp=(\d+)/);if(Q){let $=Number(Q[1]);if(!Number.isNaN($))return Date.now()>=$*1000?"expired":"valid"}let Z=J.split(".");if(Z.length===3&&Z.every(($)=>/^[A-Za-z0-9_-]+$/.test($)))try{let $=Z[1].replace(/-/g,"+").replace(/_/g,"/"),z=$+"=".repeat((4-$.length%4)%4),y=Buffer.from(z,"base64").toString("utf8"),V=JSON.parse(y);if(V&&typeof V==="object"&&V.exp)return Date.now()>=V.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function a(){if(Y())return;try{return L().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function WJ(){if(Y())return;try{return(await L().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function jJ(){if(!g())return;if(Y())return;if(a())return}async function yJ(){if(!g())return!1;if(Y())return!1;if(A)return A;return A=(async()=>{try{let Z=L().read()?.githubModels,j=Z?.accessToken?.trim()||"",$=Z?.oauthAccessToken?.trim()||"";if(!j&&!$)return!1;if((j?d(j):"expired")==="valid")return!1;if(!$)return!1;let y=Z?.enterpriseDomain?.trim()||void 0,V=await I($,{domain:y});if(!n(V.token,$,y).success)return!1;let X=F().find((N)=>N.provider==="openai"&&N.extras?.githubToken!==void 0);if(X)_(X.id,{provider:"openai",name:X.name,baseUrl:X.baseUrl,model:X.model,apiKey:V.token,extras:{...X.extras,githubToken:V.token}});return!0}catch{return!1}finally{A=null}})(),A}function n(J,Q,Z){if(Y())return{success:!1,warning:"Bare mode: secure storage is disabled."};let j=J.trim();if(!j)return{success:!1,warning:"Token is empty."};let $=L(),z=$.read()||{},y=z[U],V=Q?.trim(),W={accessToken:j};if(V){if(W.oauthAccessToken=V,Z?.trim())W.enterpriseDomain=Z.trim()}else{if(y?.oauthAccessToken?.trim())W.oauthAccessToken=y.oauthAccessToken.trim();let N=Z?.trim()||y?.enterpriseDomain?.trim();if(N)W.enterpriseDomain=N}let X={...z,[U]:W};return $.update(X)}function zJ(){if(Y())return{success:!0};let J=L(),Z={...J.read()||{}};return delete Z[U],J.update(Z)}var U="githubModels",VJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED",A=null;var s=B(()=>{p();m();c();O();l()});
2
+ export{R as tZ,r as uZ,o as vZ,e as wZ,I as xZ,O as yZ,U as zZ,VJ as AZ,a as BZ,WJ as CZ,jJ as DZ,yJ as EZ,n as FZ,zJ as GZ,s as HZ};
@@ -0,0 +1,2 @@
1
+ import{Iqa as j}from"./cli-1.1.34-4x915j9t.mjs";var q,w;var v=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],w=[...q,"auto"]});
2
+ export{q as eha,w as fha,v as gha};
@@ -0,0 +1,2 @@
1
+ import{wW as O}from"./cli-1.1.34-59csbz1a.mjs";import{T1 as X,V1 as Q}from"./cli-1.1.34-8vfey6b5.mjs";import{W1 as b}from"./cli-1.1.34-7ad0dt89.mjs";import{Oaa as W,Tea as P}from"./cli-1.1.34-wwjkncsv.mjs";import{Eqa as U}from"./cli-1.1.34-4x915j9t.mjs";P();Q();var Y=U(O(),1),J=U(b(),1);function L(D,z){let F=z/100*(D.length-1),q=Math.floor(F),k=Math.ceil(F);if(q===k)return D[q];return D[q]+(D[k]-D[q])*(F-q)}var T=1024;function V(){let D=new Map,z=new Map,F=new Map;return{increment(q,k=1){D.set(q,(D.get(q)??0)+k)},set(q,k){D.set(q,k)},observe(q,k){let y=z.get(q);if(!y)y={reservoir:[],count:0,sum:0,min:k,max:k},z.set(q,y);if(y.count++,y.sum+=k,k<y.min)y.min=k;if(k>y.max)y.max=k;if(y.reservoir.length<T)y.reservoir.push(k);else{let B=Math.floor(Math.random()*y.count);if(B<T)y.reservoir[B]=k}},add(q,k){let y=F.get(q);if(!y)y=new Set,F.set(q,y);y.add(k)},getAll(){let q=Object.fromEntries(D);for(let[k,y]of z){if(y.count===0)continue;q[`${k}_count`]=y.count,q[`${k}_min`]=y.min,q[`${k}_max`]=y.max,q[`${k}_avg`]=y.sum/y.count;let B=[...y.reservoir].sort((G,H)=>G-H);q[`${k}_p50`]=L(B,50),q[`${k}_p95`]=L(B,95),q[`${k}_p99`]=L(B,99)}for(let[k,y]of F)q[k]=y.size;return q}}}var Z=J.createContext(null);function C(D){let z=Y.c(7),{store:F,children:q}=D,k;if(z[0]===Symbol.for("react.memo_cache_sentinel"))k=V(),z[0]=k;else k=z[0];let B=F??k,G,H;if(z[1]!==B)G=()=>{let M=()=>{let N=B.getAll();if(Object.keys(N).length>0)W((A)=>({...A,lastSessionMetrics:N}))};return process.on("exit",M),()=>{process.off("exit",M)}},H=[B],z[1]=B,z[2]=G,z[3]=H;else G=z[2],H=z[3];J.useEffect(G,H);let K;if(z[4]!==q||z[5]!==B)K=X(Z.Provider,{value:B,children:q}),z[4]=q,z[5]=B,z[6]=K;else K=z[6];return K}
2
+ export{V as jb,C as kb};