@claudiolabs/claudio 0.1.15 → 0.2.0

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 (704) hide show
  1. package/dist/chunks/AgentTool-0.2.0-g1wqt0s3.mjs +1 -0
  2. package/dist/chunks/App-0.2.0-ntfv12g0.mjs +1 -0
  3. package/dist/chunks/ApproveApiKey-0.2.0-2ymsvey5.mjs +1 -0
  4. package/dist/chunks/AssistantSessionChooser-0.2.0-8jec5v9r.mjs +1 -0
  5. package/dist/chunks/AutoModeOptInDialog-0.2.0-xvmknjn1.mjs +1 -0
  6. package/dist/chunks/BypassPermissionsModeDialog-0.2.0-1cpe3m5c.mjs +1 -0
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.2.0-851aysqd.mjs +1 -0
  8. package/dist/chunks/ConsoleOAuthFlow-0.2.0-v4515qqc.mjs +1 -0
  9. package/dist/chunks/{DiffDialog-0.1.15-86m0j64m.mjs → DiffDialog-0.2.0-kyhr5jh0.mjs} +1 -1
  10. package/dist/chunks/Doctor-0.2.0-ck3enc4g.mjs +1 -0
  11. package/dist/chunks/Grove-0.2.0-79c6g758.mjs +1 -0
  12. package/dist/chunks/ITermBackend-0.2.0-ez3ahe49.mjs +1 -0
  13. package/dist/chunks/InProcessTransport-0.2.0-9d5e65zk.mjs +1 -0
  14. package/dist/chunks/InvalidConfigDialog-0.2.0-mfrg36s6.mjs +1 -0
  15. package/dist/chunks/InvalidSettingsDialog-0.2.0-n08wkb0d.mjs +1 -0
  16. package/dist/chunks/MigrationDialog-0.2.0-9anh130m.mjs +1 -0
  17. package/dist/chunks/Onboarding-0.2.0-2468pvay.mjs +1 -0
  18. package/dist/chunks/ProviderManager-0.2.0-cjpn5dkk.mjs +1 -0
  19. package/dist/chunks/REPL-0.2.0-q3fd5jfy.mjs +1 -0
  20. package/dist/chunks/ResumeConversation-0.2.0-3ff000x5.mjs +1 -0
  21. package/dist/chunks/SnapshotUpdateDialog-0.2.0-b51pr6s3.mjs +1 -0
  22. package/dist/chunks/TeleportProgress-0.2.0-c3znpb7p.mjs +1 -0
  23. package/dist/chunks/TeleportRepoMismatchDialog-0.2.0-5wckmrvx.mjs +1 -0
  24. package/dist/chunks/TeleportResumeWrapper-0.2.0-wdc9sxcv.mjs +1 -0
  25. package/dist/chunks/TmuxBackend-0.2.0-mkbxpe3a.mjs +9 -0
  26. package/dist/chunks/ToolSearchTool-0.2.0-k7dvhq3e.mjs +1 -0
  27. package/dist/chunks/TrustDialog-0.2.0-xywdgnw5.mjs +1 -0
  28. package/dist/chunks/activeProvider-0.2.0-6yja1haw.mjs +1 -0
  29. package/dist/chunks/add-dir-0.2.0-qg5z82ke.mjs +1 -0
  30. package/dist/chunks/agents-0.2.0-2j995rg8.mjs +3 -0
  31. package/dist/chunks/agents-0.2.0-mzww8vhq.mjs +110 -0
  32. package/dist/chunks/api-0.2.0-rfc17a1j.mjs +1 -0
  33. package/dist/chunks/asciicast-0.2.0-25ban1yy.mjs +1 -0
  34. package/dist/chunks/assistant-0.2.0-wt3sz6f5.mjs +1 -0
  35. package/dist/chunks/auth-0.2.0-p1v8yq4y.mjs +1 -0
  36. package/dist/chunks/auth-0.2.0-sh12qb2q.mjs +1 -0
  37. package/dist/chunks/{autoMode-0.1.15-p9r45wxy.mjs → autoMode-0.2.0-vzqmqetr.mjs} +1 -1
  38. package/dist/chunks/backgroundHousekeeping-0.2.0-8d72paf3.mjs +1 -0
  39. package/dist/chunks/branch-0.2.0-vhf49enf.mjs +4 -0
  40. package/dist/chunks/bridgePointer-0.2.0-br2r89v9.mjs +1 -0
  41. package/dist/chunks/{btw-0.1.15-q693ppfr.mjs → btw-0.2.0-qtwstg74.mjs} +1 -1
  42. package/dist/chunks/{buddy-0.1.15-vcca6k2p.mjs → buddy-0.2.0-5a9wzpm1.mjs} +1 -1
  43. package/dist/chunks/cacache-0.2.0-nps3what.mjs +1 -0
  44. package/dist/chunks/{cache-probe-0.1.15-dfdjj53r.mjs → cache-probe-0.2.0-9d3hfar7.mjs} +1 -1
  45. package/dist/chunks/{cacheStats-0.1.15-v9v9y02q.mjs → cacheStats-0.2.0-rbr7a1xq.mjs} +1 -1
  46. package/dist/chunks/caches-0.2.0-jsvyz7k9.mjs +1 -0
  47. package/dist/chunks/claudeDesktop-0.2.0-ca7jbnc4.mjs +1 -0
  48. package/dist/chunks/claudemd-0.2.0-yt6b83v9.mjs +1 -0
  49. package/dist/chunks/clear-0.2.0-5e6fb269.mjs +1 -0
  50. package/dist/chunks/clearTerminal-0.2.0-c21vszkv.mjs +1 -0
  51. package/dist/chunks/cli-0.2.0-087sjqr6.mjs +2 -0
  52. package/dist/chunks/cli-0.2.0-0cjgm41a.mjs +2 -0
  53. package/dist/chunks/cli-0.2.0-0fwa4agt.mjs +2 -0
  54. package/dist/chunks/cli-0.2.0-0nmdgd3g.mjs +2 -0
  55. package/dist/chunks/cli-0.2.0-0vvkn4c2.mjs +2 -0
  56. package/dist/chunks/{cli-0.1.15-4fc5wnse.mjs → cli-0.2.0-13sc1gtx.mjs} +2 -2
  57. package/dist/chunks/cli-0.2.0-16yt5fwn.mjs +2 -0
  58. package/dist/chunks/cli-0.2.0-1br2y5jr.mjs +2 -0
  59. package/dist/chunks/cli-0.2.0-1mbgzd60.mjs +2 -0
  60. package/dist/chunks/cli-0.2.0-1vczhepy.mjs +2 -0
  61. package/dist/chunks/{cli-0.1.15-vwb8h4r1.mjs → cli-0.2.0-24bbrvmx.mjs} +1 -1
  62. package/dist/chunks/{cli-0.1.15-ncammv2n.mjs → cli-0.2.0-280a64s9.mjs} +2 -2
  63. package/dist/chunks/cli-0.2.0-2c2rdf9b.mjs +2 -0
  64. package/dist/chunks/cli-0.2.0-2crrewfg.mjs +5 -0
  65. package/dist/chunks/{cli-0.1.15-nkn6jfmb.mjs → cli-0.2.0-2edwgzmj.mjs} +1 -1
  66. package/dist/chunks/cli-0.2.0-2ppczk6v.mjs +2 -0
  67. package/dist/chunks/cli-0.2.0-35xeqadb.mjs +2 -0
  68. package/dist/chunks/cli-0.2.0-362nfwm4.mjs +5 -0
  69. package/dist/chunks/cli-0.2.0-3abr1pjj.mjs +2 -0
  70. package/dist/chunks/cli-0.2.0-3ttrh2tj.mjs +2 -0
  71. package/dist/chunks/cli-0.2.0-3y7hn5v2.mjs +2 -0
  72. package/dist/chunks/cli-0.2.0-41524wt1.mjs +2 -0
  73. package/dist/chunks/cli-0.2.0-46m4vcs3.mjs +2 -0
  74. package/dist/chunks/cli-0.2.0-48sfjp31.mjs +2 -0
  75. package/dist/chunks/cli-0.2.0-4hy8176k.mjs +2 -0
  76. package/dist/chunks/cli-0.2.0-4phx745d.mjs +2 -0
  77. package/dist/chunks/cli-0.2.0-4s3ve9jw.mjs +2 -0
  78. package/dist/chunks/cli-0.2.0-4t9h5c71.mjs +2 -0
  79. package/dist/chunks/cli-0.2.0-4vbz1xrx.mjs +2 -0
  80. package/dist/chunks/cli-0.2.0-4ve4asjv.mjs +2 -0
  81. package/dist/chunks/cli-0.2.0-514cx7c7.mjs +3 -0
  82. package/dist/chunks/cli-0.2.0-55mg69qb.mjs +2 -0
  83. package/dist/chunks/{cli-0.1.15-rq9n4js4.mjs → cli-0.2.0-5a2sf5g7.mjs} +1 -1
  84. package/dist/chunks/{cli-0.1.15-20tvdt2s.mjs → cli-0.2.0-5rm5wnp9.mjs} +2 -2
  85. package/dist/chunks/cli-0.2.0-69bn5730.mjs +2 -0
  86. package/dist/chunks/cli-0.2.0-6dbn4mn2.mjs +2 -0
  87. package/dist/chunks/cli-0.2.0-6en16pc3.mjs +2 -0
  88. package/dist/chunks/cli-0.2.0-6scx1ptz.mjs +4 -0
  89. package/dist/chunks/cli-0.2.0-6y2zbjr4.mjs +2 -0
  90. package/dist/chunks/cli-0.2.0-715a2z01.mjs +2 -0
  91. package/dist/chunks/cli-0.2.0-7xs4mtmq.mjs +2 -0
  92. package/dist/chunks/cli-0.2.0-7zpdrxbp.mjs +2 -0
  93. package/dist/chunks/cli-0.2.0-82kqh5xm.mjs +2 -0
  94. package/dist/chunks/cli-0.2.0-847azgnr.mjs +2 -0
  95. package/dist/chunks/cli-0.2.0-8hbq2p5t.mjs +2 -0
  96. package/dist/chunks/cli-0.2.0-8wnt08ky.mjs +12 -0
  97. package/dist/chunks/cli-0.2.0-98h2e6bt.mjs +2 -0
  98. package/dist/chunks/cli-0.2.0-9ez4c6sj.mjs +6 -0
  99. package/dist/chunks/{cli-0.1.15-m0v1d1kt.mjs → cli-0.2.0-9fckzgpc.mjs} +11 -11
  100. package/dist/chunks/cli-0.2.0-9jj1kcbc.mjs +2 -0
  101. package/dist/chunks/cli-0.2.0-9n89mtk3.mjs +2 -0
  102. package/dist/chunks/cli-0.2.0-9n8cdk9p.mjs +2 -0
  103. package/dist/chunks/cli-0.2.0-9t5wq1kd.mjs +2 -0
  104. package/dist/chunks/cli-0.2.0-am2e345h.mjs +2 -0
  105. package/dist/chunks/{cli-0.1.15-zap1wk9j.mjs → cli-0.2.0-amhtcvq4.mjs} +2 -2
  106. package/dist/chunks/cli-0.2.0-ar569zh3.mjs +2 -0
  107. package/dist/chunks/cli-0.2.0-arwyxqyx.mjs +2 -0
  108. package/dist/chunks/{cli-0.1.15-xe4dq144.mjs → cli-0.2.0-asc68d4g.mjs} +2 -2
  109. package/dist/chunks/cli-0.2.0-aw44dqmt.mjs +2 -0
  110. package/dist/chunks/cli-0.2.0-b1tfb8fj.mjs +2 -0
  111. package/dist/chunks/cli-0.2.0-b8a7b102.mjs +2 -0
  112. package/dist/chunks/{cli-0.1.15-mhbfhhf6.mjs → cli-0.2.0-b8hs09nv.mjs} +1 -1
  113. package/dist/chunks/{cli-0.1.15-rv6zpjh8.mjs → cli-0.2.0-bd59jfmr.mjs} +1 -1
  114. package/dist/chunks/cli-0.2.0-bs742fy1.mjs +2 -0
  115. package/dist/chunks/cli-0.2.0-c3qvrk8y.mjs +2 -0
  116. package/dist/chunks/{cli-0.1.15-68f0jtkh.mjs → cli-0.2.0-c7ea0dry.mjs} +2 -2
  117. package/dist/chunks/{cli-0.1.15-dp2e8j4f.mjs → cli-0.2.0-cabza42m.mjs} +1 -1
  118. package/dist/chunks/cli-0.2.0-ccwfmwcq.mjs +2 -0
  119. package/dist/chunks/cli-0.2.0-crn0mjsc.mjs +2 -0
  120. package/dist/chunks/{cli-0.1.15-26hkdean.mjs → cli-0.2.0-cs8e9514.mjs} +817 -949
  121. package/dist/chunks/cli-0.2.0-cst46q1r.mjs +2 -0
  122. package/dist/chunks/cli-0.2.0-d4ajkte5.mjs +2 -0
  123. package/dist/chunks/{cli-0.1.15-x69hfzmj.mjs → cli-0.2.0-da216rmz.mjs} +2 -2
  124. package/dist/chunks/cli-0.2.0-daxqaqx9.mjs +2 -0
  125. package/dist/chunks/cli-0.2.0-dsa5edrn.mjs +2 -0
  126. package/dist/chunks/cli-0.2.0-dtsxeqwx.mjs +17 -0
  127. package/dist/chunks/cli-0.2.0-e184jeam.mjs +2 -0
  128. package/dist/chunks/{cli-0.1.15-nk50qhet.mjs → cli-0.2.0-e9xwjcb3.mjs} +2 -2
  129. package/dist/chunks/{cli-0.1.15-e2e7hn7p.mjs → cli-0.2.0-eaeff4m6.mjs} +3 -3
  130. package/dist/chunks/cli-0.2.0-emdrfb4f.mjs +2 -0
  131. package/dist/chunks/cli-0.2.0-eyswa898.mjs +2 -0
  132. package/dist/chunks/{cli-0.1.15-d9nfa2yf.mjs → cli-0.2.0-ezgpj8e5.mjs} +1 -1
  133. package/dist/chunks/cli-0.2.0-f0ec18e0.mjs +2 -0
  134. package/dist/chunks/cli-0.2.0-f5rgr2bw.mjs +5 -0
  135. package/dist/chunks/cli-0.2.0-f63v4pa4.mjs +2 -0
  136. package/dist/chunks/{cli-0.1.15-gmdv5ny8.mjs → cli-0.2.0-f7tp61b0.mjs} +2 -2
  137. package/dist/chunks/cli-0.2.0-fanwxcjn.mjs +2 -0
  138. package/dist/chunks/cli-0.2.0-fgsp4dtv.mjs +2 -0
  139. package/dist/chunks/cli-0.2.0-fknhewrw.mjs +2 -0
  140. package/dist/chunks/cli-0.2.0-fr785r3y.mjs +2 -0
  141. package/dist/chunks/cli-0.2.0-frar6zbv.mjs +6 -0
  142. package/dist/chunks/{cli-0.1.15-gkzany0s.mjs → cli-0.2.0-frwsdnhe.mjs} +2 -2
  143. package/dist/chunks/cli-0.2.0-fy5rnmc5.mjs +2 -0
  144. package/dist/chunks/{cli-0.1.15-4892kydg.mjs → cli-0.2.0-g2h1t6ke.mjs} +4 -4
  145. package/dist/chunks/cli-0.2.0-g4kznbnn.mjs +2 -0
  146. package/dist/chunks/cli-0.2.0-g86682ye.mjs +2 -0
  147. package/dist/chunks/cli-0.2.0-gby7sqgg.mjs +2 -0
  148. package/dist/chunks/{cli-0.1.15-cr7qy3wd.mjs → cli-0.2.0-gjtwz4v6.mjs} +2 -2
  149. package/dist/chunks/cli-0.2.0-gmq4bxtp.mjs +2 -0
  150. package/dist/chunks/cli-0.2.0-gngqqtnd.mjs +4 -0
  151. package/dist/chunks/cli-0.2.0-gpc69j0z.mjs +2 -0
  152. package/dist/chunks/cli-0.2.0-gsw60zfe.mjs +2 -0
  153. package/dist/chunks/cli-0.2.0-gy72dze8.mjs +2 -0
  154. package/dist/chunks/cli-0.2.0-h2wnach8.mjs +16 -0
  155. package/dist/chunks/cli-0.2.0-h9tvrrx9.mjs +2 -0
  156. package/dist/chunks/cli-0.2.0-hg1xg9nq.mjs +2 -0
  157. package/dist/chunks/cli-0.2.0-hw4ce6k6.mjs +2 -0
  158. package/dist/chunks/cli-0.2.0-hzzgbj9r.mjs +2 -0
  159. package/dist/chunks/cli-0.2.0-j71ct7m7.mjs +2 -0
  160. package/dist/chunks/cli-0.2.0-jna42sz6.mjs +2 -0
  161. package/dist/chunks/cli-0.2.0-jsrrpd02.mjs +2 -0
  162. package/dist/chunks/cli-0.2.0-k0aa6s39.mjs +2 -0
  163. package/dist/chunks/cli-0.2.0-k2tq4knj.mjs +2 -0
  164. package/dist/chunks/{cli-0.1.15-jy7cjb23.mjs → cli-0.2.0-k438c5g3.mjs} +1 -1
  165. package/dist/chunks/cli-0.2.0-k7cxbyxg.mjs +2 -0
  166. package/dist/chunks/{cli-0.1.15-v07ep52w.mjs → cli-0.2.0-kg83sjcw.mjs} +2 -2
  167. package/dist/chunks/cli-0.2.0-kgs4hedc.mjs +2 -0
  168. package/dist/chunks/cli-0.2.0-krxmhdq4.mjs +2 -0
  169. package/dist/chunks/cli-0.2.0-m5s0ha7v.mjs +3 -0
  170. package/dist/chunks/cli-0.2.0-m81s8n1j.mjs +2 -0
  171. package/dist/chunks/cli-0.2.0-mg45dmsv.mjs +2 -0
  172. package/dist/chunks/cli-0.2.0-mhpecwq3.mjs +2 -0
  173. package/dist/chunks/cli-0.2.0-mne4f86b.mjs +7 -0
  174. package/dist/chunks/cli-0.2.0-mstcexpv.mjs +2 -0
  175. package/dist/chunks/{cli-0.1.15-2vwx57re.mjs → cli-0.2.0-ncjme2vj.mjs} +1 -1
  176. package/dist/chunks/cli-0.2.0-ndz9dbxz.mjs +2 -0
  177. package/dist/chunks/cli-0.2.0-p0dd7k39.mjs +4 -0
  178. package/dist/chunks/cli-0.2.0-p19kyd3z.mjs +4 -0
  179. package/dist/chunks/cli-0.2.0-p2jewnbn.mjs +2 -0
  180. package/dist/chunks/cli-0.2.0-p46nxmgy.mjs +2 -0
  181. package/dist/chunks/cli-0.2.0-pa834vt3.mjs +2 -0
  182. package/dist/chunks/cli-0.2.0-pdb8evy6.mjs +2 -0
  183. package/dist/chunks/cli-0.2.0-pfja1jsa.mjs +2 -0
  184. package/dist/chunks/cli-0.2.0-pt145sac.mjs +3 -0
  185. package/dist/chunks/cli-0.2.0-ptwysnj7.mjs +2 -0
  186. package/dist/chunks/cli-0.2.0-pw3er14v.mjs +2 -0
  187. package/dist/chunks/cli-0.2.0-pxy1f4ky.mjs +2 -0
  188. package/dist/chunks/cli-0.2.0-q1fz4qmd.mjs +2 -0
  189. package/dist/chunks/cli-0.2.0-q822fesk.mjs +2 -0
  190. package/dist/chunks/cli-0.2.0-qcr87znh.mjs +2 -0
  191. package/dist/chunks/{cli-0.1.15-5denzf1p.mjs → cli-0.2.0-qdcyy0k1.mjs} +3 -3
  192. package/dist/chunks/cli-0.2.0-qnd8v5pt.mjs +2 -0
  193. package/dist/chunks/cli-0.2.0-qw0kz7z3.mjs +2 -0
  194. package/dist/chunks/cli-0.2.0-r15zg9jv.mjs +2 -0
  195. package/dist/chunks/cli-0.2.0-r3f7ephj.mjs +2 -0
  196. package/dist/chunks/{cli-0.1.15-b7p48xfw.mjs → cli-0.2.0-rwdy3dtq.mjs} +1 -1
  197. package/dist/chunks/{cli-0.1.15-qns6xv34.mjs → cli-0.2.0-s02v5abf.mjs} +5 -5
  198. package/dist/chunks/{cli-0.1.15-6nwbd09n.mjs → cli-0.2.0-s130pb2c.mjs} +2 -2
  199. package/dist/chunks/cli-0.2.0-s919r7gy.mjs +2 -0
  200. package/dist/chunks/cli-0.2.0-sh26pc92.mjs +2 -0
  201. package/dist/chunks/cli-0.2.0-sj380wma.mjs +2 -0
  202. package/dist/chunks/cli-0.2.0-stn798t9.mjs +9 -0
  203. package/dist/chunks/cli-0.2.0-t0j5fnc5.mjs +2 -0
  204. package/dist/chunks/{cli-0.1.15-rbx47sc3.mjs → cli-0.2.0-teqjxyws.mjs} +1 -1
  205. package/dist/chunks/{cli-0.1.15-xaw2s45s.mjs → cli-0.2.0-v8kqgxs0.mjs} +1 -1
  206. package/dist/chunks/cli-0.2.0-vdhcg4g4.mjs +2 -0
  207. package/dist/chunks/cli-0.2.0-vejekjsb.mjs +2 -0
  208. package/dist/chunks/cli-0.2.0-vjcy5y97.mjs +4 -0
  209. package/dist/chunks/cli-0.2.0-vjnmd5ey.mjs +2 -0
  210. package/dist/chunks/cli-0.2.0-wc6ydzff.mjs +2 -0
  211. package/dist/chunks/cli-0.2.0-wmfpk06g.mjs +2 -0
  212. package/dist/chunks/{cli-0.1.15-rvtve9kq.mjs → cli-0.2.0-wmstwkhw.mjs} +1 -1
  213. package/dist/chunks/cli-0.2.0-wqzmxfnd.mjs +2 -0
  214. package/dist/chunks/cli-0.2.0-wwwmxcwz.mjs +2 -0
  215. package/dist/chunks/{cli-0.1.15-8sgewact.mjs → cli-0.2.0-x221h2yq.mjs} +1 -1
  216. package/dist/chunks/cli-0.2.0-xdmw2spe.mjs +4 -0
  217. package/dist/chunks/cli-0.2.0-xmf20rrm.mjs +2 -0
  218. package/dist/chunks/cli-0.2.0-xwrvt7rw.mjs +2 -0
  219. package/dist/chunks/cli-0.2.0-y1q43eac.mjs +2 -0
  220. package/dist/chunks/{cli-0.1.15-htms4w3h.mjs → cli-0.2.0-y6g66sm5.mjs} +1 -1
  221. package/dist/chunks/cli-0.2.0-y93dcrnm.mjs +2 -0
  222. package/dist/chunks/cli-0.2.0-y9bxbkxm.mjs +2 -0
  223. package/dist/chunks/{cli-0.1.15-23cavaaa.mjs → cli-0.2.0-ykvda8xj.mjs} +1 -1
  224. package/dist/chunks/cli-0.2.0-z1j2k2y8.mjs +2 -0
  225. package/dist/chunks/cli-0.2.0-zdr99w6n.mjs +2 -0
  226. package/dist/chunks/cli-0.2.0-zhq243rp.mjs +5 -0
  227. package/dist/chunks/cli-0.2.0-zxm7fqen.mjs +2 -0
  228. package/dist/chunks/client-0.2.0-qtv4epf8.mjs +1 -0
  229. package/dist/chunks/color-0.2.0-287d7bh5.mjs +1 -0
  230. package/dist/chunks/compact-0.2.0-qd4qye1t.mjs +3 -0
  231. package/dist/chunks/config-0.2.0-2fafd18t.mjs +1 -0
  232. package/dist/chunks/config-0.2.0-rm6w636d.mjs +1 -0
  233. package/dist/chunks/{context-0.1.15-ghkedaaw.mjs → context-0.2.0-k3gcs0rz.mjs} +1 -1
  234. package/dist/chunks/context-noninteractive-0.2.0-k88gx3fk.mjs +1 -0
  235. package/dist/chunks/conversation-0.2.0-7c5rr3m8.mjs +1 -0
  236. package/dist/chunks/{copy-0.1.15-53q3e2fk.mjs → copy-0.2.0-adh6xrdj.mjs} +1 -1
  237. package/dist/chunks/cost-0.2.0-mnj9rgcz.mjs +1 -0
  238. package/dist/chunks/createSession-0.2.0-9g9gw88m.mjs +1 -0
  239. package/dist/chunks/desktop-0.2.0-8f8qkdkf.mjs +1 -0
  240. package/dist/chunks/detectRepository-0.2.0-349d15w3.mjs +1 -0
  241. package/dist/chunks/detection-0.2.0-bwykm3rz.mjs +1 -0
  242. package/dist/chunks/diff-0.2.0-9vymm8d8.mjs +1 -0
  243. package/dist/chunks/doctor-0.2.0-rxs4z5h9.mjs +1 -0
  244. package/dist/chunks/earlyInput-0.2.0-693jvbhz.mjs +1 -0
  245. package/dist/chunks/{effort-0.1.15-5za6yh63.mjs → effort-0.2.0-v3ery43s.mjs} +1 -1
  246. package/dist/chunks/environmentSelection-0.2.0-51bq9j0p.mjs +1 -0
  247. package/dist/chunks/environments-0.2.0-f16b46v6.mjs +1 -0
  248. package/dist/chunks/exit-0.2.0-gxsz2644.mjs +1 -0
  249. package/dist/chunks/export-0.2.0-3tnxr36f.mjs +2 -0
  250. package/dist/chunks/extra-usage-0.2.0-7rhvw0qy.mjs +1 -0
  251. package/dist/chunks/extra-usage-noninteractive-0.2.0-6jn1b44v.mjs +1 -0
  252. package/dist/chunks/fast-0.2.0-m1ebwhxs.mjs +1 -0
  253. package/dist/chunks/feedback-0.2.0-n6jvewnr.mjs +14 -0
  254. package/dist/chunks/firstPartyEventLogger-0.2.0-20cb3z2a.mjs +1 -0
  255. package/dist/chunks/git-0.2.0-c4ee3tsv.mjs +1 -0
  256. package/dist/chunks/githubModelsCredentials-0.2.0-cdvezs97.mjs +1 -0
  257. package/dist/chunks/growthbook-0.2.0-att0j7gv.mjs +1 -0
  258. package/dist/chunks/heapdump-0.2.0-78f6h5zs.mjs +6 -0
  259. package/dist/chunks/help-0.2.0-dtcb464y.mjs +1 -0
  260. package/dist/chunks/hookChains-0.2.0-svw4xjh6.mjs +3 -0
  261. package/dist/chunks/{hooks-0.1.15-f81kq7m2.mjs → hooks-0.2.0-4hvw5w19.mjs} +1 -1
  262. package/dist/chunks/hooks-0.2.0-hw6zwnp8.mjs +1 -0
  263. package/dist/chunks/{ide-0.1.15-xepj09gj.mjs → ide-0.2.0-3a10v8p7.mjs} +1 -1
  264. package/dist/chunks/image-processor-napi-0.2.0-8t8g5777.mjs +1 -0
  265. package/dist/chunks/index-0.2.0-0f0aw7rx.mjs +1 -0
  266. package/dist/chunks/index-0.2.0-1pr9vtkj.mjs +9 -0
  267. package/dist/chunks/index-0.2.0-2dyw5tmn.mjs +1 -0
  268. package/dist/chunks/index-0.2.0-728crm0q.mjs +1 -0
  269. package/dist/chunks/index-0.2.0-7gpqav46.mjs +2 -0
  270. package/dist/chunks/{index-0.1.15-77j1wp6f.mjs → index-0.2.0-7wttyxdg.mjs} +1 -1
  271. package/dist/chunks/index-0.2.0-b33awb2n.mjs +1 -0
  272. package/dist/chunks/{index-0.1.15-f1y1067a.mjs → index-0.2.0-b71emahw.mjs} +1 -1
  273. package/dist/chunks/index-0.2.0-czy0090x.mjs +1 -0
  274. package/dist/chunks/index-0.2.0-dactt0mw.mjs +1 -0
  275. package/dist/chunks/index-0.2.0-f8nnmapf.mjs +1 -0
  276. package/dist/chunks/{index-0.1.15-15ftbc8a.mjs → index-0.2.0-h3z86gdx.mjs} +2 -2
  277. package/dist/chunks/index-0.2.0-jrzrpfvk.mjs +1 -0
  278. package/dist/chunks/index-0.2.0-mny50v93.mjs +1 -0
  279. package/dist/chunks/index-0.2.0-nhw2r534.mjs +1 -0
  280. package/dist/chunks/index-0.2.0-p27jjyjb.mjs +1 -0
  281. package/dist/chunks/index-0.2.0-pf79ppar.mjs +1 -0
  282. package/dist/chunks/index-0.2.0-tamm1gme.mjs +1 -0
  283. package/dist/chunks/index-0.2.0-tj7rwkwq.mjs +1 -0
  284. package/dist/chunks/{index-0.1.15-tf5b20vy.mjs → index-0.2.0-v2mzpt7h.mjs} +1 -1
  285. package/dist/chunks/index-0.2.0-w1m3v2y0.mjs +9 -0
  286. package/dist/chunks/index-0.2.0-z8m5wd19.mjs +1 -0
  287. package/dist/chunks/initReplBridge-0.2.0-5abnx6wk.mjs +1 -0
  288. package/dist/chunks/ink-0.2.0-v2d1zzt6.mjs +1 -0
  289. package/dist/chunks/{insights-0.1.15-2zt9898j.mjs → insights-0.2.0-5q6x53j1.mjs} +1 -1
  290. package/dist/chunks/install-0.2.0-0vhcv1w2.mjs +1 -0
  291. package/dist/chunks/{install-github-app-0.1.15-h746hza3.mjs → install-github-app-0.2.0-xcxxtxzh.mjs} +1 -1
  292. package/dist/chunks/install-slack-app-0.2.0-12qw49ga.mjs +1 -0
  293. package/dist/chunks/{instrumentation-0.1.15-bwm4tb1y.mjs → instrumentation-0.2.0-rfc7gt94.mjs} +1 -1
  294. package/dist/chunks/interactiveHelpers-0.2.0-69j5avm0.mjs +1 -0
  295. package/dist/chunks/keybindings-0.2.0-r9ensjdz.mjs +2 -0
  296. package/dist/chunks/knowledge-0.2.0-r222df23.mjs +2 -0
  297. package/dist/chunks/loadAgentsDir-0.2.0-wrpffsg4.mjs +1 -0
  298. package/dist/chunks/loadPluginHooks-0.2.0-4wkq3ar6.mjs +1 -0
  299. package/dist/chunks/lsp-0.2.0-vyrfqxg7.mjs +1 -0
  300. package/dist/chunks/main-0.2.0-r3wv26vg.mjs +1 -0
  301. package/dist/chunks/managedEnv-0.2.0-t6y3d3hp.mjs +1 -0
  302. package/dist/chunks/mcp-0.2.0-8rxg4gkx.mjs +1 -0
  303. package/dist/chunks/{mcp-0.1.15-tw9s435t.mjs → mcp-0.2.0-anen8fv7.mjs} +3 -3
  304. package/dist/chunks/mcp-0.2.0-brdssfg7.mjs +4 -0
  305. package/dist/chunks/mcpServer-0.2.0-816p5gfy.mjs +1 -0
  306. package/dist/chunks/mcpb-0.2.0-pte54tfe.mjs +1 -0
  307. package/dist/chunks/memory-0.2.0-vxnsyq72.mjs +3 -0
  308. package/dist/chunks/{mobile-0.1.15-sm8kbft4.mjs → mobile-0.2.0-npn2rcmr.mjs} +1 -1
  309. package/dist/chunks/model-0.2.0-ajjp4znr.mjs +1 -0
  310. package/dist/chunks/model-0.2.0-dsy2yzwq.mjs +2 -0
  311. package/dist/chunks/oauth-0.2.0-xfb7vgc2.mjs +1 -0
  312. package/dist/chunks/{openaiShim-0.1.15-0yryhq9r.mjs → openaiShim-0.2.0-5rabbqwx.mjs} +1 -1
  313. package/dist/chunks/output-style-0.2.0-0tea3sgj.mjs +1 -0
  314. package/dist/chunks/package-WSP46L7M-0.2.0-54rp856z.mjs +1 -0
  315. package/dist/chunks/parser-0.2.0-vxksd2kb.mjs +1 -0
  316. package/dist/chunks/passes-0.2.0-kb6z71d5.mjs +1 -0
  317. package/dist/chunks/permissions-0.2.0-pvq85gdj.mjs +3 -0
  318. package/dist/chunks/plan-0.2.0-nc7dtaj1.mjs +1 -0
  319. package/dist/chunks/plist-0.2.0-veq45ed0.mjs +1 -0
  320. package/dist/chunks/plugin-0.2.0-q0ehrvv3.mjs +29 -0
  321. package/dist/chunks/pluginStartupCheck-0.2.0-cnkhwj3j.mjs +1 -0
  322. package/dist/chunks/{plugins-0.1.15-3rpwr86v.mjs → plugins-0.2.0-s45nc253.mjs} +2 -2
  323. package/dist/chunks/{print-0.1.15-64y2p7wj.mjs → print-0.2.0-e9ckvtwf.mjs} +4 -4
  324. package/dist/chunks/privacy-settings-0.2.0-e9qgq22a.mjs +1 -0
  325. package/dist/chunks/process-0.2.0-5q69t7tp.mjs +1 -0
  326. package/dist/chunks/processBashCommand-0.2.0-n1qzbvn8.mjs +1 -0
  327. package/dist/chunks/{processSlashCommand-0.1.15-mee2mbyy.mjs → processSlashCommand-0.2.0-phzfkm35.mjs} +1 -1
  328. package/dist/chunks/prompt-0.2.0-8tvc5hkt.mjs +1 -0
  329. package/dist/chunks/prompt-0.2.0-znq97v28.mjs +1 -0
  330. package/dist/chunks/prompts-0.2.0-43x4r8s1.mjs +1 -0
  331. package/dist/chunks/provider-0.2.0-hdw0f0gf.mjs +2 -0
  332. package/dist/chunks/providerProfiles-0.2.0-fxf0kwk5.mjs +1 -0
  333. package/dist/chunks/rate-limit-options-0.2.0-6gs96kga.mjs +1 -0
  334. package/dist/chunks/registry-0.2.0-qn6vn1a0.mjs +1 -0
  335. package/dist/chunks/release-notes-0.2.0-n7d001cj.mjs +5 -0
  336. package/dist/chunks/reload-plugins-0.2.0-z66hj6gv.mjs +2 -0
  337. package/dist/chunks/{remote-env-0.1.15-fd5z1adp.mjs → remote-env-0.2.0-tb94ty2j.mjs} +1 -1
  338. package/dist/chunks/remoteBridgeCore-0.2.0-tggkxmb3.mjs +1 -0
  339. package/dist/chunks/remoteSession-0.2.0-e5ph1zn5.mjs +1 -0
  340. package/dist/chunks/rename-0.2.0-1a2tr4rh.mjs +1 -0
  341. package/dist/chunks/replBridgeHandle-0.2.0-58503tj0.mjs +1 -0
  342. package/dist/chunks/resume-0.2.0-nbs1aptk.mjs +2 -0
  343. package/dist/chunks/rewind-0.2.0-9vcza7j6.mjs +1 -0
  344. package/dist/chunks/sandbox-adapter-0.2.0-rvjkxzab.mjs +1 -0
  345. package/dist/chunks/{sandbox-toggle-0.1.15-fn86ac4p.mjs → sandbox-toggle-0.2.0-0hc6gk75.mjs} +1 -1
  346. package/dist/chunks/session-0.2.0-2mjsp1sz.mjs +2 -0
  347. package/dist/chunks/sessionFileAccessHooks-0.2.0-mmvc7bkc.mjs +1 -0
  348. package/dist/chunks/sessionStorage-0.2.0-69fq3tpm.mjs +1 -0
  349. package/dist/chunks/setup-0.2.0-06edanfh.mjs +5 -0
  350. package/dist/chunks/sinks-0.2.0-wja94cem.mjs +1 -0
  351. package/dist/chunks/skills-0.2.0-3z33tjhh.mjs +1 -0
  352. package/dist/chunks/startupProfiler-0.2.0-rsbrxr2e.mjs +1 -0
  353. package/dist/chunks/state-0.2.0-cqgytazz.mjs +1 -0
  354. package/dist/chunks/{stats-0.1.15-3c4f5zp4.mjs → stats-0.2.0-916qgsak.mjs} +1 -1
  355. package/dist/chunks/status-0.2.0-qpr1a3ep.mjs +1 -0
  356. package/dist/chunks/stickers-0.2.0-s40586dt.mjs +1 -0
  357. package/dist/chunks/subprocessEnv-0.2.0-8kaz087n.mjs +1 -0
  358. package/dist/chunks/tasks-0.2.0-kyab838f.mjs +1 -0
  359. package/dist/chunks/teamHelpers-0.2.0-r08wn3az.mjs +1 -0
  360. package/dist/chunks/teammateModeSnapshot-0.2.0-ew1rr6e3.mjs +1 -0
  361. package/dist/chunks/teleport-0.2.0-m7dva816.mjs +1 -0
  362. package/dist/chunks/terminalSetup-0.2.0-28qz91bk.mjs +1 -0
  363. package/dist/chunks/theme-0.2.0-t6hf3219.mjs +1 -0
  364. package/dist/chunks/thinkback-0.2.0-s3ggf62w.mjs +1 -0
  365. package/dist/chunks/thinkback-play-0.2.0-bh4h025z.mjs +1 -0
  366. package/dist/chunks/toolPool-0.2.0-cb20byyb.mjs +1 -0
  367. package/dist/chunks/toolSearch-0.2.0-2b8zp823.mjs +1 -0
  368. package/dist/chunks/trustedDevice-0.2.0-bm94scqy.mjs +1 -0
  369. package/dist/chunks/{turndown.cjs-0.1.15-pmxpe7z8.mjs → turndown.cjs-0.2.0-deg6aa1p.mjs} +1 -1
  370. package/dist/chunks/{ultrareviewCommand-0.1.15-3gjgaeyn.mjs → ultrareviewCommand-0.2.0-zw0s8h8q.mjs} +1 -1
  371. package/dist/chunks/{update-0.1.15-jtd1h3e7.mjs → update-0.2.0-7s5194yn.mjs} +11 -11
  372. package/dist/chunks/upgrade-0.2.0-qwr6an4v.mjs +1 -0
  373. package/dist/chunks/{upstreamproxy-0.1.15-wtbs40ct.mjs → upstreamproxy-0.2.0-xm05d4w5.mjs} +1 -1
  374. package/dist/chunks/usage-0.2.0-mp3vm726.mjs +1 -0
  375. package/dist/chunks/util-0.2.0-dbnnzv2b.mjs +1 -0
  376. package/dist/chunks/utils-0.2.0-memk8639.mjs +1 -0
  377. package/dist/chunks/vim-0.2.0-twpbq41v.mjs +1 -0
  378. package/dist/chunks/watcher-0.2.0-cfz0cgxt.mjs +1 -0
  379. package/dist/chunks/{wiki-0.1.15-pp951r9h.mjs → wiki-0.2.0-v5sdh8vv.mjs} +1 -1
  380. package/dist/chunks/worktree-0.2.0-cgeqcbwb.mjs +1 -0
  381. package/dist/chunks/worktreeModeEnabled-0.2.0-hb1hv05w.mjs +1 -0
  382. package/dist/chunks/wrapper-0.2.0-661tvhay.mjs +7 -0
  383. package/dist/claudio-vscode.vsix +0 -0
  384. package/dist/cli.mjs +3 -3
  385. package/package.json +1 -1
  386. package/dist/chunks/AgentTool-0.1.15-aene6e12.mjs +0 -1
  387. package/dist/chunks/App-0.1.15-skbrajfh.mjs +0 -1
  388. package/dist/chunks/ApproveApiKey-0.1.15-zkd425a9.mjs +0 -1
  389. package/dist/chunks/AssistantSessionChooser-0.1.15-3wyrkte5.mjs +0 -1
  390. package/dist/chunks/AutoModeOptInDialog-0.1.15-xemnqw1q.mjs +0 -1
  391. package/dist/chunks/BypassPermissionsModeDialog-0.1.15-51n3nd6r.mjs +0 -1
  392. package/dist/chunks/ClaudeMdExternalIncludesDialog-0.1.15-g407nd3p.mjs +0 -1
  393. package/dist/chunks/ConsoleOAuthFlow-0.1.15-80g71gdg.mjs +0 -1
  394. package/dist/chunks/Doctor-0.1.15-9x07ccn6.mjs +0 -1
  395. package/dist/chunks/Grove-0.1.15-jdcp80ev.mjs +0 -1
  396. package/dist/chunks/ITermBackend-0.1.15-ejm7gc8d.mjs +0 -1
  397. package/dist/chunks/InProcessTransport-0.1.15-p32k8qva.mjs +0 -1
  398. package/dist/chunks/InvalidConfigDialog-0.1.15-rctrbcsm.mjs +0 -1
  399. package/dist/chunks/InvalidSettingsDialog-0.1.15-bjsk3qxm.mjs +0 -1
  400. package/dist/chunks/MigrationDialog-0.1.15-6x3bjqw1.mjs +0 -1
  401. package/dist/chunks/Onboarding-0.1.15-pqx4v1wq.mjs +0 -1
  402. package/dist/chunks/ProviderManager-0.1.15-t8sezf1q.mjs +0 -1
  403. package/dist/chunks/REPL-0.1.15-6e0xrr9y.mjs +0 -1
  404. package/dist/chunks/ResumeConversation-0.1.15-fm1gvj49.mjs +0 -1
  405. package/dist/chunks/SnapshotUpdateDialog-0.1.15-t3evkrvq.mjs +0 -1
  406. package/dist/chunks/TeleportProgress-0.1.15-gad6kpfq.mjs +0 -1
  407. package/dist/chunks/TeleportRepoMismatchDialog-0.1.15-00rkfxqs.mjs +0 -1
  408. package/dist/chunks/TeleportResumeWrapper-0.1.15-bwv0syaw.mjs +0 -1
  409. package/dist/chunks/TmuxBackend-0.1.15-0d8n5p59.mjs +0 -9
  410. package/dist/chunks/ToolSearchTool-0.1.15-1cemq4m9.mjs +0 -1
  411. package/dist/chunks/TrustDialog-0.1.15-srz2xcqx.mjs +0 -1
  412. package/dist/chunks/activeProvider-0.1.15-1fp1bec5.mjs +0 -1
  413. package/dist/chunks/add-dir-0.1.15-qj517xx8.mjs +0 -1
  414. package/dist/chunks/agents-0.1.15-vkekdkan.mjs +0 -3
  415. package/dist/chunks/agents-0.1.15-x18jhwwk.mjs +0 -111
  416. package/dist/chunks/api-0.1.15-jq17qdd8.mjs +0 -1
  417. package/dist/chunks/asciicast-0.1.15-4t4tanfk.mjs +0 -1
  418. package/dist/chunks/assistant-0.1.15-9fhfbk14.mjs +0 -1
  419. package/dist/chunks/auth-0.1.15-ddyv63ax.mjs +0 -1
  420. package/dist/chunks/auth-0.1.15-x6bxj6d1.mjs +0 -1
  421. package/dist/chunks/backgroundHousekeeping-0.1.15-sbv1p8kj.mjs +0 -1
  422. package/dist/chunks/branch-0.1.15-cqq1x0cj.mjs +0 -4
  423. package/dist/chunks/bridgePointer-0.1.15-p6kq1zz7.mjs +0 -1
  424. package/dist/chunks/cacache-0.1.15-tj6nes3h.mjs +0 -1
  425. package/dist/chunks/caches-0.1.15-tynjvd5a.mjs +0 -1
  426. package/dist/chunks/claudeDesktop-0.1.15-rxtx8hbf.mjs +0 -1
  427. package/dist/chunks/claudemd-0.1.15-s942v7vd.mjs +0 -1
  428. package/dist/chunks/clear-0.1.15-2tqn4fj6.mjs +0 -1
  429. package/dist/chunks/clearTerminal-0.1.15-qycj6c0p.mjs +0 -1
  430. package/dist/chunks/cli-0.1.15-0a38j3t8.mjs +0 -2
  431. package/dist/chunks/cli-0.1.15-0g0abv7y.mjs +0 -2
  432. package/dist/chunks/cli-0.1.15-11sdbfxy.mjs +0 -4
  433. package/dist/chunks/cli-0.1.15-12azgmva.mjs +0 -2
  434. package/dist/chunks/cli-0.1.15-1hxkpjgs.mjs +0 -2
  435. package/dist/chunks/cli-0.1.15-1kmf57b0.mjs +0 -2
  436. package/dist/chunks/cli-0.1.15-1nkkhw5c.mjs +0 -2
  437. package/dist/chunks/cli-0.1.15-216kns0c.mjs +0 -2
  438. package/dist/chunks/cli-0.1.15-229xqnrp.mjs +0 -2
  439. package/dist/chunks/cli-0.1.15-2ccapgj1.mjs +0 -2
  440. package/dist/chunks/cli-0.1.15-2h647znt.mjs +0 -2
  441. package/dist/chunks/cli-0.1.15-2te4sfkh.mjs +0 -2
  442. package/dist/chunks/cli-0.1.15-30tz5ck8.mjs +0 -2
  443. package/dist/chunks/cli-0.1.15-36pxgzf6.mjs +0 -2
  444. package/dist/chunks/cli-0.1.15-3jz926ax.mjs +0 -2
  445. package/dist/chunks/cli-0.1.15-3qwnw3ca.mjs +0 -2
  446. package/dist/chunks/cli-0.1.15-3rcdvk7c.mjs +0 -2
  447. package/dist/chunks/cli-0.1.15-3z0tzzs8.mjs +0 -2
  448. package/dist/chunks/cli-0.1.15-4hnhxg2w.mjs +0 -2
  449. package/dist/chunks/cli-0.1.15-4hzd3m6p.mjs +0 -2
  450. package/dist/chunks/cli-0.1.15-4y7051f2.mjs +0 -2
  451. package/dist/chunks/cli-0.1.15-5g0zxgxn.mjs +0 -2
  452. package/dist/chunks/cli-0.1.15-5qx5p8cd.mjs +0 -2
  453. package/dist/chunks/cli-0.1.15-5tz7z79g.mjs +0 -2
  454. package/dist/chunks/cli-0.1.15-69kq5chw.mjs +0 -2
  455. package/dist/chunks/cli-0.1.15-6mad0r56.mjs +0 -2
  456. package/dist/chunks/cli-0.1.15-6r12ayea.mjs +0 -2
  457. package/dist/chunks/cli-0.1.15-6r630k68.mjs +0 -9
  458. package/dist/chunks/cli-0.1.15-77346q11.mjs +0 -7
  459. package/dist/chunks/cli-0.1.15-7myqm617.mjs +0 -2
  460. package/dist/chunks/cli-0.1.15-7rr53z40.mjs +0 -2
  461. package/dist/chunks/cli-0.1.15-82r3zgmq.mjs +0 -3
  462. package/dist/chunks/cli-0.1.15-8k69z9kk.mjs +0 -2
  463. package/dist/chunks/cli-0.1.15-8v8bskr0.mjs +0 -2
  464. package/dist/chunks/cli-0.1.15-90ye3yqx.mjs +0 -2
  465. package/dist/chunks/cli-0.1.15-99wmm9j7.mjs +0 -2
  466. package/dist/chunks/cli-0.1.15-9m2znwvb.mjs +0 -4
  467. package/dist/chunks/cli-0.1.15-9pe3dbgs.mjs +0 -2
  468. package/dist/chunks/cli-0.1.15-9w140hjt.mjs +0 -2
  469. package/dist/chunks/cli-0.1.15-a10ekh15.mjs +0 -2
  470. package/dist/chunks/cli-0.1.15-a8kgfrkd.mjs +0 -2
  471. package/dist/chunks/cli-0.1.15-acdm8b28.mjs +0 -17
  472. package/dist/chunks/cli-0.1.15-ajg1d1bh.mjs +0 -2
  473. package/dist/chunks/cli-0.1.15-asts8hm3.mjs +0 -2
  474. package/dist/chunks/cli-0.1.15-b1t6c81s.mjs +0 -2
  475. package/dist/chunks/cli-0.1.15-b21k5hzy.mjs +0 -2
  476. package/dist/chunks/cli-0.1.15-b6gdqjbg.mjs +0 -2
  477. package/dist/chunks/cli-0.1.15-b7f6hacc.mjs +0 -2
  478. package/dist/chunks/cli-0.1.15-be4mz6ka.mjs +0 -2
  479. package/dist/chunks/cli-0.1.15-behp1dag.mjs +0 -2
  480. package/dist/chunks/cli-0.1.15-bfd337b0.mjs +0 -2
  481. package/dist/chunks/cli-0.1.15-bpcmpy8b.mjs +0 -2
  482. package/dist/chunks/cli-0.1.15-bz57rf9t.mjs +0 -2
  483. package/dist/chunks/cli-0.1.15-cbseyggr.mjs +0 -2
  484. package/dist/chunks/cli-0.1.15-cenwnwnx.mjs +0 -2
  485. package/dist/chunks/cli-0.1.15-cf4s92e9.mjs +0 -2
  486. package/dist/chunks/cli-0.1.15-cqzrzsh5.mjs +0 -5
  487. package/dist/chunks/cli-0.1.15-cyq0gbzk.mjs +0 -2
  488. package/dist/chunks/cli-0.1.15-dcabmk2v.mjs +0 -2
  489. package/dist/chunks/cli-0.1.15-dcxa8b6s.mjs +0 -2
  490. package/dist/chunks/cli-0.1.15-dq954y1q.mjs +0 -2
  491. package/dist/chunks/cli-0.1.15-dqkhbs67.mjs +0 -2
  492. package/dist/chunks/cli-0.1.15-e494j2sj.mjs +0 -4
  493. package/dist/chunks/cli-0.1.15-e64w5wan.mjs +0 -5
  494. package/dist/chunks/cli-0.1.15-e70ktyft.mjs +0 -2
  495. package/dist/chunks/cli-0.1.15-em40knm7.mjs +0 -4
  496. package/dist/chunks/cli-0.1.15-en9ppdbd.mjs +0 -2
  497. package/dist/chunks/cli-0.1.15-f838g4vw.mjs +0 -2
  498. package/dist/chunks/cli-0.1.15-f8abjagh.mjs +0 -2
  499. package/dist/chunks/cli-0.1.15-fe92jeft.mjs +0 -2
  500. package/dist/chunks/cli-0.1.15-fmnyh9j9.mjs +0 -6
  501. package/dist/chunks/cli-0.1.15-fr83vs1y.mjs +0 -2
  502. package/dist/chunks/cli-0.1.15-ft6xtjsa.mjs +0 -2
  503. package/dist/chunks/cli-0.1.15-g5wt8d3g.mjs +0 -2
  504. package/dist/chunks/cli-0.1.15-ghvjjc4g.mjs +0 -2
  505. package/dist/chunks/cli-0.1.15-gn4wnxx3.mjs +0 -2
  506. package/dist/chunks/cli-0.1.15-gqf82qvm.mjs +0 -2
  507. package/dist/chunks/cli-0.1.15-gqp8kzp0.mjs +0 -2
  508. package/dist/chunks/cli-0.1.15-gtn9gx9w.mjs +0 -2
  509. package/dist/chunks/cli-0.1.15-gwbebdj7.mjs +0 -2
  510. package/dist/chunks/cli-0.1.15-gxgy4enj.mjs +0 -2
  511. package/dist/chunks/cli-0.1.15-h3a2cbdb.mjs +0 -2
  512. package/dist/chunks/cli-0.1.15-h4erh2cn.mjs +0 -2
  513. package/dist/chunks/cli-0.1.15-h7cb0pw7.mjs +0 -2
  514. package/dist/chunks/cli-0.1.15-hyydz4kc.mjs +0 -12
  515. package/dist/chunks/cli-0.1.15-j5m3s9r5.mjs +0 -2
  516. package/dist/chunks/cli-0.1.15-k0bn0cze.mjs +0 -2
  517. package/dist/chunks/cli-0.1.15-knpxv22b.mjs +0 -2
  518. package/dist/chunks/cli-0.1.15-ks9rz9tk.mjs +0 -5
  519. package/dist/chunks/cli-0.1.15-kw7che8m.mjs +0 -2
  520. package/dist/chunks/cli-0.1.15-m7gtc61y.mjs +0 -2
  521. package/dist/chunks/cli-0.1.15-my0y22r7.mjs +0 -6
  522. package/dist/chunks/cli-0.1.15-n97y4hq4.mjs +0 -2
  523. package/dist/chunks/cli-0.1.15-nejf7yqz.mjs +0 -2
  524. package/dist/chunks/cli-0.1.15-njg0k6ga.mjs +0 -2
  525. package/dist/chunks/cli-0.1.15-nts79xbr.mjs +0 -2
  526. package/dist/chunks/cli-0.1.15-nw94frpp.mjs +0 -2
  527. package/dist/chunks/cli-0.1.15-nx5v1cvm.mjs +0 -2
  528. package/dist/chunks/cli-0.1.15-p159ga3t.mjs +0 -2
  529. package/dist/chunks/cli-0.1.15-p47rrzrn.mjs +0 -2
  530. package/dist/chunks/cli-0.1.15-p5ty029c.mjs +0 -2
  531. package/dist/chunks/cli-0.1.15-pcqjreq6.mjs +0 -2
  532. package/dist/chunks/cli-0.1.15-pxf97j8y.mjs +0 -2
  533. package/dist/chunks/cli-0.1.15-pya8tbx3.mjs +0 -2
  534. package/dist/chunks/cli-0.1.15-q021qg07.mjs +0 -2
  535. package/dist/chunks/cli-0.1.15-q35rzjnz.mjs +0 -16
  536. package/dist/chunks/cli-0.1.15-qhz07at6.mjs +0 -2
  537. package/dist/chunks/cli-0.1.15-r626437v.mjs +0 -2
  538. package/dist/chunks/cli-0.1.15-r8qzzahw.mjs +0 -2
  539. package/dist/chunks/cli-0.1.15-r9nrfwrq.mjs +0 -2
  540. package/dist/chunks/cli-0.1.15-rr65b3dk.mjs +0 -2
  541. package/dist/chunks/cli-0.1.15-rs5swvy0.mjs +0 -4
  542. package/dist/chunks/cli-0.1.15-rwx8446j.mjs +0 -2
  543. package/dist/chunks/cli-0.1.15-s7trme0x.mjs +0 -2
  544. package/dist/chunks/cli-0.1.15-sct02cw6.mjs +0 -5
  545. package/dist/chunks/cli-0.1.15-sd5jysf2.mjs +0 -2
  546. package/dist/chunks/cli-0.1.15-sg3n1v0w.mjs +0 -2
  547. package/dist/chunks/cli-0.1.15-svhrqvzp.mjs +0 -3
  548. package/dist/chunks/cli-0.1.15-tj4kzvth.mjs +0 -2
  549. package/dist/chunks/cli-0.1.15-tn4214gj.mjs +0 -2
  550. package/dist/chunks/cli-0.1.15-tp614m5f.mjs +0 -2
  551. package/dist/chunks/cli-0.1.15-twq0mjmr.mjs +0 -2
  552. package/dist/chunks/cli-0.1.15-v8zwx5j6.mjs +0 -3
  553. package/dist/chunks/cli-0.1.15-vzk22hwe.mjs +0 -2
  554. package/dist/chunks/cli-0.1.15-w8q8f37x.mjs +0 -2
  555. package/dist/chunks/cli-0.1.15-wfn10357.mjs +0 -2
  556. package/dist/chunks/cli-0.1.15-wmwtv0tz.mjs +0 -2
  557. package/dist/chunks/cli-0.1.15-wn40n534.mjs +0 -2
  558. package/dist/chunks/cli-0.1.15-x3yhaxm9.mjs +0 -2
  559. package/dist/chunks/cli-0.1.15-xery8c8c.mjs +0 -2
  560. package/dist/chunks/cli-0.1.15-y2pbhx6p.mjs +0 -2
  561. package/dist/chunks/cli-0.1.15-y6fkcbes.mjs +0 -2
  562. package/dist/chunks/cli-0.1.15-y7xkk5ds.mjs +0 -2
  563. package/dist/chunks/cli-0.1.15-yghcqf7h.mjs +0 -2
  564. package/dist/chunks/cli-0.1.15-yjxhk7qj.mjs +0 -2
  565. package/dist/chunks/cli-0.1.15-ywed2hpz.mjs +0 -2
  566. package/dist/chunks/cli-0.1.15-yxm6wwfz.mjs +0 -2
  567. package/dist/chunks/cli-0.1.15-yym7bka2.mjs +0 -2
  568. package/dist/chunks/cli-0.1.15-z2yexprk.mjs +0 -4
  569. package/dist/chunks/cli-0.1.15-z35x5bfj.mjs +0 -2
  570. package/dist/chunks/cli-0.1.15-zf1s8y92.mjs +0 -2
  571. package/dist/chunks/cli-0.1.15-ztxn2vjm.mjs +0 -2
  572. package/dist/chunks/client-0.1.15-pbb4218v.mjs +0 -1
  573. package/dist/chunks/color-0.1.15-w9tvjt51.mjs +0 -1
  574. package/dist/chunks/compact-0.1.15-2a2eywaz.mjs +0 -3
  575. package/dist/chunks/config-0.1.15-m4gwmfb1.mjs +0 -1
  576. package/dist/chunks/config-0.1.15-r15yk3zr.mjs +0 -1
  577. package/dist/chunks/context-noninteractive-0.1.15-wwa3qz84.mjs +0 -1
  578. package/dist/chunks/conversation-0.1.15-n1bn5vmb.mjs +0 -1
  579. package/dist/chunks/cost-0.1.15-garxyfxy.mjs +0 -1
  580. package/dist/chunks/createSession-0.1.15-krz8fv09.mjs +0 -1
  581. package/dist/chunks/desktop-0.1.15-j0znhh3a.mjs +0 -1
  582. package/dist/chunks/detectRepository-0.1.15-f34tbbq5.mjs +0 -1
  583. package/dist/chunks/detection-0.1.15-qfkk58tf.mjs +0 -1
  584. package/dist/chunks/diff-0.1.15-gc5686z3.mjs +0 -1
  585. package/dist/chunks/doctor-0.1.15-hhtv9s33.mjs +0 -1
  586. package/dist/chunks/earlyInput-0.1.15-ftgt9y2w.mjs +0 -1
  587. package/dist/chunks/environmentSelection-0.1.15-59904m5c.mjs +0 -1
  588. package/dist/chunks/environments-0.1.15-fn4ybjrt.mjs +0 -1
  589. package/dist/chunks/exit-0.1.15-qxj6czd5.mjs +0 -1
  590. package/dist/chunks/export-0.1.15-h5n9s624.mjs +0 -2
  591. package/dist/chunks/extra-usage-0.1.15-4a6e6rsa.mjs +0 -1
  592. package/dist/chunks/extra-usage-noninteractive-0.1.15-rgqd9ef7.mjs +0 -1
  593. package/dist/chunks/fast-0.1.15-98jhvjxk.mjs +0 -1
  594. package/dist/chunks/feedback-0.1.15-pqe68x4v.mjs +0 -14
  595. package/dist/chunks/firstPartyEventLogger-0.1.15-pss0293k.mjs +0 -1
  596. package/dist/chunks/git-0.1.15-002t17pq.mjs +0 -1
  597. package/dist/chunks/githubModelsCredentials-0.1.15-2a6dqqse.mjs +0 -1
  598. package/dist/chunks/growthbook-0.1.15-m7gdvgqa.mjs +0 -1
  599. package/dist/chunks/heapdump-0.1.15-s8h9rwpe.mjs +0 -6
  600. package/dist/chunks/help-0.1.15-y48dg88b.mjs +0 -1
  601. package/dist/chunks/hookChains-0.1.15-z46c2xkf.mjs +0 -3
  602. package/dist/chunks/hooks-0.1.15-vanat6cg.mjs +0 -1
  603. package/dist/chunks/image-processor-napi-0.1.15-5w5sybn1.mjs +0 -1
  604. package/dist/chunks/index-0.1.15-0z186jwx.mjs +0 -1
  605. package/dist/chunks/index-0.1.15-136649ke.mjs +0 -1
  606. package/dist/chunks/index-0.1.15-1r19582s.mjs +0 -1
  607. package/dist/chunks/index-0.1.15-3jxezstk.mjs +0 -1
  608. package/dist/chunks/index-0.1.15-52zxtxf2.mjs +0 -1
  609. package/dist/chunks/index-0.1.15-628tag5v.mjs +0 -1
  610. package/dist/chunks/index-0.1.15-7cp4n6z6.mjs +0 -1
  611. package/dist/chunks/index-0.1.15-832xm57n.mjs +0 -1
  612. package/dist/chunks/index-0.1.15-abzge0fa.mjs +0 -1
  613. package/dist/chunks/index-0.1.15-b9sdtjj4.mjs +0 -9
  614. package/dist/chunks/index-0.1.15-bvr8e4dt.mjs +0 -1
  615. package/dist/chunks/index-0.1.15-d4ea93sj.mjs +0 -9
  616. package/dist/chunks/index-0.1.15-n2q4dkvc.mjs +0 -1
  617. package/dist/chunks/index-0.1.15-nzmg6zng.mjs +0 -1
  618. package/dist/chunks/index-0.1.15-r9ck21mp.mjs +0 -1
  619. package/dist/chunks/index-0.1.15-rb4nqzzk.mjs +0 -1
  620. package/dist/chunks/index-0.1.15-x8ghxne4.mjs +0 -2
  621. package/dist/chunks/index-0.1.15-z3k5tm3n.mjs +0 -1
  622. package/dist/chunks/initReplBridge-0.1.15-g7q1qemf.mjs +0 -1
  623. package/dist/chunks/ink-0.1.15-rd56fvsx.mjs +0 -1
  624. package/dist/chunks/install-0.1.15-z6a6aa3t.mjs +0 -1
  625. package/dist/chunks/install-slack-app-0.1.15-2yhy3kwz.mjs +0 -1
  626. package/dist/chunks/interactiveHelpers-0.1.15-z5nx1rw2.mjs +0 -1
  627. package/dist/chunks/keybindings-0.1.15-cxmw2kd4.mjs +0 -2
  628. package/dist/chunks/knowledge-0.1.15-2bnycc4a.mjs +0 -2
  629. package/dist/chunks/loadAgentsDir-0.1.15-e4ms71xe.mjs +0 -1
  630. package/dist/chunks/loadPluginHooks-0.1.15-rcg3267j.mjs +0 -1
  631. package/dist/chunks/lsp-0.1.15-veqrp99h.mjs +0 -1
  632. package/dist/chunks/main-0.1.15-bfvfcwwj.mjs +0 -1
  633. package/dist/chunks/managedEnv-0.1.15-1mxydytg.mjs +0 -1
  634. package/dist/chunks/mcp-0.1.15-rfy9pyrt.mjs +0 -1
  635. package/dist/chunks/mcp-0.1.15-zc7h2fyj.mjs +0 -4
  636. package/dist/chunks/mcpServer-0.1.15-t7dsptwh.mjs +0 -1
  637. package/dist/chunks/mcpb-0.1.15-5mam984d.mjs +0 -1
  638. package/dist/chunks/memory-0.1.15-b6zkcs44.mjs +0 -3
  639. package/dist/chunks/model-0.1.15-843f7654.mjs +0 -1
  640. package/dist/chunks/model-0.1.15-e62wxf7h.mjs +0 -2
  641. package/dist/chunks/oauth-0.1.15-gxgmqwwx.mjs +0 -1
  642. package/dist/chunks/output-style-0.1.15-d20e4vc3.mjs +0 -1
  643. package/dist/chunks/package-WSP46L7M-0.1.15-jsqef57n.mjs +0 -1
  644. package/dist/chunks/parser-0.1.15-wbja947p.mjs +0 -1
  645. package/dist/chunks/passes-0.1.15-726y1cyq.mjs +0 -1
  646. package/dist/chunks/permissions-0.1.15-4pqgyt4h.mjs +0 -3
  647. package/dist/chunks/plan-0.1.15-p06bpb7x.mjs +0 -1
  648. package/dist/chunks/plist-0.1.15-fseac2c0.mjs +0 -1
  649. package/dist/chunks/plugin-0.1.15-yeqq1san.mjs +0 -29
  650. package/dist/chunks/pluginStartupCheck-0.1.15-s9v7kq6q.mjs +0 -1
  651. package/dist/chunks/privacy-settings-0.1.15-rq35tcyk.mjs +0 -1
  652. package/dist/chunks/process-0.1.15-g6km3z8k.mjs +0 -1
  653. package/dist/chunks/processBashCommand-0.1.15-57ga0c30.mjs +0 -1
  654. package/dist/chunks/prompt-0.1.15-gm20yk5m.mjs +0 -1
  655. package/dist/chunks/prompt-0.1.15-gxjy2vnc.mjs +0 -1
  656. package/dist/chunks/prompts-0.1.15-v7p366n5.mjs +0 -1
  657. package/dist/chunks/provider-0.1.15-gz0fhpp7.mjs +0 -2
  658. package/dist/chunks/providerProfiles-0.1.15-v7p3m9kf.mjs +0 -1
  659. package/dist/chunks/rate-limit-options-0.1.15-3vs25v7e.mjs +0 -1
  660. package/dist/chunks/registry-0.1.15-3h7bxrc2.mjs +0 -1
  661. package/dist/chunks/release-notes-0.1.15-1g908440.mjs +0 -5
  662. package/dist/chunks/reload-plugins-0.1.15-5r2acf43.mjs +0 -2
  663. package/dist/chunks/remoteBridgeCore-0.1.15-kbthngek.mjs +0 -1
  664. package/dist/chunks/remoteSession-0.1.15-yrg8c3z1.mjs +0 -1
  665. package/dist/chunks/rename-0.1.15-8079z5ff.mjs +0 -1
  666. package/dist/chunks/replBridgeHandle-0.1.15-cz1pf5m3.mjs +0 -1
  667. package/dist/chunks/resume-0.1.15-s4hv4t9y.mjs +0 -2
  668. package/dist/chunks/rewind-0.1.15-fevxgefp.mjs +0 -1
  669. package/dist/chunks/sandbox-adapter-0.1.15-yra7frkv.mjs +0 -1
  670. package/dist/chunks/session-0.1.15-crg226x4.mjs +0 -2
  671. package/dist/chunks/sessionFileAccessHooks-0.1.15-f3kpf3s7.mjs +0 -1
  672. package/dist/chunks/sessionStorage-0.1.15-x0gw4hbz.mjs +0 -1
  673. package/dist/chunks/setup-0.1.15-6znmc2q6.mjs +0 -5
  674. package/dist/chunks/sinks-0.1.15-npqf68gv.mjs +0 -1
  675. package/dist/chunks/skills-0.1.15-sybv0v2p.mjs +0 -1
  676. package/dist/chunks/startupProfiler-0.1.15-nwkwwtx6.mjs +0 -1
  677. package/dist/chunks/state-0.1.15-rr5k0vbf.mjs +0 -1
  678. package/dist/chunks/status-0.1.15-cvscafrs.mjs +0 -1
  679. package/dist/chunks/stickers-0.1.15-ee8ptkd4.mjs +0 -1
  680. package/dist/chunks/subprocessEnv-0.1.15-330g0p7g.mjs +0 -1
  681. package/dist/chunks/tasks-0.1.15-a4y42df2.mjs +0 -1
  682. package/dist/chunks/teamHelpers-0.1.15-gw6hwmyj.mjs +0 -1
  683. package/dist/chunks/teammateModeSnapshot-0.1.15-t2czx776.mjs +0 -1
  684. package/dist/chunks/teleport-0.1.15-bg434zjk.mjs +0 -1
  685. package/dist/chunks/terminalSetup-0.1.15-ged9eavp.mjs +0 -1
  686. package/dist/chunks/theme-0.1.15-zq998m8x.mjs +0 -1
  687. package/dist/chunks/thinkback-0.1.15-g09k62ck.mjs +0 -1
  688. package/dist/chunks/thinkback-play-0.1.15-mn7j6mm2.mjs +0 -1
  689. package/dist/chunks/toolPool-0.1.15-wej7eaff.mjs +0 -1
  690. package/dist/chunks/toolSearch-0.1.15-v6zmdk1y.mjs +0 -1
  691. package/dist/chunks/trustedDevice-0.1.15-t9sax8yq.mjs +0 -1
  692. package/dist/chunks/upgrade-0.1.15-07pcdyyq.mjs +0 -1
  693. package/dist/chunks/usage-0.1.15-ayne7pw6.mjs +0 -1
  694. package/dist/chunks/util-0.1.15-vs1eanbw.mjs +0 -1
  695. package/dist/chunks/utils-0.1.15-aq7vgwy1.mjs +0 -1
  696. package/dist/chunks/vim-0.1.15-syferjfa.mjs +0 -1
  697. package/dist/chunks/watcher-0.1.15-bh7ych8a.mjs +0 -1
  698. package/dist/chunks/worktree-0.1.15-twyfdw3p.mjs +0 -1
  699. package/dist/chunks/worktreeModeEnabled-0.1.15-afv7sbw1.mjs +0 -1
  700. package/dist/chunks/wrapper-0.1.15-dw3awx2b.mjs +0 -7
  701. /package/dist/chunks/{cli-0.1.15-7mfwj2xs.mjs → cli-0.2.0-4tn02vgd.mjs} +0 -0
  702. /package/dist/chunks/{cli-0.1.15-7ve9h395.mjs → cli-0.2.0-50cf7d1p.mjs} +0 -0
  703. /package/dist/chunks/{cli-0.1.15-p6bypqrv.mjs → cli-0.2.0-dgenwca0.mjs} +0 -0
  704. /package/dist/chunks/{cli-0.1.15-618hqv9f.mjs → cli-0.2.0-rnpcefe5.mjs} +0 -0
