@unieai/code 0.0.13 → 0.0.15

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 (447) hide show
  1. package/README.md +18 -0
  2. package/dist/chunks/App-6wcwb5pc.js +2 -0
  3. package/dist/chunks/ApproveApiKey-d97zej3m.js +2 -0
  4. package/dist/chunks/{assistant-bmwndz7j.js → AssistantSessionChooser-vygv3jdr.js} +1 -1
  5. package/dist/chunks/BypassPermissionsModeDialog-p7yq2zap.js +2 -0
  6. package/dist/chunks/{ClaudeInChromeOnboarding-ckjppjhr.js → ClaudeInChromeOnboarding-n11q2368.js} +1 -1
  7. package/dist/chunks/ClaudeMdExternalIncludesDialog-6afdc75a.js +2 -0
  8. package/dist/chunks/ConsoleOAuthFlow-7na5hhyn.js +2 -0
  9. package/dist/chunks/{DiffDialog-ptnc4sgx.js → DiffDialog-0gfe5ew5.js} +1 -1
  10. package/dist/chunks/Doctor-q03grp6g.js +2 -0
  11. package/dist/chunks/Grove-2hdgsj42.js +2 -0
  12. package/dist/chunks/{ITermBackend-wgbbpgpy.js → ITermBackend-d4maa39x.js} +1 -1
  13. package/dist/chunks/{InProcessTransport-vgh7qgjn.js → InProcessTransport-7sr7467h.js} +1 -1
  14. package/dist/chunks/InvalidConfigDialog-qe8rkhkj.js +2 -0
  15. package/dist/chunks/InvalidSettingsDialog-tmhmy5tf.js +2 -0
  16. package/dist/chunks/Onboarding-hp8hb5kc.js +2 -0
  17. package/dist/chunks/REPL-5ppdjgag.js +2 -0
  18. package/dist/chunks/{ResumeConversation-wfhd5xb2.js → ResumeConversation-sr90x948.js} +1 -1
  19. package/dist/chunks/{SnapshotUpdateDialog-aya2c2f9.js → SnapshotUpdateDialog-wt6b6ee8.js} +1 -1
  20. package/dist/chunks/{TeleportProgress-kn3qgvd9.js → TeleportProgress-yv82g5fx.js} +1 -1
  21. package/dist/chunks/{TeleportRepoMismatchDialog-01v6e2qz.js → TeleportRepoMismatchDialog-hdzhp1cy.js} +1 -1
  22. package/dist/chunks/{TeleportResumeWrapper-48dsm503.js → TeleportResumeWrapper-m93f8nva.js} +1 -1
  23. package/dist/chunks/{TmuxBackend-s0bt8zqj.js → TmuxBackend-5ajj7r7b.js} +1 -1
  24. package/dist/chunks/ToolSearchTool-e8x4b1xy.js +2 -0
  25. package/dist/chunks/{TrustDialog-xtn3kq0n.js → TrustDialog-m74p2tm4.js} +1 -1
  26. package/dist/chunks/TungstenTool-3f5rj0vm.js +2 -0
  27. package/dist/chunks/{add-dir-z0kz5nf7.js → add-dir-fswbbep3.js} +1 -1
  28. package/dist/chunks/{agents-ex4cdx64.js → agents-ftrmk7h2.js} +1 -1
  29. package/dist/chunks/agents-wg0hfr30.js +4 -0
  30. package/dist/chunks/ant-claude-for-chrome-mcp-p12dy6z6.js +2 -0
  31. package/dist/chunks/api-94eda39h.js +2 -0
  32. package/dist/chunks/asciicast-ktxrxtw6.js +2 -0
  33. package/dist/chunks/{AssistantSessionChooser-wxmyvgcf.js → assistant-kae6ttkn.js} +1 -1
  34. package/dist/chunks/{auth-g2p039wk.js → auth-2kpz51np.js} +1 -1
  35. package/dist/chunks/auth-xw8gbsgb.js +2 -0
  36. package/dist/chunks/backgroundHousekeeping-zxf9qg70.js +2 -0
  37. package/dist/chunks/{branch-rdvbhvts.js → branch-takyqck5.js} +1 -1
  38. package/dist/chunks/{bridgePointer-9rqn5tp6.js → bridgePointer-73w5dbak.js} +1 -1
  39. package/dist/chunks/{btw-xts6twbq.js → btw-jdp39tx4.js} +1 -1
  40. package/dist/chunks/{buddy-yc09g048.js → buddy-m4zdx3bb.js} +1 -1
  41. package/dist/chunks/{cachedMicrocompact-fa2mdnyh.js → cachedMicrocompact-6agq4j15.js} +1 -1
  42. package/dist/chunks/caches-zfq2xyng.js +2 -0
  43. package/dist/chunks/{chrome-gb6g0d5p.js → chrome-6nn58sx4.js} +1 -1
  44. package/dist/chunks/{chromeNativeHost-jsntnc29.js → chromeNativeHost-zww6nc8m.js} +1 -1
  45. package/dist/chunks/{claudeDesktop-me56qerx.js → claudeDesktop-mbfy989f.js} +1 -1
  46. package/dist/chunks/{cleanup-hxj6tm50.js → cleanup-b1j2gz00.js} +1 -1
  47. package/dist/chunks/clear-gcgpc454.js +2 -0
  48. package/dist/chunks/{cli-63wps6p0.js → cli-01hdyy20.js} +1 -1
  49. package/dist/chunks/{cli-fnt125we.js → cli-024t0qj5.js} +2 -2
  50. package/dist/chunks/{cli-xqqnx8gk.js → cli-05d7kjwb.js} +1 -1
  51. package/dist/chunks/{cli-z02gsrtd.js → cli-0gt2xz4m.js} +2 -2
  52. package/dist/chunks/{cli-hp5gs22f.js → cli-0hyd6spd.js} +1 -1
  53. package/dist/chunks/{cli-3619x17q.js → cli-0p0bgg1c.js} +1 -1
  54. package/dist/chunks/{cli-j4r75xsd.js → cli-0qjhtnek.js} +1 -1
  55. package/dist/chunks/{cli-7ed2q42n.js → cli-0th9dbz0.js} +2 -2
  56. package/dist/chunks/{cli-8j0b3b55.js → cli-0vb8t8wq.js} +1 -1
  57. package/dist/chunks/{cli-7jw2qe69.js → cli-0ybyvcx6.js} +2 -2
  58. package/dist/chunks/{cli-8xyb31dy.js → cli-10j9svm7.js} +2 -2
  59. package/dist/chunks/{cli-2sbq6ggm.js → cli-16j5x50q.js} +2 -2
  60. package/dist/chunks/{cli-3tkd82y4.js → cli-19s45qns.js} +1 -1
  61. package/dist/chunks/{cli-zwn9x1p2.js → cli-1pwyw30a.js} +1 -1
  62. package/dist/chunks/{cli-h2t2hyz7.js → cli-1px0m0pt.js} +2 -2
  63. package/dist/chunks/{cli-e9t5kfxm.js → cli-2540qh2b.js} +1 -1
  64. package/dist/chunks/{cli-ps5qshk4.js → cli-259ff8gy.js} +1 -1
  65. package/dist/chunks/{cli-rc3w6tqd.js → cli-26y0jfks.js} +2 -2
  66. package/dist/chunks/{cli-qwx84m9c.js → cli-2afdzhna.js} +1 -1
  67. package/dist/chunks/{cli-e5yek4vx.js → cli-2dkq8dre.js} +2 -2
  68. package/dist/chunks/{cli-1eejy071.js → cli-2q9p0rr5.js} +1 -1
  69. package/dist/chunks/{cli-awe5yg6m.js → cli-39xs60x2.js} +2 -2
  70. package/dist/chunks/{cli-mx33m3gs.js → cli-3he638yr.js} +1 -1
  71. package/dist/chunks/{cli-an97yxg9.js → cli-3q4bcd9y.js} +2 -2
  72. package/dist/chunks/{cli-swrtc7tv.js → cli-40cqn5s4.js} +1 -1
  73. package/dist/chunks/cli-461ebjmk.js +3 -0
  74. package/dist/chunks/{cli-n5wt59z1.js → cli-4c9nnszs.js} +2 -2
  75. package/dist/chunks/{cli-64x5ghm5.js → cli-4dj4x3mr.js} +1 -1
  76. package/dist/chunks/{cli-zxe1a0ey.js → cli-4r0qxxn2.js} +2 -2
  77. package/dist/chunks/{cli-jz50hv3m.js → cli-4v73qw68.js} +1 -1
  78. package/dist/chunks/{cli-bfm3f0yw.js → cli-5pn327m7.js} +1 -1
  79. package/dist/chunks/{cli-jrwh6rs0.js → cli-5rxvwnb0.js} +1 -1
  80. package/dist/chunks/{cli-93sm9n17.js → cli-5t8cqq40.js} +1 -1
  81. package/dist/chunks/{cli-b3k8arn1.js → cli-63389c5w.js} +589 -589
  82. package/dist/chunks/{cli-609dp2ck.js → cli-6376p7cj.js} +1 -1
  83. package/dist/chunks/{cli-8h10q2x8.js → cli-6fmt7dye.js} +1 -1
  84. package/dist/chunks/{cli-9e8f55fp.js → cli-6xn8gqp2.js} +1 -1
  85. package/dist/chunks/{cli-a2d962bq.js → cli-7dm5ex18.js} +3 -3
  86. package/dist/chunks/{cli-9hqmq5g6.js → cli-7q6tcs56.js} +1 -1
  87. package/dist/chunks/{cli-6cqemsm9.js → cli-7xgc2882.js} +1 -1
  88. package/dist/chunks/{cli-wznsj6nb.js → cli-884gn8px.js} +1 -1
  89. package/dist/chunks/cli-8ayzxqxm.js +3 -0
  90. package/dist/chunks/{cli-33tchr20.js → cli-8hpg8nq4.js} +2 -2
  91. package/dist/chunks/{cli-jnc0ze6w.js → cli-9m758wb1.js} +53 -53
  92. package/dist/chunks/{cli-192xnkcx.js → cli-9sjvqgf1.js} +39 -39
  93. package/dist/chunks/{cli-bj0csmzs.js → cli-a1ejrtbd.js} +2 -2
  94. package/dist/chunks/{cli-fdjfk8yq.js → cli-a2f4j8s5.js} +2 -2
  95. package/dist/chunks/cli-aevjtty8.js +3 -0
  96. package/dist/chunks/{cli-601zv0wv.js → cli-ajnshm3j.js} +2 -2
  97. package/dist/chunks/{cli-q2g5mjv6.js → cli-aw71bpta.js} +1 -1
  98. package/dist/chunks/{cli-brr3bnrj.js → cli-b2fkrk49.js} +2 -2
  99. package/dist/chunks/{cli-7k17xstr.js → cli-bavw7hk5.js} +1 -1
  100. package/dist/chunks/{cli-5ajcy93q.js → cli-bbt5chja.js} +2 -2
  101. package/dist/chunks/{cli-awb77t95.js → cli-bqs5smsv.js} +2 -2
  102. package/dist/chunks/{cli-yt4ezhhk.js → cli-btsq7ax8.js} +1 -1
  103. package/dist/chunks/{cli-yktdhy9p.js → cli-cmfxv0fb.js} +2 -2
  104. package/dist/chunks/{cli-nqvfpxp6.js → cli-d287m3xt.js} +1 -1
  105. package/dist/chunks/{cli-0nz8v3dj.js → cli-d5tdpnv2.js} +1 -1
  106. package/dist/chunks/{cli-jmq1x925.js → cli-d8qkvmdn.js} +2 -2
  107. package/dist/chunks/{cli-9xtyh8c7.js → cli-dc6wqdxq.js} +2 -2
  108. package/dist/chunks/{cli-rjy86nps.js → cli-djvr12vv.js} +1 -1
  109. package/dist/chunks/{cli-e4a4fjx9.js → cli-dp2jt8fs.js} +2 -2
  110. package/dist/chunks/{cli-e3q6b1cv.js → cli-e1e1m0pp.js} +1 -1
  111. package/dist/chunks/{cli-szxfz15b.js → cli-e1gmbexn.js} +1 -1
  112. package/dist/chunks/{cli-2428yw99.js → cli-e5vc9y1s.js} +2 -2
  113. package/dist/chunks/{cli-8kpqq0ea.js → cli-eehgc06t.js} +2 -2
  114. package/dist/chunks/{cli-a1cx6p3g.js → cli-ehchpnvs.js} +1 -1
  115. package/dist/chunks/{cli-6qt2xm18.js → cli-epetmtbs.js} +2 -2
  116. package/dist/chunks/{cli-m6amgxq3.js → cli-ex1phpwq.js} +1 -1
  117. package/dist/chunks/{cli-8ykv66e4.js → cli-ey3ajcbm.js} +2 -2
  118. package/dist/chunks/{cli-wvctks7e.js → cli-eys4epws.js} +2 -2
  119. package/dist/chunks/{cli-2fqrjjs9.js → cli-ezm83s1g.js} +1 -1
  120. package/dist/chunks/{cli-dx0pk7k2.js → cli-f2vabz18.js} +1 -1
  121. package/dist/chunks/{cli-7wxv39ry.js → cli-fg3rb4dg.js} +2 -2
  122. package/dist/chunks/{cli-t7sx6zqn.js → cli-fn58ekhc.js} +1 -1
  123. package/dist/chunks/{cli-6ee37m6j.js → cli-ft5hkwbj.js} +1 -1
  124. package/dist/chunks/{cli-eh1wx76n.js → cli-ftpdmdw5.js} +1 -1
  125. package/dist/chunks/{cli-df5r5xrp.js → cli-fvr47wt6.js} +1 -1
  126. package/dist/chunks/{cli-a1dqnvy2.js → cli-g85dpwpq.js} +1 -1
  127. package/dist/chunks/{cli-d1w21hsm.js → cli-gd0f1rtp.js} +1 -1
  128. package/dist/chunks/{cli-bpj9na88.js → cli-gh3w0z1t.js} +1 -1
  129. package/dist/chunks/{cli-ktzyyx91.js → cli-gpsc6dvd.js} +1 -1
  130. package/dist/chunks/{cli-zqrzc3qx.js → cli-gv71wq8a.js} +1 -1
  131. package/dist/chunks/{cli-67azkkwm.js → cli-h2e1scnk.js} +1 -1
  132. package/dist/chunks/{cli-bdgrtpsy.js → cli-h3vttdhj.js} +2 -2
  133. package/dist/chunks/{cli-sbm8tsyq.js → cli-h5hm4rsb.js} +1 -1
  134. package/dist/chunks/cli-h7tdk5fx.js +3 -0
  135. package/dist/chunks/{cli-yaxs01at.js → cli-h9xmkhdq.js} +2 -2
  136. package/dist/chunks/{cli-b8j8bm5m.js → cli-hs95nqb0.js} +1 -1
  137. package/dist/chunks/{cli-rz03bav0.js → cli-hsnk77dk.js} +1 -1
  138. package/dist/chunks/{cli-q8zmmp6z.js → cli-hy0se8fa.js} +2 -2
  139. package/dist/chunks/{cli-3tmtx9ka.js → cli-jr0hzh2w.js} +1 -1
  140. package/dist/chunks/{cli-hpxspent.js → cli-jy20hqk9.js} +2 -2
  141. package/dist/chunks/{cli-ez2xsd4m.js → cli-k3b5ctgk.js} +2 -2
  142. package/dist/chunks/{cli-yxsn8ang.js → cli-kc4b0z3x.js} +1 -1
  143. package/dist/chunks/{cli-d2pn0xfj.js → cli-krmacmt6.js} +1 -1
  144. package/dist/chunks/{cli-tafg3e9w.js → cli-ktzb7cwm.js} +2 -2
  145. package/dist/chunks/{cli-sr25begm.js → cli-m09f7s7e.js} +1 -1
  146. package/dist/chunks/{cli-kx3r72jp.js → cli-mae5am6a.js} +1 -1
  147. package/dist/chunks/{cli-z2ewnqgr.js → cli-mhza34xq.js} +2 -2
  148. package/dist/chunks/{cli-qpjkqhg2.js → cli-mky8bjey.js} +1 -1
  149. package/dist/chunks/{cli-fz053waw.js → cli-mqkqq3ye.js} +2 -2
  150. package/dist/chunks/{cli-vtsy70mz.js → cli-ms2tdrrf.js} +1 -1
  151. package/dist/chunks/{cli-hrmzaf5d.js → cli-n0xnhnx9.js} +2 -2
  152. package/dist/chunks/{cli-cfbfexxj.js → cli-ncbagd2h.js} +1 -1
  153. package/dist/chunks/{cli-vfh77r55.js → cli-ndp9j4vm.js} +1 -1
  154. package/dist/chunks/{cli-4pwyex04.js → cli-ndrvqgnc.js} +2 -2
  155. package/dist/chunks/{cli-jz8jcrhh.js → cli-nhks97kf.js} +1 -1
  156. package/dist/chunks/{cli-ry9g546q.js → cli-p2ngs1jm.js} +1 -1
  157. package/dist/chunks/{cli-qrmc38f8.js → cli-p853vxnx.js} +2 -2
  158. package/dist/chunks/{cli-gfweqbpz.js → cli-pmfc2886.js} +1 -1
  159. package/dist/chunks/{cli-1p7nc6zb.js → cli-q33bj7n5.js} +2 -2
  160. package/dist/chunks/{cli-t4see9hh.js → cli-q5arj6fm.js} +2 -2
  161. package/dist/chunks/{cli-vb6aa4jk.js → cli-q6atnwff.js} +2 -2
  162. package/dist/chunks/{cli-cmh6qwg8.js → cli-q93jv7x6.js} +2 -2
  163. package/dist/chunks/{cli-dy9qrrps.js → cli-qa0qmmg4.js} +2 -2
  164. package/dist/chunks/{cli-222ywgt0.js → cli-qhefvb54.js} +2 -2
  165. package/dist/chunks/{cli-sxe9wke0.js → cli-qxtxfn2z.js} +1 -1
  166. package/dist/chunks/{cli-bnr79ddy.js → cli-r29k5h5x.js} +2 -2
  167. package/dist/chunks/{cli-a826q5zk.js → cli-rm2gppbh.js} +1 -1
  168. package/dist/chunks/{cli-a25jeqs8.js → cli-rv4z0bsv.js} +2 -2
  169. package/dist/chunks/{cli-g2s3391y.js → cli-s5ee96g6.js} +1 -1
  170. package/dist/chunks/{cli-5kehgkgh.js → cli-sqtf9njc.js} +1 -1
  171. package/dist/chunks/{cli-3hrmwgsv.js → cli-stjsr4fx.js} +2 -2
  172. package/dist/chunks/{cli-tpjr1pz9.js → cli-svyc36nr.js} +1 -1
  173. package/dist/chunks/{cli-j403r21v.js → cli-sw84zjvc.js} +1 -1
  174. package/dist/chunks/{cli-vm7dr5aa.js → cli-tbp8513t.js} +2 -2
  175. package/dist/chunks/{cli-7n4d5yzr.js → cli-tez2hmqw.js} +1 -1
  176. package/dist/chunks/{cli-hs2k9997.js → cli-tfs3as1v.js} +1 -1
  177. package/dist/chunks/{cli-2j6cv2kz.js → cli-tj8fyjds.js} +2 -2
  178. package/dist/chunks/{cli-phwbqkv7.js → cli-tnbyhfne.js} +2 -2
  179. package/dist/chunks/{cli-97vx3m99.js → cli-ttxhmsvc.js} +1 -1
  180. package/dist/chunks/{cli-yb5m6jwq.js → cli-v86f53k0.js} +3 -3
  181. package/dist/chunks/{cli-07f2hk9d.js → cli-v8wqc6y3.js} +1 -1
  182. package/dist/chunks/{cli-m3r80gy0.js → cli-v9wwx1rc.js} +1 -1
  183. package/dist/chunks/{cli-8jym9hp6.js → cli-vbn35zp3.js} +2 -2
  184. package/dist/chunks/{cli-ca1jmr8f.js → cli-vj1rywde.js} +2 -2
  185. package/dist/chunks/cli-vq0ktbx3.js +3 -0
  186. package/dist/chunks/{cli-pgjnzqk4.js → cli-vrs8hpz4.js} +1 -1
  187. package/dist/chunks/{cli-r43jhzwm.js → cli-vzcpa5mx.js} +2 -2
  188. package/dist/chunks/{cli-q0vret0x.js → cli-w0jxph8x.js} +1 -1
  189. package/dist/chunks/{cli-x9s7jxq5.js → cli-w1y2zvbw.js} +2 -2
  190. package/dist/chunks/{cli-vy3e90k9.js → cli-w4zkh280.js} +1 -1
  191. package/dist/chunks/{cli-chvks6bg.js → cli-w8jvw417.js} +1 -1
  192. package/dist/chunks/{cli-ax0ckqpv.js → cli-w8pfefka.js} +1 -1
  193. package/dist/chunks/{cli-rd5ax7sn.js → cli-x0jht735.js} +1 -1
  194. package/dist/chunks/{cli-gypyp608.js → cli-x4rgkedw.js} +1 -1
  195. package/dist/chunks/{cli-asc9xmsr.js → cli-xabdpk7s.js} +1 -1
  196. package/dist/chunks/{cli-1q1b8rgs.js → cli-xq9g16gt.js} +1 -1
  197. package/dist/chunks/{cli-vqne1z50.js → cli-xw96dapq.js} +1 -1
  198. package/dist/chunks/{cli-b29enbbc.js → cli-xza1mmh1.js} +1 -1
  199. package/dist/chunks/{cli-b5z57an7.js → cli-y2g1asak.js} +1 -1
  200. package/dist/chunks/{cli-mcbntv3p.js → cli-yaw2d4zq.js} +1 -1
  201. package/dist/chunks/{cli-yfb8bk69.js → cli-ymqdnbx2.js} +2 -2
  202. package/dist/chunks/{cli-shsgq494.js → cli-yps4pn87.js} +1 -1
  203. package/dist/chunks/{cli-bzrat9yd.js → cli-z1f33m31.js} +2 -2
  204. package/dist/chunks/cli-z6eshqx6.js +3 -0
  205. package/dist/chunks/{cli-9tbmrp89.js → cli-zjznn7cc.js} +1 -1
  206. package/dist/chunks/{cli-ceas97gw.js → cli-zqj1my2v.js} +2 -2
  207. package/dist/chunks/{cli-psqvdh1r.js → cli-zrth7vt6.js} +1 -1
  208. package/dist/chunks/{cli-8z8d5bgb.js → cli-zxrt2zch.js} +2 -2
  209. package/dist/chunks/cli-zxz1xm2y.js +3 -0
  210. package/dist/chunks/client-syew3mvc.js +2 -0
  211. package/dist/chunks/color-qatz507k.js +2 -0
  212. package/dist/chunks/commitAttribution-shckr1cq.js +2 -0
  213. package/dist/chunks/common-jh4pavb6.js +2 -0
  214. package/dist/chunks/{compact-kysg5kxd.js → compact-sxghgg9n.js} +1 -1
  215. package/dist/chunks/config-25r8er6j.js +2 -0
  216. package/dist/chunks/config-ahnc48yv.js +2 -0
  217. package/dist/chunks/{context-aat04hqp.js → context-8vmnhkcn.js} +1 -1
  218. package/dist/chunks/context-noninteractive-r3easde9.js +2 -0
  219. package/dist/chunks/conversation-5j4eggm2.js +2 -0
  220. package/dist/chunks/{copy-zpvnnk85.js → copy-kkwp50xa.js} +1 -1
  221. package/dist/chunks/cost-jpq9rbzx.js +5 -0
  222. package/dist/chunks/createSession-q0a53mn0.js +2 -0
  223. package/dist/chunks/desktop-k6291p1x.js +2 -0
  224. package/dist/chunks/detectRepository-h3gr8gdb.js +2 -0
  225. package/dist/chunks/detection-b0zsvwnb.js +2 -0
  226. package/dist/chunks/{devtools-7jd4m7th.js → devtools-8zc2m716.js} +1 -1
  227. package/dist/chunks/{diff-xaw6ebj0.js → diff-vm40nyxd.js} +1 -1
  228. package/dist/chunks/doctor-y45fmac9.js +2 -0
  229. package/dist/chunks/earlyInput-pegekfhn.js +2 -0
  230. package/dist/chunks/{effort-bj5x7fcg.js → effort-9xnbtb27.js} +1 -1
  231. package/dist/chunks/executor-kx69dfy3.js +2 -0
  232. package/dist/chunks/exit-8r8kx8hm.js +2 -0
  233. package/dist/chunks/{export-tjrkechp.js → export-0wr0abd0.js} +1 -1
  234. package/dist/chunks/extra-usage-nbgas106.js +2 -0
  235. package/dist/chunks/extra-usage-noninteractive-66zmwx05.js +2 -0
  236. package/dist/chunks/fast-8ymdvfm8.js +2 -0
  237. package/dist/chunks/feedback-n8vwr3z9.js +2 -0
  238. package/dist/chunks/{files-n3b22fs2.js → files-mhx9cc10.js} +1 -1
  239. package/dist/chunks/firstPartyEventLogger-paerdr2m.js +2 -0
  240. package/dist/chunks/gates-wngyk842.js +2 -0
  241. package/dist/chunks/git-r7sca128.js +2 -0
  242. package/dist/chunks/goal-zqeb4rnv.js +2 -0
  243. package/dist/chunks/growthbook-z0km1xj1.js +2 -0
  244. package/dist/chunks/{heapdump-2y7wcy1r.js → heapdump-rcge2q0e.js} +1 -1
  245. package/dist/chunks/{help-a7mc9946.js → help-zba127jm.js} +1 -1
  246. package/dist/chunks/{hooks-22nm9hn0.js → hooks-kwyxgfnh.js} +1 -1
  247. package/dist/chunks/hooks-sd4knstw.js +2 -0
  248. package/dist/chunks/{ide-9x5zsk63.js → ide-ph9revqg.js} +1 -1
  249. package/dist/chunks/index-y2qvpmjn.js +2 -0
  250. package/dist/chunks/{initReplBridge-xjc6eaan.js → initReplBridge-0fb0sdd0.js} +1 -1
  251. package/dist/chunks/ink-qfs553mf.js +2 -0
  252. package/dist/chunks/{insights-n7k1ty4n.js → insights-mc3fr5tq.js} +1 -1
  253. package/dist/chunks/{install-github-app-zdsmjft8.js → install-github-app-8bpx4gak.js} +1 -1
  254. package/dist/chunks/{install-rhzcmymh.js → install-jnwzbh9n.js} +1 -1
  255. package/dist/chunks/install-slack-app-mq18xdh4.js +2 -0
  256. package/dist/chunks/instrumentation-r6m6cpwq.js +13 -0
  257. package/dist/chunks/keybindings-5xfde34t.js +3 -0
  258. package/dist/chunks/loadAgentsDir-858gc42y.js +2 -0
  259. package/dist/chunks/loadPluginHooks-nye2wnjd.js +2 -0
  260. package/dist/chunks/login-d806meeh.js +2 -0
  261. package/dist/chunks/logout-7eab6ep8.js +2 -0
  262. package/dist/chunks/{main-07p6q3f9.js → main-r6t52mjc.js} +14 -14
  263. package/dist/chunks/{mcp-yqhzespv.js → mcp-0vwtqwa6.js} +1 -1
  264. package/dist/chunks/mcp-r18hhy02.js +3 -0
  265. package/dist/chunks/{mcp-yrt7dbxp.js → mcp-y8q5yb60.js} +3 -3
  266. package/dist/chunks/{mcpServer-f90a93nt.js → mcpServer-17f7qjpf.js} +1 -1
  267. package/dist/chunks/{mcpServer-v1dy489g.js → mcpServer-za0c5qxf.js} +1 -1
  268. package/dist/chunks/{memory-mdwb22wh.js → memory-cygg4exk.js} +1 -1
  269. package/dist/chunks/{mobile-j4jwvavn.js → mobile-3b85d257.js} +1 -1
  270. package/dist/chunks/{model-tf1ne2j9.js → model-159q4y9p.js} +1 -1
  271. package/dist/chunks/model-m251ahzh.js +2 -0
  272. package/dist/chunks/{oauth-1b0qpxz4.js → oauth-0bwqgx9q.js} +1 -1
  273. package/dist/chunks/{output-style-t39s3jqx.js → output-style-93keyt16.js} +1 -1
  274. package/dist/chunks/parser-hwq42bt6.js +2 -0
  275. package/dist/chunks/{passes-s3fqswrg.js → passes-q304cea1.js} +1 -1
  276. package/dist/chunks/{permissions-a050zfqv.js → permissions-tyasy9cv.js} +1 -1
  277. package/dist/chunks/plan-24nj1sc9.js +2 -0
  278. package/dist/chunks/plugin-6vddyvyh.js +2 -0
  279. package/dist/chunks/pluginStartupCheck-0vse6r56.js +2 -0
  280. package/dist/chunks/{plugins-4py04yzf.js → plugins-0c98naeb.js} +2 -2
  281. package/dist/chunks/{preauthorizedConfig-hmxcgb8e.js → preauthorizedConfig-et34h6tr.js} +1 -1
  282. package/dist/chunks/{print-pmzxgktf.js → print-z6k6yas1.js} +4 -4
  283. package/dist/chunks/privacy-settings-8j5mffff.js +2 -0
  284. package/dist/chunks/process-22t1nv1h.js +2 -0
  285. package/dist/chunks/{processBashCommand-zkztsgn4.js → processBashCommand-z4dv10xe.js} +1 -1
  286. package/dist/chunks/{processSlashCommand-mfh1h592.js → processSlashCommand-3d7jy9zn.js} +1 -1
  287. package/dist/chunks/prompt-2vc9x4tz.js +2 -0
  288. package/dist/chunks/prompt-n672rb6v.js +2 -0
  289. package/dist/chunks/provider-prompt-cyzsv35w.js +2 -0
  290. package/dist/chunks/{rate-limit-options-kd432dap.js → rate-limit-options-sj78r287.js} +1 -1
  291. package/dist/chunks/registry-eh3nbvrw.js +2 -0
  292. package/dist/chunks/release-notes-242sqhds.js +6 -0
  293. package/dist/chunks/reload-plugins-bnwgt3b2.js +3 -0
  294. package/dist/chunks/{remote-env-rg4k5em5.js → remote-env-gpwv8c1y.js} +1 -1
  295. package/dist/chunks/{remoteBridgeCore-t980tt3v.js → remoteBridgeCore-5f92ewk3.js} +1 -1
  296. package/dist/chunks/rename-q0t9qmps.js +2 -0
  297. package/dist/chunks/{resume-3tc40yn9.js → resume-707rbm95.js} +1 -1
  298. package/dist/chunks/{rewind-b6vg7dxs.js → rewind-2ghm1ys8.js} +1 -1
  299. package/dist/chunks/sandbox-adapter-z2sedaea.js +2 -0
  300. package/dist/chunks/{sandbox-toggle-eke03mr8.js → sandbox-toggle-r0nsvjfe.js} +1 -1
  301. package/dist/chunks/{session-53f3eza5.js → session-7jy47tfh.js} +1 -1
  302. package/dist/chunks/sessionFileAccessHooks-0h2dzr6d.js +2 -0
  303. package/dist/chunks/sessionStorage-na71kng7.js +2 -0
  304. package/dist/chunks/settings-jnqec2t4.js +2 -0
  305. package/dist/chunks/{setup-z05dsr8q.js → setup-exrj5apq.js} +2 -2
  306. package/dist/chunks/{setup-gravfzvg.js → setup-hhnqt5m4.js} +1 -1
  307. package/dist/chunks/setup-sv1h7c9x.js +2 -0
  308. package/dist/chunks/sinks-h5jqp76t.js +2 -0
  309. package/dist/chunks/{skills-41mfq71n.js → skills-7cx810ev.js} +1 -1
  310. package/dist/chunks/startupProfiler-qkkwmx3e.js +2 -0
  311. package/dist/chunks/state-9t5rddcc.js +2 -0
  312. package/dist/chunks/{stats-7qg84dw1.js → stats-4trmdgr9.js} +1 -1
  313. package/dist/chunks/status-qvn7jn0p.js +2 -0
  314. package/dist/chunks/stickers-p4yrfr32.js +2 -0
  315. package/dist/chunks/subprocessEnv-x1xd9x7k.js +2 -0
  316. package/dist/chunks/{systemPromptSections-jxxyhnxe.js → systemPromptSections-pcrphkzc.js} +1 -1
  317. package/dist/chunks/{tag-58ndeaa9.js → tag-bexktcx4.js} +1 -1
  318. package/dist/chunks/tasks-a0mx2drp.js +2 -0
  319. package/dist/chunks/teamHelpers-bfbx13m0.js +2 -0
  320. package/dist/chunks/teammateModeSnapshot-x1dc2d00.js +2 -0
  321. package/dist/chunks/teleport-y1mmes2t.js +2 -0
  322. package/dist/chunks/terminalSetup-a0a8wgbj.js +2 -0
  323. package/dist/chunks/theme-1wm2bpaf.js +2 -0
  324. package/dist/chunks/thinkback-3sz6bf5t.js +2 -0
  325. package/dist/chunks/thinkback-play-swd1vjqn.js +2 -0
  326. package/dist/chunks/toolSearch-8mgqzknz.js +2 -0
  327. package/dist/chunks/trustedDevice-9yp8mttk.js +2 -0
  328. package/dist/chunks/{ultrareviewCommand-qwnsjdez.js → ultrareviewCommand-dj716ryk.js} +1 -1
  329. package/dist/chunks/update-r3pdnfg1.js +82 -0
  330. package/dist/chunks/upgrade-adym17ka.js +2 -0
  331. package/dist/chunks/{upstreamproxy-34wva0r5.js → upstreamproxy-39e2hgq3.js} +1 -1
  332. package/dist/chunks/usage-gehxyrfj.js +2 -0
  333. package/dist/chunks/util-qk39hg9x.js +2 -0
  334. package/dist/chunks/utils-5nwk1214.js +2 -0
  335. package/dist/chunks/vim-zqzf0xh8.js +2 -0
  336. package/dist/chunks/worktree-17wb4yc5.js +2 -0
  337. package/dist/chunks/worktreeModeEnabled-pjb4srr0.js +2 -0
  338. package/dist/cli.js +1 -1
  339. package/package.json +2 -1
  340. package/dist/chunks/App-ncpmz34p.js +0 -2
  341. package/dist/chunks/ApproveApiKey-fqzjf1j3.js +0 -2
  342. package/dist/chunks/BypassPermissionsModeDialog-3ksmd8pp.js +0 -2
  343. package/dist/chunks/ClaudeMdExternalIncludesDialog-rrsfavte.js +0 -2
  344. package/dist/chunks/ConsoleOAuthFlow-04xt4sby.js +0 -2
  345. package/dist/chunks/Doctor-kg5m2zma.js +0 -2
  346. package/dist/chunks/Grove-rf9xhe2e.js +0 -2
  347. package/dist/chunks/InvalidConfigDialog-6spqsgmr.js +0 -2
  348. package/dist/chunks/InvalidSettingsDialog-m6y6esgz.js +0 -2
  349. package/dist/chunks/Onboarding-j1m69bqm.js +0 -2
  350. package/dist/chunks/REPL-qyytrhe5.js +0 -2
  351. package/dist/chunks/ToolSearchTool-4rm3kr13.js +0 -2
  352. package/dist/chunks/TungstenTool-3wjjz6cf.js +0 -2
  353. package/dist/chunks/agents-w6zde2j9.js +0 -4
  354. package/dist/chunks/ant-claude-for-chrome-mcp-gr0b0jr4.js +0 -2
  355. package/dist/chunks/api-07pqphw5.js +0 -2
  356. package/dist/chunks/asciicast-2k1ztt6v.js +0 -2
  357. package/dist/chunks/auth-g509w5pr.js +0 -2
  358. package/dist/chunks/backgroundHousekeeping-hw0chw1d.js +0 -2
  359. package/dist/chunks/caches-3qzm958c.js +0 -2
  360. package/dist/chunks/clear-ssfbry3k.js +0 -2
  361. package/dist/chunks/cli-16k24hzp.js +0 -3
  362. package/dist/chunks/cli-8xz7dd7z.js +0 -3
  363. package/dist/chunks/cli-geka8fb7.js +0 -3
  364. package/dist/chunks/cli-rwh0a2m1.js +0 -3
  365. package/dist/chunks/cli-t5ddsvmv.js +0 -3
  366. package/dist/chunks/cli-t5yqvdb3.js +0 -3
  367. package/dist/chunks/cli-t8ydjjs7.js +0 -3
  368. package/dist/chunks/client-qxx2ja27.js +0 -2
  369. package/dist/chunks/color-k1ew8kzn.js +0 -2
  370. package/dist/chunks/commitAttribution-nsa26sdx.js +0 -2
  371. package/dist/chunks/common-7t28qq0q.js +0 -2
  372. package/dist/chunks/config-d4kj5q8e.js +0 -2
  373. package/dist/chunks/config-txzzncm9.js +0 -2
  374. package/dist/chunks/context-noninteractive-w54t6xnc.js +0 -2
  375. package/dist/chunks/conversation-brecqh0t.js +0 -2
  376. package/dist/chunks/cost-5fbyws6x.js +0 -5
  377. package/dist/chunks/createSession-hsp3x7vw.js +0 -2
  378. package/dist/chunks/desktop-7kdmxet0.js +0 -2
  379. package/dist/chunks/detectRepository-9xqead5f.js +0 -2
  380. package/dist/chunks/detection-z3cdks0s.js +0 -2
  381. package/dist/chunks/doctor-nbm4z0tx.js +0 -2
  382. package/dist/chunks/earlyInput-e8zh4d2d.js +0 -2
  383. package/dist/chunks/executor-e1744nra.js +0 -2
  384. package/dist/chunks/exit-894g29w2.js +0 -2
  385. package/dist/chunks/extra-usage-noninteractive-577ac873.js +0 -2
  386. package/dist/chunks/extra-usage-tfwmdc7z.js +0 -2
  387. package/dist/chunks/fast-1krm57mn.js +0 -2
  388. package/dist/chunks/feedback-2421cbpm.js +0 -2
  389. package/dist/chunks/firstPartyEventLogger-1kwwcqdn.js +0 -2
  390. package/dist/chunks/gates-sd1cp8f2.js +0 -2
  391. package/dist/chunks/git-t6e9xdt2.js +0 -2
  392. package/dist/chunks/goal-0sxyk3va.js +0 -2
  393. package/dist/chunks/growthbook-4hx0kbpq.js +0 -2
  394. package/dist/chunks/hooks-tf9v5b0x.js +0 -2
  395. package/dist/chunks/index-p1k4dhfc.js +0 -2
  396. package/dist/chunks/ink-9n8bszp5.js +0 -2
  397. package/dist/chunks/install-slack-app-vhfe2dsf.js +0 -2
  398. package/dist/chunks/instrumentation-5jjvsvke.js +0 -13
  399. package/dist/chunks/keybindings-tqnmw7ng.js +0 -3
  400. package/dist/chunks/loadAgentsDir-j7pntb5v.js +0 -2
  401. package/dist/chunks/loadPluginHooks-sta7ra57.js +0 -2
  402. package/dist/chunks/login-j7x2fjw8.js +0 -2
  403. package/dist/chunks/logout-53bvwba1.js +0 -2
  404. package/dist/chunks/mcp-3mjagnnt.js +0 -3
  405. package/dist/chunks/model-hz3nn362.js +0 -2
  406. package/dist/chunks/parser-8venanpw.js +0 -2
  407. package/dist/chunks/plan-gjaybyvb.js +0 -2
  408. package/dist/chunks/plugin-trf2388p.js +0 -2
  409. package/dist/chunks/pluginStartupCheck-wxmc7h98.js +0 -2
  410. package/dist/chunks/privacy-settings-b2rz35r5.js +0 -2
  411. package/dist/chunks/process-n5355p53.js +0 -2
  412. package/dist/chunks/prompt-2jyjhkwg.js +0 -2
  413. package/dist/chunks/prompt-b34a0h5z.js +0 -2
  414. package/dist/chunks/provider-prompt-qe4s2yzh.js +0 -2
  415. package/dist/chunks/registry-d7cd5dqg.js +0 -2
  416. package/dist/chunks/release-notes-rwgbn4pp.js +0 -6
  417. package/dist/chunks/reload-plugins-9axdwaaj.js +0 -3
  418. package/dist/chunks/rename-xap3rpbv.js +0 -2
  419. package/dist/chunks/sandbox-adapter-1z8xktva.js +0 -2
  420. package/dist/chunks/sessionFileAccessHooks-xscvsvqt.js +0 -2
  421. package/dist/chunks/sessionStorage-rb63e8bn.js +0 -2
  422. package/dist/chunks/settings-hp0ksjn9.js +0 -2
  423. package/dist/chunks/setup-ssq8b1e6.js +0 -2
  424. package/dist/chunks/sinks-agafqaxj.js +0 -2
  425. package/dist/chunks/startupProfiler-wmf8nvfd.js +0 -2
  426. package/dist/chunks/state-rhxyy4qm.js +0 -2
  427. package/dist/chunks/status-sran2y9h.js +0 -2
  428. package/dist/chunks/stickers-hythmrsd.js +0 -2
  429. package/dist/chunks/subprocessEnv-b12dkzky.js +0 -2
  430. package/dist/chunks/tasks-52g28x72.js +0 -2
  431. package/dist/chunks/teamHelpers-rxt9rvmd.js +0 -2
  432. package/dist/chunks/teammateModeSnapshot-2782d4w9.js +0 -2
  433. package/dist/chunks/teleport-8gjys6yn.js +0 -2
  434. package/dist/chunks/terminalSetup-bbftxeqk.js +0 -2
  435. package/dist/chunks/theme-b38te5rz.js +0 -2
  436. package/dist/chunks/thinkback-05a9q24j.js +0 -2
  437. package/dist/chunks/thinkback-play-1nbagfm5.js +0 -2
  438. package/dist/chunks/toolSearch-7rnke366.js +0 -2
  439. package/dist/chunks/trustedDevice-2dn4981h.js +0 -2
  440. package/dist/chunks/update-ney1krzn.js +0 -82
  441. package/dist/chunks/upgrade-zxxxfq8c.js +0 -2
  442. package/dist/chunks/usage-82ghrfb3.js +0 -2
  443. package/dist/chunks/util-xm9cs164.js +0 -2
  444. package/dist/chunks/utils-zs0ft181.js +0 -2
  445. package/dist/chunks/vim-6gxdrp1k.js +0 -2
  446. package/dist/chunks/worktree-xjxz4ndt.js +0 -2
  447. package/dist/chunks/worktreeModeEnabled-8ndm5yfs.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{hda as N}from"./cli-qwx84m9c.js";import{LRUCache as O}from"lru-cache";import{normalize as q}from"path";class K{cache;constructor(b,j){this.cache=new O({max:b,maxSize:j,sizeCalculation:(p)=>Math.max(1,Buffer.byteLength(p.content))})}get(b){return this.cache.get(q(b))}set(b,j){return this.cache.set(q(b),j),this}has(b){return this.cache.has(q(b))}delete(b){return this.cache.delete(q(b))}clear(){this.cache.clear()}get size(){return this.cache.size}get max(){return this.cache.max}get maxSize(){return this.cache.maxSize}get calculatedSize(){return this.cache.calculatedSize}keys(){return this.cache.keys()}entries(){return this.cache.entries()}dump(){return this.cache.dump()}load(b){this.cache.load(b)}}function R(b,j=Q){return new K(b,j)}function M(b){return Object.fromEntries(b.entries())}function U(b){return Array.from(b.keys())}function V(b){let j=R(b.max,b.maxSize);return j.load(b.dump()),j}function W(b,j){let p=V(b);for(let[w,G]of j.entries()){let J=p.get(w);if(!J||G.timestamp>J.timestamp)p.set(w,G)}return p}var I=100,Q=26214400;var $=()=>{};
