@claudiolabs/claudin 1.1.13 → 1.1.14

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 (902) hide show
  1. package/README.md +7 -0
  2. package/dist/chunks/AgentTool-1.1.14-9q1ggh0e.mjs +1 -0
  3. package/dist/chunks/App-1.1.14-htg9bgyr.mjs +1 -0
  4. package/dist/chunks/ApproveApiKey-1.1.14-5mvef4qg.mjs +1 -0
  5. package/dist/chunks/AssistantSessionChooser-1.1.14-cdhvy1n1.mjs +1 -0
  6. package/dist/chunks/AutoModeOptInDialog-1.1.14-amx3pan8.mjs +1 -0
  7. package/dist/chunks/BypassPermissionsModeDialog-1.1.14-rs6q16rf.mjs +1 -0
  8. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.14-n5yvcvr6.mjs +1 -0
  9. package/dist/chunks/ConsoleOAuthFlow-1.1.14-53gmdkhz.mjs +1 -0
  10. package/dist/chunks/DiffDialog-1.1.14-30hcgbry.mjs +6 -0
  11. package/dist/chunks/Doctor-1.1.14-7sy2g3kq.mjs +1 -0
  12. package/dist/chunks/ExplorerDialog-1.1.14-e4es88e1.mjs +6 -0
  13. package/dist/chunks/ITermBackend-1.1.14-6h3jm7pr.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-1.1.14-chxkapxm.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-1.1.14-zpsvdv05.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-1.1.14-j9enxt6f.mjs +1 -0
  17. package/dist/chunks/Onboarding-1.1.14-2b01fwcq.mjs +1 -0
  18. package/dist/chunks/ProviderManager-1.1.14-wbwa9rnr.mjs +1 -0
  19. package/dist/chunks/REPL-1.1.14-04ezket2.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-1.1.14-w737z0ya.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-1.1.14-vc6rvhd7.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-1.1.14-s06dyncs.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-1.1.14-8xhjpqb6.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-1.1.14-szxvge9a.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-1.1.14-pfr2r56w.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-1.1.14-y0fr1104.mjs +1 -0
  27. package/dist/chunks/TrustDialog-1.1.14-1hdvwfw0.mjs +1 -0
  28. package/dist/chunks/activeProvider-1.1.14-mb3f9and.mjs +1 -0
  29. package/dist/chunks/add-dir-1.1.14-vtjpr86t.mjs +1 -0
  30. package/dist/chunks/agentTypes-1.1.14-8f7ye4cx.mjs +1 -0
  31. package/dist/chunks/agents-1.1.14-09h1y56n.mjs +3 -0
  32. package/dist/chunks/agents-1.1.14-0w8wycx4.mjs +110 -0
  33. package/dist/chunks/api-1.1.14-0fbebbzk.mjs +1 -0
  34. package/dist/chunks/asciicast-1.1.14-tb149dp4.mjs +1 -0
  35. package/dist/chunks/assistant-1.1.14-z0zfp1et.mjs +1 -0
  36. package/dist/chunks/auth-1.1.14-bap5zejc.mjs +1 -0
  37. package/dist/chunks/auth-1.1.14-f6095j1n.mjs +1 -0
  38. package/dist/chunks/autoMode-1.1.14-ez7vz44q.mjs +48 -0
  39. package/dist/chunks/autoUpdater-1.1.14-nh4g2w5c.mjs +1 -0
  40. package/dist/chunks/backgroundHousekeeping-1.1.14-85wfz0d2.mjs +1 -0
  41. package/dist/chunks/branch-1.1.14-q182qsp7.mjs +4 -0
  42. package/dist/chunks/bridge-1.1.14-9kv2fqz4.mjs +2 -0
  43. package/dist/chunks/bridgeConfig-1.1.14-c73sbxxv.mjs +1 -0
  44. package/dist/chunks/bridgeEnabled-1.1.14-e8cdsjdy.mjs +1 -0
  45. package/dist/chunks/bridgeMain-1.1.14-v69v0m5y.mjs +88 -0
  46. package/dist/chunks/bridgePointer-1.1.14-a7m65hvd.mjs +1 -0
  47. package/dist/chunks/btw-1.1.14-972yxja7.mjs +1 -0
  48. package/dist/chunks/buddy-1.1.14-j9178h9m.mjs +3 -0
  49. package/dist/chunks/cache-probe-1.1.14-3ce2pkz1.mjs +21 -0
  50. package/dist/chunks/cacheStats-1.1.14-qkerj80m.mjs +4 -0
  51. package/dist/chunks/caches-1.1.14-nf8ev61m.mjs +1 -0
  52. package/dist/chunks/claudeDesktop-1.1.14-ccv8t2d4.mjs +1 -0
  53. package/dist/chunks/claudemd-1.1.14-m5t9ge1t.mjs +1 -0
  54. package/dist/chunks/clear-1.1.14-cfbvvm07.mjs +1 -0
  55. package/dist/chunks/clearTerminal-1.1.14-c99j8gmq.mjs +1 -0
  56. package/dist/chunks/cli-1.1.14-0e209hdd.mjs +2 -0
  57. package/dist/chunks/cli-1.1.14-0f45n8mg.mjs +2 -0
  58. package/dist/chunks/cli-1.1.14-1avercfj.mjs +2 -0
  59. package/dist/chunks/cli-1.1.14-1d5gcev8.mjs +2 -0
  60. package/dist/chunks/cli-1.1.14-1dph8n41.mjs +24 -0
  61. package/dist/chunks/cli-1.1.14-1hghs4qh.mjs +15 -0
  62. package/dist/chunks/cli-1.1.14-1zf42f1b.mjs +2 -0
  63. package/dist/chunks/cli-1.1.14-256a4dam.mjs +21 -0
  64. package/dist/chunks/cli-1.1.14-2gn4jtm1.mjs +3 -0
  65. package/dist/chunks/cli-1.1.14-2ysqsyrs.mjs +4 -0
  66. package/dist/chunks/cli-1.1.14-35sv8v0f.mjs +2 -0
  67. package/dist/chunks/cli-1.1.14-377p51gp.mjs +2 -0
  68. package/dist/chunks/cli-1.1.14-3a1bnf85.mjs +2 -0
  69. package/dist/chunks/cli-1.1.14-3f4fg0jf.mjs +2 -0
  70. package/dist/chunks/cli-1.1.14-3rjxbb1k.mjs +2 -0
  71. package/dist/chunks/cli-1.1.14-42r8tafr.mjs +3 -0
  72. package/dist/chunks/cli-1.1.14-4hs7pyh0.mjs +6 -0
  73. package/dist/chunks/cli-1.1.14-4s9n8yjm.mjs +2 -0
  74. package/dist/chunks/cli-1.1.14-4w3fbvdq.mjs +3 -0
  75. package/dist/chunks/cli-1.1.14-4y2f1s92.mjs +24 -0
  76. package/dist/chunks/cli-1.1.14-53dfe61t.mjs +2 -0
  77. package/dist/chunks/cli-1.1.14-59y1pays.mjs +2 -0
  78. package/dist/chunks/cli-1.1.14-63ezr011.mjs +4 -0
  79. package/dist/chunks/cli-1.1.14-6873seek.mjs +2 -0
  80. package/dist/chunks/cli-1.1.14-6ae3m5qs.mjs +3 -0
  81. package/dist/chunks/cli-1.1.14-6aknzs0q.mjs +3 -0
  82. package/dist/chunks/cli-1.1.14-6ex3vykg.mjs +16 -0
  83. package/dist/chunks/cli-1.1.14-6fa8a7k1.mjs +2 -0
  84. package/dist/chunks/cli-1.1.14-6q6zgmwr.mjs +4 -0
  85. package/dist/chunks/cli-1.1.14-6vr1y1hr.mjs +2 -0
  86. package/dist/chunks/cli-1.1.14-6wh10yar.mjs +2 -0
  87. package/dist/chunks/cli-1.1.14-6ybkavvh.mjs +4 -0
  88. package/dist/chunks/cli-1.1.14-711x17sa.mjs +2 -0
  89. package/dist/chunks/cli-1.1.14-73mqk8g5.mjs +2 -0
  90. package/dist/chunks/cli-1.1.14-73zh23ez.mjs +2 -0
  91. package/dist/chunks/cli-1.1.14-7ccy5ssr.mjs +2 -0
  92. package/dist/chunks/cli-1.1.14-7jt701f6.mjs +2 -0
  93. package/dist/chunks/cli-1.1.14-7pzggsge.mjs +2 -0
  94. package/dist/chunks/cli-1.1.14-83ng5cjk.mjs +2 -0
  95. package/dist/chunks/cli-1.1.14-889fhp26.mjs +3 -0
  96. package/dist/chunks/cli-1.1.14-8d79550c.mjs +2 -0
  97. package/dist/chunks/cli-1.1.14-8eaenjx4.mjs +4 -0
  98. package/dist/chunks/cli-1.1.14-8fx5qjh6.mjs +5440 -0
  99. package/dist/chunks/cli-1.1.14-8g09v1yy.mjs +2 -0
  100. package/dist/chunks/cli-1.1.14-8mn8xn5g.mjs +6 -0
  101. package/dist/chunks/cli-1.1.14-8p0w0geq.mjs +2 -0
  102. package/dist/chunks/cli-1.1.14-8wdw7x7k.mjs +2 -0
  103. package/dist/chunks/cli-1.1.14-8wsrnrk6.mjs +2 -0
  104. package/dist/chunks/cli-1.1.14-8yw87v1w.mjs +2 -0
  105. package/dist/chunks/cli-1.1.14-91ymqn8n.mjs +18 -0
  106. package/dist/chunks/cli-1.1.14-9419wa62.mjs +2 -0
  107. package/dist/chunks/cli-1.1.14-947tpwm7.mjs +2 -0
  108. package/dist/chunks/cli-1.1.14-9cg8tjv3.mjs +3 -0
  109. package/dist/chunks/cli-1.1.14-9gvsxyt7.mjs +2 -0
  110. package/dist/chunks/cli-1.1.14-9nw51dsq.mjs +3 -0
  111. package/dist/chunks/cli-1.1.14-a5v23mcj.mjs +2 -0
  112. package/dist/chunks/cli-1.1.14-ac4030sa.mjs +2 -0
  113. package/dist/chunks/cli-1.1.14-ac5krqkz.mjs +2 -0
  114. package/dist/chunks/cli-1.1.14-acg38ym6.mjs +2 -0
  115. package/dist/chunks/cli-1.1.14-afnxph29.mjs +2 -0
  116. package/dist/chunks/cli-1.1.14-aynsgyjh.mjs +2 -0
  117. package/dist/chunks/cli-1.1.14-az6pbe66.mjs +2 -0
  118. package/dist/chunks/cli-1.1.14-b1sbm8w6.mjs +133 -0
  119. package/dist/chunks/cli-1.1.14-ba8qj93n.mjs +50 -0
  120. package/dist/chunks/cli-1.1.14-bg9cmzcy.mjs +45 -0
  121. package/dist/chunks/cli-1.1.14-bjsx40c2.mjs +2 -0
  122. package/dist/chunks/cli-1.1.14-bjy8bxz1.mjs +2 -0
  123. package/dist/chunks/cli-1.1.14-brw0w20r.mjs +5 -0
  124. package/dist/chunks/cli-1.1.14-bwc8pb1f.mjs +2 -0
  125. package/dist/chunks/cli-1.1.14-byr5dy4k.mjs +4 -0
  126. package/dist/chunks/cli-1.1.14-bz7ts9p7.mjs +2 -0
  127. package/dist/chunks/cli-1.1.14-c30dtxm5.mjs +2 -0
  128. package/dist/chunks/cli-1.1.14-c41jzsx4.mjs +39 -0
  129. package/dist/chunks/cli-1.1.14-cakvdwn3.mjs +2 -0
  130. package/dist/chunks/cli-1.1.14-ce1ghrw0.mjs +2 -0
  131. package/dist/chunks/cli-1.1.14-cfkzk93c.mjs +2 -0
  132. package/dist/chunks/cli-1.1.14-chn2z068.mjs +6 -0
  133. package/dist/chunks/cli-1.1.14-cj411dk7.mjs +2 -0
  134. package/dist/chunks/cli-1.1.14-cnhawbs5.mjs +2 -0
  135. package/dist/chunks/cli-1.1.14-cnkv5cdq.mjs +2 -0
  136. package/dist/chunks/cli-1.1.14-cran8hzr.mjs +2 -0
  137. package/dist/chunks/cli-1.1.14-crdc0nk7.mjs +8 -0
  138. package/dist/chunks/cli-1.1.14-cxm6hsqs.mjs +2 -0
  139. package/dist/chunks/cli-1.1.14-cxqb5hw8.mjs +2 -0
  140. package/dist/chunks/cli-1.1.14-cydkb96c.mjs +2 -0
  141. package/dist/chunks/cli-1.1.14-db3mxak8.mjs +6 -0
  142. package/dist/chunks/cli-1.1.14-e7mfj9cz.mjs +2 -0
  143. package/dist/chunks/cli-1.1.14-ec6d00xg.mjs +66 -0
  144. package/dist/chunks/cli-1.1.14-eccdwm9t.mjs +18 -0
  145. package/dist/chunks/cli-1.1.14-ecnk9fd6.mjs +2 -0
  146. package/dist/chunks/cli-1.1.14-edqga9n4.mjs +2 -0
  147. package/dist/chunks/cli-1.1.14-eh3y4akg.mjs +2 -0
  148. package/dist/chunks/cli-1.1.14-ehnnwt4w.mjs +12 -0
  149. package/dist/chunks/cli-1.1.14-ennnd2wk.mjs +2 -0
  150. package/dist/chunks/cli-1.1.14-esspp1p0.mjs +2 -0
  151. package/dist/chunks/cli-1.1.14-f04bv457.mjs +2 -0
  152. package/dist/chunks/cli-1.1.14-f0686hwn.mjs +2 -0
  153. package/dist/chunks/cli-1.1.14-f0vw7m5f.mjs +2 -0
  154. package/dist/chunks/cli-1.1.14-f2g608st.mjs +2 -0
  155. package/dist/chunks/cli-1.1.14-f2z81veh.mjs +12 -0
  156. package/dist/chunks/cli-1.1.14-f5bvc359.mjs +2 -0
  157. package/dist/chunks/cli-1.1.14-f9dpkjv9.mjs +2 -0
  158. package/dist/chunks/cli-1.1.14-fm5cz88a.mjs +3 -0
  159. package/dist/chunks/cli-1.1.14-fp33ryn9.mjs +2 -0
  160. package/dist/chunks/cli-1.1.14-fq9x6yxc.mjs +2 -0
  161. package/dist/chunks/cli-1.1.14-ftjv2jrz.mjs +2 -0
  162. package/dist/chunks/cli-1.1.14-fwakcyhj.mjs +4 -0
  163. package/dist/chunks/cli-1.1.14-g11hsjv2.mjs +2 -0
  164. package/dist/chunks/cli-1.1.14-g7acy34j.mjs +5 -0
  165. package/dist/chunks/cli-1.1.14-g7ar9cmp.mjs +2 -0
  166. package/dist/chunks/cli-1.1.14-gbf9emxz.mjs +2 -0
  167. package/dist/chunks/cli-1.1.14-gbt4qmxx.mjs +2 -0
  168. package/dist/chunks/cli-1.1.14-gf6m8qz3.mjs +17 -0
  169. package/dist/chunks/cli-1.1.14-gjna0227.mjs +2 -0
  170. package/dist/chunks/cli-1.1.14-gtxhty3d.mjs +2 -0
  171. package/dist/chunks/cli-1.1.14-gv9rt2h8.mjs +2 -0
  172. package/dist/chunks/cli-1.1.14-gvh2m03s.mjs +9 -0
  173. package/dist/chunks/cli-1.1.14-h9swpf99.mjs +3 -0
  174. package/dist/chunks/cli-1.1.14-hcaktmq1.mjs +2 -0
  175. package/dist/chunks/cli-1.1.14-hdkyecme.mjs +59 -0
  176. package/dist/chunks/cli-1.1.14-j9qy5cj8.mjs +6 -0
  177. package/dist/chunks/cli-1.1.14-j9zawab5.mjs +2 -0
  178. package/dist/chunks/cli-1.1.14-je22trqj.mjs +7 -0
  179. package/dist/chunks/cli-1.1.14-jeqhpgat.mjs +4 -0
  180. package/dist/chunks/cli-1.1.14-jgers44a.mjs +2 -0
  181. package/dist/chunks/cli-1.1.14-k4n0pbvf.mjs +2 -0
  182. package/dist/chunks/cli-1.1.14-kkwnpcf6.mjs +2 -0
  183. package/dist/chunks/cli-1.1.14-krd6edee.mjs +2 -0
  184. package/dist/chunks/cli-1.1.14-ks4wsswq.mjs +133 -0
  185. package/dist/chunks/cli-1.1.14-ksk5rch9.mjs +2 -0
  186. package/dist/chunks/cli-1.1.14-ky3mvy9k.mjs +15 -0
  187. package/dist/chunks/cli-1.1.14-kzwx6a7h.mjs +2 -0
  188. package/dist/chunks/cli-1.1.14-mnerhwsv.mjs +25 -0
  189. package/dist/chunks/cli-1.1.14-msb0xfz3.mjs +6 -0
  190. package/dist/chunks/cli-1.1.14-n1hm0gd6.mjs +2 -0
  191. package/dist/chunks/cli-1.1.14-n351xrzx.mjs +2 -0
  192. package/dist/chunks/cli-1.1.14-n9fg59se.mjs +2 -0
  193. package/dist/chunks/cli-1.1.14-nqa3ttq6.mjs +2 -0
  194. package/dist/chunks/cli-1.1.14-nqd6dk6n.mjs +20 -0
  195. package/dist/chunks/cli-1.1.14-p0xhp49n.mjs +58 -0
  196. package/dist/chunks/cli-1.1.14-pa5nsjfc.mjs +24 -0
  197. package/dist/chunks/cli-1.1.14-pce9xpxh.mjs +2 -0
  198. package/dist/chunks/cli-1.1.14-pfsqawey.mjs +2 -0
  199. package/dist/chunks/cli-1.1.14-pgkjn3yw.mjs +2 -0
  200. package/dist/chunks/cli-1.1.14-ph81vme8.mjs +1 -0
  201. package/dist/chunks/cli-1.1.14-prtez07m.mjs +17 -0
  202. package/dist/chunks/cli-1.1.14-q1kc6b8n.mjs +202 -0
  203. package/dist/chunks/cli-1.1.14-q39sm90c.mjs +2 -0
  204. package/dist/chunks/cli-1.1.14-q4njqbhv.mjs +2 -0
  205. package/dist/chunks/cli-1.1.14-q9mpbtcq.mjs +2 -0
  206. package/dist/chunks/cli-1.1.14-qe4ypfya.mjs +2 -0
  207. package/dist/chunks/cli-1.1.14-qfc8zb5d.mjs +2 -0
  208. package/dist/chunks/cli-1.1.14-qm7sjy8p.mjs +2 -0
  209. package/dist/chunks/cli-1.1.14-qr2dkjw6.mjs +2 -0
  210. package/dist/chunks/cli-1.1.14-qs5hpm4s.mjs +2 -0
  211. package/dist/chunks/cli-1.1.14-qyywt37p.mjs +2 -0
  212. package/dist/chunks/cli-1.1.14-r39tb155.mjs +25 -0
  213. package/dist/chunks/cli-1.1.14-rcw8bj2x.mjs +2 -0
  214. package/dist/chunks/cli-1.1.14-rjac9djz.mjs +2 -0
  215. package/dist/chunks/cli-1.1.14-rmjnqb9b.mjs +2 -0
  216. package/dist/chunks/cli-1.1.14-ry5bys5g.mjs +2 -0
  217. package/dist/chunks/cli-1.1.14-ryjw96z2.mjs +2 -0
  218. package/dist/chunks/cli-1.1.14-s2tegwye.mjs +2 -0
  219. package/dist/chunks/cli-1.1.14-s59gy7wr.mjs +2 -0
  220. package/dist/chunks/cli-1.1.14-scaajcvm.mjs +2 -0
  221. package/dist/chunks/cli-1.1.14-srbcxz1e.mjs +34 -0
  222. package/dist/chunks/cli-1.1.14-t32277f6.mjs +4 -0
  223. package/dist/chunks/cli-1.1.14-t5cdgcnh.mjs +2 -0
  224. package/dist/chunks/cli-1.1.14-t82ydhr6.mjs +2 -0
  225. package/dist/chunks/cli-1.1.14-t9xyraqy.mjs +9 -0
  226. package/dist/chunks/cli-1.1.14-tm2g00jj.mjs +2 -0
  227. package/dist/chunks/cli-1.1.14-tv90r87r.mjs +3 -0
  228. package/dist/chunks/cli-1.1.14-v019any3.mjs +2 -0
  229. package/dist/chunks/cli-1.1.14-v4f9098m.mjs +2 -0
  230. package/dist/chunks/cli-1.1.14-v7nnjdwc.mjs +2 -0
  231. package/dist/chunks/cli-1.1.14-vd4v04cf.mjs +2 -0
  232. package/dist/chunks/cli-1.1.14-vdsx0cw7.mjs +15 -0
  233. package/dist/chunks/cli-1.1.14-vefm78w3.mjs +2 -0
  234. package/dist/chunks/cli-1.1.14-vjeh477p.mjs +3 -0
  235. package/dist/chunks/cli-1.1.14-vmwd3gk6.mjs +4 -0
  236. package/dist/chunks/cli-1.1.14-vq47nhnz.mjs +2 -0
  237. package/dist/chunks/cli-1.1.14-vx8jq8gy.mjs +42 -0
  238. package/dist/chunks/cli-1.1.14-vzevhjxk.mjs +2 -0
  239. package/dist/chunks/cli-1.1.14-w0d35qqy.mjs +2 -0
  240. package/dist/chunks/cli-1.1.14-w2wbzv4e.mjs +3 -0
  241. package/dist/chunks/cli-1.1.14-w4fgn8t6.mjs +2 -0
  242. package/dist/chunks/cli-1.1.14-weqr0y1h.mjs +2 -0
  243. package/dist/chunks/cli-1.1.14-x2b13bs6.mjs +2 -0
  244. package/dist/chunks/cli-1.1.14-x6g4zgjh.mjs +3 -0
  245. package/dist/chunks/cli-1.1.14-xcg5hzkp.mjs +2 -0
  246. package/dist/chunks/cli-1.1.14-xejgqxmy.mjs +2 -0
  247. package/dist/chunks/cli-1.1.14-xw8mensa.mjs +4 -0
  248. package/dist/chunks/cli-1.1.14-xwcfnjkf.mjs +24 -0
  249. package/dist/chunks/cli-1.1.14-yfknrxme.mjs +2 -0
  250. package/dist/chunks/cli-1.1.14-ykbz2fee.mjs +2 -0
  251. package/dist/chunks/cli-1.1.14-ypbww0jj.mjs +2 -0
  252. package/dist/chunks/cli-1.1.14-yvw9gv0w.mjs +2 -0
  253. package/dist/chunks/cli-1.1.14-z07q0gwf.mjs +2 -0
  254. package/dist/chunks/cli-1.1.14-z0mjb0vh.mjs +2 -0
  255. package/dist/chunks/cli-1.1.14-z9cc7bb2.mjs +2 -0
  256. package/dist/chunks/cli-1.1.14-zajvkghs.mjs +2 -0
  257. package/dist/chunks/cli-1.1.14-znbm9h8t.mjs +2 -0
  258. package/dist/chunks/client-1.1.14-m2mjhyw6.mjs +1 -0
  259. package/dist/chunks/color-1.1.14-f3q2mzg0.mjs +1 -0
  260. package/dist/chunks/compact-1.1.14-effx3hf9.mjs +3 -0
  261. package/dist/chunks/config-1.1.14-9ydtd85s.mjs +1 -0
  262. package/dist/chunks/config-1.1.14-h96m0d8d.mjs +1 -0
  263. package/dist/chunks/constants-1.1.14-zk22gxph.mjs +1 -0
  264. package/dist/chunks/context-1.1.14-wtr7pmtw.mjs +1 -0
  265. package/dist/chunks/context-noninteractive-1.1.14-j8y21hht.mjs +1 -0
  266. package/dist/chunks/conversation-1.1.14-rt6z9rds.mjs +1 -0
  267. package/dist/chunks/copilotHeaders-1.1.14-s922v787.mjs +1 -0
  268. package/dist/chunks/copy-1.1.14-m8bx9df8.mjs +9 -0
  269. package/dist/chunks/cost-1.1.14-whyhrsgg.mjs +1 -0
  270. package/dist/chunks/createSSHSession-1.1.14-sdg5dk4r.mjs +1 -0
  271. package/dist/chunks/createSession-1.1.14-vct1c158.mjs +1 -0
  272. package/dist/chunks/debug-1.1.14-nca60a44.mjs +1 -0
  273. package/dist/chunks/defaultActionDeps-1.1.14-7y4dgkxg.mjs +1526 -0
  274. package/dist/chunks/desktop-1.1.14-pe1cgr9z.mjs +1 -0
  275. package/dist/chunks/detectRepository-1.1.14-z6hxtqhd.mjs +1 -0
  276. package/dist/chunks/detection-1.1.14-t5ayyza6.mjs +1 -0
  277. package/dist/chunks/diff-1.1.14-tv62px1c.mjs +1 -0
  278. package/dist/chunks/doctor-1.1.14-qesxnkxx.mjs +1 -0
  279. package/dist/chunks/doctorDiagnostic-1.1.14-z63s9mpy.mjs +1 -0
  280. package/dist/chunks/earlyInput-1.1.14-7vfad42b.mjs +1 -0
  281. package/dist/chunks/effort-1.1.14-prkmemjw.mjs +13 -0
  282. package/dist/chunks/engine-1.1.14-4585kjf8.mjs +1 -0
  283. package/dist/chunks/envLessBridgeConfig-1.1.14-pv9ydcq3.mjs +1 -0
  284. package/dist/chunks/envUtils-1.1.14-chbd1bsr.mjs +1 -0
  285. package/dist/chunks/environmentSelection-1.1.14-ckpkv6e3.mjs +1 -0
  286. package/dist/chunks/environments-1.1.14-ma9vprdz.mjs +1 -0
  287. package/dist/chunks/errors-1.1.14-ww80fvtz.mjs +1 -0
  288. package/dist/chunks/exampleCommands-1.1.14-x37y2ewm.mjs +1 -0
  289. package/dist/chunks/execFileNoThrow-1.1.14-4xp05pmd.mjs +1 -0
  290. package/dist/chunks/exit-1.1.14-shyzge3a.mjs +1 -0
  291. package/dist/chunks/explorer-1.1.14-12bn9b5s.mjs +1 -0
  292. package/dist/chunks/export-1.1.14-21yjwtry.mjs +2 -0
  293. package/dist/chunks/extra-usage-1.1.14-gr1s0tck.mjs +1 -0
  294. package/dist/chunks/extra-usage-noninteractive-1.1.14-zyk4qh8w.mjs +1 -0
  295. package/dist/chunks/fast-1.1.14-87cn8tqn.mjs +1 -0
  296. package/dist/chunks/feedback-1.1.14-s5ycv1dk.mjs +14 -0
  297. package/dist/chunks/firstPartyEventLogger-1.1.14-e62cbs1c.mjs +1 -0
  298. package/dist/chunks/git-1.1.14-c6rsmdv4.mjs +1 -0
  299. package/dist/chunks/githubModelsCredentials-1.1.14-sbb3wp9c.mjs +1 -0
  300. package/dist/chunks/goal-1.1.14-w7j0vb96.mjs +4 -0
  301. package/dist/chunks/growthbook-1.1.14-65cpy0w1.mjs +1 -0
  302. package/dist/chunks/headless-1.1.14-68gm6f08.mjs +2 -0
  303. package/dist/chunks/heapdump-1.1.14-76kj8s1g.mjs +6 -0
  304. package/dist/chunks/help-1.1.14-zwc1crj5.mjs +1 -0
  305. package/dist/chunks/hookChains-1.1.14-cvazppdb.mjs +3 -0
  306. package/dist/chunks/hooks-1.1.14-2ryqg5gs.mjs +1 -0
  307. package/dist/chunks/hooks-1.1.14-3eveg7t1.mjs +79 -0
  308. package/dist/chunks/ide-1.1.14-dtgjtnqn.mjs +3 -0
  309. package/dist/chunks/image-processor-napi-1.1.14-nehgy1pe.mjs +1 -0
  310. package/dist/chunks/inboundAttachments-1.1.14-90434wfb.mjs +1 -0
  311. package/dist/chunks/index-1.1.14-0q2v4wxh.mjs +1 -0
  312. package/dist/chunks/index-1.1.14-12qn79c7.mjs +1 -0
  313. package/dist/chunks/index-1.1.14-2gtcr49x.mjs +1 -0
  314. package/dist/chunks/index-1.1.14-2tpw5zhr.mjs +1 -0
  315. package/dist/chunks/index-1.1.14-50xwby01.mjs +1 -0
  316. package/dist/chunks/index-1.1.14-73zx1e4s.mjs +1 -0
  317. package/dist/chunks/index-1.1.14-75vz0ehv.mjs +1 -0
  318. package/dist/chunks/index-1.1.14-9yex519n.mjs +1 -0
  319. package/dist/chunks/index-1.1.14-ae1277p4.mjs +2 -0
  320. package/dist/chunks/index-1.1.14-bgjpqq3g.mjs +1 -0
  321. package/dist/chunks/index-1.1.14-dn6sx3hd.mjs +5 -0
  322. package/dist/chunks/index-1.1.14-egsggv62.mjs +9 -0
  323. package/dist/chunks/index-1.1.14-jedc2mm5.mjs +30 -0
  324. package/dist/chunks/index-1.1.14-qf2jnnv2.mjs +1 -0
  325. package/dist/chunks/index-1.1.14-qsepya6f.mjs +23 -0
  326. package/dist/chunks/index-1.1.14-s8w75y4z.mjs +1 -0
  327. package/dist/chunks/index-1.1.14-sjk5njxz.mjs +2 -0
  328. package/dist/chunks/index-1.1.14-spp0ysmf.mjs +9 -0
  329. package/dist/chunks/index-1.1.14-termgazf.mjs +1 -0
  330. package/dist/chunks/index-1.1.14-v0dy155j.mjs +1 -0
  331. package/dist/chunks/index-1.1.14-wtvxy2p5.mjs +1 -0
  332. package/dist/chunks/index-1.1.14-x2qb1aam.mjs +1 -0
  333. package/dist/chunks/index-1.1.14-zxg55r1x.mjs +1 -0
  334. package/dist/chunks/init-1.1.14-60thb3vn.mjs +1 -0
  335. package/dist/chunks/initReplBridge-1.1.14-ptmwhng6.mjs +1 -0
  336. package/dist/chunks/ink-1.1.14-hb9m1tzk.mjs +1 -0
  337. package/dist/chunks/insights-1.1.14-q3gcq8e5.mjs +870 -0
  338. package/dist/chunks/install-1.1.14-yqjcrtpg.mjs +1 -0
  339. package/dist/chunks/install-github-app-1.1.14-b9sx124r.mjs +149 -0
  340. package/dist/chunks/install-slack-app-1.1.14-h4axwer1.mjs +1 -0
  341. package/dist/chunks/instrumentation-1.1.14-3dtmyckq.mjs +1 -0
  342. package/dist/chunks/interactiveHelpers-1.1.14-5ht3cz8m.mjs +1 -0
  343. package/dist/chunks/keybindings-1.1.14-ex18a7fg.mjs +2 -0
  344. package/dist/chunks/knowledge-1.1.14-netk3f6c.mjs +2 -0
  345. package/dist/chunks/latestVersionCache-1.1.14-1ck4skb9.mjs +1 -0
  346. package/dist/chunks/loadAgentsDir-1.1.14-9qfmgcdr.mjs +1 -0
  347. package/dist/chunks/loadPluginHooks-1.1.14-g5te2y4b.mjs +1 -0
  348. package/dist/chunks/log-1.1.14-jrh2w4pj.mjs +1 -0
  349. package/dist/chunks/main-1.1.14-w4z3m51j.mjs +1 -0
  350. package/dist/chunks/managedEnv-1.1.14-hm26y9yh.mjs +1 -0
  351. package/dist/chunks/mcp-1.1.14-jdgt2rjc.mjs +17 -0
  352. package/dist/chunks/mcp-1.1.14-nbqn7e10.mjs +1 -0
  353. package/dist/chunks/mcp-1.1.14-yhg498sq.mjs +4 -0
  354. package/dist/chunks/mcpb-1.1.14-bwrmrz6f.mjs +1 -0
  355. package/dist/chunks/memory-1.1.14-vtzr3td4.mjs +72 -0
  356. package/dist/chunks/model-1.1.14-6atmfgtq.mjs +1 -0
  357. package/dist/chunks/model-1.1.14-k3jz1ch0.mjs +2 -0
  358. package/dist/chunks/node-1.1.14-436c41vg.mjs +12 -0
  359. package/dist/chunks/oauth-1.1.14-1pb8ypjr.mjs +1 -0
  360. package/dist/chunks/openaiShim-1.1.14-63qfbmm4.mjs +14 -0
  361. package/dist/chunks/output-style-1.1.14-km29ad1g.mjs +1 -0
  362. package/dist/chunks/package-L37ZVTF4-1.1.14-fdrhyx6k.mjs +1 -0
  363. package/dist/chunks/parseConnectUrl-1.1.14-vxn84ewm.mjs +1 -0
  364. package/dist/chunks/parser-1.1.14-98bg5gv8.mjs +1 -0
  365. package/dist/chunks/passes-1.1.14-5tdj3y9r.mjs +1 -0
  366. package/dist/chunks/permissions-1.1.14-srvsc3za.mjs +3 -0
  367. package/dist/chunks/permissions-1.1.14-vhhyyr5b.mjs +1 -0
  368. package/dist/chunks/plan-1.1.14-c0xp5pxe.mjs +1 -0
  369. package/dist/chunks/plist-1.1.14-5tba5azr.mjs +1 -0
  370. package/dist/chunks/plugin-1.1.14-3gh6jn53.mjs +29 -0
  371. package/dist/chunks/pluginStartupCheck-1.1.14-16akasw0.mjs +1 -0
  372. package/dist/chunks/plugins-1.1.14-8cr92qaf.mjs +9 -0
  373. package/dist/chunks/preActionHook-1.1.14-jwbb9w2t.mjs +2 -0
  374. package/dist/chunks/print-1.1.14-ce8mrr2j.mjs +57 -0
  375. package/dist/chunks/process-1.1.14-zygrw1jw.mjs +1 -0
  376. package/dist/chunks/processBashCommand-1.1.14-q066hcdv.mjs +1 -0
  377. package/dist/chunks/processSlashCommand-1.1.14-btah3m31.mjs +9 -0
  378. package/dist/chunks/prompt-1.1.14-mmdq8qk2.mjs +1 -0
  379. package/dist/chunks/prompt-1.1.14-xks0rqr5.mjs +1 -0
  380. package/dist/chunks/prompts-1.1.14-9c7xnw4s.mjs +1 -0
  381. package/dist/chunks/protocolHandler-1.1.14-7w5d6b8w.mjs +13 -0
  382. package/dist/chunks/provider-1.1.14-136k178m.mjs +2 -0
  383. package/dist/chunks/providerProfiles-1.1.14-vg25c1wr.mjs +1 -0
  384. package/dist/chunks/providerValidation-1.1.14-w3m1vah7.mjs +6 -0
  385. package/dist/chunks/rate-limit-options-1.1.14-vhkc6pgc.mjs +1 -0
  386. package/dist/chunks/registerSubcommands-1.1.14-v8b09yem.mjs +26 -0
  387. package/dist/chunks/registry-1.1.14-bxbt49ze.mjs +1 -0
  388. package/dist/chunks/release-notes-1.1.14-9xyhbkj1.mjs +5 -0
  389. package/dist/chunks/reload-plugins-1.1.14-9jhhq87x.mjs +2 -0
  390. package/dist/chunks/remote-env-1.1.14-941r054g.mjs +1 -0
  391. package/dist/chunks/remoteBridgeCore-1.1.14-ab02srk9.mjs +1 -0
  392. package/dist/chunks/remoteSession-1.1.14-8x26vncf.mjs +1 -0
  393. package/dist/chunks/rename-1.1.14-46zvyh32.mjs +1 -0
  394. package/dist/chunks/replBridgeHandle-1.1.14-85r3hxws.mjs +1 -0
  395. package/dist/chunks/replLauncher-1.1.14-0jp7aph0.mjs +1 -0
  396. package/dist/chunks/resume-1.1.14-8pepfwmk.mjs +2 -0
  397. package/dist/chunks/rewind-1.1.14-hwgcehgr.mjs +1 -0
  398. package/dist/chunks/rootOptions-1.1.14-evwgp5w2.mjs +1 -0
  399. package/dist/chunks/runWorkflowHeadless-1.1.14-w8erpgvm.mjs +10 -0
  400. package/dist/chunks/sandbox-adapter-1.1.14-kwegx4mz.mjs +1 -0
  401. package/dist/chunks/sandbox-toggle-1.1.14-2htjsxzk.mjs +1 -0
  402. package/dist/chunks/session-1.1.14-hgmnvw7z.mjs +2 -0
  403. package/dist/chunks/sessionDiscovery-1.1.14-anb5ddc9.mjs +1 -0
  404. package/dist/chunks/sessionFileAccessHooks-1.1.14-re6kra5a.mjs +1 -0
  405. package/dist/chunks/sessionStorage-1.1.14-cn65r158.mjs +1 -0
  406. package/dist/chunks/settings-1.1.14-r31qkcwy.mjs +1 -0
  407. package/dist/chunks/setup-1.1.14-115cm91e.mjs +5 -0
  408. package/dist/chunks/sinks-1.1.14-4abzjj1m.mjs +1 -0
  409. package/dist/chunks/skills-1.1.14-k7rcbkx1.mjs +1 -0
  410. package/dist/chunks/startupProfiler-1.1.14-vgaq3kjm.mjs +1 -0
  411. package/dist/chunks/startupUpdateCheck-1.1.14-z50xwm9f.mjs +1 -0
  412. package/dist/chunks/state-1.1.14-thy0hnc6.mjs +1 -0
  413. package/dist/chunks/stats-1.1.14-m6dzpj3a.mjs +6 -0
  414. package/dist/chunks/status-1.1.14-amqe3rdm.mjs +1 -0
  415. package/dist/chunks/stickers-1.1.14-2t1zj000.mjs +1 -0
  416. package/dist/chunks/subprocessEnv-1.1.14-pbf40bta.mjs +1 -0
  417. package/dist/chunks/tasks-1.1.14-exvwanrf.mjs +1 -0
  418. package/dist/chunks/teamHelpers-1.1.14-pscnj4fa.mjs +1 -0
  419. package/dist/chunks/teammateModeSnapshot-1.1.14-p4asr9ej.mjs +1 -0
  420. package/dist/chunks/teleport-1.1.14-m6qw5vnq.mjs +1 -0
  421. package/dist/chunks/terminalSetup-1.1.14-5ahc4rv9.mjs +1 -0
  422. package/dist/chunks/theme-1.1.14-1pn2fsqz.mjs +1 -0
  423. package/dist/chunks/thinkback-1.1.14-jss1meem.mjs +1 -0
  424. package/dist/chunks/thinkback-play-1.1.14-gwr9e1aw.mjs +1 -0
  425. package/dist/chunks/toolPool-1.1.14-dczcmy51.mjs +1 -0
  426. package/dist/chunks/toolSearch-1.1.14-seww0hje.mjs +1 -0
  427. package/dist/chunks/tools-1.1.14-6edkph4d.mjs +1 -0
  428. package/dist/chunks/trustedDevice-1.1.14-fyw61308.mjs +1 -0
  429. package/dist/chunks/turndown.cjs-1.1.14-zz6ad8n2.mjs +69 -0
  430. package/dist/chunks/types-1.1.14-ype8816v.mjs +1 -0
  431. package/dist/chunks/ultrareviewCommand-1.1.14-sr15z0qh.mjs +4 -0
  432. package/dist/chunks/update-1.1.14-114p1f8r.mjs +72 -0
  433. package/dist/chunks/upgrade-1.1.14-9whzt7qa.mjs +1 -0
  434. package/dist/chunks/upload-1.1.14-hpk4spp9.mjs +7 -0
  435. package/dist/chunks/upstreamproxy-1.1.14-26edczqa.mjs +14 -0
  436. package/dist/chunks/url-handler-napi-1.1.14-3e9ramyj.mjs +1 -0
  437. package/dist/chunks/usage-1.1.14-xaegmtg7.mjs +1 -0
  438. package/dist/chunks/util-1.1.14-dtgb1qsg.mjs +1 -0
  439. package/dist/chunks/utils-1.1.14-xcvcp3es.mjs +1 -0
  440. package/dist/chunks/vim-1.1.14-y2x4dg5h.mjs +1 -0
  441. package/dist/chunks/watchLoop-1.1.14-r19ed4xt.mjs +13 -0
  442. package/dist/chunks/watcher-1.1.14-9z5ptaf1.mjs +1 -0
  443. package/dist/chunks/wiki-1.1.14-kyejnvfb.mjs +132 -0
  444. package/dist/chunks/workflows-1.1.14-06jg36tv.mjs +1 -0
  445. package/dist/chunks/worktree-1.1.14-k41xe3b1.mjs +1 -0
  446. package/dist/chunks/worktreeModeEnabled-1.1.14-3mn08sd0.mjs +1 -0
  447. package/dist/chunks/wrapper-1.1.14-tgerest3.mjs +7 -0
  448. package/dist/cli.mjs +2 -2
  449. package/package.json +9 -9
  450. package/dist/chunks/AgentTool-1.1.13-63r89cdz.mjs +0 -1
  451. package/dist/chunks/App-1.1.13-d46t1gxs.mjs +0 -1
  452. package/dist/chunks/ApproveApiKey-1.1.13-ss1skn67.mjs +0 -1
  453. package/dist/chunks/AssistantSessionChooser-1.1.13-akb18zhk.mjs +0 -1
  454. package/dist/chunks/AutoModeOptInDialog-1.1.13-wy2pstpa.mjs +0 -1
  455. package/dist/chunks/BypassPermissionsModeDialog-1.1.13-nrs4ahv7.mjs +0 -1
  456. package/dist/chunks/ClaudeMdExternalIncludesDialog-1.1.13-p12n7vw3.mjs +0 -1
  457. package/dist/chunks/ConsoleOAuthFlow-1.1.13-tqx20akq.mjs +0 -1
  458. package/dist/chunks/DiffDialog-1.1.13-6nf4k00f.mjs +0 -6
  459. package/dist/chunks/Doctor-1.1.13-sab3pc3m.mjs +0 -1
  460. package/dist/chunks/ExplorerDialog-1.1.13-8j4yph77.mjs +0 -6
  461. package/dist/chunks/ITermBackend-1.1.13-ezctrhfh.mjs +0 -1
  462. package/dist/chunks/InvalidConfigDialog-1.1.13-fn55xkky.mjs +0 -1
  463. package/dist/chunks/InvalidSettingsDialog-1.1.13-v601bm3n.mjs +0 -1
  464. package/dist/chunks/MigrationDialog-1.1.13-m30010yq.mjs +0 -1
  465. package/dist/chunks/Onboarding-1.1.13-r6p8ac38.mjs +0 -1
  466. package/dist/chunks/ProviderManager-1.1.13-2mn20qcd.mjs +0 -1
  467. package/dist/chunks/REPL-1.1.13-mn8t5yw9.mjs +0 -1
  468. package/dist/chunks/ResumeConversation-1.1.13-ayr9p9vf.mjs +0 -1
  469. package/dist/chunks/SnapshotUpdateDialog-1.1.13-wvmmeycx.mjs +0 -1
  470. package/dist/chunks/TeleportProgress-1.1.13-wy75ekbh.mjs +0 -1
  471. package/dist/chunks/TeleportRepoMismatchDialog-1.1.13-mbjqq83z.mjs +0 -1
  472. package/dist/chunks/TeleportResumeWrapper-1.1.13-590kxc7c.mjs +0 -1
  473. package/dist/chunks/TmuxBackend-1.1.13-3z3twxzs.mjs +0 -9
  474. package/dist/chunks/ToolSearchTool-1.1.13-wzknhxkr.mjs +0 -1
  475. package/dist/chunks/TrustDialog-1.1.13-ev0qre9c.mjs +0 -1
  476. package/dist/chunks/activeProvider-1.1.13-mf4z3aws.mjs +0 -1
  477. package/dist/chunks/add-dir-1.1.13-r8re3j87.mjs +0 -1
  478. package/dist/chunks/agentTypes-1.1.13-nxkcga73.mjs +0 -1
  479. package/dist/chunks/agents-1.1.13-86a1wgye.mjs +0 -110
  480. package/dist/chunks/agents-1.1.13-w1pmkekd.mjs +0 -3
  481. package/dist/chunks/api-1.1.13-5ffq20rc.mjs +0 -1
  482. package/dist/chunks/asciicast-1.1.13-633wvh0n.mjs +0 -1
  483. package/dist/chunks/assistant-1.1.13-9q7zxtfz.mjs +0 -1
  484. package/dist/chunks/auth-1.1.13-a50e1ztc.mjs +0 -1
  485. package/dist/chunks/auth-1.1.13-xv576tj3.mjs +0 -1
  486. package/dist/chunks/autoMode-1.1.13-3n3c9p8y.mjs +0 -48
  487. package/dist/chunks/autoUpdater-1.1.13-mb65jkk5.mjs +0 -1
  488. package/dist/chunks/backgroundHousekeeping-1.1.13-avr9z4k0.mjs +0 -1
  489. package/dist/chunks/branch-1.1.13-gmg9we2y.mjs +0 -4
  490. package/dist/chunks/bridge-1.1.13-hvfvhpm1.mjs +0 -2
  491. package/dist/chunks/bridgeConfig-1.1.13-zzxf7mvh.mjs +0 -1
  492. package/dist/chunks/bridgeEnabled-1.1.13-f2fjmfs0.mjs +0 -1
  493. package/dist/chunks/bridgeMain-1.1.13-8tn5vy8z.mjs +0 -88
  494. package/dist/chunks/bridgePointer-1.1.13-97d9ec9y.mjs +0 -1
  495. package/dist/chunks/btw-1.1.13-v2hwppkk.mjs +0 -1
  496. package/dist/chunks/buddy-1.1.13-svfg8x3f.mjs +0 -3
  497. package/dist/chunks/cache-probe-1.1.13-td1bna05.mjs +0 -21
  498. package/dist/chunks/cacheStats-1.1.13-tmmf2k7r.mjs +0 -4
  499. package/dist/chunks/caches-1.1.13-s55yzhpm.mjs +0 -1
  500. package/dist/chunks/claudeDesktop-1.1.13-8d0bp8yb.mjs +0 -1
  501. package/dist/chunks/claudemd-1.1.13-3mc0z25q.mjs +0 -1
  502. package/dist/chunks/clear-1.1.13-1d9yvw3f.mjs +0 -1
  503. package/dist/chunks/clearTerminal-1.1.13-882kpw7s.mjs +0 -1
  504. package/dist/chunks/cli-1.1.13-03rdpsbf.mjs +0 -2
  505. package/dist/chunks/cli-1.1.13-0dha376x.mjs +0 -3
  506. package/dist/chunks/cli-1.1.13-0h48j6a1.mjs +0 -7
  507. package/dist/chunks/cli-1.1.13-0qy978b3.mjs +0 -3
  508. package/dist/chunks/cli-1.1.13-0x1mk1dp.mjs +0 -2
  509. package/dist/chunks/cli-1.1.13-0y4933cs.mjs +0 -2
  510. package/dist/chunks/cli-1.1.13-0yte5zpd.mjs +0 -2
  511. package/dist/chunks/cli-1.1.13-15nbdw38.mjs +0 -2
  512. package/dist/chunks/cli-1.1.13-17xy86gy.mjs +0 -24
  513. package/dist/chunks/cli-1.1.13-1d70jtz7.mjs +0 -6
  514. package/dist/chunks/cli-1.1.13-1frz0zm3.mjs +0 -2
  515. package/dist/chunks/cli-1.1.13-1jf910f2.mjs +0 -2
  516. package/dist/chunks/cli-1.1.13-1qk5qhgt.mjs +0 -2
  517. package/dist/chunks/cli-1.1.13-1rfveg0v.mjs +0 -2
  518. package/dist/chunks/cli-1.1.13-1x4z2mj8.mjs +0 -2
  519. package/dist/chunks/cli-1.1.13-24284zna.mjs +0 -2
  520. package/dist/chunks/cli-1.1.13-284pjmzy.mjs +0 -4
  521. package/dist/chunks/cli-1.1.13-2964cc2e.mjs +0 -2
  522. package/dist/chunks/cli-1.1.13-2a8k8qw7.mjs +0 -2
  523. package/dist/chunks/cli-1.1.13-2f0gzs1e.mjs +0 -2
  524. package/dist/chunks/cli-1.1.13-2m39r998.mjs +0 -2
  525. package/dist/chunks/cli-1.1.13-2mrqqgcm.mjs +0 -202
  526. package/dist/chunks/cli-1.1.13-2sx1bxbt.mjs +0 -2
  527. package/dist/chunks/cli-1.1.13-2txesqy8.mjs +0 -2
  528. package/dist/chunks/cli-1.1.13-3dmbtx8g.mjs +0 -2
  529. package/dist/chunks/cli-1.1.13-3wxfn6t5.mjs +0 -2
  530. package/dist/chunks/cli-1.1.13-46jvx14j.mjs +0 -2
  531. package/dist/chunks/cli-1.1.13-49gvv5kd.mjs +0 -2
  532. package/dist/chunks/cli-1.1.13-4tt8dq0e.mjs +0 -42
  533. package/dist/chunks/cli-1.1.13-4vt96sm8.mjs +0 -2
  534. package/dist/chunks/cli-1.1.13-53ght581.mjs +0 -3
  535. package/dist/chunks/cli-1.1.13-53zq1gs2.mjs +0 -2
  536. package/dist/chunks/cli-1.1.13-5kpppj1f.mjs +0 -6
  537. package/dist/chunks/cli-1.1.13-61mygvzg.mjs +0 -2
  538. package/dist/chunks/cli-1.1.13-64d0d5ye.mjs +0 -2
  539. package/dist/chunks/cli-1.1.13-65c7kxwt.mjs +0 -12
  540. package/dist/chunks/cli-1.1.13-669vhsjj.mjs +0 -2
  541. package/dist/chunks/cli-1.1.13-6727vw4f.mjs +0 -2
  542. package/dist/chunks/cli-1.1.13-6b845car.mjs +0 -2
  543. package/dist/chunks/cli-1.1.13-6c4qxmj3.mjs +0 -4
  544. package/dist/chunks/cli-1.1.13-6dcpjy34.mjs +0 -17
  545. package/dist/chunks/cli-1.1.13-6ebd7gpv.mjs +0 -2
  546. package/dist/chunks/cli-1.1.13-6jy1pnge.mjs +0 -2
  547. package/dist/chunks/cli-1.1.13-6k71beqh.mjs +0 -2
  548. package/dist/chunks/cli-1.1.13-6tf67wfm.mjs +0 -2
  549. package/dist/chunks/cli-1.1.13-74rczf0f.mjs +0 -2
  550. package/dist/chunks/cli-1.1.13-7h18kpv0.mjs +0 -2
  551. package/dist/chunks/cli-1.1.13-7k2bp2pf.mjs +0 -2
  552. package/dist/chunks/cli-1.1.13-7s34jqge.mjs +0 -133
  553. package/dist/chunks/cli-1.1.13-7srn3vy6.mjs +0 -2
  554. package/dist/chunks/cli-1.1.13-7wyfj1qp.mjs +0 -2
  555. package/dist/chunks/cli-1.1.13-82y6dszx.mjs +0 -2
  556. package/dist/chunks/cli-1.1.13-86kjp502.mjs +0 -2
  557. package/dist/chunks/cli-1.1.13-91q67gqp.mjs +0 -2
  558. package/dist/chunks/cli-1.1.13-9609q0ww.mjs +0 -2
  559. package/dist/chunks/cli-1.1.13-9ktdmvzq.mjs +0 -15
  560. package/dist/chunks/cli-1.1.13-9qhgyzkx.mjs +0 -2
  561. package/dist/chunks/cli-1.1.13-9s0arh3g.mjs +0 -25
  562. package/dist/chunks/cli-1.1.13-9v3mg87v.mjs +0 -2
  563. package/dist/chunks/cli-1.1.13-9x53mnyd.mjs +0 -5
  564. package/dist/chunks/cli-1.1.13-a3q7qm6t.mjs +0 -2
  565. package/dist/chunks/cli-1.1.13-a3s5tdea.mjs +0 -2
  566. package/dist/chunks/cli-1.1.13-a3zfe19b.mjs +0 -25
  567. package/dist/chunks/cli-1.1.13-a40ncbc3.mjs +0 -2
  568. package/dist/chunks/cli-1.1.13-a96dm0r5.mjs +0 -4
  569. package/dist/chunks/cli-1.1.13-aac9pss7.mjs +0 -59
  570. package/dist/chunks/cli-1.1.13-aeq919w1.mjs +0 -2
  571. package/dist/chunks/cli-1.1.13-aqph7zr1.mjs +0 -2
  572. package/dist/chunks/cli-1.1.13-ayx92dtj.mjs +0 -6
  573. package/dist/chunks/cli-1.1.13-b47k2p92.mjs +0 -21
  574. package/dist/chunks/cli-1.1.13-b9sg0jsz.mjs +0 -2
  575. package/dist/chunks/cli-1.1.13-baxww5k9.mjs +0 -3
  576. package/dist/chunks/cli-1.1.13-c4zxjf91.mjs +0 -2
  577. package/dist/chunks/cli-1.1.13-cd7jraqe.mjs +0 -2
  578. package/dist/chunks/cli-1.1.13-cey8v1xc.mjs +0 -2
  579. package/dist/chunks/cli-1.1.13-cg1m9a2x.mjs +0 -2
  580. package/dist/chunks/cli-1.1.13-ck2qzqbj.mjs +0 -2
  581. package/dist/chunks/cli-1.1.13-cm4vwx6e.mjs +0 -2
  582. package/dist/chunks/cli-1.1.13-cn9g3704.mjs +0 -12
  583. package/dist/chunks/cli-1.1.13-cqhxyzrd.mjs +0 -2
  584. package/dist/chunks/cli-1.1.13-d4z9sv3g.mjs +0 -2
  585. package/dist/chunks/cli-1.1.13-d54qh52e.mjs +0 -3
  586. package/dist/chunks/cli-1.1.13-d8d30wps.mjs +0 -3
  587. package/dist/chunks/cli-1.1.13-djvyb4s5.mjs +0 -3
  588. package/dist/chunks/cli-1.1.13-dpsjxc84.mjs +0 -2
  589. package/dist/chunks/cli-1.1.13-dthjfxxw.mjs +0 -2
  590. package/dist/chunks/cli-1.1.13-e4k7980n.mjs +0 -2
  591. package/dist/chunks/cli-1.1.13-e68npf24.mjs +0 -2
  592. package/dist/chunks/cli-1.1.13-ehaqachs.mjs +0 -2
  593. package/dist/chunks/cli-1.1.13-epjmphrz.mjs +0 -133
  594. package/dist/chunks/cli-1.1.13-ev08z5ye.mjs +0 -24
  595. package/dist/chunks/cli-1.1.13-ewxej7em.mjs +0 -2
  596. package/dist/chunks/cli-1.1.13-ey931psa.mjs +0 -2
  597. package/dist/chunks/cli-1.1.13-f5s7e6kg.mjs +0 -2
  598. package/dist/chunks/cli-1.1.13-far5gqfj.mjs +0 -2
  599. package/dist/chunks/cli-1.1.13-fccy9c48.mjs +0 -2
  600. package/dist/chunks/cli-1.1.13-fjxx2wgm.mjs +0 -2
  601. package/dist/chunks/cli-1.1.13-fkcaczca.mjs +0 -2
  602. package/dist/chunks/cli-1.1.13-fkvcsg0a.mjs +0 -2
  603. package/dist/chunks/cli-1.1.13-fr4zp0cx.mjs +0 -3
  604. package/dist/chunks/cli-1.1.13-g8k8na90.mjs +0 -2
  605. package/dist/chunks/cli-1.1.13-gaa8s22w.mjs +0 -8
  606. package/dist/chunks/cli-1.1.13-gechs2yp.mjs +0 -4
  607. package/dist/chunks/cli-1.1.13-gfyds6b8.mjs +0 -18
  608. package/dist/chunks/cli-1.1.13-gh95gh19.mjs +0 -2
  609. package/dist/chunks/cli-1.1.13-gmqmzw50.mjs +0 -2
  610. package/dist/chunks/cli-1.1.13-gzfw6n93.mjs +0 -39
  611. package/dist/chunks/cli-1.1.13-gznvgt6g.mjs +0 -16
  612. package/dist/chunks/cli-1.1.13-h1v6cap9.mjs +0 -2
  613. package/dist/chunks/cli-1.1.13-h7n0z0dz.mjs +0 -2
  614. package/dist/chunks/cli-1.1.13-h7xrb6x3.mjs +0 -2
  615. package/dist/chunks/cli-1.1.13-hg8x8693.mjs +0 -6
  616. package/dist/chunks/cli-1.1.13-hzneg4va.mjs +0 -2
  617. package/dist/chunks/cli-1.1.13-j02dcs05.mjs +0 -2
  618. package/dist/chunks/cli-1.1.13-j7dbk8te.mjs +0 -2
  619. package/dist/chunks/cli-1.1.13-j98qjhp9.mjs +0 -15
  620. package/dist/chunks/cli-1.1.13-je6371k7.mjs +0 -2
  621. package/dist/chunks/cli-1.1.13-jevpf9b3.mjs +0 -2
  622. package/dist/chunks/cli-1.1.13-k5sbyjwd.mjs +0 -2
  623. package/dist/chunks/cli-1.1.13-k6ef9cy7.mjs +0 -34
  624. package/dist/chunks/cli-1.1.13-kbf9vss4.mjs +0 -4
  625. package/dist/chunks/cli-1.1.13-kct81ph3.mjs +0 -2
  626. package/dist/chunks/cli-1.1.13-kjdr6edt.mjs +0 -15
  627. package/dist/chunks/cli-1.1.13-kmrz3wh8.mjs +0 -2
  628. package/dist/chunks/cli-1.1.13-kq8spsav.mjs +0 -2
  629. package/dist/chunks/cli-1.1.13-ksvd60yr.mjs +0 -2
  630. package/dist/chunks/cli-1.1.13-kw2fntc3.mjs +0 -3
  631. package/dist/chunks/cli-1.1.13-m5grg33r.mjs +0 -4
  632. package/dist/chunks/cli-1.1.13-mct1fasm.mjs +0 -2
  633. package/dist/chunks/cli-1.1.13-mt0y53s0.mjs +0 -17
  634. package/dist/chunks/cli-1.1.13-mzq23677.mjs +0 -2
  635. package/dist/chunks/cli-1.1.13-n24mxjbh.mjs +0 -2
  636. package/dist/chunks/cli-1.1.13-n8nv58q7.mjs +0 -2
  637. package/dist/chunks/cli-1.1.13-nbdp9ez1.mjs +0 -3
  638. package/dist/chunks/cli-1.1.13-nr09192d.mjs +0 -2
  639. package/dist/chunks/cli-1.1.13-pa4chrcw.mjs +0 -2
  640. package/dist/chunks/cli-1.1.13-pam922jf.mjs +0 -2
  641. package/dist/chunks/cli-1.1.13-pedv9sma.mjs +0 -9
  642. package/dist/chunks/cli-1.1.13-pjxb9g99.mjs +0 -2
  643. package/dist/chunks/cli-1.1.13-pmejqt4x.mjs +0 -2
  644. package/dist/chunks/cli-1.1.13-pscw4dkq.mjs +0 -2
  645. package/dist/chunks/cli-1.1.13-psmq4bkh.mjs +0 -50
  646. package/dist/chunks/cli-1.1.13-q1hx591h.mjs +0 -2
  647. package/dist/chunks/cli-1.1.13-q1yggv9b.mjs +0 -2
  648. package/dist/chunks/cli-1.1.13-qc5bvtyx.mjs +0 -2
  649. package/dist/chunks/cli-1.1.13-qd5r2qba.mjs +0 -2
  650. package/dist/chunks/cli-1.1.13-qhavh0s1.mjs +0 -9
  651. package/dist/chunks/cli-1.1.13-qr4adses.mjs +0 -2
  652. package/dist/chunks/cli-1.1.13-qtzpy08k.mjs +0 -2
  653. package/dist/chunks/cli-1.1.13-qv85wtc7.mjs +0 -2
  654. package/dist/chunks/cli-1.1.13-qxrjvprg.mjs +0 -3
  655. package/dist/chunks/cli-1.1.13-qyjx1fky.mjs +0 -2
  656. package/dist/chunks/cli-1.1.13-r2qnta4s.mjs +0 -2
  657. package/dist/chunks/cli-1.1.13-r4znfhyr.mjs +0 -2
  658. package/dist/chunks/cli-1.1.13-r9tfxszp.mjs +0 -2
  659. package/dist/chunks/cli-1.1.13-rcgr5xjp.mjs +0 -1
  660. package/dist/chunks/cli-1.1.13-rh27w2xj.mjs +0 -24
  661. package/dist/chunks/cli-1.1.13-rhtvcdjb.mjs +0 -3
  662. package/dist/chunks/cli-1.1.13-rmt4z6qm.mjs +0 -2
  663. package/dist/chunks/cli-1.1.13-rnajmfsp.mjs +0 -2
  664. package/dist/chunks/cli-1.1.13-rrp2vm36.mjs +0 -2
  665. package/dist/chunks/cli-1.1.13-segzta4x.mjs +0 -2
  666. package/dist/chunks/cli-1.1.13-shz97pa0.mjs +0 -2
  667. package/dist/chunks/cli-1.1.13-smefk747.mjs +0 -2
  668. package/dist/chunks/cli-1.1.13-snkbv1w2.mjs +0 -2
  669. package/dist/chunks/cli-1.1.13-sqg8rfkh.mjs +0 -2
  670. package/dist/chunks/cli-1.1.13-sycf9s0v.mjs +0 -3
  671. package/dist/chunks/cli-1.1.13-t4z97zfd.mjs +0 -2
  672. package/dist/chunks/cli-1.1.13-t8ypngwg.mjs +0 -4
  673. package/dist/chunks/cli-1.1.13-tma5xwa2.mjs +0 -2
  674. package/dist/chunks/cli-1.1.13-tx4y2gtw.mjs +0 -2
  675. package/dist/chunks/cli-1.1.13-tz8pn7w4.mjs +0 -24
  676. package/dist/chunks/cli-1.1.13-v2synpdg.mjs +0 -2
  677. package/dist/chunks/cli-1.1.13-vm8xs878.mjs +0 -3
  678. package/dist/chunks/cli-1.1.13-vpgfmshm.mjs +0 -4
  679. package/dist/chunks/cli-1.1.13-vx6r9z72.mjs +0 -45
  680. package/dist/chunks/cli-1.1.13-vxpmt3js.mjs +0 -66
  681. package/dist/chunks/cli-1.1.13-wh5smpta.mjs +0 -2
  682. package/dist/chunks/cli-1.1.13-wje228e3.mjs +0 -2
  683. package/dist/chunks/cli-1.1.13-wmpc2gzg.mjs +0 -2
  684. package/dist/chunks/cli-1.1.13-wqteqtr2.mjs +0 -2
  685. package/dist/chunks/cli-1.1.13-ws1mny6h.mjs +0 -58
  686. package/dist/chunks/cli-1.1.13-x663d461.mjs +0 -2
  687. package/dist/chunks/cli-1.1.13-x79qava2.mjs +0 -5413
  688. package/dist/chunks/cli-1.1.13-x83epxhw.mjs +0 -2
  689. package/dist/chunks/cli-1.1.13-x92dpkgj.mjs +0 -6
  690. package/dist/chunks/cli-1.1.13-xbxnp58a.mjs +0 -2
  691. package/dist/chunks/cli-1.1.13-xjr3rwfq.mjs +0 -6
  692. package/dist/chunks/cli-1.1.13-xqqf08vq.mjs +0 -2
  693. package/dist/chunks/cli-1.1.13-y5d299s9.mjs +0 -2
  694. package/dist/chunks/cli-1.1.13-y6pa258f.mjs +0 -4
  695. package/dist/chunks/cli-1.1.13-y6vdh2z1.mjs +0 -2
  696. package/dist/chunks/cli-1.1.13-ykzv8nyq.mjs +0 -2
  697. package/dist/chunks/cli-1.1.13-z39hx0gz.mjs +0 -20
  698. package/dist/chunks/cli-1.1.13-z3t7b0fc.mjs +0 -2
  699. package/dist/chunks/cli-1.1.13-z4p8zcbq.mjs +0 -2
  700. package/dist/chunks/cli-1.1.13-z9471mhs.mjs +0 -4
  701. package/dist/chunks/cli-1.1.13-zb95jpx7.mjs +0 -4
  702. package/dist/chunks/cli-1.1.13-zgnxf8h2.mjs +0 -2
  703. package/dist/chunks/cli-1.1.13-zmb192fn.mjs +0 -18
  704. package/dist/chunks/cli-1.1.13-zq5f89xg.mjs +0 -5
  705. package/dist/chunks/cli-1.1.13-zwkd4wt2.mjs +0 -2
  706. package/dist/chunks/client-1.1.13-6axfwqya.mjs +0 -1
  707. package/dist/chunks/color-1.1.13-g1rjvg86.mjs +0 -1
  708. package/dist/chunks/compact-1.1.13-9k4jts81.mjs +0 -3
  709. package/dist/chunks/config-1.1.13-58bj6t43.mjs +0 -1
  710. package/dist/chunks/config-1.1.13-csmwn3d0.mjs +0 -1
  711. package/dist/chunks/constants-1.1.13-cydjncsk.mjs +0 -1
  712. package/dist/chunks/context-1.1.13-04y3svxc.mjs +0 -1
  713. package/dist/chunks/context-noninteractive-1.1.13-03weyc85.mjs +0 -1
  714. package/dist/chunks/conversation-1.1.13-3e1jc3w3.mjs +0 -1
  715. package/dist/chunks/copilotHeaders-1.1.13-51e32r1x.mjs +0 -1
  716. package/dist/chunks/copy-1.1.13-4zq95frp.mjs +0 -9
  717. package/dist/chunks/cost-1.1.13-fwm0etgk.mjs +0 -1
  718. package/dist/chunks/createSSHSession-1.1.13-j73jx662.mjs +0 -1
  719. package/dist/chunks/createSession-1.1.13-2qt6zyq3.mjs +0 -1
  720. package/dist/chunks/debug-1.1.13-v33s5nkx.mjs +0 -1
  721. package/dist/chunks/defaultActionDeps-1.1.13-jyb9mebt.mjs +0 -1526
  722. package/dist/chunks/desktop-1.1.13-3pyvc57q.mjs +0 -1
  723. package/dist/chunks/detectRepository-1.1.13-c8evf71r.mjs +0 -1
  724. package/dist/chunks/detection-1.1.13-k5td7n26.mjs +0 -1
  725. package/dist/chunks/diff-1.1.13-d31m696z.mjs +0 -1
  726. package/dist/chunks/doctor-1.1.13-59947n3f.mjs +0 -1
  727. package/dist/chunks/doctorDiagnostic-1.1.13-tvrr2smf.mjs +0 -1
  728. package/dist/chunks/earlyInput-1.1.13-yngv0q4n.mjs +0 -1
  729. package/dist/chunks/effort-1.1.13-mknzxvcm.mjs +0 -13
  730. package/dist/chunks/engine-1.1.13-p9g24e16.mjs +0 -1
  731. package/dist/chunks/envLessBridgeConfig-1.1.13-wvdxmeaw.mjs +0 -1
  732. package/dist/chunks/envUtils-1.1.13-v5y7eb11.mjs +0 -1
  733. package/dist/chunks/environmentSelection-1.1.13-5fx84mw2.mjs +0 -1
  734. package/dist/chunks/environments-1.1.13-dkqy0n2f.mjs +0 -1
  735. package/dist/chunks/errors-1.1.13-xf58n7yx.mjs +0 -1
  736. package/dist/chunks/exampleCommands-1.1.13-1mqkdys8.mjs +0 -1
  737. package/dist/chunks/execFileNoThrow-1.1.13-08pbvmpc.mjs +0 -1
  738. package/dist/chunks/exit-1.1.13-n91w8c6v.mjs +0 -1
  739. package/dist/chunks/explorer-1.1.13-zh3tbspv.mjs +0 -1
  740. package/dist/chunks/export-1.1.13-vgfr4wyy.mjs +0 -2
  741. package/dist/chunks/extra-usage-1.1.13-ww6z773x.mjs +0 -1
  742. package/dist/chunks/extra-usage-noninteractive-1.1.13-sfm57e8v.mjs +0 -1
  743. package/dist/chunks/fast-1.1.13-2an1j0he.mjs +0 -1
  744. package/dist/chunks/feedback-1.1.13-dz4kng15.mjs +0 -14
  745. package/dist/chunks/firstPartyEventLogger-1.1.13-zdhe9x8w.mjs +0 -1
  746. package/dist/chunks/git-1.1.13-n4743t7m.mjs +0 -1
  747. package/dist/chunks/githubModelsCredentials-1.1.13-39mkwpe0.mjs +0 -1
  748. package/dist/chunks/goal-1.1.13-kt16xsn7.mjs +0 -4
  749. package/dist/chunks/growthbook-1.1.13-12sbk0rh.mjs +0 -1
  750. package/dist/chunks/headless-1.1.13-me11khs4.mjs +0 -2
  751. package/dist/chunks/heapdump-1.1.13-2m1pfhn8.mjs +0 -6
  752. package/dist/chunks/help-1.1.13-sdyj6mfj.mjs +0 -1
  753. package/dist/chunks/hookChains-1.1.13-kwx32g3b.mjs +0 -3
  754. package/dist/chunks/hooks-1.1.13-cgr9s1yz.mjs +0 -1
  755. package/dist/chunks/hooks-1.1.13-rbvjw5bs.mjs +0 -79
  756. package/dist/chunks/ide-1.1.13-699b7xgf.mjs +0 -3
  757. package/dist/chunks/image-processor-napi-1.1.13-m17yzsrx.mjs +0 -1
  758. package/dist/chunks/inboundAttachments-1.1.13-x1sbkysh.mjs +0 -1
  759. package/dist/chunks/index-1.1.13-1magnv9t.mjs +0 -1
  760. package/dist/chunks/index-1.1.13-20fw0vyg.mjs +0 -1
  761. package/dist/chunks/index-1.1.13-3dw8qr3q.mjs +0 -1
  762. package/dist/chunks/index-1.1.13-5fffrw39.mjs +0 -23
  763. package/dist/chunks/index-1.1.13-7v1v2795.mjs +0 -1
  764. package/dist/chunks/index-1.1.13-89b63y1a.mjs +0 -1
  765. package/dist/chunks/index-1.1.13-9hmkds89.mjs +0 -1
  766. package/dist/chunks/index-1.1.13-gy0jpfpr.mjs +0 -1
  767. package/dist/chunks/index-1.1.13-hvpk64ts.mjs +0 -9
  768. package/dist/chunks/index-1.1.13-pfnaxhas.mjs +0 -9
  769. package/dist/chunks/index-1.1.13-pq81pd76.mjs +0 -2
  770. package/dist/chunks/index-1.1.13-q7xgkez4.mjs +0 -1
  771. package/dist/chunks/index-1.1.13-qed5hqgm.mjs +0 -1
  772. package/dist/chunks/index-1.1.13-qncvk76v.mjs +0 -1
  773. package/dist/chunks/index-1.1.13-qzm5brgp.mjs +0 -2
  774. package/dist/chunks/index-1.1.13-sqz3new4.mjs +0 -1
  775. package/dist/chunks/index-1.1.13-swwn9vsr.mjs +0 -1
  776. package/dist/chunks/index-1.1.13-tseyy72z.mjs +0 -1
  777. package/dist/chunks/index-1.1.13-v219xtkm.mjs +0 -1
  778. package/dist/chunks/index-1.1.13-vbws03kk.mjs +0 -30
  779. package/dist/chunks/index-1.1.13-vpewasbk.mjs +0 -1
  780. package/dist/chunks/index-1.1.13-yncdgpnc.mjs +0 -5
  781. package/dist/chunks/index-1.1.13-zs9h2fe1.mjs +0 -1
  782. package/dist/chunks/init-1.1.13-6m1d58s6.mjs +0 -1
  783. package/dist/chunks/initReplBridge-1.1.13-awvfmbnw.mjs +0 -1
  784. package/dist/chunks/ink-1.1.13-vsh153b4.mjs +0 -1
  785. package/dist/chunks/insights-1.1.13-q1te7p8c.mjs +0 -870
  786. package/dist/chunks/install-1.1.13-4m9h1gcp.mjs +0 -1
  787. package/dist/chunks/install-github-app-1.1.13-6psvvf35.mjs +0 -149
  788. package/dist/chunks/install-slack-app-1.1.13-rav6afh8.mjs +0 -1
  789. package/dist/chunks/instrumentation-1.1.13-8hhppwk0.mjs +0 -1
  790. package/dist/chunks/interactiveHelpers-1.1.13-18fm94xz.mjs +0 -1
  791. package/dist/chunks/keybindings-1.1.13-3k2cx6e8.mjs +0 -2
  792. package/dist/chunks/knowledge-1.1.13-v9293wfr.mjs +0 -2
  793. package/dist/chunks/latestVersionCache-1.1.13-1hy01yw3.mjs +0 -1
  794. package/dist/chunks/loadAgentsDir-1.1.13-gkw0j99z.mjs +0 -1
  795. package/dist/chunks/loadPluginHooks-1.1.13-mh4yata3.mjs +0 -1
  796. package/dist/chunks/log-1.1.13-j05vnw45.mjs +0 -1
  797. package/dist/chunks/main-1.1.13-9eb7dv86.mjs +0 -1
  798. package/dist/chunks/managedEnv-1.1.13-9ded70wd.mjs +0 -1
  799. package/dist/chunks/mcp-1.1.13-kp94f55t.mjs +0 -1
  800. package/dist/chunks/mcp-1.1.13-vyp2stqn.mjs +0 -4
  801. package/dist/chunks/mcp-1.1.13-xwk9expt.mjs +0 -17
  802. package/dist/chunks/mcpb-1.1.13-e4x7a1cq.mjs +0 -1
  803. package/dist/chunks/memory-1.1.13-xq6wwcec.mjs +0 -72
  804. package/dist/chunks/model-1.1.13-e9231b6a.mjs +0 -2
  805. package/dist/chunks/model-1.1.13-qkp6et1j.mjs +0 -1
  806. package/dist/chunks/node-1.1.13-eg9nzfxw.mjs +0 -12
  807. package/dist/chunks/oauth-1.1.13-65c8za8p.mjs +0 -1
  808. package/dist/chunks/openaiShim-1.1.13-9ym9m1mj.mjs +0 -14
  809. package/dist/chunks/output-style-1.1.13-3ew33fvw.mjs +0 -1
  810. package/dist/chunks/package-L37ZVTF4-1.1.13-53j92t2g.mjs +0 -1
  811. package/dist/chunks/parseConnectUrl-1.1.13-1jbm6fkk.mjs +0 -1
  812. package/dist/chunks/parser-1.1.13-5g8tytma.mjs +0 -1
  813. package/dist/chunks/passes-1.1.13-5xeg8jj4.mjs +0 -1
  814. package/dist/chunks/permissions-1.1.13-rtwebb2e.mjs +0 -3
  815. package/dist/chunks/permissions-1.1.13-tzfqtc98.mjs +0 -1
  816. package/dist/chunks/plan-1.1.13-fh6rsd03.mjs +0 -1
  817. package/dist/chunks/plist-1.1.13-4dh5ng03.mjs +0 -1
  818. package/dist/chunks/plugin-1.1.13-s7ah8dsz.mjs +0 -29
  819. package/dist/chunks/pluginStartupCheck-1.1.13-yv5cavjc.mjs +0 -1
  820. package/dist/chunks/plugins-1.1.13-nbh7kt80.mjs +0 -9
  821. package/dist/chunks/preActionHook-1.1.13-364dz1r6.mjs +0 -2
  822. package/dist/chunks/print-1.1.13-cba5ekrx.mjs +0 -57
  823. package/dist/chunks/process-1.1.13-cavp5bw3.mjs +0 -1
  824. package/dist/chunks/processBashCommand-1.1.13-fxe0rhkm.mjs +0 -1
  825. package/dist/chunks/processSlashCommand-1.1.13-r4eqk2r6.mjs +0 -9
  826. package/dist/chunks/prompt-1.1.13-31mpaj7k.mjs +0 -1
  827. package/dist/chunks/prompt-1.1.13-ncxsva6c.mjs +0 -1
  828. package/dist/chunks/prompts-1.1.13-dhrj0hdm.mjs +0 -1
  829. package/dist/chunks/protocolHandler-1.1.13-gvd8r63q.mjs +0 -13
  830. package/dist/chunks/provider-1.1.13-aec8n85t.mjs +0 -2
  831. package/dist/chunks/providerProfiles-1.1.13-zy5qqb30.mjs +0 -1
  832. package/dist/chunks/providerValidation-1.1.13-cxfdm6ma.mjs +0 -6
  833. package/dist/chunks/rate-limit-options-1.1.13-v7dcfp2w.mjs +0 -1
  834. package/dist/chunks/registerSubcommands-1.1.13-w8vyweq5.mjs +0 -26
  835. package/dist/chunks/registry-1.1.13-0gr1a931.mjs +0 -1
  836. package/dist/chunks/release-notes-1.1.13-e00b70ja.mjs +0 -5
  837. package/dist/chunks/reload-plugins-1.1.13-sqy72754.mjs +0 -2
  838. package/dist/chunks/remote-env-1.1.13-xx2p7c0r.mjs +0 -1
  839. package/dist/chunks/remoteBridgeCore-1.1.13-8aq4kysc.mjs +0 -1
  840. package/dist/chunks/remoteSession-1.1.13-pnkdpev8.mjs +0 -1
  841. package/dist/chunks/rename-1.1.13-7mj7635m.mjs +0 -1
  842. package/dist/chunks/replBridgeHandle-1.1.13-1jjw29zv.mjs +0 -1
  843. package/dist/chunks/replLauncher-1.1.13-r9abzwa5.mjs +0 -1
  844. package/dist/chunks/resume-1.1.13-j22aqaqb.mjs +0 -2
  845. package/dist/chunks/rewind-1.1.13-f1jde571.mjs +0 -1
  846. package/dist/chunks/rootOptions-1.1.13-m3dg8wsz.mjs +0 -1
  847. package/dist/chunks/runWorkflowHeadless-1.1.13-g7t752v0.mjs +0 -10
  848. package/dist/chunks/sandbox-adapter-1.1.13-8dyb4jrf.mjs +0 -1
  849. package/dist/chunks/sandbox-toggle-1.1.13-ns6smzfv.mjs +0 -1
  850. package/dist/chunks/session-1.1.13-je6e2q22.mjs +0 -2
  851. package/dist/chunks/sessionDiscovery-1.1.13-75db2930.mjs +0 -1
  852. package/dist/chunks/sessionFileAccessHooks-1.1.13-8251mhbe.mjs +0 -1
  853. package/dist/chunks/sessionStorage-1.1.13-xg7nehyd.mjs +0 -1
  854. package/dist/chunks/settings-1.1.13-tbc6gf4g.mjs +0 -1
  855. package/dist/chunks/setup-1.1.13-pk56d4kg.mjs +0 -5
  856. package/dist/chunks/sinks-1.1.13-vgc4py0g.mjs +0 -1
  857. package/dist/chunks/skills-1.1.13-k0dra3w7.mjs +0 -1
  858. package/dist/chunks/startupProfiler-1.1.13-fvpsbvqy.mjs +0 -1
  859. package/dist/chunks/startupUpdateCheck-1.1.13-v5fdv702.mjs +0 -1
  860. package/dist/chunks/state-1.1.13-m97vrspe.mjs +0 -1
  861. package/dist/chunks/stats-1.1.13-x2ranep4.mjs +0 -6
  862. package/dist/chunks/status-1.1.13-xv9dh6gx.mjs +0 -1
  863. package/dist/chunks/stickers-1.1.13-am6n03pg.mjs +0 -1
  864. package/dist/chunks/subprocessEnv-1.1.13-w3gcpn8h.mjs +0 -1
  865. package/dist/chunks/tasks-1.1.13-y9rjkzvh.mjs +0 -1
  866. package/dist/chunks/teamHelpers-1.1.13-paydek0r.mjs +0 -1
  867. package/dist/chunks/teammateModeSnapshot-1.1.13-w7zznyew.mjs +0 -1
  868. package/dist/chunks/teleport-1.1.13-fm868anx.mjs +0 -1
  869. package/dist/chunks/terminalSetup-1.1.13-nfx648p3.mjs +0 -1
  870. package/dist/chunks/theme-1.1.13-2a11bn8e.mjs +0 -1
  871. package/dist/chunks/thinkback-1.1.13-8a8pxp4f.mjs +0 -1
  872. package/dist/chunks/thinkback-play-1.1.13-0v3gmmaa.mjs +0 -1
  873. package/dist/chunks/toolPool-1.1.13-6pma3gae.mjs +0 -1
  874. package/dist/chunks/toolSearch-1.1.13-gmb9gs2k.mjs +0 -1
  875. package/dist/chunks/tools-1.1.13-pdnr83pg.mjs +0 -1
  876. package/dist/chunks/trustedDevice-1.1.13-82cy5yze.mjs +0 -1
  877. package/dist/chunks/turndown.cjs-1.1.13-bqqaen2x.mjs +0 -69
  878. package/dist/chunks/types-1.1.13-2f1xtenh.mjs +0 -1
  879. package/dist/chunks/ultrareviewCommand-1.1.13-89cvmahe.mjs +0 -4
  880. package/dist/chunks/update-1.1.13-0hd3pst5.mjs +0 -72
  881. package/dist/chunks/upgrade-1.1.13-3yjr0p81.mjs +0 -1
  882. package/dist/chunks/upload-1.1.13-kxah5qjz.mjs +0 -7
  883. package/dist/chunks/upstreamproxy-1.1.13-1jkww0dp.mjs +0 -14
  884. package/dist/chunks/url-handler-napi-1.1.13-xxqesd6p.mjs +0 -1
  885. package/dist/chunks/usage-1.1.13-mwqdp27m.mjs +0 -1
  886. package/dist/chunks/util-1.1.13-vzt92dj7.mjs +0 -1
  887. package/dist/chunks/utils-1.1.13-dw4qnd8d.mjs +0 -1
  888. package/dist/chunks/vim-1.1.13-1d635y0m.mjs +0 -1
  889. package/dist/chunks/watchLoop-1.1.13-dd5a4gny.mjs +0 -13
  890. package/dist/chunks/watcher-1.1.13-s8bc1gyy.mjs +0 -1
  891. package/dist/chunks/wiki-1.1.13-0j3t4xgh.mjs +0 -132
  892. package/dist/chunks/workflows-1.1.13-4jfegd8x.mjs +0 -1
  893. package/dist/chunks/worktree-1.1.13-t2dn2nay.mjs +0 -1
  894. package/dist/chunks/worktreeModeEnabled-1.1.13-sc9g7vcd.mjs +0 -1
  895. package/dist/chunks/wrapper-1.1.13-4tbb5aym.mjs +0 -7
  896. /package/dist/chunks/{cli-1.1.13-v06xvs9s.mjs → cli-1.1.14-3cc8a830.mjs} +0 -0
  897. /package/dist/chunks/{cli-1.1.13-xpwxcmvd.mjs → cli-1.1.14-7nz1bnsz.mjs} +0 -0
  898. /package/dist/chunks/{cli-1.1.13-hb5bb8jk.mjs → cli-1.1.14-835c2y60.mjs} +0 -0
  899. /package/dist/chunks/{cli-1.1.13-8812dqjq.mjs → cli-1.1.14-a39264wz.mjs} +0 -0
  900. /package/dist/chunks/{cli-1.1.13-v32emtk0.mjs → cli-1.1.14-jw4b6h9t.mjs} +0 -0
  901. /package/dist/chunks/{cli-1.1.13-e4hsds4b.mjs → cli-1.1.14-nhbccarx.mjs} +0 -0
  902. /package/dist/chunks/{cli-1.1.13-jdcqc6bd.mjs → cli-1.1.14-r930b2z3.mjs} +0 -0