@@ -1,16 +0,0 @@
1
- import{Q3 as R2,S3 as u4}from"./cli-0.1.15-5denzf1p.mjs";import{U3 as h,V3 as jZ}from"./cli-0.1.15-fmnyh9j9.mjs";import{$4 as s0,K4 as O}from"./cli-0.1.15-x69hfzmj.mjs";import{$8 as P1,$_ as e,A6 as X5,C6 as WZ,Eaa as M1,Gaa as I8,Haa as V4,Iaa as i,Jaa as q2,Kaa as K0,Laa as q4,Maa as I2,N8 as Y1,O8 as e4,Paa as x2,Q$ as d,Qaa as GZ,U$ as M,V5 as X1,W5 as r4,X$ as F,X_ as b,Z_ as Q2,_5 as K,a$ as C,d6 as c0,i6 as x0,j$ as q0,j6 as u5,k6 as Q5,l9 as U8,mba as A1,n6 as qZ,oaa as W0,q_ as E1,qaa as k1,raa as _8,s$ as K4,sba as y8,u$ as zZ,vba as D,yba as V0,z_ as O8}from"./cli-0.1.15-4892kydg.mjs";import{ada as H5,bda as L4,cda as z0,eda as h4,fda as f4,hda as N,ida as b0}from"./cli-0.1.15-6mad0r56.mjs";import{Ida as Q1,wda as k0,yda as Z4}from"./cli-0.1.15-wfn10357.mjs";import{yea as j,zea as J2}from"./cli-0.1.15-b7f6hacc.mjs";import{Yea as p,_ea as M5,cfa as A5,ffa as J5,ifa as VZ,mfa as k2,qfa as t4,wfa as z,yfa as f0,zfa as j0}from"./cli-0.1.15-nk50qhet.mjs";import{Afa as $5,Dfa as L,Ffa as u,Hfa as H2,Kfa as F4,Nfa as g}from"./cli-0.1.15-9pe3dbgs.mjs";import{Gia as b1,Gja as y5,Hja as T5,Ija as C5,Jja as S5,Kia as e1,Pia as O0,Qia as t0,Vja as $2,ija as f,mla as r,pja as J1,sia as R1,tha as $0,uha as n5}from"./cli-0.1.15-12azgmva.mjs";import{Lla as y,Mla as m0}from"./cli-0.1.15-p5ty029c.mjs";import{_la as m8,ama as S1,bma as B,cma as o}from"./cli-0.1.15-mhbfhhf6.mjs";function R5(Z){let $=[],J=!1;async function Q(){if(J)return;if($.length===0)return;J=!0;while($.length>0){let{args:X,resolve:Y,reject:V,context:W}=$.shift();try{let G=await Z.apply(W,X);Y(G)}catch(G){V(G)}}if(J=!1,$.length>0)Q()}return function(...X){return new Promise((Y,V)=>{$.push({args:X,resolve:Y,reject:V,context:this}),Q()})}}var w5=()=>{};function L5(Z,$){return Z.find((J)=>J.includes($))??null}async function K5(){let{BedrockClient:Z}=await import("@aws-sdk/client-bedrock"),$=H2(),J=L(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await R2(),...J&&{requestHandler:new(await import("./index-0.1.15-136649ke.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.1.15-1r19582s.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await X0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}async function Y3(){let{BedrockRuntimeClient:Z}=await import("@aws-sdk/client-bedrock-runtime"),$=H2(),J=L(process.env.CLAUDE_CODE_SKIP_BEDROCK_AUTH),Q={region:$,...process.env.ANTHROPIC_BEDROCK_BASE_URL&&{endpoint:process.env.ANTHROPIC_BEDROCK_BASE_URL},...await R2(),...J&&{requestHandler:new(await import("./index-0.1.15-136649ke.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.1.15-1r19582s.mjs")).NoAuthSigner}],httpAuthSchemeProvider:()=>[{schemeId:"smithy.api#noAuth"}]}};if(!J&&!process.env.AWS_BEARER_TOKEN_BEDROCK){let X=await X0();if(X)Q.credentials={accessKeyId:X.accessKeyId,secretAccessKey:X.secretAccessKey,sessionToken:X.sessionToken}}return new Z(Q)}function g4(Z){return Z.startsWith("anthropic.")}function m4(Z){if(!Z.startsWith("arn:"))return Z;let $=Z.lastIndexOf("/");if($===-1)return Z;return Z.substring($+1)}function c4(Z){let $=m4(Z);for(let J of p4)if($.startsWith(`${J}.anthropic.`))return J;return}function q3(Z,$){let J=c4(Z);if(J)return Z.replace(`${J}.`,`${$}.`);if(g4(Z))return`${$}.${Z}`;return Z}var F5,V3,p4;var D5=B(()=>{m0();n();g();c0();u4();F5=y(async function(){let[Z,{ListInferenceProfilesCommand:$}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),J=[],Q;try{do{let X=new $({...Q&&{nextToken:Q},typeEquals:"SYSTEM_DEFINED"}),Y=await Z.send(X);if(Y.inferenceProfileSummaries)J.push(...Y.inferenceProfileSummaries);Q=Y.nextToken}while(Q);return J.filter((X)=>X.inferenceProfileId?.includes("anthropic")).map((X)=>X.inferenceProfileId).filter(Boolean)}catch(X){throw K(X),X}});V3=y(async function(Z){try{let[$,{GetInferenceProfileCommand:J}]=await Promise.all([K5(),import("@aws-sdk/client-bedrock")]),Q=new J({inferenceProfileIdentifier:Z}),X=await $.send(Q);if(!X.models||X.models.length===0)return null;let Y=X.models[0];if(!Y?.modelArn)return null;let V=Y.modelArn.lastIndexOf("/");return V>=0?Y.modelArn.substring(V+1):Y.modelArn}catch($){return K($),null}});p4=["us","eu","apac","global"]});var w2,F2,L2,K2,D2,N2,U2,O2,_2,d0,n0,b2,Y0,z3,N5;var P2=B(()=>{w2={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"},F2={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"},L2={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"},K2={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"},D2={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"},N2={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"},U2={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"},O2={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"},_2={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"},d0={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"},n0={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"},b2={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"},Y0={haiku35:L2,haiku45:K2,sonnet35:F2,sonnet37:w2,sonnet40:D2,sonnet45:N2,sonnet46:b2,opus40:U2,opus41:O2,opus45:_2,opus46:d0,opus47:n0},z3=Object.values(Y0).map((Z)=>Z.firstParty),N5=Object.fromEntries(Object.entries(Y0).map(([Z,$])=>[$.firstParty,Z]))});function q(){let Z=D();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 x3(){return q()==="firstParty"}function B3(Z){let $=D();if($?.transport!=="github_copilot")return!1;return(Z?.trim()||$.model?.trim()||"").toLowerCase().includes("claude-")}function H3(){return q()}function R3(){let Z=D();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 t=B(()=>{V0()});function i0(Z){let $=Z==="codex"||Z==="github"?"openai":Z,J={};for(let Q of O5)J[Q]=Y0[Q][$];return J}async function d4(){let Z=i0("bedrock"),$;try{$=await F5()}catch(Q){return K(Q),Z}if(!$?.length)return Z;let J={};for(let Q of O5){let X=Y0[Q].firstParty;J[Q]=L5($,X)||Z[Q]}return J}function U5(Z){let $=e().modelOverrides;if(!$)return Z;let J={...Z};for(let[Q,X]of Object.entries($)){let Y=N5[Q];if(Y&&X)J[Y]=X}return J}function l0(Z){let $;try{$=e().modelOverrides}catch{return Z}if(!$)return Z;for(let[J,Q]of Object.entries($))if(Q===Z)return J;return Z}function n4(){if(O0()!==null)return;if(q()!=="bedrock"){t0(i0(q()));return}_5()}function H(){let Z=O0();if(Z===null)return n4(),U5(i0(q()));return U5(Z)}async function _3(){if(O0()!==null)return;if(q()!=="bedrock"){t0(i0(q()));return}await _5()}var O5,_5;var a0=B(()=>{r();c0();w5();q0();D5();P2();t();O5=Object.keys(Y0);_5=R5(async()=>{if(O0()!==null)return;try{let Z=await d4();t0(Z)}catch(Z){K(Z)}})});function v3(){if(L(process.env.DISABLE_COST_WARNINGS))return!1;if(U())return!1;let $=_0(),J=Z0()!==null;if(!$.hasToken&&!J)return!1;let Q=F(),X=Q.oauthAccount?.organizationRole,Y=Q.oauthAccount?.workspaceRole;if(!X||!Y)return!1;return["admin","billing"].includes(X)||["workspace_admin","workspace_billing"].includes(Y)}function I3(){if(b5!==null)return b5;if(!U())return!1;let Z=v();if(Z==="max"||Z==="pro")return!0;let J=F().oauthAccount?.organizationRole;return!!J&&["admin","billing","owner","primary_owner"].includes(J)}var b5=null;var P5=B(()=>{n();W0();g()});function S3(Z){return Z}function M3(){return!1}function E5(){return null}function k5(){return!1}var v5=B(()=>{P5()});async function m3(){let $=F().oauthAccount?.accountUuid,J=Z0();if(!$||!J)return;let Q=`${N().BASE_API_URL}/api/claude_cli_profile`;try{return(await O.get(Q,{headers:{"x-api-key":J,"anthropic-beta":z0},params:{account_uuid:$},timeout:1e4})).data}catch(X){K(X)}}async function G0(Z){let $=`${N().BASE_API_URL}/api/oauth/profile`;try{return(await O.get($,{headers:{Authorization:`Bearer ${Z}`,"Content-Type":"application/json"},timeout:1e4})).data}catch(J){K(J)}}var E2=B(()=>{s0();b0();n();W0();c0()});import{mkdirSync as i4,writeFileSync as l4}from"fs";function o4(Z,$,J){if(!L(process.env.CLAUDE_CODE_REMOTE))return;try{i4(o0,{recursive:!0,mode:448}),l4(Z,$,{encoding:"utf8",mode:384}),z(`Persisted ${J} to ${Z} for subprocess access`)}catch(Q){z(`Failed to persist ${J} to disk (non-fatal): ${p(Q)}`,{level:"error"})}}function I5(Z,$){try{let Q=k2().readFileSync(Z,{encoding:"utf8"}).trim();if(!Q)return null;return z(`Read ${$} from well-known file ${Z}`),Q}catch(J){if(!M5(J))z(`Failed to read ${$} from ${Z}: ${p(J)}`,{level:"debug"});return null}}function h5({envVar:Z,wellKnownPath:$,label:J,getCached:Q,setCached:X}){let Y=Q();if(Y!==void 0)return Y;let V=process.env[Z];if(!V){let G=I5($,J);return X(G),G}let W=parseInt(V,10);if(Number.isNaN(W))return z(`${Z} must be a valid file descriptor number, got: ${V}`,{level:"error"}),X(null),null;try{let G=k2(),x=process.platform==="darwin"||process.platform==="freebsd"?`/dev/fd/${W}`:`/proc/self/fd/${W}`,R=G.readFileSync(x,{encoding:"utf8"}).trim();if(!R)return z(`File descriptor contained empty ${J}`,{level:"error"}),X(null),null;return z(`Successfully read ${J} from file descriptor ${W}`),X(R),o4($,R,J),R}catch(G){z(`Failed to read ${J} from file descriptor ${W}: ${p(G)}`,{level:"error"});let x=I5($,J);return X(x),x}}function r0(){return h5({envVar:"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",wellKnownPath:a4,label:"OAuth token",getCached:y5,setCached:T5})}function v2(){return h5({envVar:"CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR",wellKnownPath:s4,label:"API key",getCached:C5,setCached:S5})}var o0="/home/claude/.claude/remote",a4,s4,s3;var f5=B(()=>{r();j0();g();A5();t4();a4=`${o0}/.oauth_token`,s4=`${o0}/.api_key`,s3=`${o0}/.session_ingress_token`});async function g5(){if(process.platform==="darwin"){let Z=i();if((await x0(`security delete-generic-password -a $USER -s "${Z}"`,{shell:!0,reject:!1})).exitCode!==0)throw Error("Failed to delete keychain entry")}}function e0(Z){return Z.slice(-20)}var p5=B(()=>{u5();I2()});function J9(Z){return Z?.name==="CredentialsProviderError"}function m5(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 y2(){let{STSClient:Z,GetCallerIdentityCommand:$}=await import("@aws-sdk/client-sts");await new Z().send(new $({}))}async function c5(){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 d5=B(()=>{j0()});class S{static instance=null;status={isAuthenticating:!1,output:[]};changed=$0();static getInstance(){if(!S.instance)S.instance=new S;return S.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(S.instance)S.instance.changed.clear(),S.instance=null}}var t5=B(()=>{n5()});var Z2="claude-code-20250219",i5="interleaved-thinking-2025-05-14",P0="context-1m-2025-08-07",l5="context-management-2025-06-27",a5="structured-outputs-2025-12-15",T2="web-search-2025-03-05",s5="advanced-tool-use-2025-11-20",o5="tool-search-tool-2025-10-19",V9="effort-2025-11-24",q9="task-budgets-2026-03-13",r5="prompt-caching-scope-2026-01-05",W9="fast-mode-2026-02-01",e5="redact-thinking-2026-02-12",Z1="token-efficient-tools-2026-03-28",z9="afk-mode-2026-01-31",G9="advisor-tool-2026-03-01",C2,j9;var S2=B(()=>{C2=new Set(["interleaved-thinking-2025-05-14","context-1m-2025-08-07","tool-search-tool-2025-10-19"]),j9=new Set(["claude-code-20250219","interleaved-thinking-2025-05-14","context-management-2025-06-27"])});function A(){if(q()!=="firstParty")return!1;return!L(process.env.CLAUDE_CODE_DISABLE_FAST_MODE)}function V1(){if(!A())return!1;return $8()===null}function Z8(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 $8(){if(q()!=="firstParty")return"Fast mode is not available on third-party providers";if(!A())return"Fast mode is not available";let Z=k0("tengu_penguins_off",null);if(Z!==null)return z(`Fast mode unavailable: ${Z}`),Z;if(!Y1()&&k0("tengu_marble_sandcastle",!1))return"Fast mode requires the native binary · Install from: https://claude.com/product/claude-code";if(f()&&$2()&&!J1()){if(!b("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(k.status==="disabled"){if(k.reason==="network_error"||k.reason==="unknown"){if(L(process.env.CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS))return null}let $=w()!==null?"oauth":"api-key",J=Z8(k.reason,$);return z(`Fast mode unavailable: ${J}`),J}return null}function v9(){return"opus"+(I0()?"[1m]":"")}function I9(Z){if(!A())return!1;if(!V1())return!1;if(!q1(Z))return!1;let $=e();if($.fastModePerSessionOptIn)return!1;return $.fastMode===!0}function q1(Z){if(!A())return!1;let $=Z??v0(),J=T($).toLowerCase();return J.includes("opus-4-7")||J.includes("opus-4-6")}function J8(){if(B0.status==="cooldown"&&Date.now()>=B0.resetAt){if(A()&&!M2)z("Fast mode cooldown expired, re-enabling fast mode"),M2=!0,z1.emit();B0={status:"active"}}return B0}function C9(Z,$){if(!A())return;B0={status:"cooldown",resetAt:Z,reason:$},M2=!1;let J=Z-Date.now();z(`Fast mode cooldown triggered (${$}), duration ${Math.round(J/1000)}s`),j("tengu_fast_mode_fallback_triggered",{cooldown_duration_ms:J,cooldown_reason:$}),W1.emit(Z,$)}function S9(){B0={status:"active"}}function M9(){if(k.status==="disabled")return;k={status:"disabled",reason:"preference"},Q2("userSettings",{fastMode:void 0}),M((Z)=>({...Z,penguinModeOrgEnabled:!1})),A2.emit(!1)}function Q8(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 X8(Z){return Z==="org_level_disabled_until"||Z==="out_of_credits"}function h9(Z){let $=Q8(Z);if(z(`Fast mode overage rejection: ${Z??"unknown"} — ${$}`),j("tengu_fast_mode_overage_rejected",{overage_disabled_reason:Z??"unknown"}),!X8(Z))Q2("userSettings",{fastMode:void 0}),M((J)=>({...J,penguinModeOrgEnabled:!1}));G1.emit($)}function Y8(){return J8().status==="cooldown"}function f9(Z,$){let J=A()&&V1()&&!!$&&q1(Z);if(J&&Y8())return"cooldown";if(J)return"on";return"off"}async function V8(Z){let $=`${N().BASE_API_URL}/api/claude_code_penguin_mode`,J="accessToken"in Z?{Authorization:`Bearer ${Z.accessToken}`,"anthropic-beta":z0}:{"x-api-key":Z.apiKey};return(await O.get($,{headers:J})).data}function g9(){if(!A())return;if(k.status!=="pending")return;k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"unknown"}}async function p9(){if(X1())return;if(!A())return;if(E0)return z("Fast mode prefetch in progress, returning in-flight promise"),E0;let Z=Z0();if(!(w()?.accessToken&&J0())&&!Z){k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"preference"};return}let J=Date.now();if(J-$1<q8){z("Skipping fast mode prefetch, fetched recently");return}$1=J;let Q=async()=>{let Y=w(),V=Y?.accessToken&&J0()?{accessToken:Y.accessToken}:Z?{apiKey:Z}:null;if(!V)throw Error("No auth available");return V8(V)};async function X(){try{let Y;try{Y=await Q()}catch(W){if(O.isAxiosError(W)&&(W.response?.status===401||W.response?.status===403&&typeof W.response?.data==="string"&&W.response.data.includes("OAuth token has been revoked"))){let x=w()?.accessToken;if(x)await h2(x),Y=await Q();else throw W}else throw W}let V=k.status!=="pending"?k.status==="enabled":F().penguinModeOrgEnabled;if(k=Y.enabled?{status:"enabled"}:{status:"disabled",reason:Y.disabled_reason??"preference"},V!==Y.enabled){if(!Y.enabled)Q2("userSettings",{fastMode:void 0});M((W)=>({...W,penguinModeOrgEnabled:Y.enabled})),A2.emit(Y.enabled)}z(`Org fast mode: ${Y.enabled?"enabled":`disabled (${Y.disabled_reason??"preference"})`}`)}catch(Y){k=F().penguinModeOrgEnabled===!0?{status:"enabled"}:{status:"disabled",reason:"network_error"},z(`Failed to fetch org fast mode status, defaulting to ${k.status==="enabled"?"enabled (cached)":"disabled (network_error)"}: ${Y}`,{level:"error"}),j("tengu_org_penguin_mode_fetch_failed",{})}finally{E0=null}}return E0=X(),E0}var k9="Opus 4.7",B0,M2=!1,W1,z1,y9,T9,G1,A9,k,A2,u9,q8=30000,$1=0,E0=null;var j1=B(()=>{s0();b0();Q1();r();J2();n();e4();W0();j0();g();H0();t();r4();q0();n5();B0={status:"active"},W1=$0(),z1=$0(),y9=W1.subscribe,T9=z1.subscribe;G1=$0(),A9=G1.subscribe;k={status:"pending"},A2=$0(),u9=A2.subscribe});function B8(Z){for(let $ of x8)if($.pattern.test(Z))return $.cost;return}function f2(Z){if(A()&&Z)return W8;return T0}function H8(Z,$){return $.input_tokens/1e6*Z.inputTokens+$.output_tokens/1e6*Z.outputTokens+($.cache_read_input_tokens??0)/1e6*Z.promptCacheReadTokens+($.cache_creation_input_tokens??0)/1e6*Z.promptCacheWriteTokens+($.server_tool_use?.web_search_requests??0)*Z.webSearchRequests}function R8(Z,$){let J=P(Z);if(J===_(d0.firstParty)||J===_(n0.firstParty)){let X=$.speed==="fast";return f2(X)}let Q=B1[J];if(!Q){let X=B8(Z);if(X)return X;return w8(Z,J),B1[P(v0())]??j8}return Q}function w8(Z,$){j("tengu_unknown_model_cost",{model:Z,shortName:$}),R1()}function F8(Z,$){let J=R8(Z,$);return H8(J,$)}function l9(Z,$){let J={input_tokens:$.inputTokens,output_tokens:$.outputTokens,cache_read_input_tokens:$.cacheReadInputTokens,cache_creation_input_tokens:$.cacheCreationInputTokens};return F8(Z,J)}function H1(Z){if(Number.isInteger(Z))return`$${Z}`;return`$${Z.toFixed(2)}`}function w1(Z){return`${H1(Z.inputTokens)}/${H1(Z.outputTokens)} per Mtok`}var y0,x1,T0,W8,z8,G8,j8,x8,B1;var F1=B(()=>{J2();r();j1();P2();H0();y0={inputTokens:3,outputTokens:15,promptCacheWriteTokens:3.75,promptCacheReadTokens:0.3,webSearchRequests:0.01},x1={inputTokens:15,outputTokens:75,promptCacheWriteTokens:18.75,promptCacheReadTokens:1.5,webSearchRequests:0.01},T0={inputTokens:5,outputTokens:25,promptCacheWriteTokens:6.25,promptCacheReadTokens:0.5,webSearchRequests:0.01},W8={inputTokens:30,outputTokens:150,promptCacheWriteTokens:37.5,promptCacheReadTokens:3,webSearchRequests:0.01},z8={inputTokens:0.8,outputTokens:4,promptCacheWriteTokens:1,promptCacheReadTokens:0.08,webSearchRequests:0.01},G8={inputTokens:1,outputTokens:5,promptCacheWriteTokens:1.25,promptCacheReadTokens:0.1,webSearchRequests:0.01},j8=T0,x8=[{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}}];B1={[_(L2.firstParty)]:z8,[_(K2.firstParty)]:G8,[_(F2.firstParty)]:y0,[_(w2.firstParty)]:y0,[_(D2.firstParty)]:y0,[_(N2.firstParty)]:y0,[_(b2.firstParty)]:y0,[_(U2.firstParty)]:x1,[_(O2.firstParty)]:x1,[_(_2.firstParty)]:T0,[_(d0.firstParty)]:T0,[_(n0.firstParty)]:T0}});function m(Z){return L8.includes(Z)}function R0(Z){return K8.includes(Z)}var L8,K8;var u2=B(()=>{L8=["sonnet","opus","haiku","best","sonnet[1m]","opus[1m]","opusplan"];K8=["sonnet","opus","haiku"]});function D8(Z,$){if(Z.includes($))return!0;if(m(Z))return T(Z).toLowerCase().includes($);return!1}function L1(Z,$){if(!Z.startsWith($))return!1;return Z.length===$.length||Z[$.length]==="-"}function N8(Z,$){let J=m(Z)?T(Z).toLowerCase():Z;if(L1(J,$))return!0;if(!$.startsWith("claude-")&&L1(J,`claude-${$}`))return!0;return!1}function K1(Z,$){for(let J of $){if(R0(J))continue;let Q=J.indexOf(Z);if(Q===-1)continue;let X=Q+Z.length;if(X===J.length||J[X]==="-")return!0}return!1}function D1(Z){let $=C()||{},{availableModels:J}=$;if(!J)return!0;if(J.length===0)return!1;let X=l0(Z).trim().toLowerCase(),Y=J.map((V)=>V.trim().toLowerCase());if(Y.includes(X)){if(!R0(X)||!K1(X,Y))return!0}for(let V of Y)if(R0(V)&&!K1(V,Y)&&D8(X,V))return!0;if(m(X)){let V=T(X).toLowerCase();if(Y.includes(V))return!0}for(let V of Y)if(!R0(V)&&m(V)){if(T(V).toLowerCase()===X)return!0}for(let V of Y)if(!R0(V)&&!m(V)){if(N8(X,V))return!0}return!1}var N1=B(()=>{q0();u2();H0();a0()});function J$(){return Object.values(U1)}var U1,g2;var O1=B(()=>{U1={"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}}},g2=Object.fromEntries(Object.values(U1).map((Z)=>[Z.id,Z.name]))});function m2(Z){if(typeof Z!=="string")return;let $=Z.trim();return $.length>0?$:void 0}function F0(){let Z=D();if(!Z?.model)return;return k1(Z.model)}function K$(){if(process.env.ANTHROPIC_SMALL_FAST_MODEL)return process.env.ANTHROPIC_SMALL_FAST_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"codexspark";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return v1()}function D$(Z){return Z===H().opus40||Z===H().opus41||Z===H().opus45||Z===H().opus46||Z===H().opus47}function p2(){let Z,$=b1();if($!==void 0)Z=$;else{let J=C()||{},Q=m2(J.model);Z=F0()||Q||void 0}if(Z&&!D1(Z))return;return Z}function N$(){let Z=p2();if(Z!==void 0&&Z!==null)return T(Z);return I1()}function b8(){return w0()}function w0(){if(process.env.ANTHROPIC_DEFAULT_OPUS_MODEL)return process.env.ANTHROPIC_DEFAULT_OPUS_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.5-pro";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.7";if(q()!=="firstParty")return H().opus46;return H().opus47}function C0(){if(process.env.ANTHROPIC_DEFAULT_SONNET_MODEL)return process.env.ANTHROPIC_DEFAULT_SONNET_MODEL;let Z=F0();if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"mistral-medium-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="nvidia-nim")return Z||"nvidia/llama-3.1-nemotron-70b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5";if(q()!=="firstParty")return H().sonnet45;return H().sonnet46}function v1(){if(process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL)return process.env.ANTHROPIC_DEFAULT_HAIKU_MODEL;let Z=F0();if(q()==="mistral")return Z||"ministral-3b-latest";if(q()==="openai")return Z||"gpt-4o-mini";if(q()==="codex")return Z||"gpt-5.5";if(q()==="github")return Z||"github:copilot";if(q()==="gemini")return Z||"gemini-2.0-flash-lite";if(q()==="nvidia-nim")return Z||"meta/llama-3.1-8b-instruct";if(q()==="minimax")return Z||"MiniMax-M2.5-highspeed";return H().haiku45}function U$(Z){let{permissionMode:$,mainLoopModel:J,exceeds200kTokens:Q=!1}=Z;if(p2()==="opusplan"&&$==="plan"&&!Q)return w0();if(p2()==="haiku"&&$==="plan")return C0();return J}function v0(){let Z=F0();if(q()==="github"){let $=C()||{};return m2($.model)||Z||"github:copilot"}if(q()==="gemini")return Z||"gemini-2.0-flash";if(q()==="mistral")return Z||"devstral-latest";if(q()==="openai")return Z||"gpt-4o";if(q()==="codex")return Z||"gpt-5.5";if(X2())return w0()+(I0()?"[1m]":"");if(Y2())return w0()+(I0()?"[1m]":"");return C0()}function I1(){return T(v0())}function _(Z){if(Z=Z.toLowerCase(),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-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 P(Z){return _(l0(Z))}function P8(Z=!1){if(X2()||Y2()){if(I0())return`Opus 4.7 with 1M context · Most capable for complex work${Z?_1(!0):""}`;return`Opus 4.7 · Most capable for complex work${Z?_1(!0):""}`}return"Sonnet 4.6 · Best for everyday tasks"}function O$(Z){if(Z==="opusplan")return"Opus 4.7 in plan mode, else Sonnet 4.6";return T1(T(Z))}function _1(Z){if(q()!=="firstParty")return"";let $=w1(f2(Z));return` ·${Z?` (${P1})`:""} ${$}`}function I0(){if(L0()||n2()||q()!=="firstParty")return!1;if(U()&&v()===null)return!1;return!0}function _$(Z){if(Z==="opusplan")return"Opus Plan";if(Z==="codexplan")return"codexplan (gpt-5.5)";if(Z==="codexspark")return"codexspark (gpt-5.3-codex-spark)";if(m(Z))return E1(Z);return T1(Z)}function y1(Z){if(q()==="openai"||q()==="gemini"||q()==="codex"||q()==="github"){if(g2[Z])return g2[Z];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 H().opus47:return"Opus 4.7";case H().opus47+"[1m]":return"Opus 4.7 (1M context)";case H().opus46:return"Opus 4.6";case H().opus46+"[1m]":return"Opus 4.6 (1M context)";case H().opus45:return"Opus 4.5";case H().opus41:return"Opus 4.1";case H().opus40:return"Opus 4";case H().sonnet46+"[1m]":return"Sonnet 4.6 (1M context)";case H().sonnet46:return"Sonnet 4.6";case H().sonnet45+"[1m]":return"Sonnet 4.5 (1M context)";case H().sonnet45:return"Sonnet 4.5";case H().sonnet40:return"Sonnet 4";case H().sonnet40+"[1m]":return"Sonnet 4 (1M context)";case H().sonnet37:return"Sonnet 3.7";case H().sonnet35:return"Sonnet 3.5";case H().haiku45:return"Haiku 4.5";case H().haiku35:return"Haiku 3.5";default:return null}}function T1(Z){let $=y1(Z);if($)return $;if(Z==="github:copilot")return"GPT-4o";return Z}function b$(Z){let $=y1(Z);if($)return`Claude ${$}`;return`Claude (${Z})`}function T(Z){let $=m2(Z);if(!$)return C0();let J=$.toLowerCase(),Q=l(J),X=Q?J.replace(/\[1m]$/i,"").trim():J;if(m(X))switch(X){case"opusplan":return C0()+(Q?"[1m]":"");case"sonnet":return C0()+(Q?"[1m]":"");case"haiku":return v1()+(Q?"[1m]":"");case"opus":return w0()+(Q?"[1m]":"");case"best":return b8();default:}if(X==="codexplan")return"gpt-5.5";if(X==="codexspark")return"gpt-5.3-codex-spark";if(q()==="firstParty"&&k8(X)&&v8())return w0()+(Q?"[1m]":"");if(Q)return $.replace(/\[1m\]$/i,"").trim()+"[1m]";return $}function P$(Z,$){if(l(Z)||!l($))return Z;if(c2(T(Z)))return Z+"[1m]";return Z}function k8(Z){return E8.includes(Z)}function v8(){return!L(process.env.CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP)}function E$(Z){if(Z===null){if(U())return`Default (${P8()})`;return`Default (${I1()})`}let $=T(Z);return Z===$?$:`${Z} (${$})`}function k$(Z){if(q()==="foundry")return;let $=Z.toLowerCase().includes("[1m]"),J=P(Z);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-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 v$(Z){return Z.replace(/\[(1|2)m\]/gi,"")}var E8;var H0=B(()=>{r();V0();n();d2();g();_8();a0();F1();q0();t();U8();N1();u2();O8();O1();E8=["claude-opus-4-20250514","claude-opus-4-1-20250805","claude-opus-4-0","claude-opus-4-1"]});function t2(Z){return}async function y$(){}var C1=()=>{};var p1={};S1(p1,{prefetchOpenAICompatibleModels:()=>p8,getDiscoveredContextWindow:()=>T8,discoverOpenAICompatibleModelOptions:()=>g1});function T8(Z){return f1.get(Z)}function C8(){return(D()?.baseUrl??"https://api.openai.com/v1").replace(/\/+$/,"")}function u1(Z){try{let $=new URL(Z).hostname.toLowerCase();return $.endsWith(".openai.azure.com")||$.endsWith(".cognitiveservices.azure.com")}catch{return!1}}function S8(Z){try{return new URL(Z).hostname.toLowerCase().includes("bankr")}catch{return!1}}function M8(Z){let $=D()?.apiKey?.trim();if(!$)return{};if(S8(Z))return{"X-API-Key":$};let J={Authorization:`Bearer ${$}`};if(u1(Z))J["api-key"]=$;return J}function A8(Z){let $=Z.endsWith("/v1")?`${Z}/models`:`${Z}/v1/models`,J=`${Z}/models`,Q=process.env.OPENAI_API_VERSION?.trim(),X=Q&&u1(Z)?(Y)=>{try{let V=new URL(Y);return V.searchParams.set("api-version",Q),V.toString()}catch{return Y}}:(Y)=>Y;if($===J)return[X($)];return[X($),X(J)]}function h8(Z){try{let $=new URL(Z),J=$.pathname.replace(/\/+$/,""),X=`${J.endsWith("/v1")?J.slice(0,-3):J}/api/tags`.replace(/\/{2,}/g,"/");return`${$.origin}${X}`}catch{return null}}function f8(Z){if(Z>=1e6)return`${Z/1e6}M ctx`;if(Z>=1000)return`${Math.round(Z/1000)}K ctx`;return`${Z} ctx`}async function u8(Z,$){let J=new Set;for(let Q of Z)try{let X=await O.get(Q,{headers:$,timeout:h1}),Y=[];for(let V of X.data?.data??[]){let W=V.id?.trim();if(!W||J.has(W))continue;J.add(W);let G=V.name?.trim()||W,x=V.context_length??null;if(x&&x>0)f1.set(W,x);let R=x?` · ${f8(x)}`:"";Y.push({value:W,label:G,description:`${W}${R}`})}if(Y.length>0)return Y.sort((V,W)=>{let G=String(V.value).split("/")[0]??"",x=String(W.value).split("/")[0]??"",R=G.localeCompare(x);return R!==0?R:String(V.value).localeCompare(String(W.value))}),Y}catch{z(`[ModelDiscovery] Failed to fetch OpenAI models from ${Q}`)}return[]}async function g8(Z,$){try{let J=await O.get(Z,{headers:$,timeout:h1}),Q=new Set;return(J.data?.models??[]).map((X)=>X.name?.trim()??"").filter((X)=>{if(!X||Q.has(X))return!1;return Q.add(X),!0}).map((X)=>({value:X,label:X,description:"Ollama model"}))}catch{return z(`[ModelDiscovery] Failed to fetch Ollama models from ${Z}`),[]}}async function g1(){if(q()!=="openai")return[];let Z=C8(),$=M8(Z),J=await u8(A8(Z),$);if(J.length>0)return J;let Q=h8(Z);if(Q)return g8(Q,$);return[]}function p8(){if(S0)return S0;return S0=(async()=>{if(!A1()?.startsWith("openai:"))return;try{let $=await g1();if($.length>0)M1($)}catch{}finally{S0=null}})(),S0}var h1=5000,f1,S0=null;var m1=B(()=>{s0();V0();y8();j0();t();I8();f1=new Map});function d1(Z,$,J){let Q=D()?.model?.trim();if(Q&&Q!==J){let Y=`${Q}:${J}`;if($[Y]!==void 0)return $[Y];if(Z[Y]!==void 0)return Z[Y]}let X=c1($,J);if(X!==void 0)return X;return c1(Z,J)}function c1(Z,$){if(Z[$]!==void 0)return Z[$];let J=Object.keys(Z).sort((Q,X)=>X.length-Q.length);for(let Q of J)if($.startsWith(Q))return Z[Q];return}function n1(Z){let $=d1(c8,n8,Z);if($!==void 0)return $;try{let{getDiscoveredContextWindow:J}=(m1(),m8(p1));return J(Z)}catch{return}}function t1(Z){return d1(d8,t8,Z)}var c8,d8,n8,t8;var i1=B(()=>{V0();c8={"github:copilot":128000,"github:copilot:claude-haiku-4.5":144000,"github:copilot:claude-sonnet-4.6":200000,"github:copilot:claude-opus-4.7":200000,"github:copilot:gpt-4.1":128000,"github:copilot:gpt-4o":128000,"github:copilot:gpt-5-mini":264000,"github:copilot:gpt-5.2-codex":400000,"github:copilot:gpt-5.4":400000,"github:copilot:gpt-5.5":400000,"github:copilot:gemini-3.1-pro-preview":200000,"github:copilot:grok-code-fast-1":256000,"github_copilot/claude-haiku-4.5":144000,"github_copilot/claude-sonnet-4.6":200000,"github_copilot/claude-opus-4.7":200000,"github_copilot/gpt-4.1":128000,"github_copilot/gpt-4o":128000,"github_copilot/gpt-5-mini":264000,"github_copilot/gpt-5.2-codex":400000,"github_copilot/gpt-5.4":400000,"github_copilot/gpt-5.5":400000,"github_copilot/gemini-3.1-pro-preview":200000,"github_copilot/grok-code-fast-1":256000,"gpt-5.5":1050000,"gpt-5.5-mini":400000,"gpt-5.5-nano":400000,"gpt-5.4":1050000,"gpt-5.4-mini":400000,"gpt-5.4-nano":400000,"gpt-4o":128000,"gpt-4o-mini":128000,"gpt-4.1":1047576,"gpt-4.1-mini":1047576,"gpt-4.1-nano":1047576,"gpt-4-turbo":128000,"gpt-4":8192,o1:200000,"o1-mini":128000,"o1-preview":128000,"o1-pro":200000,o3:200000,"o3-mini":200000,"o4-mini":200000,"deepseek-v4-flash":1048576,"deepseek-v4-pro":1048576,"deepseek-chat":128000,"deepseek-reasoner":128000,"llama-3.3-70b-versatile":128000,"llama-3.1-8b-instant":128000,"mixtral-8x7b-32768":32768,"mistral-large-latest":256000,"mistral-small-latest":256000,"devstral-latest":256000,"ministral-3b-latest":256000,"nvidia/llama-3.1-nemotron-70b-instruct":128000,"nvidia/llama-3.1-nemotron-ultra-253b-v1":128000,"nvidia/nemotron-mini-4b-instruct":32768,"meta/llama-3.1-405b-instruct":128000,"meta/llama-3.1-70b-instruct":128000,"meta/llama-3.1-8b-instruct":128000,"meta/llama-3.2-90b-instruct":128000,"meta/llama-3.2-1b-instruct":128000,"meta/llama-3.2-3b-instruct":128000,"meta/llama-3.3-70b-instruct":128000,"google/gemma-2-27b-it":8192,"google/gemma-2-9b-it":8192,"google/gemma-3-27b-it":131072,"google/gemma-3-12b-it":131072,"google/gemma-3-4b-it":131072,"deepseek-ai/deepseek-r1":128000,"deepseek-ai/deepseek-v3":128000,"deepseek-ai/deepseek-v3.2":128000,"qwen/qwen3-32b":128000,"qwen/qwen3-8b":128000,"qwen/qwen2.5-7b-instruct":32768,"mistralai/mistral-large-3-675b-instruct-2512":256000,"mistralai/mistral-large-2-instruct":256000,"mistralai/mistral-small-3.1-24b-instruct-2503":32768,"mistralai/mixtral-8x7b-instruct-v0.1":32768,"microsoft/phi-4-mini-instruct":16384,"microsoft/phi-3.5-mini-instruct":16384,"microsoft/phi-3-mini-128k-instruct":128000,"ibm/granite-3.3-8b-instruct":8192,"ibm/granite-8b-code-instruct":8192,"z-ai/glm5":200000,"z-ai/glm4.7":128000,"moonshotai/kimi-k2.5":200000,"moonshotai/kimi-k2-instruct":128000,"databricks/dbrx-instruct":131072,"ai21labs/jamba-1.5-large-instruct":256000,"ai21labs/jamba-1.5-mini-instruct":256000,"01-ai/yi-large":32768,"MiniMax-M2.7":204800,"MiniMax-M2.7-highspeed":204800,"MiniMax-M2.5":204800,"MiniMax-M2.5-highspeed":204800,"MiniMax-M2.1":204800,"MiniMax-M2.1-highspeed":204800,"minimax-m2.7":204800,"minimax-m2.7-highspeed":204800,"minimax-m2.5":204800,"minimax-m2.5-highspeed":204800,"minimax-m2.1":204800,"minimax-m2.1-highspeed":204800,"MiniMax-Text-01":524288,"MiniMax-Text-01-Preview":262144,"MiniMax-Vision-01":32768,"MiniMax-Vision-01-Fast":16384,"MiniMax-M2":204800,"google/gemini-2.0-flash":1048576,"google/gemini-2.5-pro":1048576,"gemini-2.0-flash":1048576,"gemini-2.5-pro":1048576,"gemini-2.5-flash":1048576,"gemini-3.1-pro":1048576,"gemini-3.1-flash-lite-preview":1048576,"llama3.3:70b":128000,"llama3.1:8b":128000,"llama3.2:3b":128000,"qwen2.5-coder:32b":32768,"qwen2.5-coder:7b":32768,"deepseek-coder-v2:16b":163840,"deepseek-r1:14b":65536,"mistral:7b":32768,"phi4:14b":16384,"gemma2:27b":8192,"codellama:13b":16384,"llama3.2:1b":128000,"qwen3:8b":128000,codestral:32768,"qwen3.6-plus":1e6,"qwen3.5-plus":1e6,"qwen3-coder-plus":1e6,"qwen3-coder-next":262144,"qwen3-max":262144,"qwen3-max-2026-01-23":262144,"kimi-k2.5":262144,"glm-5":202752,"glm-4.7":202752,"kimi-for-coding":262144,"kimi-k2.6":262144,"kimi-k2":131072,"kimi-k2-instruct":131072,"kimi-k2-thinking":262144,"moonshot-v1-8k":8192,"moonshot-v1-32k":32768,"moonshot-v1-128k":131072},d8={"github:copilot":16384,"github:copilot:claude-haiku-4.5":32768,"github:copilot:claude-sonnet-4.6":32000,"github:copilot:claude-opus-4.7":32000,"github:copilot:gpt-4.1":16384,"github:copilot:gpt-4o":16384,"github:copilot:gpt-5-mini":64000,"github:copilot:gpt-5.2-codex":128000,"github:copilot:gpt-5.4":128000,"github:copilot:gpt-5.5":128000,"github:copilot:gemini-3.1-pro-preview":64000,"github:copilot:grok-code-fast-1":64000,"github_copilot/claude-haiku-4.5":32768,"github_copilot/claude-sonnet-4.6":32000,"github_copilot/claude-opus-4.7":32000,"github_copilot/gpt-4.1":16384,"github_copilot/gpt-4o":16384,"github_copilot/gpt-5-mini":64000,"github_copilot/gpt-5.2-codex":128000,"github_copilot/gpt-5.4":128000,"github_copilot/gpt-5.5":128000,"github_copilot/gemini-3.1-pro-preview":64000,"github_copilot/grok-code-fast-1":64000,"gpt-5.5":128000,"gpt-5.5-mini":128000,"gpt-5.5-nano":128000,"gpt-5.4":128000,"gpt-5.4-mini":128000,"gpt-5.4-nano":128000,"gpt-4o":16384,"gpt-4o-mini":16384,"gpt-4.1":32768,"gpt-4.1-mini":32768,"gpt-4.1-nano":32768,"gpt-4-turbo":4096,"gpt-4":4096,o1:1e5,"o1-mini":65536,"o1-preview":32768,"o1-pro":1e5,o3:1e5,"o3-mini":1e5,"o4-mini":1e5,"deepseek-v4-flash":262144,"deepseek-v4-pro":262144,"deepseek-chat":8192,"deepseek-reasoner":65536,"llama-3.3-70b-versatile":32768,"llama-3.1-8b-instant":8192,"mixtral-8x7b-32768":32768,"mistral-large-latest":32768,"mistral-small-latest":32768,"MiniMax-M2.7":131072,"MiniMax-M2.7-highspeed":131072,"MiniMax-M2.5":131072,"MiniMax-M2.5-highspeed":131072,"MiniMax-M2.1":131072,"MiniMax-M2.1-highspeed":131072,"minimax-m2.7":131072,"minimax-m2.7-highspeed":131072,"minimax-m2.5":131072,"minimax-m2.5-highspeed":131072,"minimax-m2.1":131072,"minimax-m2.1-highspeed":131072,"MiniMax-M2":131072,"MiniMax-Text-01":65536,"MiniMax-Text-01-Preview":65536,"MiniMax-Vision-01":16384,"MiniMax-Vision-01-Fast":16384,"google/gemini-2.0-flash":8192,"google/gemini-2.5-pro":65536,"gemini-2.0-flash":8192,"gemini-2.5-pro":65536,"gemini-2.5-flash":65536,"gemini-3.1-pro":65536,"gemini-3.1-flash-lite-preview":65536,"llama3.3:70b":4096,"llama3.1:8b":4096,"llama3.2:3b":4096,"qwen2.5-coder:32b":8192,"qwen2.5-coder:7b":8192,"deepseek-coder-v2:16b":8192,"deepseek-r1:14b":8192,"mistral:7b":4096,"phi4:14b":4096,"gemma2:27b":4096,"codellama:13b":4096,"llama3.2:1b":4096,"qwen3:8b":8192,codestral:8192,"nvidia/llama-3.1-nemotron-70b-instruct":32768,"nvidia/nemotron-mini-4b-instruct":8192,"meta/llama-3.1-405b-instruct":32768,"meta/llama-3.1-70b-instruct":32768,"meta/llama-3.2-90b-instruct":32768,"meta/llama-3.3-70b-instruct":32768,"google/gemma-2-27b-it":4096,"google/gemma-3-27b-it":16384,"google/gemma-3-12b-it":16384,"deepseek-ai/deepseek-r1":32768,"deepseek-ai/deepseek-v3":32768,"deepseek-ai/deepseek-v3.2":32768,"qwen/qwen3-32b":32768,"qwen/qwen2.5-7b-instruct":8192,"mistralai/mistral-large-3-675b-instruct-2512":32768,"mistralai/mixtral-8x7b-instruct-v0.1":8192,"microsoft/phi-4-mini-instruct":4096,"microsoft/phi-3.5-mini-instruct":4096,"ibm/granite-3.3-8b-instruct":4096,"z-ai/glm5":32768,"moonshotai/kimi-k2.5":32768,"databricks/dbrx-instruct":32768,"ai21labs/jamba-1.5-large-instruct":32768,"01-ai/yi-large":8192,"qwen3.6-plus":65536,"qwen3.5-plus":65536,"qwen3-coder-plus":65536,"qwen3-coder-next":65536,"qwen3-max":32768,"qwen3-max-2026-01-23":32768,"kimi-k2.5":32768,"glm-5":16384,"glm-4.7":16384,"kimi-for-coding":32768,"kimi-k2.6":32768,"kimi-k2":32768,"kimi-k2-instruct":32768,"kimi-k2-thinking":32768,"moonshot-v1-8k":4096,"moonshot-v1-32k":16384,"moonshot-v1-128k":32768},n8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})(),t8=(()=>{try{let Z=process.env.CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS;if(Z){let $=JSON.parse(Z);if(typeof $==="object"&&$!==null)return $}}catch{}return{}})()});function l1(){let Z=D()?.transport;return Z==="openai_compat"||Z==="gemini"||Z==="mistral"||Z==="github_copilot"||Z==="codex_responses"}function L0(){return L(process.env.CLAUDE_CODE_DISABLE_1M_CONTEXT)}function l(Z){if(L0())return!1;return/\[1m\]/i.test(Z)}function c2(Z){if(L0())return!1;let $=P(Z);return $.includes("claude-sonnet-4")||$.includes("opus-4-6")||$.includes("opus-4-7")}function o$(Z,$){if(l(Z))return 1e6;if(l1()){let Q=n1(Z);if(Q!==void 0)return Q;return console.error(`[context] Warning: model "${Z}" not in context window table — using conservative 128k default. `+"Add it to src/utils/model/openaiContextWindows.ts for accurate compaction."),i8}let J=t2(Z);if(J?.max_input_tokens&&J.max_input_tokens>=1e5){if(J.max_input_tokens>i2&&L0())return i2;return J.max_input_tokens}if($?.includes(P0)&&c2(Z))return 1e6;if(s8(Z))return 1e6;return i2}function s8(Z){if(L0())return!1;if(l(Z))return!1;if(!P(Z).includes("sonnet-4-6"))return!1;return F().clientDataCache?.coral_reef_sonnet==="true"}function r$(Z,$){if(!Z)return{used:null,remaining:null};let J=Z.input_tokens+Z.cache_creation_input_tokens+Z.cache_read_input_tokens,Q=Math.round(J/$*100),X=Math.min(100,Math.max(0,Q));return{used:X,remaining:100-X}}function o8(Z){let $,J;if(l1()){let Y=t1(Z);if(Y!==void 0)return{default:Y,upperLimit:Y}}let Q=P(Z);if(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 $=l8,J=a8;let X=t2(Z);if(X?.max_tokens&&X.max_tokens>=4096)J=X.max_tokens,$=Math.min($,J);return{default:$,upperLimit:J}}function e$(Z){return o8(Z).upperLimit-1}var i2=200000,i8,l$=20000,l8=32000,a8=64000,a$=8000,s$=64000;var d2=B(()=>{S2();V0();W0();g();H0();C1();i1();i8=(()=>{let Z=parseInt(process.env.CLAUDE_CODE_OPENAI_FALLBACK_CONTEXT_WINDOW??"",10);return!isNaN(Z)&&Z>0?Z:128000})()});var r8,a1;var s1=B(()=>{m0();t();r8=[{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"}],a1=y((Z,$)=>{if(q()==="firstParty")return;let J=Z.toLowerCase();for(let Q of r8){let X=process.env[Q.modelEnvVar],Y=process.env[Q.capabilitiesEnvVar];if(!X||Y===void 0)continue;if(J!==X.toLowerCase())continue;return Y.toLowerCase().split(",").map((V)=>V.trim()).includes($)}return},(Z,$)=>`${Z.toLowerCase()}:${$}`)});function e8(Z){let $=[],J=[];for(let Q of Z)if($4.includes(Q))$.push(Q);else J.push(Q);return{allowed:$,disallowed:J}}function FJ(Z){if(!Z||Z.length===0)return;if(U()){console.warn("Warning: Custom betas are only available for API key users. Ignoring provided betas.");return}let{allowed:$,disallowed:J}=e8(Z);for(let Q of J)console.warn(`Warning: Beta header '${Q}' is not allowed. Only the following betas are supported: ${$4.join(", ")}`);return $.length>0?$:void 0}function o1(Z){let $=a1(Z,"interleaved_thinking");if($!==void 0)return $;let J=P(Z),Q=q();if(Q==="foundry")return!0;if(Q==="firstParty")return!J.includes("claude-3-");return J.includes("claude-opus-4")||J.includes("claude-sonnet-4")}function ZZ(Z){let $=P(Z);return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function $Z(Z){let $=P(Z),J=q();if(J==="foundry")return!0;if(J==="firstParty")return!$.includes("claude-3-");return $.includes("claude-opus-4")||$.includes("claude-sonnet-4")||$.includes("claude-haiku-4")}function JZ(Z){let $=P(Z),J=q();if(J!=="firstParty"&&J!=="foundry")return!1;return $.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-haiku-4-5")}function LJ(Z){let $=P(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 KJ(){let Z=q();if(Z==="vertex"||Z==="bedrock")return o5;return s5}function r1(){return(q()==="firstParty"||q()==="foundry")&&!L(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function DJ(){return q()==="firstParty"&&!L(process.env.CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS)}function NJ(Z,$){let J=[...J4(Z)];if($?.isAgenticQuery){if(!J.includes(Z2))J.push(Z2)}let Q=e1();if(!Q||Q.length===0)return J;return[...J,...Q.filter((X)=>!J.includes(X))]}function Q4(){l2.cache?.clear?.(),J4.cache?.clear?.(),QZ.cache?.clear?.()}var $4,l2,J4,QZ;var X4=B(()=>{m0();Q1();r();S2();b0();n();d2();g();H0();s1();t();q0();$4=[P0];l2=y((Z)=>{let $=[],J=P(Z).includes("haiku"),Q=q(),X=r1();if(!J)$.push(Z2);if(U())$.push(z0);if(l(Z))$.push(P0);if(!L(process.env.DISABLE_INTERLEAVED_THINKING)&&o1(Z))$.push(i5);if(X&&o1(Z)&&!f()&&e().showThinkingSummaries!==!0)$.push(e5);let Y=$Z(Z);if(r1()&&Y)$.push(l5);let V=Z4("tengu_tool_pear"),W=!V&&(L(process.env.CLAUDE_CODE_JSON_TOOL_USE)||k0("tengu_amber_json_tools",!1));if(X&&JZ(Z)&&V)$.push(a5);if(X&&W)$.push(Z1);if(Q==="vertex"&&ZZ(Z))$.push(T2);if(Q==="foundry")$.push(T2);if(X)$.push(r5);if(process.env.ANTHROPIC_BETAS)$.push(...process.env.ANTHROPIC_BETAS.split(",").map((G)=>G.trim()).filter(Boolean));return $}),J4=y((Z)=>{let $=l2(Z);if(q()==="bedrock")return $.filter((J)=>!C2.has(J));return $}),QZ=y((Z)=>{return l2(Z).filter((J)=>C2.has(J))})});import{execFile as XZ}from"child_process";function Y4(Z){return new Promise(($)=>{XZ("security",["find-generic-password","-a",q2(),"-w","-s",Z],{encoding:"utf-8",timeout:YZ},(J,Q)=>{$({stdout:J?null:Q?.trim()||null,timedOut:Boolean(J&&"killed"in J&&J.killed)})})})}function PJ(){if(process.platform!=="darwin"||V2||u())return;let Z=Y4(i(V4)),$=Y4(i());V2=Promise.all([Z,$]).then(([J,Q])=>{if(!J.timedOut)q4(J.stdout);if(!Q.timedOut)a2={stdout:Q.stdout}})}async function EJ(){if(V2)await V2}function W4(){return a2}function s2(){a2=null}var YZ=1e4,a2=null,V2=null;var z4=B(()=>{g();I2()});function o2(Z,$,J){return new Promise((Q,X)=>{if($?.aborted){if(J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q();return}let Y=setTimeout((W,G,x)=>{W?.removeEventListener("abort",G),x()},Z,$,V,Q);function V(){if(clearTimeout(Y),J?.throwOnAbort||J?.abortError)X(J.abortError?.()??Error("aborted"));else Q()}if($?.addEventListener("abort",V,{once:!0}),J?.unref)Y.unref()})}var G4=()=>{};function IJ(){return j4}function x4(){j4.clear()}var j4;var B4=B(()=>{j4=new Map});var aZ={};S1(aZ,{validateForceLoginOrg:()=>lZ,saveOAuthTokensIfNeeded:()=>I4,saveApiKey:()=>x5,removeApiKey:()=>MZ,refreshGcpCredentialsIfNeeded:()=>j5,refreshGcpAuth:()=>k4,refreshAwsAuth:()=>P4,refreshAndGetAwsCredentials:()=>X0,prefetchGcpCredentialsIfSafe:()=>yZ,prefetchAwsCredentialsAndBedRockInfoIfSafe:()=>TZ,prefetchApiKeyFromApiKeyHelperIfSafe:()=>DZ,isUsing3PServices:()=>j2,isTeamSubscriber:()=>pZ,isTeamPremiumSubscriber:()=>Y2,isProSubscriber:()=>n2,isOverageProvisioningAllowed:()=>uZ,isOtelHeadersHelperFromProjectOrLocalSettings:()=>S4,isMaxSubscriber:()=>X2,isGcpAuthRefreshFromProjectSettings:()=>G5,isEnterpriseSubscriber:()=>mZ,isCustomApiKeyApproved:()=>SZ,isConsumerSubscriber:()=>tZ,isClaudeAISubscriber:()=>U,isAwsCredentialExportFromProjectSettings:()=>W5,isAwsAuthRefreshFromProjectSettings:()=>V5,isAnthropicAuthEnabled:()=>U0,is1PApiCustomer:()=>fZ,hasProfileScope:()=>J0,hasOpusAccess:()=>gZ,hasAnthropicApiKeyAuth:()=>wZ,handleOAuth401Error:()=>h2,getSubscriptionType:()=>v,getSubscriptionName:()=>T4,getRateLimitTier:()=>y4,getOtelHeadersFromHelper:()=>dZ,getOauthAccountInfo:()=>G2,getConfiguredApiKeyHelper:()=>a,getClaudeAIOAuthTokensAsync:()=>h0,getClaudeAIOAuthTokens:()=>w,getAuthTokenSource:()=>_0,getApiKeyHelperElapsedMs:()=>FZ,getApiKeyFromConfigOrMacOSKeychain:()=>B2,getApiKeyFromApiKeyHelperCached:()=>e2,getApiKeyFromApiKeyHelper:()=>b4,getAnthropicApiKeyWithSource:()=>u0,getAnthropicApiKey:()=>Z0,getAccountInformation:()=>iZ,clearOAuthTokenCache:()=>B5,clearGcpCredentialsCache:()=>IZ,clearAwsCredentialsCache:()=>bZ,clearApiKeyHelperCache:()=>KZ,checkGcpCredentialsValid:()=>E4,checkAndRefreshOAuthTokenIfNeeded:()=>g0,calculateApiKeyHelperTTL:()=>_4});import{exec as U4}from"child_process";import{mkdir as xZ,stat as BZ}from"fs/promises";import{join as HZ}from"path";function z2(){return L(process.env.CLAUDE_CODE_REMOTE)||process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"}function U0(){if(u())return!1;if(process.env.ANTHROPIC_UNIX_SOCKET)return!!process.env.CLAUDE_CODE_OAUTH_TOKEN;let Z=j2(),J=(C()||{}).apiKeyHelper,Q=process.env.ANTHROPIC_AUTH_TOKEN||J||process.env.CLAUDE_CODE_API_KEY_FILE_DESCRIPTOR,X;try{({source:X}=u0({skipRetrievingKeyFromApiKeyHelper:!0}))}catch{X="none"}let Y=X==="ANTHROPIC_API_KEY"||X==="apiKeyHelper";return!(Z||Q&&!z2()||Y&&!z2())}function _0(){if(u()){if(a())return{source:"apiKeyHelper",hasToken:!0};return{source:"none",hasToken:!1}}if(process.env.ANTHROPIC_AUTH_TOKEN&&!z2())return{source:"ANTHROPIC_AUTH_TOKEN",hasToken:!0};if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{source:"CLAUDE_CODE_OAUTH_TOKEN",hasToken:!0};if(r0()){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(a()&&!z2())return{source:"apiKeyHelper",hasToken:!0};let J=w();if(N0(J?.scopes)&&J?.accessToken)return{source:"claude.ai",hasToken:!0};return{source:"none",hasToken:!1}}function Z0(){let{key:Z}=u0();return Z}function wZ(){try{let{key:Z,source:$}=u0({skipRetrievingKeyFromApiKeyHelper:!0});return Z!==null&&$!=="none"}catch{return!1}}function u0(Z={}){let $=(()=>{let V=D();if(V?.transport!=="anthropic")return;let W=V.apiKey?.trim();return W&&W.length>0?W:void 0})();if(u()){if($)return{key:$,source:"ANTHROPIC_API_KEY"};if(a())return{key:Z.skipRetrievingKeyFromApiKeyHelper?null:e2(),source:"apiKeyHelper"};return{key:null,source:"none"}}let J=F4()?void 0:$;if($2()&&J)return{key:J,source:"ANTHROPIC_API_KEY"};if(L(process.env.CI)){let V=v2();if(V)return{key:V,source:"ANTHROPIC_API_KEY"};if(!j2()&&!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&&!j2())return{key:J,source:"ANTHROPIC_API_KEY"};return{key:null,source:"none"}}if(J&&F().customApiKeyResponses?.approved?.includes(e0(J)))return{key:J,source:"ANTHROPIC_API_KEY"};let Q=v2();if(Q)return{key:Q,source:"ANTHROPIC_API_KEY"};if(a()){if(Z.skipRetrievingKeyFromApiKeyHelper)return{key:null,source:"apiKeyHelper"};return{key:e2(),source:"apiKeyHelper"}}let Y=B2();if(Y)return Y;return{key:null,source:"none"}}function a(){if(u())return b("flagSettings")?.apiKeyHelper;return(C()||{}).apiKeyHelper}function O4(){let Z=a();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.apiKeyHelper===Z||J?.apiKeyHelper===Z}function Y5(){return(C()||{}).awsAuthRefresh}function V5(){let Z=Y5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.awsAuthRefresh===Z||J?.awsAuthRefresh===Z}function q5(){return(C()||{}).awsCredentialExport}function W5(){let Z=q5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.awsCredentialExport===Z||J?.awsCredentialExport===Z}function _4(){let Z=process.env.CLAUDE_CODE_API_KEY_HELPER_TTL_MS;if(Z){let $=parseInt(Z,10);if(!Number.isNaN($)&&$>=0)return $;z(`Found CLAUDE_CODE_API_KEY_HELPER_TTL_MS env var, but it was not a valid number. Got ${Z}`,{level:"error"})}return RZ}function FZ(){let Z=c?.startedAt;return Z?Date.now()-Z:0}async function b4(Z){if(!a())return null;let $=_4();if(I){if(Date.now()-I.timestamp<$)return I.value;if(!c)c={promise:H4(Z,!1,D0),startedAt:null};return I.value}if(c)return c.promise;return c={promise:H4(Z,!0,D0),startedAt:Date.now()},c.promise}async function H4(Z,$,J){try{let Q=await LZ(Z);if(J!==D0)return Q;if(Q!==null)I={value:Q,timestamp:Date.now()};return Q}catch(Q){if(J!==D0)return" ";let X=Q instanceof Error?Q.message:String(Q);if(console.error(h.red(`apiKeyHelper failed: ${X}`)),z(`Error getting API key from apiKeyHelper: ${X}`,{level:"error"}),!$&&I&&I.value!==" ")return I={...I,timestamp:Date.now()},I.value;return I={value:" ",timestamp:Date.now()}," "}finally{if(J===D0)c=null}}async function LZ(Z){let $=a();if(!$)return null;if(O4()){if(!d()&&!Z){let Y=Error(`Security: apiKeyHelper executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("apiKeyHelper invoked before trust check",Y),j("tengu_apiKeyHelper_missing_trust11",{}),null}}let J=await x0($,{shell:!0,timeout:600000,reject:!1});if(J.failed){let X=J.timedOut?"timed out":`exited ${J.exitCode}`,Y=J.stderr?.trim();throw Error(Y?`${X}: ${Y}`:X)}let Q=J.stdout?.trim();if(!Q)throw Error("did not return a value");return Q}function e2(){return I?.value??null}function KZ(){D0++,I=null,c=null}function DZ(Z){if(O4()&&!d())return;b4(Z)}async function UZ(){let Z=Y5();if(!Z)return!1;if(V5()){if(!d()&&!f()){let J=Error(`Security: awsAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsAuthRefresh invoked before trust check",J),j("tengu_awsAuthRefresh_missing_trust",{}),!1}}try{return z("Fetching AWS caller identity for AWS auth refresh command"),await y2(),z("Fetched AWS caller identity, skipping AWS auth refresh command"),!1}catch{return P4(Z)}}function P4(Z){z("Running AWS auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=U4(Z,{timeout:OZ});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("AWS auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("AWS auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running awsAuthRefresh (in settings or ~/.claudio/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}async function _Z(){let Z=q5();if(!Z)return null;if(W5()){if(!d()&&!f()){let J=Error(`Security: awsCredentialExport executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("awsCredentialExport invoked before trust check",J),j("tengu_awsCredentialExport_missing_trust",{}),null}}try{return z("Fetching AWS caller identity for credential export command"),await y2(),z("Fetched AWS caller identity, skipping AWS credential export command"),null}catch{try{z("Running AWS credential export command");let $=await x0(Z,{shell:!0,reject:!1});if($.exitCode!==0||!$.stdout)throw Error("awsCredentialExport did not return a valid value");let J=J5($.stdout.trim());if(!m5(J))throw Error("awsCredentialExport did not return valid AWS STS output structure");return z("AWS credentials retrieved from awsCredentialExport"),{accessKeyId:J.Credentials.AccessKeyId,secretAccessKey:J.Credentials.SecretAccessKey,sessionToken:J.Credentials.SessionToken}}catch($){let J=h.red("Error getting AWS credentials from awsCredentialExport (in settings or ~/.claudio/config.json):");if($ instanceof Error)console.error(J,$.message);else console.error(J,$);return null}}}function bZ(){X0.cache.clear()}function z5(){return(C()||{}).gcpAuthRefresh}function G5(){let Z=z5();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.gcpAuthRefresh===Z||J?.gcpAuthRefresh===Z}async function E4(){try{let{GoogleAuth:Z}=await import("google-auth-library"),$=new Z({scopes:["https://www.googleapis.com/auth/cloud-platform"]}),J=(async()=>{await(await $.getClient()).getAccessToken()})(),Q=o2(PZ).then(()=>{throw new M4("GCP credentials check timed out")});return await Promise.race([J,Q]),!0}catch{return!1}}async function kZ(){let Z=z5();if(!Z)return!1;if(G5()){if(!d()&&!f()){let J=Error(`Security: gcpAuthRefresh executed before workspace trust is confirmed. If you see this message, post in ${MACRO.FEEDBACK_CHANNEL}.`);return f0("gcpAuthRefresh invoked before trust check",J),j("tengu_gcpAuthRefresh_missing_trust",{}),!1}}try{if(z("Checking GCP credentials validity for auth refresh"),await E4())return z("GCP credentials are valid, skipping auth refresh command"),!1}catch{}return k4(Z)}function k4(Z){z("Running GCP auth refresh command");let $=S.getInstance();return $.startAuthentication(),new Promise((J)=>{let Q=U4(Z,{timeout:vZ});Q.stdout.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.addOutput(Y),z(Y,{level:"debug"})}),Q.stderr.on("data",(X)=>{let Y=X.toString().trim();if(Y)$.setError(Y),z(Y,{level:"error"})}),Q.on("close",(X,Y)=>{if(X===0)z("GCP auth refresh completed successfully"),$.endAuthentication(!0),J(!0);else{let W=Y==="SIGTERM"?h.red("GCP auth refresh timed out after 3 minutes. Run your auth command manually in a separate terminal."):h.red("Error running gcpAuthRefresh (in settings or ~/.claudio/config.json):");console.error(W),$.endAuthentication(!1),J(!1)}})})}function IZ(){j5.cache.clear()}function yZ(){if(!z5())return;if(G5()){if(!d()&&!f())return}j5()}function TZ(){let Z=Y5(),$=q5();if(!Z&&!$)return;if(V5()||W5()){if(!d()&&!f())return}X0(),H()}function CZ(Z){return/^[a-zA-Z0-9-_]+$/.test(Z)}async function x5(Z){if(!CZ(Z))throw Error("Invalid API key format. API key must contain only alphanumeric characters, dashes, and underscores.");await v4();let $=!1;if(process.platform==="darwin")try{let Q=i(),X=q2(),Y=Buffer.from(Z,"utf-8").toString("hex"),V=`add-generic-password -U -a "${X}" -s "${Q}" -X "${Y}"
2
- `;await x0("security",["-i"],{input:V,reject:!1}),j("tengu_api_key_saved_to_keychain",{}),$=!0}catch(Q){K(Q),j("tengu_api_key_keychain_error",{error:p(Q)}),j("tengu_api_key_saved_to_config",{})}else j("tengu_api_key_saved_to_config",{});let J=e0(Z);M((Q)=>{let X=Q.customApiKeyResponses?.approved??[];return{...Q,primaryApiKey:$?Q.primaryApiKey:Z,customApiKeyResponses:{...Q.customApiKeyResponses,approved:X.includes(J)?X:[...X,J],rejected:Q.customApiKeyResponses?.rejected??[]}}}),B2.cache.clear?.(),s2()}function SZ(Z){let $=F(),J=e0(Z);return $.customApiKeyResponses?.approved?.includes(J)??!1}async function MZ(){await v4(),M((Z)=>({...Z,primaryApiKey:void 0})),B2.cache.clear?.(),s2()}async function v4(){try{await g5()}catch(Z){K(Z)}}function I4(Z){if(!N0(Z.scopes))return j("tengu_oauth_tokens_not_claude_ai",{}),{success:!0};if(!Z.refreshToken||!Z.expiresAt)return j("tengu_oauth_tokens_inference_only",{}),{success:!0};let $=x2(),J=$.name;try{let Q=$.read()||{},X=Q.claudeAiOauth;Q.claudeAiOauth={accessToken:Z.accessToken,refreshToken:Z.refreshToken,expiresAt:Z.expiresAt,scopes:Z.scopes,subscriptionType:Z.subscriptionType??X?.subscriptionType??null,rateLimitTier:Z.rateLimitTier??X?.rateLimitTier??null};let Y=$.update(Q);if(Y.success)j("tengu_oauth_tokens_saved",{storageBackend:J});else j("tengu_oauth_tokens_save_failed",{storageBackend:J});return w.cache?.clear?.(),Q4(),x4(),Y}catch(Q){return K(Q),j("tengu_oauth_tokens_save_exception",{storageBackend:J,error:p(Q)}),{success:!1,warning:"Failed to save OAuth tokens"}}}function B5(){w.cache?.clear?.(),K0()}async function AZ(){try{let{mtimeMs:Z}=await BZ(HZ($5(),".credentials.json"));if(Z!==R4)R4=Z,B5()}catch{w.cache?.clear?.()}}function h2(Z){let $=r2.get(Z);if($)return $;let J=hZ(Z).finally(()=>{r2.delete(Z)});return r2.set(Z,J),J}async function hZ(Z){B5();let $=await h0();if(!$?.refreshToken)return!1;if($.accessToken!==Z)return j("tengu_oauth_401_recovered_from_keychain",{}),!0;return g0(0,!0)}async function h0(){if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN||r0())return w();try{let J=(await x2().readAsync())?.claudeAiOauth;if(!J?.accessToken)return null;return J}catch(Z){return K(Z),null}}function g0(Z=0,$=!1){if(Z===0&&!$){if(M0)return M0;return M0=Z5(Z,$).finally(()=>{M0=null}),M0}return Z5(Z,$)}async function Z5(Z,$){await AZ();let Q=w();if(!$){if(!Q?.refreshToken||!A0(Q.expiresAt))return!1}if(!Q?.refreshToken)return!1;if(!N0(Q.scopes))return!1;w.cache?.clear?.(),K0();let X=await h0();if(!X?.refreshToken||!A0(X.expiresAt))return!1;let Y=$5();await xZ(Y,{recursive:!0});let V;try{j("tengu_oauth_token_refresh_lock_acquiring",{}),V=await K4(Y),j("tengu_oauth_token_refresh_lock_acquired",{})}catch(W){if(W.code==="ELOCKED"){if(Z<5)return j("tengu_oauth_token_refresh_lock_retry",{retryCount:Z+1}),await o2(1000+Math.random()*1000),Z5(Z+1,$);return j("tengu_oauth_token_refresh_lock_retry_limit_reached",{maxRetries:5}),!1}return K(W),j("tengu_oauth_token_refresh_lock_error",{error:p(W)}),!1}try{w.cache?.clear?.(),K0();let W=await h0();if(!W?.refreshToken||!A0(W.expiresAt))return j("tengu_oauth_token_refresh_race_resolved",{}),!1;j("tengu_oauth_token_refresh_starting",{});let G=await D4(W.refreshToken,{scopes:N0(W.scopes)?void 0:W.scopes});return I4(G),w.cache?.clear?.(),K0(),!0}catch(W){K(W),w.cache?.clear?.(),K0();let G=await h0();if(G&&!A0(G.expiresAt))return j("tengu_oauth_token_refresh_race_recovered",{}),!0;return!1}finally{j("tengu_oauth_token_refresh_lock_releasing",{}),await V(),j("tengu_oauth_token_refresh_lock_released",{})}}function U(){if(!U0())return!1;return N0(w()?.scopes)}function J0(){return w()?.scopes?.includes(L4)??!1}function fZ(){{let Z=D()?.transport;if(Z==="bedrock"||Z==="vertex"||Z==="foundry")return!1}if(U())return!1;return!0}function G2(){return U0()?F().oauthAccount:void 0}function uZ(){let $=G2()?.billingType;if(!U()||!$)return!1;if($!=="stripe_subscription"&&$!=="stripe_subscription_contracted"&&$!=="apple_subscription"&&$!=="google_play_subscription")return!1;return!0}function gZ(){let Z=v();return Z==="max"||Z==="enterprise"||Z==="team"||Z==="pro"||Z===null}function v(){if(k5())return E5();if(!U0())return null;let Z=w();if(!Z)return null;return Z.subscriptionType??null}function X2(){return v()==="max"}function pZ(){return v()==="team"}function Y2(){return v()==="team"&&y4()==="default_claude_max_5x"}function mZ(){return v()==="enterprise"}function n2(){return v()==="pro"}function y4(){if(!U0())return null;let Z=w();if(!Z)return null;return Z.rateLimitTier??null}function T4(){switch(v()){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 j2(){let Z=D()?.transport;if(!Z)return!1;return Z!=="anthropic"}function C4(){return(C()||{}).otelHeadersHelper}function S4(){let Z=C4();if(!Z)return!1;let $=b("projectSettings"),J=b("localSettings");return $?.otelHeadersHelper===Z||J?.otelHeadersHelper===Z}function dZ(){let Z=C4();if(!Z)return{};let $=parseInt(process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS||cZ.toString());if(W2&&Date.now()-w4<$)return W2;if(S4()){if(!d())return{}}try{let J=Q5(Z,{timeout:30000})?.toString().trim();if(!J)throw Error("otelHeadersHelper did not return a valid value");let Q=J5(J);if(typeof Q!=="object"||Q===null||Array.isArray(Q))throw Error("otelHeadersHelper must return a JSON object with string key-value pairs");for(let[X,Y]of Object.entries(Q))if(typeof Y!=="string")throw Error(`otelHeadersHelper returned non-string value for key "${X}": ${typeof Y}`);return W2=Q,w4=Date.now(),W2}catch(J){throw K(Error(`Error getting OpenTelemetry headers from otelHeadersHelper (in settings): ${p(J)}`)),J}}function nZ(Z){return Z==="max"||Z==="pro"}function tZ(){let Z=v();return U()&&Z!==null&&nZ(Z)}function iZ(){if(q()!=="firstParty")return;let{source:$}=_0(),J={};if($==="CLAUDE_CODE_OAUTH_TOKEN"||$==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR")J.tokenSource=$;else if(U())J.subscription=T4();else J.tokenSource=$;let{key:Q,source:X}=u0();if(Q)J.apiKeySource=X;if($==="claude.ai"||X==="/login managed key"){let V=G2()?.organizationName;if(V)J.organization=V}let Y=G2()?.emailAddress;if(($==="claude.ai"||X==="/login managed key")&&Y)J.email=Y;return J}async function lZ(){if(process.env.ANTHROPIC_UNIX_SOCKET)return{valid:!0};if(!U0())return{valid:!0};let Z=b("policySettings")?.forceLoginOrgUUID;if(!Z)return{valid:!0};await g0();let $=w();if(!$)return{valid:!0};let{source:J}=_0(),Q=J==="CLAUDE_CODE_OAUTH_TOKEN"||J==="CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR",X=await G0($.accessToken);if(!X)return{valid:!1,message:`Unable to verify organization for the current authentication token.
3
- This machine requires organization ${Z} but the profile could not be fetched.
4
- This may be a network error, or the token may lack the user:profile scope required for
5
- verification (tokens from 'claude setup-token' do not include this scope).
6
- Try again, or obtain a full-scope token via 'claude auth login'.`};let Y=X.organization.uuid;if(Y===Z)return{valid:!0};if(Q)return{valid:!1,message:`The ${J==="CLAUDE_CODE_OAUTH_TOKEN"?"CLAUDE_CODE_OAUTH_TOKEN":"CLAUDE_CODE_OAUTH_TOKEN_FILE_DESCRIPTOR"} environment variable provides a token for a
7
- different organization than required by this machine's managed settings.
8
-
9
- Required organization: ${Z}
10
- Token organization: ${Y}
11
-
12
- Remove the environment variable or obtain a token for the correct organization.`};return{valid:!1,message:`Your authentication token belongs to organization ${Y},
13
- but this machine requires organization ${Z}.
14
-
15
- Please log in with the correct organization: claude auth login`}}var RZ=300000,I=null,c=null,D0=0,NZ=3600000,OZ=180000,X0,PZ=5000,EZ=3600000,vZ=180000,j5,B2,w,R4=0,r2,M0=null,W2=null,w4=0,cZ=1740000,M4;var n=B(()=>{jZ();u5();m0();b0();J2();a0();t();r();V0();v5();N4();E2();f5();p5();d5();t5();X4();W0();j0();g();A5();qZ();zZ();c0();WZ();GZ();z4();I2();q0();G4();VZ();B4();X0=X5(async()=>{let Z=await UZ(),$=await _Z();if(Z||$)await c5();return $},NZ);j5=X5(async()=>{return await kZ()},EZ);B2=y(()=>{if(u())return null;if(process.platform==="darwin"){let $=W4();if($){if($.stdout)return{key:$.stdout,source:"/login managed key"}}else{let J=i();try{let Q=Q5(`security find-generic-password -a $USER -w -s "${J}"`);if(Q)return{key:Q,source:"/login managed key"}}catch(Q){K(Q)}}}let Z=F();if(!Z.primaryApiKey)return null;return{key:Z.primaryApiKey,source:"/login managed key"}});w=y(()=>{if(u())return null;if(process.env.CLAUDE_CODE_OAUTH_TOKEN)return{accessToken:process.env.CLAUDE_CODE_OAUTH_TOKEN,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};let Z=r0();if(Z)return{accessToken:Z,refreshToken:null,expiresAt:null,scopes:["user:inference"],subscriptionType:null,rateLimitTier:null};try{let Q=x2().read()?.claudeAiOauth;if(!Q?.accessToken)return null;return Q}catch($){return K($),null}});r2=new Map;M4=class M4 extends Error{}});function N0(Z){return Boolean(Z?.includes(H5))}function sZ(Z){return Z?.split(" ").filter(Boolean)??[]}function DQ({codeChallenge:Z,state:$,port:J,isManual:Q,loginWithClaudeAi:X,inferenceOnly:Y,orgUUID:V,loginHint:W,loginMethod:G}){let x=X?N().CLAUDE_AI_AUTHORIZE_URL:N().CONSOLE_AUTHORIZE_URL,R=new URL(x);R.searchParams.append("code","true"),R.searchParams.append("client_id",N().CLIENT_ID),R.searchParams.append("response_type","code"),R.searchParams.append("redirect_uri",Q?N().MANUAL_REDIRECT_URL:`http://localhost:${J}/callback`);let Q0=Y?[H5]:f4;if(R.searchParams.append("scope",Q0.join(" ")),R.searchParams.append("code_challenge",Z),R.searchParams.append("code_challenge_method","S256"),R.searchParams.append("state",$),V)R.searchParams.append("orgUUID",V);if(W)R.searchParams.append("login_hint",W);if(G)R.searchParams.append("login_method",G);return R.toString()}async function NQ(Z,$,J,Q,X=!1,Y){let V={grant_type:"authorization_code",code:Z,redirect_uri:X?N().MANUAL_REDIRECT_URL:`http://localhost:${Q}/callback`,client_id:N().CLIENT_ID,code_verifier:J,state:$};if(Y!==void 0)V.expires_in=Y;let W=await O.post(N().TOKEN_URL,V,{headers:{"Content-Type":"application/json"},timeout:15000});if(W.status!==200)throw Error(W.status===401?"Authentication failed: Invalid authorization code":`Token exchange failed (${W.status}): ${W.statusText}`);return j("tengu_oauth_token_exchange_success",{}),W.data}async function D4(Z,{scopes:$}={}){let J={grant_type:"refresh_token",refresh_token:Z,client_id:N().CLIENT_ID,scope:(($?.length)?$:h4).join(" ")};try{let Q=await O.post(N().TOKEN_URL,J,{headers:{"Content-Type":"application/json"},timeout:15000});if(Q.status!==200)throw Error(`Token refresh failed: ${Q.statusText}`);let X=Q.data,{access_token:Y,refresh_token:V=Z,expires_in:W}=X,G=Date.now()+W*1000,x=sZ(X.scope);j("tengu_oauth_token_refresh_success",{});let R=F(),Q0=w(),E=R.oauthAccount?.billingType!==void 0&&R.oauthAccount?.accountCreatedAt!==void 0&&R.oauthAccount?.subscriptionCreatedAt!==void 0&&Q0?.subscriptionType!=null&&Q0?.rateLimitTier!=null?null:await oZ(Y);if(E&&R.oauthAccount){let s={};if(E.displayName!==void 0)s.displayName=E.displayName;if(typeof E.hasExtraUsageEnabled==="boolean")s.hasExtraUsageEnabled=E.hasExtraUsageEnabled;if(E.billingType!==null)s.billingType=E.billingType;if(E.accountCreatedAt!==void 0)s.accountCreatedAt=E.accountCreatedAt;if(E.subscriptionCreatedAt!==void 0)s.subscriptionCreatedAt=E.subscriptionCreatedAt;if(Object.keys(s).length>0)M((p0)=>({...p0,oauthAccount:p0.oauthAccount?{...p0.oauthAccount,...s}:p0.oauthAccount}))}return{accessToken:Y,refreshToken:V,expiresAt:G,scopes:x,subscriptionType:E?.subscriptionType??Q0?.subscriptionType??null,rateLimitTier:E?.rateLimitTier??Q0?.rateLimitTier??null,profile:E?.rawProfile,tokenAccount:X.account?{uuid:X.account.uuid,emailAddress:X.account.email_address,organizationUuid:X.organization?.uuid}:void 0}}catch(Q){let X=O.isAxiosError(Q)&&Q.response?.data?JSON.stringify(Q.response.data):void 0;throw j("tengu_oauth_token_refresh_failure",{error:Q.message,...X&&{responseBody:X}}),Q}}async function UQ(Z){let $=await O.get(N().ROLES_URL,{headers:{Authorization:`Bearer ${Z}`}});if($.status!==200)throw Error(`Failed to fetch user roles: ${$.statusText}`);let J=$.data;if(!F().oauthAccount)throw Error("OAuth account information not found in config");M((X)=>({...X,oauthAccount:X.oauthAccount?{...X.oauthAccount,organizationRole:J.organization_role,workspaceRole:J.workspace_role,organizationName:J.organization_name}:X.oauthAccount})),j("tengu_oauth_roles_stored",{org_role:J.organization_role})}async function OQ(Z){try{let $=await O.post(N().API_KEY_URL,null,{headers:{Authorization:`Bearer ${Z}`}}),J=$.data?.raw_key;if(J)return await x5(J),j("tengu_oauth_api_key",{status:"success",statusCode:$.status}),J;return null}catch($){throw j("tengu_oauth_api_key",{status:"failure",error:$ instanceof Error?$.message:String($)}),$}}function A0(Z){if(Z===null)return!1;let $=300000;return Date.now()+$>=Z}async function oZ(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 X={subscriptionType:Q,rateLimitTier:$?.organization?.rate_limit_tier??null,hasExtraUsageEnabled:$?.organization?.has_extra_usage_enabled??null,billingType:$?.organization?.billing_type??null};if($?.account?.display_name)X.displayName=$.account.display_name;if($?.account?.created_at)X.accountCreatedAt=$.account.created_at;if($?.organization?.subscription_created_at)X.subscriptionCreatedAt=$.organization.subscription_created_at;return j("tengu_oauth_profile_fetch_success",{}),{...X,rawProfile:$}}async function _Q(){let $=F().oauthAccount?.organizationUuid;if($)return $;let J=w()?.accessToken;if(J===void 0||!J0())return null;let X=(await G0(J))?.organization?.uuid;if(!X)return null;return X}async function bQ(){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(!F().oauthAccount)A4({accountUuid:Z,emailAddress:$,organizationUuid:J})}await g0();let X=F();if(X.oauthAccount&&X.oauthAccount.billingType!==void 0&&X.oauthAccount.accountCreatedAt!==void 0&&X.oauthAccount.subscriptionCreatedAt!==void 0||!U()||!J0())return!1;let Y=w();if(Y?.accessToken){let V=await G0(Y.accessToken);if(V){if(Q)z("OAuth profile fetch succeeded, overriding env var account info",{level:"info"});return A4({accountUuid:V.account.uuid,emailAddress:V.account.email,organizationUuid:V.organization.uuid,displayName:V.account.display_name||void 0,hasExtraUsageEnabled:V.organization.has_extra_usage_enabled??!1,billingType:V.organization.billing_type??void 0,accountCreatedAt:V.account.created_at,subscriptionCreatedAt:V.organization.subscription_created_at??void 0}),!0}}return!1}function A4({accountUuid:Z,emailAddress:$,organizationUuid:J,displayName:Q,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:V,subscriptionCreatedAt:W}){let G={accountUuid:Z,emailAddress:$,organizationUuid:J,hasExtraUsageEnabled:X,billingType:Y,accountCreatedAt:V,subscriptionCreatedAt:W};if(Q)G.displayName=Q;M((x)=>{if(x.oauthAccount?.accountUuid===G.accountUuid&&x.oauthAccount?.emailAddress===G.emailAddress&&x.oauthAccount?.organizationUuid===G.organizationUuid&&x.oauthAccount?.displayName===G.displayName&&x.oauthAccount?.hasExtraUsageEnabled===G.hasExtraUsageEnabled&&x.oauthAccount?.billingType===G.billingType&&x.oauthAccount?.accountCreatedAt===G.accountCreatedAt&&x.oauthAccount?.subscriptionCreatedAt===G.subscriptionCreatedAt)return x;return{...x,oauthAccount:G}})}var N4=B(()=>{s0();J2();b0();n();W0();j0();E2()});
16
- export{R5 as uZ,w5 as vZ,Y3 as wZ,V3 as xZ,g4 as yZ,c4 as zZ,q3 as AZ,D5 as BZ,d0 as CZ,n0 as DZ,Y0 as EZ,P2 as FZ,q as GZ,x3 as HZ,B3 as IZ,H3 as JZ,R3 as KZ,t as LZ,H as MZ,_3 as NZ,a0 as OZ,v3 as PZ,I3 as QZ,P5 as RZ,S3 as SZ,M3 as TZ,v5 as UZ,m3 as VZ,G0 as WZ,E2 as XZ,N0 as YZ,sZ as ZZ,DQ as _Z,NQ as $Z,D4 as a0,UQ as b0,OQ as c0,A0 as d0,oZ as e0,_Q as f0,bQ as g0,A4 as h0,N4 as i0,s3 as j0,o4 as k0,I5 as l0,f5 as m0,e0 as n0,p5 as o0,J9 as p0,d5 as q0,S as r0,t5 as s0,P0 as t0,l5 as u0,a5 as v0,V9 as w0,q9 as x0,r5 as y0,W9 as z0,e5 as A0,z9 as B0,G9 as C0,j9 as D0,S2 as E0,A as F0,V1 as G0,$8 as H0,k9 as I0,v9 as J0,I9 as K0,q1 as L0,y9 as M0,T9 as N0,J8 as O0,C9 as P0,S9 as Q0,M9 as R0,A9 as S0,h9 as T0,Y8 as U0,f9 as V0,u9 as W0,g9 as X0,p9 as Y0,j1 as Z0,y0 as _0,z8 as $0,G8 as a1,f2 as b1,F8 as c1,l9 as d1,w1 as e1,F1 as f1,L8 as g1,u2 as h1,D1 as i1,N1 as j1,J$ as k1,O1 as l1,K$ as m1,D$ as n1,p2 as o1,N$ as p1,b8 as q1,w0 as r1,C0 as s1,v1 as t1,U$ as u1,v0 as v1,I1 as w1,_ as x1,P as y1,P8 as z1,O$ as A1,_1 as B1,I0 as C1,_$ as D1,y1 as E1,T1 as F1,b$ as G1,T as H1,P$ as I1,v8 as J1,E$ as K1,k$ as L1,v$ as M1,H0 as N1,y$ as O1,C1 as P1,g1 as Q1,p8 as R1,m1 as S1,l$ as T1,a$ as U1,s$ as V1,L0 as W1,l as X1,o$ as Y1,s8 as Z1,r$ as _1,o8 as $1,e$ as a2,d2 as b2,a1 as c2,s1 as d2,FJ as e2,JZ as f2,LJ as g2,KJ as h2,r1 as i2,DJ as j2,J4 as k2,QZ as l2,NJ as m2,Q4 as n2,X4 as o2,PJ as p2,EJ as q2,z4 as r2,o2 as s2,G4 as t2,IJ as u2,x4 as v2,B4 as w2,U0 as x2,_0 as y2,Z0 as z2,wZ as A2,u0 as B2,a as C2,V5 as D2,W5 as E2,_4 as F2,FZ as G2,b4 as H2,e2 as I2,KZ as J2,DZ as K2,P4 as L2,X0 as M2,bZ as N2,G5 as O2,E4 as P2,k4 as Q2,j5 as R2,IZ as S2,yZ as T2,TZ as U2,B2 as V2,x5 as W2,SZ as X2,MZ as Y2,I4 as Z2,w as _2,B5 as $2,h2 as a3,h0 as b3,g0 as c3,U as d3,J0 as e3,fZ as f3,G2 as g3,uZ as h3,gZ as i3,v as j3,X2 as k3,pZ as l3,Y2 as m3,mZ as n3,n2 as o3,y4 as p3,T4 as q3,j2 as r3,S4 as s3,dZ as t3,tZ as u3,iZ as v3,lZ as w3,aZ as x3,n as y3};
@@ -1,2 +0,0 @@
1
- import{XV as N,aW as $}from"./cli-0.1.15-y6fkcbes.mjs";import{_2 as M,f0 as L,i0 as Y,y3 as Z}from"./cli-0.1.15-q35rzjnz.mjs";import{$4 as X,K4 as K}from"./cli-0.1.15-x69hfzmj.mjs";import{_5 as Q,d6 as V}from"./cli-0.1.15-4892kydg.mjs";import{hda as J,ida as W}from"./cli-0.1.15-6mad0r56.mjs";import{Xea as P,cfa as S}from"./cli-0.1.15-nk50qhet.mjs";import{bma as R}from"./cli-0.1.15-mhbfhhf6.mjs";async function C(){let F=M()?.accessToken;if(!F)throw Error("Claude Code web sessions require authentication with a Claude.ai account. API key authentication is not sufficient. Please run /login to authenticate, or check your authentication status with /status.");let y=await L();if(!y)throw Error("Unable to get organization UUID");let G=`${J().BASE_API_URL}/v1/environment_providers`;try{let B={...N(F),"x-organization-uuid":y},q=await K.get(G,{headers:B,timeout:15000});if(q.status!==200)throw Error(`Failed to fetch environments: ${q.status} ${q.statusText}`);return q.data.environments}catch(B){let q=P(B);throw Q(q),Error(`Failed to fetch environments: ${q.message}`)}}async function j(F){let y=M()?.accessToken;if(!y)throw Error("No access token available");let G=await L();if(!G)throw Error("Unable to get organization UUID");let B=`${J().BASE_API_URL}/v1/environment_providers/cloud/create`;return(await K.post(B,{name:F,kind:"anthropic_cloud",description:"",config:{environment_type:"anthropic",cwd:"/home/user",init_script:null,environment:{},languages:[{name:"python",version:"3.11"},{name:"node",version:"20"}],network_config:{allowed_hosts:[],allow_default_hosts:!0}}},{headers:{...N(y),"anthropic-beta":"ccr-byoc-2025-07-29","x-organization-uuid":G},timeout:15000})).data}var b=R(()=>{X();W();Y();Z();S();V();$()});
2
- export{C as zQ,j as AQ,b as BQ};
@@ -1,2 +0,0 @@
1
- import{bma as aH}from"./cli-0.1.15-mhbfhhf6.mjs";import{createRequire as cH}from"module";function NC(H,C){if(typeof H=="function")C=H,H={};return this.ondata=C,H}function CJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC],function(K){return XC(fC(K.data[0],K.data[1]))},0,J)}function fC(H,C){return RC(H,C||{},0,0)}function mH(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC],function(K){return XC(yC(K.data[0],VH(K.data[1])))},1,J)}function yC(H,C){return wC(H,{i:2},C&&C.out,C&&C.dictionary)}function NJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,yH,function(){return[qH]}],function(K){return XC(qH(K.data[0],K.data[1]))},2,J)}function qH(H,C){if(!C)C={};var J=GC(),K=H.length;J.p(H);var Q=RC(H,C,$H(C),8),V=Q.length;return XH(Q,C),g(Q,V-8,J.d()),g(Q,V-4,K),Q}function JJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC,vH,function(){return[tC]}],function(K){return XC(tC(K.data[0],K.data[1]))},3,J)}function tC(H,C){var J=YH(H);if(J+8>H.length)B(6,"invalid gzip data");return wC(H.subarray(J,-8),{i:2},C&&C.out||new Z(_H(H)),C&&C.dictionary)}function WJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[ZC,kH,function(){return[MH]}],function(K){return XC(MH(K.data[0],K.data[1]))},4,J)}function MH(H,C){if(!C)C={};var J=eC();J.p(H);var K=RC(H,C,C.dictionary?6:2,4);return RH(K,C),g(K,K.length-4,J.d()),K}function QJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return UC(H,C,[TC,hH,function(){return[HH]}],function(K){return XC(HH(K.data[0],VH(K.data[1])))},5,J)}function HH(H,C){return wC(H.subarray(NH(H,C&&C.dictionary),-4),{i:2},C&&C.out,C&&C.dictionary)}function FJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);return H[0]==31&&H[1]==139&&H[2]==8?JJ(H,C,J):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?mH(H,C,J):QJ(H,C,J)}function qJ(H,C){return H[0]==31&&H[1]==139&&H[2]==8?tC(H,C):(H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31?yC(H,C):HH(H,C)}function $C(H,C){if(C){var J=new Z(H.length);for(var K=0;K<H.length;++K)J[K]=H.charCodeAt(K);return J}if(PH)return PH.encode(H);var Q=H.length,V=new Z(H.length+(H.length>>1)),X=0,Y=function($){V[X++]=$};for(var K=0;K<Q;++K){if(X+5>V.length){var E=new Z(X+8+(Q-K<<1));E.set(V),V=E}var R=H.charCodeAt(K);if(R<128||C)Y(R);else if(R<2048)Y(192|R>>6),Y(128|R&63);else if(R>55295&&R<57344)R=65536+(R&1047552)|H.charCodeAt(++K)&1023,Y(240|R>>18),Y(128|R>>12&63),Y(128|R>>6&63),Y(128|R&63);else Y(224|R>>12),Y(128|R>>6&63),Y(128|R&63)}return d(V,0,X)}function nH(H,C){if(C){var J="";for(var K=0;K<H.length;K+=16384)J+=String.fromCharCode.apply(null,H.subarray(K,K+16384));return J}else if(JH)return JH.decode(H);else{var Q=pH(H),V=Q.s,J=Q.r;if(J.length)B(8);return V}}function GJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K={};EH(H,"",K,C);var Q=Object.keys(K),V=Q.length,X=0,Y=0,E=V,R=Array(V),$=[],N=function(){for(var F=0;F<$.length;++F)$[F]()},W=function(F,P){bC(function(){J(F,P)})};bC(function(){W=J});var T=function(){var F=new Z(Y+22),P=X,I=Y-X;Y=0;for(var G=0;G<E;++G){var O=R[G];try{var x=O.c.length;MC(F,Y,O,O.f,O.u,x);var w=30+O.f.length+VC(O.extra),D=Y+w;F.set(O.c,D),MC(F,X,O,O.f,O.u,x,Y,O.m),X+=16+w+(O.m?O.m.length:0),Y=D+x}catch(M){return W(M,null)}}WH(F,X,R.length,I,P),W(null,F)};if(!V)T();var L=function(F){var P=Q[F],I=K[P],G=I[0],O=I[1],x=GC(),w=G.length;x.p(G);var D=$C(P),M=D.length,q=O.comment,A=q&&$C(q),S=A&&A.length,v=VC(O.extra),m=O.level==0?0:8,y=function(h,k){if(h)N(),W(h,null);else{var z=k.length;if(R[F]=zC(O,{size:w,crc:x.d(),c:k,f:D,m:A,u:M!=P.length||A&&q.length!=S,compression:m}),X+=30+M+v+z,Y+=76+2*(M+v)+(S||0)+z,!--V)T()}};if(M>65535)y(B(11,0,1),null);if(!m)y(null,G);else if(w<160000)try{y(null,fC(G,O))}catch(h){y(h,null)}else $.push(CJ(G,O,y))};for(var j=0;j<E;++j)L(j);return N}function TJ(H,C){if(!C)C={};var J={},K=[];EH(H,"",J,C);var Q=0,V=0;for(var X in J){var Y=J[X],E=Y[0],R=Y[1],$=R.level==0?0:8,N=$C(X),W=N.length,T=R.comment,L=T&&$C(T),j=L&&L.length,F=VC(R.extra);if(W>65535)B(11);var P=$?fC(E,R):E,I=P.length,G=GC();G.p(E),K.push(zC(R,{size:E.length,crc:G.d(),c:P,f:N,m:L,u:W!=X.length||L&&T.length!=j,o:Q,compression:$})),Q+=30+W+F+I,V+=76+2*(W+F)+(j||0)+I}var O=new Z(V+22),x=Q,w=V-Q;for(var D=0;D<K.length;++D){var N=K[D];MC(O,N.o,N,N.f,N.u,N.c.length);var M=30+N.f.length+VC(N.extra);O.set(N.c,N.o+M),MC(O,Q,N,N.f,N.u,N.c.length,N.o,N.m),Q+=16+M+(N.m?N.m.length:0)}return WH(O,Q,K.length,w,x),O}function AJ(H,C,J){if(!J)J=C,C={};if(typeof J!="function")B(7);var K=[],Q=function(){for(var F=0;F<K.length;++F)K[F]()},V={},X=function(F,P){bC(function(){J(F,P)})};bC(function(){X=J});var Y=H.length-22;for(;u(H,Y)!=101010256;--Y)if(!Y||H.length-Y>65558)return X(B(13,0,1),null),Q;var E=n(H,Y+8);if(E){var R=E,$=u(H,Y+16),N=$==4294967295||R==65535;if(N){var W=u(H,Y-12);if(N=u(H,W)==101075792,N)R=E=u(H,W+32),$=u(H,W+48)}var T=C&&C.filter,L=function(F){var P=eH(H,$,N),I=P[0],G=P[1],O=P[2],x=P[3],w=P[4],D=P[5],M=bH(H,D);$=w;var q=function(S,v){if(S)Q(),X(S,null);else{if(v)V[x]=v;if(!--E)X(null,V)}};if(!T||T({name:x,size:G,originalSize:O,compression:I}))if(!I)q(null,d(H,M,M+G));else if(I==8){var A=H.subarray(M,M+G);if(O<524288||G>0.8*O)try{q(null,yC(A,{out:new Z(O)}))}catch(S){q(S,null)}else K.push(mH(A,{size:O},q))}else q(B(14,"unknown compression type "+I,1),null);else q(null,null)};for(var j=0;j<R;++j)L(j)}else X(null,{});return Q}function DJ(H,C){var J={},K=H.length-22;for(;u(H,K)!=101010256;--K)if(!K||H.length-K>65558)B(13);var Q=n(H,K+8);if(!Q)return{};var V=u(H,K+16),X=V==4294967295||Q==65535;if(X){var Y=u(H,K-12);if(X=u(H,Y)==101075792,X)Q=u(H,Y+32),V=u(H,Y+48)}var E=C&&C.filter;for(var R=0;R<Q;++R){var $=eH(H,V,X),N=$[0],W=$[1],T=$[2],L=$[3],j=$[4],F=$[5],P=bH(H,F);if(V=j,!E||E({name:L,size:W,originalSize:T,compression:N}))if(!N)J[L]=d(H,P,P+W);else if(N==8)J[L]=yC(H.subarray(P,P+W),{out:new Z(T)});else B(14,"unknown compression type "+N)}return J}var lH,_C,dH=";var __w=require('worker_threads');__w.parentPort.on('message',function(m){onmessage({data:m})}),postMessage=function(m,t){__w.parentPort.postMessage(m,t)},close=process.exit;self=global",iH,Z,o,xC,LC,PC,SC,jH=function(H,C){var J=new o(31);for(var K=0;K<31;++K)J[K]=C+=1<<H[K-1];var Q=new xC(J[30]);for(var K=1;K<30;++K)for(var V=J[K];V<J[K+1];++V)Q[V]=V-J[K]<<5|K;return{b:J,r:Q}},GH,KH,pC,TH,ZH,lC,gC,CC,U,l=function(H,C,J){var K=H.length,Q=0,V=new o(C);for(;Q<K;++Q)if(H[Q])++V[H[Q]-1];var X=new o(C);for(Q=1;Q<C;++Q)X[Q]=X[Q-1]+V[Q-1]<<1;var Y;if(J){Y=new o(1<<C);var E=15-C;for(Q=0;Q<K;++Q)if(H[Q]){var R=Q<<4|H[Q],$=C-H[Q],N=X[H[Q]-1]++<<$;for(var W=N|(1<<$)-1;N<=W;++N)Y[gC[N]>>E]=R}}else{Y=new o(K);for(Q=0;Q<K;++Q)if(H[Q])Y[Q]=gC[X[H[Q]-1]++]>>15-H[Q]}return Y},KC,U,U,U,U,OC,U,UH,IH,AH,DH,uC=function(H){var C=H[0];for(var J=1;J<H.length;++J)if(H[J]>C)C=H[J];return C},c=function(H,C,J){var K=C/8|0;return(H[K]|H[K+1]<<8)>>(C&7)&J},mC=function(H,C){var J=C/8|0;return(H[J]|H[J+1]<<8|H[J+2]<<16)>>(C&7)},jC=function(H){return(H+7)/8|0},d=function(H,C,J){if(C==null||C<0)C=0;if(J==null||J>H.length)J=H.length;return new Z(H.subarray(C,J))},$J,SH,B=function(H,C,J){var K=Error(C||SH[H]);if(K.code=H,Error.captureStackTrace)Error.captureStackTrace(K,B);if(!J)throw K;return K},wC=function(H,C,J,K){var Q=H.length,V=K?K.length:0;if(!Q||C.f&&!C.l)return J||new Z(0);var X=!J,Y=X||C.i!=2,E=C.i;if(X)J=new Z(Q*3);var R=function(AC){var DC=J.length;if(AC>DC){var BC=new Z(Math.max(DC*2,AC));BC.set(J),J=BC}},$=C.f||0,N=C.p||0,W=C.b||0,T=C.l,L=C.d,j=C.m,F=C.n,P=Q*8;do{if(!T){$=c(H,N,1);var I=c(H,N+1,3);if(N+=3,!I){var G=jC(N)+4,O=H[G-4]|H[G-3]<<8,x=G+O;if(x>Q){if(E)B(0);break}if(Y)R(W+O);J.set(H.subarray(G,x),W),C.b=W+=O,C.p=N=x*8,C.f=$;continue}else if(I==1)T=IH,L=DH,j=9,F=5;else if(I==2){var w=c(H,N,31)+257,D=c(H,N+10,15)+4,M=w+c(H,N+5,31)+1;N+=14;var q=new Z(M),A=new Z(19);for(var S=0;S<D;++S)A[SC[S]]=c(H,N+S*3,7);N+=D*3;var v=uC(A),m=(1<<v)-1,y=l(A,v,1);for(var S=0;S<M;){var h=y[c(H,N,m)];N+=h&15;var G=h>>4;if(G<16)q[S++]=G;else{var k=0,z=0;if(G==16)z=3+c(H,N,3),N+=2,k=q[S-1];else if(G==17)z=3+c(H,N,7),N+=3;else if(G==18)z=11+c(H,N,127),N+=7;while(z--)q[S++]=k}}var p=q.subarray(0,w),r=q.subarray(w);j=uC(p),F=uC(r),T=l(p,j,1),L=l(r,F,1)}else B(1);if(N>P){if(E)B(0);break}}if(Y)R(W+131072);var YC=(1<<j)-1,b=(1<<F)-1,JC=N;for(;;JC=N){var k=T[mC(H,N)&YC],e=k>>4;if(N+=k&15,N>P){if(E)B(0);break}if(!k)B(2);if(e<256)J[W++]=e;else if(e==256){JC=N,T=null;break}else{var f=e-254;if(e>264){var S=e-257,_=LC[S];f=c(H,N,(1<<_)-1)+KH[S],N+=_}var t=L[mC(H,N)&b],EC=t>>4;if(!t)B(3);N+=t&15;var r=ZH[EC];if(EC>3){var _=PC[EC];r+=mC(H,N)&(1<<_)-1,N+=_}if(N>P){if(E)B(0);break}if(Y)R(W+131072);var WC=W+f;if(W<r){var vC=V-r,kC=Math.min(r,WC);if(vC+W<0)B(3);for(;W<kC;++W)J[W]=K[vC+W]}for(;W<WC;++W)J[W]=J[W-r]}}if(C.l=T,C.p=JC,C.b=W,C.f=$,T)$=1,C.m=j,C.d=L,C.n=F}while(!$);return W!=J.length&&X?d(J,0,W):J.subarray(0,W)},HC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8},FC=function(H,C,J){J<<=C&7;var K=C/8|0;H[K]|=J,H[K+1]|=J>>8,H[K+2]|=J>>16},rC=function(H,C){var J=[];for(var K=0;K<H.length;++K)if(H[K])J.push({s:K,f:H[K]});var Q=J.length,V=J.slice();if(!Q)return{t:QC,l:0};if(Q==1){var X=new Z(J[0].s+1);return X[J[0].s]=1,{t:X,l:1}}J.sort(function(x,w){return x.f-w.f}),J.push({s:-1,f:25001});var Y=J[0],E=J[1],R=0,$=1,N=2;J[0]={s:-1,f:Y.f+E.f,l:Y,r:E};while($!=Q-1)Y=J[J[R].f<J[N].f?R++:N++],E=J[R!=$&&J[R].f<J[N].f?R++:N++],J[$++]={s:-1,f:Y.f+E.f,l:Y,r:E};var W=V[0].s;for(var K=1;K<Q;++K)if(V[K].s>W)W=V[K].s;var T=new o(W+1),L=nC(J[$-1],T,0);if(L>C){var K=0,j=0,F=L-C,P=1<<F;V.sort(function(w,D){return T[D.s]-T[w.s]||w.f-D.f});for(;K<Q;++K){var I=V[K].s;if(T[I]>C)j+=P-(1<<L-T[I]),T[I]=C;else break}j>>=F;while(j>0){var G=V[K].s;if(T[G]<C)j-=1<<C-T[G]++-1;else++K}for(;K>=0&&j;--K){var O=V[K].s;if(T[O]==C)--T[O],++j}L=C}return{t:new Z(T),l:L}},nC=function(H,C,J){return H.s==-1?Math.max(nC(H.l,C,J+1),nC(H.r,C,J+1)):C[H.s]=J},dC=function(H){var C=H.length;while(C&&!H[--C]);var J=new o(++C),K=0,Q=H[0],V=1,X=function(E){J[K++]=E};for(var Y=1;Y<=C;++Y)if(H[Y]==Q&&Y!=C)++V;else{if(!Q&&V>2){for(;V>138;V-=138)X(32754);if(V>2)X(V>10?V-11<<5|28690:V-3<<5|12305),V=0}else if(V>3){X(Q),--V;for(;V>6;V-=6)X(8304);if(V>2)X(V-3<<5|8208),V=0}while(V--)X(Q);V=1,Q=H[Y]}return{c:J.subarray(0,K),n:C}},qC=function(H,C){var J=0;for(var K=0;K<C.length;++K)J+=H[K]*C[K];return J},QH=function(H,C,J){var K=J.length,Q=jC(C+2);H[Q]=K&255,H[Q+1]=K>>8,H[Q+2]=H[Q]^255,H[Q+3]=H[Q+1]^255;for(var V=0;V<K;++V)H[Q+V+4]=J[V];return(Q+4+K)*8},iC=function(H,C,J,K,Q,V,X,Y,E,R,$){HC(C,$++,J),++Q[256];var N=rC(Q,15),W=N.t,T=N.l,L=rC(V,15),j=L.t,F=L.l,P=dC(W),I=P.c,G=P.n,O=dC(j),x=O.c,w=O.n,D=new o(19);for(var M=0;M<I.length;++M)++D[I[M]&31];for(var M=0;M<x.length;++M)++D[x[M]&31];var q=rC(D,7),A=q.t,S=q.l,v=19;for(;v>4&&!A[SC[v-1]];--v);var m=R+5<<3,y=qC(Q,KC)+qC(V,OC)+X,h=qC(Q,W)+qC(V,j)+X+14+3*v+qC(D,A)+2*D[16]+3*D[17]+7*D[18];if(E>=0&&m<=y&&m<=h)return QH(C,$,H.subarray(E,E+R));var k,z,p,r;if(HC(C,$,1+(h<y)),$+=2,h<y){k=l(W,T,0),z=W,p=l(j,F,0),r=j;var YC=l(A,S,0);HC(C,$,G-257),HC(C,$+5,w-1),HC(C,$+10,v-4),$+=14;for(var M=0;M<v;++M)HC(C,$+3*M,A[SC[M]]);$+=3*v;var b=[I,x];for(var JC=0;JC<2;++JC){var e=b[JC];for(var M=0;M<e.length;++M){var f=e[M]&31;if(HC(C,$,YC[f]),$+=A[f],f>15)HC(C,$,e[M]>>5&127),$+=e[M]>>12}}}else k=UH,z=KC,p=AH,r=OC;for(var M=0;M<Y;++M){var _=K[M];if(_>255){var f=_>>18&31;if(FC(C,$,k[f+257]),$+=z[f+257],f>7)HC(C,$,_>>23&31),$+=LC[f];var t=_&31;if(FC(C,$,p[t]),$+=r[t],t>3)FC(C,$,_>>5&8191),$+=PC[t]}else FC(C,$,k[_]),$+=z[_]}return FC(C,$,k[256]),$+z[256]},gH,QC,xH=function(H,C,J,K,Q,V){var X=V.z||H.length,Y=new Z(K+X+5*(1+Math.ceil(X/7000))+Q),E=Y.subarray(K,Y.length-Q),R=V.l,$=(V.r||0)&7;if(C){if($)E[0]=V.r>>3;var N=gH[C-1],W=N>>13,T=N&8191,L=(1<<J)-1,j=V.p||new o(32768),F=V.h||new o(L+1),P=Math.ceil(J/3),I=2*P,G=function(aC){return(H[aC]^H[aC+1]<<P^H[aC+2]<<I)&L},O=new xC(25000),x=new o(288),w=new o(32),D=0,M=0,q=V.i||0,A=0,S=V.w||0,v=0;for(;q+2<X;++q){var m=G(q),y=q&32767,h=F[m];if(j[y]=h,F[m]=y,S<=q){var k=X-q;if((D>7000||A>24576)&&(k>423||!R)){$=iC(H,E,0,O,x,w,M,A,v,q-v,$),A=D=M=0,v=q;for(var z=0;z<286;++z)x[z]=0;for(var z=0;z<30;++z)w[z]=0}var p=2,r=0,YC=T,b=y-h&32767;if(k>2&&m==G(q-b)){var JC=Math.min(W,k)-1,e=Math.min(32767,q),f=Math.min(258,k);while(b<=e&&--YC&&y!=h){if(H[q+p]==H[q+p-b]){var _=0;for(;_<f&&H[q+_]==H[q+_-b];++_);if(_>p){if(p=_,r=b,_>JC)break;var t=Math.min(b,_-2),EC=0;for(var z=0;z<t;++z){var WC=q-b+z&32767,vC=j[WC],kC=WC-vC&32767;if(kC>EC)EC=kC,h=WC}}}y=h,h=j[y],b+=y-h&32767}}if(r){O[A++]=268435456|pC[p]<<18|lC[r];var AC=pC[p]&31,DC=lC[r]&31;M+=LC[AC]+PC[DC],++x[257+AC],++w[DC],S=q+p,++D}else O[A++]=H[q],++x[H[q]]}}for(q=Math.max(q,S);q<X;++q)O[A++]=H[q],++x[H[q]];if($=iC(H,E,R,O,x,w,M,A,v,q-v,$),!R)V.r=$&7|E[$/8|0]<<3,$-=7,V.h=F,V.p=j,V.i=q,V.w=S}else{for(var q=V.w||0;q<X+R;q+=65535){var BC=q+65535;if(BC>=X)E[$/8|0]=R,BC=X;$=QH(E,$+1,H.subarray(q,BC))}V.i=X}return d(Y,0,K+jC($)+Q)},wH,GC=function(){var H=-1;return{p:function(C){var J=H;for(var K=0;K<C.length;++K)J=wH[J&255^C[K]]^J>>>8;H=J},d:function(){return~H}}},eC=function(){var H=1,C=0;return{p:function(J){var K=H,Q=C,V=J.length|0;for(var X=0;X!=V;){var Y=Math.min(X+2655,V);for(;X<Y;++X)Q+=K+=J[X];K=(K&65535)+15*(K>>16),Q=(Q&65535)+15*(Q>>16)}H=K,C=Q},d:function(){return H%=65521,C%=65521,(H&255)<<24|(H&65280)<<8|(C&255)<<8|C>>8}}},RC=function(H,C,J,K,Q){if(!Q){if(Q={l:1},C.dictionary){var V=C.dictionary.subarray(-32768),X=new Z(V.length+H.length);X.set(V),X.set(H,V.length),H=X,Q.w=V.length}}return xH(H,C.level==null?6:C.level,C.mem==null?Q.l?Math.ceil(Math.max(8,Math.min(13,Math.log(H.length)))*1.5):20:12+C.mem,J,K,Q)},zC=function(H,C){var J={};for(var K in H)J[K]=H[K];for(var K in C)J[K]=C[K];return J},BH=function(H,C,J){var K=H(),Q=H.toString(),V=Q.slice(Q.indexOf("[")+1,Q.lastIndexOf("]")).replace(/\s+/g,"").split(",");for(var X=0;X<K.length;++X){var Y=K[X],E=V[X];if(typeof Y=="function"){C+=";"+E+"=";var R=Y.toString();if(Y.prototype)if(R.indexOf("[native code]")!=-1){var $=R.indexOf(" ",8)+1;C+=R.slice($,R.indexOf("(",$))}else{C+=R;for(var N in Y.prototype)C+=";"+E+".prototype."+N+"="+Y.prototype[N].toString()}else C+=R}else J[E]=Y}return C},hC,sH=function(H){var C=[];for(var J in H)if(H[J].buffer)C.push((H[J]=new H[J].constructor(H[J])).buffer);return C},zH=function(H,C,J,K){if(!hC[J]){var Q="",V={},X=H.length-1;for(var Y=0;Y<X;++Y)Q=BH(H[Y],Q,V);hC[J]={c:BH(H[X],Q,V),e:V}}var E=zC({},hC[J].e);return iH(hC[J].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+C.toString()+"}",J,E,sH(E),K)},TC=function(){return[Z,o,xC,LC,PC,SC,KH,ZH,IH,DH,gC,SH,l,uC,c,mC,jC,d,B,wC,yC,XC,VH]},ZC=function(){return[Z,o,xC,LC,PC,SC,pC,lC,UH,KC,AH,OC,gC,gH,QC,l,HC,FC,rC,nC,dC,qC,QH,iC,jC,d,xH,RC,fC,XC]},yH=function(){return[XH,$H,g,GC,wH]},vH=function(){return[YH,_H]},kH=function(){return[RH,g,eC]},hH=function(){return[NH]},XC=function(H){return postMessage(H,[H.buffer])},VH=function(H){return H&&{out:H.size&&new Z(H.size),dictionary:H.dictionary}},UC=function(H,C,J,K,Q,V){var X=zH(J,K,Q,function(Y,E){X.terminate(),V(Y,E)});return X.postMessage([H,C],C.consume?[H.buffer]:[]),function(){X.terminate()}},i=function(H){return H.ondata=function(C,J){return postMessage([C,J],[C.buffer])},function(C){if(C.data.length)H.push(C.data[0],C.data[1]),postMessage([C.data[0].length]);else H.flush()}},IC=function(H,C,J,K,Q,V,X){var Y,E=zH(H,K,Q,function(R,$){if(R)E.terminate(),C.ondata.call(C,R);else if(!Array.isArray($))X($);else if($.length==1){if(C.queuedSize-=$[0],C.ondrain)C.ondrain($[0])}else{if($[1])E.terminate();C.ondata.call(C,R,$[0],$[1])}});if(E.postMessage(J),C.queuedSize=0,C.push=function(R,$){if(!C.ondata)B(5);if(Y)C.ondata(B(4,0,1),null,!!$);C.queuedSize+=R.length,E.postMessage([R,Y=$],[R.buffer])},C.terminate=function(){E.terminate()},V)C.flush=function(){E.postMessage([])}},n=function(H,C){return H[C]|H[C+1]<<8},u=function(H,C){return(H[C]|H[C+1]<<8|H[C+2]<<16|H[C+3]<<24)>>>0},cC=function(H,C){return u(H,C)+u(H,C+4)*4294967296},g=function(H,C,J){for(;J;++C)H[C]=J,J>>>=8},XH=function(H,C){var J=C.filename;if(H[0]=31,H[1]=139,H[2]=8,H[8]=C.level<2?4:C.level==9?2:0,H[9]=3,C.mtime!=0)g(H,4,Math.floor(new Date(C.mtime||Date.now())/1000));if(J){H[3]=8;for(var K=0;K<=J.length;++K)H[K+10]=J.charCodeAt(K)}},YH=function(H){if(H[0]!=31||H[1]!=139||H[2]!=8)B(6,"invalid gzip data");var C=H[3],J=10;if(C&4)J+=(H[10]|H[11]<<8)+2;for(var K=(C>>3&1)+(C>>4&1);K>0;K-=!H[J++]);return J+(C&2)},_H=function(H){var C=H.length;return(H[C-4]|H[C-3]<<8|H[C-2]<<16|H[C-1]<<24)>>>0},$H=function(H){return 10+(H.filename?H.filename.length+1:0)},RH=function(H,C){var J=C.level,K=J==0?0:J<6?1:J==9?3:2;if(H[0]=120,H[1]=K<<6|(C.dictionary&&32),H[1]|=31-(H[0]<<8|H[1])%31,C.dictionary){var Q=eC();Q.p(C.dictionary),g(H,2,Q.d())}},NH=function(H,C){if((H[0]&15)!=8||H[0]>>4>7||(H[0]<<8|H[1])%31)B(6,"invalid zlib data");if((H[1]>>5&1)==+!C)B(6,"invalid zlib data: "+(H[1]&32?"need":"unexpected")+" dictionary");return(H[1]>>3&4)+2},s,tH,a,uH,FH,RJ,sC,HJ,OH,EJ,CH,KJ,LH,BJ,EH=function(H,C,J,K){for(var Q in H){var V=H[Q],X=C+Q,Y=K;if(Array.isArray(V))Y=zC(K,V[1]),V=V[0];if(V instanceof Z)J[X]=[V,Y];else J[X+="/"]=[new Z(0),Y],EH(V,X,J,K)}},PH,JH,rH=0,pH=function(H){for(var C="",J=0;;){var K=H[J++],Q=(K>127)+(K>223)+(K>239);if(J+Q>H.length)return{s:C,r:d(H,J-1)};if(!Q)C+=String.fromCharCode(K);else if(Q==3)K=((K&15)<<18|(H[J++]&63)<<12|(H[J++]&63)<<6|H[J++]&63)-65536,C+=String.fromCharCode(55296|K>>10,56320|K&1023);else if(Q&1)C+=String.fromCharCode((K&31)<<6|H[J++]&63);else C+=String.fromCharCode((K&15)<<12|(H[J++]&63)<<6|H[J++]&63)}},OJ,MJ,oH=function(H){return H==1?3:H<6?2:H==9?1:0},bH=function(H,C){return C+30+n(H,C+26)+n(H,C+28)},eH=function(H,C,J){var K=n(H,C+28),Q=nH(H.subarray(C+46,C+46+K),!(n(H,C+8)&2048)),V=C+46+K,X=u(H,C+20),Y=J&&X==4294967295?fH(H,V):[X,u(H,C+24),u(H,C+42)],E=Y[0],R=Y[1],$=Y[2];return[n(H,C+10),E,R,Q,V+n(H,C+30)+n(H,C+32),$]},fH=function(H,C){for(;n(H,C)!=1;C+=4+n(H,C+2));return[cC(H,C+12),cC(H,C+4),cC(H,C+20)]},VC=function(H){var C=0;if(H)for(var J in H){var K=H[J].length;if(K>65535)B(9);C+=K+4}return C},MC=function(H,C,J,K,Q,V,X,Y){var E=K.length,R=J.extra,$=Y&&Y.length,N=VC(R);if(g(H,C,X!=null?33639248:67324752),C+=4,X!=null)H[C++]=20,H[C++]=J.os;H[C]=20,C+=2,H[C++]=J.flag<<1|(V<0&&8),H[C++]=Q&&8,H[C++]=J.compression&255,H[C++]=J.compression>>8;var W=new Date(J.mtime==null?Date.now():J.mtime),T=W.getFullYear()-1980;if(T<0||T>119)B(10);if(g(H,C,T<<25|W.getMonth()+1<<21|W.getDate()<<16|W.getHours()<<11|W.getMinutes()<<5|W.getSeconds()>>1),C+=4,V!=-1)g(H,C,J.crc),g(H,C+4,V<0?-V-2:V),g(H,C+8,J.size);if(g(H,C+12,E),g(H,C+14,N),C+=16,X!=null)g(H,C,$),g(H,C+6,J.attrs),g(H,C+10,X),C+=14;if(H.set(K,C),C+=E,N)for(var L in R){var j=R[L],F=j.length;g(H,C,+L),g(H,C+2,F),H.set(j,C+4),C+=4+F}if($)H.set(Y,C),C+=$;return C},WH=function(H,C,J,K,Q){g(H,C,101010256),g(H,C+8,J),g(H,C+10,J),g(H,C+12,K),g(H,C+16,Q)},oC,LJ,PJ,jJ,VJ,ZJ,UJ,IJ,bC;var XJ=aH(()=>{lH=cH("/");try{_C=lH("worker_threads").Worker}catch(H){}iH=_C?function(H,C,J,K,Q){var V=!1,X=new _C(H+dH,{eval:!0}).on("error",function(Y){return Q(Y,null)}).on("message",function(Y){return Q(null,Y)}).on("exit",function(Y){if(Y&&!V)Q(Error("exited with code "+Y),null)});return X.postMessage(J,K),X.terminate=function(){return V=!0,_C.prototype.terminate.call(X)},X}:function(H,C,J,K,Q){setImmediate(function(){return Q(Error("async operations unsupported - update to Node 12+ (or Node 10-11 with the --experimental-worker CLI flag)"),null)});var V=function(){};return{terminate:V,postMessage:V}},Z=Uint8Array,o=Uint16Array,xC=Int32Array,LC=new Z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),PC=new Z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),SC=new Z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GH=jH(LC,2),KH=GH.b,pC=GH.r;KH[28]=258,pC[258]=28;TH=jH(PC,0),ZH=TH.b,lC=TH.r,gC=new o(32768);for(U=0;U<32768;++U)CC=(U&43690)>>1|(U&21845)<<1,CC=(CC&52428)>>2|(CC&13107)<<2,CC=(CC&61680)>>4|(CC&3855)<<4,gC[U]=((CC&65280)>>8|(CC&255)<<8)>>1;KC=new Z(288);for(U=0;U<144;++U)KC[U]=8;for(U=144;U<256;++U)KC[U]=9;for(U=256;U<280;++U)KC[U]=7;for(U=280;U<288;++U)KC[U]=8;OC=new Z(32);for(U=0;U<32;++U)OC[U]=5;UH=l(KC,9,0),IH=l(KC,9,1),AH=l(OC,5,0),DH=l(OC,5,1),$J={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},SH=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],gH=new xC([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),QC=new Z(0),wH=function(){var H=new Int32Array(256);for(var C=0;C<256;++C){var J=C,K=9;while(--K)J=(J&1&&-306674912)^J>>>1;H[C]=J}return H}(),hC=[];s=function(){function H(C,J){if(typeof C=="function")J=C,C={};if(this.ondata=J,this.o=C||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Z(98304),this.o.dictionary){var K=this.o.dictionary.subarray(-32768);this.b.set(K,32768-K.length),this.s.i=32768-K.length}}return H.prototype.p=function(C,J){this.ondata(RC(C,this.o,0,0,this.s),J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.s.l)B(4);var K=C.length+this.s.z;if(K>this.b.length){if(K>2*this.b.length-32768){var Q=new Z(K&-32768);Q.set(this.b.subarray(0,this.s.z)),this.b=Q}var V=this.b.length-this.s.z;this.b.set(C.subarray(0,V),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(C.subarray(V),32768),this.s.z=C.length-V+32768,this.s.i=32766,this.s.w=32768}else this.b.set(C,this.s.z),this.s.z+=C.length;if(this.s.l=J&1,this.s.z>this.s.w+8191||J)this.p(this.b,J||!1),this.s.w=this.s.i,this.s.i-=2},H.prototype.flush=function(){if(!this.ondata)B(5);if(this.s.l)B(4);this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},H}(),tH=function(){function H(C,J){IC([ZC,function(){return[i,s]}],this,NC.call(this,C,J),function(K){var Q=new s(K.data);onmessage=i(Q)},6,1)}return H}();a=function(){function H(C,J){if(typeof C=="function")J=C,C={};this.ondata=J;var K=C&&C.dictionary&&C.dictionary.subarray(-32768);if(this.s={i:0,b:K?K.length:0},this.o=new Z(32768),this.p=new Z(0),K)this.o.set(K)}return H.prototype.e=function(C){if(!this.ondata)B(5);if(this.d)B(4);if(!this.p.length)this.p=C;else if(C.length){var J=new Z(this.p.length+C.length);J.set(this.p),J.set(C,this.p.length),this.p=J}},H.prototype.c=function(C){this.s.i=+(this.d=C||!1);var J=this.s.b,K=wC(this.p,this.s,this.o);this.ondata(d(K,J,this.s.b),this.d),this.o=d(K,this.s.b-32768),this.s.b=this.o.length,this.p=d(this.p,this.s.p/8|0),this.s.p&=7},H.prototype.push=function(C,J){this.e(C),this.c(J)},H}(),uH=function(){function H(C,J){IC([TC,function(){return[i,a]}],this,NC.call(this,C,J),function(K){var Q=new a(K.data);onmessage=i(Q)},7,0)}return H}();FH=function(){function H(C,J){this.c=GC(),this.l=0,this.v=1,s.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),this.l+=C.length,s.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&$H(this.o),J&&8,this.s);if(this.v)XH(K,this.o),this.v=0;if(J)g(K,K.length-8,this.c.d()),g(K,K.length-4,this.l);this.ondata(K,J)},H.prototype.flush=function(){s.prototype.flush.call(this)},H}(),RJ=function(){function H(C,J){IC([ZC,yH,function(){return[i,s,FH]}],this,NC.call(this,C,J),function(K){var Q=new FH(K.data);onmessage=i(Q)},8,1)}return H}();sC=function(){function H(C,J){this.v=1,this.r=0,a.call(this,C,J)}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.r+=C.length,this.v){var K=this.p.subarray(this.v-1),Q=K.length>3?YH(K):4;if(Q>K.length){if(!J)return}else if(this.v>1&&this.onmember)this.onmember(this.r-K.length);this.p=K.subarray(Q),this.v=0}if(a.prototype.c.call(this,J),this.s.f&&!this.s.l&&!J)this.v=jC(this.s.p)+9,this.s={i:0},this.o=new Z(0),this.push(new Z(0),J)},H}(),HJ=function(){function H(C,J){var K=this;IC([TC,vH,function(){return[i,a,sC]}],this,NC.call(this,C,J),function(Q){var V=new sC(Q.data);V.onmember=function(X){return postMessage(X)},onmessage=i(V)},9,0,function(Q){return K.onmember&&K.onmember(Q)})}return H}();OH=function(){function H(C,J){this.c=eC(),this.v=1,s.call(this,C,J)}return H.prototype.push=function(C,J){this.c.p(C),s.prototype.push.call(this,C,J)},H.prototype.p=function(C,J){var K=RC(C,this.o,this.v&&(this.o.dictionary?6:2),J&&4,this.s);if(this.v)RH(K,this.o),this.v=0;if(J)g(K,K.length-4,this.c.d());this.ondata(K,J)},H.prototype.flush=function(){s.prototype.flush.call(this)},H}(),EJ=function(){function H(C,J){IC([ZC,kH,function(){return[i,s,OH]}],this,NC.call(this,C,J),function(K){var Q=new OH(K.data);onmessage=i(Q)},10,1)}return H}();CH=function(){function H(C,J){a.call(this,C,J),this.v=C&&C.dictionary?2:1}return H.prototype.push=function(C,J){if(a.prototype.e.call(this,C),this.v){if(this.p.length<6&&!J)return;this.p=this.p.subarray(NH(this.p,this.v-1)),this.v=0}if(J){if(this.p.length<4)B(6,"invalid zlib data");this.p=this.p.subarray(0,-4)}a.prototype.c.call(this,J)},H}(),KJ=function(){function H(C,J){IC([TC,hH,function(){return[i,a,CH]}],this,NC.call(this,C,J),function(K){var Q=new CH(K.data);onmessage=i(Q)},11,0)}return H}();LH=function(){function H(C,J){this.o=NC.call(this,C,J)||{},this.G=sC,this.I=a,this.Z=CH}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K){C.ondata(J,K)}},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(!this.s){if(this.p&&this.p.length){var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length)}else this.p=C;if(this.p.length>2)this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,J),this.p=null}else this.s.push(C,J)},H}(),BJ=function(){function H(C,J){LH.call(this,C,J),this.queuedSize=0,this.G=HJ,this.I=uH,this.Z=KJ}return H.prototype.i=function(){var C=this;this.s.ondata=function(J,K,Q){C.ondata(J,K,Q)},this.s.ondrain=function(J){if(C.queuedSize-=J,C.ondrain)C.ondrain(J)}},H.prototype.push=function(C,J){this.queuedSize+=C.length,LH.prototype.push.call(this,C,J)},H}();PH=typeof TextEncoder<"u"&&new TextEncoder,JH=typeof TextDecoder<"u"&&new TextDecoder;try{JH.decode(QC,{stream:!0}),rH=1}catch(H){}OJ=function(){function H(C){if(this.ondata=C,rH)this.t=new TextDecoder;else this.p=QC}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(J=!!J,this.t){if(this.ondata(this.t.decode(C,{stream:!0}),J),J){if(this.t.decode().length)B(8);this.t=null}return}if(!this.p)B(4);var K=new Z(this.p.length+C.length);K.set(this.p),K.set(C,this.p.length);var Q=pH(K),V=Q.s,X=Q.r;if(J){if(X.length)B(8);this.p=null}else this.p=X;this.ondata(V,J)},H}(),MJ=function(){function H(C){this.ondata=C}return H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.d)B(4);this.ondata($C(C),this.d=J||!1)},H}();oC=function(){function H(C){this.filename=C,this.c=GC(),this.size=0,this.compression=0}return H.prototype.process=function(C,J){this.ondata(null,C,J)},H.prototype.push=function(C,J){if(!this.ondata)B(5);if(this.c.p(C),this.size+=C.length,J)this.crc=this.c.d();this.process(C,J||!1)},H}(),LJ=function(){function H(C,J){var K=this;if(!J)J={};oC.call(this,C),this.d=new s(J,function(Q,V){K.ondata(null,Q,V)}),this.compression=8,this.flag=oH(J.level)}return H.prototype.process=function(C,J){try{this.d.push(C,J)}catch(K){this.ondata(K,null,J)}},H.prototype.push=function(C,J){oC.prototype.push.call(this,C,J)},H}(),PJ=function(){function H(C,J){var K=this;if(!J)J={};oC.call(this,C),this.d=new tH(J,function(Q,V,X){K.ondata(Q,V,X)}),this.compression=8,this.flag=oH(J.level),this.terminate=this.d.terminate}return H.prototype.process=function(C,J){this.d.push(C,J)},H.prototype.push=function(C,J){oC.prototype.push.call(this,C,J)},H}(),jJ=function(){function H(C){this.ondata=C,this.u=[],this.d=1}return H.prototype.add=function(C){var J=this;if(!this.ondata)B(5);if(this.d&2)this.ondata(B(4+(this.d&1)*8,0,1),null,!1);else{var K=$C(C.filename),Q=K.length,V=C.comment,X=V&&$C(V),Y=Q!=C.filename.length||X&&V.length!=X.length,E=Q+VC(C.extra)+30;if(Q>65535)this.ondata(B(11,0,1),null,!1);var R=new Z(E);MC(R,0,C,K,Y,-1);var $=[R],N=function(){for(var F=0,P=$;F<P.length;F++){var I=P[F];J.ondata(null,I,!1)}$=[]},W=this.d;this.d=0;var T=this.u.length,L=zC(C,{f:K,u:Y,o:X,t:function(){if(C.terminate)C.terminate()},r:function(){if(N(),W){var F=J.u[T+1];if(F)F.r();else J.d=1}W=1}}),j=0;C.ondata=function(F,P,I){if(F)J.ondata(F,P,I),J.terminate();else if(j+=P.length,$.push(P),I){var G=new Z(16);if(g(G,0,134695760),g(G,4,C.crc),g(G,8,j),g(G,12,C.size),$.push(G),L.c=j,L.b=E+j+16,L.crc=C.crc,L.size=C.size,W)L.r();W=1}else if(W)N()},this.u.push(L)}},H.prototype.end=function(){var C=this;if(this.d&2){this.ondata(B(4+(this.d&1)*8,0,1),null,!0);return}if(this.d)this.e();else this.u.push({r:function(){if(!(C.d&1))return;C.u.splice(-1,1),C.e()},t:function(){}});this.d=3},H.prototype.e=function(){var C=0,J=0,K=0;for(var Q=0,V=this.u;Q<V.length;Q++){var X=V[Q];K+=46+X.f.length+VC(X.extra)+(X.o?X.o.length:0)}var Y=new Z(K+22);for(var E=0,R=this.u;E<R.length;E++){var X=R[E];MC(Y,C,X,X.f,X.u,-X.c-2,J,X.o),C+=46+X.f.length+VC(X.extra)+(X.o?X.o.length:0),J+=X.b}WH(Y,C,this.u.length,K,J),this.ondata(null,Y,!0),this.d=2},H.prototype.terminate=function(){for(var C=0,J=this.u;C<J.length;C++){var K=J[C];K.t()}this.d=2},H}();VJ=function(){function H(){}return H.prototype.push=function(C,J){this.ondata(null,C,J)},H.compression=0,H}(),ZJ=function(){function H(){var C=this;this.i=new a(function(J,K){C.ondata(null,J,K)})}return H.prototype.push=function(C,J){try{this.i.push(C,J)}catch(K){this.ondata(K,null,J)}},H.compression=8,H}(),UJ=function(){function H(C,J){var K=this;if(J<320000)this.i=new a(function(Q,V){K.ondata(null,Q,V)});else this.i=new uH(function(Q,V,X){K.ondata(Q,V,X)}),this.terminate=this.i.terminate}return H.prototype.push=function(C,J){if(this.i.terminate)C=d(C,0);this.i.push(C,J)},H.compression=8,H}(),IJ=function(){function H(C){this.onfile=C,this.k=[],this.o={0:VJ},this.p=QC}return H.prototype.push=function(C,J){var K=this;if(!this.onfile)B(5);if(!this.p)B(4);if(this.c>0){var Q=Math.min(this.c,C.length),V=C.subarray(0,Q);if(this.c-=Q,this.d)this.d.push(V,!this.c);else this.k[0].push(V);if(C=C.subarray(Q),C.length)return this.push(C,J)}else{var X=0,Y=0,E=void 0,R=void 0;if(!this.p.length)R=C;else if(!C.length)R=this.p;else R=new Z(this.p.length+C.length),R.set(this.p),R.set(C,this.p.length);var $=R.length,N=this.c,W=N&&this.d,T=function(){var P,I=u(R,Y);if(I==67324752){X=1,E=Y,L.d=null,L.c=0;var G=n(R,Y+6),O=n(R,Y+8),x=G&2048,w=G&8,D=n(R,Y+26),M=n(R,Y+28);if($>Y+30+D+M){var q=[];L.k.unshift(q),X=2;var A=u(R,Y+18),S=u(R,Y+22),v=nH(R.subarray(Y+30,Y+=30+D),!x);if(A==4294967295)P=w?[-2]:fH(R,Y),A=P[0],S=P[1];else if(w)A=-1;Y+=M,L.c=A;var m,y={name:v,compression:O,start:function(){if(!y.ondata)B(5);if(!A)y.ondata(null,QC,!0);else{var h=K.o[O];if(!h)y.ondata(B(14,"unknown compression type "+O,1),null,!1);m=A<0?new h(v):new h(v,A,S),m.ondata=function(r,YC,b){y.ondata(r,YC,b)};for(var k=0,z=q;k<z.length;k++){var p=z[k];m.push(p,!1)}if(K.k[0]==q&&K.c)K.d=m;else m.push(QC,!0)}},terminate:function(){if(m&&m.terminate)m.terminate()}};if(A>=0)y.size=A,y.originalSize=S;L.onfile(y)}return"break"}else if(N){if(I==134695760)return E=Y+=12+(N==-2&&8),X=3,L.c=0,"break";else if(I==33639248)return E=Y-=4,X=3,L.c=0,"break"}},L=this;for(;Y<$-4;++Y){var j=T();if(j==="break")break}if(this.p=QC,N<0){var F=X?R.subarray(0,E-12-(N==-2&&8)-(u(R,E-16)==134695760&&4)):R.subarray(0,Y);if(W)W.push(F,!!X);else this.k[+(X==2)].push(F)}if(X&2)return this.push(R.subarray(Y),J);this.p=R.subarray(Y)}if(J){if(this.c)B(13);this.p=null}},H.prototype.register=function(C){this.o[C.compression]=C},H}(),bC=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(H){H()}});
2
- export{$J as nX,s as oX,tH as pX,CJ as qX,fC as rX,a as sX,uH as tX,mH as uX,yC as vX,FH as wX,RJ as xX,NJ as yX,qH as zX,sC as AX,HJ as BX,JJ as CX,tC as DX,OH as EX,EJ as FX,WJ as GX,MH as HX,CH as IX,KJ as JX,QJ as KX,HH as LX,LH as MX,BJ as NX,FJ as OX,qJ as PX,OJ as QX,MJ as RX,$C as SX,nH as TX,oC as UX,LJ as VX,PJ as WX,jJ as XX,GJ as YX,TJ as ZX,VJ as _X,ZJ as $X,UJ as aY,IJ as bY,AJ as cY,DJ as dY,XJ as eY};
@@ -1,2 +0,0 @@
1
- import{x3 as v,y3 as C}from"./cli-0.1.15-q35rzjnz.mjs";import{$4 as V,K4 as Z}from"./cli-0.1.15-x69hfzmj.mjs";import{Paa as x,Qaa as Y,V5 as W,W5 as O}from"./cli-0.1.15-4892kydg.mjs";import{hda as X,ida as U}from"./cli-0.1.15-6mad0r56.mjs";import{Ada as Q,Ida as H,wda as P}from"./cli-0.1.15-wfn10357.mjs";import{Yea as w,cfa as I,efa as R,ifa as L,wfa as f,zfa as M}from"./cli-0.1.15-nk50qhet.mjs";import{Lla as N,Mla as F}from"./cli-0.1.15-p5ty029c.mjs";import{_la as h,bma as B}from"./cli-0.1.15-mhbfhhf6.mjs";import{hostname as E}from"os";function $(){return P(G,!1)}function u(){if(!$())return;return y()}function n(){y.cache?.clear?.()}function o(){if(!$())return;let i=x();try{let q=i.read();if(q?.trustedDeviceToken)delete q.trustedDeviceToken,i.update(q)}catch{}y.cache?.clear?.()}async function t(){try{if(!await Q(G)){f(`[trusted-device] Gate ${G} is off, skipping enrollment`);return}if(process.env.CLAUDE_TRUSTED_DEVICE_TOKEN){f("[trusted-device] CLAUDE_TRUSTED_DEVICE_TOKEN env var is set, skipping enrollment (env var takes precedence)");return}let{getClaudeAIOAuthTokens:i}=(C(),h(v)),q=i()?.accessToken;if(!q){f("[trusted-device] No OAuth token, skipping enrollment");return}let J=x();if(W()){f("[trusted-device] Essential traffic only, skipping enrollment");return}let b=X().BASE_API_URL,m;try{m=await Z.post(`${b}/api/auth/trusted_devices`,{display_name:`Claude Code on ${E()} · ${process.platform}`},{headers:{Authorization:`Bearer ${q}`,"Content-Type":"application/json"},timeout:1e4,validateStatus:(j)=>j<500})}catch(j){f(`[trusted-device] Enrollment request failed: ${w(j)}`);return}if(m.status!==200&&m.status!==201){f(`[trusted-device] Enrollment failed ${m.status}: ${R(m.data).slice(0,200)}`);return}let z=m.data?.device_token;if(!z||typeof z!=="string"){f("[trusted-device] Enrollment response missing device_token field");return}try{let j=J.read();if(!j){f("[trusted-device] Cannot read storage, skipping token persist");return}j.trustedDeviceToken=z;let K=J.update(j);if(!K.success){f(`[trusted-device] Failed to persist token: ${K.warning??"unknown"}`);return}y.cache?.clear?.(),f(`[trusted-device] Enrolled device_id=${m.data.device_id??"unknown"}`)}catch(j){f(`[trusted-device] Storage write failed: ${w(j)}`)}}catch(i){f(`[trusted-device] Enrollment error: ${w(i)}`)}}var G="tengu_sessions_elevated_auth_enforcement",y;var d=B(()=>{V();F();U();H();M();I();O();Y();L();y=N(()=>{let i=process.env.CLAUDE_TRUSTED_DEVICE_TOKEN;if(i)return i;return x().read()?.trustedDeviceToken})});
2
- export{u as hP,n as iP,o as jP,t as kP,d as lP};
@@ -1,2 +0,0 @@
1
- import{X$ as B,_5 as A,d6 as L,oaa as N}from"./cli-0.1.15-4892kydg.mjs";import{wfa as z,zfa as K}from"./cli-0.1.15-nk50qhet.mjs";import{ama as I,bma as J}from"./cli-0.1.15-mhbfhhf6.mjs";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=B().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)A(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{N();K();L()});
2
- export{P as mP,Q as nP,R as oP,H as pP,U as qP,V as rP,W as sP};
@@ -1,2 +0,0 @@
1
- import{Bha as z,Fha as B,mla as H}from"./cli-0.1.15-12azgmva.mjs";import{bma as x}from"./cli-0.1.15-mhbfhhf6.mjs";import{AsyncLocalStorage as I}from"async_hooks";function Q(E,F){return D.run(E,F)}function J(){return D.getStore()??B()}function R(){try{return J()}catch{return z()}}var D;var K=x(()=>{H();D=new I});var U="command-name",V="command-message",W="command-args",X="bash-input",Y="bash-stdout",Z="bash-stderr",$="local-command-stdout",j="local-command-stderr",q="local-command-caveat",A,G="tick",L="task-notification",_="task-id",b="tool-use-id",k="task-type",p="output-file",v="status",C="summary",O="worktree",y="worktreePath",S="worktreeBranch",f="remote-review",m="remote-review-progress",u="teammate-message",h="channel",l="fork-boilerplate",w="Your directive: ",g,d;var M=x(()=>{A=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],g=["help","-h","--help"],d=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});
2
- export{Q as tca,J as uca,R as vca,K as wca,U as xca,V as yca,W as zca,X as Aca,Y as Bca,Z as Cca,$ as Dca,j as Eca,q as Fca,A as Gca,G as Hca,L as Ica,_ as Jca,b as Kca,k as Lca,p as Mca,v as Nca,C as Oca,O as Pca,y as Qca,S as Rca,f as Sca,m as Tca,u as Uca,h as Vca,l as Wca,w as Xca,g as Yca,d as Zca,M as _ca};
@@ -1,4 +0,0 @@
1
- import{Wj as h,Zj as LQ,jt as nJ,kt as lZ,pp as m,qp as E6,yj as lJ,zj as aZ}from"./cli-0.1.15-26hkdean.mjs";import{_2 as VQ,j3 as wQ,y3 as z6}from"./cli-0.1.15-q35rzjnz.mjs";import{A5 as RZ,A7 as H6,B5 as mJ,B7 as BQ,C5 as FZ,C7 as K6,D5 as V,E5 as $J,F5 as PJ,G5 as pQ,H5 as yJ,I5 as IZ,X_ as EQ,j$ as I6,j5 as TJ,k5 as LZ,n5 as a,o5 as fQ,p5 as E,q5 as c,r5 as S,s5 as hJ,x5 as U,x7 as aJ,y5 as F,y7 as Z6,z5 as vJ,z7 as UQ}from"./cli-0.1.15-4892kydg.mjs";import{oca as K,qca as xQ,rca as I,sca as NQ}from"./cli-0.1.15-gmdv5ny8.mjs";import{Vca as v,_ca as F6}from"./cli-0.1.15-rr65b3dk.mjs";import{Ida as N6,wda as T}from"./cli-0.1.15-wfn10357.mjs";import{$ga as rJ,Aga as L,Bga as IJ,Mga as z,Nga as i,Oga as _J,Pga as NZ,Sga as N,Tga as f,Ufa as DQ,Vfa as U6,Wfa as kJ,Xfa as DZ,Xka as zQ,_ga as k,aha as _,bha as tZ,cha as uJ,dha as rZ,ega as WQ,fga as X6,gga as O,hga as dJ,mla as R6,oga as l,pga as kQ,qga as w,rga as xJ,sga as ZQ,tga as q6,uga as fJ,vga as xZ,yga as C,zga as FJ}from"./cli-0.1.15-12azgmva.mjs";import{rla as x,sla as GJ,vla as SJ,wla as MZ}from"./cli-0.1.15-p5ty029c.mjs";import{bma as Y}from"./cli-0.1.15-mhbfhhf6.mjs";function AQ(J,Q){var Z=-1,q=J==null?0:J.length;while(++Z<q)if(Q(J[Z],Z,J)===!1)break;return J}var p;var b=Y(()=>{p=AQ});function OQ(J,Q){return J&&U(Q,z(Q),J)}var u;var n=Y(()=>{F();i();u=OQ});function SQ(J,Q){return J&&U(Q,E(Q),J)}var o;var r=Y(()=>{F();c();o=SQ});function dQ(J,Q){return U(J,l(J),Q)}var s;var t=Y(()=>{F();kQ();s=dQ});function _Q(J,Q){return U(J,a(J),Q)}var e;var JJ=Y(()=>{F();fQ();e=_Q});function vQ(J){var Q=J.length,Z=new J.constructor(Q);if(Q&&typeof J[0]=="string"&&hQ.call(J,"index"))Z.index=J.index,Z.input=J.input;return Z}var TQ,hQ,QJ;var ZJ=Y(()=>{TQ=Object.prototype,hQ=TQ.hasOwnProperty;QJ=vQ});function mQ(J,Q){var Z=Q?V(J.buffer):J.buffer;return new J.constructor(Z,J.byteOffset,J.byteLength)}var qJ;var WJ=Y(()=>{$J();qJ=mQ});function gQ(J){var Q=new J.constructor(J.source,yQ.exec(J));return Q.lastIndex=J.lastIndex,Q}var yQ,XJ;var YJ=Y(()=>{yQ=/\w*$/;XJ=gQ});function jQ(J){return KJ?Object(KJ.call(J)):{}}var HJ,KJ,UJ;var BJ=Y(()=>{GJ();HJ=x?x.prototype:void 0,KJ=HJ?HJ.valueOf:void 0;UJ=jQ});function YZ(J,Q,Z){var q=J.constructor;switch(Q){case sQ:return V(J);case bQ:case iQ:return new q(+J);case tQ:return qJ(J,Z);case aQ:case eQ:case JZ:case QZ:case ZZ:case $Z:case qZ:case WZ:case XZ:return PJ(J,Z);case uQ:return new q;case nQ:case rQ:return new q(J);case cQ:return XJ(J);case oQ:return new q;case lQ:return UJ(J)}}var bQ="[object Boolean]",iQ="[object Date]",uQ="[object Map]",nQ="[object Number]",cQ="[object RegExp]",oQ="[object Set]",rQ="[object String]",lQ="[object Symbol]",sQ="[object ArrayBuffer]",tQ="[object DataView]",aQ="[object Float32Array]",eQ="[object Float64Array]",JZ="[object Int8Array]",QZ="[object Int16Array]",ZZ="[object Int32Array]",$Z="[object Uint8Array]",qZ="[object Uint8ClampedArray]",WZ="[object Uint16Array]",XZ="[object Uint32Array]",MJ;var DJ=Y(()=>{$J();WJ();YJ();BJ();pQ();MJ=YZ});function KZ(J){return w(J)&&N(J)==HZ}var HZ="[object Map]",NJ;var LJ=Y(()=>{f();xJ();NJ=KZ});var RJ,GZ,zJ;var EJ=Y(()=>{LJ();FJ();IJ();RJ=L&&L.isMap,GZ=RJ?C(RJ):NJ,zJ=GZ});function BZ(J){return w(J)&&N(J)==UZ}var UZ="[object Set]",VJ;var wJ=Y(()=>{f();xJ();VJ=BZ});var CJ,PZ,AJ;var OJ=Y(()=>{wJ();FJ();IJ();CJ=L&&L.isSet,PZ=CJ?C(CJ):VJ,AJ=PZ});function A(J,Q,Z,q,W,H){var $,G=Q&zZ,M=Q&EZ,d=Q&VZ;if(Z)$=W?Z(J,q,W,H):Z(J);if($!==void 0)return $;if(!SJ(J))return J;var R=O(J);if(R){if($=QJ(J),!G)return mJ(J,$)}else{var D=N(J),y=D==jJ||D==SZ;if(fJ(J))return vJ(J,G);if(D==pJ||D==gJ||y&&!W){if($=M||y?{}:yJ(J),!G)return M?e(J,o($,J)):s(J,u($,J))}else{if(!X[D])return W?J:{};$=MJ(J,D,G)}}H||(H=new kJ);var g=H.get(J);if(g)return g;if(H.set(J,$),AJ(J))J.forEach(function(B){$.add(A(B,Q,Z,B,J,H))});else if(zJ(J))J.forEach(function(B,P){$.set(P,A(B,Q,Z,P,J,H))});var CQ=d?M?S:_J:M?E:z,j=R?void 0:CQ(J);return p(j||J,function(B,P){if(j)P=B,B=J[P];TJ($,P,A(B,Q,Z,P,J,H))}),$}var zZ=1,EZ=2,VZ=4,gJ="[object Arguments]",wZ="[object Array]",CZ="[object Boolean]",AZ="[object Date]",OZ="[object Error]",jJ="[object Function]",SZ="[object GeneratorFunction]",kZ="[object Map]",dZ="[object Number]",pJ="[object Object]",fZ="[object RegExp]",_Z="[object Set]",TZ="[object String]",hZ="[object Symbol]",vZ="[object WeakMap]",mZ="[object ArrayBuffer]",yZ="[object DataView]",gZ="[object Float32Array]",jZ="[object Float64Array]",pZ="[object Int8Array]",bZ="[object Int16Array]",iZ="[object Int32Array]",uZ="[object Uint8Array]",nZ="[object Uint8ClampedArray]",cZ="[object Uint16Array]",oZ="[object Uint32Array]",X,bJ;var iJ=Y(()=>{DZ();b();LZ();n();r();RZ();FZ();t();JJ();NZ();hJ();f();ZJ();DJ();IZ();dJ();xZ();EJ();MZ();OJ();i();c();X={};X[gJ]=X[wZ]=X[mZ]=X[yZ]=X[CZ]=X[AZ]=X[gZ]=X[jZ]=X[pZ]=X[bZ]=X[iZ]=X[kZ]=X[dZ]=X[pJ]=X[fZ]=X[_Z]=X[TZ]=X[hZ]=X[uZ]=X[nZ]=X[cZ]=X[oZ]=!0;X[OZ]=X[jJ]=X[vZ]=!1;bJ=A});function sZ(J,Q){return Q.length<2?J:uJ(J,nJ(Q,0,-1))}var cJ;var oJ=Y(()=>{rZ();lZ();cJ=sZ});function Q6(J,Q){Q=k(Q,J);var Z=-1,q=Q.length;if(!q)return!0;while(++Z<q){var W=_(Q[Z]);if(W==="__proto__"&&!J6.call(J,"__proto__"))return!1;if((W==="constructor"||W==="prototype")&&Z<q-1)return!1}var H=cJ(J,Q);return H==null||delete H[_(lJ(Q))]}var eZ,J6,sJ;var tJ=Y(()=>{rJ();aZ();oJ();tZ();eZ=Object.prototype,J6=eZ.hasOwnProperty;sJ=Q6});function $6(J){return aJ(J)?void 0:J}var eJ;var JQ=Y(()=>{Z6();eJ=$6});function W6(J){return O(J)||ZQ(J)||!!(QQ&&J&&J[QQ])}var QQ,$Q;var qQ=Y(()=>{GJ();q6();dJ();QQ=x?x.isConcatSpreadable:void 0;$Q=W6});function XQ(J,Q,Z,q,W){var H=-1,$=J.length;Z||(Z=$Q),W||(W=[]);while(++H<$){var G=J[H];if(Q>0&&Z(G))if(Q>1)XQ(G,Q-1,Z,q,W);else WQ(W,G);else if(!q)W[W.length]=G}return W}var YQ;var HQ=Y(()=>{X6();qQ();YQ=XQ});function Y6(J){var Q=J==null?0:J.length;return Q?YQ(J,1):[]}var KQ;var GQ=Y(()=>{HQ();KQ=Y6});function G6(J){return BQ(UQ(J,void 0,KQ),J+"")}var PQ;var MQ=Y(()=>{GQ();H6();K6();PQ=G6});var B6=1,P6=2,M6=4,D6,D$;var x6=Y(()=>{U6();iJ();tJ();rJ();F();JQ();MQ();hJ();D6=PQ(function(J,Q){var Z={};if(J==null)return Z;var q=!1;if(Q=DQ(Q,function(H){return H=k(H,J),q||(q=H.length>1),H}),U(J,S(J),Z),q)Z=bJ(Z,B6|P6|M6,eJ);var W=Q.length;while(W--)sJ(Z,Q[W]);return Z}),D$=D6});function RQ(){let J=T("tengu_harbor_ledger",[]),Q=L6().safeParse(J);return Q.success?Q.data:[]}function FQ(){return T("tengu_harbor",!1)}var L6;var IQ=Y(()=>{xQ();NQ();LQ();N6();L6=I(()=>K.array(K.object({marketplace:K.string(),plugin:K.string()})))});function f$(J,Q,Z){let q=Object.entries(Z??{}).filter(([W])=>w6.test(W)).map(([W,H])=>` ${W}="${m(H)}"`).join("");return`<${v} source="${m(J)}"${q}>
2
- ${Q}
3
- </${v}>`}function C6(J,Q){if((J==="team"||J==="enterprise")&&Q)return{entries:Q,source:"org"};return{entries:RQ(),source:"ledger"}}function A6(J,Q){let Z=J.split(":");return Q.find((q)=>q.kind==="server"?J===q.name:Z[0]==="plugin"&&Z[1]===q.name)}function _$(J,Q,Z){if(!Q?.experimental?.["claude/channel"])return{action:"skip",kind:"capability",reason:"server did not declare claude/channel capability"};if(!FQ())return{action:"skip",kind:"disabled",reason:"channels feature is not currently available"};if(!VQ()?.accessToken)return{action:"skip",kind:"auth",reason:"channels requires claude.ai authentication (run /login)"};let q=wQ(),W=q==="team"||q==="enterprise",H=W?EQ("policySettings"):void 0;if(W&&H?.channelsEnabled!==!0)return{action:"skip",kind:"policy",reason:"channels not enabled by org policy (set channelsEnabled: true in managed settings)"};let $=A6(J,zQ());if(!$)return{action:"skip",kind:"session",reason:`server ${J} not in --channels list for this session`};if($.kind==="plugin"){let G=Z?h(Z).marketplace:void 0;if(G!==$.marketplace)return{action:"skip",kind:"marketplace",reason:`you asked for plugin:${$.name}@${$.marketplace} but the installed ${$.name} plugin is from ${G??"an unknown source"}`};if(!$.dev){let{entries:M,source:d}=C6(q,H?.allowedChannelPlugins);if(!M.some((R)=>R.plugin===$.name&&R.marketplace===$.marketplace))return{action:"skip",kind:"allowlist",reason:d==="org"?`plugin ${$.name}@${$.marketplace} is not on your org's approved channels list (set allowedChannelPlugins in managed settings)`:`plugin ${$.name}@${$.marketplace} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`}}}else if(!$.dev)return{action:"skip",kind:"allowlist",reason:`server ${$.name} is not on the approved channels allowlist (use --dangerously-load-development-channels for local dev)`};return{action:"register"}}var k$,V6="notifications/claude/channel/permission",d$,w6;var O6=Y(()=>{xQ();R6();F6();z6();NQ();LQ();I6();E6();IQ();k$=I(()=>K.object({method:K.literal("notifications/claude/channel"),params:K.object({content:K.string(),meta:K.record(K.string(),K.string()).optional()})})),d$=I(()=>K.object({method:K.literal(V6),params:K.object({request_id:K.string(),behavior:K.enum(["allow","deny"])})})),w6=/^[a-zA-Z_][a-zA-Z0-9_]*$/});
4
- export{D$ as pe,x6 as qe,IQ as re,k$ as se,f$ as te,A6 as ue,_$ as ve,O6 as we};
@@ -1,2 +0,0 @@
1
- import{ac as t,bc as pJ}from"./cli-0.1.15-g5wt8d3g.mjs";import{ig as r,jg as DJ}from"./cli-0.1.15-htms4w3h.mjs";import{Bh as zJ,Bx as AJ,Dn as h,HO as n,KO as OJ,QD as PJ,RD as jJ,SD as o,TD as yJ,Ut as u,Vt as _J,_H as I,aN as RJ,do as VJ,fo as x,lJ as P,lw as T,nE as l,oE as HJ,pw as g,qw as c,rw as MJ,tL as i,vx as a}from"./cli-0.1.15-26hkdean.mjs";import{N1 as YJ}from"./cli-0.1.15-q35rzjnz.mjs";import{P5 as O,Q5 as wJ,Q7 as QJ,_5 as B,a$ as m,d6 as H,i$ as f,j$ as UJ,u$ as NJ}from"./cli-0.1.15-4892kydg.mjs";import{wca as ZJ}from"./cli-0.1.15-rr65b3dk.mjs";import{Ida as KJ}from"./cli-0.1.15-wfn10357.mjs";import{yea as R,zea as y}from"./cli-0.1.15-b7f6hacc.mjs";import{cfa as C,ifa as qJ,mfa as V,qfa as BJ,wfa as d,zfa as LJ}from"./cli-0.1.15-nk50qhet.mjs";import{Afa as U,Nfa as WJ}from"./cli-0.1.15-9pe3dbgs.mjs";import{Aia as F,jja as b,mla as j}from"./cli-0.1.15-12azgmva.mjs";import{_la as IJ}from"./cli-0.1.15-mhbfhhf6.mjs";yJ();DJ();j();KJ();y();P();zJ();x();QJ();ZJ();C();H();I();YJ();qJ();h();P();x();H();C();I();h();VJ();function D(){}j();y();wJ();LJ();WJ();BJ();_J();NJ();H();g();HJ();RJ();MJ();UJ();AJ();OJ();import{join as Q}from"path";var TJ=30;function L(){let q=((m()||{}).cleanupPeriodDays??TJ)*24*60*60*1000;return new Date(Date.now()-q)}function vJ(X,J){return{messages:X.messages+J.messages,errors:X.errors+J.errors}}function FJ(X){let J=X.split(".")[0].replace(/T(\d{2})-(\d{2})-(\d{2})-(\d{3})Z/,"T$1:$2:$3.$4Z");return new Date(J)}async function p(X,J,q){let $={messages:0,errors:0};try{let G=await V().readdir(X);for(let K of G)try{if(FJ(K.name)<J)if(await V().unlink(Q(X,K.name)),q)$.messages++;else $.errors++}catch(Y){B(Y)}}catch(G){if(G instanceof Error&&"code"in G&&G.code!=="ENOENT")B(G)}return $}async function bJ(){let X=V(),J=L(),q=O.errors(),$=O.baseLogs(),G=await p(q,J,!1);try{let K;try{K=await X.readdir($)}catch{return G}let Y=K.filter((Z)=>Z.isDirectory()&&Z.name.startsWith("mcp-logs-")).map((Z)=>Q($,Z.name));for(let Z of Y)G=vJ(G,await p(Z,J,!0)),await z(Z,X)}catch(K){if(K instanceof Error&&"code"in K&&K.code!=="ENOENT")B(K)}return G}async function w(X,J,q){if((await q.stat(X)).mtime<J)return await q.unlink(X),!0;return!1}async function z(X,J){try{await J.rmdir(X)}catch{}}async function SJ(){let X=L(),J={messages:0,errors:0},q=i(),$=V(),G;try{G=await $.readdir(q)}catch{return J}for(let K of G){if(!K.isDirectory())continue;let Y=Q(q,K.name),Z;try{Z=await $.readdir(Y)}catch{J.errors++;continue}for(let W of Z)if(W.isFile()){if(!W.name.endsWith(".jsonl")&&!W.name.endsWith(".cast"))continue;try{if(await w(Q(Y,W.name),X,$))J.messages++}catch{J.errors++}}else if(W.isDirectory()){let M=Q(Y,W.name),N=Q(M,a),S;try{S=await $.readdir(N)}catch{await z(M,$);continue}for(let _ of S)if(_.isFile())try{if(await w(Q(N,_.name),X,$))J.messages++}catch{J.errors++}else if(_.isDirectory()){let A=Q(N,_.name),k;try{k=await $.readdir(A)}catch{continue}for(let E of k){if(!E.isFile())continue;try{if(await w(Q(A,E.name),X,$))J.messages++}catch{J.errors++}}await z(A,$)}await z(N,$),await z(M,$)}await z(Y,$)}return J}async function kJ(X,J,q=!0){let $=L(),G={messages:0,errors:0},K=V(),Y;try{Y=await K.readdir(X)}catch{return G}for(let Z of Y){if(!Z.isFile()||!Z.name.endsWith(J))continue;try{if(await w(Q(X,Z.name),$,K))G.messages++}catch{G.errors++}}if(q)await z(X,K);return G}function EJ(){let X=Q(U(),"plans");return kJ(X,".md")}async function CJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"file-history"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));await Promise.all(Y.map(async(Z)=>{try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}})),await z(G,q)}catch($){B($)}return J}async function hJ(){let X=L(),J={messages:0,errors:0},q=V();try{let $=U(),G=Q($,"session-env"),K;try{K=await q.readdir(G)}catch{return J}let Y=K.filter((Z)=>Z.isDirectory()).map((Z)=>Q(G,Z.name));for(let Z of Y)try{if((await q.stat(Z)).mtime<X)await q.rm(Z,{recursive:!0,force:!0}),J.messages++}catch{J.errors++}await z(G,q)}catch($){B($)}return J}async function xJ(){let X=L(),J={messages:0,errors:0},q=V(),$=Q(U(),"debug"),G;try{G=await q.readdir($)}catch{return J}for(let K of G){if(!K.isFile()||!K.name.endsWith(".txt")||K.name==="latest")continue;try{if(await w(Q($,K.name),X,q))J.messages++}catch{J.errors++}}return J}async function s(){let{errors:X}=c();if(X.length>0&&f("cleanupPeriodDays")){d("Skipping cleanup: settings have validation errors but cleanupPeriodDays was explicitly set. Fix settings errors to enable cleanup.");return}await bJ(),await SJ(),await EJ(),await CJ(),await hJ(),await xJ(),await u(),await l(L());let J=await n(L());if(J>0)R("tengu_worktree_cleanup",{removed:J})}g();pJ();var dJ=(jJ(),IJ(PJ));var v=600000;function iX(){r(),D(),dJ.initExtractMemories(),o(),t();let X=!0;async function J(){if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}if(X)X=!1,await s();if(b()&&F()>Date.now()-60000){setTimeout(J,v).unref();return}await T()}setTimeout(J,v).unref()}
2
- export{iX as Ja};
@@ -1,2 +0,0 @@
1
- import{QS as f,RU as W,dV as X,fV as k}from"./cli-0.1.15-68f0jtkh.mjs";import{DV as V,EV as J,GV as K}from"./cli-0.1.15-gxgy4enj.mjs";import{HV as P}from"./cli-0.1.15-tp614m5f.mjs";import{Oda as U,Pda as O}from"./cli-0.1.15-11sdbfxy.mjs";import{Zla as Q,bma as L}from"./cli-0.1.15-mhbfhhf6.mjs";import{PassThrough as C}from"stream";function E(q){let b=Z.c(5),{children:w}=q,{exit:z}=W(),B,H;if(b[0]!==z)B=()=>{let D=setTimeout(z,0);return()=>clearTimeout(D)},H=[z],b[0]=z,b[1]=B,b[2]=H;else B=b[1],H=b[2];y.useLayoutEffect(B,H);let G;if(b[3]!==w)G=J(V,{children:w}),b[3]=w,b[4]=G;else G=b[4];return G}function Y(q){let b=q.indexOf(M);if(b===-1)return q;let w=b+M.length,z=q.indexOf(F,w);if(z===-1)return q;return q.slice(w,z)}function g(q,b){return new Promise(async(w)=>{let z="",B=new C;if(b!==void 0)B.columns=b;B.on("data",(G)=>{z+=G.toString()});let H=await X(J(E,{children:q}),{stdout:B,patchConsole:!1});await Promise.race([H.waitUntilExit(),new Promise((G)=>setTimeout(G,3000))]),await w(Y(z))})}async function N(q,b){let w=await g(q,b);return U(w)}var Z,y,M="\x1B[?2026h",F="\x1B[?2026l";var j=L(()=>{O();k();K();Z=Q(f(),1),y=Q(P(),1)});
2
- export{g as Sf,N as Tf,j as Uf};
@@ -1,5 +0,0 @@
1
- import{$la as tZ}from"./cli-0.1.15-mhbfhhf6.mjs";var u0=tZ((g0,LZ)=>{function JZ(Z){if(Z instanceof Map)Z.clear=Z.delete=Z.set=function(){throw Error("map is read-only")};else if(Z instanceof Set)Z.add=Z.clear=Z.delete=function(){throw Error("set is read-only")};return Object.freeze(Z),Object.getOwnPropertyNames(Z).forEach(function(J){var z=Z[J];if(typeof z=="object"&&!Object.isFrozen(z))JZ(z)}),Z}var yZ=JZ,aZ=JZ;yZ.default=aZ;class ZZ{constructor(Z){if(Z.data===void 0)Z.data={};this.data=Z.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function M(Z){return Z.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function x(Z,...J){let z=Object.create(null);for(let $ in Z)z[$]=Z[$];return J.forEach(function($){for(let P in $)z[P]=$[P]}),z}var oZ="</span>",GZ=(Z)=>{return!!Z.kind};class HZ{constructor(Z,J){this.buffer="",this.classPrefix=J.classPrefix,Z.walk(this)}addText(Z){this.buffer+=M(Z)}openNode(Z){if(!GZ(Z))return;let J=Z.kind;if(!Z.sublanguage)J=`${this.classPrefix}${J}`;this.span(J)}closeNode(Z){if(!GZ(Z))return;this.buffer+=oZ}value(){return this.buffer}span(Z){this.buffer+=`<span class="${Z}">`}}class QZ{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Z){this.top.children.push(Z)}openNode(Z){let J={kind:Z,children:[]};this.add(J),this.stack.push(J)}closeNode(){if(this.stack.length>1)return this.stack.pop();return}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Z){return this.constructor._walk(Z,this.rootNode)}static _walk(Z,J){if(typeof J==="string")Z.addText(J);else if(J.children)Z.openNode(J),J.children.forEach((z)=>this._walk(Z,z)),Z.closeNode(J);return Z}static _collapse(Z){if(typeof Z==="string")return;if(!Z.children)return;if(Z.children.every((J)=>typeof J==="string"))Z.children=[Z.children.join("")];else Z.children.forEach((J)=>{QZ._collapse(J)})}}class BZ extends QZ{constructor(Z){super();this.options=Z}addKeyword(Z,J){if(Z==="")return;this.openNode(J),this.addText(Z),this.closeNode()}addText(Z){if(Z==="")return;this.add(Z)}addSublanguage(Z,J){let z=Z.root;z.kind=J,z.sublanguage=!0,this.add(z)}toHTML(){return new HZ(this,this.options).value()}finalize(){return!0}}function eZ(Z){return new RegExp(Z.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function E(Z){if(!Z)return null;if(typeof Z==="string")return Z;return Z.source}function Z0(...Z){return Z.map((z)=>E(z)).join("")}function q0(...Z){return"("+Z.map((z)=>E(z)).join("|")+")"}function J0(Z){return new RegExp(Z.toString()+"|").exec("").length-1}function Q0(Z,J){let z=Z&&Z.exec(J);return z&&z.index===0}var X0=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function V0(Z,J="|"){let z=0;return Z.map(($)=>{z+=1;let P=z,v=E($),D="";while(v.length>0){let Q=X0.exec(v);if(!Q){D+=v;break}if(D+=v.substring(0,Q.index),v=v.substring(Q.index+Q[0].length),Q[0][0]==="\\"&&Q[1])D+="\\"+String(Number(Q[1])+P);else if(D+=Q[0],Q[0]==="(")z++}return D}).map(($)=>`(${$})`).join(J)}var z0=/\b\B/,DZ="[a-zA-Z]\\w*",XZ="[a-zA-Z_]\\w*",VZ="\\b\\d+(\\.\\d+)?",CZ="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",kZ="\\b(0b[01]+)",Y0="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",W0=(Z={})=>{let J=/^#![ ]*\//;if(Z.binary)Z.begin=Z0(J,/.*\b/,Z.binary,/\b.*/);return x({className:"meta",begin:J,end:/$/,relevance:0,"on:begin":(z,$)=>{if(z.index!==0)$.ignoreMatch()}},Z)},p={begin:"\\\\[\\s\\S]",relevance:0},$0={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[p]},F0={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[p]},jZ={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},r=function(Z,J,z={}){let $=x({className:"comment",begin:Z,end:J,contains:[]},z);return $.contains.push(jZ),$.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),$},G0=r("//","$"),U0=r("/\\*","\\*/"),K0=r("#","$"),I0={className:"number",begin:VZ,relevance:0},P0={className:"number",begin:CZ,relevance:0},v0={className:"number",begin:kZ,relevance:0},y0={className:"number",begin:VZ+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},H0={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[p,{begin:/\[/,end:/\]/,relevance:0,contains:[p]}]}]},B0={className:"title",begin:DZ,relevance:0},D0={className:"title",begin:XZ,relevance:0},C0={begin:"\\.\\s*"+XZ,relevance:0},k0=function(Z){return Object.assign(Z,{"on:begin":(J,z)=>{z.data._beginMatch=J[1]},"on:end":(J,z)=>{if(z.data._beginMatch!==J[1])z.ignoreMatch()}})},i=Object.freeze({__proto__:null,MATCH_NOTHING_RE:z0,IDENT_RE:DZ,UNDERSCORE_IDENT_RE:XZ,NUMBER_RE:VZ,C_NUMBER_RE:CZ,BINARY_NUMBER_RE:kZ,RE_STARTERS_RE:Y0,SHEBANG:W0,BACKSLASH_ESCAPE:p,APOS_STRING_MODE:$0,QUOTE_STRING_MODE:F0,PHRASAL_WORDS_MODE:jZ,COMMENT:r,C_LINE_COMMENT_MODE:G0,C_BLOCK_COMMENT_MODE:U0,HASH_COMMENT_MODE:K0,NUMBER_MODE:I0,C_NUMBER_MODE:P0,BINARY_NUMBER_MODE:v0,CSS_NUMBER_MODE:y0,REGEXP_MODE:H0,TITLE_MODE:B0,UNDERSCORE_TITLE_MODE:D0,METHOD_GUARD:C0,END_SAME_AS_BEGIN:k0});function j0(Z,J){if(Z.input[Z.index-1]===".")J.ignoreMatch()}function A0(Z,J){if(!J)return;if(!Z.beginKeywords)return;if(Z.begin="\\b("+Z.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",Z.__beforeBegin=j0,Z.keywords=Z.keywords||Z.beginKeywords,delete Z.beginKeywords,Z.relevance===void 0)Z.relevance=0}function w0(Z,J){if(!Array.isArray(Z.illegal))return;Z.illegal=q0(...Z.illegal)}function L0(Z,J){if(!Z.match)return;if(Z.begin||Z.end)throw Error("begin & end are not supported with match");Z.begin=Z.match,delete Z.match}function O0(Z,J){if(Z.relevance===void 0)Z.relevance=1}var T0=["of","and","for","in","not","or","if","then","parent","list","value"],R0="keyword";function AZ(Z,J,z=R0){let $={};if(typeof Z==="string")P(z,Z.split(" "));else if(Array.isArray(Z))P(z,Z);else Object.keys(Z).forEach(function(v){Object.assign($,AZ(Z[v],J,v))});return $;function P(v,D){if(J)D=D.map((Q)=>Q.toLowerCase());D.forEach(function(Q){let X=Q.split("|");$[X[0]]=[v,S0(X[0],X[1])]})}}function S0(Z,J){if(J)return Number(J);return _0(Z)?0:1}function _0(Z){return T0.includes(Z.toLowerCase())}function x0(Z,{plugins:J}){function z(Q,X){return new RegExp(E(Q),"m"+(Z.case_insensitive?"i":"")+(X?"g":""))}class ${constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Q,X){X.position=this.position++,this.matchIndexes[this.matchAt]=X,this.regexes.push([X,Q]),this.matchAt+=J0(Q)+1}compile(){if(this.regexes.length===0)this.exec=()=>null;let Q=this.regexes.map((X)=>X[1]);this.matcherRe=z(V0(Q),!0),this.lastIndex=0}exec(Q){this.matcherRe.lastIndex=this.lastIndex;let X=this.matcherRe.exec(Q);if(!X)return null;let I=X.findIndex((k,S)=>S>0&&k!==void 0),U=this.matchIndexes[I];return X.splice(0,I),Object.assign(X,U)}}class P{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Q){if(this.multiRegexes[Q])return this.multiRegexes[Q];let X=new $;return this.rules.slice(Q).forEach(([I,U])=>X.addRule(I,U)),X.compile(),this.multiRegexes[Q]=X,X}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Q,X){if(this.rules.push([Q,X]),X.type==="begin")this.count++}exec(Q){let X=this.getMatcher(this.regexIndex);X.lastIndex=this.lastIndex;let I=X.exec(Q);if(this.resumingScanAtSamePosition())if(I&&I.index===this.lastIndex);else{let U=this.getMatcher(0);U.lastIndex=this.lastIndex+1,I=U.exec(Q)}if(I){if(this.regexIndex+=I.position+1,this.regexIndex===this.count)this.considerAll()}return I}}function v(Q){let X=new P;if(Q.contains.forEach((I)=>X.addRule(I.begin,{rule:I,type:"begin"})),Q.terminatorEnd)X.addRule(Q.terminatorEnd,{type:"end"});if(Q.illegal)X.addRule(Q.illegal,{type:"illegal"});return X}function D(Q,X){let I=Q;if(Q.isCompiled)return I;[L0].forEach((k)=>k(Q,X)),Z.compilerExtensions.forEach((k)=>k(Q,X)),Q.__beforeBegin=null,[A0,w0,O0].forEach((k)=>k(Q,X)),Q.isCompiled=!0;let U=null;if(typeof Q.keywords==="object")U=Q.keywords.$pattern,delete Q.keywords.$pattern;if(Q.keywords)Q.keywords=AZ(Q.keywords,Z.case_insensitive);if(Q.lexemes&&U)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");if(U=U||Q.lexemes||/\w+/,I.keywordPatternRe=z(U,!0),X){if(!Q.begin)Q.begin=/\B|\b/;if(I.beginRe=z(Q.begin),Q.endSameAsBegin)Q.end=Q.begin;if(!Q.end&&!Q.endsWithParent)Q.end=/\B|\b/;if(Q.end)I.endRe=z(Q.end);if(I.terminatorEnd=E(Q.end)||"",Q.endsWithParent&&X.terminatorEnd)I.terminatorEnd+=(Q.end?"|":"")+X.terminatorEnd}if(Q.illegal)I.illegalRe=z(Q.illegal);if(!Q.contains)Q.contains=[];if(Q.contains=[].concat(...Q.contains.map(function(k){return f0(k==="self"?Q:k)})),Q.contains.forEach(function(k){D(k,I)}),Q.starts)D(Q.starts,X);return I.matcher=v(I),I}if(!Z.compilerExtensions)Z.compilerExtensions=[];if(Z.contains&&Z.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return Z.classNameAliases=x(Z.classNameAliases||{}),D(Z)}function wZ(Z){if(!Z)return!1;return Z.endsWithParent||wZ(Z.starts)}function f0(Z){if(Z.variants&&!Z.cachedVariants)Z.cachedVariants=Z.variants.map(function(J){return x(Z,{variants:null},J)});if(Z.cachedVariants)return Z.cachedVariants;if(wZ(Z))return x(Z,{starts:Z.starts?x(Z.starts):null});if(Object.isFrozen(Z))return x(Z);return Z}var b0="10.7.3";function N0(Z){return Boolean(Z||Z==="")}function M0(Z){let J={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){if(this.unknownLanguage)return"";return"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!Z.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,M(this.code);let $={};if(this.autoDetect)$=Z.highlightAuto(this.code),this.detectedLanguage=$.language;else $=Z.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language;return $.value},autoDetect(){return!this.language||N0(this.autodetect)},ignoreIllegals(){return!0}},render($){return $("pre",{},[$("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:J,VuePlugin:{install($){$.component("highlightjs",J)}}}}var E0={"after:highlightElement":({el:Z,result:J,text:z})=>{let $=UZ(Z);if(!$.length)return;let P=document.createElement("div");P.innerHTML=J.value,J.value=p0($,UZ(P),z)}};function qZ(Z){return Z.nodeName.toLowerCase()}function UZ(Z){let J=[];return function z($,P){for(let v=$.firstChild;v;v=v.nextSibling)if(v.nodeType===3)P+=v.nodeValue.length;else if(v.nodeType===1){if(J.push({event:"start",offset:P,node:v}),P=z(v,P),!qZ(v).match(/br|hr|img|input/))J.push({event:"stop",offset:P,node:v})}return P}(Z,0),J}function p0(Z,J,z){let $=0,P="",v=[];function D(){if(!Z.length||!J.length)return Z.length?Z:J;if(Z[0].offset!==J[0].offset)return Z[0].offset<J[0].offset?Z:J;return J[0].event==="start"?Z:J}function Q(U){function k(S){return" "+S.nodeName+'="'+M(S.value)+'"'}P+="<"+qZ(U)+[].map.call(U.attributes,k).join("")+">"}function X(U){P+="</"+qZ(U)+">"}function I(U){(U.event==="start"?Q:X)(U.node)}while(Z.length||J.length){let U=D();if(P+=M(z.substring($,U[0].offset)),$=U[0].offset,U===Z){v.reverse().forEach(X);do I(U.splice(0,1)[0]),U=D();while(U===Z&&U.length&&U[0].offset===$);v.reverse().forEach(Q)}else{if(U[0].event==="start")v.push(U[0].node);else v.pop();I(U.splice(0,1)[0])}}return P+M(z.substr($))}var KZ={},o=(Z)=>{console.error(Z)},IZ=(Z,...J)=>{console.log(`WARN: ${Z}`,...J)},w=(Z,J)=>{if(KZ[`${Z}/${J}`])return;console.log(`Deprecated as of ${Z}. ${J}`),KZ[`${Z}/${J}`]=!0},e=M,PZ=x,vZ=Symbol("nomatch"),h0=function(Z){let J=Object.create(null),z=Object.create(null),$=[],P=!0,v=/(^(<[^>]+>|\t|)+|\n)/gm,D="Could not find the language '{}', did you forget to load/include a language module?",Q={disableAutodetect:!0,name:"Plain text",contains:[]},X={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:BZ};function I(q){return X.noHighlightRe.test(q)}function U(q){let V=q.className+" ";V+=q.parentNode?q.parentNode.className:"";let K=X.languageDetectRe.exec(V);if(K){let H=R(K[1]);if(!H)IZ(D.replace("{}",K[1])),IZ("Falling back to no-highlight mode for this block.",q);return H?K[1]:"no-highlight"}return V.split(/\s+/).find((H)=>I(H)||R(H))}function k(q,V,K,H){let C="",f="";if(typeof V==="object")C=q,K=V.ignoreIllegals,f=V.language,H=void 0;else w("10.7.0","highlight(lang, code, ...args) has been deprecated."),w("10.7.0",`Please use highlight(code, options) instead.
2
- https://github.com/highlightjs/highlight.js/issues/2277`),f=q,C=V;let L={code:C,language:f};c("before:highlight",L);let O=L.result?L.result:S(L.language,L.code,K,H);return O.code=L.code,c("after:highlight",O),O}function S(q,V,K,H){function C(Y,W){let G=b.case_insensitive?W[0].toLowerCase():W[0];return Object.prototype.hasOwnProperty.call(Y.keywords,G)&&Y.keywords[G]}function f(){if(!F.keywords){j.addText(B);return}let Y=0;F.keywordPatternRe.lastIndex=0;let W=F.keywordPatternRe.exec(B),G="";while(W){G+=B.substring(Y,W.index);let y=C(F,W);if(y){let[A,s]=y;if(j.addText(G),G="",g+=s,A.startsWith("_"))G+=W[0];else{let nZ=b.classNameAliases[A]||A;j.addKeyword(W[0],nZ)}}else G+=W[0];Y=F.keywordPatternRe.lastIndex,W=F.keywordPatternRe.exec(B)}G+=B.substr(Y),j.addText(G)}function L(){if(B==="")return;let Y=null;if(typeof F.subLanguage==="string"){if(!J[F.subLanguage]){j.addText(B);return}Y=S(F.subLanguage,B,!0,FZ[F.subLanguage]),FZ[F.subLanguage]=Y.top}else Y=l(B,F.subLanguage.length?F.subLanguage:null);if(F.relevance>0)g+=Y.relevance;j.addSublanguage(Y.emitter,Y.language)}function O(){if(F.subLanguage!=null)L();else f();B=""}function T(Y){if(Y.className)j.openNode(b.classNameAliases[Y.className]||Y.className);return F=Object.create(Y,{parent:{value:F}}),F}function _(Y,W,G){let y=Q0(Y.endRe,G);if(y){if(Y["on:end"]){let A=new ZZ(Y);if(Y["on:end"](W,A),A.isMatchIgnored)y=!1}if(y){while(Y.endsParent&&Y.parent)Y=Y.parent;return Y}}if(Y.endsWithParent)return _(Y.parent,W,G)}function iZ(Y){if(F.matcher.regexIndex===0)return B+=Y[0],1;else return a=!0,0}function rZ(Y){let W=Y[0],G=Y.rule,y=new ZZ(G),A=[G.__beforeBegin,G["on:begin"]];for(let s of A){if(!s)continue;if(s(Y,y),y.isMatchIgnored)return iZ(W)}if(G&&G.endSameAsBegin)G.endRe=eZ(W);if(G.skip)B+=W;else{if(G.excludeBegin)B+=W;if(O(),!G.returnBegin&&!G.excludeBegin)B=W}return T(G),G.returnBegin?0:W.length}function lZ(Y){let W=Y[0],G=V.substr(Y.index),y=_(F,Y,G);if(!y)return vZ;let A=F;if(A.skip)B+=W;else{if(!(A.returnEnd||A.excludeEnd))B+=W;if(O(),A.excludeEnd)B=W}do{if(F.className)j.closeNode();if(!F.skip&&!F.subLanguage)g+=F.relevance;F=F.parent}while(F!==y.parent);if(y.starts){if(y.endSameAsBegin)y.starts.endRe=y.endRe;T(y.starts)}return A.returnEnd?0:W.length}function dZ(){let Y=[];for(let W=F;W!==b;W=W.parent)if(W.className)Y.unshift(W.className);Y.forEach((W)=>j.openNode(W))}let u={};function $Z(Y,W){let G=W&&W[0];if(B+=Y,G==null)return O(),0;if(u.type==="begin"&&W.type==="end"&&u.index===W.index&&G===""){if(B+=V.slice(W.index,W.index+1),!P){let y=Error("0 width match regex");throw y.languageName=q,y.badRule=u.rule,y}return 1}if(u=W,W.type==="begin")return rZ(W);else if(W.type==="illegal"&&!K){let y=Error('Illegal lexeme "'+G+'" for mode "'+(F.className||"<unnamed>")+'"');throw y.mode=F,y}else if(W.type==="end"){let y=lZ(W);if(y!==vZ)return y}if(W.type==="illegal"&&G==="")return 1;if(t>1e5&&t>W.index*3)throw Error("potential infinite loop, way more iterations than matches");return B+=G,G.length}let b=R(q);if(!b)throw o(D.replace("{}",q)),Error('Unknown language: "'+q+'"');let mZ=x0(b,{plugins:$}),n="",F=H||mZ,FZ={},j=new X.__emitter(X);dZ();let B="",g=0,N=0,t=0,a=!1;try{F.matcher.considerAll();for(;;){if(t++,a)a=!1;else F.matcher.considerAll();F.matcher.lastIndex=N;let Y=F.matcher.exec(V);if(!Y)break;let W=V.substring(N,Y.index),G=$Z(W,Y);N=Y.index+G}return $Z(V.substr(N)),j.closeAllNodes(),j.finalize(),n=j.toHTML(),{relevance:Math.floor(g),value:n,language:q,illegal:!1,emitter:j,top:F}}catch(Y){if(Y.message&&Y.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:Y.message,context:V.slice(N-100,N+100),mode:Y.mode},sofar:n,relevance:0,value:e(V),emitter:j};else if(P)return{illegal:!1,relevance:0,value:e(V),emitter:j,language:q,top:F,errorRaised:Y};else throw Y}}function OZ(q){let V={relevance:0,emitter:new X.__emitter(X),value:e(q),illegal:!1,top:Q};return V.emitter.addText(q),V}function l(q,V){V=V||X.languages||Object.keys(J);let K=OZ(q),H=V.filter(R).filter(WZ).map((T)=>S(T,q,!1));H.unshift(K);let C=H.sort((T,_)=>{if(T.relevance!==_.relevance)return _.relevance-T.relevance;if(T.language&&_.language){if(R(T.language).supersetOf===_.language)return 1;else if(R(_.language).supersetOf===T.language)return-1}return 0}),[f,L]=C,O=f;return O.second_best=L,O}function TZ(q){if(!(X.tabReplace||X.useBR))return q;return q.replace(v,(V)=>{if(V===`
3
- `)return X.useBR?"<br>":V;else if(X.tabReplace)return V.replace(/\t/g,X.tabReplace);return V})}function RZ(q,V,K){let H=V?z[V]:K;if(q.classList.add("hljs"),H)q.classList.add(H)}let SZ={"before:highlightElement":({el:q})=>{if(X.useBR)q.innerHTML=q.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
4
- `)},"after:highlightElement":({result:q})=>{if(X.useBR)q.value=q.value.replace(/\n/g,"<br>")}},_Z=/^(<[^>]+>|\t)+/gm,xZ={"after:highlightElement":({result:q})=>{if(X.tabReplace)q.value=q.value.replace(_Z,(V)=>V.replace(/\t/g,X.tabReplace))}};function h(q){let V=null,K=U(q);if(I(K))return;c("before:highlightElement",{el:q,language:K}),V=q;let H=V.textContent,C=K?k(H,{language:K,ignoreIllegals:!0}):l(H);if(c("after:highlightElement",{el:q,result:C,text:H}),q.innerHTML=C.value,RZ(q,K,C.language),q.result={language:C.language,re:C.relevance,relavance:C.relevance},C.second_best)q.second_best={language:C.second_best.language,re:C.second_best.relevance,relavance:C.second_best.relevance}}function fZ(q){if(q.useBR)w("10.3.0","'useBR' will be removed entirely in v11.0"),w("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559");X=PZ(X,q)}let d=()=>{if(d.called)return;d.called=!0,w("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(h)};function bZ(){w("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),m=!0}let m=!1;function zZ(){if(document.readyState==="loading"){m=!0;return}document.querySelectorAll("pre code").forEach(h)}function NZ(){if(m)zZ()}if(typeof window<"u"&&window.addEventListener)window.addEventListener("DOMContentLoaded",NZ,!1);function MZ(q,V){let K=null;try{K=V(Z)}catch(H){if(o("Language definition for '{}' could not be registered.".replace("{}",q)),!P)throw H;else o(H);K=Q}if(!K.name)K.name=q;if(J[q]=K,K.rawDefinition=V.bind(null,Z),K.aliases)YZ(K.aliases,{languageName:q})}function EZ(q){delete J[q];for(let V of Object.keys(z))if(z[V]===q)delete z[V]}function pZ(){return Object.keys(J)}function hZ(q){w("10.4.0","requireLanguage will be removed entirely in v11."),w("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");let V=R(q);if(V)return V;throw Error("The '{}' language is required, but not loaded.".replace("{}",q))}function R(q){return q=(q||"").toLowerCase(),J[q]||J[z[q]]}function YZ(q,{languageName:V}){if(typeof q==="string")q=[q];q.forEach((K)=>{z[K.toLowerCase()]=V})}function WZ(q){let V=R(q);return V&&!V.disableAutodetect}function cZ(q){if(q["before:highlightBlock"]&&!q["before:highlightElement"])q["before:highlightElement"]=(V)=>{q["before:highlightBlock"](Object.assign({block:V.el},V))};if(q["after:highlightBlock"]&&!q["after:highlightElement"])q["after:highlightElement"]=(V)=>{q["after:highlightBlock"](Object.assign({block:V.el},V))}}function uZ(q){cZ(q),$.push(q)}function c(q,V){let K=q;$.forEach(function(H){if(H[K])H[K](V)})}function gZ(q){return w("10.2.0","fixMarkup will be removed entirely in v11.0"),w("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),TZ(q)}function sZ(q){return w("10.7.0","highlightBlock will be removed entirely in v12.0"),w("10.7.0","Please use highlightElement now."),h(q)}Object.assign(Z,{highlight:k,highlightAuto:l,highlightAll:zZ,fixMarkup:gZ,highlightElement:h,highlightBlock:sZ,configure:fZ,initHighlighting:d,initHighlightingOnLoad:bZ,registerLanguage:MZ,unregisterLanguage:EZ,listLanguages:pZ,getLanguage:R,registerAliases:YZ,requireLanguage:hZ,autoDetection:WZ,inherit:PZ,addPlugin:uZ,vuePlugin:M0(Z).VuePlugin}),Z.debugMode=function(){P=!1},Z.safeMode=function(){P=!0},Z.versionString=b0;for(let q in i)if(typeof i[q]==="object")yZ(i[q]);return Object.assign(Z,i),Z.addPlugin(SZ),Z.addPlugin(E0),Z.addPlugin(xZ),Z},c0=h0({});LZ.exports=c0});
5
- export{u0 as fY};
@@ -1,2 +0,0 @@
1
- import{Gaa as S,Paa as R,Qaa as T,l6 as U,n6 as m,taa as P,vba as H,xaa as M,yba as E}from"./cli-0.1.15-4892kydg.mjs";import{Ffa as K,Nfa as G}from"./cli-0.1.15-9pe3dbgs.mjs";import{bma as x}from"./cli-0.1.15-mhbfhhf6.mjs";function B(){return process.env.GITHUB_DEVICE_FLOW_CLIENT_ID?.trim()||f}function O(J){return new Promise((N)=>setTimeout(N,J))}async function n(J){let N=J?.clientId??B();if(!N)throw new j("No OAuth client ID: set GITHUB_DEVICE_FLOW_CLIENT_ID.");let V=J?.fetchImpl??fetch,$=J?.scope?.trim()||Y,X=$===Y?[$]:[$,Y],y="Device code request failed.";for(let W of X){let Z=await V(g,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:N,scope:W})});if(!Z.ok){let C=await Z.text().catch(()=>"");y=`Device code request failed: ${Z.status} ${C}`;let F=/invalid_scope/i.test(C);if(W!==Y&&F)continue;throw new j(y)}let Q=await Z.json(),z=Q.device_code,q=Q.user_code,A=Q.verification_uri;if(typeof z!=="string"||typeof q!=="string"||typeof A!=="string")throw new j("Malformed device code response from GitHub");return{device_code:z,user_code:q,verification_uri:A,expires_in:typeof Q.expires_in==="number"?Q.expires_in:900,interval:typeof Q.interval==="number"?Q.interval:5}}throw new j(y)}async function d(J,N){let V=N?.clientId??B();if(!V)throw new j("client_id required for polling");let $=Math.max(1,N?.initialInterval??5),X=N?.timeoutSeconds??900,y=N?.fetchImpl??fetch,W=Date.now();while((Date.now()-W)/1000<X){let Z=await y(_,{method:"POST",headers:{Accept:"application/json"},body:new URLSearchParams({client_id:V,device_code:J,grant_type:"urn:ietf:params:oauth:grant-type:device_code"})});if(!Z.ok){let q=await Z.text().catch(()=>"");throw new j(`Token request failed: ${Z.status} ${q}`)}let Q=await Z.json(),z=Q.error;if(z==null){let q=Q.access_token;if(typeof q==="string"&&q)return q;throw new j("No access_token in response")}if(z==="authorization_pending"){await O($*1000);continue}if(z==="slow_down"){$=typeof Q.interval==="number"?Q.interval:$+5,await O($*1000);continue}if(z==="expired_token")throw new j("Device code expired. Start the login flow again.");if(z==="access_denied")throw new j("Authorization was denied or cancelled.");throw new j(`GitHub OAuth error: ${z}`)}throw new j("Timed out waiting for authorization.")}async function a(J){try{if(process.platform==="darwin")await U("open",[J],{useCwd:!1,timeout:5000});else if(process.platform==="win32")await U("cmd",["/c","start","",J],{useCwd:!1,timeout:5000});else await U("xdg-open",[J],{useCwd:!1,timeout:5000})}catch{}}async function w(J,N){let $=await(N??fetch)(k,{method:"GET",headers:{Accept:"application/json",Authorization:`Bearer ${J}`,...b}});if(!$.ok){let z=await $.text().catch(()=>"");throw new j(`Copilot token exchange failed: ${$.status} ${z}`)}let X=await $.json(),y=X.token,W=X.expires_at,Z=X.refresh_in,Q=X.endpoints;if(typeof y!=="string"||typeof W!=="number"||typeof Z!=="number"||!Q||typeof Q!=="object"||typeof Q.api!=="string")throw new j("Malformed Copilot token response");return{token:y,expires_at:W,refresh_in:Z,endpoints:Q}}var f="Iv1.b507a08c87ecfe98",g="https://github.com/login/device/code",_="https://github.com/login/oauth/access_token",k="https://api.github.com/copilot_internal/v2/token",Y="read:user",b,j;var I=x(()=>{m();b={"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"};j=class j extends Error{constructor(J){super(J);this.name="GitHubDeviceFlowError"}}});function D(){return H()?.transport==="github_copilot"}function h(J){let N=J.match(/exp=(\d+)/);if(N){let X=Number(N[1]);if(!Number.isNaN(X))return Date.now()>=X*1000?"expired":"valid"}let V=J.split(".");if(V.length===3&&V.every((X)=>/^[A-Za-z0-9_-]+$/.test(X)))try{let X=V[1].replace(/-/g,"+").replace(/_/g,"/"),y=X+"=".repeat((4-X.length%4)%4),W=Buffer.from(y,"base64").toString("utf8"),Z=JSON.parse(W);if(Z&&typeof Z==="object"&&Z.exp)return Date.now()>=Z.exp*1000?"expired":"valid"}catch{return"invalid_format"}return"invalid_format"}function v(){if(K())return;try{return R().read()?.githubModels?.accessToken?.trim()||void 0}catch{return}}async function QJ(){if(K())return;try{return(await R().readAsync())?.githubModels?.accessToken?.trim()||void 0}catch{return}}function XJ(){if(!D())return;if(K())return;if(v())return}async function ZJ(){if(!D())return!1;if(K())return!1;try{let V=R().read()?.githubModels,$=V?.accessToken?.trim()||"",X=V?.oauthAccessToken?.trim()||"";if(!$&&!X)return!1;if(($?h($):"expired")==="valid")return!1;if(!X)return!1;let W=await w(X);if(!u(W.token,X).success)return!1;let Q=P().find((z)=>z.provider==="openai"&&z.extras?.githubToken!==void 0);if(Q)M(Q.id,{provider:"openai",name:Q.name,baseUrl:Q.baseUrl,model:Q.model,apiKey:W.token,extras:{...Q.extras,githubToken:W.token}});return!0}catch{return!1}}function u(J,N){if(K())return{success:!1,warning:"Bare mode: secure storage is disabled."};let V=J.trim();if(!V)return{success:!1,warning:"Token is empty."};let $=R(),X=$.read()||{},y=X[L],W=N?.trim(),Z={accessToken:V};if(W)Z.oauthAccessToken=W;else if(y?.oauthAccessToken?.trim())Z.oauthAccessToken=y.oauthAccessToken.trim();let Q={...X,[L]:Z};return $.update(Q)}function $J(){if(K())return{success:!0};let J=R(),V={...J.read()||{}};return delete V[L],J.update(V)}var L="githubModels",JJ="CLAUDE_CODE_GITHUB_TOKEN_HYDRATED";var l=x(()=>{E();G();T();I();S()});
2
- export{n as xY,d as yY,a as zY,w as AY,I as BY,L as CY,JJ as DY,v as EY,QJ as FY,XJ as GY,ZJ as HY,u as IY,$J as JY,l as KY};
@@ -1,2 +0,0 @@
1
- import{hc as x,ic as o}from"./cli-0.1.15-cbseyggr.mjs";import{AF as O,BF as a,Bz as y,Cl as Y,Cz as u,Il as g,Lz as K,MF as R,Nz as m,PF as i,Qy as $,SG as W,VG as t,Wy as d,rq as Z,tB as M,tq as v,uB as l}from"./cli-0.1.15-26hkdean.mjs";import{_5 as X,d6 as h}from"./cli-0.1.15-4892kydg.mjs";import{Yea as V,cfa as f,wfa as I,zfa as c}from"./cli-0.1.15-nk50qhet.mjs";import{Bha as U,mla as _}from"./cli-0.1.15-12azgmva.mjs";import{bma as C}from"./cli-0.1.15-mhbfhhf6.mjs";async function Lj(w){I("refreshActivePlugins: clearing all plugin caches"),R(),M();let G=await W(),[E,F]=await Promise.all([O(),Y(U())]),{enabled:z,disabled:B,errors:H}=G;x(E);let[P,S]=await Promise.all([Promise.all(z.map(async(j)=>{if(j.mcpServers)return Object.keys(j.mcpServers).length;let q=await Z(j,H);if(q)j.mcpServers=q;return q?Object.keys(q).length:0})),Promise.all(z.map(async(j)=>{if(j.lspServers)return Object.keys(j.lspServers).length;let q=await y(j,H);if(q)j.lspServers=q;return q?Object.keys(q).length:0}))]),J=P.reduce((j,q)=>j+q,0),L=S.reduce((j,q)=>j+q,0);w((j)=>({...j,plugins:{...j.plugins,enabled:z,disabled:B,commands:[],errors:n(j.plugins.errors,H),needsRefresh:!1},agentDefinitions:F,mcp:{...j.mcp,pluginReconnectKey:j.mcp.pluginReconnectKey+1}})),K();let N=!1;try{await $()}catch(j){N=!0,X(j),I(`refreshActivePlugins: loadPluginHooks failed: ${V(j)}`)}let Q=z.reduce((j,q)=>{if(!q.hooksConfig)return j;return j+Object.values(q.hooksConfig).reduce((k,A)=>k+(A?.reduce((D,b)=>D+b.hooks.length,0)??0),0)},0);return I(`refreshActivePlugins: ${z.length} enabled, ${E.length} commands, ${F.allAgents.length} agents, ${Q} hooks, ${J} MCP, ${L} LSP`),{enabled_count:z.length,disabled_count:B.length,command_count:E.length,agent_count:F.allAgents.length,hook_count:Q,mcp_count:J,lsp_count:L,error_count:H.length+(N?1:0),agentDefinitions:F,pluginCommands:E}}function n(w,G){let E=w.filter((B)=>B.source==="lsp-manager"||B.source.startsWith("plugin:")),F=new Set(G.map(T));return[...E.filter((B)=>!F.has(T(B))),...G]}function T(w){return w.type==="generic-error"?`generic-error:${w.source}:${w.error}`:`${w.type}:${w.source}`}var p=C(()=>{_();m();o();g();c();f();h();i();a();d();u();v();l();t()});
2
- export{Lj as dc,p as ec};
@@ -1,3 +0,0 @@
1
- import{tea as L,xea as O}from"./cli-0.1.15-gqf82qvm.mjs";import{bma as N}from"./cli-0.1.15-mhbfhhf6.mjs";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
2
- `,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
3
- export{S as gV,J as hV,T as iV,U as jV,V as kV,W as lV,Q as mV};
@@ -1,2 +0,0 @@
1
- import{bma as K}from"./cli-0.1.15-mhbfhhf6.mjs";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
2
- export{M as Ofa,N as Pfa,Q as Qfa,R as Rfa,S as Sfa,L as Tfa};
@@ -1,2 +0,0 @@
1
- import{bma as q}from"./cli-0.1.15-mhbfhhf6.mjs";function x(k){j=[k,...j.slice(0,v-1)]}function y(){return j}var j,v=20;var w=q(()=>{j=[]});
2
- export{x as jc,y as kc,w as lc};
@@ -1,2 +0,0 @@
1
- import{$la as j}from"./cli-0.1.15-mhbfhhf6.mjs";var Lt=j((Q)=>{var y=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),I=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),L=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),m=Symbol.iterator;function q(t){if(t===null||typeof t!=="object")return null;return t=m&&t[m]||t["@@iterator"],typeof t==="function"?t:null}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,w={};function l(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}l.prototype.isReactComponent={};l.prototype.setState=function(t,e){if(typeof t!=="object"&&typeof t!=="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};l.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function P(){}P.prototype=l.prototype;function v(t,e,n){this.props=t,this.context=e,this.refs=w,this.updater=n||S}var T=v.prototype=new P;T.constructor=v;g(T,l.prototype);T.isPureReactComponent=!0;var C=Array.isArray;function E(){}var f={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function R(t,e,n){var r=n.ref;return{$$typeof:y,type:t,key:e,ref:r!==void 0?r:null,props:n}}function z(t,e){return R(t.type,e,t.props)}function x(t){return typeof t==="object"&&t!==null&&t.$$typeof===y}function G(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var d=/\/+/g;function a(t,e){return typeof t==="object"&&t!==null&&t.key!=null?G(""+t.key):e.toString(36)}function K(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status==="string"?t.then(E,E):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function p(t,e,n,r,o){var u=typeof t;if(u==="undefined"||u==="boolean")t=null;var s=!1;if(t===null)s=!0;else switch(u){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case y:case $:s=!0;break;case h:return s=t._init,p(s(t._payload),e,n,r,o)}}if(s)return o=o(t),s=r===""?"."+a(t,0):r,C(o)?(n="",s!=null&&(n=s.replace(d,"$&/")+"/"),p(o,e,n,"",function(O){return O})):o!=null&&(x(o)&&(o=z(o,n+(o.key==null||t&&t.key===o.key?"":(""+o.key).replace(d,"$&/")+"/")+s)),e.push(o)),1;s=0;var c=r===""?".":r+":";if(C(t))for(var i=0;i<t.length;i++)r=t[i],u=c+a(r,i),s+=p(r,e,n,u,o);else if(i=q(t),typeof i==="function")for(t=i.call(t),i=0;!(r=t.next()).done;)r=r.value,u=c+a(r,i++),s+=p(r,e,n,u,o);else if(u==="object"){if(typeof t.then==="function")return p(K(t),e,n,r,o);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function _(t,e,n){if(t==null)return t;var r=[],o=0;return p(t,r,"","",function(u){return e.call(n,u,o++)}),r}function B(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){if(t._status===0||t._status===-1)t._status=1,t._result=n},function(n){if(t._status===0||t._status===-1)t._status=2,t._result=n}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var A=typeof reportError==="function"?reportError:function(t){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t==="object"&&t!==null&&typeof t.message==="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",t);return}console.error(t)},W={map:_,forEach:function(t,e,n){_(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return _(t,function(){e++}),e},toArray:function(t){return _(t,function(e){return e})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Q.Activity=D;Q.Children=W;Q.Component=l;Q.Fragment=I;Q.Profiler=M;Q.PureComponent=v;Q.StrictMode=N;Q.Suspense=U;Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=f;Q.__COMPILER_RUNTIME={__proto__:null,c:function(t){return f.H.useMemoCache(t)}};Q.cache=function(t){return function(){return t.apply(null,arguments)}};Q.cacheSignal=function(){return null};Q.cloneElement=function(t,e,n){if(t===null||t===void 0)throw Error("The argument must be a React element, but you passed "+t+".");var r=g({},t.props),o=t.key;if(e!=null)for(u in e.key!==void 0&&(o=""+e.key),e)!H.call(e,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&e.ref===void 0||(r[u]=e[u]);var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];r.children=s}return R(t.type,o,r)};Q.createContext=function(t){return t={$$typeof:L,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Y,_context:t},t};Q.createElement=function(t,e,n){var r,o={},u=null;if(e!=null)for(r in e.key!==void 0&&(u=""+e.key),e)H.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(o[r]=e[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var c=Array(s),i=0;i<s;i++)c[i]=arguments[i+2];o.children=c}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return R(t,u,o)};Q.createRef=function(){return{current:null}};Q.forwardRef=function(t){return{$$typeof:k,render:t}};Q.isValidElement=x;Q.lazy=function(t){return{$$typeof:h,_payload:{_status:-1,_result:t},_init:B}};Q.memo=function(t,e){return{$$typeof:b,type:t,compare:e===void 0?null:e}};Q.startTransition=function(t){var e=f.T,n={};f.T=n;try{var r=t(),o=f.S;o!==null&&o(n,r),typeof r==="object"&&r!==null&&typeof r.then==="function"&&r.then(E,A)}catch(u){A(u)}finally{e!==null&&n.types!==null&&(e.types=n.types),f.T=e}};Q.unstable_useCacheRefresh=function(){return f.H.useCacheRefresh()};Q.use=function(t){return f.H.use(t)};Q.useActionState=function(t,e,n){return f.H.useActionState(t,e,n)};Q.useCallback=function(t,e){return f.H.useCallback(t,e)};Q.useContext=function(t){return f.H.useContext(t)};Q.useDebugValue=function(){};Q.useDeferredValue=function(t,e){return f.H.useDeferredValue(t,e)};Q.useEffect=function(t,e){return f.H.useEffect(t,e)};Q.useEffectEvent=function(t){return f.H.useEffectEvent(t)};Q.useId=function(){return f.H.useId()};Q.useImperativeHandle=function(t,e,n){return f.H.useImperativeHandle(t,e,n)};Q.useInsertionEffect=function(t,e){return f.H.useInsertionEffect(t,e)};Q.useLayoutEffect=function(t,e){return f.H.useLayoutEffect(t,e)};Q.useMemo=function(t,e){return f.H.useMemo(t,e)};Q.useOptimistic=function(t,e){return f.H.useOptimistic(t,e)};Q.useReducer=function(t,e,n){return f.H.useReducer(t,e,n)};Q.useRef=function(t){return f.H.useRef(t)};Q.useState=function(t){return f.H.useState(t)};Q.useSyncExternalStore=function(t,e,n){return f.H.useSyncExternalStore(t,e,n)};Q.useTransition=function(){return f.H.useTransition()};Q.version="19.2.4"});
2
- export{Lt as HV};
@@ -1,2 +0,0 @@
1
- import{Kp as W,Np as P,_H as U,kH as Y,ul as Q,vl as I}from"./cli-0.1.15-26hkdean.mjs";import{Dca as B,Eca as H,_ca as f}from"./cli-0.1.15-rr65b3dk.mjs";import{Oda as J,Pda as F}from"./cli-0.1.15-11sdbfxy.mjs";import{mla as $,vha as v}from"./cli-0.1.15-12azgmva.mjs";import{bma as Z}from"./cli-0.1.15-mhbfhhf6.mjs";import{randomUUID as V}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??V(),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:w(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function X(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 w(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:G(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),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:v(),uuid:h.uuid,compact_metadata:X(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${B}>`)||h.content.includes(`<${H}>`)))return[z(h.content,h.uuid)];return[];default:return[]}})}function z(j,h){let x=J(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:x}).message,parent_tool_use_id:null,session_id:v(),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 G(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=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:x}}var R=Z(()=>{$();f();I();F();U();P()});
2
- export{S as Sc,X as Tc,w as Uc,r as Vc,z as Wc,T as Xc,R as Yc};
@@ -1,3 +0,0 @@
1
- import{nV as d,oV as X,sV as N}from"./cli-0.1.15-pya8tbx3.mjs";import{$4 as p,K4 as O}from"./cli-0.1.15-x69hfzmj.mjs";import{U$ as U,V5 as k,W5 as S,X$ as G,_5 as B,d6 as f,oaa as y}from"./cli-0.1.15-4892kydg.mjs";import{Xea as x,cfa as b}from"./cli-0.1.15-nk50qhet.mjs";import{Afa as H,Nfa as E}from"./cli-0.1.15-9pe3dbgs.mjs";import{ija as w,mla as P}from"./cli-0.1.15-12azgmva.mjs";import{Zla as M,bma as R}from"./cli-0.1.15-mhbfhhf6.mjs";import{mkdir as _,readFile as V,writeFile as A}from"fs/promises";import{dirname as L,join as m}from"path";function W(){return m(H(),"cache","changelog.md")}async function Jq(){let J=G();if(!J.cachedChangelog)return;let q=W();try{await _(L(q),{recursive:!0}),await A(q,J.cachedChangelog,{encoding:"utf-8",flag:"wx"})}catch{}U(({cachedChangelog:Y,...z})=>z)}async function C(){if(w())return;if(k())return;let J=await O.get(v);if(J.status===200){let q=J.data;if(q===$)return;let Y=W();await _(L(Y),{recursive:!0}),await A(Y,q,{encoding:"utf-8"}),$=q;let z=Date.now();U((K)=>({...K,changelogLastFetched:z}))}}async function h(){if($!==null)return $;let J=W();try{let q=await V(J,"utf-8");return $=q,q}catch{return $="",""}}function j(){return $??""}function F(J){try{if(!J)return{};let q={},Y=J.split(/^## /gm).slice(1);for(let z of Y){let K=z.trim().split(`
2
- `);if(K.length===0)continue;let Q=K[0];if(!Q)continue;let Z=Q.split(" - ")[0]?.trim()||"";if(!Z)continue;let D=K.slice(1).filter((I)=>I.trim().startsWith("- ")).map((I)=>I.trim().substring(2).trim()).filter(Boolean);if(D.length>0)q[Z]=D}return q}catch(q){return B(x(q)),{}}}function l(J,q,Y=j()){try{let z=F(Y),K=T.coerce(J),Q=q?T.coerce(q):null;if(!Q||K&&X(K.version,Q.version))return Object.entries(z).filter(([Z])=>!Q||X(Z,Q.version)).sort(([Z],[D])=>X(Z,D)?-1:1).flatMap(([Z,D])=>D).filter(Boolean).slice(0,u)}catch(z){return B(x(z)),[]}return[]}function Kq(J=j()){try{let q=F(J);return Object.keys(q).sort((z,K)=>X(z,K)?1:-1).map((z)=>{let K=q[z];if(!K||K.length===0)return null;let Q=K.filter(Boolean);if(Q.length===0)return null;return[z,Q]}).filter((z)=>z!==null)}catch(q){return B(x(q)),[]}}async function Qq(J,q="99.0.0"){let Y=await h();if(J!==q||!Y)C().catch((Q)=>B(x(Q)));let z=l(q,J,Y);return{hasReleaseNotes:z.length>0,releaseNotes:z}}var T,u=5,zq="https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md",v="https://raw.githubusercontent.com/anthropics/claude-code/refs/heads/main/CHANGELOG.md",$=null;var g=R(()=>{p();P();y();E();b();f();S();N();T=M(d(),1)});
3
- export{zq as ze,Jq as Ae,C as Be,h as Ce,Kq as De,Qq as Ee,g as Fe};