3
- export{I as LN,R as MN,M as NN,U as ON,V as PN,W as QN,$ as RN};
2
+ import{jda as N}from"./cli-2afdzhna.js";import{LRUCache as O}from"lru-cache";import{normalize as q}from"path";class K{cache;constructor(b,j){this.cache=new O({max:b,maxSize:j,sizeCalculation:(p)=>Math.max(1,Buffer.byteLength(p.content))})}get(b){return this.cache.get(q(b))}set(b,j){return this.cache.set(q(b),j),this}has(b){return this.cache.has(q(b))}delete(b){return this.cache.delete(q(b))}clear(){this.cache.clear()}get size(){return this.cache.size}get max(){return this.cache.max}get maxSize(){return this.cache.maxSize}get calculatedSize(){return this.cache.calculatedSize}keys(){return this.cache.keys()}entries(){return this.cache.entries()}dump(){return this.cache.dump()}load(b){this.cache.load(b)}}function R(b,j=Q){return new K(b,j)}function M(b){return Object.fromEntries(b.entries())}function U(b){return Array.from(b.keys())}function V(b){let j=R(b.max,b.maxSize);return j.load(b.dump()),j}function W(b,j){let p=V(b);for(let[w,G]of j.entries()){let J=p.get(w);if(!J||G.timestamp>J.timestamp)p.set(w,G)}return p}var I=100,Q=26214400;var $=()=>{};
3
+ export{I as NN,R as ON,M as PN,U as QN,V as RN,W as SN,$ as TN};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{C7 as _,n7 as Q}from"./cli-yb5m6jwq.js";import{N7 as I,O7 as X}from"./cli-fnt125we.js";import{A_ as V,x_ as B}from"./cli-awb77t95.js";import{hda as T}from"./cli-qwx84m9c.js";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{X();V();_();A=new Map});
3
- export{j as J6,P as K6,Y as L6,S as M6,O as N6,D as O6,Z as P6};
2
+ import{E7 as _,p7 as Q}from"./cli-v86f53k0.js";import{P7 as I,Q7 as X}from"./cli-024t0qj5.js";import{C_ as V,z_ as B}from"./cli-bqs5smsv.js";import{jda as T}from"./cli-2afdzhna.js";function j(){A.clear()}async function P(){let f=await Y();if(!f)return null;if(f.host!=="github.com")return null;return`${f.owner}/${f.name}`}async function Y(){let f=I();if(A.has(f))return A.get(f)??null;try{let q=await Q();if(B(`Git remote URL: ${q}`),!q)return B("No git remote URL found"),A.set(f,null),null;let x=O(q);return B(`Parsed repository: ${x?`${x.host}/${x.owner}/${x.name}`:null} from URL: ${q}`),A.set(f,x),x}catch(q){return B(`Error detecting repository: ${q}`),A.set(f,null),null}}function S(){let f=A.get(I());if(!f||f.host!=="github.com")return null;return`${f.owner}/${f.name}`}function O(f){let q=f.trim(),x=q.match(/^git@([^:]+):([^/]+)\/([^/]+?)(?:\.git)?$/);if(x?.[1]&&x[2]&&x[3]){if(!N(x[1]))return null;return{host:x[1],owner:x[2],name:x[3]}}let z=q.match(/^(https?|ssh|git):\/\/(?:[^@]+@)?([^/:]+(?::\d+)?)\/([^/]+)\/([^/]+?)(?:\.git)?$/);if(z?.[1]&&z[2]&&z[3]&&z[4]){let E=z[1],J=z[2],K=J.split(":")[0]??"";if(!N(K))return null;return{host:E==="https"||E==="http"?J:K,owner:z[3],name:z[4]}}return null}function D(f){let q=f.trim(),x=O(q);if(x){if(x.host!=="github.com")return null;return`${x.owner}/${x.name}`}if(!q.includes("://")&&!q.includes("@")&&q.includes("/")){let z=q.split("/");if(z.length===2&&z[0]&&z[1]){let E=z[1].replace(/\.git$/,"");return`${z[0]}/${E}`}}return B(`Could not parse repository from: ${q}`),null}function N(f){if(!f.includes("."))return!1;let q=f.split(".").pop();if(!q)return!1;return/^[a-zA-Z]+$/.test(q)}var A;var Z=T(()=>{X();V();_();A=new Map});
3
+ export{j as L6,P as M6,Y as N6,S as O6,O as P6,D as Q6,Z as R6};
@@ -0,0 +1,3 @@
1
+ // @bun
2
+ import{tR as A}from"./cli-b2fkrk49.js";import{K1 as x,c3 as z}from"./cli-9sjvqgf1.js";import{W_ as q}from"./cli-hy0se8fa.js";import{jda as p}from"./cli-2afdzhna.js";function P(){return!1}async function Q(){return!1}function R(){return!1}function S(){return!0}function T(){return null}var B=p(()=>{z();x();q();A()});
3
+ export{P as Ie,Q as Je,R as Ke,S as Le,T as Me,B as Ne};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{_4 as v}from"./cli-h2t2hyz7.js";import{c5 as Y,g5 as A}from"./cli-6qt2xm18.js";import{E7 as O,F7 as E}from"./cli-yfb8bk69.js";import{N7 as V,O7 as k}from"./cli-fnt125we.js";import{I9 as $,J9 as y}from"./cli-yaxs01at.js";import{A_ as F,n_ as I,r_ as z,x_ as X}from"./cli-awb77t95.js";import{hda as _}from"./cli-qwx84m9c.js";import R from"lodash-es/memoize.js";import*as Q from"path";import*as S from"path/win32";function Z(q){try{return $(`dir "${q}"`,{stdio:"pipe"}),!0}catch{return!1}}function f(q){if(q==="git"){let H=["C:\\Program Files\\Git\\cmd\\git.exe","C:\\Program Files (x86)\\Git\\cmd\\git.exe"];for(let J of H)if(Z(J))return J}try{let J=$(`where.exe ${q}`,{stdio:"pipe",encoding:"utf8"}).trim().split(`\r
2
+ import{a5 as v}from"./cli-1px0m0pt.js";import{e5 as Y,i5 as A}from"./cli-epetmtbs.js";import{G7 as O,H7 as E}from"./cli-ymqdnbx2.js";import{P7 as V,Q7 as k}from"./cli-024t0qj5.js";import{K9 as $,L9 as y}from"./cli-h9xmkhdq.js";import{C_ as F,p_ as I,t_ as z,z_ as X}from"./cli-bqs5smsv.js";import{jda as _}from"./cli-2afdzhna.js";import R from"lodash-es/memoize.js";import*as Q from"path";import*as S from"path/win32";function Z(q){try{return $(`dir "${q}"`,{stdio:"pipe"}),!0}catch{return!1}}function f(q){if(q==="git"){let H=["C:\\Program Files\\Git\\cmd\\git.exe","C:\\Program Files (x86)\\Git\\cmd\\git.exe"];for(let J of H)if(Z(J))return J}try{let J=$(`where.exe ${q}`,{stdio:"pipe",encoding:"utf8"}).trim().split(`\r
3
3
  `).filter(Boolean),K=V().toLowerCase();for(let N of J){let U=Q.resolve(N).toLowerCase();if(Q.dirname(U).toLowerCase()===K||U.startsWith(K+Q.sep)){X(`Skipping potentially malicious executable in current directory: ${N}`);continue}return N}return null}catch{return null}}function d(){if(Y()==="windows"){let q=T();if(!q){X("Git Bash not found on Windows; leaving SHELL unset for lazy fallback handling",{level:"warn"});return}process.env.SHELL=q,X(`Using bash path: "${q}"`)}}var T,r,P,C;var L=_(()=>{k();F();y();E();A();T=R(()=>{if(process.env.CLAUDE_CODE_GIT_BASH_PATH){if(Z(process.env.CLAUDE_CODE_GIT_BASH_PATH))return process.env.CLAUDE_CODE_GIT_BASH_PATH;return null}let q=f("git");if(q){let H=S.join(q,"..","..","bin","bash.exe");if(Z(H))return H}return null}),r=R(()=>{let q=T();if(q)return q;if(process.env.CLAUDE_CODE_GIT_BASH_PATH)console.error(`Claude Code was unable to find CLAUDE_CODE_GIT_BASH_PATH path "${process.env.CLAUDE_CODE_GIT_BASH_PATH}"`),process.exit(1);console.error("Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\\Program Files\\Git\\bin\\bash.exe"),process.exit(1)}),P=O((q)=>{if(q.startsWith("\\\\"))return q.replace(/\\/g,"/");let H=q.match(/^([A-Za-z]):[/\\]/);if(H)return"/"+H[1].toLowerCase()+q.slice(2).replace(/\\/g,"/");return q.replace(/\\/g,"/")},(q)=>q,500),C=O((q)=>{if(q.startsWith("//"))return q.replace(/\//g,"\\");let H=q.match(/^\/cygdrive\/([A-Za-z])(\/|$)/);if(H){let K=H[1].toUpperCase(),N=q.slice(("/cygdrive/"+H[1]).length);return K+":"+(N||"\\").replace(/\//g,"\\")}let J=q.match(/^\/([A-Za-z])(\/|$)/);if(J){let K=J[1].toUpperCase(),N=q.slice(2);return K+":"+(N||"\\").replace(/\//g,"\\")}return q.replace(/\//g,"\\")},(q)=>q,500)});import{homedir as M}from"os";import{dirname as W,isAbsolute as B,join as j,normalize as G,relative as D,resolve as b}from"path";function x(q,H){let J=H??V()??I().cwd();if(typeof q!=="string")throw TypeError(`Path must be a string, received ${typeof q}`);if(typeof J!=="string")throw TypeError(`Base directory must be a string, received ${typeof J}`);if(q.includes("\x00")||J.includes("\x00"))throw Error("Path contains null bytes");let K=q.trim();if(!K)return G(J).normalize("NFC");if(K==="~")return M().normalize("NFC");if(K.startsWith("~/"))return j(M(),K.slice(2)).normalize("NFC");let N=K;if(Y()==="windows"&&K.match(/^\/[a-z]\//i))try{N=C(K)}catch{N=K}if(B(N))return G(N).normalize("NFC");return b(J,N).normalize("NFC")}function Hq(q){let H=D(V(),q);return H.startsWith("..")?q:H}function Jq(q){let H=x(q);if(H.startsWith("\\\\")||H.startsWith("//"))return W(H);try{if(I().statSync(H).isDirectory())return H}catch{}return W(H)}function Kq(q){return/(?:^|[\\/])\.\.(?:[\\/]|$)/.test(q)}function Nq(q){return G(q).replace(/\\/g,"/")}var u=_(()=>{k();z();A();L();v()});
4
- export{d as E4,T as F4,P as G4,C as H4,L as I4,x as J4,Hq as K4,Jq as L4,Kq as M4,Nq as N4,u as O4};
4
+ export{d as G4,T as H4,P as I4,C as J4,L as K4,x as L4,Hq as M4,Jq as N4,Kq as O4,Nq as P4,u as Q4};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{Ag as u,zg as k}from"./cli-a1dqnvy2.js";import{E8 as z,F8 as H,L8 as y,t8 as $,u8 as W}from"./cli-8kpqq0ea.js";import{A_ as E,K9 as B,L9 as N,M9 as O,O9 as L,f_ as q,j_ as w,n_ as V,r_ as C,x_ as X}from"./cli-awb77t95.js";import{dda as A,g$ as Z}from"./cli-tafg3e9w.js";u();A();N();W();L();E();C();y();w();import P from"axios";import{dirname as F,join as x}from"path";var D=z(new Date);function T(){return x($.errors(),D+".jsonl")}function J(G){return x($.mcpLogs(G),D+".jsonl")}function S(G){let K=B(G);return{write(Q){K.write(q(Q)+`
2
+ import{Ag as u,zg as k}from"./cli-g85dpwpq.js";import{G8 as z,H8 as H,N8 as y,v8 as $,w8 as W}from"./cli-eehgc06t.js";import{C_ as E,M9 as B,N9 as N,O9 as O,Q9 as L,h_ as q,l_ as w,p_ as V,t_ as C,z_ as X}from"./cli-bqs5smsv.js";import{fda as A,i$ as Z}from"./cli-ktzb7cwm.js";u();A();N();W();L();E();C();y();w();import P from"axios";import{dirname as F,join as x}from"path";var D=z(new Date);function T(){return x($.errors(),D+".jsonl")}function J(G){return x($.mcpLogs(G),D+".jsonl")}function S(G){let K=B(G);return{write(Q){K.write(q(Q)+`
3
3
  `)},flush:K.flush,dispose:K.dispose}}var _=new Map;function R(G){let K=_.get(G);if(!K){let Q=F(G);K=S({writeFn:(U)=>{try{V().appendFileSync(G,U)}catch{V().mkdirSync(Q),V().appendFileSync(G,U)}},flushIntervalMs:1000,maxBufferSize:50}),_.set(G,K),O(async()=>K?.dispose())}return K}function f(G,K){if(process.env.USER_TYPE!=="ant")return;let Q={timestamp:new Date().toISOString(),...K,cwd:V().cwd(),userType:process.env.USER_TYPE,sessionId:Z(),version:MACRO.VERSION};R(G).write(Q)}function v(G){if(typeof G==="string")return G;if(G&&typeof G==="object"){let K=G;if(typeof K.message==="string")return K.message;if(typeof K.error==="object"&&K.error&&"message"in K.error&&typeof K.error.message==="string")return K.error.message}return}function I(G){let K=G.stack||G.message,Q="";if(P.isAxiosError(G)&&G.config?.url){let U=[`url=${G.config.url}`];if(G.response?.status!==void 0)U.push(`status=${G.response.status}`);let Y=v(G.response?.data);if(Y)U.push(`body=${Y}`);Q=`[${U.join(",")}] `}X(`${G.name}: ${Q}${K}`,{level:"error"}),f(T(),{error:`${Q}${K}`})}function j(G,K){X(`MCP server "${G}" ${K}`,{level:"error"});let Q=J(G),Y={error:K instanceof Error?K.stack||K.message:String(K),timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};R(Q).write(Y)}function b(G,K){X(`MCP server "${G}": ${K}`);let Q=J(G),U={debug:K,timestamp:new Date().toISOString(),sessionId:Z(),cwd:V().cwd()};R(Q).write(U)}function M(){H({logError:I,logMCPError:j,logMCPDebug:b,getErrorsPath:T,getMCPLogsPath:J}),X("Error log sink initialized")}function r(){M(),k()}
4
4
  export{r as F};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{hda as w,ida as z}from"./cli-qwx84m9c.js";function j(){if(!k)k=z("semver");return k}function B(f,h){if(typeof Bun<"u")return Bun.semver.order(f,h)===1;return j().gt(f,h,{loose:!0})}function C(f,h){if(typeof Bun<"u")return Bun.semver.order(f,h)>=0;return j().gte(f,h,{loose:!0})}function D(f,h){if(typeof Bun<"u")return Bun.semver.order(f,h)===-1;return j().lt(f,h,{loose:!0})}function E(f,h){if(typeof Bun<"u")return Bun.semver.satisfies(f,h);return j().satisfies(f,h,{loose:!0})}var k;var A=()=>{};
3
- export{B as nR,C as oR,D as pR,E as qR,A as rR};
2
+ import{jda as w,kda as z}from"./cli-2afdzhna.js";function j(){if(!k)k=z("semver");return k}function B(f,h){if(typeof Bun<"u")return Bun.semver.order(f,h)===1;return j().gt(f,h,{loose:!0})}function C(f,h){if(typeof Bun<"u")return Bun.semver.order(f,h)>=0;return j().gte(f,h,{loose:!0})}function D(f,h){if(typeof Bun<"u")return Bun.semver.order(f,h)===-1;return j().lt(f,h,{loose:!0})}function E(f,h){if(typeof Bun<"u")return Bun.semver.satisfies(f,h);return j().satisfies(f,h,{loose:!0})}var k;var A=()=>{};
3
+ export{B as pR,C as qR,D as rR,E as sR,A as tR};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{rb as z,sb as G}from"./cli-07f2hk9d.js";import{iA as w,jA as E}from"./cli-b3k8arn1.js";import{hda as D}from"./cli-qwx84m9c.js";import{useMemo as H}from"react";function U(q,v,k){return H(()=>{let B=w(k,v);return z(q,B,k.mode)},[q,v,k,!1,!1])}var J=D(()=>{E();G()});
2
+ import{rb as z,sb as G}from"./cli-v8wqc6y3.js";import{kA as w,lA as E}from"./cli-63389c5w.js";import{jda as D}from"./cli-2afdzhna.js";import{useMemo as H}from"react";function U(q,v,k){return H(()=>{let B=w(k,v);return z(q,B,k.mode)},[q,v,k,!1,!1])}var J=D(()=>{E();G()});
3
3
  export{U as pb,J as qb};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{E9 as F,v9 as P}from"./cli-zxe1a0ey.js";import{F9 as k,G9 as U,H9 as B}from"./cli-2sbq6ggm.js";import{n_ as Y,r_ as R}from"./cli-awb77t95.js";import{H_ as K,K_ as G,U_ as M}from"./cli-q8zmmp6z.js";import{hda as $,ida as D}from"./cli-qwx84m9c.js";function L(){return process.versions.bun!==void 0}function b(){return typeof Bun<"u"&&Array.isArray(Bun.embeddedFiles)&&Bun.embeddedFiles.length>0}var N=()=>{};function W(q,Q){return{cmd:U(q)??q,args:Q}}var _=$(()=>{B()});import V from"lodash-es/memoize.js";import{homedir as z}from"os";import{join as J}from"path";async function X(q){try{return!!await k(q)}catch{return!1}}function y(){return process.env.__CFBundleIdentifier==="com.conductor.app"}function x(){if(process.env.CURSOR_TRACE_ID)return"cursor";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("cursor"))return"cursor";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("windsurf"))return"windsurf";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("antigravity"))return"antigravity";let q=process.env.__CFBundleIdentifier?.toLowerCase();if(q?.includes("vscodium"))return"codium";if(q?.includes("windsurf"))return"windsurf";if(q?.includes("com.google.android.studio"))return"androidstudio";if(q){for(let Q of I)if(q.includes(Q))return Q}if(process.env.VisualStudioVersion)return"visualstudio";if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(process.platform==="darwin")return"pycharm";return"pycharm"}if(process.env.TERM==="xterm-ghostty")return"ghostty";if(process.env.TERM?.includes("kitty"))return"kitty";if(process.env.TERM_PROGRAM)return process.env.TERM_PROGRAM;if(process.env.TMUX)return"tmux";if(process.env.STY)return"screen";if(process.env.KONSOLE_VERSION)return"konsole";if(process.env.GNOME_TERMINAL_SERVICE)return"gnome-terminal";if(process.env.XTERM_VERSION)return"xterm";if(process.env.VTE_VERSION)return"vte-based";if(process.env.TERMINATOR_UUID)return"terminator";if(process.env.KITTY_WINDOW_ID)return"kitty";if(process.env.ALACRITTY_LOG)return"alacritty";if(process.env.TILIX_ID)return"tilix";if(process.env.WT_SESSION)return"windows-terminal";if(process.env.SESSIONNAME&&process.env.TERM==="cygwin")return"cygwin";if(process.env.MSYSTEM)return process.env.MSYSTEM.toLowerCase();if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return"conemu";if(process.env.WSL_DISTRO_NAME)return`wsl-${process.env.WSL_DISTRO_NAME}`;if(O())return"ssh-session";if(process.env.TERM){let Q=process.env.TERM;if(Q.includes("alacritty"))return"alacritty";if(Q.includes("rxvt"))return"rxvt";if(Q.includes("termite"))return"termite";return process.env.TERM}if(!process.stdout.isTTY)return"non-interactive";return null}function O(){return!!(process.env.SSH_CONNECTION||process.env.SSH_CLIENT||process.env.SSH_TTY)}function s(){let q=process.env.CLAUDE_CODE_HOST_PLATFORM;if(q==="win32"||q==="darwin"||q==="linux")return q;return Z.platform}var a,w,j,S,H,A,I,C,Z;var T=$(()=>{F();N();M();_();R();B();a=V(()=>{if(Y().existsSync(J(K(),".config.json")))return J(K(),".config.json");let q=`.claude${P()}.json`;return J(process.env.CLAUDE_CONFIG_DIR||z(),q)}),w=V(async()=>{try{let{default:q}=await import("axios");return await q.head("http://1.1.1.1",{signal:AbortSignal.timeout(1000)}),!0}catch{return!1}});j=V(async()=>{let q=[];if(await X("npm"))q.push("npm");if(await X("yarn"))q.push("yarn");if(await X("pnpm"))q.push("pnpm");return q}),S=V(async()=>{let q=[];if(await X("bun"))q.push("bun");if(await X("deno"))q.push("deno");if(await X("node"))q.push("node");return q}),H=V(()=>{try{return Y().existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")}catch(q){return!1}}),A=V(()=>{try{if(!H())return!1;let{cmd:q}=W("npm",[]);return q.startsWith("/mnt/c/")}catch(q){return!1}});I=["pycharm","intellij","webstorm","phpstorm","rubymine","clion","goland","rider","datagrip","appcode","dataspell","aqua","gateway","fleet","jetbrains","androidstudio"];C=V(()=>{if(G(process.env.CODESPACES))return"codespaces";if(process.env.GITPOD_WORKSPACE_ID)return"gitpod";if(process.env.REPL_ID||process.env.REPL_SLUG)return"replit";if(process.env.PROJECT_DOMAIN)return"glitch";if(G(process.env.VERCEL))return"vercel";if(process.env.RAILWAY_ENVIRONMENT_NAME||process.env.RAILWAY_SERVICE_NAME)return"railway";if(G(process.env.RENDER))return"render";if(G(process.env.NETLIFY))return"netlify";if(process.env.DYNO)return"heroku";if(process.env.FLY_APP_NAME||process.env.FLY_MACHINE_ID)return"fly.io";if(G(process.env.CF_PAGES))return"cloudflare-pages";if(process.env.DENO_DEPLOYMENT_ID)return"deno-deploy";if(process.env.AWS_LAMBDA_FUNCTION_NAME)return"aws-lambda";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_FARGATE")return"aws-fargate";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_EC2")return"aws-ecs";try{if(Y().readFileSync("/sys/hypervisor/uuid",{encoding:"utf8"}).trim().toLowerCase().startsWith("ec2"))return"aws-ec2"}catch{}if(process.env.K_SERVICE)return"gcp-cloud-run";if(process.env.GOOGLE_CLOUD_PROJECT)return"gcp";if(process.env.WEBSITE_SITE_NAME||process.env.WEBSITE_SKU)return"azure-app-service";if(process.env.AZURE_FUNCTIONS_ENVIRONMENT)return"azure-functions";if(process.env.APP_URL?.includes("ondigitalocean.app"))return"digitalocean-app-platform";if(process.env.SPACE_CREATOR_USER_ID)return"huggingface-spaces";if(G(process.env.GITHUB_ACTIONS))return"github-actions";if(G(process.env.GITLAB_CI))return"gitlab-ci";if(process.env.CIRCLECI)return"circleci";if(process.env.BUILDKITE)return"buildkite";if(G(process.env.CI))return"ci";if(process.env.KUBERNETES_SERVICE_HOST)return"kubernetes";try{if(Y().existsSync("/.dockerenv"))return"docker"}catch{}if(Z.platform==="darwin")return"unknown-darwin";if(Z.platform==="linux")return"unknown-linux";if(Z.platform==="win32")return"unknown-win32";return"unknown"});Z={hasInternetAccess:w,isCI:G(process.env.CI),platform:["win32","darwin"].includes(process.platform)?process.platform:"linux",arch:process.arch,nodeVersion:process.version,terminal:x(),isSSH:O,getPackageManagers:j,getRuntimes:S,isRunningWithBun:V(L),isWslEnvironment:H,isNpmFromWindowsPath:A,isConductor:y,detectDeploymentEnvironment:C}});
3
- export{L as l9,b as m9,N as n9,W as o9,_ as p9,a as q9,I as r9,Z as s9,s as t9,T as u9};
2
+ import{G9 as F,x9 as P}from"./cli-4r0qxxn2.js";import{H9 as k,I9 as U,J9 as B}from"./cli-16j5x50q.js";import{p_ as Y,t_ as R}from"./cli-bqs5smsv.js";import{J_ as K,M_ as G,W_ as M}from"./cli-hy0se8fa.js";import{jda as $,kda as D}from"./cli-2afdzhna.js";function L(){return process.versions.bun!==void 0}function b(){return typeof Bun<"u"&&Array.isArray(Bun.embeddedFiles)&&Bun.embeddedFiles.length>0}var N=()=>{};function W(q,Q){return{cmd:U(q)??q,args:Q}}var _=$(()=>{B()});import V from"lodash-es/memoize.js";import{homedir as z}from"os";import{join as J}from"path";async function X(q){try{return!!await k(q)}catch{return!1}}function y(){return process.env.__CFBundleIdentifier==="com.conductor.app"}function x(){if(process.env.CURSOR_TRACE_ID)return"cursor";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("cursor"))return"cursor";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("windsurf"))return"windsurf";if(process.env.VSCODE_GIT_ASKPASS_MAIN?.includes("antigravity"))return"antigravity";let q=process.env.__CFBundleIdentifier?.toLowerCase();if(q?.includes("vscodium"))return"codium";if(q?.includes("windsurf"))return"windsurf";if(q?.includes("com.google.android.studio"))return"androidstudio";if(q){for(let Q of I)if(q.includes(Q))return Q}if(process.env.VisualStudioVersion)return"visualstudio";if(process.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"){if(process.platform==="darwin")return"pycharm";return"pycharm"}if(process.env.TERM==="xterm-ghostty")return"ghostty";if(process.env.TERM?.includes("kitty"))return"kitty";if(process.env.TERM_PROGRAM)return process.env.TERM_PROGRAM;if(process.env.TMUX)return"tmux";if(process.env.STY)return"screen";if(process.env.KONSOLE_VERSION)return"konsole";if(process.env.GNOME_TERMINAL_SERVICE)return"gnome-terminal";if(process.env.XTERM_VERSION)return"xterm";if(process.env.VTE_VERSION)return"vte-based";if(process.env.TERMINATOR_UUID)return"terminator";if(process.env.KITTY_WINDOW_ID)return"kitty";if(process.env.ALACRITTY_LOG)return"alacritty";if(process.env.TILIX_ID)return"tilix";if(process.env.WT_SESSION)return"windows-terminal";if(process.env.SESSIONNAME&&process.env.TERM==="cygwin")return"cygwin";if(process.env.MSYSTEM)return process.env.MSYSTEM.toLowerCase();if(process.env.ConEmuANSI||process.env.ConEmuPID||process.env.ConEmuTask)return"conemu";if(process.env.WSL_DISTRO_NAME)return`wsl-${process.env.WSL_DISTRO_NAME}`;if(O())return"ssh-session";if(process.env.TERM){let Q=process.env.TERM;if(Q.includes("alacritty"))return"alacritty";if(Q.includes("rxvt"))return"rxvt";if(Q.includes("termite"))return"termite";return process.env.TERM}if(!process.stdout.isTTY)return"non-interactive";return null}function O(){return!!(process.env.SSH_CONNECTION||process.env.SSH_CLIENT||process.env.SSH_TTY)}function s(){let q=process.env.CLAUDE_CODE_HOST_PLATFORM;if(q==="win32"||q==="darwin"||q==="linux")return q;return Z.platform}var a,w,j,S,H,A,I,C,Z;var T=$(()=>{F();N();M();_();R();B();a=V(()=>{if(Y().existsSync(J(K(),".config.json")))return J(K(),".config.json");let q=`.claude${P()}.json`;return J(process.env.CLAUDE_CONFIG_DIR||z(),q)}),w=V(async()=>{try{let{default:q}=await import("axios");return await q.head("http://1.1.1.1",{signal:AbortSignal.timeout(1000)}),!0}catch{return!1}});j=V(async()=>{let q=[];if(await X("npm"))q.push("npm");if(await X("yarn"))q.push("yarn");if(await X("pnpm"))q.push("pnpm");return q}),S=V(async()=>{let q=[];if(await X("bun"))q.push("bun");if(await X("deno"))q.push("deno");if(await X("node"))q.push("node");return q}),H=V(()=>{try{return Y().existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")}catch(q){return!1}}),A=V(()=>{try{if(!H())return!1;let{cmd:q}=W("npm",[]);return q.startsWith("/mnt/c/")}catch(q){return!1}});I=["pycharm","intellij","webstorm","phpstorm","rubymine","clion","goland","rider","datagrip","appcode","dataspell","aqua","gateway","fleet","jetbrains","androidstudio"];C=V(()=>{if(G(process.env.CODESPACES))return"codespaces";if(process.env.GITPOD_WORKSPACE_ID)return"gitpod";if(process.env.REPL_ID||process.env.REPL_SLUG)return"replit";if(process.env.PROJECT_DOMAIN)return"glitch";if(G(process.env.VERCEL))return"vercel";if(process.env.RAILWAY_ENVIRONMENT_NAME||process.env.RAILWAY_SERVICE_NAME)return"railway";if(G(process.env.RENDER))return"render";if(G(process.env.NETLIFY))return"netlify";if(process.env.DYNO)return"heroku";if(process.env.FLY_APP_NAME||process.env.FLY_MACHINE_ID)return"fly.io";if(G(process.env.CF_PAGES))return"cloudflare-pages";if(process.env.DENO_DEPLOYMENT_ID)return"deno-deploy";if(process.env.AWS_LAMBDA_FUNCTION_NAME)return"aws-lambda";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_FARGATE")return"aws-fargate";if(process.env.AWS_EXECUTION_ENV==="AWS_ECS_EC2")return"aws-ecs";try{if(Y().readFileSync("/sys/hypervisor/uuid",{encoding:"utf8"}).trim().toLowerCase().startsWith("ec2"))return"aws-ec2"}catch{}if(process.env.K_SERVICE)return"gcp-cloud-run";if(process.env.GOOGLE_CLOUD_PROJECT)return"gcp";if(process.env.WEBSITE_SITE_NAME||process.env.WEBSITE_SKU)return"azure-app-service";if(process.env.AZURE_FUNCTIONS_ENVIRONMENT)return"azure-functions";if(process.env.APP_URL?.includes("ondigitalocean.app"))return"digitalocean-app-platform";if(process.env.SPACE_CREATOR_USER_ID)return"huggingface-spaces";if(G(process.env.GITHUB_ACTIONS))return"github-actions";if(G(process.env.GITLAB_CI))return"gitlab-ci";if(process.env.CIRCLECI)return"circleci";if(process.env.BUILDKITE)return"buildkite";if(G(process.env.CI))return"ci";if(process.env.KUBERNETES_SERVICE_HOST)return"kubernetes";try{if(Y().existsSync("/.dockerenv"))return"docker"}catch{}if(Z.platform==="darwin")return"unknown-darwin";if(Z.platform==="linux")return"unknown-linux";if(Z.platform==="win32")return"unknown-win32";return"unknown"});Z={hasInternetAccess:w,isCI:G(process.env.CI),platform:["win32","darwin"].includes(process.platform)?process.platform:"linux",arch:process.arch,nodeVersion:process.version,terminal:x(),isSSH:O,getPackageManagers:j,getRuntimes:S,isRunningWithBun:V(L),isWslEnvironment:H,isNpmFromWindowsPath:A,isConductor:y,detectDeploymentEnvironment:C}});
3
+ export{L as n9,b as o9,N as p9,W as q9,_ as r9,a as s9,I as t9,Z as u9,s as v9,T as w9};
@@ -1,7 +1,7 @@
1
1
  // @bun
2
- import{D_ as a,G_ as FJ}from"./cli-rc3w6tqd.js";import{H_ as i,K_ as F,U_ as RJ}from"./cli-q8zmmp6z.js";import{dda as o,g$ as n}from"./cli-tafg3e9w.js";import{hda as B,jda as V,kda as H}from"./cli-qwx84m9c.js";function y({writeFn:J,flushIntervalMs:K=1000,maxBufferSize:Q=100,maxBufferBytes:X=1/0,immediateMode:Z=!1}){let Y=[],$=0,G=null,U=null;function j(){if(G)clearTimeout(G),G=null}function I(){if(U)J(U.join("")),U=null;if(Y.length===0)return;J(Y.join("")),Y=[],$=0,j()}function N(){if(!G)G=setTimeout(I,K)}function C(){if(U){U.push(...Y),Y=[],$=0,j();return}let W=Y;Y=[],$=0,j(),U=W,setImmediate(()=>{let w=U;if(U=null,w)J(w.join(""))})}return{write(W){if(Z){J(W);return}if(Y.push(W),$+=W.length,N(),Y.length>=Q||$>=X)C()},flush:I,dispose(){I()}}}var v=()=>{};function b(J){return D.add(J),()=>D.delete(J)}async function nJ(){await Promise.all(Array.from(D).map((J)=>J()))}var D;var P=B(()=>{D=new Set});import{APIUserAbortError as qJ}from"@anthropic-ai/sdk";function rJ(J){return J instanceof c||J instanceof qJ||J instanceof Error&&J.name==="AbortError"}function aJ(J,K){return J instanceof Error&&J.message===K}function sJ(J){return J instanceof Error?J:Error(String(J))}function jJ(J){return J instanceof Error?J.message:String(J)}function z(J){if(J&&typeof J==="object"&&"code"in J&&typeof J.code==="string")return J.code;return}function tJ(J){return z(J)==="ENOENT"}function eJ(J){if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")return J.path;return}function JK(J){let K=z(J);return K==="ENOENT"||K==="EACCES"||K==="EPERM"||K==="ENOTDIR"||K==="ELOOP"}function KK(J){let K=jJ(J);if(!J||typeof J!=="object"||!("isAxiosError"in J)||!J.isAxiosError)return{kind:"other",message:K};let Q=J,X=Q.response?.status;if(X===401||X===403)return{kind:"auth",status:X,message:K};if(Q.code==="ECONNABORTED")return{kind:"timeout",status:X,message:K};if(Q.code==="ECONNREFUSED"||Q.code==="ENOTFOUND")return{kind:"network",status:X,message:K};return{kind:"http",status:X,message:K}}var GJ,UJ,c,VJ,HJ,_J,NJ;var m=B(()=>{GJ=class GJ extends Error{constructor(J){super(J);this.name=this.constructor.name}};UJ=class UJ extends Error{};c=class c extends Error{constructor(J){super(J);this.name="AbortError"}};VJ=class VJ extends Error{filePath;defaultConfig;constructor(J,K,Q){super(J);this.name="ConfigParseError",this.filePath=K,this.defaultConfig=Q}};HJ=class HJ extends Error{stdout;stderr;code;interrupted;constructor(J,K,Q,X){super("Shell command failed");this.stdout=J;this.stderr=K;this.code=Q;this.interrupted=X;this.name="ShellError"}};_J=class _J extends Error{formattedMessage;constructor(J,K){super(J);this.formattedMessage=K;this.name="TeleportOperationError"}};NJ=class NJ extends Error{telemetryMessage;constructor(J,K){super(J);this.name="TelemetrySafeError",this.telemetryMessage=K??J}}});import IJ from"lodash-es/memoize.js";function AJ(J){let K=[],Q=J.match(/^MCP server ["']([^"']+)["']/);if(Q&&Q[1])K.push("mcp"),K.push(Q[1].toLowerCase());else{let Y=J.match(/^([^:[]+):/);if(Y&&Y[1])K.push(Y[1].trim().toLowerCase())}let X=J.match(/^\[([^\]]+)]/);if(X&&X[1])K.push(X[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))K.push("1p");let Z=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Z&&Z[1]){let Y=Z[1].trim().toLowerCase();if(Y.length<30&&!Y.includes(" "))K.push(Y)}return Array.from(new Set(K))}function WJ(J,K){if(!K)return!0;if(J.length===0)return!1;if(K.isExclusive)return!J.some((Q)=>K.exclude.includes(Q));else return J.some((Q)=>K.include.includes(Q))}function p(J,K){if(!K)return!0;let Q=AJ(J);return WJ(Q,K)}var u;var h=B(()=>{u=IJ((J)=>{if(!J||J.trim()==="")return null;let K=J.split(",").map((Y)=>Y.trim()).filter(Boolean);if(K.length===0)return null;let Q=K.some((Y)=>Y.startsWith("!")),X=K.some((Y)=>!Y.startsWith("!"));if(Q&&X)return null;let Z=K.map((Y)=>Y.replace(/^!/,"").toLowerCase());return{include:Q?[]:Z,exclude:Q?Z:[],isExclusive:Q}})});import*as q from"fs";import{mkdir as CJ,open as M,readdir as BJ,readFile as d,rename as zJ,rmdir as TJ,rm as kJ,stat as MJ,unlink as OJ}from"fs/promises";import{homedir as f}from"os";import*as A from"path";function l(J,K){if(K.startsWith("//")||K.startsWith("\\\\"))return{resolvedPath:K,isSymlink:!1,isCanonical:!1};try{let Q=J.lstatSync(K);if(Q.isFIFO()||Q.isSocket()||Q.isCharacterDevice()||Q.isBlockDevice())return{resolvedPath:K,isSymlink:!1,isCanonical:!1};let X=J.realpathSync(K);return{resolvedPath:X,isSymlink:X!==K,isCanonical:!0}}catch(Q){return{resolvedPath:K,isSymlink:!1,isCanonical:!1}}}function UK(J,K,Q){let{resolvedPath:X}=l(J,K);if(Q.has(X))return!0;return Q.add(X),!1}function xJ(J,K){let Q=K,X=[];while(Q!==A.dirname(Q)){let Z;try{Z=J.lstatSync(Q)}catch{X.unshift(A.basename(Q)),Q=A.dirname(Q);continue}if(Z.isSymbolicLink())try{let Y=J.realpathSync(Q);return X.length===0?Y:A.join(Y,...X)}catch{let Y=J.readlinkSync(Q),$=A.isAbsolute(Y)?Y:A.resolve(A.dirname(Q),Y);return X.length===0?$:A.join($,...X)}try{let Y=J.realpathSync(Q);if(Y!==Q)return X.length===0?Y:A.join(Y,...X)}catch{}return}return}function VK(J){let K=J;if(K==="~")K=f().normalize("NFC");else if(K.startsWith("~/"))K=A.join(f().normalize("NFC"),K.slice(2));let Q=new Set,X=O();if(Q.add(K),K.startsWith("//")||K.startsWith("\\\\"))return Array.from(Q);try{let $=K,G=new Set,U=40;for(let j=0;j<U;j++){if(G.has($))break;if(G.add($),!X.existsSync($)){if($===K){let W=xJ(X,K);if(W!==void 0)Q.add(W)}break}let I=X.lstatSync($);if(I.isFIFO()||I.isSocket()||I.isCharacterDevice()||I.isBlockDevice())break;if(!I.isSymbolicLink())break;let N=X.readlinkSync($),C=A.isAbsolute(N)?N:A.resolve(A.dirname($),N);Q.add(C),$=C}}catch{}let{resolvedPath:Z,isSymlink:Y}=l(X,K);if(Y&&Z!==K)Q.add(Z);return Array.from(Q)}function O(){return EJ}async function HK(J,K,Q){let U=[];try{const X=V(U,await M(J,"r"),1);let Z=(await X.stat()).size;if(Z<=K)return null;let Y=Math.min(Z-K,Q);let $=Buffer.allocUnsafe(Y);let G=0;while(G<Y){let{bytesRead:W}=await X.read($,G,Y-G,K+G);if(W===0)break;G+=W}return{content:$.toString("utf8",0,G),bytesRead:G,bytesTotal:Z}}catch(j){var I=j,N=1}finally{var C=H(U,I,N);C&&await C}}async function _K(J,K){let U=[];try{const Q=V(U,await M(J,"r"),1);let X=(await Q.stat()).size;if(X===0)return{content:"",bytesRead:0,bytesTotal:0};let Z=Math.max(0,X-K);let Y=X-Z;let $=Buffer.allocUnsafe(Y);let G=0;while(G<Y){let{bytesRead:W}=await Q.read($,G,Y-G,Z+G);if(W===0)break;G+=W}return{content:$.toString("utf8",0,G),bytesRead:G,bytesTotal:X}}catch(j){var I=j,N=1}finally{var C=H(U,I,N);C&&await C}}async function*NK(J){let Q=await M(J,"r");try{let Z=(await Q.stat()).size,Y=Buffer.alloc(0),$=Buffer.alloc(4096);while(Z>0){let G=Math.min(4096,Z);Z-=G,await Q.read($,0,G,Z);let U=Buffer.concat([$.subarray(0,G),Y]),j=U.indexOf(10);if(j===-1){Y=U;continue}Y=Buffer.from(U.subarray(0,j));let I=U.toString("utf8",j+1).split(`
2
+ import{F_ as a,I_ as FJ}from"./cli-26y0jfks.js";import{J_ as i,M_ as F,W_ as RJ}from"./cli-hy0se8fa.js";import{fda as o,i$ as n}from"./cli-ktzb7cwm.js";import{jda as B,lda as V,mda as H}from"./cli-2afdzhna.js";function y({writeFn:J,flushIntervalMs:K=1000,maxBufferSize:Q=100,maxBufferBytes:X=1/0,immediateMode:Z=!1}){let Y=[],$=0,G=null,U=null;function j(){if(G)clearTimeout(G),G=null}function I(){if(U)J(U.join("")),U=null;if(Y.length===0)return;J(Y.join("")),Y=[],$=0,j()}function N(){if(!G)G=setTimeout(I,K)}function C(){if(U){U.push(...Y),Y=[],$=0,j();return}let W=Y;Y=[],$=0,j(),U=W,setImmediate(()=>{let w=U;if(U=null,w)J(w.join(""))})}return{write(W){if(Z){J(W);return}if(Y.push(W),$+=W.length,N(),Y.length>=Q||$>=X)C()},flush:I,dispose(){I()}}}var v=()=>{};function b(J){return D.add(J),()=>D.delete(J)}async function nJ(){await Promise.all(Array.from(D).map((J)=>J()))}var D;var P=B(()=>{D=new Set});import{APIUserAbortError as qJ}from"@anthropic-ai/sdk";function rJ(J){return J instanceof c||J instanceof qJ||J instanceof Error&&J.name==="AbortError"}function aJ(J,K){return J instanceof Error&&J.message===K}function sJ(J){return J instanceof Error?J:Error(String(J))}function jJ(J){return J instanceof Error?J.message:String(J)}function z(J){if(J&&typeof J==="object"&&"code"in J&&typeof J.code==="string")return J.code;return}function tJ(J){return z(J)==="ENOENT"}function eJ(J){if(J&&typeof J==="object"&&"path"in J&&typeof J.path==="string")return J.path;return}function JK(J){let K=z(J);return K==="ENOENT"||K==="EACCES"||K==="EPERM"||K==="ENOTDIR"||K==="ELOOP"}function KK(J){let K=jJ(J);if(!J||typeof J!=="object"||!("isAxiosError"in J)||!J.isAxiosError)return{kind:"other",message:K};let Q=J,X=Q.response?.status;if(X===401||X===403)return{kind:"auth",status:X,message:K};if(Q.code==="ECONNABORTED")return{kind:"timeout",status:X,message:K};if(Q.code==="ECONNREFUSED"||Q.code==="ENOTFOUND")return{kind:"network",status:X,message:K};return{kind:"http",status:X,message:K}}var GJ,UJ,c,VJ,HJ,_J,NJ;var m=B(()=>{GJ=class GJ extends Error{constructor(J){super(J);this.name=this.constructor.name}};UJ=class UJ extends Error{};c=class c extends Error{constructor(J){super(J);this.name="AbortError"}};VJ=class VJ extends Error{filePath;defaultConfig;constructor(J,K,Q){super(J);this.name="ConfigParseError",this.filePath=K,this.defaultConfig=Q}};HJ=class HJ extends Error{stdout;stderr;code;interrupted;constructor(J,K,Q,X){super("Shell command failed");this.stdout=J;this.stderr=K;this.code=Q;this.interrupted=X;this.name="ShellError"}};_J=class _J extends Error{formattedMessage;constructor(J,K){super(J);this.formattedMessage=K;this.name="TeleportOperationError"}};NJ=class NJ extends Error{telemetryMessage;constructor(J,K){super(J);this.name="TelemetrySafeError",this.telemetryMessage=K??J}}});import IJ from"lodash-es/memoize.js";function AJ(J){let K=[],Q=J.match(/^MCP server ["']([^"']+)["']/);if(Q&&Q[1])K.push("mcp"),K.push(Q[1].toLowerCase());else{let Y=J.match(/^([^:[]+):/);if(Y&&Y[1])K.push(Y[1].trim().toLowerCase())}let X=J.match(/^\[([^\]]+)]/);if(X&&X[1])K.push(X[1].trim().toLowerCase());if(J.toLowerCase().includes("1p event:"))K.push("1p");let Z=J.match(/:\s*([^:]+?)(?:\s+(?:type|mode|status|event))?:/);if(Z&&Z[1]){let Y=Z[1].trim().toLowerCase();if(Y.length<30&&!Y.includes(" "))K.push(Y)}return Array.from(new Set(K))}function WJ(J,K){if(!K)return!0;if(J.length===0)return!1;if(K.isExclusive)return!J.some((Q)=>K.exclude.includes(Q));else return J.some((Q)=>K.include.includes(Q))}function p(J,K){if(!K)return!0;let Q=AJ(J);return WJ(Q,K)}var u;var h=B(()=>{u=IJ((J)=>{if(!J||J.trim()==="")return null;let K=J.split(",").map((Y)=>Y.trim()).filter(Boolean);if(K.length===0)return null;let Q=K.some((Y)=>Y.startsWith("!")),X=K.some((Y)=>!Y.startsWith("!"));if(Q&&X)return null;let Z=K.map((Y)=>Y.replace(/^!/,"").toLowerCase());return{include:Q?[]:Z,exclude:Q?Z:[],isExclusive:Q}})});import*as q from"fs";import{mkdir as CJ,open as M,readdir as BJ,readFile as d,rename as zJ,rmdir as TJ,rm as kJ,stat as MJ,unlink as OJ}from"fs/promises";import{homedir as f}from"os";import*as A from"path";function l(J,K){if(K.startsWith("//")||K.startsWith("\\\\"))return{resolvedPath:K,isSymlink:!1,isCanonical:!1};try{let Q=J.lstatSync(K);if(Q.isFIFO()||Q.isSocket()||Q.isCharacterDevice()||Q.isBlockDevice())return{resolvedPath:K,isSymlink:!1,isCanonical:!1};let X=J.realpathSync(K);return{resolvedPath:X,isSymlink:X!==K,isCanonical:!0}}catch(Q){return{resolvedPath:K,isSymlink:!1,isCanonical:!1}}}function UK(J,K,Q){let{resolvedPath:X}=l(J,K);if(Q.has(X))return!0;return Q.add(X),!1}function xJ(J,K){let Q=K,X=[];while(Q!==A.dirname(Q)){let Z;try{Z=J.lstatSync(Q)}catch{X.unshift(A.basename(Q)),Q=A.dirname(Q);continue}if(Z.isSymbolicLink())try{let Y=J.realpathSync(Q);return X.length===0?Y:A.join(Y,...X)}catch{let Y=J.readlinkSync(Q),$=A.isAbsolute(Y)?Y:A.resolve(A.dirname(Q),Y);return X.length===0?$:A.join($,...X)}try{let Y=J.realpathSync(Q);if(Y!==Q)return X.length===0?Y:A.join(Y,...X)}catch{}return}return}function VK(J){let K=J;if(K==="~")K=f().normalize("NFC");else if(K.startsWith("~/"))K=A.join(f().normalize("NFC"),K.slice(2));let Q=new Set,X=O();if(Q.add(K),K.startsWith("//")||K.startsWith("\\\\"))return Array.from(Q);try{let $=K,G=new Set,U=40;for(let j=0;j<U;j++){if(G.has($))break;if(G.add($),!X.existsSync($)){if($===K){let W=xJ(X,K);if(W!==void 0)Q.add(W)}break}let I=X.lstatSync($);if(I.isFIFO()||I.isSocket()||I.isCharacterDevice()||I.isBlockDevice())break;if(!I.isSymbolicLink())break;let N=X.readlinkSync($),C=A.isAbsolute(N)?N:A.resolve(A.dirname($),N);Q.add(C),$=C}}catch{}let{resolvedPath:Z,isSymlink:Y}=l(X,K);if(Y&&Z!==K)Q.add(Z);return Array.from(Q)}function O(){return EJ}async function HK(J,K,Q){let U=[];try{const X=V(U,await M(J,"r"),1);let Z=(await X.stat()).size;if(Z<=K)return null;let Y=Math.min(Z-K,Q);let $=Buffer.allocUnsafe(Y);let G=0;while(G<Y){let{bytesRead:W}=await X.read($,G,Y-G,K+G);if(W===0)break;G+=W}return{content:$.toString("utf8",0,G),bytesRead:G,bytesTotal:Z}}catch(j){var I=j,N=1}finally{var C=H(U,I,N);C&&await C}}async function _K(J,K){let U=[];try{const Q=V(U,await M(J,"r"),1);let X=(await Q.stat()).size;if(X===0)return{content:"",bytesRead:0,bytesTotal:0};let Z=Math.max(0,X-K);let Y=X-Z;let $=Buffer.allocUnsafe(Y);let G=0;while(G<Y){let{bytesRead:W}=await Q.read($,G,Y-G,Z+G);if(W===0)break;G+=W}return{content:$.toString("utf8",0,G),bytesRead:G,bytesTotal:X}}catch(j){var I=j,N=1}finally{var C=H(U,I,N);C&&await C}}async function*NK(J){let Q=await M(J,"r");try{let Z=(await Q.stat()).size,Y=Buffer.alloc(0),$=Buffer.alloc(4096);while(Z>0){let G=Math.min(4096,Z);Z-=G,await Q.read($,0,G,Z);let U=Buffer.concat([$.subarray(0,G),Y]),j=U.indexOf(10);if(j===-1){Y=U;continue}Y=Buffer.from(U.subarray(0,j));let I=U.toString("utf8",j+1).split(`
3
3
  `);for(let N=I.length-1;N>=0;N--){let C=I[N];if(C)yield C}}if(Y.length>0)yield Y.toString("utf8")}finally{await Q.close()}}var DJ,EJ;var g=B(()=>{m();E();DJ={cwd(){return process.cwd()},existsSync(J){let Q=[];try{const K=V(Q,_`fs.existsSync(${J})`,0);return q.existsSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},async stat(J){return MJ(J)},async readdir(J){return BJ(J,{withFileTypes:!0})},async unlink(J){return OJ(J)},async rmdir(J){return TJ(J)},async rm(J,K){return kJ(J,K)},async mkdir(J,K){try{await CJ(J,{recursive:!0,...K})}catch(Q){if(z(Q)!=="EEXIST")throw Q}},async readFile(J,K){return d(J,{encoding:K.encoding})},async rename(J,K){return zJ(J,K)},statSync(J){let Q=[];try{const K=V(Q,_`fs.statSync(${J})`,0);return q.statSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},lstatSync(J){let Q=[];try{const K=V(Q,_`fs.lstatSync(${J})`,0);return q.lstatSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},readFileSync(J,K){let X=[];try{const Q=V(X,_`fs.readFileSync(${J})`,0);return q.readFileSync(J,{encoding:K.encoding})}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}},readFileBytesSync(J){let Q=[];try{const K=V(Q,_`fs.readFileBytesSync(${J})`,0);return q.readFileSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},readSync(J,K){let Z=[];try{const Q=V(Z,_`fs.readSync(${J}, ${K.length} bytes)`,0);let X=void 0;try{X=q.openSync(J,"r");let U=Buffer.alloc(K.length),j=q.readSync(X,U,0,K.length,0);return{buffer:U,bytesRead:j}}finally{if(X)q.closeSync(X)}}catch(Y){var $=Y,G=1}finally{H(Z,$,G)}},appendFileSync(J,K,Q){let Z=[];try{const X=V(Z,_`fs.appendFileSync(${J}, ${K.length} chars)`,0);if(Q?.mode!==void 0)try{let U=q.openSync(J,"ax",Q.mode);try{q.appendFileSync(U,K)}finally{q.closeSync(U)}return}catch(U){if(z(U)!=="EEXIST")throw U}q.appendFileSync(J,K)}catch(Y){var $=Y,G=1}finally{H(Z,$,G)}},copyFileSync(J,K){let X=[];try{const Q=V(X,_`fs.copyFileSync(${J} \u2192 ${K})`,0);q.copyFileSync(J,K)}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}},unlinkSync(J){let Q=[];try{const K=V(Q,_`fs.unlinkSync(${J})`,0);q.unlinkSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},renameSync(J,K){let X=[];try{const Q=V(X,_`fs.renameSync(${J} \u2192 ${K})`,0);q.renameSync(J,K)}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}},linkSync(J,K){let X=[];try{const Q=V(X,_`fs.linkSync(${J} \u2192 ${K})`,0);q.linkSync(J,K)}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}},symlinkSync(J,K,Q){let Z=[];try{const X=V(Z,_`fs.symlinkSync(${J} \u2192 ${K})`,0);q.symlinkSync(J,K,Q)}catch(Y){var $=Y,G=1}finally{H(Z,$,G)}},readlinkSync(J){let Q=[];try{const K=V(Q,_`fs.readlinkSync(${J})`,0);return q.readlinkSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},realpathSync(J){let Q=[];try{const K=V(Q,_`fs.realpathSync(${J})`,0);return q.realpathSync(J).normalize("NFC")}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},mkdirSync(J,K){let Z=[];try{const Q=V(Z,_`fs.mkdirSync(${J})`,0);let X={recursive:!0};if(K?.mode!==void 0)X.mode=K.mode;try{q.mkdirSync(J,X)}catch(U){if(z(U)!=="EEXIST")throw U}}catch(Y){var $=Y,G=1}finally{H(Z,$,G)}},readdirSync(J){let Q=[];try{const K=V(Q,_`fs.readdirSync(${J})`,0);return q.readdirSync(J,{withFileTypes:!0})}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},readdirStringSync(J){let Q=[];try{const K=V(Q,_`fs.readdirStringSync(${J})`,0);return q.readdirSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},isDirEmptySync(J){let X=[];try{const K=V(X,_`fs.isDirEmptySync(${J})`,0);let Q=this.readdirSync(J);return Q.length===0}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}},rmdirSync(J){let Q=[];try{const K=V(Q,_`fs.rmdirSync(${J})`,0);q.rmdirSync(J)}catch(X){var Z=X,Y=1}finally{H(Q,Z,Y)}},rmSync(J,K){let X=[];try{const Q=V(X,_`fs.rmSync(${J})`,0);q.rmSync(J,K)}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}},createWriteStream(J){return q.createWriteStream(J)},async readFileBytes(J,K){if(K===void 0)return d(J);let Q=await M(J,"r");try{let{size:X}=await Q.stat(),Z=Math.min(X,K),Y=Buffer.allocUnsafe(Z),$=0;while($<Z){let{bytesRead:G}=await Q.read(Y,$,Z-$,$);if(G===0)break;$+=G}return $<Z?Y.subarray(0,$):Y}finally{await Q.close()}}},EJ=DJ});import{appendFile as SJ,mkdir as LJ,symlink as wJ,unlink as yJ}from"fs/promises";import T from"lodash-es/memoize.js";import{dirname as s,join as t}from"path";function EK(){let J=k()||process.env.USER_TYPE==="ant";return e=!0,k.cache.clear?.(),J}function PJ(J){if(process.env.USER_TYPE!=="ant"&&!k())return!1;if(typeof process>"u"||typeof process.versions>"u"||typeof process.versions.node>"u")return!1;let K=bJ();return p(J,K)}function RK(J){L=J}function FK(){return L}async function cJ(J,K,Q,X){if(J)await LJ(K,{recursive:!0}).catch(()=>{});await SJ(Q,X),YJ()}function mJ(){}function uJ(){if(!x){let J=null;x=y({writeFn:(K)=>{let Q=XJ(),X=s(Q),Z=J!==X;if(J=X,k()){if(Z)try{O().mkdirSync(X)}catch{}O().appendFileSync(Q,K),YJ();return}R=R.then(cJ.bind(null,Z,X,Q,K)).catch(mJ)},flushIntervalMs:1000,maxBufferSize:100,immediateMode:k()}),b(async()=>{x?.dispose(),await R})}return x}function QJ(J,{level:K}={level:"debug"}){if(S[K]<S[vJ()])return;if(!PJ(J))return;if(L&&J.includes(`
4
4
  `))J=r(J);let X=`${new Date().toISOString()} [${K.toUpperCase()}] ${J.trim()}
5
5
  `;if(JJ()){a(X);return}uJ().write(X)}function XJ(){return KJ()??process.env.CLAUDE_CODE_DEBUG_LOGS_DIR??t(i(),"debug",`${n()}.txt`)}function SK(J,K){if(process.env.USER_TYPE!=="ant")return;if(K instanceof Error&&K.stack)QJ(`[ANT-ONLY] ${J} stack trace:
6
6
  ${K.stack}`,{level:"error"})}var S,vJ,e=!1,k,bJ,JJ,KJ,L=!1,x=null,R,YJ;var ZJ=B(()=>{o();v();P();h();RJ();g();FJ();E();S={verbose:0,debug:1,info:2,warn:3,error:4},vJ=T(()=>{let J=process.env.CLAUDE_CODE_DEBUG_LOG_LEVEL?.toLowerCase().trim();if(J&&Object.hasOwn(S,J))return J;return"debug"}),k=T(()=>{return e||F(process.env.DEBUG)||F(process.env.DEBUG_SDK)||process.argv.includes("--debug")||process.argv.includes("-d")||JJ()||process.argv.some((J)=>J.startsWith("--debug="))||KJ()!==null});bJ=T(()=>{let J=process.argv.find((Q)=>Q.startsWith("--debug="));if(!J)return null;let K=J.substring(8);return u(K)}),JJ=T(()=>{return process.argv.includes("--debug-to-stderr")||process.argv.includes("-d2e")}),KJ=T(()=>{for(let J=0;J<process.argv.length;J++){let K=process.argv[J];if(K.startsWith("--debug-file="))return K.substring(13);if(K==="--debug-file"&&J+1<process.argv.length)return process.argv[J+1]}return null});R=Promise.resolve();YJ=T(async()=>{try{let J=XJ(),K=s(J),Q=t(K,"latest");await yJ(Q).catch(()=>{}),await wJ(J,Q)}catch{}})});import{closeSync as pJ,writeFileSync as $J,fsyncSync as hJ,openSync as dJ}from"fs";import PK from"lodash-es/cloneDeep.js";function lJ(){return fJ}function r(J,K,Q){let Z=[];try{const X=V(Z,_`JSON.stringify(${J})`,0);return JSON.stringify(J,K,Q)}catch(Y){var $=Y,G=1}finally{H(Z,$,G)}}function hK(J,K){let X=[];try{const Q=V(X,_`structuredClone(${J})`,0);return structuredClone(J,K)}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}}function dK(J,K,Q){let Y=[];try{const X=V(Y,_`fs.writeFileSync(${J}, ${K})`,0);let Z=Q!==null&&typeof Q==="object"&&"flush"in Q&&Q.flush===!0;if(Z){let j=typeof Q==="object"&&"encoding"in Q?Q.encoding:void 0,I=typeof Q==="object"&&"mode"in Q?Q.mode:void 0,N;try{N=dJ(J,"w",I),$J(N,K,{encoding:j??void 0}),hJ(N)}finally{if(N!==void 0)pJ(N)}}else $J(J,K,Q)}catch($){var G=$,U=1}finally{H(Y,G,U)}}var uK,fJ,_,pK=(J,K)=>{let X=[];try{const Q=V(X,_`JSON.parse(${J})`,0);return typeof K>"u"?JSON.parse(J):JSON.parse(J,K)}catch(Z){var Y=Z,$=1}finally{H(X,Y,$)}};var E=B(()=>{o();ZJ();uK=(()=>{let J=process.env.CLAUDE_CODE_SLOW_OPERATION_THRESHOLD_MS;if(J!==void 0){let K=Number(J);if(!Number.isNaN(K)&&K>=0)return K}return 20})(),fJ={[Symbol.dispose](){}};_=lJ});
7
- export{y as K9,v as L9,b as M9,nJ as N9,P as O9,GJ as P9,UJ as Q9,c as R9,rJ as S9,VJ as T9,HJ as U9,_J as V9,NJ as W9,aJ as X9,sJ as Y9,jJ as Z9,z as _9,tJ as $9,eJ as a_,JK as b_,KK as c_,m as d_,_ as e_,r as f_,pK as g_,hK as h_,dK as i_,E as j_,l as k_,UK as l_,VK as m_,O as n_,HK as o_,_K as p_,NK as q_,g as r_,k as s_,EK as t_,JJ as u_,RK as v_,FK as w_,QJ as x_,XJ as y_,SK as z_,ZJ as A_};
7
+ export{y as M9,v as N9,b as O9,nJ as P9,P as Q9,GJ as R9,UJ as S9,c as T9,rJ as U9,VJ as V9,HJ as W9,_J as X9,NJ as Y9,aJ as Z9,sJ as _9,jJ as $9,z as a_,tJ as b_,eJ as c_,JK as d_,KK as e_,m as f_,_ as g_,r as h_,pK as i_,hK as j_,dK as k_,E as l_,l as m_,UK as n_,VK as o_,O as p_,HK as q_,_K as r_,NK as s_,g as t_,k as u_,EK as v_,JJ as w_,RK as x_,FK as y_,QJ as z_,XJ as A_,SK as B_,ZJ as C_};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{$f as U,ag as B}from"./cli-9tbmrp89.js";import{F1 as $,b1 as Q,g1 as R,vX as K,wX as Z}from"./cli-192xnkcx.js";import{B5 as N,C5 as _}from"./cli-an97yxg9.js";import{G8 as J,L8 as Y}from"./cli-8kpqq0ea.js";import{hda as X}from"./cli-qwx84m9c.js";import{jsxDEV as F}from"react/jsx-dev-runtime";async function C(y,W){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 K(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 N("https://claude.ai/upgrade/max"),F(U,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{W.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}},void 0,!1,void 0,this)}catch(G){J(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var L=X(()=>{Z();$();_();Y();B()});
2
+ import{$f as U,ag as B}from"./cli-zjznn7cc.js";import{AX as K,BX as Z,K1 as $,g1 as Q,l1 as R}from"./cli-9sjvqgf1.js";import{D5 as N,E5 as _}from"./cli-3q4bcd9y.js";import{I8 as J,N8 as Y}from"./cli-eehgc06t.js";import{jda as X}from"./cli-2afdzhna.js";import{jsxDEV as F}from"react/jsx-dev-runtime";async function C(y,W){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 K(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 N("https://claude.ai/upgrade/max"),F(U,{startingMessage:"Starting new login following /upgrade. Exit with Ctrl-C to use existing account.",onDone:(q)=>{W.onChangeAPIKey(),y(q?"Login successful":"Login interrupted")}},void 0,!1,void 0,this)}catch(G){J(G),setTimeout(y,0,"Failed to open browser. Please visit https://claude.ai/upgrade/max to upgrade.")}return null}var L=X(()=>{Z();$();_();Y();B()});
3
3
  export{C as Wa,L as Xa};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{hda as q}from"./cli-qwx84m9c.js";function B(k){let j=k.replace(/[^a-zA-Z0-9_-]/g,"_");if(k.startsWith("claude.ai "))j=j.replace(/_+/g,"_").replace(/^_|_$/g,"");return j}var x=()=>{};
3
- export{B as j9,x as k9};
2
+ import{jda as q}from"./cli-2afdzhna.js";function B(k){let j=k.replace(/[^a-zA-Z0-9_-]/g,"_");if(k.startsWith("claude.ai "))j=j.replace(/_+/g,"_").replace(/^_|_$/g,"");return j}var x=()=>{};
3
+ export{B as l9,x as m9};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{$f as q,ag as k}from"./cli-9tbmrp89.js";import{kg as f,lg as z}from"./cli-a1cx6p3g.js";import{hda as O}from"./cli-qwx84m9c.js";import{jsxDEV as P}from"react/jsx-dev-runtime";async function Y(_,K){let $=await f();if($.type==="message")return _($.value),null;return P(q,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(r)=>{K.onChangeAPIKey(),_(r?"Login successful":"Login interrupted")}},void 0,!1,void 0,this)}var w=O(()=>{k();z()});
2
+ import{$f as q,ag as k}from"./cli-zjznn7cc.js";import{kg as f,lg as z}from"./cli-ehchpnvs.js";import{jda as O}from"./cli-2afdzhna.js";import{jsxDEV as P}from"react/jsx-dev-runtime";async function Y(_,K){let $=await f();if($.type==="message")return _($.value),null;return P(q,{startingMessage:"Starting new login following /extra-usage. Exit with Ctrl-C to use existing account.",onDone:(r)=>{K.onChangeAPIKey(),_(r?"Login successful":"Login interrupted")}},void 0,!1,void 0,this)}var w=O(()=>{k();z()});
3
3
  export{Y as Yf,w as Zf};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{$F as A,YF as X,ZF as n,_F as l,aG as o,bG as V,cG as c,gG as u,hG as t}from"./cli-b3k8arn1.js";import{EO as y,FO as I}from"./cli-8jym9hp6.js";import{DQ as L,FQ as m,WQ as S,fR as D,pQ as a,qQ as x}from"./cli-a2d962bq.js";import{hda as N}from"./cli-qwx84m9c.js";import{useCallback as C,useState as T}from"react";function e(Y){if(Y.ctrl&&(Y.key==="k"||Y.key==="u"||Y.key==="w"))return!0;if(Y.meta&&Y.key==="backspace")return!0;return!1}function s(Y){return(Y.ctrl||Y.meta)&&Y.key==="y"}function P_({isActive:Y,onExit:K,onCancel:j,onExitUp:J,columns:O,passthroughCtrlKeys:w=[],initialQuery:W="",backspaceExitsOnEmpty:k=!0}){let{columns:Z}=y(),R=O??Z,[M,v]=T(W),[f,$]=T(W.length),b=C((_)=>{v(_),$(_.length)},[]),p=(_)=>{if(!Y)return;let z=u.fromText(M,R,f);if(_.ctrl&&w.includes(_.key.toLowerCase()))return;if(!e(_))l();if(!s(_))c();if(_.key==="return"||_.key==="down"){_.preventDefault(),K();return}if(_.key==="up"){if(_.preventDefault(),J)J();return}if(_.key==="escape"){if(_.preventDefault(),j)j();else if(M.length>0)v(""),$(0);else K();return}if(_.key==="backspace"){if(_.preventDefault(),_.meta){let{cursor:P,killed:h}=z.deleteWordBefore();X(h,"prepend"),v(P.text),$(P.offset);return}if(M.length===0){if(k)(j??K)();return}let q=z.backspace();v(q.text),$(q.offset);return}if(_.key==="delete"){_.preventDefault();let q=z.del();v(q.text),$(q.offset);return}if(_.key==="left"&&(_.ctrl||_.meta||_.fn)){_.preventDefault();let q=z.prevWord();$(q.offset);return}if(_.key==="right"&&(_.ctrl||_.meta||_.fn)){_.preventDefault();let q=z.nextWord();$(q.offset);return}if(_.key==="left"){_.preventDefault();let q=z.left();$(q.offset);return}if(_.key==="right"){_.preventDefault();let q=z.right();$(q.offset);return}if(_.key==="home"){_.preventDefault(),$(0);return}if(_.key==="end"){_.preventDefault(),$(M.length);return}if(_.ctrl){switch(_.preventDefault(),_.key.toLowerCase()){case"a":$(0);return;case"e":$(M.length);return;case"b":$(z.left().offset);return;case"f":$(z.right().offset);return;case"d":{if(M.length===0){(j??K)();return}let q=z.del();v(q.text),$(q.offset);return}case"h":{if(M.length===0){if(k)(j??K)();return}let q=z.backspace();v(q.text),$(q.offset);return}case"k":{let{cursor:q,killed:P}=z.deleteToLineEnd();X(P,"append"),v(q.text),$(q.offset);return}case"u":{let{cursor:q,killed:P}=z.deleteToLineStart();X(P,"prepend"),v(q.text),$(q.offset);return}case"w":{let{cursor:q,killed:P}=z.deleteWordBefore();X(P,"prepend"),v(q.text),$(q.offset);return}case"y":{let q=n();if(q.length>0){let P=z.offset,h=z.insert(q);A(P,q.length),v(h.text),$(h.offset)}return}case"g":case"c":if(j){j();return}}return}if(_.meta){switch(_.preventDefault(),_.key.toLowerCase()){case"b":$(z.prevWord().offset);return;case"f":$(z.nextWord().offset);return;case"d":{let q=z.deleteWordAfter();v(q.text),$(q.offset);return}case"y":{let q=o();if(q){let{text:P,start:h,length:G}=q,i=M.slice(0,h),g=M.slice(h+G),r=i+P+g,E=h+P.length;V(P.length),v(r),$(E)}return}}return}if(_.key==="tab")return;if(_.key.length>=1&&!B.has(_.key)){_.preventDefault();let q=z.insert(_.key);v(q.text),$(q.offset)}};return S((_,z,q)=>{p(new a(q.keypress))},{isActive:Y}),{query:M,setQuery:b,cursorOffset:f,handleKeyDown:p}}var B;var F=N(()=>{x();D();t();I();B=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});import{c as U}from"react/compiler-runtime";import{jsxDEV as H,Fragment as d}from"react/jsx-dev-runtime";function Y_(Y){let K=U(17),{query:j,placeholder:J,isFocused:O,isTerminalFocused:w,prefix:W,width:k,cursorOffset:Z,borderless:R}=Y,M=J===void 0?"Search\u2026":J,v=W===void 0?"\u2315":W,f=R===void 0?!1:R,$=Z??j.length,b=f?void 0:"round",p=O?"suggestion":void 0,_=!O,z=f?0:1,q=!O,P;if(K[0]!==O||K[1]!==w||K[2]!==$||K[3]!==M||K[4]!==j)P=O?H(d,{children:j?w?H(d,{children:[H(m,{children:j.slice(0,$)},void 0,!1,void 0,this),H(m,{inverse:!0,children:$<j.length?j[$]:" "},void 0,!1,void 0,this),$<j.length&&H(m,{children:j.slice($+1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H(m,{children:j},void 0,!1,void 0,this):w?H(d,{children:[H(m,{inverse:!0,children:M.charAt(0)},void 0,!1,void 0,this),H(m,{dimColor:!0,children:M.slice(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H(m,{dimColor:!0,children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this):j?H(m,{children:j},void 0,!1,void 0,this):H(m,{children:M},void 0,!1,void 0,this),K[0]=O,K[1]=w,K[2]=$,K[3]=M,K[4]=j,K[5]=P;else P=K[5];let h;if(K[6]!==v||K[7]!==q||K[8]!==P)h=H(m,{dimColor:q,children:[v," ",P]},void 0,!0,void 0,this),K[6]=v,K[7]=q,K[8]=P,K[9]=h;else h=K[9];let G;if(K[10]!==h||K[11]!==b||K[12]!==p||K[13]!==_||K[14]!==z||K[15]!==k)G=H(L,{flexShrink:0,borderStyle:b,borderColor:p,borderDimColor:_,paddingX:z,width:k,children:h},void 0,!1,void 0,this),K[10]=h,K[11]=b,K[12]=p,K[13]=_,K[14]=z,K[15]=k,K[16]=G;else G=K[16];return G}var Q=N(()=>{D()});
2
+ import{$F as n,_F as X,aG as l,bG as A,cG as o,dG as V,eG as c,iG as u,jG as t}from"./cli-63389c5w.js";import{GO as y,HO as I}from"./cli-vbn35zp3.js";import{FQ as L,HQ as m,YQ as S,hR as D,rQ as a,sQ as x}from"./cli-7dm5ex18.js";import{jda as N}from"./cli-2afdzhna.js";import{useCallback as C,useState as T}from"react";function e(Y){if(Y.ctrl&&(Y.key==="k"||Y.key==="u"||Y.key==="w"))return!0;if(Y.meta&&Y.key==="backspace")return!0;return!1}function s(Y){return(Y.ctrl||Y.meta)&&Y.key==="y"}function P_({isActive:Y,onExit:K,onCancel:j,onExitUp:J,columns:O,passthroughCtrlKeys:w=[],initialQuery:W="",backspaceExitsOnEmpty:k=!0}){let{columns:Z}=y(),R=O??Z,[M,v]=T(W),[f,$]=T(W.length),b=C((_)=>{v(_),$(_.length)},[]),p=(_)=>{if(!Y)return;let z=u.fromText(M,R,f);if(_.ctrl&&w.includes(_.key.toLowerCase()))return;if(!e(_))l();if(!s(_))c();if(_.key==="return"||_.key==="down"){_.preventDefault(),K();return}if(_.key==="up"){if(_.preventDefault(),J)J();return}if(_.key==="escape"){if(_.preventDefault(),j)j();else if(M.length>0)v(""),$(0);else K();return}if(_.key==="backspace"){if(_.preventDefault(),_.meta){let{cursor:P,killed:h}=z.deleteWordBefore();X(h,"prepend"),v(P.text),$(P.offset);return}if(M.length===0){if(k)(j??K)();return}let q=z.backspace();v(q.text),$(q.offset);return}if(_.key==="delete"){_.preventDefault();let q=z.del();v(q.text),$(q.offset);return}if(_.key==="left"&&(_.ctrl||_.meta||_.fn)){_.preventDefault();let q=z.prevWord();$(q.offset);return}if(_.key==="right"&&(_.ctrl||_.meta||_.fn)){_.preventDefault();let q=z.nextWord();$(q.offset);return}if(_.key==="left"){_.preventDefault();let q=z.left();$(q.offset);return}if(_.key==="right"){_.preventDefault();let q=z.right();$(q.offset);return}if(_.key==="home"){_.preventDefault(),$(0);return}if(_.key==="end"){_.preventDefault(),$(M.length);return}if(_.ctrl){switch(_.preventDefault(),_.key.toLowerCase()){case"a":$(0);return;case"e":$(M.length);return;case"b":$(z.left().offset);return;case"f":$(z.right().offset);return;case"d":{if(M.length===0){(j??K)();return}let q=z.del();v(q.text),$(q.offset);return}case"h":{if(M.length===0){if(k)(j??K)();return}let q=z.backspace();v(q.text),$(q.offset);return}case"k":{let{cursor:q,killed:P}=z.deleteToLineEnd();X(P,"append"),v(q.text),$(q.offset);return}case"u":{let{cursor:q,killed:P}=z.deleteToLineStart();X(P,"prepend"),v(q.text),$(q.offset);return}case"w":{let{cursor:q,killed:P}=z.deleteWordBefore();X(P,"prepend"),v(q.text),$(q.offset);return}case"y":{let q=n();if(q.length>0){let P=z.offset,h=z.insert(q);A(P,q.length),v(h.text),$(h.offset)}return}case"g":case"c":if(j){j();return}}return}if(_.meta){switch(_.preventDefault(),_.key.toLowerCase()){case"b":$(z.prevWord().offset);return;case"f":$(z.nextWord().offset);return;case"d":{let q=z.deleteWordAfter();v(q.text),$(q.offset);return}case"y":{let q=o();if(q){let{text:P,start:h,length:G}=q,i=M.slice(0,h),g=M.slice(h+G),r=i+P+g,E=h+P.length;V(P.length),v(r),$(E)}return}}return}if(_.key==="tab")return;if(_.key.length>=1&&!B.has(_.key)){_.preventDefault();let q=z.insert(_.key);v(q.text),$(q.offset)}};return S((_,z,q)=>{p(new a(q.keypress))},{isActive:Y}),{query:M,setQuery:b,cursorOffset:f,handleKeyDown:p}}var B;var F=N(()=>{x();D();t();I();B=new Set(["pageup","pagedown","insert","wheelup","wheeldown","mouse","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","f12"])});import{c as U}from"react/compiler-runtime";import{jsxDEV as H,Fragment as d}from"react/jsx-dev-runtime";function Y_(Y){let K=U(17),{query:j,placeholder:J,isFocused:O,isTerminalFocused:w,prefix:W,width:k,cursorOffset:Z,borderless:R}=Y,M=J===void 0?"Search\u2026":J,v=W===void 0?"\u2315":W,f=R===void 0?!1:R,$=Z??j.length,b=f?void 0:"round",p=O?"suggestion":void 0,_=!O,z=f?0:1,q=!O,P;if(K[0]!==O||K[1]!==w||K[2]!==$||K[3]!==M||K[4]!==j)P=O?H(d,{children:j?w?H(d,{children:[H(m,{children:j.slice(0,$)},void 0,!1,void 0,this),H(m,{inverse:!0,children:$<j.length?j[$]:" "},void 0,!1,void 0,this),$<j.length&&H(m,{children:j.slice($+1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H(m,{children:j},void 0,!1,void 0,this):w?H(d,{children:[H(m,{inverse:!0,children:M.charAt(0)},void 0,!1,void 0,this),H(m,{dimColor:!0,children:M.slice(1)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):H(m,{dimColor:!0,children:M},void 0,!1,void 0,this)},void 0,!1,void 0,this):j?H(m,{children:j},void 0,!1,void 0,this):H(m,{children:M},void 0,!1,void 0,this),K[0]=O,K[1]=w,K[2]=$,K[3]=M,K[4]=j,K[5]=P;else P=K[5];let h;if(K[6]!==v||K[7]!==q||K[8]!==P)h=H(m,{dimColor:q,children:[v," ",P]},void 0,!0,void 0,this),K[6]=v,K[7]=q,K[8]=P,K[9]=h;else h=K[9];let G;if(K[10]!==h||K[11]!==b||K[12]!==p||K[13]!==_||K[14]!==z||K[15]!==k)G=H(L,{flexShrink:0,borderStyle:b,borderColor:p,borderDimColor:_,paddingX:z,width:k,children:h},void 0,!1,void 0,this),K[10]=h,K[11]=b,K[12]=p,K[13]=_,K[14]=z,K[15]=k,K[16]=G;else G=K[16];return G}var Q=N(()=>{D()});
3
3
  export{Y_ as cf,Q as df,P_ as ef,F as ff};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{K_ as w,U_ as F}from"./cli-q8zmmp6z.js";import{hda as D}from"./cli-qwx84m9c.js";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
3
- export{Q as dM,V as eM,L as fM};
2
+ import{M_ as w,W_ as F}from"./cli-hy0se8fa.js";import{jda as D}from"./cli-2afdzhna.js";function Q(b){z=b}function V(){let b=z?.()??{};if(!w(process.env.CLAUDE_CODE_SUBPROCESS_ENV_SCRUB))return Object.keys(b).length>0?{...process.env,...b}:process.env;let d={...process.env,...b};for(let q of J)delete d[q],delete d[`INPUT_${q}`];return d}var J,z;var L=D(()=>{F();J=["ANTHROPIC_API_KEY","CLAUDE_CODE_OAUTH_TOKEN","ANTHROPIC_AUTH_TOKEN","ANTHROPIC_FOUNDRY_API_KEY","ANTHROPIC_CUSTOM_HEADERS","OTEL_EXPORTER_OTLP_HEADERS","OTEL_EXPORTER_OTLP_LOGS_HEADERS","OTEL_EXPORTER_OTLP_METRICS_HEADERS","OTEL_EXPORTER_OTLP_TRACES_HEADERS","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","GOOGLE_APPLICATION_CREDENTIALS","AZURE_CLIENT_SECRET","AZURE_CLIENT_CERTIFICATE_PATH","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","ACTIONS_RUNTIME_TOKEN","ACTIONS_RUNTIME_URL","ALL_INPUTS","OVERRIDE_GITHUB_TOKEN","DEFAULT_WORKFLOW_TOKEN","SSH_SIGNING_KEY"]});
3
+ export{Q as fM,V as gM,L as hM};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{JV as s,Q2 as p,a3 as x}from"./cli-192xnkcx.js";import{dda as r}from"./cli-tafg3e9w.js";import{hda as n}from"./cli-qwx84m9c.js";var c="ToolSearch";var T=()=>{};function N(){return process.env.USER_TYPE==="ant"||p("tengu_glacier_2xr",!1)?"Deferred tools appear by name in <system-reminder> messages.":"Deferred tools appear by name in <available-deferred-tools> messages."}function v(O){if(O.alwaysLoad===!0)return!1;if(O.isMcp===!0)return!0;if(O.name===c)return!1;return O.shouldDefer===!0}function w(O){return O.name}function y(){return L+N()+R}var L=`Fetches full schema definitions for deferred tools so they can be called.
2
+ import{OV as s,S2 as p,c3 as x}from"./cli-9sjvqgf1.js";import{fda as r}from"./cli-ktzb7cwm.js";import{jda as n}from"./cli-2afdzhna.js";var c="ToolSearch";var T=()=>{};function N(){return process.env.USER_TYPE==="ant"||p("tengu_glacier_2xr",!1)?"Deferred tools appear by name in <system-reminder> messages.":"Deferred tools appear by name in <available-deferred-tools> messages."}function v(O){if(O.alwaysLoad===!0)return!1;if(O.isMcp===!0)return!0;if(O.name===c)return!1;return O.shouldDefer===!0}function w(O){return O.name}function y(){return L+N()+R}var L=`Fetches full schema definitions for deferred tools so they can be called.
3
3
 
4
4
  `,R=` Until fetched, only the name is known \u2014 there is no parameter schema, so the tool cannot be invoked. This tool takes a query, matches it against the deferred tool list, and returns the matched tools' complete JSONSchema definitions inside a <functions> block. Once a tool's schema appears in that result, it is callable exactly like any tool defined at the top of the prompt.
5
5
 
@@ -9,4 +9,4 @@ Query forms:
9
9
  - "select:Read,Edit,Grep" \u2014 fetch these exact tools by name
10
10
  - "notebook jupyter" \u2014 keyword search, up to max_results best matches
11
11
  - "+slack send" \u2014 require "slack" in the name, rank by remaining terms`;var S=n(()=>{r();x();s();T();T()});
12
- export{c as ER,v as FR,w as GR,y as HR,S as IR};
12
+ export{c as GR,v as HR,w as IR,y as JR,S as KR};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{AF as Lq,Ai as Tq,BF as JJ,DF as mJ,Di as aq,Ei as Sq,Ep as tq,Qz as qJ,Rz as yJ,dr as CJ,pi as _,qi as uq,ti as dq,vi as $q,yi as _q}from"./cli-b3k8arn1.js";import{SL as iq,TL as PJ,UL as lq,VL as NJ,WL as oq,XL as bJ}from"./cli-4pwyex04.js";import{aO as sq,bO as RJ}from"./cli-awe5yg6m.js";import{TO as fq,UO as IJ,aP as eq,bP as LJ}from"./cli-8jym9hp6.js";import{DQ as K,FQ as G,fR as AJ}from"./cli-a2d962bq.js";import{AU as gq,AY as nq,BU as Mq,BW as pq,CU as Bq,DU as Dq,F1 as SJ,FY as WJ,LU as kJ,NW as HJ,_Z as ZJ,aZ as mq,f0 as _J,g1 as zJ,lY as yq,lZ as rq,mY as Eq,oY as Nq,oZ as bq,rZ as BJ,zW as cq}from"./cli-192xnkcx.js";import{$8 as KJ,_8 as xq}from"./cli-e5yek4vx.js";import{hda as Aq}from"./cli-qwx84m9c.js";function cJ(Q,q){if(!_(q))return;let Z=_q(q,Q);return`${Pq(Z)} ${Z} \xB7 /effort`}function Pq(Q){switch(Q){case"low":return gq;case"medium":return Mq;case"high":return Bq;case"max":return Dq;default:return Bq}}var vq=Aq(()=>{kJ();Sq()});import{c as QJ}from"react/compiler-runtime";import TJ from"lodash-es/capitalize.js";import{useState as Iq}from"react";import{jsxDEV as J,Fragment as MJ}from"react/jsx-dev-runtime";function GQ(Q){let q=QJ(82),{initial:Z,sessionModel:U,onSelect:X,onCancel:Y,isStandaloneCommand:H,showFastModeNotice:Zq,headerText:UJ,skipSettingsWrite:zq}=Q,Uq=JJ(),S=sq(),A=Z===null?Qq:Z,[W,XJ]=Iq(A),GJ=Lq(OJ),[P,YJ]=Iq(!1),I=Lq(FJ),v;if(q[0]!==I)v=I!==void 0?Tq(I):void 0,q[0]=I,q[1]=v;else v=q[1];let[R,jq]=Iq(v),Xq=GJ??!1,V;if(q[2]!==Xq)V=qJ(Xq),q[2]=Xq,q[3]=V;else V=q[3];let M=V,Gq;q:{if(Z!==null&&!M.some((z)=>z.value===Z)){let z;if(q[4]!==Z)z=bq(Z),q[4]=Z,q[5]=z;else z=q[5];let w;if(q[6]!==Z||q[7]!==z)w={value:Z,label:z,description:"Current model"},q[6]=Z,q[7]=z,q[8]=w;else w=q[8];let N;if(q[9]!==M||q[10]!==w)N=[...M,w],q[9]=M,q[10]=w,q[11]=N;else N=q[11];Gq=N;break q}Gq=M}let Yq=Gq,x;if(q[12]!==Yq)x=Yq.map(hJ),q[12]=Yq,q[13]=x;else x=q[13];let k=x,c;if(q[14]!==A||q[15]!==k)c=k.some((z)=>z.value===A)?A:k[0]?.value??void 0,q[14]=A,q[15]=k,q[16]=c;else c=q[16];let wq=c,p=Math.min(10,k.length),E=Math.max(0,k.length-p),n;if(q[17]!==W||q[18]!==k)n=k.find((z)=>z.value===W)?.label,q[17]=W,q[18]=k,q[19]=n;else n=q[19];let r=n,B,u;if(q[20]!==W){let z=Cq(W);B=z?_(z):!1,u=z?uq(z):!1,q[20]=W,q[21]=B,q[22]=u}else B=q[21],u=q[22];let d=u,$;if(q[23]!==W)$=Rq(W),q[23]=W,q[24]=$;else $=q[24];let b=$,D=R==="max"&&!d?"high":R,a;if(q[25]!==I||q[26]!==P)a=(z)=>{if(XJ(z),!P&&I===void 0)jq(Rq(z))},q[25]=I,q[26]=P,q[27]=a;else a=q[27];let kq=a,i;if(q[28]!==b||q[29]!==B||q[30]!==d)i=(z)=>{if(!B)return;jq((w)=>gJ(w??b,z,d)),YJ(!0)},q[28]=b,q[29]=B,q[30]=d,q[31]=i;else i=q[31];let f=i,s;if(q[32]!==f)s={"modelPicker:decreaseEffort":()=>f("left"),"modelPicker:increaseEffort":()=>f("right")},q[32]=f,q[33]=s;else s=q[33];let l;if(q[34]===Symbol.for("react.memo_cache_sentinel"))l={context:"ModelPicker"},q[34]=l;else l=q[34];fq(s,l);let o;if(q[35]!==R||q[36]!==P||q[37]!==X||q[38]!==Uq||q[39]!==zq)o=function(w){if(xq("tengu_model_command_menu_effort",{effort:R}),!zq){let Fq=$q(R,Rq(w),cq("userSettings")?.effortLevel,P),Oq=dq(Fq);if(Oq!==void 0)pq("userSettings",{effortLevel:Oq});Uq((wJ)=>({...wJ,effortValue:Fq}))}let N=Cq(w),hq=P&&N&&_(N)?R:void 0;if(w===Qq){X(null,hq);return}X(w,hq)},q[35]=R,q[36]=P,q[37]=X,q[38]=Uq,q[39]=zq,q[40]=o;else o=q[40];let Kq=o,e;if(q[41]===Symbol.for("react.memo_cache_sentinel"))e=J(G,{color:"remember",bold:!0,children:"Select model"},void 0,!1,void 0,this),q[41]=e;else e=q[41];let Hq=UJ??"Switch between Claude models. Applies to this session and future UnieAI Code sessions. For other/previous model names, specify with --model.",L;if(q[42]!==Hq)L=J(G,{dimColor:!0,children:Hq},void 0,!1,void 0,this),q[42]=Hq,q[43]=L;else L=q[43];let C;if(q[44]!==U)C=U&&J(G,{dimColor:!0,children:["Currently using ",bq(U)," for this session (set by plan mode). Selecting a model will undo this."]},void 0,!0,void 0,this),q[44]=U,q[45]=C;else C=q[45];let y;if(q[46]!==L||q[47]!==C)y=J(K,{marginBottom:1,flexDirection:"column",children:[e,L,C]},void 0,!0,void 0,this),q[46]=L,q[47]=C,q[48]=y;else y=q[48];let Wq=Y??jJ,m;if(q[49]!==kq||q[50]!==Kq||q[51]!==wq||q[52]!==A||q[53]!==k||q[54]!==Wq||q[55]!==p)m=J(K,{flexDirection:"column",children:J(tq,{defaultValue:A,defaultFocusValue:wq,options:k,onChange:Kq,onFocus:kq,onCancel:Wq,visibleOptionCount:p},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[49]=kq,q[50]=Kq,q[51]=wq,q[52]=A,q[53]=k,q[54]=Wq,q[55]=p,q[56]=m;else m=q[56];let T;if(q[57]!==E)T=E>0&&J(K,{paddingLeft:3,children:J(G,{dimColor:!0,children:["and ",E," more\u2026"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[57]=E,q[58]=T;else T=q[58];let j;if(q[59]!==m||q[60]!==T)j=J(K,{flexDirection:"column",marginBottom:1,children:[m,T]},void 0,!0,void 0,this),q[59]=m,q[60]=T,q[61]=j;else j=q[61];let h;if(q[62]!==D||q[63]!==b||q[64]!==r||q[65]!==B)h=J(K,{marginBottom:1,flexDirection:"column",children:B?J(G,{dimColor:!0,children:[J(Vq,{effort:D},void 0,!1,void 0,this)," ",TJ(D)," effort",D===b?" (default)":""," ",J(G,{color:"subtle",children:"\u2190 \u2192 to adjust"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):J(G,{color:"subtle",children:[J(Vq,{effort:void 0},void 0,!1,void 0,this)," Effort not supported",r?` for ${r}`:""]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[62]=D,q[63]=b,q[64]=r,q[65]=B,q[66]=h;else h=q[66];let F;if(q[67]!==Zq)F=yq()?Zq?J(K,{marginBottom:1,children:J(G,{dimColor:!0,children:["Fast mode is ",J(G,{bold:!0,children:"ON"},void 0,!1,void 0,this)," and available with"," ",Nq," only (/fast). Switching to other models turn off fast mode."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):Eq()&&!nq()?J(K,{marginBottom:1,children:J(G,{dimColor:!0,children:["Use ",J(G,{bold:!0,children:"/fast"},void 0,!1,void 0,this)," to turn on Fast mode (",Nq," only)."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null:null,q[67]=Zq,q[68]=F;else F=q[68];let O;if(q[69]!==y||q[70]!==j||q[71]!==h||q[72]!==F)O=J(K,{flexDirection:"column",children:[y,j,h,F]},void 0,!0,void 0,this),q[69]=y,q[70]=j,q[71]=h,q[72]=F,q[73]=O;else O=q[73];let g;if(q[74]!==S||q[75]!==H)g=H&&J(G,{dimColor:!0,italic:!0,children:S.pending?J(MJ,{children:["Press ",S.keyName," again to exit"]},void 0,!0,void 0,this):J(oq,{children:[J(iq,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),J(lq,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[74]=S,q[75]=H,q[76]=g;else g=q[76];let t;if(q[77]!==O||q[78]!==g)t=J(K,{flexDirection:"column",children:[O,g]},void 0,!0,void 0,this),q[77]=O,q[78]=g,q[79]=t;else t=q[79];let qq=t;if(!H)return qq;let Jq;if(q[80]!==qq)Jq=J(eq,{color:"permission",children:qq},void 0,!1,void 0,this),q[80]=qq,q[81]=Jq;else Jq=q[81];return Jq}function jJ(){}function hJ(Q){return{...Q,value:Q.value===null?Qq:Q.value}}function FJ(Q){return Q.effortValue}function OJ(Q){return yq()?Q.fastMode:!1}function Cq(Q){if(!Q)return;return Q===Qq?mq():rq(Q)}function Vq(Q){let q=QJ(5),{effort:Z}=Q,U=Z?"claude":"subtle",X=Z??"low",Y;if(q[0]!==X)Y=Pq(X),q[0]=X,q[1]=Y;else Y=q[1];let H;if(q[2]!==U||q[3]!==Y)H=J(G,{color:U,children:Y},void 0,!1,void 0,this),q[2]=U,q[3]=Y,q[4]=H;else H=q[4];return H}function gJ(Q,q,Z){let U=Z?["low","medium","high","max"]:["low","medium","high"],X=U.indexOf(Q),Y=X!==-1?X:U.indexOf("high");if(q==="right")return U[(Y+1)%U.length];else return U[(Y-1+U.length)%U.length]}function Rq(Q){let q=Cq(Q)??mq(),Z=aq(q);return Z!==void 0?Tq(Z):"high"}var Qq="__NO_PREFERENCE__";var DJ=Aq(()=>{RJ();KJ();WJ();AJ();IJ();mJ();Sq();BJ();yJ();HJ();NJ();CJ();bJ();PJ();LJ();vq()});function HQ(Q,q,Z){if(!zJ())return!1;if(q)return!0;if(Q===null||!ZJ(Q))return!1;let U=Q.toLowerCase().replace(/\[1m\]$/,"").trim(),X=U==="opus"||U.includes("opus-4-6"),Y=U==="sonnet"||U.includes("sonnet-4-6");if(X&&Z)return!1;return X||Y}var vJ=Aq(()=>{SJ();_J()});
2
+ import{Ai as Tq,CF as Lq,DF as JJ,Di as aq,Ei as Sq,Ep as tq,FF as mJ,Sz as qJ,Tz as yJ,dr as CJ,pi as _,qi as uq,ti as dq,vi as $q,yi as _q}from"./cli-63389c5w.js";import{UL as iq,VL as PJ,WL as lq,XL as NJ,YL as oq,ZL as bJ}from"./cli-ndrvqgnc.js";import{cO as sq,dO as RJ}from"./cli-39xs60x2.js";import{VO as fq,WO as IJ,cP as eq,dP as LJ}from"./cli-vbn35zp3.js";import{FQ as K,HQ as G,hR as AJ}from"./cli-7dm5ex18.js";import{EW as cq,FU as gq,FY as nq,GU as Mq,GW as pq,HU as Bq,IU as Dq,K1 as SJ,KY as WJ,QU as kJ,SW as HJ,d0 as ZJ,fZ as mq,k0 as _J,l1 as zJ,qY as yq,qZ as rq,rY as Eq,tY as Nq,tZ as bq,wZ as BJ}from"./cli-9sjvqgf1.js";import{a9 as xq,b9 as KJ}from"./cli-2dkq8dre.js";import{jda as Aq}from"./cli-2afdzhna.js";function cJ(Q,q){if(!_(q))return;let Z=_q(q,Q);return`${Pq(Z)} ${Z} \xB7 /effort`}function Pq(Q){switch(Q){case"low":return gq;case"medium":return Mq;case"high":return Bq;case"max":return Dq;default:return Bq}}var vq=Aq(()=>{kJ();Sq()});import{c as QJ}from"react/compiler-runtime";import TJ from"lodash-es/capitalize.js";import{useState as Iq}from"react";import{jsxDEV as J,Fragment as MJ}from"react/jsx-dev-runtime";function GQ(Q){let q=QJ(82),{initial:Z,sessionModel:U,onSelect:X,onCancel:Y,isStandaloneCommand:H,showFastModeNotice:Zq,headerText:UJ,skipSettingsWrite:zq}=Q,Uq=JJ(),S=sq(),A=Z===null?Qq:Z,[W,XJ]=Iq(A),GJ=Lq(OJ),[P,YJ]=Iq(!1),I=Lq(FJ),v;if(q[0]!==I)v=I!==void 0?Tq(I):void 0,q[0]=I,q[1]=v;else v=q[1];let[R,jq]=Iq(v),Xq=GJ??!1,V;if(q[2]!==Xq)V=qJ(Xq),q[2]=Xq,q[3]=V;else V=q[3];let M=V,Gq;q:{if(Z!==null&&!M.some((z)=>z.value===Z)){let z;if(q[4]!==Z)z=bq(Z),q[4]=Z,q[5]=z;else z=q[5];let w;if(q[6]!==Z||q[7]!==z)w={value:Z,label:z,description:"Current model"},q[6]=Z,q[7]=z,q[8]=w;else w=q[8];let N;if(q[9]!==M||q[10]!==w)N=[...M,w],q[9]=M,q[10]=w,q[11]=N;else N=q[11];Gq=N;break q}Gq=M}let Yq=Gq,x;if(q[12]!==Yq)x=Yq.map(hJ),q[12]=Yq,q[13]=x;else x=q[13];let k=x,c;if(q[14]!==A||q[15]!==k)c=k.some((z)=>z.value===A)?A:k[0]?.value??void 0,q[14]=A,q[15]=k,q[16]=c;else c=q[16];let wq=c,p=Math.min(10,k.length),E=Math.max(0,k.length-p),n;if(q[17]!==W||q[18]!==k)n=k.find((z)=>z.value===W)?.label,q[17]=W,q[18]=k,q[19]=n;else n=q[19];let r=n,B,u;if(q[20]!==W){let z=Cq(W);B=z?_(z):!1,u=z?uq(z):!1,q[20]=W,q[21]=B,q[22]=u}else B=q[21],u=q[22];let d=u,$;if(q[23]!==W)$=Rq(W),q[23]=W,q[24]=$;else $=q[24];let b=$,D=R==="max"&&!d?"high":R,a;if(q[25]!==I||q[26]!==P)a=(z)=>{if(XJ(z),!P&&I===void 0)jq(Rq(z))},q[25]=I,q[26]=P,q[27]=a;else a=q[27];let kq=a,i;if(q[28]!==b||q[29]!==B||q[30]!==d)i=(z)=>{if(!B)return;jq((w)=>gJ(w??b,z,d)),YJ(!0)},q[28]=b,q[29]=B,q[30]=d,q[31]=i;else i=q[31];let f=i,s;if(q[32]!==f)s={"modelPicker:decreaseEffort":()=>f("left"),"modelPicker:increaseEffort":()=>f("right")},q[32]=f,q[33]=s;else s=q[33];let l;if(q[34]===Symbol.for("react.memo_cache_sentinel"))l={context:"ModelPicker"},q[34]=l;else l=q[34];fq(s,l);let o;if(q[35]!==R||q[36]!==P||q[37]!==X||q[38]!==Uq||q[39]!==zq)o=function(w){if(xq("tengu_model_command_menu_effort",{effort:R}),!zq){let Fq=$q(R,Rq(w),cq("userSettings")?.effortLevel,P),Oq=dq(Fq);if(Oq!==void 0)pq("userSettings",{effortLevel:Oq});Uq((wJ)=>({...wJ,effortValue:Fq}))}let N=Cq(w),hq=P&&N&&_(N)?R:void 0;if(w===Qq){X(null,hq);return}X(w,hq)},q[35]=R,q[36]=P,q[37]=X,q[38]=Uq,q[39]=zq,q[40]=o;else o=q[40];let Kq=o,e;if(q[41]===Symbol.for("react.memo_cache_sentinel"))e=J(G,{color:"remember",bold:!0,children:"Select model"},void 0,!1,void 0,this),q[41]=e;else e=q[41];let Hq=UJ??"Switch between Claude models. Applies to this session and future UnieAI Code sessions. For other/previous model names, specify with --model.",L;if(q[42]!==Hq)L=J(G,{dimColor:!0,children:Hq},void 0,!1,void 0,this),q[42]=Hq,q[43]=L;else L=q[43];let C;if(q[44]!==U)C=U&&J(G,{dimColor:!0,children:["Currently using ",bq(U)," for this session (set by plan mode). Selecting a model will undo this."]},void 0,!0,void 0,this),q[44]=U,q[45]=C;else C=q[45];let y;if(q[46]!==L||q[47]!==C)y=J(K,{marginBottom:1,flexDirection:"column",children:[e,L,C]},void 0,!0,void 0,this),q[46]=L,q[47]=C,q[48]=y;else y=q[48];let Wq=Y??jJ,m;if(q[49]!==kq||q[50]!==Kq||q[51]!==wq||q[52]!==A||q[53]!==k||q[54]!==Wq||q[55]!==p)m=J(K,{flexDirection:"column",children:J(tq,{defaultValue:A,defaultFocusValue:wq,options:k,onChange:Kq,onFocus:kq,onCancel:Wq,visibleOptionCount:p},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[49]=kq,q[50]=Kq,q[51]=wq,q[52]=A,q[53]=k,q[54]=Wq,q[55]=p,q[56]=m;else m=q[56];let T;if(q[57]!==E)T=E>0&&J(K,{paddingLeft:3,children:J(G,{dimColor:!0,children:["and ",E," more\u2026"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[57]=E,q[58]=T;else T=q[58];let j;if(q[59]!==m||q[60]!==T)j=J(K,{flexDirection:"column",marginBottom:1,children:[m,T]},void 0,!0,void 0,this),q[59]=m,q[60]=T,q[61]=j;else j=q[61];let h;if(q[62]!==D||q[63]!==b||q[64]!==r||q[65]!==B)h=J(K,{marginBottom:1,flexDirection:"column",children:B?J(G,{dimColor:!0,children:[J(Vq,{effort:D},void 0,!1,void 0,this)," ",TJ(D)," effort",D===b?" (default)":""," ",J(G,{color:"subtle",children:"\u2190 \u2192 to adjust"},void 0,!1,void 0,this)]},void 0,!0,void 0,this):J(G,{color:"subtle",children:[J(Vq,{effort:void 0},void 0,!1,void 0,this)," Effort not supported",r?` for ${r}`:""]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[62]=D,q[63]=b,q[64]=r,q[65]=B,q[66]=h;else h=q[66];let F;if(q[67]!==Zq)F=yq()?Zq?J(K,{marginBottom:1,children:J(G,{dimColor:!0,children:["Fast mode is ",J(G,{bold:!0,children:"ON"},void 0,!1,void 0,this)," and available with"," ",Nq," only (/fast). Switching to other models turn off fast mode."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):Eq()&&!nq()?J(K,{marginBottom:1,children:J(G,{dimColor:!0,children:["Use ",J(G,{bold:!0,children:"/fast"},void 0,!1,void 0,this)," to turn on Fast mode (",Nq," only)."]},void 0,!0,void 0,this)},void 0,!1,void 0,this):null:null,q[67]=Zq,q[68]=F;else F=q[68];let O;if(q[69]!==y||q[70]!==j||q[71]!==h||q[72]!==F)O=J(K,{flexDirection:"column",children:[y,j,h,F]},void 0,!0,void 0,this),q[69]=y,q[70]=j,q[71]=h,q[72]=F,q[73]=O;else O=q[73];let g;if(q[74]!==S||q[75]!==H)g=H&&J(G,{dimColor:!0,italic:!0,children:S.pending?J(MJ,{children:["Press ",S.keyName," again to exit"]},void 0,!0,void 0,this):J(oq,{children:[J(iq,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),J(lq,{action:"select:cancel",context:"Select",fallback:"Esc",description:"exit"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),q[74]=S,q[75]=H,q[76]=g;else g=q[76];let t;if(q[77]!==O||q[78]!==g)t=J(K,{flexDirection:"column",children:[O,g]},void 0,!0,void 0,this),q[77]=O,q[78]=g,q[79]=t;else t=q[79];let qq=t;if(!H)return qq;let Jq;if(q[80]!==qq)Jq=J(eq,{color:"permission",children:qq},void 0,!1,void 0,this),q[80]=qq,q[81]=Jq;else Jq=q[81];return Jq}function jJ(){}function hJ(Q){return{...Q,value:Q.value===null?Qq:Q.value}}function FJ(Q){return Q.effortValue}function OJ(Q){return yq()?Q.fastMode:!1}function Cq(Q){if(!Q)return;return Q===Qq?mq():rq(Q)}function Vq(Q){let q=QJ(5),{effort:Z}=Q,U=Z?"claude":"subtle",X=Z??"low",Y;if(q[0]!==X)Y=Pq(X),q[0]=X,q[1]=Y;else Y=q[1];let H;if(q[2]!==U||q[3]!==Y)H=J(G,{color:U,children:Y},void 0,!1,void 0,this),q[2]=U,q[3]=Y,q[4]=H;else H=q[4];return H}function gJ(Q,q,Z){let U=Z?["low","medium","high","max"]:["low","medium","high"],X=U.indexOf(Q),Y=X!==-1?X:U.indexOf("high");if(q==="right")return U[(Y+1)%U.length];else return U[(Y-1+U.length)%U.length]}function Rq(Q){let q=Cq(Q)??mq(),Z=aq(q);return Z!==void 0?Tq(Z):"high"}var Qq="__NO_PREFERENCE__";var DJ=Aq(()=>{RJ();KJ();WJ();AJ();IJ();mJ();Sq();BJ();yJ();HJ();NJ();CJ();bJ();PJ();LJ();vq()});function HQ(Q,q,Z){if(!zJ())return!1;if(q)return!0;if(Q===null||!ZJ(Q))return!1;let U=Q.toLowerCase().replace(/\[1m\]$/,"").trim(),X=U==="opus"||U.includes("opus-4-6"),Y=U==="sonnet"||U.includes("sonnet-4-6");if(X&&Z)return!1;return X||Y}var vJ=Aq(()=>{SJ();_J()});
3
3
  export{cJ as Oe,Pq as Pe,vq as Qe,GQ as Re,DJ as Se,HQ as Te,vJ as Ue};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{$8 as Y}from"./cli-e5yek4vx.js";import{A_ as U}from"./cli-awb77t95.js";import{hda as F}from"./cli-qwx84m9c.js";var O,K;var G=F(()=>{O=Promise.resolve(),K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});async function C(){}async function y(z){if(!z||z.length>V)return null;return null}async function b(z){if(!z||z.length>V)return null;return null}function T(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&q.has(J.text)?[J.text]:[]}let Z=[],$=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!$&&J.type==="word"){$=!0,Z.push(J.text);continue}if(Q.has(J.type))Z.push(M(J.text));else if(H.has(J.type))break}return Z}function M(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var V=1e4,q,Q,H,u;var W=F(()=>{Y();U();G();q=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),Q=new Set(["word","string","raw_string","number"]),H=new Set(["command_substitution","process_substitution"]);u=Symbol("parse-aborted")});
3
- export{K as Q8,G as R8,C as S8,y as T8,u as U8,b as V8,T as W8,W as X8};
2
+ import{b9 as Y}from"./cli-2dkq8dre.js";import{C_ as U}from"./cli-bqs5smsv.js";import{jda as F}from"./cli-2afdzhna.js";var O,K;var G=F(()=>{O=Promise.resolve(),K=new Set(["if","then","elif","else","fi","while","until","for","in","do","done","case","esac","function","select"])});async function C(){}async function y(z){if(!z||z.length>V)return null;return null}async function b(z){if(!z||z.length>V)return null;return null}function T(z){if(z.type==="declaration_command"){let J=z.children[0];return J&&q.has(J.text)?[J.text]:[]}let Z=[],$=!1;for(let J of z.children){if(J.type==="variable_assignment")continue;if(J.type==="command_name"||!$&&J.type==="word"){$=!0,Z.push(J.text);continue}if(Q.has(J.type))Z.push(M(J.text));else if(H.has(J.type))break}return Z}function M(z){return z.length>=2&&(z[0]==='"'&&z.at(-1)==='"'||z[0]==="'"&&z.at(-1)==="'")?z.slice(1,-1):z}var V=1e4,q,Q,H,u;var W=F(()=>{Y();U();G();q=new Set(["export","declare","typeset","readonly","local","unset","unsetenv"]),Q=new Set(["word","string","raw_string","number"]),H=new Set(["command_substitution","process_substitution"]);u=Symbol("parse-aborted")});
3
+ export{K as S8,G as T8,C as U8,y as V8,u as W8,b as X8,T as Y8,W as Z8};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ld as g,Rd as Nq}from"./cli-sbm8tsyq.js";import{CD as b,Ch as A,DD as vq,Eh as D,Fh as Rq,GD as Jq,Gh as h,HD as Qq,Hh as S,Ih as m,JD as Dq,Jh as Aq,KD as y,LD as Xq,MC as v,MD as Yq,Mi as l,NC as P,ND as $q,OD as zq,Oi as wq,PC as jq,PD as c,SD as Eq,dD as e,gi as i,hi as Fq,jD as qq,kD as I,oD as Cq,pD as O,qD as Gq,sD as d,tD as Hq,tx as n,ux as Oq,wh as t,yh as Mq,zD as Lq}from"./cli-b3k8arn1.js";import{BW as L,NW as Tq,WV as V,cW as Bq,zW as F}from"./cli-192xnkcx.js";import{G8 as s,L8 as _q}from"./cli-8kpqq0ea.js";import{$9 as N,Y9 as p,d_ as Wq,n_ as a,r_ as Kq}from"./cli-awb77t95.js";import{dda as Uq,m$ as f}from"./cli-tafg3e9w.js";import{hda as xq}from"./cli-qwx84m9c.js";import{dirname as Vq,join as o}from"path";function r(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function QG(q){return k.includes(q)}function Zq(q){return q==="project"||q==="local"?f():void 0}function XG(q){return h(F("projectSettings")?.enabledPlugins?.[q])}function bq(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 yq(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 kq(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 fq(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 YG(q,H="user"){r(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await I(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await e();for(let[B,K]of Object.entries($))try{let M=(await qq(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){s(p(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 Qq({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:Jq(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 $G(q,H="user",G=!0){r(H);let{enabled:X,disabled:J}=await c(),Y=[...X,...J],z=yq(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=kq(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}=fq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claude/settings.json, shared with your team). To disable just for you: claude 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(),Gq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await P(R);if(j){if(l(Q),G)await i(Q)}let C=S(Q,Y),E=m(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 u(q,H,G){let X=H?"enable":"disable";if(t(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)r(G);let J,Y,z=bq(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&&n(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&&!$?h(W):g().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 c(),w=S(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=m(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function zG(q,H){return u(q,!0,H)}async function ZG(q,H){return u(q,!1,H)}async function xG(){let q=g();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await u(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
+ import{Ld as g,Rd as Nq}from"./cli-h5hm4rsb.js";import{BD as Lq,Ch as A,ED as b,Eh as D,FD as vq,Fh as Rq,Gh as h,Hh as S,ID as Jq,Ih as m,JD as Qq,Jh as Aq,LD as Dq,MD as y,Mi as l,ND as Xq,OC as v,OD as Yq,Oi as wq,PC as P,PD as $q,QD as zq,RC as jq,RD as c,UD as Eq,fD as e,gi as i,hi as Fq,lD as qq,mD as I,qD as Cq,rD as O,sD as Gq,uD as d,vD as Hq,vx as n,wh as t,wx as Oq,yh as Mq}from"./cli-63389c5w.js";import{$V as V,EW as F,GW as L,SW as Tq,hW as Bq}from"./cli-9sjvqgf1.js";import{I8 as s,N8 as _q}from"./cli-eehgc06t.js";import{_9 as p,b_ as N,f_ as Wq,p_ as a,t_ as Kq}from"./cli-bqs5smsv.js";import{fda as Uq,o$ as f}from"./cli-ktzb7cwm.js";import{jda as xq}from"./cli-2afdzhna.js";import{dirname as Vq,join as o}from"path";function r(q){if(!k.includes(q))throw Error(`Invalid scope "${q}". Must be one of: ${k.join(", ")}`)}function QG(q){return k.includes(q)}function Zq(q){return q==="project"||q==="local"?f():void 0}function XG(q){return h(F("projectSettings")?.enabledPlugins?.[q])}function bq(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 yq(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 kq(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 fq(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 YG(q,H="user"){r(H);let{name:G,marketplace:X}=A(q),J,Y,z;if(X){let $=await I(q);if($)J=$.entry,Y=X,z=$.marketplaceInstallLocation}else{let $=await e();for(let[B,K]of Object.entries($))try{let M=(await qq(B)).plugins.find((R)=>R.name===G);if(M){J=M,Y=B,z=K.installLocation;break}}catch(x){s(p(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 Qq({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:Jq(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 $G(q,H="user",G=!0){r(H);let{enabled:X,disabled:J}=await c(),Y=[...X,...J],z=yq(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=kq(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}=fq(Q);if(U!==H&&x&&x.length>0){if(U==="project")return{success:!1,message:`Plugin "${q}" is enabled at project scope (.claude/settings.json, shared with your team). To disable just for you: claude 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(),Gq(Q,H,B);let w=O().plugins[Q],j=!w||w.length===0;if(j&&R)await P(R);if(j){if(l(Q),G)await i(Q)}let C=S(Q,Y),E=m(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 u(q,H,G){let X=H?"enable":"disable";if(t(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)r(G);let J,Y,z=bq(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&&n(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&&!$?h(W):g().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 c(),w=S(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=m(K);return{success:!0,message:`Successfully ${X}d plugin: ${M} (scope: ${Y})${R}`,pluginId:J,pluginName:M,scope:Y,reverseDependents:K}}async function zG(q,H){return u(q,!0,H)}async function ZG(q,H){return u(q,!1,H)}async function xG(){let q=g();if(q.size===0)return{success:!0,message:"No enabled plugins to disable"};let H=[],G=[];for(let[X]of q){let J=await u(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:
3
3
  ${G.join(`
4
4
  `)}`};return{success:!0,message:`Disabled ${H.length} ${V(H.length,"plugin")}`}}async function UG(q,H){let{name:G,marketplace:X}=A(q),J=X?`${G}@${X}`:q,Y=await I(q);if(!Y)return{success:!1,message:`Plugin "${G}" not found`,pluginId:J,scope:H};let{entry:z,marketplaceInstallLocation:Z}=Y,Q=d().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 hq({pluginId:J,pluginName:G,entry:z,marketplaceInstallLocation:Z,installation:B,scope:H,projectPath:$})}async function hq({pluginId:q,pluginName:H,entry:G,marketplaceInstallLocation:X,installation:J,scope:Y,projectPath:z}){let Z=a(),W=J.version,Q,$,B=!1,K;if(typeof G.source!=="string"){let x=await $q(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:Vq(X);Q=o(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,_=o(Q,".claude-plugin","plugin.json");try{R=await zq(_,G.name,G.source)}catch{}$=await b(q,G.source,R,Q,G.version)}try{let x=y(q,$),M=Xq(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 Yq(Q,q,$,G);let _=J.installPath;if(Hq(q,Y,z,x,$,K),_&&_!==x){let j=d();if(!Object.values(j.plugins).some((E)=>E.some((U)=>U.installPath===_)))await P(_)}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,JG;var Sq=xq(()=>{Uq();Mq();Wq();Kq();_q();jq();Aq();Lq();Cq();Fq();Rq();Dq();Eq();wq();Oq();Nq();vq();Tq();Bq();k=["user","project","local"],JG=["user","project","local","managed"]});
5
5
  export{k as yd,JG as zd,QG as Ad,XG as Bd,fq as Cd,YG as Dd,$G as Ed,zG as Fd,ZG as Gd,xG as Hd,UG as Id,Sq as Jd};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{AF as Kq,BF as fq,DF as Dq,Ep as Iq,Mq,Nq as dq,dr as wq,ty as Uq,uy as Aq,vy as Eq,yy as Rq,zy as mq}from"./cli-b3k8arn1.js";import{QL as Wq,RL as yq,SL as s,TL as _q,WL as kq,XL as jq}from"./cli-4pwyex04.js";import{aO as Oq,bO as Vq}from"./cli-awe5yg6m.js";import{EO as Zq,FO as Bq,QO as zq,RO as Hq,SO as Fq,UO as vq}from"./cli-8jym9hp6.js";import{DQ as L,FQ as X,fR as Pq,kP as Qq,lP as Xq,mP as Yq}from"./cli-a2d962bq.js";import{BW as Nq,NW as bq}from"./cli-192xnkcx.js";import{hda as Cq}from"./cli-qwx84m9c.js";import{c as Sq}from"react/compiler-runtime";import{jsxDEV as G,Fragment as Lq}from"react/jsx-dev-runtime";function JG(p){let q=Sq(59),{onThemeSelect:g,showIntroText:$,helpText:e,showHelpTextBelow:t,hideEscToCancel:qq,skipExitHandling:Gq,onCancel:c}=p,C=$===void 0?!1:$,Q=e===void 0?"":e,Y=t===void 0?!1:t,T=qq===void 0?!1:qq,b=Gq===void 0?!1:Gq,[r]=Qq(),P=Xq(),{columns:h}=Zq(),B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=Uq(),q[0]=B;else B=q[0];let a=B,H;if(q[1]!==r)H=a===null?Aq(r):null,q[1]=r,q[2]=H;else H=q[2];let y=H,{setPreviewTheme:l,savePreview:x,cancelPreview:_}=Yq(),v=Kq(pq)??!1,i=fq();zq("ThemePicker");let o=Wq("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),V;if(q[3]!==i||q[4]!==v)V=()=>{if(a===null){let J=!v;Nq("userSettings",{syntaxHighlightingDisabled:J}),i((N)=>({...N,settings:{...N.settings,syntaxHighlightingDisabled:J}}))}},q[3]=i,q[4]=v,q[5]=V;else V=q[5];let j;if(q[6]===Symbol.for("react.memo_cache_sentinel"))j={context:"ThemePicker"},q[6]=j;else j=q[6];Fq("theme:toggleSyntaxHighlighting",V,j);let d=Oq(b?uq:void 0),w;if(q[7]===Symbol.for("react.memo_cache_sentinel"))w=[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"}],q[7]=w;else w=q[7];let Jq=w,Z;if(q[8]!==C)Z=C?G(X,{children:"Let's get started."},void 0,!1,void 0,this):G(X,{bold:!0,color:"permission",children:"Theme"},void 0,!1,void 0,this),q[8]=C,q[9]=Z;else Z=q[9];let E;if(q[10]===Symbol.for("react.memo_cache_sentinel"))E=G(X,{bold:!0,children:"Choose the text style that looks best with your terminal"},void 0,!1,void 0,this),q[10]=E;else E=q[10];let z;if(q[11]!==Q||q[12]!==Y)z=Q&&!Y&&G(X,{dimColor:!0,children:Q},void 0,!1,void 0,this),q[11]=Q,q[12]=Y,q[13]=z;else z=q[13];let W;if(q[14]!==z)W=G(L,{flexDirection:"column",children:[E,z]},void 0,!0,void 0,this),q[14]=z,q[15]=W;else W=q[15];let F;if(q[16]!==l)F=(J)=>{l(J)},q[16]=l,q[17]=F;else F=q[17];let O;if(q[18]!==g||q[19]!==x)O=(J)=>{x(),g(J)},q[18]=g,q[19]=x,q[20]=O;else O=q[20];let k;if(q[21]!==_||q[22]!==c||q[23]!==b)k=b?()=>{_(),c?.()}:async()=>{_(),await Mq(0)},q[21]=_,q[22]=c,q[23]=b,q[24]=k;else k=q[24];let I;if(q[25]!==F||q[26]!==O||q[27]!==k||q[28]!==P)I=G(Iq,{options:Jq,onFocus:F,onChange:O,onCancel:k,visibleOptionCount:Jq.length,defaultValue:P,defaultFocusValue:P},void 0,!1,void 0,this),q[25]=F,q[26]=O,q[27]=k,q[28]=P,q[29]=I;else I=q[29];let M;if(q[30]!==Z||q[31]!==W||q[32]!==I)M=G(L,{flexDirection:"column",gap:1,children:[Z,W,I]},void 0,!0,void 0,this),q[30]=Z,q[31]=W,q[32]=I,q[33]=M;else M=q[33];let m;if(q[34]===Symbol.for("react.memo_cache_sentinel"))m={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]},q[34]=m;else m=q[34];let U;if(q[35]!==h)U=G(L,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:G(Rq,{patch:m,dim:!1,filePath:"demo.js",firstLine:null,width:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[35]=h,q[36]=U;else U=q[36];let n=a==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:v?`Syntax highlighting disabled (${o} to enable)`:y?`Syntax theme: ${y.theme}${y.source?` (from ${y.source})`:""} (${o} to disable)`:`Syntax highlighting enabled (${o} to disable)`,A;if(q[37]!==n)A=G(X,{dimColor:!0,children:[" ",n]},void 0,!0,void 0,this),q[37]=n,q[38]=A;else A=q[38];let R;if(q[39]!==U||q[40]!==A)R=G(L,{flexDirection:"column",width:"100%",children:[U,A]},void 0,!0,void 0,this),q[39]=U,q[40]=A,q[41]=R;else R=q[41];let D;if(q[42]!==M||q[43]!==R)D=G(L,{flexDirection:"column",gap:1,children:[M,R]},void 0,!0,void 0,this),q[42]=M,q[43]=R,q[44]=D;else D=q[44];let S=D;if(!C){let J;if(q[45]!==S)J=G(L,{flexDirection:"column",children:S},void 0,!1,void 0,this),q[45]=S,q[46]=J;else J=q[46];let N;if(q[47]!==Q||q[48]!==Y)N=Y&&Q&&G(L,{marginLeft:3,children:G(X,{dimColor:!0,children:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[47]=Q,q[48]=Y,q[49]=N;else N=q[49];let K;if(q[50]!==d||q[51]!==T)K=!T&&G(L,{children:G(X,{dimColor:!0,italic:!0,children:d.pending?G(Lq,{children:["Press ",d.keyName," again to exit"]},void 0,!0,void 0,this):G(kq,{children:[G(s,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),G(s,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[50]=d,q[51]=T,q[52]=K;else K=q[52];let f;if(q[53]!==N||q[54]!==K)f=G(L,{marginTop:1,children:[N,K]},void 0,!0,void 0,this),q[53]=N,q[54]=K,q[55]=f;else f=q[55];let u;if(q[56]!==J||q[57]!==f)u=G(Lq,{children:[J,f]},void 0,!0,void 0,this),q[56]=J,q[57]=f,q[58]=u;else u=q[58];return u}return S}function uq(){}function pq(p){return p.settings.syntaxHighlightingDisabled}var gq=Cq(()=>{Vq();Bq();Pq();Hq();vq();yq();Dq();dq();bq();wq();jq();_q();Eq();mq()});
2
+ import{Ay as Rq,By as mq,CF as Kq,DF as fq,Ep as Iq,FF as Dq,Mq,Nq as dq,dr as wq,vy as Uq,wy as Aq,xy as Eq}from"./cli-63389c5w.js";import{SL as Wq,TL as yq,UL as s,VL as _q,YL as kq,ZL as jq}from"./cli-ndrvqgnc.js";import{cO as Oq,dO as Vq}from"./cli-39xs60x2.js";import{GO as Zq,HO as Bq,SO as zq,TO as Hq,UO as Fq,WO as vq}from"./cli-vbn35zp3.js";import{FQ as L,HQ as X,hR as Pq,mP as Qq,nP as Xq,oP as Yq}from"./cli-7dm5ex18.js";import{GW as Nq,SW as bq}from"./cli-9sjvqgf1.js";import{jda as Cq}from"./cli-2afdzhna.js";import{c as Sq}from"react/compiler-runtime";import{jsxDEV as G,Fragment as Lq}from"react/jsx-dev-runtime";function JG(p){let q=Sq(59),{onThemeSelect:g,showIntroText:$,helpText:e,showHelpTextBelow:t,hideEscToCancel:qq,skipExitHandling:Gq,onCancel:c}=p,C=$===void 0?!1:$,Q=e===void 0?"":e,Y=t===void 0?!1:t,T=qq===void 0?!1:qq,b=Gq===void 0?!1:Gq,[r]=Qq(),P=Xq(),{columns:h}=Zq(),B;if(q[0]===Symbol.for("react.memo_cache_sentinel"))B=Uq(),q[0]=B;else B=q[0];let a=B,H;if(q[1]!==r)H=a===null?Aq(r):null,q[1]=r,q[2]=H;else H=q[2];let y=H,{setPreviewTheme:l,savePreview:x,cancelPreview:_}=Yq(),v=Kq(pq)??!1,i=fq();zq("ThemePicker");let o=Wq("theme:toggleSyntaxHighlighting","ThemePicker","ctrl+t"),V;if(q[3]!==i||q[4]!==v)V=()=>{if(a===null){let J=!v;Nq("userSettings",{syntaxHighlightingDisabled:J}),i((N)=>({...N,settings:{...N.settings,syntaxHighlightingDisabled:J}}))}},q[3]=i,q[4]=v,q[5]=V;else V=q[5];let j;if(q[6]===Symbol.for("react.memo_cache_sentinel"))j={context:"ThemePicker"},q[6]=j;else j=q[6];Fq("theme:toggleSyntaxHighlighting",V,j);let d=Oq(b?uq:void 0),w;if(q[7]===Symbol.for("react.memo_cache_sentinel"))w=[...[],{label:"Dark mode",value:"dark"},{label:"Light mode",value:"light"},{label:"Dark mode (colorblind-friendly)",value:"dark-daltonized"},{label:"Light mode (colorblind-friendly)",value:"light-daltonized"},{label:"Dark mode (ANSI colors only)",value:"dark-ansi"},{label:"Light mode (ANSI colors only)",value:"light-ansi"}],q[7]=w;else w=q[7];let Jq=w,Z;if(q[8]!==C)Z=C?G(X,{children:"Let's get started."},void 0,!1,void 0,this):G(X,{bold:!0,color:"permission",children:"Theme"},void 0,!1,void 0,this),q[8]=C,q[9]=Z;else Z=q[9];let E;if(q[10]===Symbol.for("react.memo_cache_sentinel"))E=G(X,{bold:!0,children:"Choose the text style that looks best with your terminal"},void 0,!1,void 0,this),q[10]=E;else E=q[10];let z;if(q[11]!==Q||q[12]!==Y)z=Q&&!Y&&G(X,{dimColor:!0,children:Q},void 0,!1,void 0,this),q[11]=Q,q[12]=Y,q[13]=z;else z=q[13];let W;if(q[14]!==z)W=G(L,{flexDirection:"column",children:[E,z]},void 0,!0,void 0,this),q[14]=z,q[15]=W;else W=q[15];let F;if(q[16]!==l)F=(J)=>{l(J)},q[16]=l,q[17]=F;else F=q[17];let O;if(q[18]!==g||q[19]!==x)O=(J)=>{x(),g(J)},q[18]=g,q[19]=x,q[20]=O;else O=q[20];let k;if(q[21]!==_||q[22]!==c||q[23]!==b)k=b?()=>{_(),c?.()}:async()=>{_(),await Mq(0)},q[21]=_,q[22]=c,q[23]=b,q[24]=k;else k=q[24];let I;if(q[25]!==F||q[26]!==O||q[27]!==k||q[28]!==P)I=G(Iq,{options:Jq,onFocus:F,onChange:O,onCancel:k,visibleOptionCount:Jq.length,defaultValue:P,defaultFocusValue:P},void 0,!1,void 0,this),q[25]=F,q[26]=O,q[27]=k,q[28]=P,q[29]=I;else I=q[29];let M;if(q[30]!==Z||q[31]!==W||q[32]!==I)M=G(L,{flexDirection:"column",gap:1,children:[Z,W,I]},void 0,!0,void 0,this),q[30]=Z,q[31]=W,q[32]=I,q[33]=M;else M=q[33];let m;if(q[34]===Symbol.for("react.memo_cache_sentinel"))m={oldStart:1,newStart:1,oldLines:3,newLines:3,lines:[" function greet() {",'- console.log("Hello, World!");','+ console.log("Hello, Claude!");'," }"]},q[34]=m;else m=q[34];let U;if(q[35]!==h)U=G(L,{flexDirection:"column",borderTop:!0,borderBottom:!0,borderLeft:!1,borderRight:!1,borderStyle:"dashed",borderColor:"subtle",children:G(Rq,{patch:m,dim:!1,filePath:"demo.js",firstLine:null,width:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[35]=h,q[36]=U;else U=q[36];let n=a==="env"?`Syntax highlighting disabled (via CLAUDE_CODE_SYNTAX_HIGHLIGHT=${process.env.CLAUDE_CODE_SYNTAX_HIGHLIGHT})`:v?`Syntax highlighting disabled (${o} to enable)`:y?`Syntax theme: ${y.theme}${y.source?` (from ${y.source})`:""} (${o} to disable)`:`Syntax highlighting enabled (${o} to disable)`,A;if(q[37]!==n)A=G(X,{dimColor:!0,children:[" ",n]},void 0,!0,void 0,this),q[37]=n,q[38]=A;else A=q[38];let R;if(q[39]!==U||q[40]!==A)R=G(L,{flexDirection:"column",width:"100%",children:[U,A]},void 0,!0,void 0,this),q[39]=U,q[40]=A,q[41]=R;else R=q[41];let D;if(q[42]!==M||q[43]!==R)D=G(L,{flexDirection:"column",gap:1,children:[M,R]},void 0,!0,void 0,this),q[42]=M,q[43]=R,q[44]=D;else D=q[44];let S=D;if(!C){let J;if(q[45]!==S)J=G(L,{flexDirection:"column",children:S},void 0,!1,void 0,this),q[45]=S,q[46]=J;else J=q[46];let N;if(q[47]!==Q||q[48]!==Y)N=Y&&Q&&G(L,{marginLeft:3,children:G(X,{dimColor:!0,children:Q},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[47]=Q,q[48]=Y,q[49]=N;else N=q[49];let K;if(q[50]!==d||q[51]!==T)K=!T&&G(L,{children:G(X,{dimColor:!0,italic:!0,children:d.pending?G(Lq,{children:["Press ",d.keyName," again to exit"]},void 0,!0,void 0,this):G(kq,{children:[G(s,{shortcut:"Enter",action:"select"},void 0,!1,void 0,this),G(s,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[50]=d,q[51]=T,q[52]=K;else K=q[52];let f;if(q[53]!==N||q[54]!==K)f=G(L,{marginTop:1,children:[N,K]},void 0,!0,void 0,this),q[53]=N,q[54]=K,q[55]=f;else f=q[55];let u;if(q[56]!==J||q[57]!==f)u=G(Lq,{children:[J,f]},void 0,!0,void 0,this),q[56]=J,q[57]=f,q[58]=u;else u=q[58];return u}return S}function uq(){}function pq(p){return p.settings.syntaxHighlightingDisabled}var gq=Cq(()=>{Vq();Bq();Pq();Hq();vq();yq();Dq();dq();bq();wq();jq();_q();Eq();mq()});
3
3
  export{JG as Ve,gq as We};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{A_ as M,n_ as R,r_ as O,x_ as Y}from"./cli-awb77t95.js";import{J_ as N,K_ as D,U_ as v}from"./cli-q8zmmp6z.js";import{hda as H,ida as X}from"./cli-qwx84m9c.js";import P from"lodash-es/memoize.js";function c(){W.cache.clear?.(),Y("Cleared CA certificates cache")}var W;var I=H(()=>{M();v();O();W=P(()=>{let G=N("--use-system-ca")||N("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(Y(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let K=X("tls"),Q=[];if(G){let V=K.getCACertificates,Z=V?.("system");if(Z&&Z.length>0)Q.push(...Z),Y(`CA certs: Loaded ${Q.length} system CA certificates (--use-system-ca)`);else if(!V&&!J){Y("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else Q.push(...K.rootCertificates),Y(`CA certs: Loaded ${Q.length} bundled root certificates as base (--use-system-ca fallback)`)}else Q.push(...K.rootCertificates),Y(`CA certs: Loaded ${Q.length} bundled root certificates as base`);if(J)try{let V=R().readFileSync(J,{encoding:"utf8"});Q.push(V),Y(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(V){Y(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${V}`,{level:"error"})}return Q.length>0?Q:void 0})});import{Agent as d}from"https";import S from"lodash-es/memoize.js";function r(){let G=q(),J=W();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function _(){let G=q(),J=W();if(!G&&!J)return{};let K={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:K};return Y("TLS: Created undici agent with custom certificates"),{dispatcher:new(X("undici")).Agent({connect:{cert:K.cert,key:K.key,passphrase:K.passphrase,...K.ca&&{ca:K.ca}},pipelining:1})}}function o(){q.cache.clear?.(),z.cache.clear?.(),Y("Cleared mTLS configuration cache")}function e(){if(!q())return;if(process.env.NODE_EXTRA_CA_CERTS)Y("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var q,z;var U=H(()=>{I();M();O();q=S(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=R().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),Y("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){Y(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=R().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),Y("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){Y(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,Y("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),z=S(()=>{let G=q(),J=W();if(!G&&!J)return;let K={...G,...J&&{ca:J},keepAlive:!0};return Y("mTLS: Creating HTTPS agent with custom certificates"),new d(K)})});import w from"axios";import{HttpsProxyAgent as h}from"https-proxy-agent";import A from"lodash-es/memoize.js";function $G(){F=!0}function u(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function B(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function m(G=process.env){return G.no_proxy||G.NO_PROXY}function E(G,J=m()){if(!J)return!1;if(J==="*")return!0;try{let K=new URL(G),Q=K.hostname.toLowerCase(),V=K.port||(K.protocol==="https:"?"443":"80"),Z=`${Q}:${V}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let b=$;return Q===$.substring(1)||Q.endsWith(b)}return Q===$})}catch{return!1}}function j(G,J={}){let K=q(),Q=W(),V={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};if(D(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))V.lookup=(Z,T,$)=>{$(null,Z,u(T))};return new h(G,{...V,...J})}function WG(G={}){let J=B(),K=z(),Q=w.create({proxy:!1});if(!J){if(K)Q.defaults.httpsAgent=K;return Q}let V=j(J,G);return Q.interceptors.request.use((Z)=>{if(Z.url&&E(Z.url))Z.httpsAgent=K,Z.httpAgent=K;else Z.httpsAgent=V,Z.httpAgent=V;return Z}),Q}function qG(G){let J=B();if(!J)return;if(E(G))return;return j(J)}function wG(G){let J=B();if(!J)return;if(E(G))return;return J}function XG(G){let J=F?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Q=process.env.ANTHROPIC_UNIX_SOCKET;if(Q&&typeof Bun<"u")return{...J,unix:Q}}let K=G?.proxyUrl!==void 0?G.proxyUrl||void 0:B();if(K){if(typeof Bun<"u")return{...J,proxy:K,..._()};return{...J,dispatcher:L(K)}}return{...J,..._()}}function BG(){let G=B(),J=z();if(k!==void 0)w.interceptors.request.eject(k),k=void 0;if(w.defaults.proxy=void 0,w.defaults.httpAgent=void 0,w.defaults.httpsAgent=void 0,G){w.defaults.proxy=!1;let K=j(G);k=w.interceptors.request.use((Q)=>{if(Q.url&&E(Q.url))if(J)Q.httpsAgent=J,Q.httpAgent=J;else delete Q.httpsAgent,delete Q.httpAgent;else Q.httpsAgent=K,Q.httpAgent=K;return Q}),X("undici").setGlobalDispatcher(L(G))}else if(J){w.defaults.httpsAgent=J;let K=_();if(K.dispatcher)X("undici").setGlobalDispatcher(K.dispatcher)}}async function RG(){let G=B();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:K}]=await Promise.all([import("@smithy/node-http-handler"),import("@aws-sdk/credential-provider-node")]),Q=j(G),V=new J({httpAgent:Q,httpsAgent:Q});return{requestHandler:V,credentials:K({clientConfig:{requestHandler:V}})}}function zG(){L.cache.clear?.(),Y("Cleared proxy agent cache")}var F=!1,L,k;var y=H(()=>{I();M();v();U();L=A((G)=>{let J=X("undici"),K=q(),Q=W(),V={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(K||Q){let Z={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};V.connect=Z,V.requestTls=Z}return new J.EnvHttpProxyAgent(V)})});
3
- export{W as h5,c as i5,I as j5,q as k5,r as l5,o as m5,e as n5,U as o5,$G as p5,B as q5,E as r5,WG as s5,qG as t5,wG as u5,XG as v5,BG as w5,RG as x5,zG as y5,y as z5};
2
+ import{C_ as M,p_ as R,t_ as O,z_ as Y}from"./cli-bqs5smsv.js";import{L_ as N,M_ as D,W_ as v}from"./cli-hy0se8fa.js";import{jda as H,kda as X}from"./cli-2afdzhna.js";import P from"lodash-es/memoize.js";function c(){W.cache.clear?.(),Y("Cleared CA certificates cache")}var W;var I=H(()=>{M();v();O();W=P(()=>{let G=N("--use-system-ca")||N("--use-openssl-ca"),J=process.env.NODE_EXTRA_CA_CERTS;if(Y(`CA certs: useSystemCA=${G}, extraCertsPath=${J}`),!G&&!J)return;let K=X("tls"),Q=[];if(G){let V=K.getCACertificates,Z=V?.("system");if(Z&&Z.length>0)Q.push(...Z),Y(`CA certs: Loaded ${Q.length} system CA certificates (--use-system-ca)`);else if(!V&&!J){Y("CA certs: --use-system-ca set but system CA API unavailable, deferring to runtime");return}else Q.push(...K.rootCertificates),Y(`CA certs: Loaded ${Q.length} bundled root certificates as base (--use-system-ca fallback)`)}else Q.push(...K.rootCertificates),Y(`CA certs: Loaded ${Q.length} bundled root certificates as base`);if(J)try{let V=R().readFileSync(J,{encoding:"utf8"});Q.push(V),Y(`CA certs: Appended extra certificates from NODE_EXTRA_CA_CERTS (${J})`)}catch(V){Y(`CA certs: Failed to read NODE_EXTRA_CA_CERTS file (${J}): ${V}`,{level:"error"})}return Q.length>0?Q:void 0})});import{Agent as d}from"https";import S from"lodash-es/memoize.js";function r(){let G=q(),J=W();if(!G&&!J)return;return{...G,...J&&{ca:J}}}function _(){let G=q(),J=W();if(!G&&!J)return{};let K={...G,...J&&{ca:J}};if(typeof Bun<"u")return{tls:K};return Y("TLS: Created undici agent with custom certificates"),{dispatcher:new(X("undici")).Agent({connect:{cert:K.cert,key:K.key,passphrase:K.passphrase,...K.ca&&{ca:K.ca}},pipelining:1})}}function o(){q.cache.clear?.(),z.cache.clear?.(),Y("Cleared mTLS configuration cache")}function e(){if(!q())return;if(process.env.NODE_EXTRA_CA_CERTS)Y("NODE_EXTRA_CA_CERTS detected - Node.js will automatically append to built-in CAs")}var q,z;var U=H(()=>{I();M();O();q=S(()=>{let G={};if(process.env.CLAUDE_CODE_CLIENT_CERT)try{G.cert=R().readFileSync(process.env.CLAUDE_CODE_CLIENT_CERT,{encoding:"utf8"}),Y("mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT")}catch(J){Y(`mTLS: Failed to load client certificate: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY)try{G.key=R().readFileSync(process.env.CLAUDE_CODE_CLIENT_KEY,{encoding:"utf8"}),Y("mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY")}catch(J){Y(`mTLS: Failed to load client key: ${J}`,{level:"error"})}if(process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE)G.passphrase=process.env.CLAUDE_CODE_CLIENT_KEY_PASSPHRASE,Y("mTLS: Using client key passphrase");if(Object.keys(G).length===0)return;return G}),z=S(()=>{let G=q(),J=W();if(!G&&!J)return;let K={...G,...J&&{ca:J},keepAlive:!0};return Y("mTLS: Creating HTTPS agent with custom certificates"),new d(K)})});import w from"axios";import{HttpsProxyAgent as h}from"https-proxy-agent";import A from"lodash-es/memoize.js";function $G(){F=!0}function u(G){switch(G.family){case 0:case 4:case 6:return G.family;case"IPv6":return 6;case"IPv4":case void 0:return 4;default:throw Error(`Unsupported address family: ${G.family}`)}}function B(G=process.env){return G.https_proxy||G.HTTPS_PROXY||G.http_proxy||G.HTTP_PROXY}function m(G=process.env){return G.no_proxy||G.NO_PROXY}function E(G,J=m()){if(!J)return!1;if(J==="*")return!0;try{let K=new URL(G),Q=K.hostname.toLowerCase(),V=K.port||(K.protocol==="https:"?"443":"80"),Z=`${Q}:${V}`;return J.split(/[,\s]+/).filter(Boolean).some(($)=>{if($=$.toLowerCase().trim(),$.includes(":"))return Z===$;if($.startsWith(".")){let b=$;return Q===$.substring(1)||Q.endsWith(b)}return Q===$})}catch{return!1}}function j(G,J={}){let K=q(),Q=W(),V={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};if(D(process.env.CLAUDE_CODE_PROXY_RESOLVES_HOSTS))V.lookup=(Z,T,$)=>{$(null,Z,u(T))};return new h(G,{...V,...J})}function WG(G={}){let J=B(),K=z(),Q=w.create({proxy:!1});if(!J){if(K)Q.defaults.httpsAgent=K;return Q}let V=j(J,G);return Q.interceptors.request.use((Z)=>{if(Z.url&&E(Z.url))Z.httpsAgent=K,Z.httpAgent=K;else Z.httpsAgent=V,Z.httpAgent=V;return Z}),Q}function qG(G){let J=B();if(!J)return;if(E(G))return;return j(J)}function wG(G){let J=B();if(!J)return;if(E(G))return;return J}function XG(G){let J=F?{keepalive:!1}:{};if(G?.forAnthropicAPI){let Q=process.env.ANTHROPIC_UNIX_SOCKET;if(Q&&typeof Bun<"u")return{...J,unix:Q}}let K=G?.proxyUrl!==void 0?G.proxyUrl||void 0:B();if(K){if(typeof Bun<"u")return{...J,proxy:K,..._()};return{...J,dispatcher:L(K)}}return{...J,..._()}}function BG(){let G=B(),J=z();if(k!==void 0)w.interceptors.request.eject(k),k=void 0;if(w.defaults.proxy=void 0,w.defaults.httpAgent=void 0,w.defaults.httpsAgent=void 0,G){w.defaults.proxy=!1;let K=j(G);k=w.interceptors.request.use((Q)=>{if(Q.url&&E(Q.url))if(J)Q.httpsAgent=J,Q.httpAgent=J;else delete Q.httpsAgent,delete Q.httpAgent;else Q.httpsAgent=K,Q.httpAgent=K;return Q}),X("undici").setGlobalDispatcher(L(G))}else if(J){w.defaults.httpsAgent=J;let K=_();if(K.dispatcher)X("undici").setGlobalDispatcher(K.dispatcher)}}async function RG(){let G=B();if(!G)return{};let[{NodeHttpHandler:J},{defaultProvider:K}]=await Promise.all([import("@smithy/node-http-handler"),import("@aws-sdk/credential-provider-node")]),Q=j(G),V=new J({httpAgent:Q,httpsAgent:Q});return{requestHandler:V,credentials:K({clientConfig:{requestHandler:V}})}}function zG(){L.cache.clear?.(),Y("Cleared proxy agent cache")}var F=!1,L,k;var y=H(()=>{I();M();v();U();L=A((G)=>{let J=X("undici"),K=q(),Q=W(),V={httpProxy:G,httpsProxy:G,noProxy:process.env.NO_PROXY||process.env.no_proxy};if(K||Q){let Z={...K&&{cert:K.cert,key:K.key,passphrase:K.passphrase},...Q&&{ca:Q}};V.connect=Z,V.requestTls=Z}return new J.EnvHttpProxyAgent(V)})});
3
+ export{W as j5,c as k5,I as l5,q as m5,r as n5,o as o5,e as p5,U as q5,$G as r5,B as s5,E as t5,WG as u5,qG as v5,wG as w5,XG as x5,BG as y5,RG as z5,zG as A5,y as B5};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{M8 as N,P8 as L}from"./cli-z2ewnqgr.js";import{Y9 as _,d_ as p,j_ as d,n_ as K,r_ as S}from"./cli-awb77t95.js";import{K_ as G,U_ as f}from"./cli-q8zmmp6z.js";import{dda as c,xba as I,zba as j}from"./cli-tafg3e9w.js";import{hda as W}from"./cli-qwx84m9c.js";var n="command-name",i="command-message",a="command-args",o="bash-input",t="bash-stdout",s="bash-stderr",r="local-command-stdout",e="local-command-stderr",JJ="local-command-caveat",VJ,z="tick",$J="task-notification",YJ="task-id",BJ="tool-use-id",WJ="task-type",ZJ="output-file",KJ="status",UJ="summary",GJ="worktree",HJ="worktreePath",QJ="worktreeBranch",XJ="remote-review",zJ="remote-review-progress",qJ="teammate-message",FJ="channel",wJ="fork-boilerplate",OJ="Your directive: ",xJ,CJ;var q=W(()=>{VJ=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],xJ=["help","-h","--help"],CJ=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});function E(J){return J.sort((V,$)=>{let B=$.modified.getTime()-V.modified.getTime();if(B!==0)return B;return $.created.getTime()-V.created.getTime()})}var F=()=>{};function O(J){return J.replace(w,"").trim()||J}function x(J){return J.replace(w,"").trim()}function RJ(J){return J.replace(T,"").trim()}var w,T;var C=W(()=>{w=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g;T=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g});function k(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return"essential-traffic";if(process.env.DISABLE_TELEMETRY)return"no-telemetry";return"default"}function D(){return k()==="essential-traffic"}function NJ(){return k()!=="default"}function bJ(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC";return null}var R=()=>{};import v from"env-paths";import{join as U}from"path";function H(){let J=process.env.CLAUDE_CONFIG_DIR;return J?U(J,"Cache"):v("claude-cli").cache}function b(J){let V=J.replace(/[^a-zA-Z0-9]/g,"-");if(V.length<=A)return V;return`${V.slice(0,A)}-${Math.abs(N(J)).toString(36)}`}function Q(J){return b(J)}var A=200,h;var M=W(()=>{S();L();h={baseLogs:()=>U(H(),Q(K().cwd())),errors:()=>U(H(),Q(K().cwd()),"errors"),messages:()=>U(H(),Q(K().cwd()),"messages"),mcpLogs:(J)=>U(H(),Q(K().cwd()),`mcp-logs-${b(J)}`)}});import u from"lodash-es/memoize.js";function lJ(J,V){let $=J.firstPrompt?.startsWith(`<${z}>`),B=J.firstPrompt?x(J.firstPrompt):"",y=B&&!$,P=J.agentName||J.customTitle||J.summary||(y?B:void 0)||V||($?"Autonomous session":void 0)||(J.sessionId?J.sessionId.slice(0,8):"")||"";return O(P).trim()}function gJ(J){return J.toISOString().replace(/[:.]/g,"-")}function l(J){if(X.length>=m)X.shift();X.push(J)}function nJ(J){if(Y!==null)return;if(Y=J,Z.length>0){let V=[...Z];Z.length=0;for(let $ of V)switch($.type){case"error":Y.logError($.error);break;case"mcpError":Y.logMCPError($.serverName,$.error);break;case"mcpDebug":Y.logMCPDebug($.serverName,$.message);break}}}function aJ(J){let V=_(J);try{if(G(process.env.CLAUDE_CODE_USE_BEDROCK)||G(process.env.CLAUDE_CODE_USE_VERTEX)||G(process.env.CLAUDE_CODE_USE_FOUNDRY)||G(process.env.CLAUDE_CODE_USE_AZURE_OPENAI)||process.env.DISABLE_ERROR_REPORTING||D())return;let B={error:V.stack||V.message,timestamp:new Date().toISOString()};if(l(B),Y===null){Z.push({type:"error",error:V});return}Y.logError(V)}catch{}}function oJ(){return[...X]}function tJ(J,V){try{if(Y===null){Z.push({type:"mcpError",serverName:J,error:V});return}Y.logMCPError(J,V)}catch{}}function sJ(J,V){try{if(Y===null){Z.push({type:"mcpDebug",serverName:J,message:V});return}Y.logMCPDebug(J,V)}catch{}}function rJ(J,V){if(!V||!V.startsWith("repl_main_thread"))return;let{messages:$,...B}=J;I(B),j(process.env.USER_TYPE==="ant"?$:null)}var m=100,X,Z,Y=null,iJ;var g=W(()=>{c();q();F();M();C();f();p();R();d();X=[];Z=[];iJ=u(()=>{return process.argv.includes("--hard-fail")})});
3
- export{n as P7,i as Q7,a as R7,o as S7,t as T7,s as U7,r as V7,e as W7,JJ as X7,VJ as Y7,z as Z7,$J as _7,YJ as $7,BJ as a8,WJ as b8,ZJ as c8,KJ as d8,UJ as e8,GJ as f8,HJ as g8,QJ as h8,XJ as i8,zJ as j8,qJ as k8,FJ as l8,wJ as m8,OJ as n8,xJ as o8,CJ as p8,q as q8,E as r8,F as s8,h as t8,M as u8,O as v8,x as w8,RJ as x8,C as y8,D as z8,NJ as A8,bJ as B8,R as C8,lJ as D8,gJ as E8,nJ as F8,aJ as G8,oJ as H8,tJ as I8,sJ as J8,rJ as K8,g as L8};
2
+ import{O8 as N,R8 as L}from"./cli-mhza34xq.js";import{_9 as _,f_ as p,l_ as d,p_ as K,t_ as S}from"./cli-bqs5smsv.js";import{M_ as G,W_ as f}from"./cli-hy0se8fa.js";import{Bba as j,fda as c,zba as I}from"./cli-ktzb7cwm.js";import{jda as W}from"./cli-2afdzhna.js";var n="command-name",i="command-message",a="command-args",o="bash-input",t="bash-stdout",s="bash-stderr",r="local-command-stdout",e="local-command-stderr",JJ="local-command-caveat",VJ,z="tick",$J="task-notification",YJ="task-id",BJ="tool-use-id",WJ="task-type",ZJ="output-file",KJ="status",UJ="summary",GJ="worktree",HJ="worktreePath",QJ="worktreeBranch",XJ="remote-review",zJ="remote-review-progress",qJ="teammate-message",FJ="channel",wJ="fork-boilerplate",OJ="Your directive: ",xJ,CJ;var q=W(()=>{VJ=["bash-input","bash-stdout","bash-stderr","local-command-stdout","local-command-stderr","local-command-caveat"],xJ=["help","-h","--help"],CJ=["list","show","display","current","view","get","check","describe","print","version","about","status","?"]});function E(J){return J.sort((V,$)=>{let B=$.modified.getTime()-V.modified.getTime();if(B!==0)return B;return $.created.getTime()-V.created.getTime()})}var F=()=>{};function O(J){return J.replace(w,"").trim()||J}function x(J){return J.replace(w,"").trim()}function RJ(J){return J.replace(T,"").trim()}var w,T;var C=W(()=>{w=/<([a-z][\w-]*)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g;T=/<(ide_opened_file|ide_selection)(?:\s[^>]*)?>[\s\S]*?<\/\1>\n?/g});function k(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return"essential-traffic";if(process.env.DISABLE_TELEMETRY)return"no-telemetry";return"default"}function D(){return k()==="essential-traffic"}function NJ(){return k()!=="default"}function bJ(){if(process.env.CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC)return"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC";return null}var R=()=>{};import v from"env-paths";import{join as U}from"path";function H(){let J=process.env.CLAUDE_CONFIG_DIR;return J?U(J,"Cache"):v("claude-cli").cache}function b(J){let V=J.replace(/[^a-zA-Z0-9]/g,"-");if(V.length<=A)return V;return`${V.slice(0,A)}-${Math.abs(N(J)).toString(36)}`}function Q(J){return b(J)}var A=200,h;var M=W(()=>{S();L();h={baseLogs:()=>U(H(),Q(K().cwd())),errors:()=>U(H(),Q(K().cwd()),"errors"),messages:()=>U(H(),Q(K().cwd()),"messages"),mcpLogs:(J)=>U(H(),Q(K().cwd()),`mcp-logs-${b(J)}`)}});import u from"lodash-es/memoize.js";function lJ(J,V){let $=J.firstPrompt?.startsWith(`<${z}>`),B=J.firstPrompt?x(J.firstPrompt):"",y=B&&!$,P=J.agentName||J.customTitle||J.summary||(y?B:void 0)||V||($?"Autonomous session":void 0)||(J.sessionId?J.sessionId.slice(0,8):"")||"";return O(P).trim()}function gJ(J){return J.toISOString().replace(/[:.]/g,"-")}function l(J){if(X.length>=m)X.shift();X.push(J)}function nJ(J){if(Y!==null)return;if(Y=J,Z.length>0){let V=[...Z];Z.length=0;for(let $ of V)switch($.type){case"error":Y.logError($.error);break;case"mcpError":Y.logMCPError($.serverName,$.error);break;case"mcpDebug":Y.logMCPDebug($.serverName,$.message);break}}}function aJ(J){let V=_(J);try{if(G(process.env.CLAUDE_CODE_USE_BEDROCK)||G(process.env.CLAUDE_CODE_USE_VERTEX)||G(process.env.CLAUDE_CODE_USE_FOUNDRY)||G(process.env.CLAUDE_CODE_USE_AZURE_OPENAI)||process.env.DISABLE_ERROR_REPORTING||D())return;let B={error:V.stack||V.message,timestamp:new Date().toISOString()};if(l(B),Y===null){Z.push({type:"error",error:V});return}Y.logError(V)}catch{}}function oJ(){return[...X]}function tJ(J,V){try{if(Y===null){Z.push({type:"mcpError",serverName:J,error:V});return}Y.logMCPError(J,V)}catch{}}function sJ(J,V){try{if(Y===null){Z.push({type:"mcpDebug",serverName:J,message:V});return}Y.logMCPDebug(J,V)}catch{}}function rJ(J,V){if(!V||!V.startsWith("repl_main_thread"))return;let{messages:$,...B}=J;I(B),j(process.env.USER_TYPE==="ant"?$:null)}var m=100,X,Z,Y=null,iJ;var g=W(()=>{c();q();F();M();C();f();p();R();d();X=[];Z=[];iJ=u(()=>{return process.argv.includes("--hard-fail")})});
3
+ export{n as R7,i as S7,a as T7,o as U7,t as V7,s as W7,r as X7,e as Y7,JJ as Z7,VJ as _7,z as $7,$J as a8,YJ as b8,BJ as c8,WJ as d8,ZJ as e8,KJ as f8,UJ as g8,GJ as h8,HJ as i8,QJ as j8,XJ as k8,zJ as l8,qJ as m8,FJ as n8,wJ as o8,OJ as p8,xJ as q8,CJ as r8,q as s8,E as t8,F as u8,h as v8,M as w8,O as x8,x as y8,RJ as z8,C as A8,D as B8,NJ as C8,bJ as D8,R as E8,lJ as F8,gJ as G8,nJ as H8,aJ as I8,oJ as J8,tJ as K8,sJ as L8,rJ as M8,g as N8};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{ng as H,qg as m}from"./cli-df5r5xrp.js";import{rg as k,sg as C}from"./cli-m3r80gy0.js";import{iS as W,kS as X,pS as I}from"./cli-ceas97gw.js";import{F1 as E,Q3 as f,dX as S,eX as x,m1 as w,u3 as B,x3 as G}from"./cli-192xnkcx.js";import{B5 as j,C5 as D}from"./cli-an97yxg9.js";import{G8 as Q,L8 as R}from"./cli-8kpqq0ea.js";import{D9 as V,E9 as b}from"./cli-zxe1a0ey.js";import{hda as Z}from"./cli-qwx84m9c.js";import Y from"axios";async function _(L){let{accessToken:N,orgUUID:P}=await W(),K={...X(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await Y.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await W(),J={...X(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await Y.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await W(),K={...X(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await Y.get(J,{headers:K})).data}var M=Z(()=>{b();I()});async function o(){if(!G().hasVisitedExtraUsage)B((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=w(),N=L==="team"||L==="enterprise";if(!S()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await j(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var y=Z(()=>{M();m();C();E();x();D();f();R()});
2
+ import{ng as H,qg as m}from"./cli-fvr47wt6.js";import{rg as k,sg as C}from"./cli-v9wwx1rc.js";import{kS as W,mS as X,rS as I}from"./cli-zqj1my2v.js";import{K1 as E,S3 as f,iX as S,jX as x,r1 as w,w3 as B,z3 as G}from"./cli-9sjvqgf1.js";import{D5 as j,E5 as D}from"./cli-3q4bcd9y.js";import{I8 as Q,N8 as R}from"./cli-eehgc06t.js";import{F9 as V,G9 as b}from"./cli-4r0qxxn2.js";import{jda as Z}from"./cli-2afdzhna.js";import Y from"axios";async function _(L){let{accessToken:N,orgUUID:P}=await W(),K={...X(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests`;return(await Y.post(J,L,{headers:K})).data}async function $(L,N){let{accessToken:P,orgUUID:K}=await W(),J={...X(P),"x-organization-uuid":K},F=`${V().BASE_API_URL}/api/oauth/organizations/${K}/admin_requests/me?request_type=${L}`;for(let v of N)F+=`&statuses=${v}`;return(await Y.get(F,{headers:J})).data}async function z(L){let{accessToken:N,orgUUID:P}=await W(),K={...X(N),"x-organization-uuid":P},J=`${V().BASE_API_URL}/api/oauth/organizations/${P}/admin_requests/eligibility?request_type=${L}`;return(await Y.get(J,{headers:K})).data}var M=Z(()=>{b();I()});async function o(){if(!G().hasVisitedExtraUsage)B((J)=>({...J,hasVisitedExtraUsage:!0}));H();let L=w(),N=L==="team"||L==="enterprise";if(!S()&&N){let J;try{J=(await k())?.extra_usage}catch(F){Q(F)}if(J?.is_enabled&&J.monthly_limit===null)return{type:"message",value:"Your organization already has unlimited extra usage. No request needed."};try{if((await z("limit_increase"))?.is_allowed===!1)return{type:"message",value:"Please contact your admin to manage extra usage settings."}}catch(F){Q(F)}try{let F=await $("limit_increase",["pending","dismissed"]);if(F&&F.length>0)return{type:"message",value:"You have already submitted a request for extra usage to your admin."}}catch(F){Q(F)}try{return await _({request_type:"limit_increase",details:null}),{type:"message",value:J?.is_enabled?"Request sent to your admin to increase extra usage.":"Request sent to your admin to enable extra usage."}}catch(F){Q(F)}return{type:"message",value:"Please contact your admin to manage extra usage settings."}}let K=N?"https://claude.ai/admin-settings/usage":"https://claude.ai/settings/usage";try{let J=await j(K);return{type:"browser-opened",url:K,opened:J}}catch(J){return Q(J),{type:"message",value:`Failed to open browser. Please visit ${K} to manage extra usage.`}}}var y=Z(()=>{M();m();C();E();x();D();f();R()});
3
3
  export{o as kg,y as lg};
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{G8 as H,L8 as U}from"./cli-8kpqq0ea.js";import{n_ as J,r_ as T}from"./cli-awb77t95.js";import{hda as Q}from"./cli-qwx84m9c.js";import{readdir as W,readFile as X}from"fs/promises";import N from"lodash-es/memoize.js";import{release as Y}from"os";async function D(q){let x=new Set;if(process.env.P4PORT)x.add("perforce");try{let L=q??J().cwd(),B=new Set(await W(L));for(let[G,P]of Z)if(B.has(G))x.add(P)}catch{}return[...x]}var _,b,f,y,Z;var $=Q(()=>{T();U();_=["macos","wsl"],b=N(()=>{try{if(process.platform==="darwin")return"macos";if(process.platform==="win32")return"windows";if(process.platform==="linux"){try{let q=J().readFileSync("/proc/version",{encoding:"utf8"});if(q.toLowerCase().includes("microsoft")||q.toLowerCase().includes("wsl"))return"wsl"}catch(q){H(q)}return"linux"}return"unknown"}catch(q){return H(q),"unknown"}}),f=N(()=>{if(process.platform!=="linux")return;try{let q=J().readFileSync("/proc/version",{encoding:"utf8"}),x=q.match(/WSL(\d+)/i);if(x&&x[1])return x[1];if(q.toLowerCase().includes("microsoft"))return"1";return}catch(q){H(q);return}}),y=N(async()=>{if(process.platform!=="linux")return;let q={linuxKernel:Y()};try{let x=await X("/etc/os-release","utf8");for(let L of x.split(`
2
+ import{I8 as H,N8 as U}from"./cli-eehgc06t.js";import{p_ as J,t_ as T}from"./cli-bqs5smsv.js";import{jda as Q}from"./cli-2afdzhna.js";import{readdir as W,readFile as X}from"fs/promises";import N from"lodash-es/memoize.js";import{release as Y}from"os";async function D(q){let x=new Set;if(process.env.P4PORT)x.add("perforce");try{let L=q??J().cwd(),B=new Set(await W(L));for(let[G,P]of Z)if(B.has(G))x.add(P)}catch{}return[...x]}var _,b,f,y,Z;var $=Q(()=>{T();U();_=["macos","wsl"],b=N(()=>{try{if(process.platform==="darwin")return"macos";if(process.platform==="win32")return"windows";if(process.platform==="linux"){try{let q=J().readFileSync("/proc/version",{encoding:"utf8"});if(q.toLowerCase().includes("microsoft")||q.toLowerCase().includes("wsl"))return"wsl"}catch(q){H(q)}return"linux"}return"unknown"}catch(q){return H(q),"unknown"}}),f=N(()=>{if(process.platform!=="linux")return;try{let q=J().readFileSync("/proc/version",{encoding:"utf8"}),x=q.match(/WSL(\d+)/i);if(x&&x[1])return x[1];if(q.toLowerCase().includes("microsoft"))return"1";return}catch(q){H(q);return}}),y=N(async()=>{if(process.platform!=="linux")return;let q={linuxKernel:Y()};try{let x=await X("/etc/os-release","utf8");for(let L of x.split(`
3
3
  `)){let B=L.match(/^(ID|VERSION_ID)=(.*)$/);if(B&&B[1]&&B[2]){let G=B[2].replace(/^"|"$/g,"");if(B[1]==="ID")q.linuxDistroId=G;else q.linuxDistroVersion=G}}}catch{}return q}),Z=[[".git","git"],[".hg","mercurial"],[".svn","svn"],[".p4config","perforce"],["$tf","tfs"],[".tfvc","tfs"],[".jj","jujutsu"],[".sl","sapling"]]});
4
- export{_ as b5,b as c5,f as d5,y as e5,D as f5,$ as g5};
4
+ export{_ as d5,b as e5,f as f5,y as g5,D as h5,$ as i5};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{VE as I,aj as J,bj as f,gw as Q,hE as W,jw as F}from"./cli-b3k8arn1.js";import{V7 as B,W7 as H,q8 as $}from"./cli-8kpqq0ea.js";import{dda as Z,g$ as v}from"./cli-tafg3e9w.js";import{hda as Y}from"./cli-qwx84m9c.js";import{randomUUID as P}from"crypto";import U from"strip-ansi";function L(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??P(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${B}>`)||h.content.includes(`<${H}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=U(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:W({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function r(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===J){let y=Q();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Y(()=>{Z();$();f();I();F()});
2
+ import{XE as I,aj as J,bj as f,iw as Q,jE as W,lw as F}from"./cli-63389c5w.js";import{X7 as B,Y7 as H,s8 as $}from"./cli-eehgc06t.js";import{fda as Z,i$ as v}from"./cli-ktzb7cwm.js";import{jda as Y}from"./cli-2afdzhna.js";import{randomUUID as P}from"crypto";import U from"strip-ansi";function L(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:h.message,uuid:h.uuid,requestId:void 0,timestamp:new Date().toISOString()}];case"user":return[{type:"user",message:h.message,uuid:h.uuid??P(),timestamp:h.timestamp??new Date().toISOString(),isMeta:h.isSynthetic}];case"system":if(h.subtype==="compact_boundary")return[{type:"system",content:"Conversation compacted",level:"info",subtype:"compact_boundary",compactMetadata:X(h.compact_metadata),uuid:h.uuid,timestamp:new Date().toISOString()}];return[];default:return[]}})}function V(j){let h=j.preservedSegment;return{trigger:j.trigger,pre_tokens:j.preTokens,...h&&{preserved_segment:{head_uuid:h.headUuid,anchor_uuid:h.anchorUuid,tail_uuid:h.tailUuid}}}}function X(j){let h=j.preserved_segment;return{trigger:j.trigger,preTokens:j.pre_tokens,...h&&{preservedSegment:{headUuid:h.head_uuid,anchorUuid:h.anchor_uuid,tailUuid:h.tail_uuid}}}}function S(j){return j.flatMap((h)=>{switch(h.type){case"assistant":return[{type:"assistant",message:z(h),session_id:v(),parent_tool_use_id:null,uuid:h.uuid,error:h.error}];case"user":return[{type:"user",message:h.message,session_id:v(),parent_tool_use_id:null,uuid:h.uuid,timestamp:h.timestamp,isSynthetic:h.isMeta||h.isVisibleInTranscriptOnly,...h.toolUseResult!==void 0?{tool_use_result:h.toolUseResult}:{}}];case"system":if(h.subtype==="compact_boundary"&&h.compactMetadata)return[{type:"system",subtype:"compact_boundary",session_id:v(),uuid:h.uuid,compact_metadata:V(h.compactMetadata)}];if(h.subtype==="local_command"&&(h.content.includes(`<${B}>`)||h.content.includes(`<${H}>`)))return[w(h.content,h.uuid)];return[];default:return[]}})}function w(j,h){let x=U(j).replace(/<local-command-stdout>([\s\S]*?)<\/local-command-stdout>/,"$1").replace(/<local-command-stderr>([\s\S]*?)<\/local-command-stderr>/,"$1").trim();return{type:"assistant",message:W({content:x}).message,parent_tool_use_id:null,session_id:v(),uuid:h}}function r(j){if(!j)return;return{status:j.status,...j.resetsAt!==void 0&&{resetsAt:j.resetsAt},...j.rateLimitType!==void 0&&{rateLimitType:j.rateLimitType},...j.utilization!==void 0&&{utilization:j.utilization},...j.overageStatus!==void 0&&{overageStatus:j.overageStatus},...j.overageResetsAt!==void 0&&{overageResetsAt:j.overageResetsAt},...j.overageDisabledReason!==void 0&&{overageDisabledReason:j.overageDisabledReason},...j.isUsingOverage!==void 0&&{isUsingOverage:j.isUsingOverage},...j.surpassedThreshold!==void 0&&{surpassedThreshold:j.surpassedThreshold}}}function z(j){let h=j.message.content;if(!Array.isArray(h))return j.message;let x=h.map((q)=>{if(q.type!=="tool_use")return q;if(q.name===J){let y=Q();if(y)return{...q,input:{...q.input,plan:y}}}return q});return{...j.message,content:x}}var G=Y(()=>{Z();$();f();I();F()});
3
3
  export{L as Tb,V as Ub,X as Vb,S as Wb,w as Xb,r as Yb,G as Zb};