@@ -1,16 +0,0 @@
1
- import{O8 as P5,Q8 as R7}from"./cli-1.1.13-cn9g3704.mjs";import{S8 as A,T8 as r8}from"./cli-1.1.13-hg8x8693.mjs";import{i9 as a2,k9 as D7}from"./cli-1.1.13-hzneg4va.mjs";import{$9 as K5,$aa as M1,Cea as e1,Eba as x8,Fda as x0,J_ as P2,L_ as e8,Nca as o1,Oda as s4,Qda as ZZ,Qfa as l2,Rda as S1,Rea as $0,Sda as m7,Tea as Z4,Tfa as G4,Uea as G8,Wca as B8,Yea as $4,Z9 as A4,Zfa as s2,_9 as t,a_ as D0,aba as p7,aga as L,b_ as C4,c_ as s5,dga as J0,h_ as H0,i_ as H1,lfa as B4,nba as z2,nea as c,nfa as J4,pga as k,qfa as N5,rda as P,rfa as $Z,sea as n2,t_ as v2,tda as x5,tea as S,w_ as o8,wda as N,wea as D,xga as n0}from"./cli-1.1.13-2mrqqgcm.mjs";import{Hha as T1,vha as S0,xha as h4}from"./cli-1.1.13-86kjp502.mjs";import{ija as A2,jja as l4,kja as B0,mja as G7,nja as H7,pja as U,qja as h0}from"./cli-1.1.13-wqteqtr2.mjs";import{rja as x,uja as z5}from"./cli-1.1.13-zgnxf8h2.mjs";import{_ja as U2,cka as a8,gka as n5,kka as S7,uka as z,wka as m0,xka as Z0}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as x1,Uka as g,Wka as z1}from"./cli-1.1.13-6c4qxmj3.mjs";import{cla as N2,fla as K,hla as u,jla as v5,nla as d}from"./cli-1.1.13-2m39r998.mjs";import{Ioa as C,Pma as Y0,Poa as I1,Qma as D1,Sna as d1,Sqa as Q0,eoa as r1,epa as X1,fpa as V1,gpa as W1,hpa as j1,ioa as y4,noa as y0,ooa as Z5,tpa as j5}from"./cli-1.1.13-0y4933cs.mjs";import{pra as h,qra as t0}from"./cli-1.1.13-24284zna.mjs";import{Mra as v,csa as Y5}from"./cli-1.1.13-ev08z5ye.mjs";import{Bsa as _0,Dsa as c5,Esa as R,Fsa as r}from"./cli-1.1.13-jdcqc6bd.mjs";function C2(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:Y,resolve:q,reject:X,context:V}=$.shift();try{let j=await Z.apply(V,Y);q(j)}catch(j){X(j)}}if(J=!1,$.length>0)Q()}return function(...Y){return new Promise((q,X)=>{$.push({args:Y,resolve:q,reject:X,context:this}),Q()})}}var u2=()=>{};function p2(Z,$){return Z.find((J)=>J.includes($))??null}async function m2(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.13-qed5hqgm.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.13-zs9h2fe1.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}async function sZ(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=v5(),J=K(process.env.CLAUDIN_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await P5(),...J&&{requestHandler:new(await import("./index-1.1.13-qed5hqgm.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-1.1.13-zs9h2fe1.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let Y=await j0();if(Y)Q.credentials={accessKeyId:Y.accessKeyId,secretAccessKey:Y.secretAccessKey,sessionToken:Y.sessionToken}}return new Z(Q)}function w7(Z){return Z.startsWith("anthropic.")}function K7(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function L7(Z){let $=K7(Z);for(let J of F7)if($.startsWith(`${J}.anthropic.`))return J;return}function rZ(Z,$){let J=L7(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(w7(Z))return`${$}.${Z}`;return Z}var g2,aZ,F7;var c2=R(()=>{t0();o();d();n0();R7();g2=h(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let Y=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),q=await Z.send(Y);if(q.inferenceProfileSummaries)J.push(...q.inferenceProfileSummaries);Q=q.nextToken}while(Q);return J.filter((Y)=>Y.inferenceProfileId?.includes("anthropic")).map((Y)=>Y.inferenceProfileId).filter(Boolean)}catch(Y){throw k(Y),Y}});aZ=h(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([m2(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),Y=await $.send(Q);if(!Y.models||Y.models.length===0)return null;let q=Y.models[0];if(!q?.modelArn)return null;let X=q.modelArn.lastIndexOf("/");return X>=0?q.modelArn.substring(X+1):q.modelArn}catch($){return k($),null}});F7=["us","eu","apac","global"]});var O5,E5,_5,y5,h5,I5,T5,M5,S5,l0,s0,a0,U0,f5,A5,C5,v0,d2;var u5=R(()=>{O5={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"},E5={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"},_5={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"},y5={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"},h5={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"},I5={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"},T5={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"},M5={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"},S5={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"},l0={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"},s0={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"},a0={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"},U0={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"},f5={firstParty:"claude-fable-5",bedrock:"anthropic.claude-fable-5",vertex:"claude-fable-5",foundry:"claude-fable-5",openai:"gpt-4o",gemini:"gemini-2.5-pro",github:"github:copilot",codex:"gpt-5.5","nvidia-nim":"nvidia/llama-3.1-nemotron-70b-instruct",minimax:"MiniMax-M2.5",mistral:"devstral-latest"},A5={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"},C5={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"},v0={haiku35:_5,haiku45:y5,sonnet35:E5,sonnet37:O5,sonnet40:h5,sonnet45:I5,sonnet46:A5,sonnet5:C5,opus40:T5,opus41:M5,opus45:S5,opus46:l0,opus47:s0,opus48:a0,opus5:U0,fable5:f5},d2=Object.fromEntries(Object.entries(v0).map(([Z,$])=>[$.firstParty,Z]))});function i2(){return Object.values(r0)}var r0,g5;var p5=R(()=>{r0={"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}}},g5=Object.fromEntries(Object.values(r0).map((Z)=>[Z.id,Z.name]))});var O0={};c5(O0,{prefetchCopilotModelCatalog:()=>i5,normalizeBareCopilotModelId:()=>d5,getEffectiveCopilotModels:()=>v7,getCopilotDisplayName:()=>P7,getCatalogCopilotMaxOutputTokens:()=>_7,getCatalogCopilotContextWindow:()=>E7,fetchCopilotModelCatalog:()=>o2,copilotModelSupportsAnthropicMessages:()=>O7,_setCopilotCatalogForTesting:()=>y7});function P0(){let Z=L();if(Z?.transport!=="github_copilot")return null;return(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,"")}function r2(){if(!e)return!1;let Z=P0();return Z!==null&&z0===Z}function k7(){if(t2)return;t2=!0,n2(()=>{let Z=P0();if(Z&&z0!==Z)i5()})}function d5(Z){let $=Z.split("?",1)[0]??Z,J=$.lastIndexOf(":"),Q=(J===-1?$:$.slice(J+1)).trim(),Y=Q.indexOf("/");return Y===-1?Q:Q.slice(Y+1)}function N7(Z){if(!Array.isArray(Z))return null;return Z.filter(($)=>typeof $==="string")}function U7(Z){let $=Z.id?.trim();if(!$)return null;let J=Z.capabilities?.type?.trim().toLowerCase();if(J&&J!=="chat")return null;if(Z.policy?.state==="disabled")return null;let Q=Z.capabilities?.limits??{},Y=Z.capabilities?.supports??{},q=Y.vision===!0||Boolean(Q.vision),X=Y.adaptive_thinking===!0||Array.isArray(Y.reasoning_effort)||typeof Y.max_thinking_budget==="number";return{model:{id:$,name:Z.name?.trim()||$,family:Z.capabilities?.family?.trim()||$,attachment:q,reasoning:X,tool_call:Y.tool_calls===!0,temperature:!0,knowledge:"",release_date:"",last_updated:"",modalities:{input:q?["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:N7(Z.supported_endpoints),pickerEnabled:Z.model_picker_enabled!==!1}}async function o2(){let Z=L();if(Z?.transport!=="github_copilot")return null;if(l2(Z.baseUrl)!=="copilot")return null;let $=Z.extras?.githubToken??Z.apiKey;if(!$)return null;let J=(Z.baseUrl||"https://api.githubcopilot.com").replace(/\/+$/,""),Q=new AbortController,Y=setTimeout(()=>Q.abort(),b7);try{let q=await fetch(`${J}/models`,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${$}`,...a2},signal:Q.signal});if(!q.ok)return null;let X=await q.json();if(!Array.isArray(X?.data))return null;let V=new Set,j=[];for(let G of X.data){let H=U7(G);if(!H||V.has(H.model.id))continue;V.add(H.model.id),j.push(H)}return j.length>0?j:null}catch{return z("[CopilotCatalog] /models fetch failed — using hardcoded registry"),null}finally{clearTimeout(Y)}}function i5(){k7();let Z=P0();if(!Z)return;if(e&&z0!==Z)e=null,z0=null;if(o0){if(m5===Z)return;o0.finally(()=>i5());return}m5=Z,o0=o2().then(($)=>{if($&&P0()===Z)e=$,z0=Z}).finally(()=>{o0=null,m5=null})}function v7(){if(r2()){let Z=e?.filter(($)=>$.pickerEnabled).map(($)=>$.model);if(Z&&Z.length>0)return Z}return i2()}function e0(Z){if(!r2())return;let $=d5(Z);return e.find((J)=>J.model.id===$)}function P7(Z){let $=d5(Z);return e0($)?.model.name??r0[$]?.name}function O7(Z){let $=e0(Z);if(!$||$.supportedEndpoints===null)return null;return $.supportedEndpoints.some((J)=>J.includes("/v1/messages"))}function E7(Z){return e0(Z)?.model.limit.context}function _7(Z){return e0(Z)?.model.limit.output}function y7(Z){e=Z,z0=Z?P0():null}var b7=5000,e=null,z0=null,o0=null,m5=null,t2=!1;var E0=R(()=>{J0();D7();s2();$0();Z0();p5()});function W(){let Z=L();if(!Z)return"firstParty";switch(Z.transport){case"anthropic":return"firstParty";case"gemini":return"gemini";case"mistral":return"mistral";case"github_copilot":return"github";case"codex_responses":return"codex";case"bedrock":return"bedrock";case"vertex":return"vertex";case"foundry":return"foundry";case"openai_compat":{let $=Z.baseUrl?.toLowerCase()??"";if($.includes("nvidia"))return"nvidia-nim";if($.includes("minimax"))return"minimax";return"openai"}default:return"firstParty"}}function W$(){return W()==="firstParty"}function h7(Z){let $=L();if($?.transport!=="github_copilot")return!1;let J=Z?.trim()||$.model?.trim()||"";if(!J.toLowerCase().includes("claude-"))return!1;try{let{copilotModelSupportsAnthropicMessages:Q}=(E0(),_0(O0)),Y=Q(J);if(Y!==null)return Y}catch{}return!0}function j$(Z){let $=L()?.transport??"anthropic";if(!I7.has($))return!1;if($==="github_copilot"&&h7(Z))return!1;return!0}function z$(){return W()}function x$(){let Z=L();if(!Z)return!0;if(Z.transport!=="anthropic")return!1;let $=Z.baseUrl;if(!$)return!0;try{let J=new URL($).host;return["api.anthropic.com"].includes(J)}catch{return!1}}var I7;var i=R(()=>{J0();I7=new Set(["openai_compat","gemini","mistral","github_copilot","codex_responses"])});function $5(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of Z1)J[Q]=v0[Q][$];return J}async function T7(){let Z=$5("bedrock"),$;try{$=await g2()}catch(Q){return k(Q),Z}if(!$?.length)return Z;let J={};for(let Q of Z1){let Y=v0[Q].firstParty;J[Q]=p2($,Y)||Z[Q]}return J}function e2(Z){let $=N().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,Y]of Object.entries($)){let q=d2[Q];if(q&&Y)J[q]=Y}return J}function J5(Z){let $;try{$=N().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function M7(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}$1()}function B(){let Z=y0();if(Z===null)return M7(),e2($5(W()));return e2(Z)}async function D$(){if(y0()!==null)return;if(W()!=="bedrock"){Z5($5(W()));return}await $1()}var Z1,$1;var Q5=R(()=>{Q0();n0();u2();x0();c2();u5();i();Z1=Object.keys(v0);$1=C2(async()=>{if(y0()!==null)return;try{let Z=await T7();Z5(Z)}catch(Z){k(Z)}})});function k$(Z){return Z}function N$(){return!1}function J1(){return null}function Q1(){return!1}var Y1=()=>{};async function y$(){let $=D().oauthAccount?.accountUuid,J=I0();if(!$||!J)return;let Q=`${U().BASE_API_URL}/api/claude_cli_profile`;try{return(await v.get(Q,{headers:{"x-api-key":J,"anthropic-beta":B0},params:{account_uuid:$},timeout:1e4})).data}catch(Y){k(Y)}}async function G0(Z){let $=`${U().BASE_API_URL}/api/oauth/profile`;try{return(await v.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){k(J)}}var t5=R(()=>{Y5();h0();o();$0();n0()});import{mkdirSync as f7,writeFileSync as A7}from"fs";function g7(Z,$,J){if(!K(process.env.CLAUDE_CODE_REMOTE))return;try{f7(q5,{recursive:!0,mode:448}),A7(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${g(Q)}`,{level:"error"})}}function q1(Z,$){try{let Q=n5().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!z1(J))z(`Failed to read ${$} from ${Z}: ${g(J)}`,{level:"debug"});return null}}function B1({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:Y}){let q=Q();if(q!==void 0)return q;let X=process.env[Z];if(!X){let j=q1($,J);return Y(j),j}let V=parseInt(X,10);if(Number.isNaN(V))return z(`${Z} must be a valid file descriptor number, got: ${X}`,{level:"error"}),Y(null),null;try{let j=n5(),G=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${V}`:`/proc/self/fd/${V}`,H=j.readFileSync(G,{encoding:"utf8"}).trim();if(!H)return z(`File descriptor contained empty ${J}`,{level:"error"}),Y(null),null;return z(`Successfully read ${J} from file descriptor ${V}`),Y(H),g7($,H,J),H}catch(j){z(`Failed to read ${J} from file descriptor ${V}: ${g(j)}`,{level:"error"});let G=q1($,J);return Y(G),G}}function X5(){return B1({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:C7,label:"OAuth token",getCached:X1,setCached:V1})}function l5(){return B1({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:u7,label:"API key",getCached:W1,setCached:j1})}var q5="/home/claude/.claude/remote",C7,u7,C$;var G1=R(()=>{Q0();Z0();d();x1();S7();C7=`${q5}/.oauth_token`,u7=`${q5}/.api_key`,C$=`${q5}/.session_ingress_token`});async function R1(){if(process.platform==="darwin"){let Z=t();if((await H0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function V5(Z){return Z.slice(-20)}var w1=R(()=>{H1();s5()});function d$(Z){return Z?.name==="CredentialsProviderError"}function F1(Z){if(!Z||typeof Z!=="object")return!1;let $=Z;if(!$.Credentials||typeof $.Credentials!=="object")return!1;let J=$.Credentials;return typeof J.AccessKeyId==="string"&&typeof J.SecretAccessKey==="string"&&typeof J.SessionToken==="string"&&J.AccessKeyId.length>0&&J.SecretAccessKey.length>0&&J.SessionToken.length>0}async function a5(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function K1(){try{z("Clearing AWS credential provider cache");let{fromIni:Z}=await import("@aws-sdk/credential-providers");await Z({ignoreCache:!0})(),z("AWS credential provider cache refreshed")}catch(Z){z("Failed to clear AWS credential cache (this is expected if no credentials are configured)")}}var L1=R(()=>{Z0()});class M{static instance=null;status={isAuthenticating:!1,output:[]};changed=Y0();static getInstance(){if(!M.instance)M.instance=new M;return M.instance}getStatus(){return{...this.status,output:[...this.status.output]}}startAuthentication(){this.status={isAuthenticating:!0,output:[]},this.changed.emit(this.getStatus())}addOutput(Z){this.status.output.push(Z),this.changed.emit(this.getStatus())}setError(Z){this.status.error=Z,this.changed.emit(this.getStatus())}endAuthentication(Z){if(Z)this.status={isAuthenticating:!1,output:[]};else this.status.isAuthenticating=!1;this.changed.emit(this.getStatus())}subscribe=this.changed.subscribe;static reset(){if(M.instance)M.instance.changed.clear(),M.instance=null}}var b1=R(()=>{D1()});var W5="claude-code-20250219",k1="interleaved-thinking-2025-05-14",T0="context-1m-2025-08-07",N1="context-management-2025-06-27",U1="structured-outputs-2025-12-15",r5="web-search-2025-03-05",v1="advanced-tool-use-2025-11-20",P1="tool-search-tool-2025-10-19",l$="effort-2025-11-24",s$="task-budgets-2026-03-13",O1="prompt-caching-scope-2026-01-05",a$="extended-cache-ttl-2025-04-11",r$="fast-mode-2026-02-01",E1="redact-thinking-2026-02-12",_1="thinking-token-count-2026-05-13",y1="token-efficient-tools-2026-03-28",o$="afk-mode-2026-01-31",e$="advisor-tool-2026-03-01",o5,ZJ;var e5=R(()=>{o5=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),ZJ=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function I(){if(W()!=="firstParty")return!1;return!K(process.env.CLAUDIN_DISABLE_FAST_MODE)}function f1(){if(!I())return!1;return d7()===null}function c7(Z,$){switch(Z){case"free":return $==="oauth"?"Fast mode requires a paid subscription":"Fast mode unavailable during evaluation. Please purchase credits.";case"preference":return"Fast mode has been disabled by your organization";case"extra_usage_disabled":return"Fast mode requires extra usage billing · /extra-usage to enable";case"network_error":return"Fast mode unavailable due to network connectivity issues";case"unknown":return"Fast mode is currently unavailable"}}function d7(){if(W()!=="firstParty")return"Fast mode is not available on third-party providers";if(!I())return"Fast mode is not available";let Z=S0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!M1()&&S0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(C()&&j5()&&!I1()){if(!P("flagSettings")?.fastMode)return z("Fast mode unavailable: Fast mode is not available in the Agent SDK"),"Fast mode is not available in the Agent SDK"}if(E.status==="disabled"){if(E.reason==="network_error"||E.reason==="unknown"){if(K(process.env.CLAUDIN_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=c7(E.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function KJ(){let Z=B5(X0());return"opus"+(J2()&&!Z?"[1m]":"")}function LJ(Z){if(!I())return!1;if(!f1())return!1;if(!A1(Z))return!1;let $=N();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function A1(Z){if(!I())return!1;let $=Z??f0(),J=T($).toLowerCase();return J.includes("opus-5")||J.includes("opus-4-7")||J.includes("opus-4-6")}function i7(){if(R0.status==="cooldown"&&Date.now()>=R0.resetAt){if(I()&&!Z2)z("Fast mode cooldown expired, re-enabling fast mode"),Z2=!0,u1.emit();R0={status:"active"}}return R0}function kJ(Z,$){if(!I())return;R0={status:"cooldown",resetAt:Z,reason:$},Z2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),x("",{cooldown_duration_ms:J,cooldown_reason:$}),C1.emit(Z,$)}function NJ(){R0={status:"active"}}function UJ(){if(E.status==="disabled")return;E={status:"disabled",reason:"preference"},x5("userSettings",{fastMode:void 0}),S((Z)=>({...Z,penguinModeOrgEnabled:!1})),$2.emit(!1)}function t7(Z){switch(Z){case"out_of_credits":return"Fast mode disabled · extra usage credits exhausted";case"org_level_disabled":case"org_service_level_disabled":return"Fast mode disabled · extra usage disabled by your organization";case"org_level_disabled_until":return"Fast mode disabled · extra usage spending cap reached";case"member_level_disabled":return"Fast mode disabled · extra usage disabled for your account";case"seat_tier_level_disabled":case"seat_tier_zero_credit_limit":case"member_zero_credit_limit":return"Fast mode disabled · extra usage not available for your plan";case"overage_not_provisioned":case"no_limits_configured":return"Fast mode requires extra usage billing · /extra-usage to enable";default:return"Fast mode disabled · extra usage not available"}}function n7(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function PJ(Z){let $=t7(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),x("",{overage_disabled_reason:Z??"unknown"}),!n7(Z))x5("userSettings",{fastMode:void 0}),S((J)=>({...J,penguinModeOrgEnabled:!1}));g1.emit($)}function l7(){return i7().status==="cooldown"}function OJ(Z,$){let J=I()&&f1()&&!!$&&A1(Z);if(J&&l7())return"cooldown";if(J)return"on";return"off"}async function s7(Z){let $=`${U().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":B0}:{"x-api-key":Z.apiKey};return(await v.get($,{headers:J})).data}function _J(){if(!I())return;if(E.status!=="pending")return;E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function yJ(){if(S1())return;if(!I())return;if(M0)return z("Fast mode prefetch in progress, returning in-flight promise"),M0;let Z=I0();if(!(w()?.accessToken&&q0())&&!Z){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-h1<a7){z("Skipping fast mode prefetch, fetched recently");return}h1=J;let Q=async()=>{let q=w(),X=q?.accessToken&&q0()?{accessToken:q.accessToken}:Z?{apiKey:Z}:null;if(!X)throw Error("No auth available");return s7(X)};async function Y(){try{let q;try{q=await Q()}catch(V){if(v.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 G=w()?.accessToken;if(G)await Q2(G),q=await Q();else throw V}else throw V}let X=E.status!=="pending"?E.status==="enabled":D().penguinModeOrgEnabled;if(E=q.enabled?{status:"enabled"}:{status:"disabled",reason:q.disabled_reason??"preference"},X!==q.enabled){if(!q.enabled)x5("userSettings",{fastMode:void 0});S((V)=>({...V,penguinModeOrgEnabled:q.enabled})),$2.emit(q.enabled)}z(`Org fast mode: ${q.enabled?"enabled":`disabled (${q.disabled_reason??"preference"})`}`)}catch(q){E=D().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${E.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${q}`,{level:"error"}),x("",{})}finally{M0=null}}return M0=Y(),M0}var FJ="Opus 5",R0,Z2=!1,C1,u1,DJ,bJ,g1,vJ,E,$2,EJ,a7=30000,h1=0,M0=null;var p1=R(()=>{Y5();h0();T1();Q0();z5();o();p7();$0();Z0();d();w0();i();m7();x0();D1();R0={status:"active"},C1=Y0(),u1=Y0(),DJ=C1.subscribe,bJ=u1.subscribe;g1=Y0(),vJ=g1.subscribe;E={status:"pending"},$2=Y0(),EJ=$2.subscribe});function J8(Z){for(let $ of $8)if($.pattern.test(Z))return $.cost;return}function q2(Z){if(I()&&Z)return i1;return n}function X2(Z){if(I()&&Z)return i1;return Y2[F(U0.firstParty)]??n}function Q8(Z,$){let J=Z.promptCacheWrite1hTokens??Z.promptCacheWriteTokens,Q=$.cache_creation,Y=Q?(Q.ephemeral_5m_input_tokens??0)/1e6*Z.promptCacheWriteTokens+(Q.ephemeral_1h_input_tokens??0)/1e6*J:($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens;return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+Y+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function Y8(Z,$){let J=b(Z);if(J===F(l0.firstParty)||J===F(s0.firstParty)||J===F(a0.firstParty)){let Y=$.speed==="fast";return q2(Y)}if(J===F(U0.firstParty))return X2($.speed==="fast");let Q=Y2[J];if(!Q){let Y=J8(Z);if(Y)return Y;return q8(Z,J),Y2[b(f0())]??Z8}return Q}function q8(Z,$){x("",{model:Z,shortName:$}),d1()}function X8(Z,$){let J=Y8(Z,$);return Q8(J,$)}function AJ(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return X8(Z,J)}function c1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function V2(Z){return`${c1(Z.inputTokens)}/${c1(Z.outputTokens)} per Mtok`}var F0,m1,n,r7,i1,o7,e7,Z8,$8,Y2;var t1=R(()=>{z5();Q0();p1();u5();w0();F0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheWrite1hTokens:6,promptCacheReadTokens:0.3,webSearchRequests:0.01},m1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheWrite1hTokens:30,promptCacheReadTokens:1.5,webSearchRequests:0.01},n={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheWrite1hTokens:10,promptCacheReadTokens:0.5,webSearchRequests:0.01},r7={inputTokens:10,outputTokens:50,promptCacheWriteTokens:12.5,promptCacheWrite1hTokens:20,promptCacheReadTokens:1,webSearchRequests:0.01},i1={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheWrite1hTokens:60,promptCacheReadTokens:3,webSearchRequests:0.01},o7={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheWrite1hTokens:1.6,promptCacheReadTokens:0.08,webSearchRequests:0.01},e7={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheWrite1hTokens:2,promptCacheReadTokens:0.1,webSearchRequests:0.01},Z8=n,$8=[{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}}];Y2={[F(_5.firstParty)]:o7,[F(y5.firstParty)]:e7,[F(E5.firstParty)]:F0,[F(O5.firstParty)]:F0,[F(h5.firstParty)]:F0,[F(I5.firstParty)]:F0,[F(A5.firstParty)]:F0,[F(C5.firstParty)]:F0,[F(T5.firstParty)]:m1,[F(M5.firstParty)]:m1,[F(S5.firstParty)]:n,[F(l0.firstParty)]:n,[F(s0.firstParty)]:n,[F(a0.firstParty)]:n,[F(U0.firstParty)]:n,[F(f5.firstParty)]:r7}});function p(Z){return V8.includes(Z)}function K0(Z){return W8.includes(Z)}var V8,W8;var W2=R(()=>{V8=["sonnet","opus","haiku","fable","best","sonnet[1m]","opus[1m]","opusplan"];W8=["sonnet","opus","haiku"]});function j8(Z,$){if(Z.includes($))return!0;if(p(Z))return T(Z).toLowerCase().includes($);return!1}function n1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function z8(Z,$){let J=p(Z)?T(Z).toLowerCase():Z;if(n1(J,$))return!0;if(!$.startsWith("claude-")&&n1(J,`claude-${$}`))return!0;return!1}function l1(Z,$){for(let J of $){if(K0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let Y=Q+Z.length;if(Y===J.length||J[Y]==="-")return!0}return!1}function s1(Z){let $=N()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let Y=J5(Z).trim().toLowerCase(),q=J.map((X)=>X.trim().toLowerCase());if(q.includes(Y)){if(!K0(Y)||!l1(Y,q))return!0}for(let X of q)if(K0(X)&&!l1(X,q)&&j8(Y,X))return!0;if(p(Y)){let X=T(Y).toLowerCase();if(q.includes(X))return!0}for(let X of q)if(!K0(X)&&p(X)){if(T(X).toLowerCase()===Y)return!0}for(let X of q)if(!K0(X)&&!p(X)){if(z8(Y,X))return!0}return!1}var a1=R(()=>{x0();W2();w0();Q5()});function G5(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function L0(){let Z=L();if(!Z?.model)return;return Z4(Z.model)}function W3(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"codexspark";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return Q4()}function j3(Z){return Z===B().opus40||Z===B().opus41||Z===B().opus45||Z===B().opus46||Z===B().opus47||Z===B().opus48||Z===B().opus5}function B5(Z){let $=b(Z);return $.includes("opus-5")||$.includes("sonnet-5")||$.includes("fable-5")}function j2(){let Z,$=r1();if($!==void 0)Z=$;else{let J=N()||{},Q=G5(J.model),q=L0()||Q||void 0,X=e1(),V=G5(X.activeModelForProject);if(V){let j=$4()?.id,G=X.activeModelForProjectProfileId;Z=G===void 0||G===j?V:q}else Z=q}if(Z&&!s1(Z))return;return Z}function z3(){let Z=j2();if(Z!==void 0&&Z!==null)return T(Z);return Y4()}function H8(){return X0()}function X0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.5-pro";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.7";if(W()!=="firstParty")return B().opus46;return B().opus5}function A0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=L0();if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"mistral-medium-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5";if(W()!=="firstParty")return B().sonnet45;return B().sonnet5}function Q4(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=L0();if(W()==="mistral")return Z||"ministral-3b-latest";if(W()==="openai")return Z||"gpt-4o-mini";if(W()==="codex")return Z||"gpt-5.5";if(W()==="github")return Z||"github:copilot";if(W()==="gemini")return Z||"gemini-2.0-flash-lite";if(W()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(W()==="minimax")return Z||"MiniMax-M2.5-highspeed";return B().haiku45}function x3(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(j2()==="opusplan"&&$==="plan"&&!Q)return X0();if(j2()==="haiku"&&$==="plan")return A0();return J}function f0(){let Z=L0();if(W()==="github"){let $=N()||{};return G5($.model)||Z||"github:copilot"}if(W()==="gemini")return Z||"gemini-2.0-flash";if(W()==="mistral")return Z||"devstral-latest";if(W()==="openai")return Z||"gpt-4o";if(W()==="codex")return Z||"gpt-5.5";if(H5()||R5()){let $=X0();return $+(J2()&&!B5($)?"[1m]":"")}return A0()}function Y4(){return T(f0())}function F(Z){if(Z=Z.toLowerCase(),Z.includes("claude-fable-5"))return"claude-fable-5";if(Z.includes("claude-opus-5"))return"claude-opus-5";if(Z.includes("claude-opus-4-8"))return"claude-opus-4-8";if(Z.includes("claude-opus-4-7"))return"claude-opus-4-7";if(Z.includes("claude-opus-4-6"))return"claude-opus-4-6";if(Z.includes("claude-opus-4-5"))return"claude-opus-4-5";if(Z.includes("claude-opus-4-1"))return"claude-opus-4-1";if(Z.includes("claude-opus-4"))return"claude-opus-4";if(Z.includes("claude-sonnet-5"))return"claude-sonnet-5";if(Z.includes("claude-sonnet-4-6"))return"claude-sonnet-4-6";if(Z.includes("claude-sonnet-4-5"))return"claude-sonnet-4-5";if(Z.includes("claude-sonnet-4"))return"claude-sonnet-4";if(Z.includes("claude-haiku-4-5"))return"claude-haiku-4-5";if(Z.includes("claude-3-7-sonnet"))return"claude-3-7-sonnet";if(Z.includes("claude-3-5-sonnet"))return"claude-3-5-sonnet";if(Z.includes("claude-3-5-haiku"))return"claude-3-5-haiku";if(Z.includes("claude-3-opus"))return"claude-3-opus";if(Z.includes("claude-3-sonnet"))return"claude-3-sonnet";if(Z.includes("claude-3-haiku"))return"claude-3-haiku";let $=Z.match(/(claude-(\d+-\d+-)?\w+)/);if($&&$[1])return $[1];return Z}function b(Z){return F(J5(Z))}function R8(Z=!1){if(H5()||R5())return`Opus 5 · Most capable for complex work${Z?w8(!0):""}`;return"Sonnet 5 · Best for everyday tasks"}function B3(Z){if(Z==="opusplan")return"Opus 5 in plan mode, else Sonnet 5";return X4(T(Z))}function G3(Z){if(W()!=="firstParty")return"";let $=V2(q2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function w8(Z){if(W()!=="firstParty")return"";let $=V2(X2(Z));return` ·${Z?` (${z2})`:""} ${$}`}function J2(){if(V0()||G2()||W()!=="firstParty")return!1;if(_()&&f()===null)return!1;return!0}function H3(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(p(Z))return o1(Z);return X4(Z)}function q4(Z){if(W()==="openai"||W()==="gemini"||W()==="codex"||W()==="github"){if(g5[Z])return g5[Z];if(W()==="github"){let{getCopilotDisplayName:$}=(E0(),_0(O0));return $(Z)??null}return null}switch(Z){case"gpt-5.5":return"GPT-5.5";case"gpt-5.4":return"GPT-5.4";case"gpt-5.3-codex-spark":return"GPT-5.3 Codex Spark";case B().fable5:return"Fable 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 X4(Z){let $=q4(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function R3(Z){let $=q4(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=G5(Z);if(!$)return A0();let J=$.toLowerCase(),Q=l(J),Y=Q?J.replace(/\[1m]$/i,"").trim():J;if(p(Y)){let q=(X)=>Q&&!B5(X)?X+"[1m]":X;switch(Y){case"opusplan":return q(A0());case"sonnet":return q(A0());case"haiku":return q(Q4());case"opus":return q(X0());case"best":return H8();default:}}if(Y==="codexplan")return"gpt-5.5";if(Y==="codexspark")return"gpt-5.3-codex-spark";if(Y==="fable"||Y==="fable5")return B().fable5;if(W()==="firstParty"&&K8(Y)&&L8())return X0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function w3(Z,$){if(l(Z)||!l($))return Z;if(x2(T(Z)))return Z+"[1m]";return Z}function K8(Z){return F8.includes(Z)}function L8(){return!K(process.env.CLAUDIN_DISABLE_LEGACY_MODEL_REMAP)}function F3(Z){if(Z===null){if(_())return`Default (${R8()})`;return`Default (${Y4()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function K3(Z){if(W()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=b(Z);if(J.includes("claude-fable-5"))return"Fable 5";if(J.includes("claude-opus-5"))return"Opus 5";if(J.includes("claude-opus-4-8"))return $?"Opus 4.8 (with 1M context)":"Opus 4.8";if(J.includes("claude-opus-4-7"))return $?"Opus 4.7 (with 1M context)":"Opus 4.7";if(J.includes("claude-opus-4-6"))return $?"Opus 4.6 (with 1M context)":"Opus 4.6";if(J.includes("claude-opus-4-5"))return"Opus 4.5";if(J.includes("claude-opus-4-1"))return"Opus 4.1";if(J.includes("claude-opus-4"))return"Opus 4";if(J.includes("claude-sonnet-5"))return"Sonnet 5";if(J.includes("claude-sonnet-4-6"))return $?"Sonnet 4.6 (with 1M context)":"Sonnet 4.6";if(J.includes("claude-sonnet-4-5"))return $?"Sonnet 4.5 (with 1M context)":"Sonnet 4.5";if(J.includes("claude-sonnet-4"))return $?"Sonnet 4 (with 1M context)":"Sonnet 4";if(J.includes("claude-3-7-sonnet"))return"Claude 3.7 Sonnet";if(J.includes("claude-3-5-sonnet"))return"Claude 3.5 Sonnet";if(J.includes("claude-haiku-4-5"))return"Haiku 4.5";if(J.includes("claude-3-5-haiku"))return"Claude 3.5 Haiku";return}function L3(Z){return Z.replace(/\[(1|2)m\]/gi,"")}function D3(Z){let $=b(Z);return $.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")||$.includes("sonnet-5")}var F8;var w0=R(()=>{Q0();J0();$0();J4();o();B2();d();G8();Q5();t1();x0();i();x8();a1();W2();B8();p5();F8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function H2(Z){return}async function k3(){}var V4=()=>{};function N8(Z,$={}){if($.isPro??(k8.test(Z)||W4.has(Z)))return!1;if(D8.has(Z))return!0;if(W4.has(Z))return!1;let Q=Z.match(b8);return Q?Number.parseFloat(Q[1])>5.4:!1}function U3(){return w5.filter((Z)=>N8(Z.id,{isPro:Z.isPro}))}var w5,D8,W4,b8,k8,j4,z4;var x4=R(()=>{w5=[{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}],D8=new Set(w5.filter((Z)=>!Z.isPro).map((Z)=>Z.id)),W4=new Set(["gpt-5.5-pro"]),b8=/^gpt-(\d+\.\d+)/,k8=/-pro$/;j4=Object.fromEntries(w5.filter((Z)=>Z.contextInput!==void 0).map((Z)=>[Z.id,Z.contextInput])),z4=Object.fromEntries(w5.filter((Z)=>Z.contextOutput!==void 0).map((Z)=>[Z.id,Z.contextOutput]))});var K4={};c5(K4,{prefetchOpenAICompatibleModels:()=>T8,getDiscoveredContextWindow:()=>U8,discoverOpenAICompatibleModelOptions:()=>F4});function U8(Z){return R4.get(Z)}function v8(){return(L()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function w4(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function P8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function O8(Z){let $=L()?.apiKey?.trim();if(!$)return{};if(P8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(w4(Z))J["api-key"]=$;return J}function E8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),Y=Q&&w4(Z)?(q)=>{try{let X=new URL(q);return X.searchParams.set("api-version",Q),X.toString()}catch{return q}}:(q)=>q;if($===J)return[Y($)];return[Y($),Y(J)]}function _8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),Y=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${Y}`}catch{return null}}function y8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function h8(Z,$){let J=new Set;for(let Q of Z)try{let Y=await v.get(Q,{headers:$,timeout:H4}),q=[];for(let X of Y.data?.data??[]){let V=X.id?.trim();if(!V||J.has(V))continue;J.add(V);let j=X.name?.trim()||V,G=X.context_length??null;if(G&&G>0)R4.set(V,G);let H=G?` · ${y8(G)}`:"";q.push({value:V,label:j,description:`${V}${H}`})}if(q.length>0)return q.sort((X,V)=>{let j=String(X.value).split("/")[0]??"",G=String(V.value).split("/")[0]??"",H=j.localeCompare(G);return H!==0?H:String(X.value).localeCompare(String(V.value))}),q}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function I8(Z,$){try{let J=await v.get(Z,{headers:$,timeout:H4}),Q=new Set;return(J.data?.models??[]).map((Y)=>Y.name?.trim()??"").filter((Y)=>{if(!Y||Q.has(Y))return!1;return Q.add(Y),!0}).map((Y)=>({value:Y,label:Y,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function F4(){if(W()!=="openai")return[];let Z=v8(),$=O8(Z),J=await h8(E8(Z),$);if(J.length>0)return J;let Q=_8(Z);if(Q)return I8(Q,$);return[]}function T8(){if(C0)return C0;return C0=(async()=>{if(!G4()?.startsWith("openai:"))return;try{let $=await F4();if($.length>0)B4($)}catch{}finally{C0=null}})(),C0}var H4=5000,R4,C0=null;var L4=R(()=>{Y5();J0();s2();Z0();i();J4();R4=new Map});function b4(Z,$,J){let Q=L()?.model?.trim();if(Q&&Q!==J){let q=`${Q}:${J}`;if($[q]!==void 0)return $[q];if(Z[q]!==void 0)return Z[q]}let Y=D4($,J);if(Y!==void 0)return Y;return D4(Z,J)}function D4(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,Y)=>Y.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function k4(Z){try{let{getDiscoveredContextWindow:J}=(L4(),_0(K4)),Q=J(Z);if(Q!==void 0)return Q}catch{}let $=b4(M8,f8,Z);if($!==void 0)return $;try{let{getCatalogCopilotContextWindow:J}=(E0(),_0(O0));return J(Z)}catch{return}}function N4(Z){let $=b4(S8,A8,Z);if($!==void 0)return $;try{let{getCatalogCopilotMaxOutputTokens:J}=(E0(),_0(O0));return J(Z)}catch{return}}var M8,S8,f8,A8;var U4=R(()=>{J0();x4();M8={"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,...j4,"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},S8={"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,...z4,"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},f8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),A8=(()=>{try{let Z=process.env.CLAUDIN_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function v4(){let Z=L()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function V0(){return K(process.env.CLAUDIN_DISABLE_1M_CONTEXT)}function l(Z){if(V0())return!1;return/\[1m\]/i.test(Z)}function x2(Z){if(V0())return!1;let $=b(Z);return $.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")||$.includes("opus-4-8")||$.includes("opus-5")||$.includes("fable-5")}function i3(Z,$){if(l(Z))return 1e6;if(v4()){let Q=k4(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/providers/model/openaiContextWindows.ts for accurate compaction."),C8}let J=H2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>R2&&V0())return R2;return J.max_input_tokens}if(!V0()&&(b(Z).includes("fable-5")||b(Z).includes("sonnet-5")||b(Z).includes("opus-5")))return 1e6;if($?.includes(T0)&&x2(Z))return 1e6;if(p8(Z))return 1e6;return R2}function p8(Z){if(V0())return!1;if(l(Z))return!1;if(!b(Z).includes("sonnet-4-6"))return!1;return D().clientDataCache?.coral_reef_sonnet==="true"}function t3(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),Y=Math.min(100,Math.max(0,Q));return{used:Y,remaining:100-Y}}function n3(Z){let $,J;if(v4()){let q=N4(Z);if(q!==void 0)return{default:q,upperLimit:q}}let Q=b(Z);if(Q.includes("fable-5")||Q.includes("opus-5")||Q.includes("opus-4-7")||Q.includes("opus-4-6"))$=64000,J=128000;else if(Q.includes("sonnet-4-6"))$=32000,J=128000;else if(Q.includes("opus-4-5")||Q.includes("sonnet-4")||Q.includes("haiku-4"))$=32000,J=64000;else if(Q.includes("opus-4-1")||Q.includes("opus-4"))$=32000,J=32000;else if(Q.includes("claude-3-opus"))$=4096,J=4096;else if(Q.includes("claude-3-sonnet"))$=8192,J=8192;else if(Q.includes("claude-3-haiku"))$=4096,J=4096;else if(Q.includes("3-5-sonnet")||Q.includes("3-5-haiku"))$=8192,J=8192;else if(Q.includes("3-7-sonnet"))$=32000,J=64000;else $=u8,J=g8;let Y=H2(Z);if(Y?.max_tokens&&Y.max_tokens>=4096)J=Y.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}var R2=200000,C8,m3=20000,u8=32000,g8=64000,c3=8000,d3=64000;var B2=R(()=>{e5();J0();$0();d();w0();V4();U4();C8=(()=>{let Z=parseInt(process.env.CLAUDIN_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var m8,P4;var O4=R(()=>{t0();i();m8=[{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"}],P4=h((Z,$)=>{if(W()==="firstParty")return;let J=Z.toLowerCase();for(let Q of m8){let Y=process.env[Q.modelEnvVar],q=process.env[Q.capabilitiesEnvVar];if(!Y||q===void 0)continue;if(J!==Y.toLowerCase())continue;return q.toLowerCase().split(",").map((X)=>X.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function c8(Z){let $=[],J=[];for(let Q of Z)if(I4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function x9(Z){if(!Z||Z.length===0)return;if(_()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=c8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${I4.join(", ")}`);return $.length>0?$:void 0}function E4(Z){let $=P4(Z,"interleaved_thinking");if($!==void 0)return $;let J=b(Z),Q=W();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-opus-5")||J.includes("claude-sonnet-5")||J.includes("claude-sonnet-4")}function d8(Z){let $=b(Z);return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function i8(Z){let $=b(Z),J=W();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function t8(Z){let $=b(Z),J=W();if(J!=="firstParty"&&J!=="foundry")return!1;return $.includes("claude-fable-5")||$.includes("claude-opus-5")||$.includes("claude-sonnet-5")||$.includes("claude-sonnet-4-6")||$.includes("claude-sonnet-4-5")||$.includes("claude-opus-4-1")||$.includes("claude-opus-4-5")||$.includes("claude-opus-4-6")||$.includes("claude-opus-4-7")||$.includes("claude-opus-4-8")||$.includes("claude-haiku-4-5")}function B9(Z){let $=b(Z);if(!$.startsWith("claude-"))return!1;if($.includes("claude-3-"))return!1;if(/claude-(opus|sonnet|haiku)-4(?!-[6-9])/.test($))return!1;return!0}function G9(){let Z=W();if(Z==="vertex"||Z==="bedrock")return P1;return v1}function _4(){return(W()==="firstParty"||W()==="foundry")&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function H9(){if(K(process.env.CLAUDIN_DISABLE_GLOBAL_CACHE_SCOPE))return!1;return W()==="firstParty"&&!K(process.env.CLAUDIN_DISABLE_EXPERIMENTAL_BETAS)}function R9(Z,$){let J=[...T4(Z)];if($?.isAgenticQuery){if(!J.includes(W5))J.push(W5)}let Q=y4();if(!Q||Q.length===0)return J;return[...J,...Q.filter((Y)=>!J.includes(Y))]}function M4(){w2.cache?.clear?.(),T4.cache?.clear?.(),n8.cache?.clear?.()}var I4,w2,T4,n8;var S4=R(()=>{t0();T1();Q0();e5();h0();o();B2();d();w0();O4();i();x0();I4=[T0];w2=h((Z)=>{let $=[],J=b(Z).includes("haiku"),Q=W(),Y=_4();if(!J)$.push(W5);if(_())$.push(B0);if(l(Z))$.push(T0);if(!K(process.env.DISABLE_INTERLEAVED_THINKING)&&E4(Z))$.push(k1);if(Y&&E4(Z)&&!C()&&N().showThinkingSummaries!==!0)$.push(E1),$.push(_1);let q=i8(Z);if(_4()&&q)$.push(N1);let X=h4("tengu_tool_pear"),V=!X&&(K(process.env.CLAUDIN_JSON_TOOL_USE)||S0("tengu_amber_json_tools",!1));if(Y&&t8(Z)&&X)$.push(U1);if(Y&&V)$.push(y1);if(Q==="vertex"&&d8(Z))$.push(r5);if(Q==="foundry")$.push(r5);if(Y)$.push(O1);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((j)=>j.trim()).filter(Boolean));return $}),T4=h((Z)=>{let $=w2(Z);if(W()==="bedrock")return $.filter((J)=>!o5.has(J));return $}),n8=h((Z)=>{return w2(Z).filter((J)=>o5.has(J))})});import{execFile as l8}from"child_process";function f4(Z){return new Promise(($)=>{l8("security",["find-generic-password","-a",K5(),"-w","-s",Z],{encoding:"utf-8",timeout:s8},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function D9(){if(process.platform!=="darwin"||F5||u())return;let Z=f4(t(A4)),$=f4(t());F5=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)C4(J.stdout);if(!Q.timedOut)F2={stdout:Q.stdout}})}async function b9(){if(F5)await F5}function u4(){return F2}function K2(){F2=null}var s8=1e4,F2=null,F5=null;var g4=R(()=>{d();s5()});function L2(Z,$,J){return new Promise((Q,Y)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q();return}let q=setTimeout((V,j,G)=>{V?.removeEventListener("abort",j),G()},Z,$,X,Q);function X(){if(clearTimeout(q),J?.throwOnAbort||J?.abortError)Y(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",X,{once:!0}),J?.unref)q.unref()})}var p4=()=>{};function U9(){return m4}function c4(){m4.clear()}var m4;var d4=R(()=>{m4=new Map});var uZ={};c5(uZ,{validateForceLoginOrg:()=>CZ,saveOAuthTokensIfNeeded:()=>X7,saveApiKey:()=>S2,removeApiKey:()=>vZ,refreshGcpCredentialsIfNeeded:()=>M2,refreshGcpAuth:()=>Y7,refreshAwsAuth:()=>J7,refreshAndGetAwsCredentials:()=>j0,prefetchGcpCredentialsIfSafe:()=>bZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>kZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>zZ,isUsing3PServices:()=>k5,isTeamSubscriber:()=>hZ,isTeamPremiumSubscriber:()=>R5,isProSubscriber:()=>G2,isOverageProvisioningAllowed:()=>_Z,isOtelHeadersHelperFromProjectOrLocalSettings:()=>z7,isMaxSubscriber:()=>H5,isGcpAuthRefreshFromProjectSettings:()=>T2,isEnterpriseSubscriber:()=>IZ,isCustomApiKeyApproved:()=>UZ,isConsumerSubscriber:()=>fZ,isClaudeAISubscriber:()=>_,isAwsCredentialExportFromProjectSettings:()=>h2,isAwsAuthRefreshFromProjectSettings:()=>_2,isAnthropicAuthEnabled:()=>N0,is1PApiCustomer:()=>EZ,hasProfileScope:()=>q0,hasOpusAccess:()=>yZ,hasAnthropicApiKeyAuth:()=>XZ,handleOAuth401Error:()=>Q2,getSubscriptionType:()=>f,getSubscriptionName:()=>W7,getRateLimitTier:()=>V7,getOtelHeadersFromHelper:()=>MZ,getOauthAccountInfo:()=>b5,getConfiguredApiKeyHelper:()=>s,getClaudeAIOAuthTokensAsync:()=>p0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>O2,getApiKeyHelperElapsedMs:()=>VZ,getApiKeyFromConfigOrMacOSKeychain:()=>U5,getApiKeyFromApiKeyHelperCached:()=>b2,getApiKeyFromApiKeyHelper:()=>$7,getAnthropicApiKeyWithSource:()=>c0,getAnthropicApiKey:()=>I0,getAccountInformation:()=>AZ,clearOAuthTokenCache:()=>f2,clearGcpCredentialsCache:()=>DZ,clearAwsCredentialsCache:()=>RZ,clearApiKeyHelperCache:()=>jZ,checkGcpCredentialsValid:()=>Q7,checkAndRefreshOAuthTokenIfNeeded:()=>d0,calculateApiKeyHelperTTL:()=>Z7});import{exec as o4}from"child_process";import{mkdir as JZ,stat as QZ}from"fs/promises";import{join as YZ}from"path";function D5(){return K(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function N0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=k5(),J=(N()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,Y;try{({source:Y}=c0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{Y="none"}let q=Y==="ANTHROPIC_API_KEY"||Y==="apiKeyHelper";return!(Z||Q&&!D5()||q&&!D5())}function O2(){if(u()){if(s())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!D5())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(X5()){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(s()&&!D5())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(k0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function I0(){let{key:Z}=c0();return Z}function XZ(){try{let{key:Z,source:$}=c0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function c0(Z={}){let $=(()=>{let X=L();if(X?.transport!=="anthropic")return;let V=X.apiKey?.trim();return V&&V.length>0?V:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(s())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:b2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=$;if(j5()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(K(process.env.CI)){let X=l5();if(X)return{key:X,source:"ANTHROPIC_API_KEY"};if(!k5()&&!J&&!process.env.CLAUDE_CODE_OAUTH_TOKEN&&!process.env.CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR)throw Error("Configure an Anthropic profile via /provider or set CLAUDE_CODE_OAUTH_TOKEN");if(J&&!k5())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&D().customApiKeyResponses?.approved?.includes(V5(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=l5();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(s()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:b2(),source:"apiKeyHelper"}}let q=U5();if(q)return q;return{key:null,source:"none"}}function s(){if(u())return P("flagSettings")?.apiKeyHelper;return(N()||{}).apiKeyHelper}function e4(){let Z=s();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function E2(){return(N()||{}).awsAuthRefresh}function _2(){let Z=E2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function y2(){return(N()||{}).awsCredentialExport}function h2(){let Z=y2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function Z7(){let Z=process.env.CLAUDIN_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDIN_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return qZ}function VZ(){let Z=m?.startedAt;return Z?Date.now()-Z:0}async function $7(Z){if(!s())return null;let $=Z7();if(y){if(Date.now()-y.timestamp<$)return y.value;if(!m)m={promise:i4(Z,!1,b0),startedAt:null};return y.value}if(m)return m.promise;return m={promise:i4(Z,!0,b0),startedAt:Date.now()},m.promise}async function i4(Z,$,J){try{let Q=await WZ(Z);if(J!==b0)return Q;if(Q!==null)y={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==b0)return" ";let Y=Q instanceof Error?Q.message:String(Q);if(console.error(A.red(`apiKeyHelper failed: ${Y}`)),z(`Error getting API key from apiKeyHelper: ${Y}`,{level:"error"}),!$&&y&&y.value!==" ")return y={...y,timestamp:Date.now()},y.value;return y={value:" ",timestamp:Date.now()}," "}finally{if(J===b0)m=null}}async function WZ(Z){let $=s();if(!$)return null;if(e4()){if(!c()&&!Z){let q=Error("Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("apiKeyHelper invoked before trust check",q),x("",{}),null}}let J=await H0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let Y=J.timedOut?"timed out":`exited ${J.exitCode}`,q=J.stderr?.trim();throw Error(q?`${Y}: ${q}`:Y)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function b2(){return y?.value??null}function jZ(){b0++,y=null,m=null}function zZ(Z){if(e4()&&!c())return;$7(Z)}async function BZ(){let Z=E2();if(!Z)return!1;if(_2()){if(!c()&&!C()){let J=Error("Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsAuthRefresh invoked before trust check",J),x("",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await a5(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return J7(Z)}}function J7(Z){z("Running AWS auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:GZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running awsAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}async function HZ(){let Z=y2();if(!Z)return null;if(h2()){if(!c()&&!C()){let J=Error("Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("awsCredentialExport invoked before trust check",J),x("",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await a5(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await H0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=U2($.stdout.trim());if(!F1(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=A.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudin/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function RZ(){j0.cache.clear()}function I2(){return(N()||{}).gcpAuthRefresh}function T2(){let Z=I2();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function Q7(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=L2(wZ).then(()=>{throw new x7("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function KZ(){let Z=I2();if(!Z)return!1;if(T2()){if(!c()&&!C()){let J=Error("Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in https://github.com/claudio-labs/claudin/issues.");return m0("gcpAuthRefresh invoked before trust check",J),x("",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await Q7())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return Y7(Z)}function Y7(Z){z("Running GCP auth refresh command");let $=M.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=o4(Z,{timeout:LZ});Q.stdout.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.addOutput(q),z(q,{level:"debug"})}),Q.stderr.on("data",(Y)=>{let q=Y.toString().trim();if(q)$.setError(q),z(q,{level:"error"})}),Q.on("close",(Y,q)=>{if(Y===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let V=q==="SIGTERM"?A.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):A.red("Error running gcpAuthRefresh (in settings or ~/.claudin/config.json):");console.error(V),$.endAuthentication(!1),J(!1)}})})}function DZ(){M2.cache.clear()}function bZ(){if(!I2())return;if(T2()){if(!c()&&!C())return}M2()}function kZ(){let Z=E2(),$=y2();if(!Z&&!$)return;if(_2()||h2()){if(!c()&&!C())return}j0(),B()}function NZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function S2(Z){if(!NZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await q7();let $=!1;if(process.platform==="darwin")try{let Q=t(),Y=K5(),q=Buffer.from(Z,"utf-8").toString("hex"),X=`add-generic-password -U -a "${Y}" -s "${Q}" -X "${q}"
2
- `;await H0("security",["-i"],{input:X,reject:!1}),x("",{}),$=!0}catch(Q){k(Q),x("",{error:g(Q)}),x("",{})}else x("",{});let J=V5(Z);S((Q)=>{let Y=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:Y.includes(J)?Y:[...Y,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),U5.cache.clear?.(),K2()}function UZ(Z){let $=D(),J=V5(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function vZ(){await q7(),S((Z)=>({...Z,primaryApiKey:void 0})),U5.cache.clear?.(),K2()}async function q7(){try{await R1()}catch(Z){k(Z)}}function X7(Z){if(!k0(Z.scopes))return x("",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return x("",{}),{success:!0};let $=N5(),J=$.name;try{let Q=$.read()||{},Y=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??Y?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??Y?.rateLimitTier??null};let q=$.update(Q);if(q.success)x("",{storageBackend:J});else x("",{storageBackend:J});return w.cache?.clear?.(),M4(),c4(),q}catch(Q){return k(Q),x("",{storageBackend:J,error:g(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function f2(){w.cache?.clear?.(),D0()}async function PZ(){try{let{mtimeMs:Z}=await QZ(YZ(N2(),".credentials.json"));if(Z!==t4)t4=Z,f2()}catch{w.cache?.clear?.()}}function Q2(Z){let $=D2.get(Z);if($)return $;let J=OZ(Z).finally(()=>{D2.delete(Z)});return D2.set(Z,J),J}async function OZ(Z){f2();let $=await p0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return x("",{}),!0;return d0(0,!0)}async function p0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||X5())return w();try{let J=(await N5().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return k(Z),null}}function d0(Z=0,$=!1){if(Z===0&&!$){if(u0)return u0;return u0=k2(Z,$).finally(()=>{u0=null}),u0}return k2(Z,$)}async function k2(Z,$){await PZ();let Q=w();if(!$){if(!Q?.refreshToken||!g0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!k0(Q.scopes))return!1;w.cache?.clear?.(),D0();let Y=await p0();if(!Y?.refreshToken||!g0(Y.expiresAt))return!1;let q=N2();await JZ(q,{recursive:!0});let X;try{x("",{}),X=await s4(q),x("",{})}catch(V){if(V.code==="ELOCKED"){if(Z<5)return x("",{retryCount:Z+1}),await L2(1000+Math.random()*1000),k2(Z+1,$);return x("",{maxRetries:5}),!1}return k(V),x("",{error:g(V)}),!1}try{w.cache?.clear?.(),D0();let V=await p0();if(!V?.refreshToken||!g0(V.expiresAt))return x("",{}),!1;x("",{});let j=await a4(V.refreshToken,{scopes:k0(V.scopes)?void 0:V.scopes});return X7(j),w.cache?.clear?.(),D0(),!0}catch(V){k(V),w.cache?.clear?.(),D0();let j=await p0();if(j&&!g0(j.expiresAt))return x("",{}),!0;return!1}finally{x("",{}),await X(),x("",{})}}function _(){if(!N0())return!1;return k0(w()?.scopes)}function q0(){return w()?.scopes?.includes(l4)??!1}function EZ(){{let Z=L()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(_())return!1;return!0}function b5(){return N0()?D().oauthAccount:void 0}function _Z(){let $=b5()?.billingType;if(!_()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function yZ(){let Z=f();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function f(){if(Q1())return J1();if(!N0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function H5(){return f()==="max"}function hZ(){return f()==="team"}function R5(){return f()==="team"&&V7()==="default_claude_max_5x"}function IZ(){return f()==="enterprise"}function G2(){return f()==="pro"}function V7(){if(!N0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function W7(){switch(f()){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 k5(){let Z=L()?.transport;if(!Z)return!1;return Z!=="anthropic"}function j7(){return(N()||{}).otelHeadersHelper}function z7(){let Z=j7();if(!Z)return!1;let $=P("projectSettings"),J=P("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function MZ(){let Z=j7();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||TZ.toString());if(L5&&Date.now()-n4<$)return L5;if(z7()){if(!c())return{}}try{let J=v2(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=U2(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[Y,q]of Object.entries(Q))if(typeof q!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${Y}": ${typeof q}`);return L5=Q,n4=Date.now(),L5}catch(J){throw k(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${g(J)}`)),J}}function SZ(Z){return Z==="max"||Z==="pro"}function fZ(){let Z=f();return _()&&Z!==null&&SZ(Z)}function AZ(){if(W()!=="firstParty")return;let{source:$}=O2(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(_())J.subscription=W7();else J.tokenSource=$;let{key:Q,source:Y}=c0();if(Q)J.apiKeySource=Y;if($==="claude.ai"||Y==="/login managed key"){let X=b5()?.organizationName;if(X)J.organization=X}let q=b5()?.emailAddress;if(($==="claude.ai"||Y==="/login managed key")&&q)J.email=q;return J}async function CZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!N0())return{valid:!0};let Z=P("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await d0();let $=w();if(!$)return{valid:!0};let{source:J}=O2(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",Y=await G0($.accessToken);if(!Y?.organization)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let q=Y.organization.uuid;if(q===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${q}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${q},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var qZ=300000,y=null,m=null,b0=0,xZ=3600000,GZ=180000,j0,wZ=5000,FZ=3600000,LZ=180000,M2,U5,w,t4=0,D2,u0=null,L5=null,n4=0,TZ=1740000,x7;var o=R(()=>{r8();H1();t0();h0();z5();Q5();i();Q0();J0();Y1();r4();t5();G1();w1();L1();b1();S4();$0();Z0();d();x1();o8();ZZ();n0();e8();$Z();g4();s5();x0();p4();a8();d4();j0=P2(async()=>{let Z=await BZ(),$=await HZ();if(Z||$)await K1();return $},xZ);M2=P2(async()=>{return await KZ()},FZ);U5=h(()=>{if(u())return null;if(process.platform==="darwin"){let $=u4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=t();try{let Q=v2(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){k(Q)}}}let Z=D();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=h(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=X5();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=N5().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return k($),null}});D2=new Map;x7=class x7 extends Error{}});function k0(Z){return Boolean(Z?.includes(A2))}function gZ(Z){return Z?.split(" ").filter(Boolean)??[]}function HQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:Y,inferenceOnly:q,orgUUID:X,loginHint:V,loginMethod:j}){let G=Y?U().CLAUDE_AI_AUTHORIZE_URL:U().CONSOLE_AUTHORIZE_URL,H=new URL(G);H.searchParams.append("code","true"),H.searchParams.append("client_id",U().CLIENT_ID),H.searchParams.append("response_type","code"),H.searchParams.append("redirect_uri",Q?U().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let W0=q?[A2]:H7;if(H.searchParams.append("scope",W0.join(" ")),H.searchParams.append("code_challenge",Z),H.searchParams.append("code_challenge_method","S256"),H.searchParams.append("state",$),X)H.searchParams.append("orgUUID",X);if(V)H.searchParams.append("login_hint",V);if(j)H.searchParams.append("login_method",j);return H.toString()}async function RQ(Z,$,J,Q,Y=!1,q){let X={grant_type:"authorization_code",code:Z,redirect_uri:Y?U().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:U().CLIENT_ID,code_verifier:J,state:$};if(q!==void 0)X.expires_in=q;let V=await v.post(U().TOKEN_URL,X,{headers:{"Content-Type":"application/json"},timeout:15000});if(V.status!==200)throw Error(V.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${V.status}): ${V.statusText}`);return x("",{}),V.data}async function a4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:U().CLIENT_ID,scope:(($?.length)?$:G7).join(" ")};try{let Q=await v.post(U().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let Y=Q.data,{access_token:q,refresh_token:X=Z,expires_in:V}=Y,j=Date.now()+V*1000,G=gZ(Y.scope);x("",{});let H=D(),W0=w(),O=H.oauthAccount?.billingType!==void 0&&H.oauthAccount?.accountCreatedAt!==void 0&&H.oauthAccount?.subscriptionCreatedAt!==void 0&&W0?.subscriptionType!=null&&W0?.rateLimitTier!=null?null:await pZ(q);if(O&&H.oauthAccount){let a={};if(O.displayName!==void 0)a.displayName=O.displayName;if(typeof O.hasExtraUsageEnabled==="boolean")a.hasExtraUsageEnabled=O.hasExtraUsageEnabled;if(O.billingType!==null)a.billingType=O.billingType;if(O.accountCreatedAt!==void 0)a.accountCreatedAt=O.accountCreatedAt;if(O.subscriptionCreatedAt!==void 0)a.subscriptionCreatedAt=O.subscriptionCreatedAt;if(Object.keys(a).length>0)S((i0)=>({...i0,oauthAccount:i0.oauthAccount?{...i0.oauthAccount,...a}:i0.oauthAccount}))}return{accessToken:q,refreshToken:X,expiresAt:j,scopes:G,subscriptionType:O?.subscriptionType??W0?.subscriptionType??null,rateLimitTier:O?.rateLimitTier??W0?.rateLimitTier??null,profile:O?.rawProfile,tokenAccount:Y.account?{uuid:Y.account.uuid,emailAddress:Y.account.email_address,organizationUuid:Y.organization?.uuid}:void 0}}catch(Q){let Y=v.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw x("",{error:Q.message,...Y&&{responseBody:Y}}),Q}}async function wQ(Z){let $=await v.get(U().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!D().oauthAccount)throw Error("OAuth account information not found in config");S((Y)=>({...Y,oauthAccount:Y.oauthAccount?{...Y.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:Y.oauthAccount})),x("",{org_role:J.organization_role})}async function FQ(Z){try{let $=await v.post(U().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await S2(J),x("",{status:"success",statusCode:$.status}),J;return null}catch($){throw x("",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function g0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function pZ(Z){let $=await G0(Z),J=$?.organization?.organization_type,Q=null;switch(J){case"claude_max":Q="max";break;case"claude_pro":Q="pro";break;case"claude_enterprise":Q="enterprise";break;case"claude_team":Q="team";break;default:Q=null;break}let Y={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)Y.displayName=$.account.display_name;if($?.account?.created_at)Y.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)Y.subscriptionCreatedAt=$.organization.subscription_created_at;return x("",{}),{...Y,rawProfile:$}}async function KQ(){let $=D().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!q0())return null;let Y=(await G0(J))?.organization?.uuid;if(!Y)return null;return Y}async function LQ(){let Z=process.env.CLAUDE_CODE_ACCOUNT_UUID,$=process.env.CLAUDE_CODE_USER_EMAIL,J=process.env.CLAUDE_CODE_ORGANIZATION_UUID,Q=Boolean(Z&&$&&J);if(Z&&$&&J){if(!D().oauthAccount)B7({accountUuid:Z,emailAddress:$,organizationUuid:J})}await d0();let Y=D();if(Y.oauthAccount&&Y.oauthAccount.billingType!==void 0&&Y.oauthAccount.accountCreatedAt!==void 0&&Y.oauthAccount.subscriptionCreatedAt!==void 0||!_()||!q0())return!1;let q=w();if(q?.accessToken){let X=await G0(q.accessToken),V=X?.account,j=X?.organization;if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return B7({accountUuid:V.uuid,emailAddress:V.email??"",organizationUuid:j?.uuid,displayName:V.display_name||void 0,hasExtraUsageEnabled:j?.has_extra_usage_enabled??!1,billingType:j?.billing_type??void 0,accountCreatedAt:V.created_at,subscriptionCreatedAt:j?.subscription_created_at??void 0}),!0}}return!1}function B7({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V}){let j={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:Y,billingType:q,accountCreatedAt:X,subscriptionCreatedAt:V};if(Q)j.displayName=Q;S((G)=>{if(G.oauthAccount?.accountUuid===j.accountUuid&&G.oauthAccount?.emailAddress===j.emailAddress&&G.oauthAccount?.organizationUuid===j.organizationUuid&&G.oauthAccount?.displayName===j.displayName&&G.oauthAccount?.hasExtraUsageEnabled===j.hasExtraUsageEnabled&&G.oauthAccount?.billingType===j.billingType&&G.oauthAccount?.accountCreatedAt===j.accountCreatedAt&&G.oauthAccount?.subscriptionCreatedAt===j.subscriptionCreatedAt)return G;return{...G,oauthAccount:j}})}var r4=R(()=>{Y5();z5();h0();o();$0();Z0();t5()});
16
- export{D9 as n4,b9 as o4,g4 as p4,C2 as q4,u2 as r4,sZ as s4,aZ as t4,w7 as u4,L7 as v4,rZ as w4,c2 as x4,l0 as y4,U0 as z4,v0 as A4,u5 as B4,i5 as C4,v7 as D4,E0 as E4,W as F4,W$ as G4,h7 as H4,j$ as I4,z$ as J4,x$ as K4,i as L4,B as M4,D$ as N4,Q5 as O4,k$ as P4,N$ as Q4,Y1 as R4,y$ as S4,G0 as T4,t5 as U4,k0 as V4,gZ as W4,HQ as X4,RQ as Y4,a4 as Z4,wQ as _4,FQ as $4,g0 as a5,pZ as b5,KQ as c5,LQ as d5,B7 as e5,r4 as f5,C$ as g5,g7 as h5,q1 as i5,G1 as j5,V5 as k5,w1 as l5,d$ as m5,L1 as n5,M as o5,b1 as p5,T0 as q5,N1 as r5,U1 as s5,l$ as t5,s$ as u5,O1 as v5,a$ as w5,r$ as x5,E1 as y5,o$ as z5,e$ as A5,ZJ as B5,e5 as C5,I as D5,f1 as E5,d7 as F5,FJ as G5,KJ as H5,LJ as I5,A1 as J5,DJ as K5,bJ as L5,i7 as M5,kJ as N5,NJ as O5,UJ as P5,vJ as Q5,PJ as R5,l7 as S5,OJ as T5,EJ as U5,_J as V5,yJ as W5,p1 as X5,F0 as Y5,r7 as Z5,o7 as _5,e7 as $5,q2 as a6,X8 as b6,AJ as c6,V2 as d6,t1 as e6,V8 as f6,W2 as g6,s1 as h6,a1 as i6,W3 as j6,j3 as k6,B5 as l6,j2 as m6,z3 as n6,H8 as o6,X0 as p6,A0 as q6,Q4 as r6,x3 as s6,f0 as t6,Y4 as u6,F as v6,b as w6,R8 as x6,B3 as y6,G3 as z6,w8 as A6,J2 as B6,H3 as C6,q4 as D6,X4 as E6,R3 as F6,T as G6,w3 as H6,L8 as I6,F3 as J6,K3 as K6,L3 as L6,D3 as M6,w0 as N6,k3 as O6,V4 as P6,U3 as Q6,x4 as R6,F4 as S6,T8 as T6,L4 as U6,m3 as V6,c3 as W6,d3 as X6,V0 as Y6,l as Z6,i3 as _6,p8 as $6,t3 as a7,n3 as b7,B2 as c7,P4 as d7,O4 as e7,x9 as f7,t8 as g7,B9 as h7,G9 as i7,_4 as j7,H9 as k7,T4 as l7,n8 as m7,R9 as n7,M4 as o7,S4 as p7,L2 as q7,p4 as r7,U9 as s7,c4 as t7,d4 as u7,N0 as v7,O2 as w7,I0 as x7,XZ as y7,c0 as z7,s as A7,_2 as B7,h2 as C7,Z7 as D7,VZ as E7,$7 as F7,b2 as G7,jZ as H7,zZ as I7,J7,j0 as K7,RZ as L7,T2 as M7,Q7 as N7,Y7 as O7,M2 as P7,DZ as Q7,bZ as R7,kZ as S7,U5 as T7,S2 as U7,UZ as V7,vZ as W7,X7,w as Y7,f2 as Z7,Q2 as _7,p0 as $7,d0 as a8,_ as b8,q0 as c8,EZ as d8,b5 as e8,_Z as f8,yZ as g8,f as h8,H5 as i8,hZ as j8,R5 as k8,IZ as l8,G2 as m8,V7 as n8,W7 as o8,k5 as p8,z7 as q8,MZ as r8,fZ as s8,AZ as t8,CZ as u8,uZ as v8,o as w8};
@@ -1,2 +0,0 @@
1
- import{Esa as j}from"./cli-1.1.13-jdcqc6bd.mjs";var q,w;var v=j(()=>{q=["acceptEdits","bypassPermissions","default","dontAsk","plan"],w=[...q,"auto"]});
2
- export{q as jha,w as kha,v as lha};
@@ -1,2 +0,0 @@
1
- import{$J as Y,MR as R,lm as W,om as P,qk as Q,rk as I}from"./cli-1.1.13-x79qava2.mjs";import{Aga as B,Bga as f}from"./cli-1.1.13-kbf9vss4.mjs";import{Mia as H,Nia as J,gja as F}from"./cli-1.1.13-ykzv8nyq.mjs";import{Sqa as $,Tma as x}from"./cli-1.1.13-0y4933cs.mjs";import{Esa as Z}from"./cli-1.1.13-jdcqc6bd.mjs";import{randomUUID as U}from"crypto";function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??U(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function r(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:{...z(h),stop_details:null},session_id:x(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:x(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:x(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${H}>`)||h.content.includes(`<${J}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let v=B(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:{...Y({content:v}).message,stop_details:null},parent_tool_use_id:null,session_id:x(),uuid:h}}function T(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let v=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===Q){let y=W();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:v}}var G=Z(()=>{$();F();I();f();R();P()});
2
- export{S as Pe,V as Qe,X as Re,r as Se,w as Te,T as Ue,G as Ve};
@@ -1,2 +0,0 @@
1
- import{fs as Hq,gs as pq,gz as Uq,hz as mq}from"./cli-1.1.13-x79qava2.mjs";import{Y3 as Bq,_3 as dq}from"./cli-1.1.13-2txesqy8.mjs";import{F4 as Lq,K4 as jq,L4 as Sq,Y7 as i,a8 as S,q7 as Nq,r7 as yq,w8 as gq}from"./cli-1.1.13-gznvgt6g.mjs";import{$$ as Pq,$da as Yq,Z$ as Gq,aea as Dq,bea as k,dea as Wq,gea as Xq,o$ as b,s$ as $q}from"./cli-1.1.13-2mrqqgcm.mjs";import{Aia as Cq,wia as N,yia as Mq,zia as E}from"./cli-1.1.13-vxpmt3js.mjs";import{ija as Kq,jja as Qq,kja as Vq,pja as Zq,qja as Rq}from"./cli-1.1.13-wqteqtr2.mjs";import{rja as _,uja as e}from"./cli-1.1.13-zgnxf8h2.mjs";import{Zja as m,cka as Eq,uka as Y,xja as Fq,xka as Jq,zja as $J}from"./cli-1.1.13-ayx92dtj.mjs";import{$ka as qq,Uka as C,_ka as P}from"./cli-1.1.13-6c4qxmj3.mjs";import{Mra as z,csa as kq}from"./cli-1.1.13-ev08z5ye.mjs";import{Dsa as ZJ,Esa as d,Fsa as Tq}from"./cli-1.1.13-jdcqc6bd.mjs";var fq,r,s;var t=d(()=>{Mq();Cq();fq=E(()=>N.object({entries:N.record(N.string(),N.string()),entryChecksums:N.record(N.string(),N.string()).optional()})),r=E(()=>N.object({organizationId:N.string(),repo:N.string(),version:N.number(),lastModified:N.string(),checksum:N.string(),content:fq()})),s=E(()=>N.object({error:N.object({details:N.object({error_code:N.literal("team_memory_too_many_entries"),max_entries:N.number().int().positive(),received_entries:N.number().int().positive()})})}))});import{createHash as hq}from"crypto";import{mkdir as iq,readdir as cq,readFile as Oq,stat as nq,writeFile as lq}from"fs/promises";import{join as uq,relative as oq,sep as aq}from"path";function wq(){return{lastKnownChecksum:null,serverChecksums:new Map,serverMaxEntries:null}}function sq(q){return"sha256:"+hq("sha256").update(q,"utf8").digest("hex")}function xq(q){return q instanceof Error&&"code"in q&&typeof q.code==="string"}function n(){if(Lq()!=="firstParty"||!jq())return!1;let q=i();return Boolean(q?.accessToken&&q.scopes?.includes(Kq)&&q.scopes.includes(Qq))}function l(q){return`${process.env.TEAM_MEMORY_SYNC_URL||Zq().BASE_API_URL}/api/claude_code/team_memory?repo=${encodeURIComponent(q)}`}function u(){let q=i();if(q?.accessToken)return{headers:{Authorization:`Bearer ${q.accessToken}`,"anthropic-beta":Vq,"User-Agent":Bq()}};return{error:"No OAuth token available for team memory sync"}}async function tq(q,K,$){try{await S();let V=u();if(V.error)return{success:!1,error:V.error,skipRetry:!0,errorType:"auth"};let Q={...V.headers};if($)Q["If-None-Match"]=`"${$.replace(/"/g,"")}"`;let G=l(K),J=await z.get(G,{headers:Q,timeout:c,validateStatus:(X)=>X===200||X===304||X===404});if(J.status===304)return Y("team-memory-sync: not modified (304)",{level:"debug"}),{success:!0,notModified:!0,checksum:$??void 0};if(J.status===404)return Y("team-memory-sync: no remote data (404)",{level:"debug"}),q.lastKnownChecksum=null,{success:!0,isEmpty:!0};let Z=r().safeParse(J.data);if(!Z.success)return Y("team-memory-sync: invalid response format",{level:"warn"}),{success:!1,error:"Invalid team memory response format",skipRetry:!0,errorType:"parse"};let W=Z.data.checksum||J.headers.etag?.replace(/^"|"$/g,"")||void 0;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: fetched successfully (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,data:Z.data,isEmpty:!1,checksum:W}}catch(V){let{kind:Q,status:G,message:J}=P(V),Z=z.isAxiosError(V)?JSON.stringify(V.response?.data??""):"";if(Q!=="other")Y(`team-memory-sync: fetch error ${G}: ${Z}`,{level:"warn"});switch(Q){case"auth":return{success:!1,error:`Not authorized for team memory sync: ${Z}`,skipRetry:!0,errorType:"auth",httpStatus:G};case"timeout":return{success:!1,error:"Team memory sync request timeout",errorType:"timeout"};case"network":return{success:!1,error:"Cannot connect to server",errorType:"network"};default:return{success:!1,error:J,errorType:"unknown",httpStatus:G}}}}async function eq(q,K){try{await S();let $=u();if($.error)return{success:!1,error:$.error,errorType:"auth"};let V=l(K)+"&view=hashes",Q=await z.get(V,{headers:$.headers,timeout:c,validateStatus:(Z)=>Z===200||Z===404});if(Q.status===404)return q.lastKnownChecksum=null,{success:!0,entryChecksums:{}};let G=Q.data?.checksum||Q.headers.etag?.replace(/^"|"$/g,""),J=Q.data?.entryChecksums;if(!J||typeof J!=="object")return{success:!1,error:"Server did not return entryChecksums (?view=hashes unsupported)",errorType:"parse"};if(G)q.lastKnownChecksum=G;return{success:!0,version:Q.data?.version,checksum:G,entryChecksums:J}}catch($){let{kind:V,status:Q,message:G}=P($);switch(V){case"auth":return{success:!1,error:"Not authorized",errorType:"auth",httpStatus:Q};case"timeout":return{success:!1,error:"Timeout",errorType:"timeout"};case"network":return{success:!1,error:"Network error",errorType:"network"};default:return{success:!1,error:G,errorType:"unknown",httpStatus:Q}}}}async function qJ(q,K,$){let V=null;for(let Q=1;Q<=p+1;Q++){if(V=await tq(q,K,$),V.success||V.skipRetry)return V;if(Q>p)return V;let G=Hq(Q);Y(`team-memory-sync: retry ${Q}/${p}`,{level:"debug"}),await Nq(G)}return V}function JJ(q){let K=Object.keys(q).sort();if(K.length===0)return[];let $=Buffer.byteLength('{"entries":{}}',"utf8"),V=(Z,W)=>Buffer.byteLength(m(Z),"utf8")+Buffer.byteLength(m(W),"utf8")+2,Q=[],G={},J=$;for(let Z of K){let W=V(Z,q[Z]);if(J+W>rq&&Object.keys(G).length>0)Q.push(G),G={},J=$;G[Z]=q[Z],J+=W}return Q.push(G),Q}async function KJ(q,K,$,V){try{await S();let Q=u();if(Q.error)return{success:!1,error:Q.error,errorType:"auth"};let G={...Q.headers,"Content-Type":"application/json"};if(V)G["If-Match"]=`"${V.replace(/"/g,"")}"`;let J=l(K),Z=await z.put(J,{entries:$},{headers:G,timeout:c,validateStatus:(X)=>X===200||X===412});if(Z.status===412)return Y("team-memory-sync: conflict (412 Precondition Failed)",{level:"info"}),{success:!1,conflict:!0,error:"ETag mismatch"};let W=Z.data?.checksum;if(W)q.lastKnownChecksum=W;return Y(`team-memory-sync: uploaded ${Object.keys($).length} entries (checksum: ${W??"none"})`,{level:"debug"}),{success:!0,checksum:W,lastModified:Z.data?.lastModified}}catch(Q){let G=z.isAxiosError(Q)?JSON.stringify(Q.response?.data??""):"";Y(`team-memory-sync: upload failed: ${Q instanceof Error?Q.message:""} ${G}`,{level:"warn"});let{kind:J,status:Z,message:W}=P(Q),X=J==="http"||J==="other"?"unknown":J,j,O,B;if(Z===413&&z.isAxiosError(Q)){let H=s().safeParse(Q.response?.data);if(H.success)j=H.data.error.details.error_code,O=H.data.error.details.max_entries,B=H.data.error.details.received_entries}return{success:!1,error:W,errorType:X,httpStatus:Z,...j!==void 0&&{serverErrorCode:j},...O!==void 0&&{serverMaxEntries:O},...B!==void 0&&{serverReceivedEntries:B}}}}async function QJ(q){let K=k(),$={},V=[];async function Q(J){try{let Z=await cq(J,{withFileTypes:!0});await Promise.all(Z.map(async(W)=>{let X=uq(J,W.name);if(W.isDirectory())await Q(X);else if(W.isFile())try{let j=await nq(X);if(j.size>h){Y(`team-memory-sync: skipping oversized file ${W.name} (${j.size} > ${h} bytes)`,{level:"info"});return}let O=await Oq(X,"utf8"),B=oq(K,X).replaceAll("\\","/"),H=Uq(O);if(H.length>0){let L=H[0];V.push({path:B,ruleId:L.ruleId,label:L.label}),Y(`team-memory-sync: skipping "${B}" — detected ${L.label}`,{level:"warn"});return}$[B]=O}catch{}}))}catch(Z){if(xq(Z)){if(Z.code!=="ENOENT"&&Z.code!=="EACCES"&&Z.code!=="EPERM")throw Z}else throw Z}}await Q(K);let G=Object.keys($).sort();if(q!==null&&G.length>q){let J=G.slice(q);Y(`team-memory-sync: ${G.length} local entries exceeds server cap of ${q}; ${J.length} file(s) will NOT sync: ${J.join(", ")}. Consider consolidating or removing some team memory files.`,{level:"warn"}),_("",{total_entries:G.length,dropped_count:J.length,max_entries:q});let Z={};for(let W of G.slice(0,q))Z[W]=$[W];return{entries:Z,skippedSecrets:V}}return{entries:$,skippedSecrets:V}}async function VJ(q){let K=await Promise.all(Object.entries(q).map(async([$,V])=>{let Q;try{Q=await Wq($)}catch(J){if(J instanceof Yq)return Y(`team-memory-sync: ${J.message}`,{level:"warn"}),!1;throw J}if(Buffer.byteLength(V,"utf8")>h)return Y(`team-memory-sync: skipping oversized remote entry "${$}"`,{level:"info"}),!1;try{if(await Oq(Q,"utf8")===V)return!1}catch(J){if(xq(J)&&J.code!=="ENOENT"&&J.code!=="ENOTDIR")Y(`team-memory-sync: unexpected read error for "${$}": ${J.code}`,{level:"debug"})}try{let J=Q.substring(0,Q.lastIndexOf(aq));return await iq(J,{recursive:!0}),await lq(Q,V,"utf8"),!0}catch(J){return Y(`team-memory-sync: failed to write "${$}": ${J}`,{level:"warn"}),!1}}));return Gq(K,Boolean)}function _q(){return n()}async function Iq(q,K){let $=K?.skipEtagCache??!1,V=Date.now();if(!n())return A(V,{success:!1,errorType:"no_oauth"}),{success:!1,filesWritten:0,entryCount:0,error:"OAuth not available"};let Q=await b();if(!Q)return A(V,{success:!1,errorType:"no_repo"}),{success:!1,filesWritten:0,entryCount:0,error:"No git remote found"};let G=$?null:q.lastKnownChecksum,J=await qJ(q,Q,G);if(!J.success)return A(V,{success:!1,errorType:J.errorType,status:J.httpStatus}),{success:!1,filesWritten:0,entryCount:0,error:J.error};if(J.notModified)return A(V,{success:!0,notModified:!0}),{success:!0,filesWritten:0,entryCount:0,notModified:!0};if(J.isEmpty||!J.data)return q.serverChecksums.clear(),A(V,{success:!0}),{success:!0,filesWritten:0,entryCount:0};let Z=J.data.content.entries,W=J.data.content.entryChecksums;if(q.serverChecksums.clear(),W)for(let[j,O]of Object.entries(W))q.serverChecksums.set(j,O);else Y("team-memory-sync: server response missing entryChecksums (pre-#283027 deploy) — next push will be full, not delta",{level:"debug"});let X=await VJ(Z);if(X>0){let{clearMemoryFileCaches:j}=await import("./claudemd-1.1.13-3mc0z25q.mjs");j()}return Y(`team-memory-sync: pulled ${X} files`,{level:"info"}),A(V,{success:!0,filesWritten:X}),{success:!0,filesWritten:X,entryCount:Object.keys(Z).length}}async function o(q){let K=Date.now(),$=0;if(!n())return x(K,{success:!1,errorType:"no_oauth"}),{success:!1,filesUploaded:0,error:"OAuth not available",errorType:"no_oauth"};let V=await b();if(!V)return x(K,{success:!1,errorType:"no_repo"}),{success:!1,filesUploaded:0,error:"No git remote found",errorType:"no_repo"};let Q=await QJ(q.serverMaxEntries),G=Q.entries,J=Q.skippedSecrets;if(J.length>0){let X=J.map((j)=>`"${j.path}" (${j.label})`).join(", ");Y(`team-memory-sync: ${J.length} file(s) skipped due to detected secrets: ${X}. Remove the secret(s) to enable sync for these files.`,{level:"warn"}),_("",{file_count:J.length,rule_ids:J.map((j)=>j.ruleId).join(",")})}let Z=new Map;for(let[X,j]of Object.entries(G))Z.set(X,sq(j));let W=!1;for(let X=0;X<=R;X++){let j={};for(let[w,D]of Z)if(q.serverChecksums.get(w)!==D)j[w]=G[w];if(Object.keys(j).length===0)return x(K,{success:!0,conflict:W,conflictRetries:$}),{success:!0,filesUploaded:0,...J.length>0&&{skippedSecrets:J}};let B=JJ(j),H=0,L;for(let w of B){if(L=await KJ(q,V,w,q.lastKnownChecksum),!L.success)break;for(let D of Object.keys(w))q.serverChecksums.set(D,Z.get(D));H+=Object.keys(w).length}if(L=L,L.success)return Y(B.length>1?`team-memory-sync: pushed ${H} of ${Z.size} files in ${B.length} batches`:`team-memory-sync: pushed ${H} of ${Z.size} files (delta)`,{level:"info"}),x(K,{success:!0,filesUploaded:H,conflict:W,conflictRetries:$,putBatches:B.length>1?B.length:void 0}),{success:!0,filesUploaded:H,checksum:L.checksum,...J.length>0&&{skippedSecrets:J}};if(!L.conflict){if(L.serverMaxEntries!==void 0)q.serverMaxEntries=L.serverMaxEntries,Y(`team-memory-sync: learned server max_entries=${L.serverMaxEntries} from 413; next push will truncate to this`,{level:"warn"});return x(K,{success:!1,filesUploaded:H,conflictRetries:$,putBatches:B.length>1?B.length:void 0,errorType:L.errorType,status:L.httpStatus,errorCode:L.serverErrorCode,serverMaxEntries:L.serverMaxEntries,serverReceivedEntries:L.serverReceivedEntries}),{success:!1,filesUploaded:H,error:L.error,errorType:L.errorType,httpStatus:L.httpStatus}}if(W=!0,X>=R)return Y(`team-memory-sync: giving up after ${R} conflict retries`,{level:"warn"}),x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:"Conflict resolution failed after retries"};$++,Y(`team-memory-sync: conflict (412), probing server hashes (attempt ${X+1}/${R})`,{level:"info"});let T=await eq(q,V);if(!T.success||!T.entryChecksums)return x(K,{success:!1,conflict:!0,conflictRetries:$,errorType:"conflict"}),{success:!1,filesUploaded:0,conflict:!0,error:`Conflict resolution hashes probe failed: ${T.error}`};q.serverChecksums.clear();for(let[w,D]of Object.entries(T.entryChecksums))q.serverChecksums.set(w,D)}return x(K,{success:!1,conflictRetries:$}),{success:!1,filesUploaded:0,error:"Unexpected end of conflict resolution loop"}}function A(q,K){_("",{success:K.success,files_written:K.filesWritten??0,not_modified:K.notModified??!1,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status}})}function x(q,K){_("",{success:K.success,files_uploaded:K.filesUploaded??0,conflict:K.conflict??!1,conflict_retries:K.conflictRetries??0,duration_ms:Date.now()-q,...K.errorType&&{errorType:K.errorType},...K.status&&{status:K.status},...K.putBatches&&{put_batches:K.putBatches},...K.errorCode&&{error_code:K.errorCode},...K.serverMaxEntries!==void 0&&{server_max_entries:K.serverMaxEntries},...K.serverReceivedEntries!==void 0&&{server_received_entries:K.serverReceivedEntries}})}var c=30000,h=250000,rq=200000,p=3,R=2;var zq=d(()=>{kq();Rq();Xq();Pq();gq();Jq();qq();$q();Sq();yq();Eq();dq();e();pq();mq();t()});var OJ={};ZJ(OJ,{stopTeamMemoryWatcher:()=>bq,startTeamMemoryWatcher:()=>NJ,notifyTeamMemoryWrite:()=>BJ,isPermanentFailure:()=>Aq,_startFileWatcherForTesting:()=>UJ,_resetWatcherStateForTesting:()=>HJ});import{watch as GJ}from"fs";import{mkdir as YJ,stat as WJ}from"fs/promises";import{join as XJ}from"path";function Aq(q){if(q.errorType==="no_oauth"||q.errorType==="no_repo")return!0;if(q.httpStatus!==void 0&&q.httpStatus>=400&&q.httpStatus<500&&q.httpStatus!==409&&q.httpStatus!==429)return!0;return!1}async function jJ(){if(!I)return;y=!0;try{let q=await o(I);if(q.success)g=!1;if(q.success&&q.filesUploaded>0)Y(`team-memory-watcher: pushed ${q.filesUploaded} files`,{level:"info"});else if(!q.success){if(Y(`team-memory-watcher: push failed: ${q.error}`,{level:"warn"}),Aq(q)&&U===null)U=q.httpStatus!==void 0?`http_${q.httpStatus}`:q.errorType??"unknown",Y(`team-memory-watcher: suppressing retry until next unlink or session restart (${U})`,{level:"warn"}),_("",{reason:U,...q.httpStatus&&{status:q.httpStatus}})}}catch(q){Y(`team-memory-watcher: push error: ${C(q)}`,{level:"warn"})}finally{y=!1,f=null}}function M(){if(U!==null)return;if(g=!0,F)clearTimeout(F);F=setTimeout(()=>{if(y){M();return}f=jJ()},LJ)}async function vq(q){if(a)return;a=!0;try{await YJ(q,{recursive:!0}),v=GJ(q,{persistent:!1,recursive:!0},(K,$)=>{if($===null){M();return}if(U!==null){WJ(XJ(q,$)).catch((V)=>{if(V.code!=="ENOENT")return;if(U!==null)Y(`team-memory-watcher: unlink cleared suppression (was: ${U})`,{level:"info"}),U=null;M()});return}M()}),v.on("error",(K)=>{Y(`team-memory-watcher: fs.watch error: ${C(K)}`,{level:"warn"})}),Y(`team-memory-watcher: watching ${q}`,{level:"debug"})}catch(K){Y(`team-memory-watcher: failed to watch ${q}: ${C(K)}`,{level:"warn"})}Fq(async()=>bq())}async function NJ(){if(!Dq()||!_q())return;if(!await b()){Y("team-memory-watcher: no github.com remote, skipping sync",{level:"debug"});return}I=wq();let K=!1,$=0,V=!1;try{let Q=await Iq(I);if(K=Q.success,V=Q.entryCount>0,Q.success&&Q.filesWritten>0)$=Q.filesWritten,Y(`team-memory-watcher: initial pull got ${Q.filesWritten} files`,{level:"info"})}catch(Q){Y(`team-memory-watcher: initial pull failed: ${C(Q)}`,{level:"warn"})}await vq(k()),_("",{initial_pull_success:K,initial_files_pulled:$,watcher_started:!0,server_has_content:V})}async function BJ(){if(!I)return;M()}async function bq(){if(F)clearTimeout(F),F=null;if(v)v.close(),v=null;if(f)try{await f}catch{}if(g&&I&&U===null)try{await o(I)}catch{}}function HJ(q){v=null,F=null,y=!1,g=!1,f=null,a=q?.skipWatcher??!1,U=q?.pushSuppressedReason??null,I=q?.syncState??null}function UJ(q){return vq(q)}var LJ=2000,v=null,F=null,y=!1,g=!1,f=null,a=!1,U=null,I=null;var wJ=d(()=>{Xq();$J();Jq();qq();$q();e();zq()});
2
- export{Aq as n,NJ as o,BJ as p,bq as q,HJ as r,UJ as s,OJ as t,wJ as u};
@@ -1,6 +0,0 @@
1
- import{Esa as I}from"./cli-1.1.13-jdcqc6bd.mjs";function R($,q,H){let J=$.indexOf(q);if(J===-1)return $;let K=q.length,Z=0,Q="";do Q+=$.slice(Z,J)+q+H,Z=J+K,J=$.indexOf(q,Z);while(J!==-1);return Q+=$.slice(Z),Q}function T($,q,H,J){let K=0,Z="";do{let Q=$[J-1]==="\r";Z+=$.slice(K,Q?J-1:J)+q+(Q?`\r
2
- `:`
3
- `)+H,K=J+1,J=$.indexOf(`
4
- `,K)}while(J!==-1);return Z+=$.slice(K),Z}var _=()=>{};function a(){let $=new Map;for(let[q,H]of Object.entries(X)){for(let[J,K]of Object.entries(H))X[J]={open:`\x1B[${K[0]}m`,close:`\x1B[${K[1]}m`},H[J]=X[J],$.set(Number.parseInt(K[0],10),K[1]);Object.defineProperty(X,q,{value:H,enumerable:!1})}return Object.defineProperty(X,"codes",{value:$,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.underlineColor.close="\x1B[59m",X.color.ansi=A(),X.color.ansi256=Y(),X.color.ansi16m=k(),X.bgColor.ansi=A(10),X.bgColor.ansi256=Y(10),X.bgColor.ansi16m=k(10),X.underlineColor.ansi=g,X.underlineColor.ansi256=Y(20),X.underlineColor.ansi16m=k(20),Object.defineProperties(X,{rgbToAnsi256:{value(q,H,J){if(q===H&&H===J){if(q<8)return 16;if(q>248)return 231;return Math.round((q-8)/247*24)+232}return 16+36*Math.round(q/255*5)+6*Math.round(H/255*5)+Math.round(J/255*5)},enumerable:!1},hexToRgb:{value(q){let H=/[\da-f]{6}|[\da-f]{3}/i.exec(q.toString(16));if(!H)return[0,0,0];let[J]=H;if(J.length===3)J=[...J].map((Z)=>Z+Z).join("");let K=Number.parseInt(J,16);return[K>>16&255,K>>8&255,K&255]},enumerable:!1},hexToAnsi256:{value:(q)=>X.rgbToAnsi256(...X.hexToRgb(q)),enumerable:!1},ansi256ToAnsi:{value(q){if(q<8)return 30+q;if(q<16)return 90+(q-8);let H,J,K;if(q>=232)H=((q-232)*10+8)/255,J=H,K=H;else{q-=16;let D=q%36;H=Math.floor(q/36)/5,J=Math.floor(D/6)/5,K=D%6/5}let Z=Math.max(H,J,K)*2;if(Z===0)return 30;let Q=30+(Math.round(K)<<2|Math.round(J)<<1|Math.round(H));if(Z===2)Q+=60;return Q},enumerable:!1},rgbToAnsi:{value:(q,H,J)=>X.ansi256ToAnsi(X.rgbToAnsi256(q,H,J)),enumerable:!1},hexToAnsi:{value:(q)=>X.ansi256ToAnsi(X.hexToAnsi256(q)),enumerable:!1}}),X}var A=($=0)=>(q)=>`\x1B[${q+$}m`,Y=($=0)=>(q)=>`\x1B[${38+$};5;${q}m`,k=($=0)=>(q,H,J)=>`\x1B[${38+$};2;${q};${H};${J}m`,g=($)=>`\x1B[58;5;${$<90?$-30:$-90+8}m`,X,U1,d,i,W1,z1,n,z;var E=I(()=>{X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],underlineDouble:["4:2",24],underlineCurly:["4:3",24],underlineDotted:["4:4",24],underlineDashed:["4:5",24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},underlineColor:{underlineBlack:["58;5;0",59],underlineRed:["58;5;1",59],underlineGreen:["58;5;2",59],underlineYellow:["58;5;3",59],underlineBlue:["58;5;4",59],underlineMagenta:["58;5;5",59],underlineCyan:["58;5;6",59],underlineWhite:["58;5;7",59],underlineBlackBright:["58;5;8",59],underlineGray:["58;5;8",59],underlineGrey:["58;5;8",59],underlineRedBright:["58;5;9",59],underlineGreenBright:["58;5;10",59],underlineYellowBright:["58;5;11",59],underlineBlueBright:["58;5;12",59],underlineMagentaBright:["58;5;13",59],underlineCyanBright:["58;5;14",59],underlineWhiteBright:["58;5;15",59]}},U1=Object.keys(X.modifier),d=Object.keys(X.color),i=Object.keys(X.bgColor),W1=Object.keys(X.underlineColor),z1=[...d,...i];n=a(),z=n});import x from"node:process";import t from"node:os";import S from"node:tty";function W($,q=globalThis.Deno?globalThis.Deno.args:x.argv){let H=$.startsWith("-")?"":$.length===1?"-":"--",J=q.indexOf(H+$),K=q.indexOf("--");return J!==-1&&(K===-1||J<K)}function b(){return/^\d+$/.test(U.FORCE_COLOR)}function o(){if(!("FORCE_COLOR"in U))return;if(U.FORCE_COLOR==="false")return 0;if(U.FORCE_COLOR==="true"||U.FORCE_COLOR.length===0)return 1;if(!b())return;return Math.min(Number.parseInt(U.FORCE_COLOR,10),3)}function r($){if($===0)return!1;return{level:$,hasBasic:!0,has256:$>=2,has16m:$>=3}}function l($,{streamIsTTY:q,sniffFlags:H=!0}={}){let J=o();if(J!==void 0)P=J;let K=H?P:J;if(K===0)return 0;if(H){if(W("color=16m")||W("color=full")||W("color=truecolor"))return 3;if(W("color=256"))return 2}if(K!==void 0&&b())return K;if("TF_BUILD"in U&&"AGENT_NAME"in U)return 1;if($&&!q&&K===void 0)return 0;let Z=K||0;if(U.TERM==="dumb")return Z;if(x.platform==="win32"){let Q=t.release().split(".");if(Number(Q[0])>=10&&Number(Q[2])>=10586)return Number(Q[2])>=14931?3:2;return 1}if("CI"in U){if(["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some((Q)=>(Q in U)))return 3;if(["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((Q)=>(Q in U))||U.CI_NAME==="codeship")return 1;return Z}if("TEAMCITY_VERSION"in U)return/^(?:9\.0*[1-9]\d*\.|\d{2,}\.)/.test(U.TEAMCITY_VERSION)?1:0;if(U.COLORTERM==="truecolor")return 3;if(U.TERM==="xterm-kitty")return 3;if(U.TERM==="xterm-ghostty")return 3;if(U.TERM==="wezterm")return 3;if("TERM_PROGRAM"in U){let Q=Number.parseInt((U.TERM_PROGRAM_VERSION||"").split(".",1)[0],10);switch(U.TERM_PROGRAM){case"iTerm.app":return Q>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(?:color)?$/i.test(U.TERM))return 2;if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(U.TERM))return 1;if("COLORTERM"in U)return 1;return Z}function F($,q={}){let H=l($,{streamIsTTY:$&&$.isTTY,...q});return r(H)}var U,P,s,C;var h=I(()=>{({env:U}=x);if(W("no-color")||W("no-colors")||W("color=false")||W("color=never"))P=0;else if(W("color")||W("colors")||W("color=true")||W("color=always"))P=1;s={stdout:F({isTTY:S.isatty(1)}),stderr:F({isTTY:S.isatty(2)})},C=s});class q1{constructor($){return v($)}}function O($){return v($)}var f,m,G,V,M,w,j,u=($)=>{if(!Number.isSafeInteger($)||$<0||$>3)throw Error("The `level` should be an integer from 0 to 3")},e,$1=($,q={})=>{if(q.level!==void 0)u(q.level);let H=f?f.level:0;$[w]=q.level===void 0?H:q.level},v=($)=>{let q=(...H)=>H.join(" ");return $1(q,$),Object.setPrototypeOf(q,O.prototype),q},H1=($,q)=>{let H=z[q];if($==="rgb"){let K=(Q,D,B)=>H.ansi(z.rgbToAnsi(Q,D,B));return[K,K,(Q,D,B)=>H.ansi256(z.rgbToAnsi256(Q,D,B)),H.ansi16m]}if($==="hex"){let K=(Q)=>H.ansi(z.hexToAnsi(Q));return[K,K,(Q)=>H.ansi256(z.hexToAnsi256(Q)),(Q)=>H.ansi16m(...z.hexToRgb(Q))]}let J=(K)=>H.ansi(z.ansi256ToAnsi(K));return[J,J,H.ansi256,H.ansi256]},J1,K1,p=($,q,H)=>{let J,K;if(H===void 0)J=$,K=q;else J=H.openAll+$,K=q+H.closeAll;return{open:$,close:q,openAll:J,closeAll:K,parent:H}},N=($,q,H)=>{let J=(...K)=>{if(K.length===1)return L(J,""+K[0]);if(K.length===2)return L(J,K[0]+" "+K[1]);return L(J,K.join(" "))};return Object.setPrototypeOf(J,K1),J[G]=$[G]??$,J[V]=q,J[M]=H,J},L=($,q)=>{if($[G][w]<=0||!q)return $[M]?"":q;let H=$[V];if(H===void 0)return q;let{openAll:J,closeAll:K}=H;if(q.includes("\x1B"))while(H!==void 0)q=R(q,H.close,H.open),H=H.parent;let Z=q.indexOf(`
5
- `);if(Z!==-1)q=T(q,K,J,Z);return J+q+K},Q1,w1,Y1;var X1=I(()=>{_();E();h();({stdout:f,stderr:m}=C),G=Symbol("GENERATOR"),V=Symbol("STYLER"),M=Symbol("IS_EMPTY"),w=Symbol("LEVEL"),j=Object.create(null),e={enumerable:!0,get(){return this[w]},set($){u($),this[w]=$}};Object.setPrototypeOf(O.prototype,Function.prototype);for(let[$,q]of Object.entries(z))j[$]={get(){let H=N(this,p(q.open,q.close,this[V]),this[M]);return Object.defineProperty(this,$,{value:H}),H}};j.visible={get(){let $=N(this,this[V],!0);return Object.defineProperty(this,"visible",{value:$}),$}};J1=["rgb","hex","ansi256"];for(let $ of J1){let q=$[0].toUpperCase()+$.slice(1);for(let[H,J]of[[$,"color"],["bg"+q,"bgColor"],["underline"+q,"underlineColor"]]){let{close:K}=z[J],Z=H1($,J);j[H]={get(){let Q=function(D,B,c){let y=Z[this.level](D,B,c);return N(this,p(y,K,this[V]),this[M])};return Object.defineProperty(this,H,{value:Q}),Q}}}}K1=Object.defineProperties(()=>{},{...j,level:{enumerable:!0,get(){return this[G].level},set($){this[G].level=$}}});Object.defineProperties(O.prototype,{...j,level:e});Q1=O(),w1=O({level:m?m.level:0}),Y1=Q1});
6
- export{q1 as R8,Y1 as S8,X1 as T8};
@@ -1,2 +0,0 @@
1
- import{Esa as o}from"./cli-1.1.13-jdcqc6bd.mjs";var t=3,n=1,i=32,_="generativelanguage.googleapis.com",s,c="api.kimi.com",p,r,a,E;var e=o(()=>{s=new Set(["api.moonshot.ai","api.moonshot.cn"]),p=new Set(["api.z.ai","open.bigmodel.cn","bigmodel.cn","api.zhipuai.cn","opencode.ai"]),r=new Set(["api.deepseek.com"]),a={"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"},E=["api_key","key","token","access_token","refresh_token","signature","sig","secret","password","authorization"]});
2
- export{t as a9,n as b9,i as c9,_ as d9,s as e9,c as f9,p as g9,r as h9,a as i9,E as j9,e as k9};
@@ -1,2 +0,0 @@
1
- import{F4 as x,K4 as G,L4 as V,Y7 as m,w8 as X,z7 as W}from"./cli-1.1.13-gznvgt6g.mjs";import{Rda as w,Sda as B,T$ as J,U$ as z,X$ as Y}from"./cli-1.1.13-2mrqqgcm.mjs";import{ija as Z,qja as M}from"./cli-1.1.13-wqteqtr2.mjs";import{Esa as j}from"./cli-1.1.13-jdcqc6bd.mjs";function D(){q=void 0,J()}function L(){if(q!==void 0)return q;if(x()!=="firstParty")return q=z(!1);if(!G())return q=z(!1);if(w())return q=z(!1);if(process.env.CLAUDE_CODE_ENTRYPOINT==="local-agent")return q=z(!1);let Q=m();if(Q?.accessToken&&Q.subscriptionType===null)return q=z(!0);if(Q?.accessToken&&Q.scopes?.includes(Z)&&(Q.subscriptionType==="enterprise"||Q.subscriptionType==="team"))return q=z(!0);try{let{key:$}=W({skipRetrievingKeyFromApiKeyHelper:!0});if($)return q=z(!0)}catch{}return q=z(!1)}var q;var f=j(()=>{M();X();V();B();Y()});function g(Q){let $=Q.toUpperCase();return k.has($)||v.some((F)=>$.startsWith(F))}var k,v,S,I;var K=j(()=>{k=new Set(["CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_VERTEX","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL","ANTHROPIC_VERTEX_BASE_URL","ANTHROPIC_FOUNDRY_BASE_URL","ANTHROPIC_FOUNDRY_RESOURCE","ANTHROPIC_VERTEX_PROJECT_ID","CLOUD_ML_REGION","ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_BEARER_TOKEN_BEDROCK","ANTHROPIC_FOUNDRY_API_KEY","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","ANTHROPIC_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_SMALL_FAST_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","CLAUDIN_SUBAGENT_MODEL"]),v=["VERTEX_REGION_CLAUDE_"];S=["apiKeyHelper","awsAuthRefresh","awsCredentialExport","gcpAuthRefresh","otelHeadersHelper","statusLine"],I=new Set(["ANTHROPIC_CUSTOM_HEADERS","ANTHROPIC_CUSTOM_MODEL_OPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION","ANTHROPIC_CUSTOM_MODEL_OPTION_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL","ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME","ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_OPUS_MODEL","ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_OPUS_MODEL_NAME","ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_DEFAULT_SONNET_MODEL","ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION","ANTHROPIC_DEFAULT_SONNET_MODEL_NAME","ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES","ANTHROPIC_MODEL","ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION","ANTHROPIC_SMALL_FAST_MODEL","AWS_DEFAULT_REGION","AWS_PROFILE","AWS_REGION","BASH_DEFAULT_TIMEOUT_MS","BASH_MAX_OUTPUT_LENGTH","BASH_MAX_TIMEOUT_MS","CLAUDIN_BASH_MAINTAIN_PROJECT_WORKING_DIR","CLAUDIN_API_KEY_HELPER_TTL_MS","CLAUDIN_DISABLE_EXPERIMENTAL_BETAS","CLAUDIN_DISABLE_NONESSENTIAL_TRAFFIC","CLAUDIN_DISABLE_TERMINAL_TITLE","CLAUDE_CODE_ENABLE_TELEMETRY","CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS","CLAUDIN_IDE_SKIP_AUTO_INSTALL","CLAUDIN_MAX_OUTPUT_TOKENS","CLAUDIN_SKIP_BEDROCK_AUTH","CLAUDIN_SKIP_FOUNDRY_AUTH","CLAUDIN_SKIP_VERTEX_AUTH","CLAUDIN_SUBAGENT_MODEL","CLAUDIN_USE_BEDROCK","CLAUDIN_USE_FOUNDRY","CLAUDIN_USE_GITHUB","CLAUDIN_USE_VERTEX","DISABLE_AUTOUPDATER","DISABLE_BUG_COMMAND","DISABLE_COST_WARNINGS","DISABLE_ERROR_REPORTING","DISABLE_FEEDBACK_COMMAND","DISABLE_TELEMETRY","ENABLE_TOOL_SEARCH","MAX_MCP_OUTPUT_TOKENS","MAX_THINKING_TOKENS","MCP_TIMEOUT","MCP_TOOL_TIMEOUT","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_LOGS_PROTOCOL","OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE","OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_PROTOCOL","OTEL_EXPORTER_OTLP_PROTOCOL","OTEL_EXPORTER_OTLP_TRACES_HEADERS","OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS","OTEL_LOGS_EXPORT_INTERVAL","OTEL_LOGS_EXPORTER","OTEL_METRIC_EXPORT_INTERVAL","OTEL_METRICS_EXPORTER","OTEL_METRICS_INCLUDE_ACCOUNT_UUID","OTEL_METRICS_INCLUDE_SESSION_ID","OTEL_METRICS_INCLUDE_VERSION","OTEL_RESOURCE_ATTRIBUTES","USE_BUILTIN_RIPGREP","VERTEX_REGION_CLAUDE_3_5_HAIKU","VERTEX_REGION_CLAUDE_3_5_SONNET","VERTEX_REGION_CLAUDE_3_7_SONNET","VERTEX_REGION_CLAUDE_4_0_OPUS","VERTEX_REGION_CLAUDE_4_0_SONNET","VERTEX_REGION_CLAUDE_4_1_OPUS","VERTEX_REGION_CLAUDE_4_5_SONNET","VERTEX_REGION_CLAUDE_4_6_SONNET","VERTEX_REGION_CLAUDE_HAIKU_4_5"])});
2
- export{D as VT,L as WT,f as XT,g as YT,S as ZT,I as _T,K as $T};
@@ -1,2 +0,0 @@
1
- import{Qea as G,Rea as h,Vea as v,Wea as P,bfa as k,nfa as f,tea as M,wea as L}from"./cli-1.1.13-2mrqqgcm.mjs";import{hja as E,qja as x}from"./cli-1.1.13-wqteqtr2.mjs";import{cla as T,nla as u}from"./cli-1.1.13-2m39r998.mjs";import{Esa as C}from"./cli-1.1.13-jdcqc6bd.mjs";import{chmodSync as K,cpSync as S,existsSync as V,mkdirSync as m,readFileSync as _,readdirSync as w,statSync as D,writeFileSync as O}from"fs";import{homedir as R}from"os";import{join as Y}from"path";function b(j){return Y(j,".claude")}function A(j){try{let q=_(j,"utf8"),B=JSON.parse(q);if(B&&typeof B==="object"&&!Array.isArray(B))return B;return null}catch{return null}}function F(j,q){O(j,JSON.stringify(q,null,2),{encoding:"utf8"})}function $(j){m(j,{recursive:!0})}function l(j,q,B,Q){let z=Y(j,".credentials.json"),I=Y(q,".credentials.json");if(!V(z))return 0;try{if(V(I)){let W=_(z),X=_(I);if(W.equals(X))return K(I,384),0;return Q.push(`${I} already exists with different content — kept new file untouched`),0}$(q);let N=_(z);return O(I,N),K(I,384),d(N)}catch(N){return B.push(`failed to copy .credentials.json: ${N instanceof Error?N.message:String(N)}`),0}}function d(j){try{let q=JSON.parse(j.toString("utf8"));if(q&&typeof q==="object")return Object.keys(q).length}catch{}return 1}function y(j,q,B){let Q=Y(j,"CLAUDE.md"),z=Y(q,"CLAUDE.md");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy CLAUDE.md: ${I instanceof Error?I.message:String(I)}`),!1}}function c(j,q,B){let Q=Y(j,"keybindings.json"),z=Y(q,"keybindings.json");if(!V(Q))return!1;if(V(z))return!1;try{$(q);let I=_(Q);return O(z,I),!0}catch(I){return B.push(`failed to copy keybindings.json: ${I instanceof Error?I.message:String(I)}`),!1}}function H(j,q,B,Q){let z=Y(j,B),I=Y(q,B);if(!V(z))return 0;let N=0;try{if(!D(z).isDirectory())return 0;$(q),S(z,I,{recursive:!0,force:!1,errorOnExist:!1}),N=p(I)}catch(W){Q.push(`failed to copy ${B}/: ${W instanceof Error?W.message:String(W)}`)}return N}function p(j){try{if(!V(j))return 0;return w(j).length}catch{return 0}}function a(j,q,B){let Q=Y(j,"settings.json");if(!V(Q))return 0;let z=A(Q);if(!z)return B.push("legacy settings.json could not be parsed; skipped"),0;let I=Y(q,"settings.json"),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of g){if(!(U in z))continue;if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{$(q),F(I,W)}catch(U){return B.push(`failed to write settings.json: ${U instanceof Error?U.message:String(U)}`),0}return X}function J(j){return Y(j,`.claude${E()}.json`)}function n(j){return Y(j,`config${E()}.json`)}function t(j,q,B){let Q=J(j);if(!V(Q))return 0;let z=A(Q);if(!z)return B.push(`legacy ${Q} could not be parsed; skipped`),0;let I=n(q),N=V(I)?A(I)??{}:{},W={...N},X=0;for(let U of Object.keys(z)){if(U in N)continue;W[U]=z[U],X+=1}if(X===0&&V(I))return 0;try{F(I,W)}catch(U){return B.push(`failed to write ${I}: ${U instanceof Error?U.message:String(U)}`),0}return G(null),X}function o(){let q=L().claudeToClaudinMigratedAt;if(typeof q==="string"&&q.length>0)return{migrated:!0,at:q};return{migrated:!1}}function s(j){M((q)=>({...q,claudeToClaudinMigratedAt:j}))}async function Vj(j={}){let q=j.homeDir??R(),B=b(q),Q=j.newDir??T(),z=[],I=[],N={tokens:0,settingsKeys:0,globalConfigKeys:0,claudeMd:!1,plugins:0,skills:0,agents:0,commands:0,keybindings:!1,anthropicProfileCreated:!1,errors:z,warnings:I,alreadyMigrated:!1,legacyDir:B,newDir:Q},W=V(J(q));if(!V(B)&&!W)return N;let X=o();if(X.migrated&&!j.force)return N.alreadyMigrated=!0,N.migratedAt=X.at,N;try{$(Q)}catch(U){return z.push(`failed to create ${Q}: ${U instanceof Error?U.message:String(U)}`),N}if(V(B))N.tokens=l(B,Q,z,I),N.settingsKeys=a(B,Q,z),N.claudeMd=y(B,Q,z),N.plugins=H(B,Q,"plugins",z),N.skills=H(B,Q,"skills",z),N.agents=H(B,Q,"agents",z),N.commands=H(B,Q,"commands",z),N.keybindings=c(B,Q,z);if(N.globalConfigKeys=t(q,Q,I),N.anthropicProfileCreated=i(Q,N.tokens,I),z.length===0){let U=new Date().toISOString();s(U),N.migratedAt=U}return N}function i(j,q,B){if(q<=0)return!1;let Q=Y(j,".credentials.json"),z;try{z=JSON.parse(_(Q,"utf8"))}catch(Z){return B.push(`failed to read migrated .credentials.json for profile bootstrap: ${Z instanceof Error?Z.message:String(Z)}`),!1}let N=z?.claudeAiOauth?.accessToken;if(typeof N!=="string"||N.length===0)return!1;let W=P();if(W.some((Z)=>Z.provider==="anthropic"))return!1;let X=v("anthropic"),U={provider:"anthropic",name:X.name,baseUrl:X.baseUrl,model:X.model};try{if(!k(U,{makeActive:W.length===0}))return B.push("anthropic profile could not be saved after migration"),!1;return!0}catch(Z){return B.push(`failed to create anthropic profile: ${Z instanceof Error?Z.message:String(Z)}`),!1}}function Wj(j){if(j.alreadyMigrated)return`nothing to do (last run: ${j.migratedAt??"unknown"}). Pass --force to re-run.`;let q=[];q.push(`${j.tokens} token${j.tokens===1?"":"s"}`),q.push(`${j.settingsKeys} settings key${j.settingsKeys===1?"":"s"}`),q.push(`${j.globalConfigKeys} global config key${j.globalConfigKeys===1?"":"s"}`),q.push(`${j.claudeMd?1:0} CLAUDE.md`),q.push(`${j.plugins} plugin${j.plugins===1?"":"s"}`),q.push(`${j.skills} skill${j.skills===1?"":"s"}`),q.push(`${j.agents} agent${j.agents===1?"":"s"}`),q.push(`${j.commands} command${j.commands===1?"":"s"}`),q.push(`${j.keybindings?"keybindings copied":"no keybindings"}`),q.push(j.anthropicProfileCreated?"anthropic profile created":"anthropic profile already present");let B=q.join(", "),Q=`. ${j.legacyDir} kept untouched.`,z=`${B}${Q}`;if(j.warnings.length>0)z+=` Warnings: ${j.warnings.join("; ")}`;if(j.errors.length>0)z+=` Errors: ${j.errors.join("; ")}`;return z}function e(j=R()){return V(b(j))}function r(j=R()){return V(J(j))}function Xj(j=R()){let q=L();if(q.claudeToClaudinMigratedAt)return!1;if(q.legacyMigrationSkipped===!0)return!1;return e(j)||r(j)}function Yj(){M((j)=>({...j,legacyMigrationSkipped:!0}))}var g;var jj=C(()=>{x();h();u();f();g=["theme","model","customApiKeyResponses","permissions","verbose","editorMode","mcpServers","providerProfiles","activeProviderProfileId"]});
2
- export{Vj as wc,Wj as xc,e as yc,Xj as zc,Yj as Ac,jj as Bc};
@@ -1,15 +0,0 @@
1
- import{Csa as T,Esa as J5,Fsa as M}from"./cli-1.1.13-jdcqc6bd.mjs";var T0=T((G5,K1)=>{K1.exports=function(){return typeof Promise==="function"&&Promise.prototype&&Promise.prototype.then}});var y=T((O2)=>{var X0,E2=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];O2.getSymbolSize=function(q){if(!q)throw Error('"version" cannot be null or undefined');if(q<1||q>40)throw Error('"version" should be in range from 1 to 40');return q*4+17};O2.getSymbolTotalCodewords=function(q){return E2[q]};O2.getBCHDigit=function($){let q=0;while($!==0)q++,$>>>=1;return q};O2.setToSJISFunction=function(q){if(typeof q!=="function")throw Error('"toSJISFunc" is not a valid function.');X0=q};O2.isKanjiModeEnabled=function(){return typeof X0<"u"};O2.toSJIS=function(q){return X0(q)}});var J0=T((M2)=>{M2.L={bit:1};M2.M={bit:0};M2.Q={bit:3};M2.H={bit:2};function W2($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"l":case"low":return M2.L;case"m":case"medium":return M2.M;case"q":case"quartile":return M2.Q;case"h":case"high":return M2.H;default:throw Error("Unknown EC Level: "+$)}}M2.isValid=function(q){return q&&typeof q.bit<"u"&&q.bit>=0&&q.bit<4};M2.from=function(q,Z){if(M2.isValid(q))return q;try{return W2(q)}catch(J){return Z}}});var X1=T((N5,T1)=>{function O1(){this.buffer=[],this.length=0}O1.prototype={get:function($){let q=Math.floor($/8);return(this.buffer[q]>>>7-$%8&1)===1},put:function($,q){for(let Z=0;Z<q;Z++)this.putBit(($>>>q-Z-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function($){let q=Math.floor(this.length/8);if(this.buffer.length<=q)this.buffer.push(0);if($)this.buffer[q]|=128>>>this.length%8;this.length++}};T1.exports=O1});var V1=T((W5,G1)=>{function s($){if(!$||$<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=$,this.data=new Uint8Array($*$),this.reservedBit=new Uint8Array($*$)}s.prototype.set=function($,q,Z,J){let Q=$*this.size+q;if(this.data[Q]=Z,J)this.reservedBit[Q]=!0};s.prototype.get=function($,q){return this.data[$*this.size+q]};s.prototype.xor=function($,q,Z){this.data[$*this.size+q]^=Z};s.prototype.isReserved=function($,q){return this.reservedBit[$*this.size+q]};G1.exports=s});var N1=T((B2)=>{var _2=y().getSymbolSize;B2.getRowColCoords=function(q){if(q===1)return[];let Z=Math.floor(q/7)+2,J=_2(q),Q=J===145?26:Math.ceil((J-13)/(2*Z-2))*2,F=[J-7];for(let K=1;K<Z-1;K++)F[K]=F[K-1]-Q;return F.push(6),F.reverse()};B2.getPositions=function(q){let Z=[],J=B2.getRowColCoords(q),Q=J.length;for(let F=0;F<Q;F++)for(let K=0;K<Q;K++){if(F===0&&K===0||F===0&&K===Q-1||F===Q-1&&K===0)continue;Z.push([J[F],J[K]])}return Z}});var W1=T((z2)=>{var L2=y().getSymbolSize;z2.getPositions=function(q){let Z=L2(q);return[[0,0],[Z-7,0],[0,Z-7]]}});var L1=T((w2)=>{w2.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var v={N1:3,N2:3,N3:40,N4:10};w2.isValid=function(q){return q!=null&&q!==""&&!isNaN(q)&&q>=0&&q<=7};w2.from=function(q){return w2.isValid(q)?parseInt(q,10):void 0};w2.getPenaltyN1=function(q){let Z=q.size,J=0,Q=0,F=0,K=null,U=null;for(let R=0;R<Z;R++){Q=F=0,K=U=null;for(let H=0;H<Z;H++){let Y=q.get(R,H);if(Y===K)Q++;else{if(Q>=5)J+=v.N1+(Q-5);K=Y,Q=1}if(Y=q.get(H,R),Y===U)F++;else{if(F>=5)J+=v.N1+(F-5);U=Y,F=1}}if(Q>=5)J+=v.N1+(Q-5);if(F>=5)J+=v.N1+(F-5)}return J};w2.getPenaltyN2=function(q){let Z=q.size,J=0;for(let Q=0;Q<Z-1;Q++)for(let F=0;F<Z-1;F++){let K=q.get(Q,F)+q.get(Q,F+1)+q.get(Q+1,F)+q.get(Q+1,F+1);if(K===4||K===0)J++}return J*v.N2};w2.getPenaltyN3=function(q){let Z=q.size,J=0,Q=0,F=0;for(let K=0;K<Z;K++){Q=F=0;for(let U=0;U<Z;U++){if(Q=Q<<1&2047|q.get(K,U),U>=10&&(Q===1488||Q===93))J++;if(F=F<<1&2047|q.get(U,K),U>=10&&(F===1488||F===93))J++}}return J*v.N3};w2.getPenaltyN4=function(q){let Z=0,J=q.data.length;for(let F=0;F<J;F++)Z+=q.data[F];return Math.abs(Math.ceil(Z*100/J/5)-10)*v.N4};function S2($,q,Z){switch($){case w2.Patterns.PATTERN000:return(q+Z)%2===0;case w2.Patterns.PATTERN001:return q%2===0;case w2.Patterns.PATTERN010:return Z%3===0;case w2.Patterns.PATTERN011:return(q+Z)%3===0;case w2.Patterns.PATTERN100:return(Math.floor(q/2)+Math.floor(Z/3))%2===0;case w2.Patterns.PATTERN101:return q*Z%2+q*Z%3===0;case w2.Patterns.PATTERN110:return(q*Z%2+q*Z%3)%2===0;case w2.Patterns.PATTERN111:return(q*Z%3+(q+Z)%2)%2===0;default:throw Error("bad maskPattern:"+$)}}w2.applyMask=function(q,Z){let J=Z.size;for(let Q=0;Q<J;Q++)for(let F=0;F<J;F++){if(Z.isReserved(F,Q))continue;Z.xor(F,Q,S2(q,F,Q))}};w2.getBestMask=function(q,Z){let J=Object.keys(w2.Patterns).length,Q=0,F=1/0;for(let K=0;K<J;K++){Z(K),w2.applyMask(K,q);let U=w2.getPenaltyN1(q)+w2.getPenaltyN2(q)+w2.getPenaltyN3(q)+w2.getPenaltyN4(q);if(w2.applyMask(K,q),U<F)F=U,Q=K}return Q}});var V0=T((y2)=>{var g=J0(),Q0=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],F0=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];y2.getBlocksCount=function(q,Z){switch(Z){case g.L:return Q0[(q-1)*4+0];case g.M:return Q0[(q-1)*4+1];case g.Q:return Q0[(q-1)*4+2];case g.H:return Q0[(q-1)*4+3];default:return}};y2.getTotalCodewordsCount=function(q,Z){switch(Z){case g.L:return F0[(q-1)*4+0];case g.M:return F0[(q-1)*4+1];case g.Q:return F0[(q-1)*4+2];case g.H:return F0[(q-1)*4+3];default:return}}});var z1=T((D2)=>{var o=new Uint8Array(512),K0=new Uint8Array(256);(function(){let q=1;for(let Z=0;Z<255;Z++)if(o[Z]=q,K0[q]=Z,q<<=1,q&256)q^=285;for(let Z=255;Z<512;Z++)o[Z]=o[Z-255]})();D2.log=function(q){if(q<1)throw Error("log("+q+")");return K0[q]};D2.exp=function(q){return o[q]};D2.mul=function(q,Z){if(q===0||Z===0)return 0;return o[K0[q]+K0[Z]]}});var S1=T((c2)=>{var A0=z1();c2.mul=function(q,Z){let J=new Uint8Array(q.length+Z.length-1);for(let Q=0;Q<q.length;Q++)for(let F=0;F<Z.length;F++)J[Q+F]^=A0.mul(q[Q],Z[F]);return J};c2.mod=function(q,Z){let J=new Uint8Array(q);while(J.length-Z.length>=0){let Q=J[0];for(let K=0;K<Z.length;K++)J[K]^=A0.mul(Z[K],Q);let F=0;while(F<J.length&&J[F]===0)F++;J=J.slice(F)}return J};c2.generateECPolynomial=function(q){let Z=new Uint8Array([1]);for(let J=0;J<q;J++)Z=c2.mul(Z,new Uint8Array([1,A0.exp(J)]));return Z}});var C1=T((z5,f1)=>{var w1=S1();function N0($){if(this.genPoly=void 0,this.degree=$,this.degree)this.initialize(this.degree)}N0.prototype.initialize=function(q){this.degree=q,this.genPoly=w1.generateECPolynomial(this.degree)};N0.prototype.encode=function(q){if(!this.genPoly)throw Error("Encoder not initialized");let Z=new Uint8Array(q.length+this.degree);Z.set(q);let J=w1.mod(Z,this.genPoly),Q=this.degree-J.length;if(Q>0){let F=new Uint8Array(this.degree);return F.set(J,Q),F}return J};f1.exports=N0});var W0=T((x2)=>{x2.isValid=function(q){return!isNaN(q)&&q>=1&&q<=40}});var M0=T((i2)=>{var t="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";t=t.replace(/u/g,"\\u");var n2="(?:(?![A-Z0-9 $%*+\\-./:]|"+t+`)(?:.|[\r
2
- ]))+`;i2.KANJI=new RegExp(t,"g");i2.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");i2.BYTE=new RegExp(n2,"g");i2.NUMERIC=new RegExp("[0-9]+","g");i2.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var p2=new RegExp("^"+t+"$"),d2=new RegExp("^[0-9]+$"),r2=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");i2.testKanji=function(q){return p2.test(q)};i2.testNumeric=function(q){return d2.test(q)};i2.testAlphanumeric=function(q){return r2.test(q)}});var u=T((F6)=>{var J6=W0(),j0=M0();F6.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};F6.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};F6.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};F6.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};F6.MIXED={bit:-1};F6.getCharCountIndicator=function(q,Z){if(!q.ccBits)throw Error("Invalid mode: "+q);if(!J6.isValid(Z))throw Error("Invalid version: "+Z);if(Z>=1&&Z<10)return q.ccBits[0];else if(Z<27)return q.ccBits[1];return q.ccBits[2]};F6.getBestModeForData=function(q){if(j0.testNumeric(q))return F6.NUMERIC;else if(j0.testAlphanumeric(q))return F6.ALPHANUMERIC;else if(j0.testKanji(q))return F6.KANJI;else return F6.BYTE};F6.toString=function(q){if(q&&q.id)return q.id;throw Error("Invalid mode")};F6.isValid=function(q){return q&&q.bit&&q.ccBits};function Q6($){if(typeof $!=="string")throw Error("Param is not a string");switch($.toLowerCase()){case"numeric":return F6.NUMERIC;case"alphanumeric":return F6.ALPHANUMERIC;case"kanji":return F6.KANJI;case"byte":return F6.BYTE;default:throw Error("Unknown mode: "+$)}}F6.from=function(q,Z){if(F6.isValid(q))return q;try{return Q6(q)}catch(J){return Z}}});var P1=T((G6)=>{var U0=y(),E6=V0(),g1=J0(),D=u(),z0=W0(),u1=U0.getBCHDigit(7973);function O6($,q,Z){for(let J=1;J<=40;J++)if(q<=G6.getCapacity(J,Z,$))return J;return}function D1($,q){return D.getCharCountIndicator($,q)+4}function T6($,q){let Z=0;return $.forEach(function(J){let Q=D1(J.mode,q);Z+=Q+J.getBitsLength()}),Z}function X6($,q){for(let Z=1;Z<=40;Z++)if(T6($,Z)<=G6.getCapacity(Z,q,D.MIXED))return Z;return}G6.from=function(q,Z){if(z0.isValid(q))return parseInt(q,10);return Z};G6.getCapacity=function(q,Z,J){if(!z0.isValid(q))throw Error("Invalid QR Code version");if(typeof J>"u")J=D.BYTE;let Q=U0.getSymbolTotalCodewords(q),F=E6.getTotalCodewordsCount(q,Z),K=(Q-F)*8;if(J===D.MIXED)return K;let U=K-D1(J,q);switch(J){case D.NUMERIC:return Math.floor(U/10*3);case D.ALPHANUMERIC:return Math.floor(U/11*2);case D.KANJI:return Math.floor(U/13);case D.BYTE:default:return Math.floor(U/8)}};G6.getBestVersionForData=function(q,Z){let J,Q=g1.from(Z,g1.M);if(Array.isArray(q)){if(q.length>1)return X6(q,Q);if(q.length===0)return 1;J=q[0]}else J=q;return O6(J.mode,J.getLength(),Q)};G6.getEncodedBits=function(q){if(!z0.isValid(q)||q<7)throw Error("Invalid QR Code version");let Z=q<<12;while(U0.getBCHDigit(Z)-u1>=0)Z^=7973<<U0.getBCHDigit(Z)-u1;return q<<12|Z}});var c1=T((W6)=>{var k0=y(),v1=k0.getBCHDigit(1335);W6.getEncodedBits=function(q,Z){let J=q.bit<<3|Z,Q=J<<10;while(k0.getBCHDigit(Q)-v1>=0)Q^=1335<<k0.getBCHDigit(Q)-v1;return(J<<10|Q)^21522}});var m1=T((y5,b1)=>{var j6=u();function m($){this.mode=j6.NUMERIC,this.data=$.toString()}m.getBitsLength=function(q){return 10*Math.floor(q/3)+(q%3?q%3*3+1:0)};m.prototype.getLength=function(){return this.data.length};m.prototype.getBitsLength=function(){return m.getBitsLength(this.data.length)};m.prototype.write=function(q){let Z,J,Q;for(Z=0;Z+3<=this.data.length;Z+=3)J=this.data.substr(Z,3),Q=parseInt(J,10),q.put(Q,10);let F=this.data.length-Z;if(F>0)J=this.data.substr(Z),Q=parseInt(J,10),q.put(Q,F*3+1)};b1.exports=m});var l1=T((g5,x1)=>{var _6=u(),S0=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function x($){this.mode=_6.ALPHANUMERIC,this.data=$}x.getBitsLength=function(q){return 11*Math.floor(q/2)+6*(q%2)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(q){let Z;for(Z=0;Z+2<=this.data.length;Z+=2){let J=S0.indexOf(this.data[Z])*45;J+=S0.indexOf(this.data[Z+1]),q.put(J,11)}if(this.data.length%2)q.put(S0.indexOf(this.data[Z]),6)};x1.exports=x});var p1=T((u5,n1)=>{var B6=u();function l($){if(this.mode=B6.BYTE,typeof $==="string")this.data=new TextEncoder().encode($);else this.data=new Uint8Array($)}l.getBitsLength=function(q){return q*8};l.prototype.getLength=function(){return this.data.length};l.prototype.getBitsLength=function(){return l.getBitsLength(this.data.length)};l.prototype.write=function($){for(let q=0,Z=this.data.length;q<Z;q++)$.put(this.data[q],8)};n1.exports=l});var r1=T((D5,d1)=>{var I6=u(),L6=y();function n($){this.mode=I6.KANJI,this.data=$}n.getBitsLength=function(q){return q*13};n.prototype.getLength=function(){return this.data.length};n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)};n.prototype.write=function($){let q;for(q=0;q<this.data.length;q++){let Z=L6.toSJIS(this.data[q]);if(Z>=33088&&Z<=40956)Z-=33088;else if(Z>=57408&&Z<=60351)Z-=49472;else throw Error("Invalid SJIS character: "+this.data[q]+`
3
- Make sure your charset is UTF-8`);Z=(Z>>>8&255)*192+(Z&255),$.put(Z,13)}};d1.exports=n});var i1=T((h5,w0)=>{var e={single_source_shortest_paths:function($,q,Z){var J={},Q={};Q[q]=0;var F=e.PriorityQueue.make();F.push(q,0);var K,U,R,H,Y,E,O,X,G;while(!F.empty()){K=F.pop(),U=K.value,H=K.cost,Y=$[U]||{};for(R in Y)if(Y.hasOwnProperty(R)){if(E=Y[R],O=H+E,X=Q[R],G=typeof Q[R]>"u",G||X>O)Q[R]=O,F.push(R,O),J[R]=U}}if(typeof Z<"u"&&typeof Q[Z]>"u"){var A=["Could not find a path from ",q," to ",Z,"."].join("");throw Error(A)}return J},extract_shortest_path_from_predecessor_list:function($,q){var Z=[],J=q,Q;while(J)Z.push(J),Q=$[J],J=$[J];return Z.reverse(),Z},find_path:function($,q,Z){var J=e.single_source_shortest_paths($,q,Z);return e.extract_shortest_path_from_predecessor_list(J,Z)},PriorityQueue:{make:function($){var q=e.PriorityQueue,Z={},J;$=$||{};for(J in q)if(q.hasOwnProperty(J))Z[J]=q[J];return Z.queue=[],Z.sorter=$.sorter||q.default_sorter,Z},default_sorter:function($,q){return $.cost-q.cost},push:function($,q){var Z={value:$,cost:q};this.queue.push(Z),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};if(typeof w0<"u")w0.exports=e});var Z7=T((f6)=>{var N=u(),t1=m1(),e1=l1(),a1=p1(),q7=r1(),a=M0(),R0=y(),z6=i1();function s1($){return unescape(encodeURIComponent($)).length}function q0($,q,Z){let J=[],Q;while((Q=$.exec(Z))!==null)J.push({data:Q[0],index:Q.index,mode:q,length:Q[0].length});return J}function $7($){let q=q0(a.NUMERIC,N.NUMERIC,$),Z=q0(a.ALPHANUMERIC,N.ALPHANUMERIC,$),J,Q;if(R0.isKanjiModeEnabled())J=q0(a.BYTE,N.BYTE,$),Q=q0(a.KANJI,N.KANJI,$);else J=q0(a.BYTE_KANJI,N.BYTE,$),Q=[];return q.concat(Z,J,Q).sort(function(K,U){return K.index-U.index}).map(function(K){return{data:K.data,mode:K.mode,length:K.length}})}function f0($,q){switch(q){case N.NUMERIC:return t1.getBitsLength($);case N.ALPHANUMERIC:return e1.getBitsLength($);case N.KANJI:return q7.getBitsLength($);case N.BYTE:return a1.getBitsLength($)}}function k6($){return $.reduce(function(q,Z){let J=q.length-1>=0?q[q.length-1]:null;if(J&&J.mode===Z.mode)return q[q.length-1].data+=Z.data,q;return q.push(Z),q},[])}function S6($){let q=[];for(let Z=0;Z<$.length;Z++){let J=$[Z];switch(J.mode){case N.NUMERIC:q.push([J,{data:J.data,mode:N.ALPHANUMERIC,length:J.length},{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.ALPHANUMERIC:q.push([J,{data:J.data,mode:N.BYTE,length:J.length}]);break;case N.KANJI:q.push([J,{data:J.data,mode:N.BYTE,length:s1(J.data)}]);break;case N.BYTE:q.push([{data:J.data,mode:N.BYTE,length:s1(J.data)}])}}return q}function w6($,q){let Z={},J={start:{}},Q=["start"];for(let F=0;F<$.length;F++){let K=$[F],U=[];for(let R=0;R<K.length;R++){let H=K[R],Y=""+F+R;U.push(Y),Z[Y]={node:H,lastCount:0},J[Y]={};for(let E=0;E<Q.length;E++){let O=Q[E];if(Z[O]&&Z[O].node.mode===H.mode)J[O][Y]=f0(Z[O].lastCount+H.length,H.mode)-f0(Z[O].lastCount,H.mode),Z[O].lastCount+=H.length;else{if(Z[O])Z[O].lastCount=H.length;J[O][Y]=f0(H.length,H.mode)+4+N.getCharCountIndicator(H.mode,q)}}}Q=U}for(let F=0;F<Q.length;F++)J[Q[F]].end=0;return{map:J,table:Z}}function o1($,q){let Z,J=N.getBestModeForData($);if(Z=N.from(q,J),Z!==N.BYTE&&Z.bit<J.bit)throw Error('"'+$+'" cannot be encoded with mode '+N.toString(Z)+`.
4
- Suggested mode is: `+N.toString(J));if(Z===N.KANJI&&!R0.isKanjiModeEnabled())Z=N.BYTE;switch(Z){case N.NUMERIC:return new t1($);case N.ALPHANUMERIC:return new e1($);case N.KANJI:return new q7($);case N.BYTE:return new a1($)}}f6.fromArray=function(q){return q.reduce(function(Z,J){if(typeof J==="string")Z.push(o1(J,null));else if(J.data)Z.push(o1(J.data,J.mode));return Z},[])};f6.fromString=function(q,Z){let J=$7(q,R0.isKanjiModeEnabled()),Q=S6(J),F=w6(Q,Z),K=z6.find_path(F.map,"start","end"),U=[];for(let R=1;R<K.length-1;R++)U.push(F.table[K[R]].node);return f6.fromArray(k6(U))};f6.rawSplit=function(q){return f6.fromArray($7(q,R0.isKanjiModeEnabled()))}});var P0=T((i6)=>{var Y0=y(),y0=J0(),g6=X1(),u6=V1(),D6=N1(),h6=W1(),D0=L1(),h0=V0(),P6=C1(),H0=P1(),v6=c1(),c6=u(),g0=Z7();function b6($,q){let Z=$.size,J=h6.getPositions(q);for(let Q=0;Q<J.length;Q++){let F=J[Q][0],K=J[Q][1];for(let U=-1;U<=7;U++){if(F+U<=-1||Z<=F+U)continue;for(let R=-1;R<=7;R++){if(K+R<=-1||Z<=K+R)continue;if(U>=0&&U<=6&&(R===0||R===6)||R>=0&&R<=6&&(U===0||U===6)||U>=2&&U<=4&&R>=2&&R<=4)$.set(F+U,K+R,!0,!0);else $.set(F+U,K+R,!1,!0)}}}}function m6($){let q=$.size;for(let Z=8;Z<q-8;Z++){let J=Z%2===0;$.set(Z,6,J,!0),$.set(6,Z,J,!0)}}function x6($,q){let Z=D6.getPositions(q);for(let J=0;J<Z.length;J++){let Q=Z[J][0],F=Z[J][1];for(let K=-2;K<=2;K++)for(let U=-2;U<=2;U++)if(K===-2||K===2||U===-2||U===2||K===0&&U===0)$.set(Q+K,F+U,!0,!0);else $.set(Q+K,F+U,!1,!0)}}function l6($,q){let Z=$.size,J=H0.getEncodedBits(q),Q,F,K;for(let U=0;U<18;U++)Q=Math.floor(U/3),F=U%3+Z-8-3,K=(J>>U&1)===1,$.set(Q,F,K,!0),$.set(F,Q,K,!0)}function u0($,q,Z){let J=$.size,Q=v6.getEncodedBits(q,Z),F,K;for(F=0;F<15;F++){if(K=(Q>>F&1)===1,F<6)$.set(F,8,K,!0);else if(F<8)$.set(F+1,8,K,!0);else $.set(J-15+F,8,K,!0);if(F<8)$.set(8,J-F-1,K,!0);else if(F<9)$.set(8,15-F-1+1,K,!0);else $.set(8,15-F-1,K,!0)}$.set(J-8,8,1,!0)}function n6($,q){let Z=$.size,J=-1,Q=Z-1,F=7,K=0;for(let U=Z-1;U>0;U-=2){if(U===6)U--;while(!0){for(let R=0;R<2;R++)if(!$.isReserved(Q,U-R)){let H=!1;if(K<q.length)H=(q[K]>>>F&1)===1;if($.set(Q,U-R,H),F--,F===-1)K++,F=7}if(Q+=J,Q<0||Z<=Q){Q-=J,J=-J;break}}}}function p6($,q,Z){let J=new g6;Z.forEach(function(R){J.put(R.mode.bit,4),J.put(R.getLength(),c6.getCharCountIndicator(R.mode,$)),R.write(J)});let Q=Y0.getSymbolTotalCodewords($),F=h0.getTotalCodewordsCount($,q),K=(Q-F)*8;if(J.getLengthInBits()+4<=K)J.put(0,4);while(J.getLengthInBits()%8!==0)J.putBit(0);let U=(K-J.getLengthInBits())/8;for(let R=0;R<U;R++)J.put(R%2?17:236,8);return d6(J,$,q)}function d6($,q,Z){let J=Y0.getSymbolTotalCodewords(q),Q=h0.getTotalCodewordsCount(q,Z),F=J-Q,K=h0.getBlocksCount(q,Z),U=J%K,R=K-U,H=Math.floor(J/K),Y=Math.floor(F/K),E=Y+1,O=H-Y,X=new P6(O),G=0,A=Array(K),V=Array(K),W=0,E0=new Uint8Array($.buffer);for(let b=0;b<K;b++){let O0=b<R?Y:E;A[b]=E0.slice(G,G+O0),V[b]=X.encode(A[b]),G+=O0,W=Math.max(W,O0)}let i=new Uint8Array(J),I=0,z,C;for(z=0;z<W;z++)for(C=0;C<K;C++)if(z<A[C].length)i[I++]=A[C][z];for(z=0;z<O;z++)for(C=0;C<K;C++)i[I++]=V[C][z];return i}function r6($,q,Z,J){let Q;if(Array.isArray($))Q=g0.fromArray($);else if(typeof $==="string"){let H=q;if(!H){let Y=g0.rawSplit($);H=H0.getBestVersionForData(Y,Z)}Q=g0.fromString($,H||40)}else throw Error("Invalid data");let F=H0.getBestVersionForData(Q,Z);if(!F)throw Error("The amount of data is too big to be stored in a QR Code");if(!q)q=F;else if(q<F)throw Error(`
5
- The chosen QR Code version cannot contain this amount of data.
6
- Minimum version required to store current data is: `+F+`.
7
- `);let K=p6(q,Z,Q),U=Y0.getSymbolSize(q),R=new u6(U);if(b6(R,q),m6(R),x6(R,q),u0(R,Z,0),q>=7)l6(R,q);if(n6(R,K),isNaN(J))J=D0.getBestMask(R,u0.bind(null,R,Z));return D0.applyMask(J,R),u0(R,Z,J),{modules:R,version:q,errorCorrectionLevel:Z,maskPattern:J,segments:Q}}i6.create=function(q,Z){if(typeof q>"u"||q==="")throw Error("No input text");let J=y0.M,Q,F;if(typeof Z<"u"){if(J=y0.from(Z.errorCorrectionLevel,y0.M),Q=H0.from(Z.version),F=D0.from(Z.maskPattern),Z.toSJISFunc)Y0.setToSJISFunction(Z.toSJISFunc)}return r6(q,Q,J,F)}});var v0=T((c5,Q7)=>{var o6=M("util"),J7=M("stream"),S=Q7.exports=function(){J7.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};o6.inherits(S,J7);S.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q}),process.nextTick(function(){if(this._process(),this._paused&&this._reads&&this._reads.length>0)this._paused=!1,this.emit("drain")}.bind(this))};S.prototype.write=function($,q){if(!this.writable)return this.emit("error",Error("Stream not writable")),!1;let Z;if(Buffer.isBuffer($))Z=$;else Z=Buffer.from($,q||this._encoding);if(this._buffers.push(Z),this._buffered+=Z.length,this._process(),this._reads&&this._reads.length===0)this._paused=!0;return this.writable&&!this._paused};S.prototype.end=function($,q){if($)this.write($,q);if(this.writable=!1,!this._buffers)return;if(this._buffers.length===0)this._end();else this._buffers.push(null),this._process()};S.prototype.destroySoon=S.prototype.end;S.prototype._end=function(){if(this._reads.length>0)this.emit("error",Error("Unexpected end of input"));this.destroy()};S.prototype.destroy=function(){if(!this._buffers)return;this.writable=!1,this._reads=null,this._buffers=null,this.emit("close")};S.prototype._processReadAllowingLess=function($){this._reads.shift();let q=this._buffers[0];if(q.length>$.length)this._buffered-=$.length,this._buffers[0]=q.slice($.length),$.func.call(this,q.slice(0,$.length));else this._buffered-=q.length,this._buffers.shift(),$.func.call(this,q)};S.prototype._processRead=function($){this._reads.shift();let q=0,Z=0,J=Buffer.alloc($.length);while(q<$.length){let Q=this._buffers[Z++],F=Math.min(Q.length,$.length-q);if(Q.copy(J,q,0,F),q+=F,F!==Q.length)this._buffers[--Z]=Q.slice(F)}if(Z>0)this._buffers.splice(0,Z);this._buffered-=$.length,$.func.call(this,J)};S.prototype._process=function(){try{while(this._buffered>0&&this._reads&&this._reads.length>0){let $=this._reads[0];if($.allowLess)this._processReadAllowingLess($);else if(this._buffered>=$.length)this._processRead($);else break}if(this._buffers&&!this.writable)this._end()}catch($){this.emit("error",$)}}});var c0=T((t6)=>{var h=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];t6.getImagePasses=function($,q){let Z=[],J=$%8,Q=q%8,F=($-J)/8,K=(q-Q)/8;for(let U=0;U<h.length;U++){let R=h[U],H=F*R.x.length,Y=K*R.y.length;for(let E=0;E<R.x.length;E++)if(R.x[E]<J)H++;else break;for(let E=0;E<R.y.length;E++)if(R.y[E]<Q)Y++;else break;if(H>0&&Y>0)Z.push({width:H,height:Y,index:U})}return Z};t6.getInterlaceIterator=function($){return function(q,Z,J){let Q=q%h[J].x.length,F=(q-Q)/h[J].x.length*8+h[J].x[Q],K=Z%h[J].y.length,U=(Z-K)/h[J].y.length*8+h[J].y[K];return F*4+U*$*4}}});var b0=T((m5,F7)=>{F7.exports=function(q,Z,J){let Q=q+Z-J,F=Math.abs(Q-q),K=Math.abs(Q-Z),U=Math.abs(Q-J);if(F<=K&&F<=U)return q;if(K<=U)return Z;return J}});var m0=T((x5,U7)=>{var qq=c0(),$q=b0();function K7($,q,Z){let J=$*q;if(Z!==8)J=Math.ceil(J/(8/Z));return J}var p=U7.exports=function($,q){let{width:Z,height:J,interlace:Q,bpp:F,depth:K}=$;if(this.read=q.read,this.write=q.write,this.complete=q.complete,this._imageIndex=0,this._images=[],Q){let U=qq.getImagePasses(Z,J);for(let R=0;R<U.length;R++)this._images.push({byteWidth:K7(U[R].width,F,K),height:U[R].height,lineIndex:0})}else this._images.push({byteWidth:K7(Z,F,K),height:J,lineIndex:0});if(K===8)this._xComparison=F;else if(K===16)this._xComparison=F*2;else this._xComparison=1};p.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};p.prototype._unFilterType1=function($,q,Z){let J=this._xComparison,Q=J-1;for(let F=0;F<Z;F++){let K=$[1+F],U=F>Q?q[F-J]:0;q[F]=K+U}};p.prototype._unFilterType2=function($,q,Z){let J=this._lastLine;for(let Q=0;Q<Z;Q++){let F=$[1+Q],K=J?J[Q]:0;q[Q]=F+K}};p.prototype._unFilterType3=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=Math.floor((H+R)/2);q[K]=U+Y}};p.prototype._unFilterType4=function($,q,Z){let J=this._xComparison,Q=J-1,F=this._lastLine;for(let K=0;K<Z;K++){let U=$[1+K],R=F?F[K]:0,H=K>Q?q[K-J]:0,Y=K>Q&&F?F[K-J]:0,E=$q(H,R,Y);q[K]=U+E}};p.prototype._reverseFilterLine=function($){let q=$[0],Z,J=this._images[this._imageIndex],Q=J.byteWidth;if(q===0)Z=$.slice(1,Q+1);else switch(Z=Buffer.alloc(Q),q){case 1:this._unFilterType1($,Z,Q);break;case 2:this._unFilterType2($,Z,Q);break;case 3:this._unFilterType3($,Z,Q);break;case 4:this._unFilterType4($,Z,Q);break;default:throw Error("Unrecognised filter type - "+q)}if(this.write(Z),J.lineIndex++,J.lineIndex>=J.height)this._lastLine=null,this._imageIndex++,J=this._images[this._imageIndex];else this._lastLine=Z;if(J)this.read(J.byteWidth+1,this._reverseFilterLine.bind(this));else this._lastLine=null,this.complete()}});var Y7=T((l5,H7)=>{var Zq=M("util"),R7=v0(),Jq=m0(),Qq=H7.exports=function($){R7.call(this);let q=[],Z=this;this._filter=new Jq($,{read:this.read.bind(this),write:function(J){q.push(J)},complete:function(){Z.emit("complete",Buffer.concat(q))}}),this._filter.start()};Zq.inherits(Qq,R7)});var d=T((n5,E7)=>{E7.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var n0=T((p5,O7)=>{var x0=[];(function(){for(let $=0;$<256;$++){let q=$;for(let Z=0;Z<8;Z++)if(q&1)q=3988292384^q>>>1;else q=q>>>1;x0[$]=q}})();var l0=O7.exports=function(){this._crc=-1};l0.prototype.write=function($){for(let q=0;q<$.length;q++)this._crc=x0[(this._crc^$[q])&255]^this._crc>>>8;return!0};l0.prototype.crc32=function(){return this._crc^-1};l0.crc32=function($){let q=-1;for(let Z=0;Z<$.length;Z++)q=x0[(q^$[Z])&255]^q>>>8;return q^-1}});var p0=T((d5,T7)=>{var j=d(),Fq=n0(),_=T7.exports=function($,q){this._options=$,$.checkCRC=$.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[j.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[j.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[j.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[j.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[j.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[j.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=q.read,this.error=q.error,this.metadata=q.metadata,this.gamma=q.gamma,this.transColor=q.transColor,this.palette=q.palette,this.parsed=q.parsed,this.inflateData=q.inflateData,this.finished=q.finished,this.simpleTransparency=q.simpleTransparency,this.headersFinished=q.headersFinished||function(){}};_.prototype.start=function(){this.read(j.PNG_SIGNATURE.length,this._parseSignature.bind(this))};_.prototype._parseSignature=function($){let q=j.PNG_SIGNATURE;for(let Z=0;Z<q.length;Z++)if($[Z]!==q[Z]){this.error(Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};_.prototype._parseChunkBegin=function($){let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J="";for(let F=4;F<8;F++)J+=String.fromCharCode($[F]);let Q=Boolean($[4]&32);if(!this._hasIHDR&&Z!==j.TYPE_IHDR){this.error(Error("Expected IHDR on beggining"));return}if(this._crc=new Fq,this._crc.write(Buffer.from(J)),this._chunks[Z])return this._chunks[Z](q);if(!Q){this.error(Error("Unsupported critical chunk type "+J));return}this.read(q+4,this._skipChunk.bind(this))};_.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};_.prototype._parseChunkEnd=function($){let q=$.readInt32BE(0),Z=this._crc.crc32();if(this._options.checkCRC&&Z!==q){this.error(Error("Crc error - "+q+" - "+Z));return}if(!this._hasIEND)this.read(8,this._parseChunkBegin.bind(this))};_.prototype._handleIHDR=function($){this.read($,this._parseIHDR.bind(this))};_.prototype._parseIHDR=function($){this._crc.write($);let q=$.readUInt32BE(0),Z=$.readUInt32BE(4),J=$[8],Q=$[9],F=$[10],K=$[11],U=$[12];if(J!==8&&J!==4&&J!==2&&J!==1&&J!==16){this.error(Error("Unsupported bit depth "+J));return}if(!(Q in j.COLORTYPE_TO_BPP_MAP)){this.error(Error("Unsupported color type"));return}if(F!==0){this.error(Error("Unsupported compression method"));return}if(K!==0){this.error(Error("Unsupported filter method"));return}if(U!==0&&U!==1){this.error(Error("Unsupported interlace method"));return}this._colorType=Q;let R=j.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:q,height:Z,depth:J,interlace:Boolean(U),palette:Boolean(Q&j.COLORTYPE_PALETTE),color:Boolean(Q&j.COLORTYPE_COLOR),alpha:Boolean(Q&j.COLORTYPE_ALPHA),bpp:R,colorType:Q}),this._handleChunkEnd()};_.prototype._handlePLTE=function($){this.read($,this._parsePLTE.bind(this))};_.prototype._parsePLTE=function($){this._crc.write($);let q=Math.floor($.length/3);for(let Z=0;Z<q;Z++)this._palette.push([$[Z*3],$[Z*3+1],$[Z*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};_.prototype._handleTRNS=function($){this.simpleTransparency(),this.read($,this._parseTRNS.bind(this))};_.prototype._parseTRNS=function($){if(this._crc.write($),this._colorType===j.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(Error("Transparency chunk must be after palette"));return}if($.length>this._palette.length){this.error(Error("More transparent colors than palette size"));return}for(let q=0;q<$.length;q++)this._palette[q][3]=$[q];this.palette(this._palette)}if(this._colorType===j.COLORTYPE_GRAYSCALE)this.transColor([$.readUInt16BE(0)]);if(this._colorType===j.COLORTYPE_COLOR)this.transColor([$.readUInt16BE(0),$.readUInt16BE(2),$.readUInt16BE(4)]);this._handleChunkEnd()};_.prototype._handleGAMA=function($){this.read($,this._parseGAMA.bind(this))};_.prototype._parseGAMA=function($){this._crc.write($),this.gamma($.readUInt32BE(0)/j.GAMMA_DIVISION),this._handleChunkEnd()};_.prototype._handleIDAT=function($){if(!this._emittedHeadersFinished)this._emittedHeadersFinished=!0,this.headersFinished();this.read(-$,this._parseIDAT.bind(this,$))};_.prototype._parseIDAT=function($,q){if(this._crc.write(q),this._colorType===j.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw Error("Expected palette not found");this.inflateData(q);let Z=$-q.length;if(Z>0)this._handleIDAT(Z);else this._handleChunkEnd()};_.prototype._handleIEND=function($){this.read($,this._parseIEND.bind(this))};_.prototype._parseIEND=function($){if(this._crc.write($),this._hasIEND=!0,this._handleChunkEnd(),this.finished)this.finished()}});var d0=T((Eq)=>{var X7=c0(),Kq=[function(){},function($,q,Z,J){if(J===q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=255},function($,q,Z,J){if(J+1>=q.length)throw Error("Ran out of data");let Q=q[J];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=q[J+1]},function($,q,Z,J){if(J+2>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=255},function($,q,Z,J){if(J+3>=q.length)throw Error("Ran out of data");$[Z]=q[J],$[Z+1]=q[J+1],$[Z+2]=q[J+2],$[Z+3]=q[J+3]}],Uq=[function(){},function($,q,Z,J){let Q=q[0];$[Z]=Q,$[Z+1]=Q,$[Z+2]=Q,$[Z+3]=J},function($,q,Z){let J=q[0];$[Z]=J,$[Z+1]=J,$[Z+2]=J,$[Z+3]=q[1]},function($,q,Z,J){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=J},function($,q,Z){$[Z]=q[0],$[Z+1]=q[1],$[Z+2]=q[2],$[Z+3]=q[3]}];function Rq($,q){let Z=[],J=0;function Q(){if(J===$.length)throw Error("Ran out of data");let F=$[J];J++;let K,U,R,H,Y,E,O,X;switch(q){default:throw Error("unrecognised depth");case 16:O=$[J],J++,Z.push((F<<8)+O);break;case 4:O=F&15,X=F>>4,Z.push(X,O);break;case 2:Y=F&3,E=F>>2&3,O=F>>4&3,X=F>>6&3,Z.push(X,O,E,Y);break;case 1:K=F&1,U=F>>1&1,R=F>>2&1,H=F>>3&1,Y=F>>4&1,E=F>>5&1,O=F>>6&1,X=F>>7&1,Z.push(X,O,E,Y,H,R,U,K);break}}return{get:function(F){while(Z.length<F)Q();let K=Z.slice(0,F);return Z=Z.slice(F),K},resetAfterLine:function(){Z.length=0},end:function(){if(J!==$.length)throw Error("extra data found")}}}function Hq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++)for(let Y=0;Y<K;Y++){let E=Z(Y,H,R);Kq[J](q,Q,E,F),F+=J}return F}function Yq($,q,Z,J,Q,F){let{width:K,height:U,index:R}=$;for(let H=0;H<U;H++){for(let Y=0;Y<K;Y++){let E=Q.get(J),O=Z(Y,H,R);Uq[J](q,E,O,F)}Q.resetAfterLine()}}Eq.dataToBitMap=function($,q){let{width:Z,height:J,depth:Q,bpp:F,interlace:K}=q,U;if(Q!==8)U=Rq($,Q);let R;if(Q<=8)R=Buffer.alloc(Z*J*4);else R=new Uint16Array(Z*J*4);let H=Math.pow(2,Q)-1,Y=0,E,O;if(K)E=X7.getImagePasses(Z,J),O=X7.getInterlaceIterator(Z,J);else{let X=0;O=function(){let G=X;return X+=4,G},E=[{width:Z,height:J}]}for(let X=0;X<E.length;X++)if(Q===8)Y=Hq(E[X],R,O,F,$,Y);else Yq(E[X],R,O,F,U,H);if(Q===8){if(Y!==$.length)throw Error("extra data found")}else U.end();return R}});var r0=T((i5,G7)=>{function Tq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=Q[$[F]];if(!R)throw Error("index "+$[F]+" not in palette");for(let H=0;H<4;H++)q[F+H]=R[H];F+=4}}function Xq($,q,Z,J,Q){let F=0;for(let K=0;K<J;K++)for(let U=0;U<Z;U++){let R=!1;if(Q.length===1){if(Q[0]===$[F])R=!0}else if(Q[0]===$[F]&&Q[1]===$[F+1]&&Q[2]===$[F+2])R=!0;if(R)for(let H=0;H<4;H++)q[F+H]=0;F+=4}}function Gq($,q,Z,J,Q){let F=255,K=Math.pow(2,Q)-1,U=0;for(let R=0;R<J;R++)for(let H=0;H<Z;H++){for(let Y=0;Y<4;Y++)q[U+Y]=Math.floor($[U+Y]*F/K+0.5);U+=4}}G7.exports=function($,q){let{depth:Z,width:J,height:Q,colorType:F,transColor:K,palette:U}=q,R=$;if(F===3)Tq($,R,J,Q,U);else{if(K)Xq($,R,J,Q,K);if(Z!==8){if(Z===16)R=Buffer.alloc(J*Q*4);Gq($,R,J,Q,Z)}}return R}});var N7=T((s5,A7)=>{var Vq=M("util"),i0=M("zlib"),V7=v0(),Aq=Y7(),Nq=p0(),Wq=d0(),Mq=r0(),f=A7.exports=function($){V7.call(this),this._parser=new Nq($,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=$,this.writable=!0,this._parser.start()};Vq.inherits(f,V7);f.prototype._handleError=function($){if(this.emit("error",$),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy)this._inflate.destroy();if(this._filter)this._filter.destroy(),this._filter.on("error",function(){});this.errord=!0};f.prototype._inflateData=function($){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=i0.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let Z=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,J=Math.max(Z,i0.Z_MIN_CHUNK);this._inflate=i0.createInflate({chunkSize:J});let Q=Z,F=this.emit.bind(this,"error");this._inflate.on("error",function(U){if(!Q)return;F(U)}),this._filter.on("complete",this._complete.bind(this));let K=this._filter.write.bind(this._filter);this._inflate.on("data",function(U){if(!Q)return;if(U.length>Q)U=U.slice(0,Q);Q-=U.length,K(U)}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write($)};f.prototype._handleMetaData=function($){this._metaData=$,this._bitmapInfo=Object.create($),this._filter=new Aq(this._bitmapInfo)};f.prototype._handleTransColor=function($){this._bitmapInfo.transColor=$};f.prototype._handlePalette=function($){this._bitmapInfo.palette=$};f.prototype._simpleTransparency=function(){this._metaData.alpha=!0};f.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};f.prototype._finished=function(){if(this.errord)return;if(!this._inflate)this.emit("error","No Inflate block");else this._inflate.end()};f.prototype._complete=function($){if(this.errord)return;let q;try{let Z=Wq.dataToBitMap($,this._bitmapInfo);q=Mq(Z,this._bitmapInfo),Z=null}catch(Z){this._handleError(Z);return}this.emit("parsed",q)}});var M7=T((o5,W7)=>{var k=d();W7.exports=function($,q,Z,J){let Q=[k.COLORTYPE_COLOR_ALPHA,k.COLORTYPE_ALPHA].indexOf(J.colorType)!==-1;if(J.colorType===J.inputColorType){let G=function(){let A=new ArrayBuffer(2);return new DataView(A).setInt16(0,256,!0),new Int16Array(A)[0]!==256}();if(J.bitDepth===8||J.bitDepth===16&&G)return $}let F=J.bitDepth!==16?$:new Uint16Array($.buffer),K=255,U=k.COLORTYPE_TO_BPP_MAP[J.inputColorType];if(U===4&&!J.inputHasAlpha)U=3;let R=k.COLORTYPE_TO_BPP_MAP[J.colorType];if(J.bitDepth===16)K=65535,R*=2;let H=Buffer.alloc(q*Z*R),Y=0,E=0,O=J.bgColor||{};if(O.red===void 0)O.red=K;if(O.green===void 0)O.green=K;if(O.blue===void 0)O.blue=K;function X(){let G,A,V,W=K;switch(J.inputColorType){case k.COLORTYPE_COLOR_ALPHA:W=F[Y+3],G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_COLOR:G=F[Y],A=F[Y+1],V=F[Y+2];break;case k.COLORTYPE_ALPHA:W=F[Y+1],G=F[Y],A=G,V=G;break;case k.COLORTYPE_GRAYSCALE:G=F[Y],A=G,V=G;break;default:throw Error("input color type:"+J.inputColorType+" is not supported at present")}if(J.inputHasAlpha){if(!Q)W/=K,G=Math.min(Math.max(Math.round((1-W)*O.red+W*G),0),K),A=Math.min(Math.max(Math.round((1-W)*O.green+W*A),0),K),V=Math.min(Math.max(Math.round((1-W)*O.blue+W*V),0),K)}return{red:G,green:A,blue:V,alpha:W}}for(let G=0;G<Z;G++)for(let A=0;A<q;A++){let V=X(F,Y);switch(J.colorType){case k.COLORTYPE_COLOR_ALPHA:case k.COLORTYPE_COLOR:if(J.bitDepth===8){if(H[E]=V.red,H[E+1]=V.green,H[E+2]=V.blue,Q)H[E+3]=V.alpha}else if(H.writeUInt16BE(V.red,E),H.writeUInt16BE(V.green,E+2),H.writeUInt16BE(V.blue,E+4),Q)H.writeUInt16BE(V.alpha,E+6);break;case k.COLORTYPE_ALPHA:case k.COLORTYPE_GRAYSCALE:{let W=(V.red+V.green+V.blue)/3;if(J.bitDepth===8){if(H[E]=W,Q)H[E+1]=V.alpha}else if(H.writeUInt16BE(W,E),Q)H.writeUInt16BE(V.alpha,E+2);break}default:throw Error("unrecognised color Type "+J.colorType)}Y+=U,E+=R}return H}});var B7=T((t5,_7)=>{var j7=b0();function jq($,q,Z,J,Q){for(let F=0;F<Z;F++)J[Q+F]=$[q+F]}function _q($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++)J+=Math.abs($[F]);return J}function Bq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=$[q+K]-U;J[Q+K]=R}}function Iq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=$[q+F]-K;Q+=Math.abs(U)}return Q}function Lq($,q,Z,J,Q){for(let F=0;F<Z;F++){let K=q>0?$[q+F-Z]:0,U=$[q+F]-K;J[Q+F]=U}}function zq($,q,Z){let J=0,Q=q+Z;for(let F=q;F<Q;F++){let K=q>0?$[F-Z]:0,U=$[F]-K;J+=Math.abs(U)}return J}function kq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=$[q+K]-(U+R>>1);J[Q+K]=H}}function Sq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=$[q+F]-(K+U>>1);Q+=Math.abs(R)}return Q}function wq($,q,Z,J,Q,F){for(let K=0;K<Z;K++){let U=K>=F?$[q+K-F]:0,R=q>0?$[q+K-Z]:0,H=q>0&&K>=F?$[q+K-(Z+F)]:0,Y=$[q+K]-j7(U,R,H);J[Q+K]=Y}}function fq($,q,Z,J){let Q=0;for(let F=0;F<Z;F++){let K=F>=J?$[q+F-J]:0,U=q>0?$[q+F-Z]:0,R=q>0&&F>=J?$[q+F-(Z+J)]:0,H=$[q+F]-j7(K,U,R);Q+=Math.abs(H)}return Q}var Cq={0:jq,1:Bq,2:Lq,3:kq,4:wq},yq={0:_q,1:Iq,2:zq,3:Sq,4:fq};_7.exports=function($,q,Z,J,Q){let F;if(!("filterType"in J)||J.filterType===-1)F=[0,1,2,3,4];else if(typeof J.filterType==="number")F=[J.filterType];else throw Error("unrecognised filter types");if(J.bitDepth===16)Q*=2;let K=q*Q,U=0,R=0,H=Buffer.alloc((K+1)*Z),Y=F[0];for(let E=0;E<Z;E++){if(F.length>1){let O=1/0;for(let X=0;X<F.length;X++){let G=yq[F[X]]($,R,K,Q);if(G<O)Y=F[X],O=G}}H[U]=Y,U++,Cq[Y]($,R,K,H,U,Q),U+=K,R+=K}return H}});var s0=T((e5,I7)=>{var B=d(),gq=n0(),uq=M7(),Dq=B7(),hq=M("zlib"),P=I7.exports=function($){if(this._options=$,$.deflateChunkSize=$.deflateChunkSize||32768,$.deflateLevel=$.deflateLevel!=null?$.deflateLevel:9,$.deflateStrategy=$.deflateStrategy!=null?$.deflateStrategy:3,$.inputHasAlpha=$.inputHasAlpha!=null?$.inputHasAlpha:!0,$.deflateFactory=$.deflateFactory||hq.createDeflate,$.bitDepth=$.bitDepth||8,$.colorType=typeof $.colorType==="number"?$.colorType:B.COLORTYPE_COLOR_ALPHA,$.inputColorType=typeof $.inputColorType==="number"?$.inputColorType:B.COLORTYPE_COLOR_ALPHA,[B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.colorType)===-1)throw Error("option color type:"+$.colorType+" is not supported at present");if([B.COLORTYPE_GRAYSCALE,B.COLORTYPE_COLOR,B.COLORTYPE_COLOR_ALPHA,B.COLORTYPE_ALPHA].indexOf($.inputColorType)===-1)throw Error("option input color type:"+$.inputColorType+" is not supported at present");if($.bitDepth!==8&&$.bitDepth!==16)throw Error("option bit depth:"+$.bitDepth+" is not supported at present")};P.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};P.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};P.prototype.filterData=function($,q,Z){let J=uq($,q,Z,this._options),Q=B.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dq(J,q,Z,this._options,Q)};P.prototype._packChunk=function($,q){let Z=q?q.length:0,J=Buffer.alloc(Z+12);if(J.writeUInt32BE(Z,0),J.writeUInt32BE($,4),q)q.copy(J,8);return J.writeInt32BE(gq.crc32(J.slice(4,J.length-4)),J.length-4),J};P.prototype.packGAMA=function($){let q=Buffer.alloc(4);return q.writeUInt32BE(Math.floor($*B.GAMMA_DIVISION),0),this._packChunk(B.TYPE_gAMA,q)};P.prototype.packIHDR=function($,q){let Z=Buffer.alloc(13);return Z.writeUInt32BE($,0),Z.writeUInt32BE(q,4),Z[8]=this._options.bitDepth,Z[9]=this._options.colorType,Z[10]=0,Z[11]=0,Z[12]=0,this._packChunk(B.TYPE_IHDR,Z)};P.prototype.packIDAT=function($){return this._packChunk(B.TYPE_IDAT,$)};P.prototype.packIEND=function(){return this._packChunk(B.TYPE_IEND,null)}});var S7=T((a5,k7)=>{var Pq=M("util"),L7=M("stream"),vq=d(),cq=s0(),z7=k7.exports=function($){L7.call(this);let q=$||{};this._packer=new cq(q),this._deflate=this._packer.createDeflate(),this.readable=!0};Pq.inherits(z7,L7);z7.prototype.pack=function($,q,Z,J){if(this.emit("data",Buffer.from(vq.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(q,Z)),J)this.emit("data",this._packer.packGAMA(J));let Q=this._packer.filterData($,q,Z);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",function(F){this.emit("data",this._packer.packIDAT(F))}.bind(this)),this._deflate.on("end",function(){this.emit("data",this._packer.packIEND()),this.emit("end")}.bind(this)),this._deflate.end(Q)}});var u7=T(($0,g7)=>{var w7=M("assert").ok,r=M("zlib"),bq=M("util"),f7=M("buffer").kMaxLength;function c($){if(!(this instanceof c))return new c($);if($&&$.chunkSize<r.Z_MIN_CHUNK)$.chunkSize=r.Z_MIN_CHUNK;if(r.Inflate.call(this,$),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,$&&$.maxLength!=null)this._maxLength=$.maxLength}function mq($){return new c($)}function C7($,q){if(q)process.nextTick(q);if(!$._handle)return;$._handle.close(),$._handle=null}c.prototype._processChunk=function($,q,Z){if(typeof Z==="function")return r.Inflate._processChunk.call(this,$,q,Z);let J=this,Q=$&&$.length,F=this._chunkSize-this._offset,K=this._maxLength,U=0,R=[],H=0,Y;this.on("error",function(G){Y=G});function E(G,A){if(J._hadError)return;let V=F-A;if(w7(V>=0,"have should not go down"),V>0){let W=J._buffer.slice(J._offset,J._offset+V);if(J._offset+=V,W.length>K)W=W.slice(0,K);if(R.push(W),H+=W.length,K-=W.length,K===0)return!1}if(A===0||J._offset>=J._chunkSize)F=J._chunkSize,J._offset=0,J._buffer=Buffer.allocUnsafe(J._chunkSize);if(A===0)return U+=Q-G,Q=G,!0;return!1}w7(this._handle,"zlib binding closed");let O;do O=this._handle.writeSync(q,$,U,Q,this._buffer,this._offset,F),O=O||this._writeState;while(!this._hadError&&E(O[0],O[1]));if(this._hadError)throw Y;if(H>=f7)throw C7(this),RangeError("Cannot create final Buffer. It would be larger than 0x"+f7.toString(16)+" bytes");let X=Buffer.concat(R,H);return C7(this),X};bq.inherits(c,r.Inflate);function xq($,q){if(typeof q==="string")q=Buffer.from(q);if(!(q instanceof Buffer))throw TypeError("Not a string or buffer");let Z=$._finishFlushFlag;if(Z==null)Z=r.Z_FINISH;return $._processChunk(q,Z)}function y7($,q){return xq(new c(q),$)}g7.exports=$0=y7;$0.Inflate=c;$0.createInflate=mq;$0.inflateSync=y7});var o0=T((q$,h7)=>{var D7=h7.exports=function($){this._buffer=$,this._reads=[]};D7.prototype.read=function($,q){this._reads.push({length:Math.abs($),allowLess:$<0,func:q})};D7.prototype.process=function(){while(this._reads.length>0&&this._buffer.length){let $=this._reads[0];if(this._buffer.length&&(this._buffer.length>=$.length||$.allowLess)){this._reads.shift();let q=this._buffer;this._buffer=q.slice($.length),$.func.call(this,q.slice(0,$.length))}else break}if(this._reads.length>0)return Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return Error("unrecognised content at end of stream")}});var P7=T((pq)=>{var lq=o0(),nq=m0();pq.process=function($,q){let Z=[],J=new lq($);return new nq(q,{read:J.read.bind(J),write:function(F){Z.push(F)},complete:function(){}}).start(),J.process(),Buffer.concat(Z)}});var m7=T((Z$,b7)=>{var v7=!0,c7=M("zlib"),rq=u7();if(!c7.deflateSync)v7=!1;var iq=o0(),sq=P7(),oq=p0(),tq=d0(),eq=r0();b7.exports=function($,q){if(!v7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let Z;function J(I){Z=I}let Q;function F(I){Q=I}function K(I){Q.transColor=I}function U(I){Q.palette=I}function R(){Q.alpha=!0}let H;function Y(I){H=I}let E=[];function O(I){E.push(I)}let X=new iq($);if(new oq(q,{read:X.read.bind(X),error:J,metadata:F,gamma:Y,palette:U,transColor:K,inflateData:O,simpleTransparency:R}).start(),X.process(),Z)throw Z;let A=Buffer.concat(E);E.length=0;let V;if(Q.interlace)V=c7.inflateSync(A);else{let z=((Q.width*Q.bpp*Q.depth+7>>3)+1)*Q.height;V=rq(A,{chunkSize:z,maxLength:z})}if(A=null,!V||!V.length)throw Error("bad png - invalid inflate data response");let W=sq.process(V,Q);A=null;let E0=tq.dataToBitMap(W,Q);W=null;let i=eq(E0,Q);return Q.data=i,Q.gamma=H||0,Q}});var p7=T((J$,n7)=>{var x7=!0,l7=M("zlib");if(!l7.deflateSync)x7=!1;var aq=d(),q4=s0();n7.exports=function($,q){if(!x7)throw Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let J=new q4(q||{}),Q=[];if(Q.push(Buffer.from(aq.PNG_SIGNATURE)),Q.push(J.packIHDR($.width,$.height)),$.gamma)Q.push(J.packGAMA($.gamma));let F=J.filterData($.data,$.width,$.height),K=l7.deflateSync(F,J.getDeflateOptions());if(F=null,!K||!K.length)throw Error("bad png - invalid compressed data response");return Q.push(J.packIDAT(K)),Q.push(J.packIEND()),Buffer.concat(Q)}});var d7=T((J4)=>{var $4=m7(),Z4=p7();J4.read=function($,q){return $4($,q||{})};J4.write=function($,q){return Z4($,q)}});var i7=T((Y4)=>{var K4=M("util"),r7=M("stream"),U4=N7(),R4=S7(),H4=d7(),L=Y4.PNG=function($){if(r7.call(this),$=$||{},this.width=$.width|0,this.height=$.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,$.fill&&this.data)this.data.fill(0);this.gamma=0,this.readable=this.writable=!0,this._parser=new U4($),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",function(q){this.data=q,this.emit("parsed",q)}.bind(this)),this._packer=new R4($),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};K4.inherits(L,r7);L.sync=H4;L.prototype.pack=function(){if(!this.data||!this.data.length)return this.emit("error","No data provided"),this;return process.nextTick(function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}.bind(this)),this};L.prototype.parse=function($,q){if(q){let Z,J;Z=function(Q){this.removeListener("error",J),this.data=Q,q(null,this)}.bind(this),J=function(Q){this.removeListener("parsed",Z),q(Q,null)}.bind(this),this.once("parsed",Z),this.once("error",J)}return this.end($),this};L.prototype.write=function($){return this._parser.write($),!0};L.prototype.end=function($){this._parser.end($)};L.prototype._metadata=function($){this.width=$.width,this.height=$.height,this.emit("metadata",$)};L.prototype._gamma=function($){this.gamma=$};L.prototype._handleClose=function(){if(!this._parser.writable&&!this._packer.readable)this.emit("close")};L.bitblt=function($,q,Z,J,Q,F,K,U){if(Z|=0,J|=0,Q|=0,F|=0,K|=0,U|=0,Z>$.width||J>$.height||Z+Q>$.width||J+F>$.height)throw Error("bitblt reading outside image");if(K>q.width||U>q.height||K+Q>q.width||U+F>q.height)throw Error("bitblt writing outside image");for(let R=0;R<F;R++)$.data.copy(q.data,(U+R)*q.width+K<<2,(J+R)*$.width+Z<<2,(J+R)*$.width+Z+Q<<2)};L.prototype.bitblt=function($,q,Z,J,Q,F,K){return L.bitblt(this,$,q,Z,J,Q,F,K),this};L.adjustGamma=function($){if($.gamma){for(let q=0;q<$.height;q++)for(let Z=0;Z<$.width;Z++){let J=$.width*q+Z<<2;for(let Q=0;Q<3;Q++){let F=$.data[J+Q]/255;F=Math.pow(F,0.45454545454545453/$.gamma),$.data[J+Q]=Math.round(F*255)}}$.gamma=0}};L.prototype.adjustGamma=function(){L.adjustGamma(this)}});var Z0=T((E4)=>{function s7($){if(typeof $==="number")$=$.toString();if(typeof $!=="string")throw Error("Color should be defined as hex string");let q=$.slice().replace("#","").split("");if(q.length<3||q.length===5||q.length>8)throw Error("Invalid hex color: "+$);if(q.length===3||q.length===4)q=Array.prototype.concat.apply([],q.map(function(J){return[J,J]}));if(q.length===6)q.push("F","F");let Z=parseInt(q.join(""),16);return{r:Z>>24&255,g:Z>>16&255,b:Z>>8&255,a:Z&255,hex:"#"+q.slice(0,6).join("")}}E4.getOptions=function(q){if(!q)q={};if(!q.color)q.color={};let Z=typeof q.margin>"u"||q.margin===null||q.margin<0?4:q.margin,J=q.width&&q.width>=21?q.width:void 0,Q=q.scale||4;return{width:J,scale:J?4:Q,margin:Z,color:{dark:s7(q.color.dark||"#000000ff"),light:s7(q.color.light||"#ffffffff")},type:q.type,rendererOpts:q.rendererOpts||{}}};E4.getScale=function(q,Z){return Z.width&&Z.width>=q+Z.margin*2?Z.width/(q+Z.margin*2):Z.scale};E4.getImageWidth=function(q,Z){let J=E4.getScale(q,Z);return Math.floor((q+Z.margin*2)*J)};E4.qrToImageData=function(q,Z,J){let Q=Z.modules.size,F=Z.modules.data,K=E4.getScale(Q,J),U=Math.floor((Q+J.margin*2)*K),R=J.margin*K,H=[J.color.light,J.color.dark];for(let Y=0;Y<U;Y++)for(let E=0;E<U;E++){let O=(Y*U+E)*4,X=J.color.light;if(Y>=R&&E>=R&&Y<U-R&&E<U-R){let G=Math.floor((Y-R)/K),A=Math.floor((E-R)/K);X=H[F[G*Q+A]?1:0]}q[O++]=X.r,q[O++]=X.g,q[O++]=X.b,q[O]=X.a}}});var o7=T((A4)=>{var G4=M("fs"),V4=i7().PNG,e0=Z0();A4.render=function(q,Z){let J=e0.getOptions(Z),Q=J.rendererOpts,F=e0.getImageWidth(q.modules.size,J);Q.width=F,Q.height=F;let K=new V4(Q);return e0.qrToImageData(K.data,q,J),K};A4.renderToDataURL=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;A4.renderToBuffer(q,Z,function(Q,F){if(Q)J(Q);let K="data:image/png;base64,";K+=F.toString("base64"),J(null,K)})};A4.renderToBuffer=function(q,Z,J){if(typeof J>"u")J=Z,Z=void 0;let Q=A4.render(q,Z),F=[];Q.on("error",J),Q.on("data",function(K){F.push(K)}),Q.on("end",function(){J(null,Buffer.concat(F))}),Q.pack()};A4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=!1,K=(...R)=>{if(F)return;F=!0,Q.apply(null,R)},U=G4.createWriteStream(q);U.on("error",K),U.on("close",K),A4.renderToFileStream(U,Z,J)};A4.renderToFileStream=function(q,Z,J){A4.render(Z,J).pack().pipe(q)}});var e7=T((z4)=>{var _4=Z0(),B4={WW:" ",WB:"▄",BB:"█",BW:"▀"},I4={BB:" ",BW:"▄",WW:"█",WB:"▀"};function L4($,q,Z){if($&&q)return Z.BB;if($&&!q)return Z.BW;if(!$&&q)return Z.WB;return Z.WW}z4.render=function($,q,Z){let J=_4.getOptions(q),Q=B4;if(J.color.dark.hex==="#ffffff"||J.color.light.hex==="#000000")Q=I4;let F=$.modules.size,K=$.modules.data,U="",R=Array(F+J.margin*2+1).join(Q.WW);R=Array(J.margin/2+1).join(R+`
8
- `);let H=Array(J.margin+1).join(Q.WW);U+=R;for(let Y=0;Y<F;Y+=2){U+=H;for(let E=0;E<F;E++){let O=K[Y*F+E],X=K[(Y+1)*F+E];U+=L4(O,X,Q)}U+=H+`
9
- `}if(U+=R.slice(0,-1),typeof Z==="function")Z(null,U);return U};z4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),K=z4.render(Z,J);F.writeFile(q,K,Q)}});var a7=T((S4)=>{S4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F="\x1B[40m \x1B[0m",K="\x1B[47m \x1B[0m",U="",R=Array(J+3).join("\x1B[47m \x1B[0m"),H=Array(2).join("\x1B[47m \x1B[0m");U+=R+`
10
- `;for(let Y=0;Y<J;++Y){U+="\x1B[47m \x1B[0m";for(let E=0;E<J;E++)U+=Q[Y*J+E]?"\x1B[40m \x1B[0m":"\x1B[47m \x1B[0m";U+=H+`
11
- `}if(U+=R+`
12
- `,typeof Z==="function")Z(null,U);return U}});var Z2=T((g4)=>{var f4="\x1B[47m\x1B[30m",C4="\x1B[40m\x1B[37m",y4=function($,q,Z){return{"00":"\x1B[0m "+$,"01":"\x1B[0m"+q+"▄"+$,"02":"\x1B[0m"+Z+"▄"+$,10:"\x1B[0m"+q+"▀"+$,11:" ",12:"▄",20:"\x1B[0m"+Z+"▀"+$,21:"▀",22:"█"}},q2=function($,q,Z,J){let Q=q+1;if(Z>=Q||J>=Q||J<-1||Z<-1)return"0";if(Z>=q||J>=q||J<0||Z<0)return"1";let F=J*q+Z;return $[F]?"2":"1"},$2=function($,q,Z,J){return q2($,q,Z,J)+q2($,q,Z,J+1)};g4.render=function($,q,Z){let J=$.modules.size,Q=$.modules.data,F=!!(q&&q.inverse),K=q&&q.inverse?C4:f4,H=y4(K,F?"\x1B[30m":"\x1B[37m",F?"\x1B[37m":"\x1B[30m"),Y=`\x1B[0m
13
- `+K,E=K;for(let O=-1;O<J+1;O+=2){for(let X=-1;X<J;X++)E+=H[$2(Q,J,X,O)];E+=H[$2(Q,J,J,O)]+Y}if(E+="\x1B[0m",typeof Z==="function")Z(null,E);return E}});var J2=T((P4)=>{var D4=a7(),h4=Z2();P4.render=function($,q,Z){if(q&&q.small)return h4.render($,q,Z);return D4.render($,q,Z)}});var $1=T((m4)=>{var c4=Z0();function Q2($,q){let Z=$.a/255,J=q+'="'+$.hex+'"';return Z<1?J+" "+q+'-opacity="'+Z.toFixed(2).slice(1)+'"':J}function q1($,q,Z){let J=$+q;if(typeof Z<"u")J+=" "+Z;return J}function b4($,q,Z){let J="",Q=0,F=!1,K=0;for(let U=0;U<$.length;U++){let R=Math.floor(U%q),H=Math.floor(U/q);if(!R&&!F)F=!0;if($[U]){if(K++,!(U>0&&R>0&&$[U-1]))J+=F?q1("M",R+Z,0.5+H+Z):q1("m",Q,0),Q=0,F=!1;if(!(R+1<q&&$[U+1]))J+=q1("h",K),K=0}else Q++}return J}m4.render=function(q,Z,J){let Q=c4.getOptions(Z),F=q.modules.size,K=q.modules.data,U=F+Q.margin*2,R=!Q.color.light.a?"":"<path "+Q2(Q.color.light,"fill")+' d="M0 0h'+U+"v"+U+'H0z"/>',H="<path "+Q2(Q.color.dark,"stroke")+' d="'+b4(K,F,Q.margin)+'"/>',Y='viewBox="0 0 '+U+" "+U+'"',O='<svg xmlns="http://www.w3.org/2000/svg" '+(!Q.width?"":'width="'+Q.width+'" height="'+Q.width+'" ')+Y+' shape-rendering="crispEdges">'+R+H+`</svg>
14
- `;if(typeof J==="function")J(null,O);return O}});var K2=T((n4)=>{var l4=$1();n4.render=l4.render;n4.renderToFile=function(q,Z,J,Q){if(typeof Q>"u")Q=J,J=void 0;let F=M("fs"),U='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+n4.render(Z,J);F.writeFile(q,U,Q)}});var R2=T((i4)=>{var Z1=Z0();function d4($,q,Z){if($.clearRect(0,0,q.width,q.height),!q.style)q.style={};q.height=Z,q.width=Z,q.style.height=Z+"px",q.style.width=Z+"px"}function r4(){try{return document.createElement("canvas")}catch($){throw Error("You need to specify a canvas element")}}i4.render=function(q,Z,J){let Q=J,F=Z;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Z)F=r4();Q=Z1.getOptions(Q);let K=Z1.getImageWidth(q.modules.size,Q),U=F.getContext("2d"),R=U.createImageData(K,K);return Z1.qrToImageData(R.data,q,Q),d4(U,F,K),U.putImageData(R,0,0),F};i4.renderToDataURL=function(q,Z,J){let Q=J;if(typeof Q>"u"&&(!Z||!Z.getContext))Q=Z,Z=void 0;if(!Q)Q={};let F=i4.render(q,Z,Q),K=Q.type||"image/png",U=Q.rendererOpts||{};return F.toDataURL(K,U.quality)}});var Y2=T((e4)=>{var o4=T0(),J1=P0(),H2=R2(),t4=$1();function Q1($,q,Z,J,Q){let F=[].slice.call(arguments,1),K=F.length,U=typeof F[K-1]==="function";if(!U&&!o4())throw Error("Callback required as last argument");if(U){if(K<2)throw Error("Too few arguments provided");if(K===2)Q=Z,Z=q,q=J=void 0;else if(K===3)if(q.getContext&&typeof Q>"u")Q=J,J=void 0;else Q=J,J=Z,Z=q,q=void 0}else{if(K<1)throw Error("Too few arguments provided");if(K===1)Z=q,q=J=void 0;else if(K===2&&!q.getContext)J=Z,Z=q,q=void 0;return new Promise(function(R,H){try{let Y=J1.create(Z,J);R($(Y,q,J))}catch(Y){H(Y)}})}try{let R=J1.create(Z,J);Q(null,$(R,q,J))}catch(R){Q(R)}}e4.create=J1.create;e4.toCanvas=Q1.bind(null,H2.render);e4.toDataURL=Q1.bind(null,H2.renderToDataURL);e4.toString=Q1.bind(null,function($,q,Z){return t4.render($,Z)})});function R5($,q,Z){if(typeof $>"u")throw Error("String required as first argument");if(typeof Z>"u")Z=q,q={};if(typeof Z!=="function")if(!Q5())throw Error("Callback required as last argument");else q=Z||{},Z=null;return{opts:q,cb:Z}}function H5($){switch($){case"svg":return U5;case"terminal":return K5;case"utf8":default:return F5}}function Y5($,q,Z){if(!Z.cb)return new Promise(function(J,Q){try{let F=F1.create(q,Z.opts);return $(F,Z.opts,function(K,U){return K?Q(K):J(U)})}catch(F){Q(F)}});try{let J=F1.create(q,Z.opts);return $(J,Z.opts,Z.cb)}catch(J){Z.cb(J)}}var Q5,F1,A$,F5,K5,U5,E5,O5,T5=function(q,Z,J){let Q=R5(q,Z,J),F=Q.opts?Q.opts.type:void 0,K=H5(F);return Y5(K.render,q,Q)};var X5=J5(()=>{Q5=T0(),F1=P0(),A$=o7(),F5=e7(),K5=J2(),U5=K2();E5=F1.create,O5=Y2().toCanvas});
15
- export{T5 as Ee,X5 as Fe};
@@ -1,2 +0,0 @@
1
- import{hG as U,iG as A,mG as V,nG as E}from"./cli-1.1.13-x79qava2.mjs";import{GW as G,yW as W}from"./cli-1.1.13-fr4zp0cx.mjs";import{I0 as F,K0 as H,n1 as O}from"./cli-1.1.13-aac9pss7.mjs";import{L3 as q,M3 as K,N3 as L}from"./cli-1.1.13-b9sg0jsz.mjs";import{O3 as I}from"./cli-1.1.13-wmpc2gzg.mjs";import{Y7 as Q,w8 as p}from"./cli-1.1.13-gznvgt6g.mjs";import{Rea as $,tea as M,wea as N}from"./cli-1.1.13-2mrqqgcm.mjs";import{Asa as Z,Esa as _}from"./cli-1.1.13-jdcqc6bd.mjs";function b({onDone:J}){let z=w.useRef(J);z.current=J;let X=w.useCallback(()=>{z.current("dismiss")},[]);w.useEffect(()=>{M((y)=>{if(y.remoteDialogSeen)return y;return{...y,remoteDialogSeen:!0}})},[]);let Y=w.useCallback((y)=>{z.current(y)},[]);return q(V,{title:"Remote Control",children:K(F,{flexDirection:"column",paddingX:2,paddingY:1,children:[K(F,{marginBottom:1,flexDirection:"column",children:[q(H,{children:"Remote Control lets you access this CLI session from the web (claude.ai/code) or the Claude app, so you can pick up where you left off on any device."}),q(H,{children:" "}),q(H,{children:"You can disconnect remote access anytime by running /remote-control again."})]}),q(F,{children:q(U,{options:[{label:"Enable Remote Control for this session",description:"Opens a secure connection to claude.ai.",value:"enable"},{label:"Never mind",description:"You can always enable it later with /remote-control.",value:"dismiss"}],onChange:Y,onCancel:X})})]})})}function d(){if(N().remoteDialogSeen)return!1;if(!W())return!1;if(!Q()?.accessToken)return!1;return!0}var w;var P=_(()=>{G();O();p();$();A();E();L();w=Z(I(),1)});
2
- export{b as bc,d as cc,P as dc};