@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
@@ -0,0 +1,2 @@
1
+ import{Ala as h5,Bla as s8,Cla as z5,Dla as P8,Ela as E,Fla as m8,Gla as P,Hla as x1,Ila as CQ,Jla as QJ,Kla as v,Lla as P1,Mla as d,Nla as HQ,Ola as r,Pla as WQ,Qla as u5,Rla as HY,sla as $5,tla as B8,ula as q,vla as y,wla as S,xla as IQ,yla as f,zla as a}from"./cli-0.2.0-p46nxmgy.mjs";import{fma as oQ,gma as X}from"./cli-0.2.0-b8hs09nv.mjs";function m$(){this.__data__=new v,this.size=0}var t1;var e1=X(()=>{P1();t1=m$});function A$(Q){var J=this.__data__,Y=J.delete(Q);return this.size=J.size,Y}var QQ;var $Q=X(()=>{QQ=A$});function h$(Q){return this.__data__.get(Q)}var JQ;var YQ=X(()=>{JQ=h$});function j$(Q){return this.__data__.has(Q)}var ZQ;var XQ=X(()=>{ZQ=j$});function b$(Q,J){var Y=this.__data__;if(Y instanceof v){var Z=Y.__data__;if(!d||Z.length<n$-1)return Z.push([Q,J]),this.size=++Y.size,this;Y=this.__data__=new r(Z)}return Y.set(Q,J),this.size=Y.size,this}var n$=200,xQ;var UQ=X(()=>{P1();HQ();WQ();xQ=b$});function g(Q){var J=this.__data__=new v(Q);this.size=J.size}var p;var I1=X(()=>{P1();e1();$Q();YQ();XQ();UQ();g.prototype.clear=t1;g.prototype.delete=QQ;g.prototype.get=JQ;g.prototype.has=ZQ;g.prototype.set=xQ;p=g});function u$(Q){return this.__data__.set(Q,i$),this}var i$="__lodash_hash_undefined__",KQ;var BQ=X(()=>{KQ=u$});function l$(Q){return this.__data__.has(Q)}var GQ;var NQ=X(()=>{GQ=l$});function o(Q){var J=-1,Y=Q==null?0:Q.length;this.__data__=new r;while(++J<Y)this.add(Q[J])}var wQ;var zQ=X(()=>{WQ();BQ();NQ();o.prototype.add=o.prototype.push=KQ;o.prototype.has=GQ;wQ=o});function T$(Q,J){var Y=-1,Z=Q==null?0:Q.length;while(++Y<Z)if(J(Q[Y],Y,Q))return!0;return!1}var RQ;var FQ=X(()=>{RQ=T$});function c$(Q,J){return Q.has(J)}var qQ;var DQ=X(()=>{qQ=c$});function s$(Q,J,Y,Z,H,W){var x=Y&r$,U=Q.length,G=J.length;if(U!=G&&!(x&&G>U))return!1;var K=W.get(Q),R=W.get(J);if(K&&R)return K==J&&R==Q;var z=-1,N=!0,L=Y&o$?new wQ:void 0;W.set(Q,J),W.set(J,Q);while(++z<U){var F=Q[z],D=J[z];if(Z)var M=x?Z(D,F,z,J,Q,W):Z(F,D,z,Q,J,W);if(M!==void 0){if(M)continue;N=!1;break}if(L){if(!RQ(J,function(C,_){if(!qQ(L,_)&&(F===C||H(F,C,Y,Z,W)))return L.push(_)})){N=!1;break}}else if(!(F===D||H(F,D,Y,Z,W))){N=!1;break}}return W.delete(Q),W.delete(J),N}var r$=1,o$=2,s;var C1=X(()=>{zQ();FQ();DQ();s=s$});var a$,_1;var OQ=X(()=>{y();a$=q.Uint8Array,_1=a$});function t$(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z,H){Y[++J]=[H,Z]}),Y}var LQ;var VQ=X(()=>{LQ=t$});function e$(Q){var J=-1,Y=Array(Q.size);return Q.forEach(function(Z){Y[++J]=Z}),Y}var fQ;var MQ=X(()=>{fQ=e$});function wJ(Q,J,Y,Z,H,W,x){switch(Y){case NJ:if(Q.byteLength!=J.byteLength||Q.byteOffset!=J.byteOffset)return!1;Q=Q.buffer,J=J.buffer;case GJ:if(Q.byteLength!=J.byteLength||!W(new _1(Q),new _1(J)))return!1;return!0;case YJ:case ZJ:case WJ:return CQ(+Q,+J);case XJ:return Q.name==J.name&&Q.message==J.message;case xJ:case KJ:return Q==J+"";case HJ:var U=LQ;case UJ:var G=Z&$J;if(U||(U=fQ),Q.size!=J.size&&!G)return!1;var K=x.get(Q);if(K)return K==J;Z|=JJ,x.set(Q,J);var R=s(U(Q),U(J),Z,H,W,x);return x.delete(Q),R;case BJ:if(k1)return k1.call(Q)==k1.call(J)}return!1}var $J=1,JJ=2,YJ="[object Boolean]",ZJ="[object Date]",XJ="[object Error]",HJ="[object Map]",WJ="[object Number]",xJ="[object RegExp]",UJ="[object Set]",KJ="[object String]",BJ="[object Symbol]",GJ="[object ArrayBuffer]",NJ="[object DataView]",PQ,k1,_Q;var kQ=X(()=>{IQ();OQ();QJ();C1();VQ();MQ();PQ=S?S.prototype:void 0,k1=PQ?PQ.valueOf:void 0;_Q=wJ});function zJ(Q,J){var Y=-1,Z=J.length,H=Q.length;while(++Y<Z)Q[H+Y]=J[Y];return Q}var EQ;var vQ=X(()=>{EQ=zJ});var RJ,w;var V=X(()=>{RJ=Array.isArray,w=RJ});function FJ(Q,J,Y){var Z=J(Q);return w(Q)?Z:EQ(Z,Y(Q))}var dQ;var gQ=X(()=>{vQ();V();dQ=FJ});function qJ(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=0,W=[];while(++Y<Z){var x=Q[Y];if(J(x,Y,Q))W[H++]=x}return W}var pQ;var yQ=X(()=>{pQ=qJ});function DJ(){return[]}var SQ;var mQ=X(()=>{SQ=DJ});var OJ,LJ,AQ,VJ,hQ;var jQ=X(()=>{yQ();mQ();OJ=Object.prototype,LJ=OJ.propertyIsEnumerable,AQ=Object.getOwnPropertySymbols,VJ=!AQ?SQ:function(Q){if(Q==null)return[];return Q=Object(Q),pQ(AQ(Q),function(J){return LJ.call(Q,J)})},hQ=VJ});function fJ(Q,J){var Y=-1,Z=Array(Q);while(++Y<Q)Z[Y]=J(Y);return Z}var nQ;var bQ=X(()=>{nQ=fJ});function MJ(Q){return Q!=null&&typeof Q=="object"}var O;var m=X(()=>{O=MJ});function IJ(Q){return O(Q)&&f(Q)==PJ}var PJ="[object Arguments]",E1;var iQ=X(()=>{a();m();E1=IJ});var uQ,CJ,_J,kJ,t;var v1=X(()=>{iQ();m();uQ=Object.prototype,CJ=uQ.hasOwnProperty,_J=uQ.propertyIsEnumerable,kJ=E1(function(){return arguments}())?E1:function(Q){return O(Q)&&CJ.call(Q,"callee")&&!_J.call(Q,"callee")},t=kJ});function EJ(){return!1}var lQ;var TQ=X(()=>{lQ=EJ});var Q1={};oQ(Q1,{default:()=>A});var sQ,cQ,vJ,rQ,dJ,gJ,A;var d1=X(()=>{y();TQ();sQ=typeof Q1=="object"&&Q1&&!Q1.nodeType&&Q1,cQ=sQ&&typeof e=="object"&&e&&!e.nodeType&&e,vJ=cQ&&cQ.exports===sQ,rQ=vJ?q.Buffer:void 0,dJ=rQ?rQ.isBuffer:void 0,gJ=dJ||lQ,A=gJ});function SJ(Q,J){var Y=typeof Q;return J=J==null?pJ:J,!!J&&(Y=="number"||Y!="symbol"&&yJ.test(Q))&&(Q>-1&&Q%1==0&&Q<J)}var pJ=9007199254740991,yJ,$1;var g1=X(()=>{yJ=/^(?:0|[1-9]\d*)$/;$1=SJ});function AJ(Q){return typeof Q=="number"&&Q>-1&&Q%1==0&&Q<=mJ}var mJ=9007199254740991,h;var J1=X(()=>{h=AJ});function U8(Q){return O(Q)&&h(Q.length)&&!!B[f(Q)]}var hJ="[object Arguments]",jJ="[object Array]",nJ="[object Boolean]",bJ="[object Date]",iJ="[object Error]",uJ="[object Function]",lJ="[object Map]",TJ="[object Number]",cJ="[object Object]",rJ="[object RegExp]",oJ="[object Set]",sJ="[object String]",aJ="[object WeakMap]",tJ="[object ArrayBuffer]",eJ="[object DataView]",Q8="[object Float32Array]",$8="[object Float64Array]",J8="[object Int8Array]",Y8="[object Int16Array]",Z8="[object Int32Array]",X8="[object Uint8Array]",H8="[object Uint8ClampedArray]",W8="[object Uint16Array]",x8="[object Uint32Array]",B,aQ;var tQ=X(()=>{a();J1();m();B={};B[Q8]=B[$8]=B[J8]=B[Y8]=B[Z8]=B[X8]=B[H8]=B[W8]=B[x8]=!0;B[hJ]=B[jJ]=B[tJ]=B[nJ]=B[eJ]=B[bJ]=B[iJ]=B[uJ]=B[lJ]=B[TJ]=B[cJ]=B[rJ]=B[oJ]=B[sJ]=B[aJ]=!1;aQ=U8});function K8(Q){return function(J){return Q(J)}}var eQ;var Q5=X(()=>{eQ=K8});var Z1={};oQ(Z1,{default:()=>X1});var J5,i,G8,p1,N8,X1;var Y5=X(()=>{B8();J5=typeof Z1=="object"&&Z1&&!Z1.nodeType&&Z1,i=J5&&typeof Y1=="object"&&Y1&&!Y1.nodeType&&Y1,G8=i&&i.exports===J5,p1=G8&&$5.process,N8=function(){try{var Q=i&&i.require&&i.require("util").types;if(Q)return Q;return p1&&p1.binding&&p1.binding("util")}catch(J){}}(),X1=N8});var Z5,w8,H1;var y1=X(()=>{tQ();Q5();Y5();Z5=X1&&X1.isTypedArray,w8=Z5?eQ(Z5):aQ,H1=w8});function F8(Q,J){var Y=w(Q),Z=!Y&&t(Q),H=!Y&&!Z&&A(Q),W=!Y&&!Z&&!H&&H1(Q),x=Y||Z||H||W,U=x?nQ(Q.length,String):[],G=U.length;for(var K in Q)if((J||R8.call(Q,K))&&!(x&&(K=="length"||H&&(K=="offset"||K=="parent")||W&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||$1(K,G))))U.push(K);return U}var z8,R8,X5;var H5=X(()=>{bQ();v1();V();d1();g1();y1();z8=Object.prototype,R8=z8.hasOwnProperty;X5=F8});function D8(Q){var J=Q&&Q.constructor,Y=typeof J=="function"&&J.prototype||q8;return Q===Y}var q8,W5;var x5=X(()=>{q8=Object.prototype;W5=D8});function O8(Q,J){return function(Y){return Q(J(Y))}}var U5;var K5=X(()=>{U5=O8});var L8,B5;var G5=X(()=>{K5();L8=U5(Object.keys,Object),B5=L8});function M8(Q){if(!W5(Q))return B5(Q);var J=[];for(var Y in Object(Q))if(f8.call(Q,Y)&&Y!="constructor")J.push(Y);return J}var V8,f8,N5;var w5=X(()=>{x5();G5();V8=Object.prototype,f8=V8.hasOwnProperty;N5=M8});function I8(Q){return Q!=null&&h(Q.length)&&!z5(Q)}var R5;var F5=X(()=>{P8();J1();R5=I8});function C8(Q){return R5(Q)?X5(Q):N5(Q)}var W1;var S1=X(()=>{H5();w5();F5();W1=C8});function _8(Q){return dQ(Q,W1,hQ)}var m1;var q5=X(()=>{gQ();jQ();S1();m1=_8});function d8(Q,J,Y,Z,H,W){var x=Y&k8,U=m1(Q),G=U.length,K=m1(J),R=K.length;if(G!=R&&!x)return!1;var z=G;while(z--){var N=U[z];if(!(x?N in J:v8.call(J,N)))return!1}var L=W.get(Q),F=W.get(J);if(L&&F)return L==J&&F==Q;var D=!0;W.set(Q,J),W.set(J,Q);var M=x;while(++z<G){N=U[z];var C=Q[N],_=J[N];if(Z)var a1=x?Z(_,C,N,J,Q,W):Z(C,_,N,Q,J,W);if(!(a1===void 0?C===_||H(C,_,Y,Z,W):a1)){D=!1;break}M||(M=N=="constructor")}if(D&&!M){var T=Q.constructor,c=J.constructor;if(T!=c&&(("constructor"in Q)&&("constructor"in J))&&!(typeof T=="function"&&T instanceof T&&typeof c=="function"&&c instanceof c))D=!1}return W.delete(Q),W.delete(J),D}var k8=1,E8,v8,D5;var O5=X(()=>{q5();E8=Object.prototype,v8=E8.hasOwnProperty;D5=d8});var g8,U1;var L5=X(()=>{x1();y();g8=P(q,"DataView"),U1=g8});var p8,K1;var V5=X(()=>{x1();y();p8=P(q,"Promise"),K1=p8});var y8,B1;var f5=X(()=>{x1();y();y8=P(q,"Set"),B1=y8});var S8,G1;var M5=X(()=>{x1();y();S8=P(q,"WeakMap"),G1=S8});var P5="[object Map]",A8="[object Object]",I5="[object Promise]",C5="[object Set]",_5="[object WeakMap]",k5="[object DataView]",h8,j8,n8,b8,i8,k,A1;var E5=X(()=>{L5();HQ();V5();f5();M5();a();m8();h8=E(U1),j8=E(d),n8=E(K1),b8=E(B1),i8=E(G1),k=f;if(U1&&k(new U1(new ArrayBuffer(1)))!=k5||d&&k(new d)!=P5||K1&&k(K1.resolve())!=I5||B1&&k(new B1)!=C5||G1&&k(new G1)!=_5)k=function(Q){var J=f(Q),Y=J==A8?Q.constructor:void 0,Z=Y?E(Y):"";if(Z)switch(Z){case h8:return k5;case j8:return P5;case n8:return I5;case b8:return C5;case i8:return _5}return J};A1=k});function T8(Q,J,Y,Z,H,W){var x=w(Q),U=w(J),G=x?d5:A1(Q),K=U?d5:A1(J);G=G==v5?N1:G,K=K==v5?N1:K;var R=G==N1,z=K==N1,N=G==K;if(N&&A(Q)){if(!A(J))return!1;x=!0,R=!1}if(N&&!R)return W||(W=new p),x||H1(Q)?s(Q,J,Y,Z,H,W):_Q(Q,J,G,Y,Z,H,W);if(!(Y&u8)){var L=R&&g5.call(Q,"__wrapped__"),F=z&&g5.call(J,"__wrapped__");if(L||F){var D=L?Q.value():Q,M=F?J.value():J;return W||(W=new p),H(D,M,Y,Z,W)}}if(!N)return!1;return W||(W=new p),D5(Q,J,Y,Z,H,W)}var u8=1,v5="[object Arguments]",d5="[object Array]",N1="[object Object]",l8,g5,p5;var y5=X(()=>{I1();C1();kQ();O5();E5();V();d1();y1();l8=Object.prototype,g5=l8.hasOwnProperty;p5=T8});function S5(Q,J,Y,Z,H){if(Q===J)return!0;if(Q==null||J==null||!O(Q)&&!O(J))return Q!==Q&&J!==J;return p5(Q,J,Y,Z,S5,H)}var w1;var h1=X(()=>{y5();m();w1=S5});function o8(Q,J,Y,Z){var H=Y.length,W=H,x=!Z;if(Q==null)return!W;Q=Object(Q);while(H--){var U=Y[H];if(x&&U[2]?U[1]!==Q[U[0]]:!(U[0]in Q))return!1}while(++H<W){U=Y[H];var G=U[0],K=Q[G],R=U[1];if(x&&U[2]){if(K===void 0&&!(G in Q))return!1}else{var z=new p;if(Z)var N=Z(K,R,G,Q,J,z);if(!(N===void 0?w1(R,K,c8|r8,Z,z):N))return!1}}return!0}var c8=1,r8=2,m5;var A5=X(()=>{I1();h1();m5=o8});function a8(Q){return Q===Q&&!h5(Q)}var z1;var j1=X(()=>{s8();z1=a8});function t8(Q){var J=W1(Q),Y=J.length;while(Y--){var Z=J[Y],H=Q[Z];J[Y]=[Z,H,z1(H)]}return J}var j5;var n5=X(()=>{j1();S1();j5=t8});function e8(Q,J){return function(Y){if(Y==null)return!1;return Y[Q]===J&&(J!==void 0||(Q in Object(Y)))}}var R1;var n1=X(()=>{R1=e8});function QY(Q){var J=j5(Q);if(J.length==1&&J[0][2])return R1(J[0][0],J[0][1]);return function(Y){return Y===Q||m5(Y,Q,J)}}var b5;var i5=X(()=>{A5();n5();n1();b5=QY});function JY(Q){return typeof Q=="symbol"||O(Q)&&f(Q)==$Y}var $Y="[object Symbol]",j;var F1=X(()=>{a();m();j=JY});function XY(Q,J){if(w(Q))return!1;var Y=typeof Q;if(Y=="number"||Y=="symbol"||Y=="boolean"||Q==null||j(Q))return!0;return ZY.test(Q)||!YY.test(Q)||J!=null&&Q in Object(J)}var YY,ZY,n;var q1=X(()=>{V();F1();YY=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ZY=/^\w*$/;n=XY});function xY(Q){var J=u5(Q,function(Z){if(Y.size===WY)Y.clear();return Z}),Y=J.cache;return J}var WY=500,l5;var T5=X(()=>{HY();l5=xY});var UY,KY,BY,c5;var r5=X(()=>{T5();UY=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KY=/\\(\\)?/g,BY=l5(function(Q){var J=[];if(Q.charCodeAt(0)===46)J.push("");return Q.replace(UY,function(Y,Z,H,W){J.push(H?W.replace(KY,"$1"):Z||Y)}),J}),c5=BY});function GY(Q,J){var Y=-1,Z=Q==null?0:Q.length,H=Array(Z);while(++Y<Z)H[Y]=J(Q[Y],Y,Q);return H}var o5;var s5=X(()=>{o5=GY});function e5(Q){if(typeof Q=="string")return Q;if(w(Q))return o5(Q,e5)+"";if(j(Q))return t5?t5.call(Q):"";var J=Q+"";return J=="0"&&1/Q==-NY?"-0":J}var NY=1/0,a5,t5,Q$;var $$=X(()=>{IQ();s5();V();F1();a5=S?S.prototype:void 0,t5=a5?a5.toString:void 0;Q$=e5});function wY(Q){return Q==null?"":Q$(Q)}var J$;var Y$=X(()=>{$$();J$=wY});function zY(Q,J){if(w(Q))return Q;return n(Q,J)?[Q]:c5(J$(Q))}var D1;var b1=X(()=>{V();q1();r5();Y$();D1=zY});function FY(Q){if(typeof Q=="string"||j(Q))return Q;var J=Q+"";return J=="0"&&1/Q==-RY?"-0":J}var RY=1/0,I;var u=X(()=>{F1();I=FY});function qY(Q,J){J=D1(J,Q);var Y=0,Z=J.length;while(Q!=null&&Y<Z)Q=Q[I(J[Y++])];return Y&&Y==Z?Q:void 0}var O1;var i1=X(()=>{b1();u();O1=qY});function DY(Q,J,Y){var Z=Q==null?void 0:O1(Q,J);return Z===void 0?Y:Z}var Z$;var X$=X(()=>{i1();Z$=DY});function OY(Q,J){return Q!=null&&J in Object(Q)}var H$;var W$=X(()=>{H$=OY});function LY(Q,J,Y){J=D1(J,Q);var Z=-1,H=J.length,W=!1;while(++Z<H){var x=I(J[Z]);if(!(W=Q!=null&&Y(Q,x)))break;Q=Q[x]}if(W||++Z!=H)return W;return H=Q==null?0:Q.length,!!H&&h(H)&&$1(x,H)&&(w(Q)||t(Q))}var x$;var U$=X(()=>{b1();v1();V();g1();J1();u();x$=LY});function VY(Q,J){return Q!=null&&x$(Q,J,H$)}var K$;var B$=X(()=>{W$();U$();K$=VY});function PY(Q,J){if(n(Q)&&z1(J))return R1(I(Q),J);return function(Y){var Z=Z$(Y,Q);return Z===void 0&&Z===J?K$(Y,Q):w1(J,Z,fY|MY)}}var fY=1,MY=2,G$;var N$=X(()=>{h1();X$();B$();q1();j1();n1();u();G$=PY});function IY(Q){return Q}var w$;var z$=X(()=>{w$=IY});function CY(Q){return function(J){return J==null?void 0:J[Q]}}var R$;var F$=X(()=>{R$=CY});function _Y(Q){return function(J){return O1(J,Q)}}var q$;var D$=X(()=>{i1();q$=_Y});function kY(Q){return n(Q)?R$(I(Q)):q$(Q)}var O$;var L$=X(()=>{F$();D$();q1();u();O$=kY});function EY(Q){if(typeof Q=="function")return Q;if(Q==null)return w$;if(typeof Q=="object")return w(Q)?G$(Q[0],Q[1]):b5(Q);return O$(Q)}var V$;var f$=X(()=>{i5();N$();z$();V();L$();V$=EY});function vY(Q,J){var Y,Z=-1,H=Q.length;while(++Z<H){var W=J(Q[Z]);if(W!==void 0)Y=Y===void 0?W:Y+W}return Y}var M$;var P$=X(()=>{M$=vY});function dY(Q,J){return Q&&Q.length?M$(Q,V$(J,2)):0}var b;var I$=X(()=>{f$();P$();b=dY});import{randomUUID as u1}from"crypto";var C$=()=>{};function mX(){return l1}function AX(Q){l1=Q}function hX(Q){return L1.has(Q)?L1.get(Q):void 0}function jX(Q,J){L1.set(Q,J)}function nX(Q){return T1.get(Q)}function bX(Q,J){T1.set(Q,J)}function _$(){l1=null,L1.clear(),T1.clear()}function iX(){return c1}function uX(Q){c1=Q}function lX(){c1=void 0}var l1=null,L1,T1,c1;var k$=X(()=>{L1=new Map;T1=new Map});function E$(){let Q=new Set;return{subscribe(J){return Q.add(J),()=>{Q.delete(J)}},emit(...J){for(let Y of Q)Y(...J)},clear(){Q.clear()}}}var v$=()=>{};import{realpathSync as d$}from"fs";import{cwd as gY}from"process";function g$(){let Q="";if(typeof process<"u"&&typeof process.cwd==="function"&&typeof d$==="function"){let Y=gY();try{Q=d$(Y).normalize("NFC")}catch{Q=Y.normalize("NFC")}}return{originalCwd:Q,projectRoot:Q,totalCostUSD:0,totalAPIDuration:0,totalAPIDurationWithoutRetries:0,totalToolDuration:0,turnHookDurationMs:0,turnToolDurationMs:0,turnClassifierDurationMs:0,turnToolCount:0,turnHookCount:0,turnClassifierCount:0,startTime:Date.now(),lastInteractionTime:Date.now(),totalLinesAdded:0,totalLinesRemoved:0,hasUnknownModelCost:!1,cwd:Q,modelUsage:{},mainLoopModelOverride:void 0,initialMainLoopModel:null,modelStrings:null,isInteractive:!1,kairosActive:!1,strictToolResultPairing:!1,sdkAgentProgressSummariesEnabled:!1,userMsgOptIn:!1,clientType:"cli",sessionSource:void 0,questionPreviewFormat:void 0,sessionIngressToken:void 0,oauthTokenFromFd:void 0,apiKeyFromFd:void 0,flagSettingsPath:void 0,flagSettingsInline:null,allowedSettingSources:["userSettings","projectSettings","localSettings","flagSettings","policySettings"],meter:null,sessionCounter:null,locCounter:null,prCounter:null,commitCounter:null,costCounter:null,tokenCounter:null,codeEditToolDecisionCounter:null,activeTimeCounter:null,statsStore:null,sessionId:u1(),parentSessionId:void 0,loggerProvider:null,eventLogger:null,meterProvider:null,tracerProvider:null,agentColorMap:new Map,agentColorIndex:0,lastAPIRequest:null,lastAPIRequestMessages:null,lastClassifierRequests:null,cachedClaudeMdContent:null,inMemoryErrorLog:[],inlinePlugins:[],useCoworkPlugins:!1,sessionBypassPermissionsMode:!1,scheduledTasksEnabled:!1,sessionCronTasks:[],sessionCreatedTeams:new Set,sessionTrustAccepted:!1,sessionPersistenceDisabled:!1,hasExitedPlanMode:!1,needsPlanModeExitAttachment:!1,needsAutoModeExitAttachment:!1,lspRecommendationShownThisSession:!1,initJsonSchema:null,registeredHooks:null,planSlugCache:new Map,teleportedSessionInfo:null,invokedSkills:new Map,slowOperations:[],sdkBetas:void 0,mainThreadAgentType:void 0,isRemoteMode:!1,directConnectServerUrl:void 0,systemPromptSectionCache:new Map,lastEmittedDate:null,additionalDirectoriesForClaudeMd:[],allowedChannels:[],hasDevChannels:!1,sessionProjectDir:null,largeSystemPromptDetected:null,afkModeHeaderLatched:null,fastModeHeaderLatched:null,thinkingClearLatched:null,promptId:null,lastMainRequestId:void 0,lastApiCompletionTimestamp:null,pendingPostCompaction:!1}}function Q9(){return $.sessionId}function $9(Q={}){if(Q.setCurrentAsParent)$.parentSessionId=$.sessionId;return $.planSlugCache.delete($.sessionId),$.sessionId=u1(),$.sessionProjectDir=null,f1.emit($.sessionId),$.sessionId}function J9(){return $.parentSessionId}function Y9(Q,J=null){$.planSlugCache.delete($.sessionId),$.sessionId=Q,$.sessionProjectDir=J,f1.emit(Q)}function X9(){return $.sessionProjectDir}function H9(){return $.originalCwd}function W9(){return $.projectRoot}function x9(Q){$.originalCwd=Q.normalize("NFC")}function U9(Q){$.projectRoot=Q.normalize("NFC")}function K9(){return $.cwd}function B9(Q){$.cwd=Q.normalize("NFC")}function G9(){return $.directConnectServerUrl}function N9(Q){$.directConnectServerUrl=Q}function w9(Q,J){$.totalAPIDuration+=Q,$.totalAPIDurationWithoutRetries+=J}function z9(){$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalCostUSD=0}function R9(Q,J,Y){$.modelUsage[Y]=J,$.totalCostUSD+=Q}function F9(){return $.totalCostUSD}function q9(){return $.totalAPIDuration}function D9(){return Date.now()-$.startTime}function O9(){return $.totalAPIDurationWithoutRetries}function L9(){return $.totalToolDuration}function V9(Q){$.totalToolDuration+=Q,$.turnToolDurationMs+=Q,$.turnToolCount++}function f9(){return $.turnHookDurationMs}function M9(Q){$.turnHookDurationMs+=Q,$.turnHookCount++}function P9(){$.turnHookDurationMs=0,$.turnHookCount=0}function I9(){return $.turnHookCount}function C9(){return $.turnToolDurationMs}function _9(){$.turnToolDurationMs=0,$.turnToolCount=0}function k9(){return $.turnToolCount}function E9(){return $.turnClassifierDurationMs}function v9(Q){$.turnClassifierDurationMs+=Q,$.turnClassifierCount++}function d9(){$.turnClassifierDurationMs=0,$.turnClassifierCount=0}function g9(){return $.turnClassifierCount}function p9(){return $.statsStore}function y9(Q){$.statsStore=Q}function S9(Q){if(Q)p$();else r1=!0}function m9(){if(r1)p$()}function p$(){$.lastInteractionTime=Date.now(),r1=!1}function A9(Q,J){$.totalLinesAdded+=Q,$.totalLinesRemoved+=J}function h9(){return $.totalLinesAdded}function j9(){return $.totalLinesRemoved}function n9(){return b(Object.values($.modelUsage),"inputTokens")}function y$(){return b(Object.values($.modelUsage),"outputTokens")}function b9(){return b(Object.values($.modelUsage),"cacheReadInputTokens")}function i9(){return b(Object.values($.modelUsage),"cacheCreationInputTokens")}function u9(){return b(Object.values($.modelUsage),"webSearchRequests")}function l9(){return y$()-o1}function T9(){return s1}function c9(Q){o1=y$(),s1=Q,M1=0}function r9(){return M1}function o9(){M1++}function s9(){$.hasUnknownModelCost=!0}function a9(){return $.hasUnknownModelCost}function t9(){return $.lastMainRequestId}function e9(Q){$.lastMainRequestId=Q}function QH(){return $.lastApiCompletionTimestamp}function $H(Q){$.lastApiCompletionTimestamp=Q}function JH(){$.pendingPostCompaction=!0}function YH(){let Q=$.pendingPostCompaction;return $.pendingPostCompaction=!1,Q}function ZH(){return $.lastInteractionTime}function XH(){if(V1=!0,l)clearTimeout(l);l=setTimeout(()=>{V1=!1,l=void 0},S$),l.unref?.()}function HH(){return V1}async function WH(){while(V1)await new Promise((Q)=>setTimeout(Q,S$).unref?.())}function xH(){return $.modelUsage}function UH(Q){return $.modelUsage[Q]}function KH(){return $.mainLoopModelOverride}function BH(){return $.initialMainLoopModel}function GH(Q){$.mainLoopModelOverride=Q}function NH(Q){$.initialMainLoopModel=Q}function wH(){return $.sdkBetas}function zH(Q){$.sdkBetas=Q}function RH(){$.totalCostUSD=0,$.totalAPIDuration=0,$.totalAPIDurationWithoutRetries=0,$.totalToolDuration=0,$.startTime=Date.now(),$.totalLinesAdded=0,$.totalLinesRemoved=0,$.hasUnknownModelCost=!1,$.modelUsage={},$.promptId=null}function FH({totalCostUSD:Q,totalAPIDuration:J,totalAPIDurationWithoutRetries:Y,totalToolDuration:Z,totalLinesAdded:H,totalLinesRemoved:W,lastDuration:x,modelUsage:U}){if($.totalCostUSD=Q,$.totalAPIDuration=J,$.totalAPIDurationWithoutRetries=Y,$.totalToolDuration=Z,$.totalLinesAdded=H,$.totalLinesRemoved=W,U)$.modelUsage=U;if(x)$.startTime=Date.now()-x}function qH(){throw Error("resetStateForTests can only be called in tests")}function DH(){return $.modelStrings}function OH(Q){$.modelStrings=Q}function LH(){$.modelStrings=null}function VH(Q,J){$.meter=Q,$.sessionCounter=J("claude_code.session.count",{description:"Count of CLI sessions started"}),$.locCounter=J("claude_code.lines_of_code.count",{description:"Count of lines of code modified, with the 'type' attribute indicating whether lines were added or removed"}),$.prCounter=J("claude_code.pull_request.count",{description:"Number of pull requests created"}),$.commitCounter=J("claude_code.commit.count",{description:"Number of git commits created"}),$.costCounter=J("claude_code.cost.usage",{description:"Cost of the Claude Code session",unit:"USD"}),$.tokenCounter=J("claude_code.token.usage",{description:"Number of tokens used",unit:"tokens"}),$.codeEditToolDecisionCounter=J("claude_code.code_edit_tool.decision",{description:"Count of code editing tool permission decisions (accept/reject) for Edit, Write, and NotebookEdit tools"}),$.activeTimeCounter=J("claude_code.active_time.total",{description:"Total active time in seconds",unit:"s"})}function fH(){return $.meter}function MH(){return $.sessionCounter}function PH(){return $.locCounter}function IH(){return $.prCounter}function CH(){return $.commitCounter}function _H(){return $.costCounter}function kH(){return $.tokenCounter}function EH(){return $.codeEditToolDecisionCounter}function vH(){return $.activeTimeCounter}function dH(){return $.loggerProvider}function gH(Q){$.loggerProvider=Q}function pH(){return $.eventLogger}function yH(Q){$.eventLogger=Q}function SH(){return $.meterProvider}function mH(Q){$.meterProvider=Q}function AH(){return $.tracerProvider}function hH(Q){$.tracerProvider=Q}function pY(){return!$.isInteractive}function jH(){return $.isInteractive}function nH(Q){$.isInteractive=Q}function bH(){return $.clientType}function iH(Q){$.clientType=Q}function uH(){return $.sdkAgentProgressSummariesEnabled}function lH(Q){$.sdkAgentProgressSummariesEnabled=Q}function TH(){return $.kairosActive}function cH(Q){$.kairosActive=Q}function rH(){return $.strictToolResultPairing}function oH(Q){$.strictToolResultPairing=Q}function sH(){return $.userMsgOptIn}function aH(Q){$.userMsgOptIn=Q}function tH(){return $.sessionSource}function eH(Q){$.sessionSource=Q}function Q4(){return $.questionPreviewFormat}function $4(Q){$.questionPreviewFormat=Q}function J4(){return $.agentColorMap}function Y4(){return $.flagSettingsPath}function Z4(Q){$.flagSettingsPath=Q}function X4(){return $.flagSettingsInline}function H4(Q){$.flagSettingsInline=Q}function W4(){return $.sessionIngressToken}function x4(Q){$.sessionIngressToken=Q}function U4(){return $.oauthTokenFromFd}function K4(Q){$.oauthTokenFromFd=Q}function B4(){return $.apiKeyFromFd}function G4(Q){$.apiKeyFromFd=Q}function N4(Q){$.lastAPIRequest=Q}function w4(){return $.lastAPIRequest}function z4(Q){$.lastAPIRequestMessages=Q}function R4(){return $.lastAPIRequestMessages}function F4(Q){$.lastClassifierRequests=Q}function q4(){return $.lastClassifierRequests}function D4(Q){$.cachedClaudeMdContent=Q}function O4(){return $.cachedClaudeMdContent}function L4(Q){if($.inMemoryErrorLog.length>=100)$.inMemoryErrorLog.shift();$.inMemoryErrorLog.push(Q)}function V4(){return $.allowedSettingSources}function f4(Q){$.allowedSettingSources=Q}function M4(){return pY()&&$.clientType!=="claude-vscode"}function P4(Q){$.inlinePlugins=Q}function I4(){return $.inlinePlugins}function C4(Q){$.useCoworkPlugins=Q,_$()}function _4(){return $.useCoworkPlugins}function k4(Q){$.sessionBypassPermissionsMode=Q}function E4(){return $.sessionBypassPermissionsMode}function v4(Q){$.scheduledTasksEnabled=Q}function d4(){return $.scheduledTasksEnabled}function g4(){return $.sessionCronTasks}function p4(Q){$.sessionCronTasks.push(Q)}function y4(Q){if(Q.length===0)return 0;let J=new Set(Q),Y=$.sessionCronTasks.filter((H)=>!J.has(H.id)),Z=$.sessionCronTasks.length-Y.length;if(Z===0)return 0;return $.sessionCronTasks=Y,Z}function S4(Q){$.sessionTrustAccepted=Q}function m4(){return $.sessionTrustAccepted}function A4(Q){$.sessionPersistenceDisabled=Q}function h4(){return $.sessionPersistenceDisabled}function j4(){return $.hasExitedPlanMode}function n4(Q){$.hasExitedPlanMode=Q}function b4(){return $.needsPlanModeExitAttachment}function i4(Q){$.needsPlanModeExitAttachment=Q}function u4(Q,J){if(J==="plan"&&Q!=="plan")$.needsPlanModeExitAttachment=!1;if(Q==="plan"&&J!=="plan")$.needsPlanModeExitAttachment=!0}function l4(){return $.needsAutoModeExitAttachment}function T4(Q){$.needsAutoModeExitAttachment=Q}function c4(Q,J){if(Q==="auto"&&J==="plan"||Q==="plan"&&J==="auto")return;let Y=Q==="auto",Z=J==="auto";if(Z&&!Y)$.needsAutoModeExitAttachment=!1;if(Y&&!Z)$.needsAutoModeExitAttachment=!0}function r4(){return $.lspRecommendationShownThisSession}function o4(Q){$.lspRecommendationShownThisSession=Q}function s4(Q){$.initJsonSchema=Q}function a4(){return $.initJsonSchema}function t4(Q){if(!$.registeredHooks)$.registeredHooks={};for(let[J,Y]of Object.entries(Q)){let Z=J;if(!$.registeredHooks[Z])$.registeredHooks[Z]=[];$.registeredHooks[Z].push(...Y)}}function e4(){return $.registeredHooks}function Q3(){$.registeredHooks=null}function $3(){if(!$.registeredHooks)return;let Q={};for(let[J,Y]of Object.entries($.registeredHooks)){let Z=Y.filter((H)=>!("pluginRoot"in H));if(Z.length>0)Q[J]=Z}$.registeredHooks=Object.keys(Q).length>0?Q:null}function J3(){$.initJsonSchema=null,$.registeredHooks=null}function Y3(){return $.planSlugCache}function Z3(){return $.sessionCreatedTeams}function X3(Q){$.teleportedSessionInfo={isTeleported:!0,hasLoggedFirstMessage:!1,sessionId:Q.sessionId}}function H3(){return $.teleportedSessionInfo}function W3(){if($.teleportedSessionInfo)$.teleportedSessionInfo.hasLoggedFirstMessage=!0}function x3(Q,J,Y,Z=null){let H=`${Z??""}:${Q}`;$.invokedSkills.set(H,{skillName:Q,skillPath:J,content:Y,invokedAt:Date.now(),agentId:Z})}function U3(){return $.invokedSkills}function K3(Q){let J=Q??null,Y=new Map;for(let[Z,H]of $.invokedSkills)if(H.agentId===J)Y.set(Z,H);return Y}function B3(Q){if(!Q||Q.size===0){$.invokedSkills.clear();return}for(let[J,Y]of $.invokedSkills)if(Y.agentId===null||!Q.has(Y.agentId))$.invokedSkills.delete(J)}function G3(Q){for(let[J,Y]of $.invokedSkills)if(Y.agentId===Q)$.invokedSkills.delete(J)}function N3(Q,J){}function w3(){return yY}function z3(){return $.mainThreadAgentType}function R3(Q){$.mainThreadAgentType=Q}function F3(){return $.isRemoteMode}function q3(Q){$.isRemoteMode=Q}function D3(){return $.systemPromptSectionCache}function O3(Q,J){$.systemPromptSectionCache.set(Q,J)}function L3(){$.systemPromptSectionCache.clear()}function V3(){return $.lastEmittedDate}function f3(Q){$.lastEmittedDate=Q}function M3(){return $.additionalDirectoriesForClaudeMd}function P3(Q){$.additionalDirectoriesForClaudeMd=Q}function I3(){return $.allowedChannels}function C3(Q){$.allowedChannels=Q}function _3(){return $.hasDevChannels}function k3(Q){$.hasDevChannels=Q}function E3(){return $.largeSystemPromptDetected}function v3(Q){$.largeSystemPromptDetected=Q}function d3(){return $.afkModeHeaderLatched}function g3(Q){$.afkModeHeaderLatched=Q}function p3(){return $.fastModeHeaderLatched}function y3(Q){$.fastModeHeaderLatched=Q}function S3(){return $.thinkingClearLatched}function m3(Q){$.thinkingClearLatched=Q}function A3(){$.afkModeHeaderLatched=null,$.fastModeHeaderLatched=null,$.thinkingClearLatched=null}function h3(){return $.promptId}function j3(Q){$.promptId=Q}function n3(){return!1}function b3(){return null}var $,f1,Z9,r1=!1,o1=0,s1=null,M1=0,V1=!1,l,S$=150,yY;var SY=X(()=>{I$();C$();k$();v$();$=g$();f1=E$(),Z9=f1.subscribe;yY=[]});
2
+ export{o5 as Zfa,s5 as _fa,p as $fa,I1 as aga,wQ as bga,zQ as cga,qQ as dga,DQ as ega,_1 as fga,OQ as gga,fQ as hga,MQ as iga,EQ as jga,vQ as kga,w as lga,V as mga,dQ as nga,gQ as oga,pQ as pga,yQ as qga,SQ as rga,mQ as sga,hQ as tga,jQ as uga,O as vga,m as wga,t as xga,v1 as yga,A as zga,d1 as Aga,$1 as Bga,g1 as Cga,eQ as Dga,Q5 as Ega,X1 as Fga,Y5 as Gga,H1 as Hga,y1 as Iga,X5 as Jga,H5 as Kga,W5 as Lga,x5 as Mga,U5 as Nga,K5 as Oga,R5 as Pga,F5 as Qga,W1 as Rga,S1 as Sga,m1 as Tga,q5 as Uga,B1 as Vga,f5 as Wga,A1 as Xga,E5 as Yga,w1 as Zga,h1 as _ga,j as $ga,F1 as aha,J$ as bha,Y$ as cha,D1 as dha,b1 as eha,I as fha,u as gha,O1 as hha,i1 as iha,w$ as jha,z$ as kha,V$ as lha,f$ as mha,mX as nha,AX as oha,hX as pha,jX as qha,nX as rha,bX as sha,_$ as tha,iX as uha,uX as vha,lX as wha,k$ as xha,E$ as yha,v$ as zha,Q9 as Aha,$9 as Bha,J9 as Cha,Y9 as Dha,Z9 as Eha,X9 as Fha,H9 as Gha,W9 as Hha,x9 as Iha,U9 as Jha,K9 as Kha,B9 as Lha,G9 as Mha,N9 as Nha,w9 as Oha,z9 as Pha,R9 as Qha,F9 as Rha,q9 as Sha,D9 as Tha,O9 as Uha,L9 as Vha,V9 as Wha,f9 as Xha,M9 as Yha,P9 as Zha,I9 as _ha,C9 as $ha,_9 as aia,k9 as bia,E9 as cia,v9 as dia,d9 as eia,g9 as fia,p9 as gia,y9 as hia,S9 as iia,m9 as jia,A9 as kia,h9 as lia,j9 as mia,n9 as nia,y$ as oia,b9 as pia,i9 as qia,u9 as ria,l9 as sia,T9 as tia,c9 as uia,r9 as via,o9 as wia,s9 as xia,a9 as yia,t9 as zia,e9 as Aia,QH as Bia,$H as Cia,JH as Dia,YH as Eia,ZH as Fia,XH as Gia,HH as Hia,WH as Iia,xH as Jia,UH as Kia,KH as Lia,BH as Mia,GH as Nia,NH as Oia,wH as Pia,zH as Qia,RH as Ria,FH as Sia,qH as Tia,DH as Uia,OH as Via,LH as Wia,VH as Xia,fH as Yia,MH as Zia,PH as _ia,IH as $ia,CH as aja,_H as bja,kH as cja,EH as dja,vH as eja,dH as fja,gH as gja,pH as hja,yH as ija,SH as jja,mH as kja,AH as lja,hH as mja,pY as nja,jH as oja,nH as pja,bH as qja,iH as rja,uH as sja,lH as tja,TH as uja,cH as vja,rH as wja,oH as xja,sH as yja,aH as zja,tH as Aja,eH as Bja,Q4 as Cja,$4 as Dja,J4 as Eja,Y4 as Fja,Z4 as Gja,X4 as Hja,H4 as Ija,W4 as Jja,x4 as Kja,U4 as Lja,K4 as Mja,B4 as Nja,G4 as Oja,N4 as Pja,w4 as Qja,z4 as Rja,R4 as Sja,F4 as Tja,q4 as Uja,D4 as Vja,O4 as Wja,L4 as Xja,V4 as Yja,f4 as Zja,M4 as _ja,P4 as $ja,I4 as aka,C4 as bka,_4 as cka,k4 as dka,E4 as eka,v4 as fka,d4 as gka,g4 as hka,p4 as ika,y4 as jka,S4 as kka,m4 as lka,A4 as mka,h4 as nka,j4 as oka,n4 as pka,b4 as qka,i4 as rka,u4 as ska,l4 as tka,T4 as uka,c4 as vka,r4 as wka,o4 as xka,s4 as yka,a4 as zka,t4 as Aka,e4 as Bka,Q3 as Cka,$3 as Dka,J3 as Eka,Y3 as Fka,Z3 as Gka,X3 as Hka,H3 as Ika,W3 as Jka,x3 as Kka,U3 as Lka,K3 as Mka,B3 as Nka,G3 as Oka,N3 as Pka,w3 as Qka,z3 as Rka,R3 as Ska,F3 as Tka,q3 as Uka,D3 as Vka,O3 as Wka,L3 as Xka,V3 as Yka,f3 as Zka,M3 as _ka,P3 as $ka,I3 as ala,C3 as bla,_3 as cla,k3 as dla,E3 as ela,v3 as fla,d3 as gla,g3 as hla,p3 as ila,y3 as jla,S3 as kla,m3 as lla,A3 as mla,h3 as nla,j3 as ola,n3 as pla,b3 as qla,SY as rla};
@@ -0,0 +1,4 @@
1
+ import{nd as c,td as Eq}from"./cli-0.2.0-2c2rdf9b.mjs";import{$j as S,$z as l,AG as I,BG as Gq,HG as Cq,KG as b,LG as Lq,OG as Hq,PG as Jq,Qj as s,RF as v,RG as vq,SF as m,SG as y,Sj as Tq,TG as Qq,UF as Oq,UG as Xq,VG as Yq,WG as $q,Wj as A,XG as d,Yj as D,Zj as Mq,_G as Dq,_j as h,aA as wq,ak as Rq,gl as i,il as Fq,lG as n,rG as e,sG as P,wG as jq,wk as t,xG as O,xk as Aq,yG as qq}from"./cli-0.2.0-cs8e9514.mjs";import{E_ as _q,a$ as F,c$ as L,d6 as a,i6 as Kq,o$ as Bq,w_ as V}from"./cli-0.2.0-g2h1t6ke.mjs";import{afa as o,dfa as N,hfa as Uq,rfa as p,vfa as Wq}from"./cli-0.2.0-e9xwjcb3.mjs";import{Gha as f,rla as xq}from"./cli-0.2.0-gmq4bxtp.mjs";import{gma as Zq}from"./cli-0.2.0-b8hs09nv.mjs";import{dirname as Nq,join as u}from"path";function g(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function JG(q){return k.includes(q)}function zq(q){return q==="project"||q==="local"?f():void 0}function QG(q){return F("projectSettings")?.enabledPlugins?.[q]===!0}function Vq(q){let H=q.includes("@"),G=["local","project","user"];for(let X of G){let J=F(D(X))?.enabledPlugins;if(!J)continue;for(let Y of Object.keys(J))if(H?Y===q:Y.startsWith(`${q}@`))return{pluginId:Y,scope:X}}return null}function bq(q,H){let{name:G,marketplace:X}=A(q);return H.find((J)=>{if(J.name===q||J.name===G)return!0;if(X&&J.source)return J.name===G&&J.source.includes(`@${X}`);return!1})}function yq(q){let{name:H}=A(q),G=O();if(G.plugins[q]?.length)return{pluginId:q,pluginName:H};let X=Object.keys(G.plugins).find((J)=>{let{name:Y}=A(J);return Y===H&&(G.plugins[J]?.length??0)>0});if(X)return{pluginId:X,pluginName:H};return null}function kq(q){let G=O().plugins[q];if(!G||G.length===0)return{scope:"user"};let X=f(),J=G.find((Z)=>Z.scope==="local"&&Z.projectPath===X);if(J)return{scope:J.scope,projectPath:J.projectPath};let Y=G.find((Z)=>Z.scope==="project"&&Z.projectPath===X);if(Y)return{scope:Y.scope,projectPath:Y.projectPath};let z=G.find((Z)=>Z.scope==="user");if(z)return{scope:z.scope};return{scope:G[0].scope,projectPath:G[0].projectPath}}async function XG(q,H="user"){g(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await P(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await n();for(let[B,K]of Object.entries($))try{let M=(await e(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){a(o(x));continue}}if(!J||!Y){let $=X?`marketplace "${X}"`:"any configured marketplace";return{success:!1,message:`Plugin "${G}" not found in ${$}`}}let Z=J,W=`${Z.name}@${Y}`,Q=await Jq({pluginId:W,entry:Z,scope:H,marketplaceInstallLocation:z});if(!Q.ok)switch(Q.reason){case"local-source-no-location":return{success:!1,message:`Cannot install local plugin "${Q.pluginName}" without marketplace install location`};case"settings-write-failed":return{success:!1,message:`Failed to update settings: ${Q.message}`};case"resolution-failed":return{success:!1,message:Hq(Q.resolution)};case"blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" is blocked by your organization's policy and cannot be installed`};case"dependency-blocked-by-policy":return{success:!1,message:`Plugin "${Q.pluginName}" depends on "${Q.blockedDependency}", which is blocked by your organization's policy`}}return{success:!0,message:`Successfully installed plugin: ${W} (scope: ${H})${Q.depNote}`,pluginId:W,pluginName:Z.name,scope:H}}async function YG(q,H="user",G=!0){g(H);let{enabled:X,disabled:J}=await d(),Y=[...X,...J],z=bq(q,Y),Z=D(H),W=F(Z),Q,$;if(z)Q=Object.keys(W?.enabledPlugins??{}).find((U)=>U===q||U===z.name||U.startsWith(`${z.name}@`))??(q.includes("@")?q:z.name),$=z.name;else{let U=yq(q);if(!U)return{success:!1,message:`Plugin "${q}" not found in installed plugins`};Q=U.pluginId,$=U.pluginName}let B=zq(H),x=O().plugins[Q],M=x?.find((U)=>U.scope===H&&U.projectPath===B);if(!M){let{scope:U}=kq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claudio/settings.json, shared with your team). To disable just for you: claudio plugin disable ${q} --scope local`};return{success:!1,message:`Plugin "${q}" is installed in ${U} scope, not ${H}. Use --scope ${U} to uninstall.`}}return{success:!1,message:`Plugin "${q}" is not installed in ${H} scope. Use --scope to specify the correct scope.`}}let R=M.installPath,_={...W?.enabledPlugins};_[Q]=void 0,L(Z,{enabledPlugins:_}),v(),qq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await m(R);if(j){if(i(Q),G)await t(Q)}let C=h(Q,Y),E=S(C);return{success:!0,message:`Successfully uninstalled plugin: ${$} (scope: ${H})${E}`,pluginId:Q,pluginName:$,scope:H,reverseDependents:C.length>0?C:void 0}}async function r(q,H,G){let X=H?"enable":"disable";if(s(q)){let{error:_}=L("userSettings",{enabledPlugins:{...F("userSettings")?.enabledPlugins,[q]:H}});if(_)return{success:!1,message:`Failed to ${X} built-in plugin: ${_.message}`};v();let{name:T}=A(q);return{success:!0,message:`Successfully ${X}d built-in plugin: ${T}`,pluginId:q,pluginName:T,scope:"user"}}if(G)g(G);let J,Y,z=Vq(q);if(G)if(Y=G,z)J=z.pluginId;else if(q.includes("@"))J=q;else return{success:!1,message:`Plugin "${q}" not found in settings. Use plugin@marketplace format.`};else if(z)J=z.pluginId,Y=z.scope;else if(q.includes("@"))J=q,Y="user";else return{success:!1,message:`Plugin "${q}" not found in any editable settings scope. Use plugin@marketplace format.`};if(H&&l(J))return{success:!1,message:`Plugin "${J}" is blocked by your organization's policy and cannot be enabled`};let Z=D(Y),W=F(Z)?.enabledPlugins?.[J],Q={user:0,project:1,local:2},$=G&&z&&Q[G]>Q[z.scope];if(G&&W===void 0&&z&&z.scope!==G&&!$)return{success:!1,message:`Plugin "${q}" is installed at ${z.scope} scope, not ${G}. Use --scope ${z.scope} or omit --scope to auto-detect.`};let B=G&&!$?W===!0:c().has(J);if(H===B)return{success:!1,message:`Plugin "${q}" is already ${H?"enabled":"disabled"}${G?` at ${G} scope`:""}`};let K;if(!H){let{enabled:_,disabled:T}=await d(),w=h(J,[..._,...T]);if(w.length>0)K=w}let{error:x}=L(Z,{enabledPlugins:{...F(Z)?.enabledPlugins,[J]:H}});if(x)return{success:!1,message:`Failed to ${X} plugin: ${x.message}`};v();let{name:M}=A(J),R=S(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function $G(q,H){return r(q,!0,H)}async function zG(q,H){return r(q,!1,H)}async function ZG(){let q=c();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await r(X,!1);if(J.success)H.push(X);else G.push(`${X}: ${J.message}`)}if(G.length>0)return{success:!1,message:`Disabled ${H.length} ${V(H.length,"plugin")}, ${G.length} failed:
2
+ ${G.join(`
3
+ `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function xG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await P(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=I().plugins[J];if(!Q||Q.length===0)return{success:!1,message:`Plugin "${G}" is not installed`,pluginId:J,scope:H};let $=zq(H),B=Q.find((K)=>K.scope===H&&K.projectPath===$);if(!B){let K=$?`${H} (${$})`:H;return{success:!1,message:`Plugin "${G}" is not installed at scope ${K}`,pluginId:J,scope:H}}return fq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function fq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=p(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await Yq(G.source,{manifest:{name:G.name}});Q=x.path,B=!0,K=x.gitCommitSha,$=await b(q,G.source,x.manifest,x.path,G.version,x.gitCommitSha)}else{let x;try{x=await Z.stat(X)}catch(T){if(N(T))return{success:!1,message:`Marketplace directory not found at ${X}`,pluginId:q,scope:Y};throw T}let M=x.isDirectory()?X:Nq(X);Q=u(M,G.source);try{await Z.stat(Q)}catch(T){if(N(T))return{success:!1,message:`Plugin source not found at ${Q}`,pluginId:q,scope:Y};throw T}let R,_=u(Q,".claude-plugin","plugin.json");try{R=await $q(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Qq(q,$);if(J.version===$||J.installPath===x||J.installPath===M)return{success:!0,message:`${H} is already at the latest version (${$}).`,pluginId:q,newVersion:$,oldVersion:W,alreadyUpToDate:!0,scope:Y};x=await Xq(Q,q,$,G);let _=J.installPath;if(Gq(q,Y,z,x,$,K),_&&_!==x){let j=I();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await m(_)}let T=z?`${Y} (${z})`:Y;return{success:!0,message:`Plugin "${H}" updated from ${W||"unknown"} to ${$} for scope ${T}. Restart to apply changes.`,pluginId:q,newVersion:$,oldVersion:W,scope:Y}}finally{if(B&&Q!==y(q,$))await Z.rm(Q,{recursive:!0,force:!0})}}var k,HG;var hq=Zq(()=>{xq();Tq();Uq();Wq();Kq();Oq();Rq();Cq();jq();Aq();Mq();vq();Dq();Fq();wq();Eq();Lq();Bq();_q();k=["user","project","local"],HG=["user","project","local","managed"]});
4
+ export{k as ad,HG as bd,JG as cd,QG as dd,kq as ed,XG as fd,YG as gd,$G as hd,zG as id,ZG as jd,xG as kd,hq as ld};
@@ -0,0 +1,2 @@
1
+ import{Dg as V,Eg as v}from"./cli-0.2.0-xwrvt7rw.mjs";import{JV as U,LV as J}from"./cli-0.2.0-fgsp4dtv.mjs";import{hW as W,iW as B}from"./cli-0.2.0-hw4ce6k6.mjs";import{$Z as N,D3 as $,a0 as _,d3 as Q,i3 as R}from"./cli-0.2.0-h2wnach8.mjs";import{d6 as K,i6 as Z}from"./cli-0.2.0-g2h1t6ke.mjs";import{gma as Y}from"./cli-0.2.0-b8hs09nv.mjs";async function w(y,X){try{if(R()){let q=Q(),z=!1;if(q?.subscriptionType&&q?.rateLimitTier)z=q.subscriptionType==="max"&&q.rateLimitTier==="default_claude_max_20x";else if(q?.accessToken){let H=await N(q.accessToken);z=H?.organization?.organization_type==="claude_max"&&H?.organization?.rate_limit_tier==="default_claude_max_20x"}if(z)return setTimeout(y,0,"You are already on the highest Max subscription plan. For additional usage, run /login to switch to an API usage-billed account."),null}return await W("https://claude.ai/upgrade/max"),U(V,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{X.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}})}catch(G){K(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var E=Y(()=>{_();$();B();Z();v();J()});
2
+ export{w as ub,E as vb};
@@ -0,0 +1,2 @@
1
+ import{ema as j}from"./cli-0.2.0-b8hs09nv.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 MV};
@@ -0,0 +1,2 @@
1
+ import{Dea as $,Eea as P}from"./cli-0.2.0-35xeqadb.mjs";import{Bfa as Z,Efa as O,bfa as X,hfa as z,jfa as Y,nfa as H}from"./cli-0.2.0-e9xwjcb3.mjs";import{gma as x}from"./cli-0.2.0-b8hs09nv.mjs";function h(q){return q.replace(w,(Q,J,K)=>{if(K.length<F)return`"${J}":"[REDACTED]"`;let V=`${K.slice(0,8)}...${K.slice(-4)}`;return`"${J}":"${V}"`})}function N(q){let Q=typeof q==="string"?q:Y(q),J=h(Q);if(J.length<=W)return J;return J.slice(0,W)+`... (${J.length} chars)`}function R(q){let Q=X(q);if(q&&typeof q==="object"&&"response"in q){let J=q.response;if(J?.data&&typeof J.data==="object"){let K=J.data,V=typeof K.message==="string"?K.message:typeof K.error==="object"&&K.error&&("message"in K.error)&&typeof K.error.message==="string"?K.error.message:void 0;if(V)return`${Q}: ${V}`}}return Q}function U(q){if(q&&typeof q==="object"&&"response"in q&&q.response&&typeof q.response.status==="number")return q.response.status;return}function j(q){if(!q||typeof q!=="object")return;if("message"in q&&typeof q.message==="string")return q.message;if("error"in q&&q.error!==null&&typeof q.error==="object"&&"message"in q.error&&typeof q.error.message==="string")return q.error.message;return}function D(q,Q,J){if(Q)Z(Q);$("tengu_bridge_repl_skipped",{reason:q,...J!==void 0&&{v2:J}})}var W=2000,k,w,F=16;var m=x(()=>{P();O();z();H();k=["session_ingress_token","environment_secret","access_token","secret","token"],w=new RegExp(`"(${k.join("|")})"\\s*:\\s*"([^"]*)"`,"g")});
2
+ export{N as zd,R as Ad,U as Bd,j as Cd,D as Dd,m as Ed};
@@ -0,0 +1,16 @@
1
+ import{V3 as R2,X3 as u4}from"./cli-0.2.0-qdcyy0k1.mjs";import{Z3 as h,_3 as jZ}from"./cli-0.2.0-frar6zbv.mjs";import{P4 as O,e5 as s0}from"./cli-0.2.0-da216rmz.mjs";import{$5 as r4,Aba as D,Dba as V0,E_ as O8,F6 as X5,H6 as WZ,Jaa as M1,Laa as I8,Maa as V4,Naa as i,Oaa as q2,Paa as K0,Qaa as q4,Raa as I2,S8 as Y1,T8 as e4,Uaa as x2,V$ as d,Vaa as GZ,Z$ as M,_5 as X1,a$ as b,aaa as F,c$ as Q2,d6 as K,e$ as e,e9 as P1,f$ as C,i6 as c0,n6 as x0,o$ as q0,o6 as u5,p6 as Q5,q9 as U8,rba as A1,s6 as qZ,taa as W0,v_ as E1,vaa as k1,waa as _8,x$ as K4,xba as y8,z$ as zZ}from"./cli-0.2.0-g2h1t6ke.mjs";import{fda as H5,gda as L4,hda as z0,jda as h4,kda as f4,mda as N,nda as b0}from"./cli-0.2.0-98h2e6bt.mjs";import{Bda as k0,Dda as Z4,Nda as Q1}from"./cli-0.2.0-qcr87znh.mjs";import{Dea as j,Eea as J2}from"./cli-0.2.0-35xeqadb.mjs";import{Bfa as z,Dfa as f0,Efa as j0,bfa as p,dfa as M5,hfa as A5,kfa as J5,nfa as VZ,rfa as k2,vfa as t4}from"./cli-0.2.0-e9xwjcb3.mjs";import{Ffa as $5,Ifa as L,Kfa as u,Mfa as H2,Pfa as F4,Sfa as g}from"./cli-0.2.0-xmf20rrm.mjs";import{Lia as b1,Lja as y5,Mja as T5,Nja as C5,Oja as S5,Pia as e1,Uia as O0,Via as t0,_ja as $2,nja as f,rla as r,uja as J1,xia as R1,yha as $0,zha as n5}from"./cli-0.2.0-gmq4bxtp.mjs";import{Qla as y,Rla as m0}from"./cli-0.2.0-p46nxmgy.mjs";import{dma as m8,fma as S1,gma as B,hma as o}from"./cli-0.2.0-b8hs09nv.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.2.0-b33awb2n.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.2.0-nhw2r534.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.2.0-b33awb2n.mjs")).NodeHttpHandler,httpAuthSchemes:[{schemeId:"smithy.api#noAuth",identityProvider:()=>async()=>({}),signer:new(await import("./index-0.2.0-nhw2r534.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 zZ,w5 as AZ,Y3 as BZ,V3 as CZ,g4 as DZ,c4 as EZ,q3 as FZ,D5 as GZ,d0 as HZ,n0 as IZ,Y0 as JZ,P2 as KZ,q as LZ,x3 as MZ,B3 as NZ,H3 as OZ,R3 as PZ,t as QZ,H as RZ,_3 as SZ,a0 as TZ,v3 as UZ,I3 as VZ,P5 as WZ,S3 as XZ,M3 as YZ,v5 as ZZ,m3 as _Z,G0 as $Z,E2 as a0,N0 as b0,sZ as c0,DQ as d0,NQ as e0,D4 as f0,UQ as g0,OQ as h0,A0 as i0,oZ as j0,_Q as k0,bQ as l0,A4 as m0,N4 as n0,s3 as o0,o4 as p0,I5 as q0,f5 as r0,e0 as s0,p5 as t0,J9 as u0,d5 as v0,S as w0,t5 as x0,P0 as y0,l5 as z0,a5 as A0,V9 as B0,q9 as C0,r5 as D0,W9 as E0,e5 as F0,z9 as G0,G9 as H0,j9 as I0,S2 as J0,A as K0,V1 as L0,$8 as M0,k9 as N0,v9 as O0,I9 as P0,q1 as Q0,y9 as R0,T9 as S0,J8 as T0,C9 as U0,S9 as V0,M9 as W0,A9 as X0,h9 as Y0,Y8 as Z0,f9 as _0,u9 as $0,g9 as a1,p9 as b1,j1 as c1,y0 as d1,z8 as e1,G8 as f1,f2 as g1,F8 as h1,l9 as i1,w1 as j1,F1 as k1,L8 as l1,u2 as m1,D1 as n1,N1 as o1,J$ as p1,O1 as q1,K$ as r1,D$ as s1,p2 as t1,N$ as u1,b8 as v1,w0 as w1,C0 as x1,v1 as y1,U$ as z1,v0 as A1,I1 as B1,_ as C1,P as D1,P8 as E1,O$ as F1,_1 as G1,I0 as H1,_$ as I1,y1 as J1,T1 as K1,b$ as L1,T as M1,P$ as N1,v8 as O1,E$ as P1,k$ as Q1,v$ as R1,H0 as S1,y$ as T1,C1 as U1,g1 as V1,p8 as W1,m1 as X1,l$ as Y1,a$ as Z1,s$ as _1,L0 as $1,l as a2,o$ as b2,s8 as c2,r$ as d2,o8 as e2,e$ as f2,d2 as g2,a1 as h2,s1 as i2,FJ as j2,JZ as k2,LJ as l2,KJ as m2,r1 as n2,DJ as o2,J4 as p2,QZ as q2,NJ as r2,Q4 as s2,X4 as t2,PJ as u2,EJ as v2,z4 as w2,o2 as x2,G4 as y2,IJ as z2,x4 as A2,B4 as B2,U0 as C2,_0 as D2,Z0 as E2,wZ as F2,u0 as G2,a as H2,V5 as I2,W5 as J2,_4 as K2,FZ as L2,b4 as M2,e2 as N2,KZ as O2,DZ as P2,P4 as Q2,X0 as R2,bZ as S2,G5 as T2,E4 as U2,k4 as V2,j5 as W2,IZ as X2,yZ as Y2,TZ as Z2,B2 as _2,x5 as $2,SZ as a3,MZ as b3,I4 as c3,w as d3,B5 as e3,h2 as f3,h0 as g3,g0 as h3,U as i3,J0 as j3,fZ as k3,G2 as l3,uZ as m3,gZ as n3,v as o3,X2 as p3,pZ as q3,Y2 as r3,mZ as s3,n2 as t3,y4 as u3,T4 as v3,j2 as w3,S4 as x3,dZ as y3,tZ as z3,iZ as A3,lZ as B3,aZ as C3,n as D3};
@@ -0,0 +1,2 @@
1
+ import{Gha as z,Kha as B,rla as H}from"./cli-0.2.0-gmq4bxtp.mjs";import{gma as x}from"./cli-0.2.0-b8hs09nv.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 yca,J as zca,R as Aca,K as Bca,U as Cca,V as Dca,W as Eca,X as Fca,Y as Gca,Z as Hca,$ as Ica,j as Jca,q as Kca,A as Lca,G as Mca,L as Nca,_ as Oca,b as Pca,k as Qca,p as Rca,v as Sca,C as Tca,O as Uca,y as Vca,S as Wca,f as Xca,m as Yca,u as Zca,h as _ca,l as $ca,w as ada,g as bda,d as cda,M as dda};
@@ -0,0 +1,2 @@
1
+ import{gma as q}from"./cli-0.2.0-b8hs09nv.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};
@@ -0,0 +1,2 @@
1
+ import{q6 as z,s6 as G}from"./cli-0.2.0-g2h1t6ke.mjs";import{gma as D}from"./cli-0.2.0-b8hs09nv.mjs";function H(k){let g;try{g=new URL(k)}catch(A){throw Error(`Invalid URL format: ${k}`)}if(g.protocol!=="http:"&&g.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${g.protocol}`)}async function K(k){try{let g=process.platform;if(g==="win32"){let{code:C}=await z("explorer",[k]);return C===0}let A=g==="darwin"?"open":"xdg-open",{code:B}=await z(A,[k]);return B===0}catch(g){return!1}}async function L(k){try{H(k);let g=process.env.BROWSER,A=process.platform;if(A==="win32"){if(g){let{code:C}=await z(g,[`"${k}"`]);return C===0}let{code:B}=await z("rundll32",["url,OpenURL",k],{});return B===0}else{let B=g||(A==="darwin"?"open":"xdg-open"),{code:C}=await z(B,[k]);return C===0}}catch(g){return!1}}var I=D(()=>{G()});
2
+ export{K as gW,L as hW,I as iW};
@@ -0,0 +1,2 @@
1
+ import{FV as o}from"./cli-0.2.0-9ez4c6sj.mjs";import{gma as r}from"./cli-0.2.0-b8hs09nv.mjs";var t=r(()=>{o();o()});
2
+ export{t as yg};
@@ -0,0 +1,2 @@
1
+ import{kb as U,lb as y}from"./cli-0.2.0-g4kznbnn.mjs";import{uY as K}from"./cli-0.2.0-k2tq4knj.mjs";import{D3 as f,O2 as _,S2 as $,X2 as H}from"./cli-0.2.0-h2wnach8.mjs";import{C9 as b,Daa as Y,Eaa as Z,Laa as G,Z$ as Q,aaa as B,c$ as N,d6 as W,i6 as P,o$ as g,taa as A,w9 as J,x9 as X}from"./cli-0.2.0-g2h1t6ke.mjs";import{afa as V,hfa as O}from"./cli-0.2.0-e9xwjcb3.mjs";import{Nia as I,rla as L}from"./cli-0.2.0-gmq4bxtp.mjs";L();f();A();O();P();G();b();g();function i(j){return(k)=>({...k,...typeof j.permission_mode==="string"?{toolPermissionContext:{...k.toolPermissionContext,mode:X(j.permission_mode)}}:{},...typeof j.is_ultraplan_mode==="boolean"?{isUltraplanMode:j.is_ultraplan_mode}:{}})}function p({newState:j,oldState:k}){let R=k.toolPermissionContext.mode,D=j.toolPermissionContext.mode;if(R!==D){let q=J(R),z=J(D);if(q!==z){let F=z==="plan"&&j.isUltraplanMode&&!k.isUltraplanMode?!0:null;U({permission_mode:z,is_ultraplan_mode:F})}y(D)}if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel===null)N("userSettings",{model:void 0}),I(null),Z();if(j.mainLoopModel!==k.mainLoopModel&&j.mainLoopModel!==null)N("userSettings",{model:j.mainLoopModel}),I(j.mainLoopModel),Y(j.mainLoopModel);if(j.expandedView!==k.expandedView){let q=j.expandedView==="tasks",z=j.expandedView==="teammates";if(B().showExpandedTodos!==q||B().showSpinnerTree!==z)Q((F)=>({...F,showExpandedTodos:q,showSpinnerTree:z}))}if(j.verbose!==k.verbose&&B().verbose!==j.verbose){let q=j.verbose;Q((z)=>({...z,verbose:q}))}if(j.settings!==k.settings)try{if(_(),$(),H(),j.settings.env!==k.settings.env)K()}catch(q){W(V(q))}}
2
+ export{i as bb,p as cb};
@@ -0,0 +1,2 @@
1
+ import{FU as Y,HU as u,VS as u2,cT as Z,kV as e2}from"./cli-0.2.0-c7ea0dry.mjs";import{JV as t,KV as o,LV as U}from"./cli-0.2.0-fgsp4dtv.mjs";import{Y8 as X,_8 as j}from"./cli-0.2.0-g2h1t6ke.mjs";import{cma as s}from"./cli-0.2.0-b8hs09nv.mjs";e2();j();U();var Q=s(u2(),1),K=58;function c2(){let l=Q.c(35),[e]=Z();if(X.terminal==="Apple_Terminal"){let c;if(l[0]!==e)c=t(t2,{theme:e,welcomeMessage:"Welcome to Claude Code"}),l[0]=e,l[1]=c;else c=l[1];return c}if(["light","light-daltonized","light-ansi"].includes(e)){let c,R,k,p,A,a,I,i,M;if(l[2]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudio"," "]}),o(u,{dimColor:!0,children:["v","0.2.0"," "]})]}),R=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),k=t(u,{children:" "}),p=t(u,{children:" "}),A=t(u,{children:" "}),a=t(u,{children:" ░░░░░░ "}),I=t(u,{children:" ░░░ ░░░░░░░░░░ "}),i=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),M=t(u,{children:" "}),l[2]=c,l[3]=R,l[4]=k,l[5]=p,l[6]=A,l[7]=a,l[8]=I,l[9]=i,l[10]=M;else c=l[2],R=l[3],k=l[4],p=l[5],A=l[6],a=l[7],I=l[8],i=l[9],M=l[10];let V;if(l[11]===Symbol.for("react.memo_cache_sentinel"))V=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),l[11]=V;else V=l[11];let E,N;if(l[12]===Symbol.for("react.memo_cache_sentinel"))E=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),N=t(u,{children:" ▒▒ ██ ▒"}),l[12]=E,l[13]=N;else E=l[12],N=l[13];let W;if(l[14]===Symbol.for("react.memo_cache_sentinel"))W=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ▒▒░░▒▒ ▒ ▒▒"]}),l[14]=W;else W=l[14];let L;if(l[15]===Symbol.for("react.memo_cache_sentinel"))L=o(u,{children:[" ",t(u,{color:"clawd_body",backgroundColor:"clawd_background",children:"██▄█████▄██"})," ▒▒ ▒▒ "]}),l[15]=L;else L=l[15];let v;if(l[16]===Symbol.for("react.memo_cache_sentinel"))v=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," ░ ▒ "]}),l[16]=v;else v=l[16];let B;if(l[17]===Symbol.for("react.memo_cache_sentinel"))B=t(Y,{width:K,children:o(u,{children:[c,R,k,p,A,a,I,i,M,V,E,N,W,L,v,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"……………………………………………………………………░…………………………▒…………"]})]})}),l[17]=B;else B=l[17];return B}let D,r,P,T,d,m,n;if(l[18]===Symbol.for("react.memo_cache_sentinel"))D=o(u,{children:[o(u,{color:"claude",children:["Welcome to Claudio"," "]}),o(u,{dimColor:!0,children:["v","0.2.0"," "]})]}),r=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),P=t(u,{children:" "}),T=t(u,{children:" * █████▓▓░ "}),d=t(u,{children:" * ███▓░ ░░ "}),m=t(u,{children:" ░░░░░░ ███▓░ "}),n=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),l[18]=D,l[19]=r,l[20]=P,l[21]=T,l[22]=d,l[23]=m,l[24]=n;else D=l[18],r=l[19],P=l[20],T=l[21],d=l[22],m=l[23],n=l[24];let b,f,_,y,h;if(l[25]===Symbol.for("react.memo_cache_sentinel"))_=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),y=t(u,{children:" ░▓▓███▓▓░ "}),h=t(u,{dimColor:!0,children:" * ░░░░ "}),b=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),f=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),l[25]=b,l[26]=f,l[27]=_,l[28]=y,l[29]=h;else b=l[25],f=l[26],_=l[27],y=l[28],h=l[29];let C;if(l[30]===Symbol.for("react.memo_cache_sentinel"))C=t(u,{color:"clawd_body",children:" █████████ "}),l[30]=C;else C=l[30];let S;if(l[31]===Symbol.for("react.memo_cache_sentinel"))S=o(u,{children:[" ",C," ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),l[31]=S;else S=l[31];let w;if(l[32]===Symbol.for("react.memo_cache_sentinel"))w=o(u,{children:[" ",t(u,{color:"clawd_body",children:"██▄█████▄██"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),l[32]=w;else w=l[32];let g;if(l[33]===Symbol.for("react.memo_cache_sentinel"))g=o(u,{children:[" ",t(u,{color:"clawd_body",children:" █████████ "})," * "]}),l[33]=g;else g=l[33];let O;if(l[34]===Symbol.for("react.memo_cache_sentinel"))O=t(Y,{width:K,children:o(u,{children:[D,r,P,T,d,m,n,_,y,h,b,f,S,w,g,o(u,{children:["…………………",t(u,{color:"clawd_body",children:"█ █ █ █"}),"………………………………………………………………………………………………………………"]})]})}),l[34]=O;else O=l[34];return O}function t2(l){let e=Q.c(44),{theme:D,welcomeMessage:r}=l;if(["light","light-daltonized","light-ansi"].includes(D)){let a;if(e[0]!==r)a=o(u,{color:"claude",children:[r," "]}),e[0]=r,e[1]=a;else a=e[1];let I;if(e[2]===Symbol.for("react.memo_cache_sentinel"))I=o(u,{dimColor:!0,children:["v","0.2.0"," "]}),e[2]=I;else I=e[2];let i;if(e[3]!==a)i=o(u,{children:[a,I]}),e[3]=a,e[4]=i;else i=e[4];let M,V,E,N,W,L,v,B;if(e[5]===Symbol.for("react.memo_cache_sentinel"))E=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),N=t(u,{children:" "}),W=t(u,{children:" "}),L=t(u,{children:" "}),v=t(u,{children:" ░░░░░░ "}),B=t(u,{children:" ░░░ ░░░░░░░░░░ "}),M=t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),V=t(u,{children:" "}),e[5]=M,e[6]=V,e[7]=E,e[8]=N,e[9]=W,e[10]=L,e[11]=v,e[12]=B;else M=e[5],V=e[6],E=e[7],N=e[8],W=e[9],L=e[10],v=e[11],B=e[12];let z;if(e[13]===Symbol.for("react.memo_cache_sentinel"))z=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░"}),t(u,{children:" ██ "})]}),e[13]=z;else z=e[13];let $,x,H;if(e[14]===Symbol.for("react.memo_cache_sentinel"))$=o(u,{children:[t(u,{dimColor:!0,children:" ░░░░░░░░░░"}),t(u,{children:" ██▒▒██ "})]}),x=t(u,{children:" ▒▒ ██ ▒"}),H=t(u,{children:" ▒▒░░▒▒ ▒ ▒▒"}),e[14]=$,e[15]=x,e[16]=H;else $=e[14],x=e[15],H=e[16];let q;if(e[17]===Symbol.for("react.memo_cache_sentinel"))q=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"})," ▒▒ ▒▒ "]}),e[17]=q;else q=e[17];let F;if(e[18]===Symbol.for("react.memo_cache_sentinel"))F=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," ░ ▒ "]}),e[18]=F;else F=e[18];let G;if(e[19]===Symbol.for("react.memo_cache_sentinel"))G=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"……………………………………………………………………░…………………………▒…………"]}),e[19]=G;else G=e[19];let J;if(e[20]!==i)J=t(Y,{width:K,children:o(u,{children:[i,E,N,W,L,v,B,M,V,z,$,x,H,q,F,G]})}),e[20]=i,e[21]=J;else J=e[21];return J}let T;if(e[22]!==r)T=o(u,{color:"claude",children:[r," "]}),e[22]=r,e[23]=T;else T=e[23];let d;if(e[24]===Symbol.for("react.memo_cache_sentinel"))d=o(u,{dimColor:!0,children:["v","0.2.0"," "]}),e[24]=d;else d=e[24];let m;if(e[25]!==T)m=o(u,{children:[T,d]}),e[25]=T,e[26]=m;else m=e[26];let n,b,f,_,y,h;if(e[27]===Symbol.for("react.memo_cache_sentinel"))n=t(u,{children:"…………………………………………………………………………………………………………………………………………………………"}),b=t(u,{children:" "}),f=t(u,{children:" * █████▓▓░ "}),_=t(u,{children:" * ███▓░ ░░ "}),y=t(u,{children:" ░░░░░░ ███▓░ "}),h=t(u,{children:" ░░░ ░░░░░░░░░░ ███▓░ "}),e[27]=n,e[28]=b,e[29]=f,e[30]=_,e[31]=y,e[32]=h;else n=e[27],b=e[28],f=e[29],_=e[30],y=e[31],h=e[32];let C,S,w,g,O;if(e[33]===Symbol.for("react.memo_cache_sentinel"))C=o(u,{children:[t(u,{children:" ░░░░░░░░░░░░░░░░░░░ "}),t(u,{bold:!0,children:"*"}),t(u,{children:" ██▓░░ ▓ "})]}),S=t(u,{children:" ░▓▓███▓▓░ "}),w=t(u,{dimColor:!0,children:" * ░░░░ "}),g=t(u,{dimColor:!0,children:" ░░░░░░░░ "}),O=t(u,{dimColor:!0,children:" ░░░░░░░░░░░░░░░░ "}),e[33]=C,e[34]=S,e[35]=w,e[36]=g,e[37]=O;else C=e[33],S=e[34],w=e[35],g=e[36],O=e[37];let c;if(e[38]===Symbol.for("react.memo_cache_sentinel"))c=o(u,{children:[" ",t(u,{dimColor:!0,children:"*"}),t(u,{children:" "})]}),e[38]=c;else c=e[38];let R;if(e[39]===Symbol.for("react.memo_cache_sentinel"))R=o(u,{children:[" ",t(u,{color:"clawd_body",children:"▗"}),o(u,{color:"clawd_background",backgroundColor:"clawd_body",children:[" ","▗"," ","▖"," "]}),t(u,{color:"clawd_body",children:"▖"}),t(u,{children:" "}),t(u,{bold:!0,children:"*"}),t(u,{children:" "})]}),e[39]=R;else R=e[39];let k;if(e[40]===Symbol.for("react.memo_cache_sentinel"))k=o(u,{children:[" ",t(u,{backgroundColor:"clawd_body",children:" ".repeat(9)})," * "]}),e[40]=k;else k=e[40];let p;if(e[41]===Symbol.for("react.memo_cache_sentinel"))p=o(u,{children:["…………………",t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),t(u,{children:" "}),t(u,{backgroundColor:"clawd_body",children:" "}),"………………………………………………………………………………………………………………"]}),e[41]=p;else p=e[41];let A;if(e[42]!==m)A=t(Y,{width:K,children:o(u,{children:[m,n,b,f,_,y,h,C,S,w,g,O,c,R,k,p]})}),e[42]=m,e[43]=A;else A=e[43];return A}
2
+ export{c2 as _a};
@@ -0,0 +1,2 @@
1
+ import{aW as N,fW as $}from"./cli-0.2.0-eyswa898.mjs";import{D3 as Z,d3 as M,k0 as L,n0 as Y}from"./cli-0.2.0-h2wnach8.mjs";import{P4 as K,e5 as X}from"./cli-0.2.0-da216rmz.mjs";import{d6 as Q,i6 as V}from"./cli-0.2.0-g2h1t6ke.mjs";import{mda as J,nda as W}from"./cli-0.2.0-98h2e6bt.mjs";import{afa as P,hfa as S}from"./cli-0.2.0-e9xwjcb3.mjs";import{gma as R}from"./cli-0.2.0-b8hs09nv.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 EQ,j as FQ,b as GQ};
@@ -0,0 +1,2 @@
1
+ import{aK as g,bK as Zf,dK as _f,wt as Xf,xt as Uf}from"./cli-0.2.0-cs8e9514.mjs";import{KS as Wf,LS as Tf}from"./cli-0.2.0-zdr99w6n.mjs";import{$S as s,DU as F,EU as cf,FU as r,HU as q,LU as Vf,VS as n,aT as If,kV as a}from"./cli-0.2.0-c7ea0dry.mjs";import{IV as Qf,JV as H,KV as X,LV as T}from"./cli-0.2.0-fgsp4dtv.mjs";import{MV as Rf}from"./cli-0.2.0-gsw60zfe.mjs";import{K0 as Nf,M0 as b,N0 as _,O0 as Hf,Q0 as j,T0 as qf,V0 as zf,b1 as Jf,c1 as hf,g1 as M,j1 as p,k1 as Ef}from"./cli-0.2.0-h2wnach8.mjs";import{Z3 as l,_3 as Pf}from"./cli-0.2.0-frar6zbv.mjs";import{aaa as i,c$ as Gf,e9 as w,o$ as Cf,q9 as yf,taa as Bf}from"./cli-0.2.0-g2h1t6ke.mjs";import{dea as mf,lea as Of}from"./cli-0.2.0-p0dd7k39.mjs";import{Dea as D,Eea as Lf}from"./cli-0.2.0-35xeqadb.mjs";import{cma as x,gma as o}from"./cli-0.2.0-b8hs09nv.mjs";function e(m){let f=t.c(2),{cooldown:G}=m;if(G){let z;if(f[0]===Symbol.for("react.memo_cache_sentinel"))z=H(q,{color:"promptBorder",dimColor:!0,children:w}),f[0]=z;else z=f[0];return z}let N;if(f[1]===Symbol.for("react.memo_cache_sentinel"))N=H(q,{color:"fastMode",children:w}),f[1]=N;else N=f[1];return N}function U(m=!0,f=!1){if(!m)return w;let G=s(i().theme);if(f)return l.dim(F("promptBorder",G)(w));return F("fastMode",G)(w)}var t;var ff=o(()=>{Pf();yf();a();Bf();If();cf();T();t=x(n(),1)});function S(m,f){if(zf(),Gf("userSettings",{fastMode:m?!0:void 0}),m)f((G)=>{let N=!j(G.mainLoopModel);return{...G,...N?{mainLoopModel:Hf(),mainLoopModelForSession:null}:{},fastMode:!0}});else f((G)=>({...G,fastMode:!1}))}function Df(m){let f=kf.c(30),{onDone:G,unavailableReason:N}=m,z=g(vf),V=g(Af),W=Zf(),[J,wf]=Kf.useState(V??!1),y;if(f[0]===Symbol.for("react.memo_cache_sentinel"))y=qf(),f[0]=y;else y=f[0];let B=y,$=B.status==="cooldown",Q=N!==null,P;if(f[1]===Symbol.for("react.memo_cache_sentinel"))P=p(M(!0)),f[1]=P;else P=f[1];let d=P,I;if(f[2]!==J||f[3]!==Q||f[4]!==z||f[5]!==G||f[6]!==W)I=function(){if(Q)return;if(S(J,W),D("tengu_fast_mode_toggled",{enabled:J,source:"picker"}),J){let v=U(J),rf=!j(z)?` · model set to ${_}`:"";G(`${v} Fast mode ON${rf} · ${d}`)}else W(uf),G("Fast mode OFF")},f[2]=J,f[3]=Q,f[4]=z,f[5]=G,f[6]=W,f[7]=I;else I=f[7];let u=I,c;if(f[8]!==V||f[9]!==Q||f[10]!==G||f[11]!==W)c=function(){if(Q){if(V)S(!1,W);G("Fast mode OFF",{display:"system"});return}let v=V?`${U()} Kept Fast mode ON`:"Kept Fast mode OFF";G(v,{display:"system"})},f[8]=V,f[9]=Q,f[10]=G,f[11]=W,f[12]=c;else c=f[12];let A=c,L;if(f[13]!==Q)L=function(){if(Q)return;wf(jf)},f[13]=Q,f[14]=L;else L=f[14];let Z=L,O;if(f[15]!==u||f[16]!==Z)O={"confirm:yes":u,"confirm:nextField":Z,"confirm:next":Z,"confirm:previous":Z,"confirm:cycleMode":Z,"confirm:toggle":Z},f[15]=u,f[16]=Z,f[17]=O;else O=f[17];let C;if(f[18]===Symbol.for("react.memo_cache_sentinel"))C={context:"Confirmation"},f[18]=C;else C=f[18];Wf(O,C);let h;if(f[19]===Symbol.for("react.memo_cache_sentinel"))h=X(q,{children:[H(e,{cooldown:$})," Fast mode (research preview)"]}),f[19]=h;else h=f[19];let Yf=h,k;if(f[20]!==Q)k=(Y)=>Y.pending?X(q,{children:["Press ",Y.keyName," again to exit"]}):Q?H(q,{children:"Esc to cancel"}):H(q,{children:"Tab to toggle · Enter to confirm · Esc to cancel"}),f[20]=Q,f[21]=k;else k=f[21];let K;if(f[22]!==J||f[23]!==N)K=N?H(r,{marginLeft:2,children:H(q,{color:"error",children:N})}):X(Qf,{children:[H(r,{flexDirection:"column",gap:0,marginLeft:2,children:X(r,{flexDirection:"row",gap:2,children:[H(q,{bold:!0,children:"Fast mode"}),H(q,{color:J?"fastMode":void 0,bold:J,children:J?"ON ":"OFF"}),H(q,{dimColor:!0,children:d})]})}),$&&B.status==="cooldown"&&H(r,{marginLeft:2,children:X(q,{color:"warning",children:[B.reason==="overloaded"?"Fast mode overloaded and is temporarily unavailable":"You've hit your fast limit"," · resets in ",mf(B.resetAt-Date.now(),{hideTrailingZeros:!0})]})})]}),f[22]=J,f[23]=N,f[24]=K;else K=f[24];let E;if(f[25]===Symbol.for("react.memo_cache_sentinel"))E=X(q,{dimColor:!0,children:["Learn more:"," ",H(Vf,{url:"https://code.claude.com/docs/en/fast-mode",children:"https://code.claude.com/docs/en/fast-mode"})]}),f[25]=E;else E=f[25];let R;if(f[26]!==A||f[27]!==K||f[28]!==k)R=X(Xf,{title:Yf,subtitle:`High-speed mode for ${_}. Billed as extra usage at a premium rate. Separate rate limits apply.`,onCancel:A,color:"fastMode",inputGuide:k,children:[K,E]}),f[26]=A,f[27]=K,f[28]=k,f[29]=R;else R=f[29];return R}function jf(m){return!m}function uf(m){return{...m,fastMode:!1}}function Af(m){return m.fastMode}function vf(m){return m.mainLoopModel}async function Ff(m,f,G){let N=b();if(N)return`Fast mode unavailable: ${N}`;let{mainLoopModel:z}=f();if(S(m,G),D("tengu_fast_mode_toggled",{enabled:m,source:"shortcut"}),m){let V=U(!0),W=!j(z)?` · model set to ${_}`:"",J=p(M(!0));return`${V} Fast mode ON${W} · ${J}`}else return"Fast mode OFF"}async function H0(m,f,G){if(!Nf())return null;await Jf();let N=G?.trim().toLowerCase();if(N==="on"||N==="off"){let V=await Ff(N==="on",f.getAppState,f.setAppState);return m(V),null}let z=b();return D("tengu_fast_mode_picker_shown",{unavailable_reason:z??""}),H(Df,{onDone:m,unavailableReason:z})}var kf,Kf;var xf=o(()=>{Uf();ff();a();Tf();Lf();_f();hf();Of();Ef();Cf();T();kf=x(n(),1),Kf=x(Rf(),1)});
2
+ export{U as mc,ff as nc,Df as oc,H0 as pc,xf as qc};
@@ -0,0 +1,2 @@
1
+ import{AY as U,BY as p,wY as N,xY as k,yY as F}from"./cli-0.2.0-46m4vcs3.mjs";import{G3 as L,H3 as M,K3 as O,M3 as P,U3 as x,W3 as H,X3 as V}from"./cli-0.2.0-qdcyy0k1.mjs";import{I8 as I,K8 as b,a$ as X,aaa as Z,f$ as Y,o$ as D,taa as K}from"./cli-0.2.0-g2h1t6ke.mjs";import{Ifa as $,Sfa as G}from"./cli-0.2.0-xmf20rrm.mjs";k();M();K();G();p();P();V();b();D();function A(q){if(!q||!process.env.ANTHROPIC_UNIX_SOCKET)return q||{};let{ANTHROPIC_UNIX_SOCKET:z,ANTHROPIC_BASE_URL:B,ANTHROPIC_API_KEY:Q,ANTHROPIC_AUTH_TOKEN:w,CLAUDE_CODE_OAUTH_TOKEN:j,...m}=q;return m}function R(q){if(!q)return{};if(!$(process.env.CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST))return q;let z={};for(let[B,Q]of Object.entries(q))if(!F(B))z[B]=Q;return z}var W;function _(q){if(!q||!W)return q||{};let z={};for(let[B,Q]of Object.entries(q))if(!W.has(B))z[B]=Q;return z}function J(q){return _(R(A(q)))}var h=["userSettings","flagSettings","policySettings"];function S(){if(W===void 0)W=process.env.CLAUDE_CODE_ENTRYPOINT==="claude-desktop"?new Set(Object.keys(process.env)):null;Object.assign(process.env,J(Z().env));for(let z of h){if(z==="policySettings")continue;if(!I(z))continue;Object.assign(process.env,J(X(z)?.env))}N(),Object.assign(process.env,J(X("policySettings")?.env));let q=J(Y()?.env);for(let[z,B]of Object.entries(q))if(U.has(z.toUpperCase()))process.env[z]=B}function o(){Object.assign(process.env,J(Z().env)),Object.assign(process.env,J(Y()?.env)),L(),O(),H(),x()}
2
+ export{S as tY,o as uY};
@@ -1,3 +1,3 @@
1
- import{AU as F,CU as V,QS as t,ZS as p,fV as o,yU as j,zU as s}from"./cli-0.1.15-68f0jtkh.mjs";import{EV as w,FV as g,GV as y}from"./cli-0.1.15-gxgy4enj.mjs";import{e6 as $,f6 as a,l5 as _,m5 as n}from"./cli-0.1.15-4892kydg.mjs";import{Zla as i,bma as v}from"./cli-0.1.15-mhbfhhf6.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
1
+ import{DU as j,EU as s,FU as F,HU as V,VS as t,cT as p,kV as o}from"./cli-0.2.0-c7ea0dry.mjs";import{JV as w,KV as g,LV as y}from"./cli-0.2.0-fgsp4dtv.mjs";import{j6 as $,k6 as a,q5 as _,r5 as n}from"./cli-0.2.0-g2h1t6ke.mjs";import{cma as i,gma as v}from"./cli-0.2.0-b8hs09nv.mjs";function l(J,q,M,G){return G=typeof G=="function"?G:void 0,J==null?J:_(J,q,M,G)}var b;var f=v(()=>{n();b=l});function x(J,q={}){let{showValues:M=!0,hideFunctions:G=!1,themeName:W="dark",treeCharColors:Q={}}=q,X=[],I=new WeakSet;function Z(Y,D){if(!D)return Y;return j(D,W)(Y)}function N(Y,D,S,A=0){if(typeof Y==="string"){X.push(D+Z(Y,Q.value));return}if(typeof Y!=="object"||Y===null){if(M){let H=String(Y);X.push(D+Z(H,Q.value))}return}if(I.has(Y)){X.push(D+Z("[Circular]",Q.value));return}I.add(Y);let L=Object.keys(Y).filter((H)=>{let E=Y[H];if(G&&typeof E==="function")return!1;return!0});L.forEach((H,E)=>{let U=Y[H],P=E===L.length-1,T=A===0&&E===0?"":D,u=P?R.lastBranch:R.branch,d=Z(u,Q.treeChar),C=H.trim()===""?"":Z(H,Q.key),B=T+d+(C?" "+C:""),z=H.trim()!=="";if(U&&typeof U==="object"&&I.has(U)){let K=Z("[Circular]",Q.value);X.push(B+(z?": ":B?" ":"")+K)}else if(U&&typeof U==="object"&&!Array.isArray(U)){X.push(B);let K=P?R.empty:R.line,k=Z(K,Q.treeChar),c=T+k+" ";N(U,c,P,A+1)}else if(Array.isArray(U))X.push(B+(z?": ":B?" ":"")+"[Array("+U.length+")]");else if(M){let K=typeof U==="function"?"[Function]":String(U),k=Z(K,Q.value);B+=(z?": ":B?" ":"")+k,X.push(B)}else X.push(B)})}let O=Object.keys(J);if(O.length===0)return Z("(empty)",Q.value);if(O.length===1&&O[0]!==void 0&&O[0].trim()===""&&typeof J[O[0]]==="string"){let Y=O[0],D=Z(R.lastBranch,Q.treeChar),S=Z(J[Y],Q.value);return D+" "+S}return N(J,"",!0),X.join(`
2
2
  `)}var R;var m=v(()=>{a();s();R={branch:$.lineUpDownRight,lastBranch:$.lineUpRight,line:$.lineVertical,empty:" "}});function r(J){let q={};return J.forEach((M)=>{if(!M.path){q[""]=M.message;return}let G=M.path.split("."),W=M.path;if(M.invalidValue!==null&&M.invalidValue!==void 0&&G.length>0){let Q=[];for(let X=0;X<G.length;X++){let I=G[X];if(!I)continue;let Z=parseInt(I,10);if(!isNaN(Z)&&X===G.length-1){let N;if(typeof M.invalidValue==="string")N=`"${M.invalidValue}"`;else if(M.invalidValue===null)N="null";else if(M.invalidValue===void 0)N="undefined";else N=String(M.invalidValue);Q.push(N)}else Q.push(I)}W=Q.join(".")}b(q,W,M.message,Object)}),q}function Hq(J){let q=h.c(9),{errors:M}=J,[G]=p();if(M.length===0)return null;let W,Q,X;if(q[0]!==M||q[1]!==G){let Z=M.reduce(Jq,{}),N=Object.keys(Z).sort();W=F,Q="column",X=N.map((O)=>{let Y=Z[O]||[];Y.sort(qq);let D=r(Y),S=new Map;Y.forEach((L)=>{if(L.suggestion||L.docLink){let H=`${L.suggestion||""}|${L.docLink||""}`;if(!S.has(H))S.set(H,{suggestion:L.suggestion,docLink:L.docLink})}});let A=x(D,{showValues:!0,themeName:G,treeCharColors:{treeChar:"inactive",key:"text",value:"inactive"}});return g(F,{flexDirection:"column",children:[w(V,{children:O}),w(F,{marginLeft:1,children:w(V,{dimColor:!0,children:A})}),S.size>0&&w(F,{flexDirection:"column",marginTop:1,children:Array.from(S.values()).map(e)})]},O)}),q[0]=M,q[1]=G,q[2]=W,q[3]=Q,q[4]=X}else W=q[2],Q=q[3],X=q[4];let I;if(q[5]!==W||q[6]!==Q||q[7]!==X)I=w(W,{flexDirection:Q,children:X}),q[5]=W,q[6]=Q,q[7]=X,q[8]=I;else I=q[8];return I}function e(J,q){return g(F,{flexDirection:"column",marginBottom:1,children:[J.suggestion&&w(V,{dimColor:!0,wrap:"wrap",children:J.suggestion}),J.docLink&&g(V,{dimColor:!0,wrap:"wrap",children:["Learn more: ",J.docLink]})]},`suggestion-pair-${q}`)}function qq(J,q){if(!J.path&&q.path)return-1;if(J.path&&!q.path)return 1;return(J.path||"").localeCompare(q.path||"")}function Jq(J,q){let M=q.file||"(file not specified)";if(!J[M])J[M]=[];return J[M].push(q),J}var h;var Mq=v(()=>{f();o();m();y();h=i(t(),1)});
3
3
  export{Hq as Ie,Mq as Je};
@@ -0,0 +1,2 @@
1
+ import{Af as qG,Bf as mG}from"./cli-0.2.0-bs742fy1.mjs";import{Df as GG,Ef as FG}from"./cli-0.2.0-arwyxqyx.mjs";import{Hk as Lq,Ik as uq,Kr as aq,Lr as bG,Mr as iq,Nr as LG,Pk as dq,Rk as $q,Vk as Tq,Zk as fq,_k as PG,aK as yq,bK as tq,dK as TG,nv as eq,pv as CG,qt as lq,rt as yG,wj as rq,xj as IG}from"./cli-0.2.0-cs8e9514.mjs";import{JR as sq,KR as DG}from"./cli-0.2.0-r3f7ephj.mjs";import{KS as nq,LS as RG,TS as oq,US as NG}from"./cli-0.2.0-zdr99w6n.mjs";import{FU as U,HU as Y,VS as AG,kV as BG}from"./cli-0.2.0-c7ea0dry.mjs";import{IV as pq,JV as Z,KV as H,LV as jq}from"./cli-0.2.0-fgsp4dtv.mjs";import{MV as WG}from"./cli-0.2.0-gsw60zfe.mjs";import{B1 as Cq,D1 as _,D3 as _G,K0 as Nq,L0 as Eq,M1 as g,N0 as Pq,P1 as bq,S1 as UG,Z0 as cq,a2 as JG,c1 as KG,g2 as vG,i3 as QG}from"./cli-0.2.0-h2wnach8.mjs";import{a$ as Sq,c$ as xq,o$ as HG}from"./cli-0.2.0-g2h1t6ke.mjs";import{Dea as _q,Eea as kG}from"./cli-0.2.0-35xeqadb.mjs";import{cma as Mq,gma as vq}from"./cli-0.2.0-b8hs09nv.mjs";function JJ(J){let q=mq.c(82),{initial:X,sessionModel:Q,onSelect:z,onCancel:w,isStandaloneCommand:W,showFastModeNotice:zq,headerText:XG,skipSettingsWrite:Yq}=J,wq=tq(),x=sq(),A=X===null?S:X,[B,ZG]=Zq.useState(A),zG=yq(jG),[R,YG]=Zq.useState(!1),P=yq(VG),E;if(q[0]!==P)E=P!==void 0?Tq(P):void 0,q[0]=P,q[1]=E;else E=q[1];let[b,Fq]=Zq.useState(E),kq=zG??!1,c;if(q[2]!==kq)c=qG(kq),q[2]=kq,q[3]=c;else c=q[3];let M=c,Hq;q:{if(X!==null&&!M.some((G)=>{if(G.value===X)return!0;if(G.value===null)return!1;try{return _(g(String(G.value)))===_(g(X))}catch{return!1}})){let G;if(q[4]!==X)G=bq(X),q[4]=X,q[5]=G;else G=q[5];let k;if(q[6]!==X||q[7]!==G)k={value:X,label:G,description:"Current model"},q[6]=X,q[7]=G,q[8]=k;else k=q[8];let L;if(q[9]!==M||q[10]!==k)L=[...M,k],q[9]=M,q[10]=k,q[11]=L;else L=q[11];Hq=L;break q}Hq=M}let Kq=Hq,p;if(q[12]!==Kq)p=Kq.map(OG),q[12]=Kq,q[13]=p;else p=q[13];let K=p,r;if(q[14]!==A||q[15]!==K)r=K.find((G)=>{if(G.value===A)return!0;if(A===S||G.value===null)return!1;try{return _(g(String(G.value)))===_(g(String(A)))}catch{return!1}})?.value??K[0]?.value??void 0,q[14]=A,q[15]=K,q[16]=r;else r=q[16];let Uq=r,n=Math.min(10,K.length),u=Math.max(0,K.length-n),d;if(q[17]!==B||q[18]!==K)d=K.find((G)=>G.value===B)?.label,q[17]=B,q[18]=K,q[19]=d;else d=q[19];let $=d,I,f;if(q[20]!==B){let G=Dq(B);I=G?Lq(G):!1,f=G?uq(G):!1,q[20]=B,q[21]=I,q[22]=f}else I=q[21],f=q[22];let a=f,i;if(q[23]!==B)i=Rq(B),q[23]=B,q[24]=i;else i=q[24];let y=i,v=b==="max"&&!a?"high":b,l;if(q[25]!==P||q[26]!==R)l=(G)=>{if(ZG(G),!R&&P===void 0)Fq(Rq(G))},q[25]=P,q[26]=R,q[27]=l;else l=q[27];let Wq=l,s;if(q[28]!==y||q[29]!==I||q[30]!==a)s=(G)=>{if(!I)return;Fq((k)=>gG(k??y,G,a)),YG(!0)},q[28]=y,q[29]=I,q[30]=a,q[31]=s;else s=q[31];let o=s,e;if(q[32]!==o)e={"modelPicker:decreaseEffort":()=>o("left"),"modelPicker:increaseEffort":()=>o("right")},q[32]=o,q[33]=e;else e=q[33];let t;if(q[34]===Symbol.for("react.memo_cache_sentinel"))t={context:"ModelPicker"},q[34]=t;else t=q[34];nq(e,t);let qq;if(q[35]!==b||q[36]!==R||q[37]!==z||q[38]!==wq||q[39]!==Yq)qq=function(k){if(_q("tengu_model_command_menu_effort",{effort:b}),!Yq){let Oq=$q(b,Rq(k),Sq("userSettings")?.effortLevel,R),Vq=dq(Oq);if(Vq!==void 0)xq("userSettings",{effortLevel:Vq});wq((wG)=>({...wG,effortValue:Oq}))}let L=Dq(k),hq=R&&L&&Lq(L)?b:void 0;if(k===S){z(null,hq);return}z(k,hq)},q[35]=b,q[36]=R,q[37]=z,q[38]=wq,q[39]=Yq,q[40]=qq;else qq=q[40];let Aq=qq,Gq;if(q[41]===Symbol.for("react.memo_cache_sentinel"))Gq=Z(Y,{color:"remember",bold:!0,children:"Select model"}),q[41]=Gq;else Gq=q[41];let Bq=XG??"Switch between Claude models. Applies to this session and future Claude Code sessions. For other/previous model names, specify with --model.",D;if(q[42]!==Bq)D=Z(Y,{dimColor:!0,children:Bq}),q[42]=Bq,q[43]=D;else D=q[43];let N;if(q[44]!==Q)N=Q&&H(Y,{dimColor:!0,children:["Currently using ",bq(Q)," for this session (set by plan mode). Selecting a model will undo this."]}),q[44]=Q,q[45]=N;else N=q[45];let C;if(q[46]!==D||q[47]!==N)C=H(U,{marginBottom:1,flexDirection:"column",children:[Gq,D,N]}),q[46]=D,q[47]=N,q[48]=C;else C=q[48];let Iq=w??hG,T;if(q[49]!==Wq||q[50]!==Aq||q[51]!==Uq||q[52]!==A||q[53]!==K||q[54]!==Iq||q[55]!==n)T=Z(U,{flexDirection:"column",children:Z(eq,{defaultValue:A,defaultFocusValue:Uq,options:K,onChange:Aq,onFocus:Wq,onCancel:Iq,visibleOptionCount:n})}),q[49]=Wq,q[50]=Aq,q[51]=Uq,q[52]=A,q[53]=K,q[54]=Iq,q[55]=n,q[56]=T;else T=q[56];let m;if(q[57]!==u)m=u>0&&Z(U,{paddingLeft:3,children:H(Y,{dimColor:!0,children:["and ",u," more…"]})}),q[57]=u,q[58]=m;else m=q[58];let F;if(q[59]!==T||q[60]!==m)F=H(U,{flexDirection:"column",marginBottom:1,children:[T,m]}),q[59]=T,q[60]=m,q[61]=F;else F=q[61];let h;if(q[62]!==v||q[63]!==y||q[64]!==$||q[65]!==I)h=Z(U,{marginBottom:1,flexDirection:"column",children:I?H(Y,{dimColor:!0,children:[Z(gq,{effort:v})," ",lq(v)," effort",v===y?" (default)":""," ",Z(Y,{color:"subtle",children:"← → to adjust"})]}):H(Y,{color:"subtle",children:[Z(gq,{effort:void 0})," Effort not supported",$?` for ${$}`:""]})}),q[62]=v,q[63]=y,q[64]=$,q[65]=I,q[66]=h;else h=q[66];let O;if(q[67]!==zq)O=Nq()?zq?Z(U,{marginBottom:1,children:H(Y,{dimColor:!0,children:["Fast mode is ",Z(Y,{bold:!0,children:"ON"})," and available with"," ",Pq," only (/fast). Switching to other models turn off fast mode."]})}):Eq()&&!cq()?Z(U,{marginBottom:1,children:H(Y,{dimColor:!0,children:["Use ",Z(Y,{bold:!0,children:"/fast"})," to turn on Fast mode (",Pq," only)."]})}):null:null,q[67]=zq,q[68]=O;else O=q[68];let V;if(q[69]!==C||q[70]!==F||q[71]!==h||q[72]!==O)V=H(U,{flexDirection:"column",children:[C,F,h,O]}),q[69]=C,q[70]=F,q[71]=h,q[72]=O,q[73]=V;else V=q[73];let j;if(q[74]!==x||q[75]!==W)j=W&&Z(Y,{dimColor:!0,italic:!0,children:x.pending?H(pq,{children:["Press ",x.keyName," again to exit"]}):H(iq,{children:[Z(rq,{shortcut:"Enter",action:"confirm"}),Z(aq,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"})]})}),q[74]=x,q[75]=W,q[76]=j;else j=q[76];let Jq;if(q[77]!==V||q[78]!==j)Jq=H(U,{flexDirection:"column",children:[V,j]}),q[77]=V,q[78]=j,q[79]=Jq;else Jq=q[79];let Qq=Jq;if(!W)return Qq;let Xq;if(q[80]!==Qq)Xq=Z(oq,{color:"permission",children:Qq}),q[80]=Qq,q[81]=Xq;else Xq=q[81];return Xq}function hG(){}function OG(J){return{...J,value:J.value===null?S:J.value}}function VG(J){return J.effortValue}function jG(J){return Nq()?J.fastMode:!1}function Dq(J){if(!J)return;return J===S?Cq():g(J)}function gq(J){let q=mq.c(5),{effort:X}=J,Q=X?"claude":"subtle",z=X??"low",w;if(q[0]!==z)w=GG(z),q[0]=z,q[1]=w;else w=q[1];let W;if(q[2]!==Q||q[3]!==w)W=Z(Y,{color:Q,children:w}),q[2]=Q,q[3]=w,q[4]=W;else W=q[4];return W}function gG(J,q,X){let Q=X?["low","medium","high","max"]:["low","medium","high"],z=Q.indexOf(J),w=z!==-1?z:Q.indexOf("high");if(q==="right")return Q[(w+1)%Q.length];else return Q[(w-1+Q.length)%Q.length]}function Rq(J){let q=Dq(J)??Cq(),X=fq(q);return X!==void 0?Tq(X):"high"}var mq,Zq,S="__NO_PREFERENCE__";var MG=vq(()=>{yG();DG();kG();KG();BG();RG();TG();PG();UG();mG();HG();bG();CG();LG();IG();NG();FG();jq();mq=Mq(AG(),1),Zq=Mq(WG(),1)});function YJ(J,q,X){if(!QG())return!1;if(q)return!0;if(J===null||!JG(J))return!1;let Q=J.toLowerCase().replace(/\[1m\]$/,"").trim(),z=Q==="opus"||Q.includes("opus-4-6")||Q.includes("opus-4-7"),w=Q==="sonnet"||Q.includes("sonnet-4-6");if(z&&X)return!1;return z||w}var SG=vq(()=>{_G();vG()});
2
+ export{JJ as wf,MG as xf,YJ as yf,SG as zf};
@@ -1,3 +1,3 @@
1
- import{Sla as x,Ula as y,Yla as C}from"./cli-0.1.15-acdm8b28.mjs";import{$la as k}from"./cli-0.1.15-mhbfhhf6.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
1
+ import{Xla as x,Zla as y,bma as C}from"./cli-0.2.0-dtsxeqwx.mjs";import{ema as k}from"./cli-0.2.0-b8hs09nv.mjs";var MF=k((n)=>{var K=x(),b=C(),w=y(),f=(F)=>F[K.SMITHY_CONTEXT_KEY]||(F[K.SMITHY_CONTEXT_KEY]={}),h=(F,J)=>{if(!J||J.length===0)return F;let G=[];for(let L of J)for(let Q of F)if(Q.schemeId.split("#")[1]===L)G.push(Q);for(let L of F)if(!G.find(({schemeId:Q})=>Q===L.schemeId))G.push(L);return G};function v(F){let J=new Map;for(let G of F)J.set(G.schemeId,G);return J}var j=(F,J)=>(G,L)=>async(Q)=>{let V=F.httpAuthSchemeProvider(await J.httpAuthSchemeParametersProvider(F,L,Q.input)),W=F.authSchemePreference?await F.authSchemePreference():[],Z=h(V,W),Y=v(F.httpAuthSchemes),U=w.getSmithyContext(L),$=[];for(let X of Z){let B=Y.get(X.schemeId);if(!B){$.push(`HttpAuthScheme \`${X.schemeId}\` was not enabled for this service.`);continue}let D=B.identityProvider(await J.identityProviderConfigProvider(F));if(!D){$.push(`HttpAuthScheme \`${X.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:N={},signingProperties:R={}}=X.propertiesExtractor?.(F,L)||{};X.identityProperties=Object.assign(X.identityProperties||{},N),X.signingProperties=Object.assign(X.signingProperties||{},R),U.selectedHttpAuthScheme={httpAuthOption:X,identity:await D(X.identityProperties),signer:B.signer};break}if(!U.selectedHttpAuthScheme)throw Error($.join(`
2
2
  `));return G(Q)},H={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},P=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),H)}}),M={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},l=(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G})=>({applyToStack:(L)=>{L.addRelativeTo(j(F,{httpAuthSchemeParametersProvider:J,identityProviderConfigProvider:G}),M)}}),m=(F)=>(J)=>{throw J},u=(F,J)=>{},O=(F)=>(J,G)=>async(L)=>{if(!b.HttpRequest.isInstance(L.request))return J(L);let V=w.getSmithyContext(G).selectedHttpAuthScheme;if(!V)throw Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:W={}},identity:Z,signer:Y}=V,U=await J({...L,request:await Y.sign(L.request,Z,W)}).catch((Y.errorHandler||m)(W));return(Y.successHandler||u)(U.response,W),U},I={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},c=(F)=>({applyToStack:(J)=>{J.addRelativeTo(O(),I)}}),a=(F)=>{if(typeof F==="function")return F;let J=Promise.resolve(F);return()=>J},d=async(F,J,G,L=(V)=>V,...Q)=>{let V=new F(G);return V=L(V)??V,await J.send(V,...Q)};function g(F,J,G,L,Q){return async function*(W,Z,...Y){let U=Z,$=W.startingToken??U[G],X=!0,B;while(X){if(U[G]=$,Q)U[Q]=U[Q]??W.pageSize;if(W.client instanceof F)B=await d(J,W.client,Z,W.withCommand,...Y);else throw Error(`Invalid client, expected instance of ${F.name}`);yield B;let D=$;$=p(B,L),X=!!($&&(!W.stopOnSameToken||$!==D))}return}}var p=(F,J)=>{let G=F,L=J.split(".");for(let Q of L){if(!G||typeof G!=="object")return;G=G[Q]}return G};function s(F,J,G){if(!F.__smithy_context)F.__smithy_context={features:{}};else if(!F.__smithy_context.features)F.__smithy_context.features={};F.__smithy_context.features[J]=G}class E{authSchemes=new Map;constructor(F){for(let J in F){let G=F[J];if(G!==void 0)this.authSchemes.set(J,G)}}getIdentityProvider(F){return this.authSchemes.get(F)}}class _{async sign(F,J,G){if(!G)throw Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!G.name)throw Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!G.in)throw Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!J.apiKey)throw Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let L=b.HttpRequest.clone(F);if(G.in===K.HttpApiKeyAuthLocation.QUERY)L.query[G.name]=J.apiKey;else if(G.in===K.HttpApiKeyAuthLocation.HEADER)L.headers[G.name]=G.scheme?`${G.scheme} ${J.apiKey}`:J.apiKey;else throw Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+G.in+"`");return L}}class z{async sign(F,J,G){let L=b.HttpRequest.clone(F);if(!J.token)throw Error("request could not be signed with `token` since the `token` is not defined");return L.headers.Authorization=`Bearer ${J.token}`,L}}class A{async sign(F,J,G){return F}}var q=(F)=>function(G){return S(G)&&G.expiration.getTime()-Date.now()<F},T=300000,r=q(T),S=(F)=>F.expiration!==void 0,o=(F,J,G)=>{if(F===void 0)return;let L=typeof F!=="function"?async()=>Promise.resolve(F):F,Q,V,W,Z=!1,Y=async(U)=>{if(!V)V=L(U);try{Q=await V,W=!0,Z=!1}finally{V=void 0}return Q};if(J===void 0)return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);return Q};return async(U)=>{if(!W||U?.forceRefresh)Q=await Y(U);if(Z)return Q;if(!G(Q))return Z=!0,Q;if(J(Q))return await Y(U),Q;return Q}};n.requestBuilder=b.requestBuilder;n.DefaultIdentityProviderConfig=E;n.EXPIRATION_MS=T;n.HttpApiKeyAuthSigner=_;n.HttpBearerAuthSigner=z;n.NoAuthSigner=A;n.createIsIdentityExpiredFunction=q;n.createPaginator=g;n.doesIdentityRequireRefresh=S;n.getHttpAuthSchemeEndpointRuleSetPlugin=P;n.getHttpAuthSchemePlugin=l;n.getHttpSigningPlugin=c;n.getSmithyContext=f;n.httpAuthSchemeEndpointRuleSetMiddlewareOptions=H;n.httpAuthSchemeMiddleware=j;n.httpAuthSchemeMiddlewareOptions=M;n.httpSigningMiddleware=O;n.httpSigningMiddlewareOptions=I;n.isIdentityExpired=r;n.memoizeIdentityProvider=o;n.normalizeProvider=a;n.setFeature=s});
3
- export{MF as y4};
3
+ export{MF as D4};
@@ -0,0 +1,2 @@
1
+ import{nX as y,rX as V}from"./cli-0.2.0-pxy1f4ky.mjs";import{Y8 as q,_8 as Q,q6 as p,s6 as K}from"./cli-0.2.0-g2h1t6ke.mjs";import{gma as J}from"./cli-0.2.0-b8hs09nv.mjs";function j(){return!!z}async function D(){if(b!==null)return b;return b=!!z,b}function P(){return W||null}async function w(){return(await p(y,["-V"])).code===0}function E(){if(f!==null)return f;let k=process.env.TERM_PROGRAM,B=!!process.env.ITERM_SESSION_ID,H=q.terminal==="iTerm.app";return f=k==="iTerm.app"||B||H,f}async function F(){return(await p(Y,["session","list"])).code===0}function G(){b=null,f=null}var z,W,b=null,f=null,Y="it2";var Z=J(()=>{Q();K();V();z=process.env.TMUX,W=process.env.TMUX_PANE});
2
+ export{j as bX,D as cX,P as dX,w as eX,E as fX,Y as gX,F as hX,G as iX,Z as jX};