@unieai/code 0.0.11 → 0.0.13

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 (436) hide show
  1. package/dist/chunks/App-ncpmz34p.js +2 -0
  2. package/dist/chunks/ApproveApiKey-fqzjf1j3.js +2 -0
  3. package/dist/chunks/{assistant-ftzr3mjp.js → AssistantSessionChooser-wxmyvgcf.js} +1 -1
  4. package/dist/chunks/BypassPermissionsModeDialog-3ksmd8pp.js +2 -0
  5. package/dist/chunks/{ClaudeInChromeOnboarding-qa0pvwfw.js → ClaudeInChromeOnboarding-ckjppjhr.js} +1 -1
  6. package/dist/chunks/ClaudeMdExternalIncludesDialog-rrsfavte.js +2 -0
  7. package/dist/chunks/ConsoleOAuthFlow-04xt4sby.js +2 -0
  8. package/dist/chunks/{DiffDialog-t6vvtbb2.js → DiffDialog-ptnc4sgx.js} +1 -1
  9. package/dist/chunks/Doctor-kg5m2zma.js +2 -0
  10. package/dist/chunks/Grove-rf9xhe2e.js +2 -0
  11. package/dist/chunks/{ITermBackend-73waaahf.js → ITermBackend-wgbbpgpy.js} +1 -1
  12. package/dist/chunks/{InProcessTransport-qwjgb17j.js → InProcessTransport-vgh7qgjn.js} +1 -1
  13. package/dist/chunks/{InvalidConfigDialog-zmqw3fj1.js → InvalidConfigDialog-6spqsgmr.js} +1 -1
  14. package/dist/chunks/InvalidSettingsDialog-m6y6esgz.js +2 -0
  15. package/dist/chunks/{Onboarding-p0tq6pgz.js → Onboarding-j1m69bqm.js} +1 -1
  16. package/dist/chunks/REPL-qyytrhe5.js +2 -0
  17. package/dist/chunks/{ResumeConversation-krn9hqb1.js → ResumeConversation-wfhd5xb2.js} +1 -1
  18. package/dist/chunks/{SnapshotUpdateDialog-raq029pd.js → SnapshotUpdateDialog-aya2c2f9.js} +1 -1
  19. package/dist/chunks/{TeleportProgress-vyy2k3bv.js → TeleportProgress-kn3qgvd9.js} +1 -1
  20. package/dist/chunks/{TeleportRepoMismatchDialog-ff0h2cnq.js → TeleportRepoMismatchDialog-01v6e2qz.js} +1 -1
  21. package/dist/chunks/{TeleportResumeWrapper-esjykret.js → TeleportResumeWrapper-48dsm503.js} +1 -1
  22. package/dist/chunks/{TmuxBackend-14kmnkcb.js → TmuxBackend-s0bt8zqj.js} +1 -1
  23. package/dist/chunks/ToolSearchTool-4rm3kr13.js +2 -0
  24. package/dist/chunks/{TrustDialog-7fvaze2x.js → TrustDialog-xtn3kq0n.js} +1 -1
  25. package/dist/chunks/TungstenTool-3wjjz6cf.js +2 -0
  26. package/dist/chunks/{add-dir-kqw72mky.js → add-dir-z0kz5nf7.js} +1 -1
  27. package/dist/chunks/{agents-z66twpqr.js → agents-ex4cdx64.js} +1 -1
  28. package/dist/chunks/agents-w6zde2j9.js +4 -0
  29. package/dist/chunks/ant-claude-for-chrome-mcp-gr0b0jr4.js +2 -0
  30. package/dist/chunks/api-07pqphw5.js +2 -0
  31. package/dist/chunks/asciicast-2k1ztt6v.js +2 -0
  32. package/dist/chunks/{AssistantSessionChooser-g1vsya6h.js → assistant-bmwndz7j.js} +1 -1
  33. package/dist/chunks/{auth-wk077awh.js → auth-g2p039wk.js} +1 -1
  34. package/dist/chunks/auth-g509w5pr.js +2 -0
  35. package/dist/chunks/backgroundHousekeeping-hw0chw1d.js +2 -0
  36. package/dist/chunks/{branch-1d0b8590.js → branch-rdvbhvts.js} +1 -1
  37. package/dist/chunks/{bridgePointer-vhd47np6.js → bridgePointer-9rqn5tp6.js} +1 -1
  38. package/dist/chunks/{btw-s3r5jhyd.js → btw-xts6twbq.js} +1 -1
  39. package/dist/chunks/{buddy-xzm5npk8.js → buddy-yc09g048.js} +1 -1
  40. package/dist/chunks/{cachedMicrocompact-6j3zxr4g.js → cachedMicrocompact-fa2mdnyh.js} +1 -1
  41. package/dist/chunks/caches-3qzm958c.js +2 -0
  42. package/dist/chunks/{chrome-mdyx0s5j.js → chrome-gb6g0d5p.js} +1 -1
  43. package/dist/chunks/{chromeNativeHost-8wc6wcr6.js → chromeNativeHost-jsntnc29.js} +1 -1
  44. package/dist/chunks/{claudeDesktop-p5bfxmvz.js → claudeDesktop-me56qerx.js} +1 -1
  45. package/dist/chunks/{cleanup-q46nbce1.js → cleanup-hxj6tm50.js} +1 -1
  46. package/dist/chunks/clear-ssfbry3k.js +2 -0
  47. package/dist/chunks/{cli-bmk0rb5v.js → cli-07f2hk9d.js} +1 -1
  48. package/dist/chunks/{cli-h4a90xbh.js → cli-0nz8v3dj.js} +1 -1
  49. package/dist/chunks/{cli-fwrj8ybs.js → cli-16k24hzp.js} +1 -1
  50. package/dist/chunks/{cli-msmzt4c3.js → cli-192xnkcx.js} +1 -1
  51. package/dist/chunks/{cli-g4n9das2.js → cli-1eejy071.js} +1 -1
  52. package/dist/chunks/{cli-3m8n808e.js → cli-1p7nc6zb.js} +1 -1
  53. package/dist/chunks/{cli-s160fqyz.js → cli-1q1b8rgs.js} +1 -1
  54. package/dist/chunks/{cli-99mqr54v.js → cli-222ywgt0.js} +1 -1
  55. package/dist/chunks/{cli-f63fdj4w.js → cli-2428yw99.js} +1 -1
  56. package/dist/chunks/{cli-v943fd6a.js → cli-2fqrjjs9.js} +1 -1
  57. package/dist/chunks/{cli-t4j047cx.js → cli-2j6cv2kz.js} +1 -1
  58. package/dist/chunks/{cli-xpa1neza.js → cli-2sbq6ggm.js} +2 -2
  59. package/dist/chunks/{cli-8qd16mt4.js → cli-33tchr20.js} +1 -1
  60. package/dist/chunks/{cli-zjbzak9n.js → cli-3619x17q.js} +1 -1
  61. package/dist/chunks/{cli-gtm212j6.js → cli-3hrmwgsv.js} +1 -1
  62. package/dist/chunks/{cli-hzr2zraz.js → cli-3tkd82y4.js} +1 -1
  63. package/dist/chunks/{cli-zev50xap.js → cli-3tmtx9ka.js} +1 -1
  64. package/dist/chunks/{cli-xfsqvp8r.js → cli-4pwyex04.js} +1 -1
  65. package/dist/chunks/{cli-jj93qmmc.js → cli-5ajcy93q.js} +2 -2
  66. package/dist/chunks/{cli-0w4wc1z0.js → cli-5kehgkgh.js} +1 -1
  67. package/dist/chunks/{cli-fghyxar5.js → cli-601zv0wv.js} +1 -1
  68. package/dist/chunks/{cli-r3etpht1.js → cli-609dp2ck.js} +1 -1
  69. package/dist/chunks/{cli-ns0aaggm.js → cli-63wps6p0.js} +1 -1
  70. package/dist/chunks/{cli-m0z3rmf0.js → cli-64x5ghm5.js} +1 -1
  71. package/dist/chunks/{cli-de1hwp88.js → cli-67azkkwm.js} +1 -1
  72. package/dist/chunks/{cli-dbdqrqmt.js → cli-6cqemsm9.js} +1 -1
  73. package/dist/chunks/{cli-27mzrnr8.js → cli-6ee37m6j.js} +1 -1
  74. package/dist/chunks/{cli-mb1qrqw1.js → cli-6qt2xm18.js} +1 -1
  75. package/dist/chunks/{cli-49m97nbg.js → cli-7ed2q42n.js} +1 -1
  76. package/dist/chunks/{cli-s9fhtgmz.js → cli-7jw2qe69.js} +1 -1
  77. package/dist/chunks/cli-7k17xstr.js +3 -0
  78. package/dist/chunks/{cli-61x73ksv.js → cli-7n4d5yzr.js} +1 -1
  79. package/dist/chunks/{cli-p0vh69b9.js → cli-7wxv39ry.js} +2 -2
  80. package/dist/chunks/{cli-15sqp3mq.js → cli-8h10q2x8.js} +1 -1
  81. package/dist/chunks/{cli-yqbvprz7.js → cli-8j0b3b55.js} +1 -1
  82. package/dist/chunks/{cli-akcxtvv9.js → cli-8jym9hp6.js} +1 -1
  83. package/dist/chunks/{cli-4ewb3q42.js → cli-8kpqq0ea.js} +2 -2
  84. package/dist/chunks/{cli-2rw44zfx.js → cli-8xyb31dy.js} +1 -1
  85. package/dist/chunks/cli-8xz7dd7z.js +3 -0
  86. package/dist/chunks/{cli-g5wq5ptg.js → cli-8ykv66e4.js} +1 -1
  87. package/dist/chunks/{cli-jegyadmb.js → cli-8z8d5bgb.js} +1 -1
  88. package/dist/chunks/{cli-cqkne34j.js → cli-93sm9n17.js} +1 -1
  89. package/dist/chunks/{cli-q0156x0d.js → cli-97vx3m99.js} +1 -1
  90. package/dist/chunks/{cli-1jp3rm7n.js → cli-9e8f55fp.js} +1 -1
  91. package/dist/chunks/{cli-2wd8eaac.js → cli-9hqmq5g6.js} +1 -1
  92. package/dist/chunks/{cli-6bxfdgv1.js → cli-9tbmrp89.js} +1 -1
  93. package/dist/chunks/{cli-5dt9yjha.js → cli-9xtyh8c7.js} +1 -1
  94. package/dist/chunks/{cli-sh9w2tbd.js → cli-a1cx6p3g.js} +1 -1
  95. package/dist/chunks/{cli-ja540nr7.js → cli-a1dqnvy2.js} +1 -1
  96. package/dist/chunks/{cli-wt2bfbn0.js → cli-a25jeqs8.js} +1 -1
  97. package/dist/chunks/{cli-x8xgga1a.js → cli-a2d962bq.js} +2 -2
  98. package/dist/chunks/{cli-h120wpk2.js → cli-a826q5zk.js} +1 -1
  99. package/dist/chunks/{cli-k4v08k8t.js → cli-an97yxg9.js} +1 -1
  100. package/dist/chunks/{cli-m12smc5e.js → cli-asc9xmsr.js} +1 -1
  101. package/dist/chunks/{cli-hke6r0q8.js → cli-awb77t95.js} +2 -2
  102. package/dist/chunks/{cli-6yprtw88.js → cli-awe5yg6m.js} +1 -1
  103. package/dist/chunks/{cli-15w3eaed.js → cli-ax0ckqpv.js} +1 -1
  104. package/dist/chunks/{cli-mbp8f3f3.js → cli-b29enbbc.js} +1 -1
  105. package/dist/chunks/{cli-me4e2p3e.js → cli-b3k8arn1.js} +25 -25
  106. package/dist/chunks/{cli-c22wpdk4.js → cli-b5z57an7.js} +1 -1
  107. package/dist/chunks/{cli-0dc8sd37.js → cli-b8j8bm5m.js} +1 -1
  108. package/dist/chunks/{cli-51720d82.js → cli-bdgrtpsy.js} +2 -2
  109. package/dist/chunks/{cli-yrwenjxs.js → cli-bfm3f0yw.js} +1 -1
  110. package/dist/chunks/{cli-764c4bsm.js → cli-bj0csmzs.js} +1 -1
  111. package/dist/chunks/{cli-ms5j6fff.js → cli-bnr79ddy.js} +1 -1
  112. package/dist/chunks/{cli-a52ra30v.js → cli-bpj9na88.js} +1 -1
  113. package/dist/chunks/{cli-v9f860t5.js → cli-brr3bnrj.js} +1 -1
  114. package/dist/chunks/{cli-eyw3czmn.js → cli-bzrat9yd.js} +1 -1
  115. package/dist/chunks/{cli-msw0vv86.js → cli-ca1jmr8f.js} +1 -1
  116. package/dist/chunks/{cli-br6zjh6x.js → cli-ceas97gw.js} +1 -1
  117. package/dist/chunks/{cli-kqv5b8zh.js → cli-cfbfexxj.js} +1 -1
  118. package/dist/chunks/{cli-tckzkegq.js → cli-chvks6bg.js} +1 -1
  119. package/dist/chunks/cli-cmh6qwg8.js +3 -0
  120. package/dist/chunks/{cli-khs3sj9k.js → cli-d1w21hsm.js} +1 -1
  121. package/dist/chunks/{cli-z5e72gsd.js → cli-d2pn0xfj.js} +1 -1
  122. package/dist/chunks/{cli-fm14mg07.js → cli-df5r5xrp.js} +1 -1
  123. package/dist/chunks/{cli-2rwjx3w0.js → cli-dx0pk7k2.js} +1 -1
  124. package/dist/chunks/{cli-p2cqnrnp.js → cli-dy9qrrps.js} +1 -1
  125. package/dist/chunks/{cli-q46epwyh.js → cli-e3q6b1cv.js} +1 -1
  126. package/dist/chunks/{cli-fs7yttfp.js → cli-e4a4fjx9.js} +2 -2
  127. package/dist/chunks/{cli-t9jht3kb.js → cli-e5yek4vx.js} +2 -2
  128. package/dist/chunks/{cli-5f0w3fy6.js → cli-e9t5kfxm.js} +1 -1
  129. package/dist/chunks/{cli-1n8he7s8.js → cli-eh1wx76n.js} +1 -1
  130. package/dist/chunks/{cli-d0hzw78c.js → cli-ez2xsd4m.js} +1 -1
  131. package/dist/chunks/{cli-n5s5fnyj.js → cli-fdjfk8yq.js} +2 -2
  132. package/dist/chunks/{cli-rvad3yhg.js → cli-fnt125we.js} +2 -2
  133. package/dist/chunks/{cli-0qt9btbe.js → cli-fz053waw.js} +1 -1
  134. package/dist/chunks/{cli-89x414pj.js → cli-g2s3391y.js} +1 -1
  135. package/dist/chunks/cli-geka8fb7.js +3 -0
  136. package/dist/chunks/{cli-73jf8hyz.js → cli-gfweqbpz.js} +1 -1
  137. package/dist/chunks/{cli-tfv2qcgf.js → cli-gypyp608.js} +1 -1
  138. package/dist/chunks/{cli-1ny2386w.js → cli-h2t2hyz7.js} +1 -1
  139. package/dist/chunks/{cli-zp8s7q5w.js → cli-hp5gs22f.js} +1 -1
  140. package/dist/chunks/{cli-pgg33dhw.js → cli-hpxspent.js} +1 -1
  141. package/dist/chunks/{cli-ezs5sney.js → cli-hrmzaf5d.js} +2 -2
  142. package/dist/chunks/{cli-8dmy2s42.js → cli-hs2k9997.js} +1 -1
  143. package/dist/chunks/{cli-19ncan36.js → cli-j403r21v.js} +1 -1
  144. package/dist/chunks/{cli-wn2srq2e.js → cli-j4r75xsd.js} +1 -1
  145. package/dist/chunks/{cli-5vsnhp97.js → cli-jmq1x925.js} +1 -1
  146. package/dist/chunks/{cli-sycqd3xe.js → cli-jnc0ze6w.js} +4 -4
  147. package/dist/chunks/{cli-4nejhkd0.js → cli-jrwh6rs0.js} +1 -1
  148. package/dist/chunks/{cli-vwg0v35a.js → cli-jz50hv3m.js} +1 -1
  149. package/dist/chunks/{cli-vkvmhjha.js → cli-jz8jcrhh.js} +1 -1
  150. package/dist/chunks/{cli-nvnj7r73.js → cli-ktzyyx91.js} +1 -1
  151. package/dist/chunks/{cli-9aq7vxaq.js → cli-kx3r72jp.js} +1 -1
  152. package/dist/chunks/{cli-tyqh91zq.js → cli-m3r80gy0.js} +1 -1
  153. package/dist/chunks/{cli-9z9r2set.js → cli-m6amgxq3.js} +1 -1
  154. package/dist/chunks/{cli-qaxvg7gv.js → cli-mcbntv3p.js} +1 -1
  155. package/dist/chunks/{cli-pbc8sk2d.js → cli-mx33m3gs.js} +1 -1
  156. package/dist/chunks/{cli-r83ttew2.js → cli-n5wt59z1.js} +1 -1
  157. package/dist/chunks/{cli-gq5fve62.js → cli-nqvfpxp6.js} +1 -1
  158. package/dist/chunks/{cli-zpcncwrv.js → cli-pgjnzqk4.js} +1 -1
  159. package/dist/chunks/{cli-6pdpyz1a.js → cli-phwbqkv7.js} +1 -1
  160. package/dist/chunks/{cli-57yrpnaq.js → cli-ps5qshk4.js} +1 -1
  161. package/dist/chunks/{cli-4mvvtchx.js → cli-psqvdh1r.js} +1 -1
  162. package/dist/chunks/{cli-gxgdnjfn.js → cli-q0vret0x.js} +1 -1
  163. package/dist/chunks/{cli-zxdnz6vp.js → cli-q2g5mjv6.js} +1 -1
  164. package/dist/chunks/{cli-tq5z9qv3.js → cli-q8zmmp6z.js} +2 -2
  165. package/dist/chunks/{cli-j08dmxw5.js → cli-qpjkqhg2.js} +1 -1
  166. package/dist/chunks/{cli-scaqq0v9.js → cli-qrmc38f8.js} +1 -1
  167. package/dist/chunks/{cli-w1d8n9g3.js → cli-qwx84m9c.js} +1 -1
  168. package/dist/chunks/{cli-s6vr7213.js → cli-r43jhzwm.js} +1 -1
  169. package/dist/chunks/{cli-x70v8rsj.js → cli-rc3w6tqd.js} +2 -2
  170. package/dist/chunks/{cli-7c99j0pt.js → cli-rd5ax7sn.js} +1 -1
  171. package/dist/chunks/{cli-m8fq163z.js → cli-rjy86nps.js} +1 -1
  172. package/dist/chunks/cli-rwh0a2m1.js +3 -0
  173. package/dist/chunks/{cli-3gwqrmcd.js → cli-ry9g546q.js} +1 -1
  174. package/dist/chunks/{cli-8mk2zg4a.js → cli-rz03bav0.js} +1 -1
  175. package/dist/chunks/{cli-66jj9zj3.js → cli-sbm8tsyq.js} +1 -1
  176. package/dist/chunks/{cli-55ntywtj.js → cli-shsgq494.js} +1 -1
  177. package/dist/chunks/{cli-tt9a4124.js → cli-sr25begm.js} +1 -1
  178. package/dist/chunks/{cli-c60c9qvm.js → cli-swrtc7tv.js} +1 -1
  179. package/dist/chunks/{cli-cwbxhdt1.js → cli-sxe9wke0.js} +1 -1
  180. package/dist/chunks/{cli-qm684n63.js → cli-szxfz15b.js} +1 -1
  181. package/dist/chunks/{cli-w52yvzkn.js → cli-t4see9hh.js} +2 -2
  182. package/dist/chunks/cli-t5ddsvmv.js +3 -0
  183. package/dist/chunks/cli-t5yqvdb3.js +3 -0
  184. package/dist/chunks/{cli-wbe1p8n2.js → cli-t7sx6zqn.js} +1 -1
  185. package/dist/chunks/cli-t8ydjjs7.js +3 -0
  186. package/dist/chunks/{cli-3ac555qw.js → cli-tafg3e9w.js} +2 -2
  187. package/dist/chunks/{cli-zjfya500.js → cli-tpjr1pz9.js} +1 -1
  188. package/dist/chunks/{cli-d53fhs6v.js → cli-vb6aa4jk.js} +1 -1
  189. package/dist/chunks/{cli-749tdaqc.js → cli-vfh77r55.js} +1 -1
  190. package/dist/chunks/{cli-jkj867t1.js → cli-vm7dr5aa.js} +2 -2
  191. package/dist/chunks/{cli-k2nh5cby.js → cli-vqne1z50.js} +1 -1
  192. package/dist/chunks/{cli-42kma5r3.js → cli-vtsy70mz.js} +1 -1
  193. package/dist/chunks/{cli-mj03488e.js → cli-vy3e90k9.js} +1 -1
  194. package/dist/chunks/{cli-vkzp66cm.js → cli-wvctks7e.js} +1 -1
  195. package/dist/chunks/{cli-er7z496e.js → cli-wznsj6nb.js} +1 -1
  196. package/dist/chunks/{cli-msgx4pnp.js → cli-x9s7jxq5.js} +1 -1
  197. package/dist/chunks/{cli-grxvgq2n.js → cli-xqqnx8gk.js} +1 -1
  198. package/dist/chunks/{cli-rjerv816.js → cli-yaxs01at.js} +2 -2
  199. package/dist/chunks/{cli-fdya77ch.js → cli-yb5m6jwq.js} +3 -3
  200. package/dist/chunks/{cli-mzcsnm06.js → cli-yfb8bk69.js} +2 -2
  201. package/dist/chunks/{cli-rxb5q8zw.js → cli-yktdhy9p.js} +2 -2
  202. package/dist/chunks/{cli-4a4bb1kf.js → cli-yt4ezhhk.js} +1 -1
  203. package/dist/chunks/{cli-jgn9jprh.js → cli-yxsn8ang.js} +1 -1
  204. package/dist/chunks/{cli-350pymj4.js → cli-z02gsrtd.js} +2 -2
  205. package/dist/chunks/{cli-xmgm2573.js → cli-z2ewnqgr.js} +2 -2
  206. package/dist/chunks/{cli-r9db9mqv.js → cli-zqrzc3qx.js} +1 -1
  207. package/dist/chunks/{cli-wm8qb6j3.js → cli-zwn9x1p2.js} +1 -1
  208. package/dist/chunks/{cli-kq16afrr.js → cli-zxe1a0ey.js} +2 -2
  209. package/dist/chunks/client-qxx2ja27.js +2 -0
  210. package/dist/chunks/color-k1ew8kzn.js +2 -0
  211. package/dist/chunks/commitAttribution-nsa26sdx.js +2 -0
  212. package/dist/chunks/common-7t28qq0q.js +2 -0
  213. package/dist/chunks/{compact-zmvj1pk0.js → compact-kysg5kxd.js} +1 -1
  214. package/dist/chunks/config-d4kj5q8e.js +2 -0
  215. package/dist/chunks/{config-gj0gbg5g.js → config-txzzncm9.js} +1 -1
  216. package/dist/chunks/{context-h1qc69rg.js → context-aat04hqp.js} +1 -1
  217. package/dist/chunks/context-noninteractive-w54t6xnc.js +2 -0
  218. package/dist/chunks/conversation-brecqh0t.js +2 -0
  219. package/dist/chunks/{copy-76r9v46d.js → copy-zpvnnk85.js} +1 -1
  220. package/dist/chunks/cost-5fbyws6x.js +5 -0
  221. package/dist/chunks/createSession-hsp3x7vw.js +2 -0
  222. package/dist/chunks/desktop-7kdmxet0.js +2 -0
  223. package/dist/chunks/detectRepository-9xqead5f.js +2 -0
  224. package/dist/chunks/detection-z3cdks0s.js +2 -0
  225. package/dist/chunks/{devtools-10ba48t9.js → devtools-7jd4m7th.js} +1 -1
  226. package/dist/chunks/{diff-05xxjeqc.js → diff-xaw6ebj0.js} +1 -1
  227. package/dist/chunks/doctor-nbm4z0tx.js +2 -0
  228. package/dist/chunks/{earlyInput-navj6cdn.js → earlyInput-e8zh4d2d.js} +1 -1
  229. package/dist/chunks/{effort-a190c878.js → effort-bj5x7fcg.js} +1 -1
  230. package/dist/chunks/executor-e1744nra.js +2 -0
  231. package/dist/chunks/exit-894g29w2.js +2 -0
  232. package/dist/chunks/{export-ct4sty4d.js → export-tjrkechp.js} +1 -1
  233. package/dist/chunks/extra-usage-noninteractive-577ac873.js +2 -0
  234. package/dist/chunks/extra-usage-tfwmdc7z.js +2 -0
  235. package/dist/chunks/fast-1krm57mn.js +2 -0
  236. package/dist/chunks/feedback-2421cbpm.js +2 -0
  237. package/dist/chunks/{files-qrrrkjke.js → files-n3b22fs2.js} +1 -1
  238. package/dist/chunks/firstPartyEventLogger-1kwwcqdn.js +2 -0
  239. package/dist/chunks/gates-sd1cp8f2.js +2 -0
  240. package/dist/chunks/git-t6e9xdt2.js +2 -0
  241. package/dist/chunks/goal-0sxyk3va.js +2 -0
  242. package/dist/chunks/{growthbook-f7ag30hy.js → growthbook-4hx0kbpq.js} +1 -1
  243. package/dist/chunks/{heapdump-16gnh3zm.js → heapdump-2y7wcy1r.js} +1 -1
  244. package/dist/chunks/{help-rgcakcxe.js → help-a7mc9946.js} +1 -1
  245. package/dist/chunks/{hooks-c7fqwas5.js → hooks-22nm9hn0.js} +1 -1
  246. package/dist/chunks/hooks-tf9v5b0x.js +2 -0
  247. package/dist/chunks/{ide-q83qr9cn.js → ide-9x5zsk63.js} +1 -1
  248. package/dist/chunks/index-p1k4dhfc.js +2 -0
  249. package/dist/chunks/{initReplBridge-zfwxgpsm.js → initReplBridge-xjc6eaan.js} +1 -1
  250. package/dist/chunks/{ink-vkxsn90v.js → ink-9n8bszp5.js} +1 -1
  251. package/dist/chunks/{insights-4fwap4e5.js → insights-n7k1ty4n.js} +1 -1
  252. package/dist/chunks/{install-github-app-djzea7r4.js → install-github-app-zdsmjft8.js} +1 -1
  253. package/dist/chunks/{install-7nxzmgp5.js → install-rhzcmymh.js} +1 -1
  254. package/dist/chunks/install-slack-app-vhfe2dsf.js +2 -0
  255. package/dist/chunks/{instrumentation-223qqr23.js → instrumentation-5jjvsvke.js} +1 -1
  256. package/dist/chunks/keybindings-tqnmw7ng.js +3 -0
  257. package/dist/chunks/loadAgentsDir-j7pntb5v.js +2 -0
  258. package/dist/chunks/loadPluginHooks-sta7ra57.js +2 -0
  259. package/dist/chunks/login-j7x2fjw8.js +2 -0
  260. package/dist/chunks/logout-53bvwba1.js +2 -0
  261. package/dist/chunks/{main-0b8hyp8h.js → main-07p6q3f9.js} +13 -13
  262. package/dist/chunks/{mcp-fn4yrf5y.js → mcp-3mjagnnt.js} +1 -1
  263. package/dist/chunks/{mcp-9enw5a8j.js → mcp-yqhzespv.js} +1 -1
  264. package/dist/chunks/{mcp-yymqpmv6.js → mcp-yrt7dbxp.js} +3 -3
  265. package/dist/chunks/{mcpServer-85gt8ypc.js → mcpServer-f90a93nt.js} +1 -1
  266. package/dist/chunks/{mcpServer-60jg9v58.js → mcpServer-v1dy489g.js} +1 -1
  267. package/dist/chunks/{memory-kam5z1cw.js → memory-mdwb22wh.js} +1 -1
  268. package/dist/chunks/{mobile-7zsgawnb.js → mobile-j4jwvavn.js} +1 -1
  269. package/dist/chunks/{model-03987182.js → model-hz3nn362.js} +1 -1
  270. package/dist/chunks/{model-wbxx5kcd.js → model-tf1ne2j9.js} +1 -1
  271. package/dist/chunks/{oauth-y0p2y1w5.js → oauth-1b0qpxz4.js} +1 -1
  272. package/dist/chunks/{output-style-x148mzhn.js → output-style-t39s3jqx.js} +1 -1
  273. package/dist/chunks/parser-8venanpw.js +2 -0
  274. package/dist/chunks/{passes-jrmjk5zk.js → passes-s3fqswrg.js} +1 -1
  275. package/dist/chunks/{permissions-karmgb0m.js → permissions-a050zfqv.js} +1 -1
  276. package/dist/chunks/plan-gjaybyvb.js +2 -0
  277. package/dist/chunks/plugin-trf2388p.js +2 -0
  278. package/dist/chunks/pluginStartupCheck-wxmc7h98.js +2 -0
  279. package/dist/chunks/{plugins-vvf897b4.js → plugins-4py04yzf.js} +2 -2
  280. package/dist/chunks/{preauthorizedConfig-p02f23jb.js → preauthorizedConfig-hmxcgb8e.js} +1 -1
  281. package/dist/chunks/{print-krwpbp2j.js → print-pmzxgktf.js} +4 -4
  282. package/dist/chunks/privacy-settings-b2rz35r5.js +2 -0
  283. package/dist/chunks/process-n5355p53.js +2 -0
  284. package/dist/chunks/{processBashCommand-8fqgv2ec.js → processBashCommand-zkztsgn4.js} +1 -1
  285. package/dist/chunks/{processSlashCommand-q32wy80b.js → processSlashCommand-mfh1h592.js} +1 -1
  286. package/dist/chunks/prompt-2jyjhkwg.js +2 -0
  287. package/dist/chunks/prompt-b34a0h5z.js +2 -0
  288. package/dist/chunks/provider-prompt-qe4s2yzh.js +2 -0
  289. package/dist/chunks/{rate-limit-options-rd4rjfv5.js → rate-limit-options-kd432dap.js} +1 -1
  290. package/dist/chunks/registry-d7cd5dqg.js +2 -0
  291. package/dist/chunks/release-notes-rwgbn4pp.js +6 -0
  292. package/dist/chunks/reload-plugins-9axdwaaj.js +3 -0
  293. package/dist/chunks/{remote-env-nn9ngr99.js → remote-env-rg4k5em5.js} +1 -1
  294. package/dist/chunks/{remoteBridgeCore-cg7qd8m4.js → remoteBridgeCore-t980tt3v.js} +1 -1
  295. package/dist/chunks/rename-xap3rpbv.js +2 -0
  296. package/dist/chunks/{resume-4rvj8jbz.js → resume-3tc40yn9.js} +1 -1
  297. package/dist/chunks/{rewind-r4g5njsg.js → rewind-b6vg7dxs.js} +1 -1
  298. package/dist/chunks/sandbox-adapter-1z8xktva.js +2 -0
  299. package/dist/chunks/{sandbox-toggle-620bkz9q.js → sandbox-toggle-eke03mr8.js} +1 -1
  300. package/dist/chunks/{session-5vm1vwv1.js → session-53f3eza5.js} +1 -1
  301. package/dist/chunks/sessionFileAccessHooks-xscvsvqt.js +2 -0
  302. package/dist/chunks/{sessionStorage-ffkhmn5q.js → sessionStorage-rb63e8bn.js} +1 -1
  303. package/dist/chunks/settings-hp0ksjn9.js +2 -0
  304. package/dist/chunks/{setup-vegs56f5.js → setup-gravfzvg.js} +1 -1
  305. package/dist/chunks/setup-ssq8b1e6.js +2 -0
  306. package/dist/chunks/{setup-pf09nfsj.js → setup-z05dsr8q.js} +2 -2
  307. package/dist/chunks/sinks-agafqaxj.js +2 -0
  308. package/dist/chunks/{skills-evga8f7n.js → skills-41mfq71n.js} +1 -1
  309. package/dist/chunks/startupProfiler-wmf8nvfd.js +2 -0
  310. package/dist/chunks/state-rhxyy4qm.js +2 -0
  311. package/dist/chunks/{stats-mgqf6r7c.js → stats-7qg84dw1.js} +1 -1
  312. package/dist/chunks/status-sran2y9h.js +2 -0
  313. package/dist/chunks/stickers-hythmrsd.js +2 -0
  314. package/dist/chunks/subprocessEnv-b12dkzky.js +2 -0
  315. package/dist/chunks/{systemPromptSections-07y2z2wn.js → systemPromptSections-jxxyhnxe.js} +1 -1
  316. package/dist/chunks/{tag-gd73kstd.js → tag-58ndeaa9.js} +1 -1
  317. package/dist/chunks/tasks-52g28x72.js +2 -0
  318. package/dist/chunks/{teamHelpers-8ykc4bxa.js → teamHelpers-rxt9rvmd.js} +1 -1
  319. package/dist/chunks/teammateModeSnapshot-2782d4w9.js +2 -0
  320. package/dist/chunks/teleport-8gjys6yn.js +2 -0
  321. package/dist/chunks/terminalSetup-bbftxeqk.js +2 -0
  322. package/dist/chunks/theme-b38te5rz.js +2 -0
  323. package/dist/chunks/thinkback-05a9q24j.js +2 -0
  324. package/dist/chunks/thinkback-play-1nbagfm5.js +2 -0
  325. package/dist/chunks/toolSearch-7rnke366.js +2 -0
  326. package/dist/chunks/trustedDevice-2dn4981h.js +2 -0
  327. package/dist/chunks/{ultrareviewCommand-j23bjbf8.js → ultrareviewCommand-qwnsjdez.js} +1 -1
  328. package/dist/chunks/{update-w8wdxh3m.js → update-ney1krzn.js} +1 -1
  329. package/dist/chunks/upgrade-zxxxfq8c.js +2 -0
  330. package/dist/chunks/{upstreamproxy-x405ef9p.js → upstreamproxy-34wva0r5.js} +1 -1
  331. package/dist/chunks/usage-82ghrfb3.js +2 -0
  332. package/dist/chunks/util-xm9cs164.js +2 -0
  333. package/dist/chunks/utils-zs0ft181.js +2 -0
  334. package/dist/chunks/vim-6gxdrp1k.js +2 -0
  335. package/dist/chunks/worktree-xjxz4ndt.js +2 -0
  336. package/dist/chunks/worktreeModeEnabled-8ndm5yfs.js +2 -0
  337. package/dist/cli.js +1 -1
  338. package/package.json +1 -1
  339. package/preload.ts +24 -2
  340. package/dist/chunks/App-s5ex5j86.js +0 -2
  341. package/dist/chunks/ApproveApiKey-b4z6h2gn.js +0 -2
  342. package/dist/chunks/BypassPermissionsModeDialog-jbg97eja.js +0 -2
  343. package/dist/chunks/ClaudeMdExternalIncludesDialog-gqmed78y.js +0 -2
  344. package/dist/chunks/ConsoleOAuthFlow-yh72vs8j.js +0 -2
  345. package/dist/chunks/Doctor-k08ggw2j.js +0 -2
  346. package/dist/chunks/Grove-tkkskg8n.js +0 -2
  347. package/dist/chunks/InvalidSettingsDialog-tnd5hymg.js +0 -2
  348. package/dist/chunks/REPL-hjjz80kq.js +0 -2
  349. package/dist/chunks/ToolSearchTool-w4t61c7d.js +0 -2
  350. package/dist/chunks/TungstenTool-rv96z549.js +0 -2
  351. package/dist/chunks/agents-3exybgtb.js +0 -4
  352. package/dist/chunks/ant-claude-for-chrome-mcp-712xg07f.js +0 -2
  353. package/dist/chunks/api-z8svc3xt.js +0 -2
  354. package/dist/chunks/asciicast-vzd7qjbb.js +0 -2
  355. package/dist/chunks/auth-gbyfq0g2.js +0 -2
  356. package/dist/chunks/backgroundHousekeeping-m8gthtkh.js +0 -2
  357. package/dist/chunks/caches-fbggdeq7.js +0 -2
  358. package/dist/chunks/clear-fwad6zxy.js +0 -2
  359. package/dist/chunks/cli-55jdp9ky.js +0 -3
  360. package/dist/chunks/cli-78apjp3t.js +0 -3
  361. package/dist/chunks/cli-8hxz2qs6.js +0 -3
  362. package/dist/chunks/cli-95wg48h9.js +0 -3
  363. package/dist/chunks/cli-edkqs0ge.js +0 -3
  364. package/dist/chunks/cli-fakdskp6.js +0 -3
  365. package/dist/chunks/cli-h4dspaac.js +0 -3
  366. package/dist/chunks/cli-przq3zk6.js +0 -3
  367. package/dist/chunks/client-dkpgx025.js +0 -2
  368. package/dist/chunks/color-zrm6r755.js +0 -2
  369. package/dist/chunks/commitAttribution-3y6pessz.js +0 -2
  370. package/dist/chunks/common-0bee37at.js +0 -2
  371. package/dist/chunks/config-hbq35b68.js +0 -2
  372. package/dist/chunks/context-noninteractive-7wbe6qvd.js +0 -2
  373. package/dist/chunks/conversation-fwnfp0p5.js +0 -2
  374. package/dist/chunks/cost-56r5xxqy.js +0 -5
  375. package/dist/chunks/createSession-m5y8fjy4.js +0 -2
  376. package/dist/chunks/desktop-z3jqgnw7.js +0 -2
  377. package/dist/chunks/detectRepository-w6wawmmg.js +0 -2
  378. package/dist/chunks/detection-1yb2c7hh.js +0 -2
  379. package/dist/chunks/doctor-hgwjdraj.js +0 -2
  380. package/dist/chunks/executor-s42mdmqs.js +0 -2
  381. package/dist/chunks/exit-kyrjy6hb.js +0 -2
  382. package/dist/chunks/extra-usage-noninteractive-byts9mme.js +0 -2
  383. package/dist/chunks/extra-usage-xh1mkrca.js +0 -2
  384. package/dist/chunks/fast-g4aa49jf.js +0 -2
  385. package/dist/chunks/feedback-m5r66qd5.js +0 -2
  386. package/dist/chunks/firstPartyEventLogger-mthxtmgc.js +0 -2
  387. package/dist/chunks/gates-yhakv4vb.js +0 -2
  388. package/dist/chunks/git-c39vd9dm.js +0 -2
  389. package/dist/chunks/goal-24dr7fwz.js +0 -2
  390. package/dist/chunks/hooks-8dh43zmv.js +0 -2
  391. package/dist/chunks/index-v875zpde.js +0 -2
  392. package/dist/chunks/install-slack-app-3rde0k08.js +0 -2
  393. package/dist/chunks/keybindings-6t5f69wx.js +0 -3
  394. package/dist/chunks/loadAgentsDir-f8shfnw3.js +0 -2
  395. package/dist/chunks/loadPluginHooks-mdwjrjtp.js +0 -2
  396. package/dist/chunks/login-34j3xdr9.js +0 -2
  397. package/dist/chunks/logout-yew8mymc.js +0 -2
  398. package/dist/chunks/parser-4y4b0e6b.js +0 -2
  399. package/dist/chunks/plan-w0beh9bh.js +0 -2
  400. package/dist/chunks/plugin-6nwptn3s.js +0 -2
  401. package/dist/chunks/pluginStartupCheck-0nzv1ae9.js +0 -2
  402. package/dist/chunks/privacy-settings-m0mfykh0.js +0 -2
  403. package/dist/chunks/process-26nny2p0.js +0 -2
  404. package/dist/chunks/prompt-gw1e1gef.js +0 -2
  405. package/dist/chunks/prompt-xgw2hxrc.js +0 -2
  406. package/dist/chunks/provider-prompt-s26vatcw.js +0 -2
  407. package/dist/chunks/registry-fp7x9ekd.js +0 -2
  408. package/dist/chunks/release-notes-76y1r2s1.js +0 -6
  409. package/dist/chunks/reload-plugins-z0fepkva.js +0 -3
  410. package/dist/chunks/rename-fdjzyjar.js +0 -2
  411. package/dist/chunks/sandbox-adapter-craea9vm.js +0 -2
  412. package/dist/chunks/sessionFileAccessHooks-5jbvwabj.js +0 -2
  413. package/dist/chunks/settings-s2bcajs6.js +0 -2
  414. package/dist/chunks/setup-fwcttwbm.js +0 -2
  415. package/dist/chunks/sinks-wd4ccgbf.js +0 -2
  416. package/dist/chunks/startupProfiler-x5zbs2j7.js +0 -2
  417. package/dist/chunks/state-qpmfrvsv.js +0 -2
  418. package/dist/chunks/status-78yks3jw.js +0 -2
  419. package/dist/chunks/stickers-bdp8w2gr.js +0 -2
  420. package/dist/chunks/subprocessEnv-s797f06r.js +0 -2
  421. package/dist/chunks/tasks-63qaca0z.js +0 -2
  422. package/dist/chunks/teammateModeSnapshot-ae9r29dy.js +0 -2
  423. package/dist/chunks/teleport-es58k4xz.js +0 -2
  424. package/dist/chunks/terminalSetup-gyh5z5e2.js +0 -2
  425. package/dist/chunks/theme-qrhbaht6.js +0 -2
  426. package/dist/chunks/thinkback-5bs7ezv5.js +0 -2
  427. package/dist/chunks/thinkback-play-1dy160y5.js +0 -2
  428. package/dist/chunks/toolSearch-6cv284b7.js +0 -2
  429. package/dist/chunks/trustedDevice-77ketbgg.js +0 -2
  430. package/dist/chunks/upgrade-nft7c1yk.js +0 -2
  431. package/dist/chunks/usage-s5qgc615.js +0 -2
  432. package/dist/chunks/util-1geb93kp.js +0 -2
  433. package/dist/chunks/utils-6sb44pg8.js +0 -2
  434. package/dist/chunks/vim-kq91w44a.js +0 -2
  435. package/dist/chunks/worktree-0af6b1mt.js +0 -2
  436. package/dist/chunks/worktreeModeEnabled-ea6wb7aj.js +0 -2
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{I3 as j,KY as k,NY as O,Q3 as A,V1 as G,X1 as I,XW as K,_W as p,cZ as F,rZ as S,u2 as R,v2 as v}from"./cli-msmzt4c3.js";import{E8 as b,J8 as L}from"./cli-4ewb3q42.js";import{fda as C}from"./cli-w1d8n9g3.js";import c from"axios";import{createHash as N}from"crypto";import B from"lodash-es/memoize.js";function P(Q){return Q.replace(/[A-Z]/g,(Y)=>`_${Y.toLowerCase()}`)}async function y(){if(X.length===0)return;let Q=X;X=[];try{await c.post(_,Q,{headers:{"Content-Type":"application/json","DD-API-KEY":U},timeout:h})}catch(Y){b(Y)}}function g(){if($)return;$=setTimeout(()=>{$=null,y()},d()).unref()}async function $q(){if($)clearTimeout($),$=null;await y()}async function wq(Q,Y){return}function d(){return parseInt(process.env.CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS||"",10)||E}var _="https://http-intake.logs.us5.datadoghq.com/api/v2/logs",U="",E=15000,f=100,h=5000,n,u,X,$=null,Z=null,T,m=30,D;var o=C(()=>{A();L();S();p();O();I();v();n=new Set(["chrome_bridge_connection_succeeded","chrome_bridge_connection_failed","chrome_bridge_disconnected","chrome_bridge_tool_call_completed","chrome_bridge_tool_call_error","chrome_bridge_tool_call_started","chrome_bridge_tool_call_timeout","tengu_api_error","tengu_api_success","tengu_brief_mode_enabled","tengu_brief_mode_toggled","tengu_brief_send","tengu_cancel","tengu_compact_failed","tengu_exit","tengu_flicker","tengu_init","tengu_model_fallback_triggered","tengu_oauth_error","tengu_oauth_success","tengu_oauth_token_refresh_failure","tengu_oauth_token_refresh_success","tengu_oauth_token_refresh_lock_acquiring","tengu_oauth_token_refresh_lock_acquired","tengu_oauth_token_refresh_starting","tengu_oauth_token_refresh_completed","tengu_oauth_token_refresh_lock_releasing","tengu_oauth_token_refresh_lock_released","tengu_query_error","tengu_session_file_read","tengu_started","tengu_tool_use_error","tengu_tool_use_granted_in_prompt_permanent","tengu_tool_use_granted_in_prompt_temporary","tengu_tool_use_rejected_in_prompt","tengu_tool_use_success","tengu_uncaught_exception","tengu_unhandled_rejection","tengu_voice_recording_started","tengu_voice_toggled","tengu_team_mem_sync_pull","tengu_team_mem_sync_push","tengu_team_mem_sync_started","tengu_team_mem_entries_capped"]),u=["arch","clientType","errorType","http_status_range","http_status","kairosActive","model","platform","provider","skillMode","subscriptionType","toolName","userBucket","userType","version","versionBase"];X=[];T=B(async()=>{if(!U||G())return Z=!1,!1;try{return Z=!0,!0}catch(Q){return b(Q),Z=!1,!1}});D=B(()=>{let Q=j(),Y=N("sha256").update(Q).digest("hex");return parseInt(Y.slice(0,8),16)%m})});
2
+ import{I3 as j,KY as k,NY as O,Q3 as A,V1 as G,X1 as I,XW as K,_W as p,cZ as F,rZ as S,u2 as R,v2 as v}from"./cli-192xnkcx.js";import{G8 as b,L8 as L}from"./cli-8kpqq0ea.js";import{hda as C}from"./cli-qwx84m9c.js";import c from"axios";import{createHash as N}from"crypto";import B from"lodash-es/memoize.js";function P(Q){return Q.replace(/[A-Z]/g,(Y)=>`_${Y.toLowerCase()}`)}async function y(){if(X.length===0)return;let Q=X;X=[];try{await c.post(_,Q,{headers:{"Content-Type":"application/json","DD-API-KEY":U},timeout:h})}catch(Y){b(Y)}}function g(){if($)return;$=setTimeout(()=>{$=null,y()},d()).unref()}async function $q(){if($)clearTimeout($),$=null;await y()}async function wq(Q,Y){return}function d(){return parseInt(process.env.CLAUDE_CODE_DATADOG_FLUSH_INTERVAL_MS||"",10)||E}var _="https://http-intake.logs.us5.datadoghq.com/api/v2/logs",U="",E=15000,f=100,h=5000,n,u,X,$=null,Z=null,T,m=30,D;var o=C(()=>{A();L();S();p();O();I();v();n=new Set(["chrome_bridge_connection_succeeded","chrome_bridge_connection_failed","chrome_bridge_disconnected","chrome_bridge_tool_call_completed","chrome_bridge_tool_call_error","chrome_bridge_tool_call_started","chrome_bridge_tool_call_timeout","tengu_api_error","tengu_api_success","tengu_brief_mode_enabled","tengu_brief_mode_toggled","tengu_brief_send","tengu_cancel","tengu_compact_failed","tengu_exit","tengu_flicker","tengu_init","tengu_model_fallback_triggered","tengu_oauth_error","tengu_oauth_success","tengu_oauth_token_refresh_failure","tengu_oauth_token_refresh_success","tengu_oauth_token_refresh_lock_acquiring","tengu_oauth_token_refresh_lock_acquired","tengu_oauth_token_refresh_starting","tengu_oauth_token_refresh_completed","tengu_oauth_token_refresh_lock_releasing","tengu_oauth_token_refresh_lock_released","tengu_query_error","tengu_session_file_read","tengu_started","tengu_tool_use_error","tengu_tool_use_granted_in_prompt_permanent","tengu_tool_use_granted_in_prompt_temporary","tengu_tool_use_rejected_in_prompt","tengu_tool_use_success","tengu_uncaught_exception","tengu_unhandled_rejection","tengu_voice_recording_started","tengu_voice_toggled","tengu_team_mem_sync_pull","tengu_team_mem_sync_push","tengu_team_mem_sync_started","tengu_team_mem_entries_capped"]),u=["arch","clientType","errorType","http_status_range","http_status","kairosActive","model","platform","provider","skillMode","subscriptionType","toolName","userBucket","userType","version","versionBase"];X=[];T=B(async()=>{if(!U||G())return Z=!1,!1;try{return Z=!0,!0}catch(Q){return b(Q),Z=!1,!1}});D=B(()=>{let Q=j(),Y=N("sha256").update(Q).digest("hex");return parseInt(Y.slice(0,8),16)%m})});
3
3
  export{$q as wS,wq as xS,o as yS};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{$3 as H6,R3 as I2,S3 as d6,T3 as V0,W3 as u3,Y3 as k2,b4 as cK}from"./cli-msw0vv86.js";import{D4 as vG,d4 as I6,e4 as uY,f4 as wY,g4 as yZ,h4 as Z9,k4 as q9,q4 as A3,s4 as C3,u4 as k3,v4 as v3}from"./cli-s6vr7213.js";import{J4 as Uq,N4 as W1,O4 as L8}from"./cli-fghyxar5.js";import{W4 as n6}from"./cli-1ny2386w.js";import{$4 as D,a5 as b1}from"./cli-fakdskp6.js";import{c5 as j0,d5 as G4,e5 as M3,f5 as P3,g5 as T2}from"./cli-mb1qrqw1.js";import{v5 as JZ,x5 as T8,z5 as L9}from"./cli-f63fdj4w.js";import{B5 as OX,C5 as $5}from"./cli-k4v08k8t.js";import{D5 as Z4,E5 as SZ}from"./cli-pgg33dhw.js";import{F5 as rX,H5 as oX,S5 as k5,U5 as PJ,Y5 as v5}from"./cli-w52yvzkn.js";import{u6 as n0,z6 as q6}from"./cli-51720d82.js";import{A7 as A4,O6 as Y1,Q6 as N8,c7 as E4,h7 as _q,n7 as E3}from"./cli-fdya77ch.js";import{B7 as pJ,D7 as UV}from"./cli-mzcsnm06.js";import{E7 as K1,F7 as m7,G7 as l4,H7 as p1,I7 as b2}from"./cli-p0vh69b9.js";import{L7 as S0,M7 as S4}from"./cli-rvad3yhg.js";import{A8 as y4,E8 as O,J8 as W0,x8 as J$,y8 as oJ,z8 as X9}from"./cli-4ewb3q42.js";import{W8 as m3,Y8 as F,Z8 as V1}from"./cli-t9jht3kb.js";import{f9 as jG,g9 as yG}from"./cli-350pymj4.js";import{h9 as o$,i9 as DB}from"./cli-rxb5q8zw.js";import{k9 as NQ,l9 as LW,o9 as i,p9 as B3,q9 as s,r9 as E$,s9 as v2}from"./cli-jj93qmmc.js";import{B9 as f,C9 as T0,u9 as i8,v9 as jZ,w9 as P0,y9 as l9,z9 as n9}from"./cli-kq16afrr.js";import{$9 as h$,K9 as _8,M9 as K7,R9 as k4,W9 as u1,X9 as o,Y9 as Y0,Z9 as U1,b_ as N0,d_ as A,e_ as a,f_ as f6,g_ as j9,h_ as X0,i_ as e0,l_ as x,p_ as $1,s_ as t2,v_ as L,x_ as X4,y_ as p}from"./cli-hke6r0q8.js";import{F_ as b,I_ as R,J_ as P4,K_ as C0,M_ as y2,P_ as vZ,R_ as $Z,S_ as j}from"./cli-tq5z9qv3.js";import{Eba as Oq,Gba as $$,Mba as mY,T_ as yY,Taa as u,U_ as SY,Uaa as I3,V_ as fY,Vba as C2,W_ as bY,Waa as T3,X_ as hY,Y_ as pY,Z_ as x2,__ as gY,_aa as _Q,b$ as u6,baa as EQ,bda as n,c$ as m0,d$ as a8,e$ as A0,g$ as x3,k$ as q1,l$ as T4,lba as b6,nba as h6,paa as gQ,rba as o9,sba as s9,taa as DZ,tba as a9,uba as t9,yaa as S2,zaa as p4}from"./cli-3ac555qw.js";import{cda as kG,eda as LV,fda as U,gda as r}from"./cli-w1d8n9g3.js";function W8($){let{buffer:J,bytesRead:Q}=x().readSync($,{length:4096});if(Q===0)return"utf8";if(Q>=2){if(J[0]===255&&J[1]===254)return"utf16le"}if(Q>=3&&J[0]===239&&J[1]===187&&J[2]===191)return"utf8";return"utf8"}function V8($){let J=0,Q=0;for(let X=0;X<$.length;X++)if($[X]===`
2
+ import{$3 as H6,R3 as I2,S3 as d6,T3 as V0,W3 as u3,Y3 as k2,b4 as cK}from"./cli-ca1jmr8f.js";import{D4 as vG,d4 as I6,e4 as uY,f4 as wY,g4 as yZ,h4 as Z9,k4 as q9,q4 as A3,s4 as C3,u4 as k3,v4 as v3}from"./cli-r43jhzwm.js";import{J4 as Uq,N4 as W1,O4 as L8}from"./cli-601zv0wv.js";import{W4 as n6}from"./cli-h2t2hyz7.js";import{$4 as D,a5 as b1}from"./cli-t5ddsvmv.js";import{c5 as j0,d5 as G4,e5 as M3,f5 as P3,g5 as T2}from"./cli-6qt2xm18.js";import{v5 as JZ,x5 as T8,z5 as L9}from"./cli-2428yw99.js";import{B5 as OX,C5 as $5}from"./cli-an97yxg9.js";import{D5 as Z4,E5 as SZ}from"./cli-hpxspent.js";import{G5 as rX,J5 as oX,U5 as k5,W5 as PJ,_5 as v5}from"./cli-t4see9hh.js";import{B6 as q6,w6 as n0}from"./cli-bdgrtpsy.js";import{C7 as A4,Q6 as Y1,S6 as N8,e7 as E4,j7 as _q,p7 as E3}from"./cli-yb5m6jwq.js";import{D7 as pJ,F7 as UV}from"./cli-yfb8bk69.js";import{G7 as K1,H7 as m7,I7 as l4,J7 as p1,K7 as b2}from"./cli-7wxv39ry.js";import{N7 as S0,O7 as S4}from"./cli-fnt125we.js";import{A8 as oJ,B8 as X9,C8 as y4,G8 as O,L8 as W0,z8 as J$}from"./cli-8kpqq0ea.js";import{$8 as V1,Y8 as m3,_8 as F}from"./cli-e5yek4vx.js";import{h9 as jG,i9 as yG}from"./cli-z02gsrtd.js";import{j9 as o$,k9 as DB}from"./cli-yktdhy9p.js";import{m9 as NQ,n9 as LW,q9 as i,r9 as B3,s9 as s,t9 as E$,u9 as v2}from"./cli-5ajcy93q.js";import{A9 as l9,B9 as n9,D9 as f,E9 as T0,w9 as i8,x9 as jZ,y9 as P0}from"./cli-zxe1a0ey.js";import{$9 as U1,A_ as p,M9 as _8,O9 as K7,T9 as k4,Y9 as u1,Z9 as o,_9 as Y0,b_ as h$,d_ as N0,f_ as A,g_ as a,h_ as f6,i_ as j9,j_ as X0,k_ as e0,n_ as x,r_ as $1,u_ as t2,x_ as L,z_ as X4}from"./cli-awb77t95.js";import{H_ as b,K_ as R,L_ as P4,M_ as C0,O_ as y2,R_ as vZ,T_ as $Z,U_ as j}from"./cli-q8zmmp6z.js";import{$_ as x2,Aaa as S2,Baa as p4,Gba as Oq,Iba as $$,Oba as mY,V_ as yY,Vaa as u,W_ as SY,Waa as I3,X_ as fY,Xba as C2,Y_ as bY,Yaa as T3,Z_ as hY,__ as pY,a$ as gY,aba as _Q,d$ as u6,daa as EQ,dda as n,e$ as m0,f$ as a8,g$ as A0,i$ as x3,m$ as q1,n$ as T4,nba as b6,pba as h6,raa as gQ,tba as o9,uba as s9,vaa as DZ,vba as a9,wba as t9}from"./cli-tafg3e9w.js";import{eda as kG,gda as LV,hda as U,ida as r}from"./cli-qwx84m9c.js";function W8($){let{buffer:J,bytesRead:Q}=x().readSync($,{length:4096});if(Q===0)return"utf8";if(Q>=2){if(J[0]===255&&J[1]===254)return"utf16le"}if(Q>=3&&J[0]===239&&J[1]===187&&J[2]===191)return"utf8";return"utf8"}function V8($){let J=0,Q=0;for(let X=0;X<$.length;X++)if($[X]===`
3
3
  `)if(X>0&&$[X-1]==="\r")J++;else Q++;return J>Q?"CRLF":"LF"}function rY($){let J=x(),{resolvedPath:Q,isSymlink:X}=e0(J,$);if(X)L(`Reading through symlink: ${$} -> ${Q}`);let Z=W8(Q),q=J.readFileSync(Q,{encoding:Z}),Y=V8(q.slice(0,4096));return{content:q.replaceAll(`\r
4
4
  `,`
5
5
  `),encoding:Z,lineEndings:Y}}function v0($){return rY($).content}var F2=U(()=>{p();$1()});import{join as oY}from"path";function ZL($){z2=$}function qL(){z2=null,G8=void 0}function YL($){return G8=$,$}function aY(){return oY(b(),sY)}function tY(){try{let $=v0(aY()),J=a(I2($));if(!J||typeof J!=="object"||Array.isArray(J))return null;return J}catch{return null}}function I4(){if(G8!==!0)return null;if(z2)return z2;let $=tY();if($)return z2=$,x2(),$;return null}var sY="remote-settings.json",z2=null,G8;var c6=U(()=>{j();F2();d6();u6();X0()});function K8(){return process.env.USER_TYPE==="ant"?R(process.env.ENABLE_GROWTHBOOK_DEV)?"":"":""}var l6=U(()=>{j()});import eY from"lodash-es/memoize.js";import{homedir as $7}from"os";import{isAbsolute as J7,join as M4,normalize as B8,sep as i6}from"path";function DL(){let $=process.env.CLAUDE_CODE_DISABLE_AUTO_MEMORY;if(R($))return!1;if(P4($))return!0;if(R(process.env.CLAUDE_CODE_SIMPLE))return!1;if(R(process.env.CLAUDE_CODE_REMOTE)&&!process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR)return!1;let J=_0();if(J.autoMemoryEnabled!==void 0)return J.autoMemoryEnabled;return!0}function Q7(){if(process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR)return process.env.CLAUDE_CODE_REMOTE_MEMORY_DIR;return b()}function r6($,J){if(!$)return;let Q=$;if(J&&(Q.startsWith("~/")||Q.startsWith("~\\"))){let Z=Q.slice(2),q=B8(Z||".");if(q==="."||q==="..")return;Q=M4($7(),Z)}let X=B8(Q).replace(/[/\\]+$/,"");if(!J7(X)||X.length<3||/^[A-Za-z]:$/.test(X)||X.startsWith("\\\\")||X.startsWith("//")||X.includes("\x00"))return;return(X+i6).normalize("NFC")}function o6(){return r6(process.env.CLAUDE_COWORK_MEMORY_PATH_OVERRIDE,!1)}function q7(){let $=S("policySettings")?.autoMemoryDirectory??S("flagSettings")?.autoMemoryDirectory??S("localSettings")?.autoMemoryDirectory??S("userSettings")?.autoMemoryDirectory;return r6($,!0)}function OL(){return o6()!==void 0}function Y7(){return E4(T4())??T4()}function a6(){return M4(s6(),Z7)}function FL($){return B8($).startsWith(s6())}var X7="memory",Z7="MEMORY.md",s6;var t6=U(()=>{n();Q1();j();A4();L8();J1();s6=eY(()=>{let $=o6()??q7();if($)return $;let J=M4(Q7(),"projects");return(M4(J,n6(Y7()),X7)+i6).normalize("NFC")},()=>T4())});import e6 from"lodash-es/memoize.js";import{join as W7}from"path";var X1,M2;var C4=U(()=>{T2();X1=e6(function(){if(process.env.USER_TYPE==="ant"&&process.env.CLAUDE_CODE_MANAGED_SETTINGS_PATH)return process.env.CLAUDE_CODE_MANAGED_SETTINGS_PATH;switch(j0()){case"macos":return"/Library/Application Support/ClaudeCode";case"windows":return"C:\\Program Files\\ClaudeCode";default:return"/etc/claude-code"}}),M2=e6(function(){return W7(X1(),"managed-settings.d")})});var V7,G7,PL;var $9=U(()=>{V7=["auto","iterm2","iterm2_with_bell","terminal_bell","kitty","ghostty","notifications_disabled"],G7=["normal","vim"],PL=["auto","tmux","in-process"]});import{randomBytes as U7}from"crypto";import{unwatchFile as H7,watchFile as w7}from"fs";import R7 from"lodash-es/memoize.js";import Y9 from"lodash-es/pickBy.js";import{basename as D8,dirname as O8,join as q0,resolve as E2}from"path";function y0(){return{numStartups:0,installMethod:void 0,autoUpdates:void 0,theme:"dark",preferredNotifChannel:"auto",verbose:!1,editorMode:"normal",autoCompactEnabled:!0,showTurnDuration:!0,hasSeenTasksHint:!1,hasUsedStash:!1,hasUsedBackgroundTask:!1,queuedCommandUpHintCount:0,diffTool:"auto",customApiKeyResponses:{approved:[],rejected:[]},env:{},tipsHistory:{},memoryUsageCount:0,promptQueueUseCount:0,btwUseCount:0,todoFeatureEnabled:!0,showExpandedTodos:!1,messageIdleNotifThresholdMs:60000,autoConnectIde:!1,autoInstallIdeExtension:!0,fileCheckpointingEnabled:!0,terminalProgressBarEnabled:!0,cachedStatsigGates:{},cachedDynamicConfigs:{},cachedGrowthBookFeatures:{},respectGitignore:!0,copyFullResponse:!1}}function $U($){return _7.includes($)}function JU(){W9=!1}function t(){return W9||=D7()}function D7(){if(C2())return!0;let $=I(),J=I8();if($.projects?.[J]?.hasTrustDialogAccepted)return!0;let X=W1(S0());while(!0){if($.projects?.[X]?.hasTrustDialogAccepted)return!0;let q=W1(E2(X,".."));if(q===X)break;X=q}return!1}function QU($){let J=I(),Q=W1(E2($));while(!0){if(J.projects?.[Q]?.hasTrustDialogAccepted)return!0;let X=W1(E2(Q,".."));if(X===Q)return!1;Q=X}}function qU($){return N7.includes($)}function b4($){let J=I0.config;if(!J)return!1;let Q=J.oauthAccount!==void 0&&$.oauthAccount===void 0,X=J.hasCompletedOnboarding===!0&&$.hasCompletedOnboarding!==!0;return Q||X}function l($){let J=null;try{if(G9(i(),y0,(X)=>{let Z=$(X);if(Z===X)return X;return J={...Z,projects:J9(X.projects)},J})&&J)j4(J)}catch(Q){L(`Failed to save config with lock: ${Q}`,{level:"error"});let X=T1(i(),y0);if(b4(X)){L("saveGlobalConfig fallback: re-read config is missing auth that cache has; refusing to write. See GH #3117.",{level:"error"}),F("tengu_config_auth_loss_prevented",{});return}let Z=$(X);if(Z===X)return;J={...Z,projects:J9(X.projects)},V9(i(),J,F8),j4(J)}}function YU(){return z8}function O7(){let $=P2+v4;if($>0)F("tengu_config_cache_stats",{cache_hits:P2,cache_misses:v4,hit_rate:P2/$});P2=0,v4=0}function w8($){if($.installMethod!==void 0)return $;let J=$,Q="unknown",X=$.autoUpdates??!0;switch(J.autoUpdaterStatus){case"migrated":Q="local";break;case"installed":Q="native";break;case"disabled":X=!1;break;case"enabled":case"no_permissions":case"not_configured":Q="global";break;case void 0:break}return{...$,installMethod:Q,autoUpdates:X}}function J9($){if(!$)return $;let J={},Q=!1;for(let[X,Z]of Object.entries($)){let q=Z;if(q.history!==void 0){Q=!0;let{history:Y,...W}=q;J[X]=W}else J[X]=Z}return Q?J:$}function z7(){if(H8)return;H8=!0;let $=i();w7($,{interval:F7,persistent:!1},(J)=>{if(J.mtimeMs<=I0.mtime)return;x().readFile($,{encoding:"utf-8"}).then((Q)=>{if(J.mtimeMs<=I0.mtime)return;let X=V0(I2(Q));if(X===null||typeof X!=="object")return;I0={config:w8({...y0(),...X}),mtime:J.mtimeMs},Z1={mtime:J.mtimeMs,size:J.size}}).catch(()=>{})}),_8(async()=>{H7($),H8=!1})}function j4($){I0={config:$,mtime:Date.now()},Z1=null}function I(){if(I0.config)return P2++,I0.config;v4++;try{let $=null;try{$=x().statSync(i())}catch{}let J=w8(T1(i(),y0));return I0={config:J,mtime:$?.mtimeMs??Date.now()},Z1=$?{mtime:$.mtimeMs,size:$.size}:null,z7(),J}catch{return w8(T1(i(),y0))}}function VU(){let $=I().remoteControlAtStartup;if($!==void 0)return $;return!1}function GU($){let J=I();if(J.customApiKeyResponses?.approved?.includes($))return"approved";if(J.customApiKeyResponses?.rejected?.includes($))return"rejected";return"new"}function V9($,J,Q){let X=O8($);x().mkdirSync(X);let q=Y9(J,(Y,W)=>A(Y)!==A(Q[W]));if(i1($,A(q,null,2),{encoding:"utf-8",mode:384}),$===i())z8++}function G9($,J,Q){let X=J(),Z=O8($),q=x();q.mkdirSync(Z);let Y;try{let W=`${$}.lock`,K=Date.now();Y=Z9($,{lockfilePath:W,onCompromised:(_)=>{L(`Config lock compromised: ${_}`,{level:"error"})}});let B=Date.now()-K;if(B>100)L("Lock acquisition took longer than expected - another Claude instance may be running"),F("tengu_config_lock_contention",{lock_time_ms:B});if(Z1&&$===i())try{let _=q.statSync($);if(_.mtimeMs!==Z1.mtime||_.size!==Z1.size)F("tengu_config_stale_write",{read_mtime:Z1.mtime,write_mtime:_.mtimeMs,read_size:Z1.size,write_size:_.size})}catch(_){if(Y0(_)!=="ENOENT")throw _}let w=T1($,J);if($===i()&&b4(w))return L("saveConfigWithLock: re-read config is missing auth that cache has; refusing to write to avoid wiping ~/.claude.json. See GH #3117.",{level:"error"}),F("tengu_config_auth_loss_prevented",{}),!1;let H=Q(w);if(H===w)return!1;let z=Y9(H,(_,M)=>A(_)!==A(X[M]));try{let _=D8($),M=x8();try{q.mkdirSync(M)}catch(h){if(Y0(h)!=="EEXIST")throw h}let k=60000,F1=q.readdirStringSync(M).filter((h)=>h.startsWith(`${_}.backup.`)).sort().reverse(),z1=F1[0],O2=z1?Number(z1.split(".backup.").pop()):0,x1=Number.isNaN(O2)||Date.now()-O2>=k;if(x1){let h=q0(M,`${_}.backup.${Date.now()}`);q.copyFileSync($,h)}let q8=5,I1=x1?q.readdirStringSync(M).filter((h)=>h.startsWith(`${_}.backup.`)).sort().reverse():F1;for(let h of I1.slice(q8))try{q.unlinkSync(q0(M,h))}catch{}}catch(_){if(Y0(_)!=="ENOENT")L(`Failed to backup config: ${_}`,{level:"error"})}if(i1($,A(z,null,2),{encoding:"utf-8",mode:384}),$===i())z8++;return!0}finally{if(Y)Y()}}function KU(){if(R8)return;let $=Date.now();Y1("info","enable_configs_started"),R8=!0,T1(i(),y0,!0),Y1("info","enable_configs_completed",{duration_ms:Date.now()-$})}function x8(){return q0(b(),"backups")}function Q9($){let J=x(),Q=D8($),X=x8();try{let Y=J.readdirStringSync(X).filter((W)=>W.startsWith(`${Q}.backup.`)).sort().at(-1);if(Y)return q0(X,Y)}catch{}let Z=O8($);try{let Y=J.readdirStringSync(Z).filter((K)=>K.startsWith(`${Q}.backup.`)).sort().at(-1);if(Y)return q0(Z,Y);let W=`${$}.backup`;try{return J.statSync(W),W}catch{}}catch{}return null}function T1($,J,Q){if(!R8)throw Error("Config accessed before allowed.");let X=x();try{let Z=X.readFileSync($,{encoding:"utf-8"});try{let q=a(I2(Z));return{...J(),...q}}catch(q){let Y=q instanceof Error?q.message:String(q);throw new k4(Y,$,J())}}catch(Z){if(Y0(Z)==="ENOENT"){let Y=Q9($);if(Y)process.stderr.write(`
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{D3 as z,Q3 as Y}from"./cli-msmzt4c3.js";Y();import{c as M}from"react/compiler-runtime";import{createContext as n,useContext as m,useEffect as a}from"react";import{jsxDEV as G}from"react/jsx-dev-runtime";function O(P,$){let K=$/100*(P.length-1),_=Math.floor(K),q=Math.ceil(K);if(_===q)return P[_];return P[_]+(P[q]-P[_])*(K-_)}var h=1024;function X(){let P=new Map,$=new Map,K=new Map;return{increment(_,q=1){P.set(_,(P.get(_)??0)+q)},set(_,q){P.set(_,q)},observe(_,q){let f=$.get(_);if(!f)f={reservoir:[],count:0,sum:0,min:q,max:q},$.set(_,f);if(f.count++,f.sum+=q,q<f.min)f.min=q;if(q>f.max)f.max=q;if(f.reservoir.length<h)f.reservoir.push(q);else{let j=Math.floor(Math.random()*f.count);if(j<h)f.reservoir[j]=q}},add(_,q){let f=K.get(_);if(!f)f=new Set,K.set(_,f);f.add(q)},getAll(){let _=Object.fromEntries(P);for(let[q,f]of $){if(f.count===0)continue;_[`${q}_count`]=f.count,_[`${q}_min`]=f.min,_[`${q}_max`]=f.max,_[`${q}_avg`]=f.sum/f.count;let j=[...f.reservoir].sort((w,k)=>w-k);_[`${q}_p50`]=O(j,50),_[`${q}_p95`]=O(j,95),_[`${q}_p99`]=O(j,99)}for(let[q,f]of K)_[q]=f.size;return _}}}var A=n(null);function y(P){let $=M(7),{store:K,children:_}=P,q;if($[0]===Symbol.for("react.memo_cache_sentinel"))q=X(),$[0]=q;else q=$[0];let j=K??q,w,k;if($[1]!==j)w=()=>{let p=()=>{let v=j.getAll();if(Object.keys(v).length>0)z((o)=>({...o,lastSessionMetrics:v}))};return process.on("exit",p),()=>{process.off("exit",p)}},k=[j],$[1]=j,$[2]=w,$[3]=k;else w=$[2],k=$[3];a(w,k);let r;if($[4]!==_||$[5]!==j)r=G(A.Provider,{value:j,children:_},void 0,!1,void 0,this),$[4]=_,$[5]=j,$[6]=r;else r=$[6];return r}
2
+ import{D3 as z,Q3 as Y}from"./cli-192xnkcx.js";Y();import{c as M}from"react/compiler-runtime";import{createContext as n,useContext as m,useEffect as a}from"react";import{jsxDEV as G}from"react/jsx-dev-runtime";function O(P,$){let K=$/100*(P.length-1),_=Math.floor(K),q=Math.ceil(K);if(_===q)return P[_];return P[_]+(P[q]-P[_])*(K-_)}var h=1024;function X(){let P=new Map,$=new Map,K=new Map;return{increment(_,q=1){P.set(_,(P.get(_)??0)+q)},set(_,q){P.set(_,q)},observe(_,q){let f=$.get(_);if(!f)f={reservoir:[],count:0,sum:0,min:q,max:q},$.set(_,f);if(f.count++,f.sum+=q,q<f.min)f.min=q;if(q>f.max)f.max=q;if(f.reservoir.length<h)f.reservoir.push(q);else{let j=Math.floor(Math.random()*f.count);if(j<h)f.reservoir[j]=q}},add(_,q){let f=K.get(_);if(!f)f=new Set,K.set(_,f);f.add(q)},getAll(){let _=Object.fromEntries(P);for(let[q,f]of $){if(f.count===0)continue;_[`${q}_count`]=f.count,_[`${q}_min`]=f.min,_[`${q}_max`]=f.max,_[`${q}_avg`]=f.sum/f.count;let j=[...f.reservoir].sort((w,k)=>w-k);_[`${q}_p50`]=O(j,50),_[`${q}_p95`]=O(j,95),_[`${q}_p99`]=O(j,99)}for(let[q,f]of K)_[q]=f.size;return _}}}var A=n(null);function y(P){let $=M(7),{store:K,children:_}=P,q;if($[0]===Symbol.for("react.memo_cache_sentinel"))q=X(),$[0]=q;else q=$[0];let j=K??q,w,k;if($[1]!==j)w=()=>{let p=()=>{let v=j.getAll();if(Object.keys(v).length>0)z((o)=>({...o,lastSessionMetrics:v}))};return process.on("exit",p),()=>{process.off("exit",p)}},k=[j],$[1]=j,$[2]=w,$[3]=k;else w=$[2],k=$[3];a(w,k);let r;if($[4]!==_||$[5]!==j)r=G(A.Provider,{value:j,children:_},void 0,!1,void 0,this),$[4]=_,$[5]=j,$[6]=r;else r=$[6];return r}
3
3
  export{X as I,y as J};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Q3 as p,x3 as B}from"./cli-msmzt4c3.js";import{fda as P}from"./cli-w1d8n9g3.js";var j,J,G,M,N,Y,C,_,I,R,f,E,k,m,A,u,y,T,h,b,w,L,F,X,$,t,s;var H=P(()=>{j=["common","uncommon","rare","epic","legendary"],J=String.fromCharCode,G=J(100,117,99,107),M=J(103,111,111,115,101),N=J(98,108,111,98),Y=J(99,97,116),C=J(100,114,97,103,111,110),_=J(111,99,116,111,112,117,115),I=J(111,119,108),R=J(112,101,110,103,117,105,110),f=J(116,117,114,116,108,101),E=J(115,110,97,105,108),k=J(103,104,111,115,116),m=J(97,120,111,108,111,116,108),A=J(99,97,112,121,98,97,114,97),u=J(99,97,99,116,117,115),y=J(114,111,98,111,116),T=J(114,97,98,98,105,116),h=J(109,117,115,104,114,111,111,109),b=J(99,104,111,110,107),w=[G,M,N,Y,C,_,I,R,f,E,k,m,A,u,y,T,h,b],L=["\xB7","\u2726","\xD7","\u25C9","@","\xB0"],F=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},t={common:"\u2605",uncommon:"\u2605\u2605",rare:"\u2605\u2605\u2605",epic:"\u2605\u2605\u2605\u2605",legendary:"\u2605\u2605\u2605\u2605\u2605"},s={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function O(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let D=Math.imul(z^z>>>15,1|z);return D=D+Math.imul(D^D>>>7,61|D)^D,((D^D>>>14)>>>0)/4294967296}}function W(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let D=0;D<q.length;D++)z^=q.charCodeAt(D),z=Math.imul(z,16777619);return z>>>0}function Q(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((K,U)=>K+U,0),D=q()*z;for(let K of j)if(D-=$[K],D<0)return K;return"common"}function d(q,z){let D=i[z],K=Q(q,X),U=Q(q,X);while(U===K)U=Q(q,X);let Z={};for(let V of X)if(V===K)Z[V]=Math.min(100,D+50+Math.floor(q()*30));else if(V===U)Z[V]=Math.max(1,D-10+Math.floor(q()*15));else Z[V]=D+Math.floor(q()*40);return Z}function v(q){let z=S(q);return{bones:{rarity:z,species:Q(q,w),eye:Q(q,L),hat:z==="common"?"none":Q(q,F),shiny:q()<0.01,stats:d(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function qq(q){let z=q+c;if(x?.key===z)return x.value;let D=v(O(W(z)));return x={key:z,value:D},D}function l(q){return v(O(W(q)))}function zq(){let q=B();return q.oauthAccount?.accountUuid??q.userID??"anon"}function g(q){return q.appearanceSeed??`legacy:${q.hatchedAt}:${q.name}:${q.personality}`}function a(q,z){return z.speciesOverride?{...q,species:z.speciesOverride}:q}function Dq(){let q=B().companion;if(!q)return;let{bones:z}=l(g(q)),D=a(z,q);return{...q,...D}}var i,c="friend-2026-401",x;var n=P(()=>{p();H();i={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
2
+ import{Q3 as p,x3 as B}from"./cli-192xnkcx.js";import{hda as P}from"./cli-qwx84m9c.js";var j,J,G,M,N,Y,C,_,I,R,f,E,k,m,A,u,y,T,h,b,w,L,F,X,$,t,s;var H=P(()=>{j=["common","uncommon","rare","epic","legendary"],J=String.fromCharCode,G=J(100,117,99,107),M=J(103,111,111,115,101),N=J(98,108,111,98),Y=J(99,97,116),C=J(100,114,97,103,111,110),_=J(111,99,116,111,112,117,115),I=J(111,119,108),R=J(112,101,110,103,117,105,110),f=J(116,117,114,116,108,101),E=J(115,110,97,105,108),k=J(103,104,111,115,116),m=J(97,120,111,108,111,116,108),A=J(99,97,112,121,98,97,114,97),u=J(99,97,99,116,117,115),y=J(114,111,98,111,116),T=J(114,97,98,98,105,116),h=J(109,117,115,104,114,111,111,109),b=J(99,104,111,110,107),w=[G,M,N,Y,C,_,I,R,f,E,k,m,A,u,y,T,h,b],L=["\xB7","\u2726","\xD7","\u25C9","@","\xB0"],F=["none","crown","tophat","propeller","halo","wizard","beanie","tinyduck"],X=["DEBUGGING","PATIENCE","CHAOS","WISDOM","SNARK"],$={common:60,uncommon:25,rare:10,epic:4,legendary:1},t={common:"\u2605",uncommon:"\u2605\u2605",rare:"\u2605\u2605\u2605",epic:"\u2605\u2605\u2605\u2605",legendary:"\u2605\u2605\u2605\u2605\u2605"},s={common:"inactive",uncommon:"success",rare:"permission",epic:"autoAccept",legendary:"warning"}});function O(q){let z=q>>>0;return function(){z|=0,z=z+1831565813|0;let D=Math.imul(z^z>>>15,1|z);return D=D+Math.imul(D^D>>>7,61|D)^D,((D^D>>>14)>>>0)/4294967296}}function W(q){if(typeof Bun<"u")return Number(BigInt(Bun.hash(q))&0xffffffffn);let z=2166136261;for(let D=0;D<q.length;D++)z^=q.charCodeAt(D),z=Math.imul(z,16777619);return z>>>0}function Q(q,z){return z[Math.floor(q()*z.length)]}function S(q){let z=Object.values($).reduce((K,U)=>K+U,0),D=q()*z;for(let K of j)if(D-=$[K],D<0)return K;return"common"}function d(q,z){let D=i[z],K=Q(q,X),U=Q(q,X);while(U===K)U=Q(q,X);let Z={};for(let V of X)if(V===K)Z[V]=Math.min(100,D+50+Math.floor(q()*30));else if(V===U)Z[V]=Math.max(1,D-10+Math.floor(q()*15));else Z[V]=D+Math.floor(q()*40);return Z}function v(q){let z=S(q);return{bones:{rarity:z,species:Q(q,w),eye:Q(q,L),hat:z==="common"?"none":Q(q,F),shiny:q()<0.01,stats:d(q,z)},inspirationSeed:Math.floor(q()*1e9)}}function qq(q){let z=q+c;if(x?.key===z)return x.value;let D=v(O(W(z)));return x={key:z,value:D},D}function l(q){return v(O(W(q)))}function zq(){let q=B();return q.oauthAccount?.accountUuid??q.userID??"anon"}function g(q){return q.appearanceSeed??`legacy:${q.hatchedAt}:${q.name}:${q.personality}`}function a(q,z){return z.speciesOverride?{...q,species:z.speciesOverride}:q}function Dq(){let q=B().companion;if(!q)return;let{bones:z}=l(g(q)),D=a(z,q);return{...q,...D}}var i,c="friend-2026-401",x;var n=P(()=>{p();H();i={common:5,uncommon:15,rare:25,epic:35,legendary:50}});
3
3
  export{G as kN,M as lN,N as mN,Y as nN,C as oN,_ as pN,I as qN,R as rN,f as sN,E as tN,k as uN,m as vN,A as wN,u as xN,y as yN,T as zN,h as AN,b as BN,X as CN,t as DN,s as EN,H as FN,qq as GN,l as HN,zq as IN,Dq as JN,n as KN};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ak as L,Bk as Z,IE as X,VE as v,iE as V,uB as O,vB as $}from"./cli-me4e2p3e.js";import{fda as Y}from"./cli-w1d8n9g3.js";function W(G){let D=[],H=G.matchAll(y);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
2
+ import{Ak as L,Bk as Z,IE as X,VE as v,iE as V,uB as O,vB as $}from"./cli-b3k8arn1.js";import{hda as Y}from"./cli-qwx84m9c.js";function W(G){let D=[],H=G.matchAll(y);for(let z of H)if(z.index!==void 0)D.push({word:z[0],start:z.index,end:z.index+z[0].length});return D}async function b({question:G,cacheSafeParams:D}){let H=`<system-reminder>This is a side question from the user. You must answer this question directly in a single response.
3
3
 
4
4
  IMPORTANT CONTEXT:
5
5
  - You are a separate, lightweight agent spawned to answer this one question
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{C6 as L,G6 as O}from"./cli-ezs5sney.js";import{fda as N}from"./cli-w1d8n9g3.js";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
2
+ import{E6 as L,I6 as O}from"./cli-hrmzaf5d.js";import{hda as N}from"./cli-qwx84m9c.js";function S(){if(!process.stdin.isTTY||D||process.argv.includes("-p")||process.argv.includes("--print"))return;D=!0,z="";try{process.stdin.setEncoding("utf8"),process.stdin.setRawMode(!0),process.stdin.ref(),F=()=>{let q=process.stdin.read();while(q!==null){if(typeof q==="string")P(q);q=process.stdin.read()}},process.stdin.on("readable",F)}catch{D=!1}}function P(q){let w=0;while(w<q.length){let K=q[w],A=K.charCodeAt(0);if(A===3){J(),process.exit(130);return}if(A===4){J();return}if(A===127||A===8){if(z.length>0){let M=L(z);z=z.slice(0,-(M.length||1))}w++;continue}if(A===27){w++;while(w<q.length&&!(q.charCodeAt(w)>=64&&q.charCodeAt(w)<=126))w++;if(w<q.length)w++;continue}if(A<32&&A!==9&&A!==10&&A!==13){w++;continue}if(A===13){z+=`
3
3
  `,w++;continue}z+=K,w++}}function J(){if(!D)return;if(D=!1,F)process.stdin.removeListener("readable",F),F=null}function T(){J();let q=z.trim();return z="",q}function U(){return z.trim().length>0}function V(q){z=q}function W(){return D}var z="",D=!1,F=null;var Q=N(()=>{O()});
4
4
  export{S as gR,J as hR,T as iR,U as jR,V as kR,W as lR,Q as mR};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{l_ as R,p_ as O,v_ as Y,y_ as M}from"./cli-hke6r0q8.js";import{H_ as N,I_ as D,S_ as v}from"./cli-tq5z9qv3.js";import{fda as H,gda as X}from"./cli-w1d8n9g3.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)})});
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
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};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{yf as j,zf as Gz}from"./cli-edkqs0ge.js";import{Aw as e,CA as Bz,Fm as N,Gm as o,Jx as E,Kx as zz,LH as M,Ns as w,OI as Vz,Os as t,PJ as A,Tp as O,Up as a,bK as Yz,dJ as I,dK as u,dw as L,eJ as c,fI as m,fJ as Xz,jw as s,lH as h,mI as T,oJ as v,vA as C,xK as Zz,yw as P}from"./cli-me4e2p3e.js";import{KL as r,vL as y}from"./cli-49m97nbg.js";import{E8 as R,J8 as i}from"./cli-4ewb3q42.js";import{Y8 as H,Z8 as n}from"./cli-t9jht3kb.js";import{bda as k,daa as F,e$ as f,f$ as q,k$ as x}from"./cli-3ac555qw.js";import{fda as l}from"./cli-w1d8n9g3.js";import{randomUUID as Jz}from"crypto";async function Lz({setMessages:X,readFileState:g,discoveredSkillNames:S,loadedNestedMemoryPaths:p,getAppState:G,setAppState:J,setConversationId:Y}){let Z=v();await A("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Z),timeoutMs:Z});let _=F();if(_)H("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:_});let Q=new Set,$=[],D=(z)=>("isBackgrounded"in z)&&z.isBackgrounded===!1;if(G)for(let z of Object.values(G().tasks)){if(D(z))continue;if(C(z))Q.add(z.agentId),$.push(z);else if(w(z))Q.add(z.identity.agentId)}if(X(()=>[]),Y)Y(Jz());if(j(Q),E(x()),g.clear(),S?.clear(),p?.clear(),J)J((z)=>{let V={};for(let[U,B]of Object.entries(z.tasks)){if(!D(B)){V[U]=B;continue}try{if(B.status==="running"){if(O(B)){if(B.shellCommand?.kill(),B.shellCommand?.cleanup(),B.cleanupTimeoutId)clearTimeout(B.cleanupTimeoutId)}if("abortController"in B)B.abortController?.abort();if("unregisterCleanup"in B)B.unregisterCleanup?.()}}catch(d){R(d)}I(U)}return{...z,tasks:V,attribution:y(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:z.mcp.pluginReconnectKey}}});if(L(),m(),q({setCurrentAsParent:!0}),process.env.USER_TYPE==="ant"&&process.env.CLAUDE_CODE_SESSION_ID)process.env.CLAUDE_CODE_SESSION_ID=f();await M();for(let z of $){if(z.status!=="running")continue;c(z.id,h(N(z.agentId)))}let b=u();if(b)T(b);let K=await P("clear");if(K.length>0)X(()=>K)}var Qz=l(()=>{k();n();t();Bz();a();o();r();Yz();i();s();zz();e();Vz();Xz();Zz();Gz()});
2
+ import{yf as j,zf as Gz}from"./cli-8xz7dd7z.js";import{Aw as e,CA as Bz,Fm as N,Gm as o,Jx as E,Kx as zz,LH as M,Ns as w,OI as Vz,Os as t,PJ as A,Tp as O,Up as a,bK as Yz,dJ as I,dK as u,dw as L,eJ as c,fI as m,fJ as Xz,jw as s,lH as h,mI as T,oJ as v,vA as C,xK as Zz,yw as P}from"./cli-b3k8arn1.js";import{KL as r,vL as y}from"./cli-7ed2q42n.js";import{G8 as R,L8 as i}from"./cli-8kpqq0ea.js";import{$8 as n,_8 as H}from"./cli-e5yek4vx.js";import{dda as k,faa as F,g$ as f,h$ as q,m$ as x}from"./cli-tafg3e9w.js";import{hda as l}from"./cli-qwx84m9c.js";import{randomUUID as Jz}from"crypto";async function Lz({setMessages:X,readFileState:g,discoveredSkillNames:S,loadedNestedMemoryPaths:p,getAppState:G,setAppState:J,setConversationId:Y}){let Z=v();await A("clear",{getAppState:G,setAppState:J,signal:AbortSignal.timeout(Z),timeoutMs:Z});let _=F();if(_)H("tengu_cache_eviction_hint",{scope:"conversation_clear",last_request_id:_});let Q=new Set,$=[],D=(z)=>("isBackgrounded"in z)&&z.isBackgrounded===!1;if(G)for(let z of Object.values(G().tasks)){if(D(z))continue;if(C(z))Q.add(z.agentId),$.push(z);else if(w(z))Q.add(z.identity.agentId)}if(X(()=>[]),Y)Y(Jz());if(j(Q),E(x()),g.clear(),S?.clear(),p?.clear(),J)J((z)=>{let V={};for(let[U,B]of Object.entries(z.tasks)){if(!D(B)){V[U]=B;continue}try{if(B.status==="running"){if(O(B)){if(B.shellCommand?.kill(),B.shellCommand?.cleanup(),B.cleanupTimeoutId)clearTimeout(B.cleanupTimeoutId)}if("abortController"in B)B.abortController?.abort();if("unregisterCleanup"in B)B.unregisterCleanup?.()}}catch(d){R(d)}I(U)}return{...z,tasks:V,attribution:y(),standaloneAgentContext:void 0,fileHistory:{snapshots:[],trackedFiles:new Set,snapshotSequence:0},mcp:{clients:[],tools:[],commands:[],resources:{},pluginReconnectKey:z.mcp.pluginReconnectKey}}});if(L(),m(),q({setCurrentAsParent:!0}),process.env.USER_TYPE==="ant"&&process.env.CLAUDE_CODE_SESSION_ID)process.env.CLAUDE_CODE_SESSION_ID=f();await M();for(let z of $){if(z.status!=="running")continue;c(z.id,h(N(z.agentId)))}let b=u();if(b)T(b);let K=await P("clear");if(K.length>0)X(()=>K)}var Qz=l(()=>{k();n();t();Bz();a();o();r();Yz();i();s();zz();e();Vz();Xz();Zz();Gz()});
3
3
  export{Lz as wf,Qz as xf};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Q3 as N,x3 as B}from"./cli-msmzt4c3.js";import{E8 as A,J8 as L}from"./cli-4ewb3q42.js";import{v_ as z,y_ as K}from"./cli-hke6r0q8.js";import{eda as I,fda as J}from"./cli-w1d8n9g3.js";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=B().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)A(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{N();K();L()});
2
+ import{Q3 as N,x3 as B}from"./cli-192xnkcx.js";import{G8 as A,L8 as L}from"./cli-8kpqq0ea.js";import{A_ as K,x_ as z}from"./cli-awb77t95.js";import{gda as I,hda as J}from"./cli-qwx84m9c.js";var V={};I(V,{setCliTeammateModeOverride:()=>P,getTeammateModeFromSnapshot:()=>U,getCliTeammateModeOverride:()=>Q,clearCliTeammateModeOverride:()=>R,captureTeammateModeSnapshot:()=>H});function P(x){y=x}function Q(){return y}function R(x){y=null,q=x,z(`[TeammateModeSnapshot] CLI override cleared, new mode: ${x}`)}function H(){if(y)q=y,z(`[TeammateModeSnapshot] Captured from CLI override: ${q}`);else q=B().teammateMode??"auto",z(`[TeammateModeSnapshot] Captured from config: ${q}`)}function U(){if(q===null)A(Error("getTeammateModeFromSnapshot called before capture - this indicates an initialization bug")),H();return q??"auto"}var q=null,y=null;var W=J(()=>{N();K();L()});
3
3
  export{P as dL,Q as eL,R as fL,H as gL,U as hL,V as iL,W as jL};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{G9 as B,H9 as I}from"./cli-rjerv816.js";import{fda as H}from"./cli-w1d8n9g3.js";import{execa as G}from"execa";async function J(g){if(process.platform==="win32"){let z=await G(`where.exe ${g}`,{shell:!0,stderr:"ignore",reject:!1});if(z.exitCode!==0||!z.stdout)return null;return z.stdout.trim().split(/\r?\n/)[0]||null}let q=await G(`which ${g}`,{shell:!0,stderr:"ignore",reject:!1});if(q.exitCode!==0||!q.stdout)return null;return q.stdout.trim()}function K(g){if(process.platform==="win32")try{return B(`where.exe ${g}`,{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).toString().trim().split(/\r?\n/)[0]||null}catch{return null}try{return B(`which ${g}`,{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).toString().trim()||null}catch{return null}}var F,Q,U;var L=H(()=>{I();F=typeof Bun<"u"&&typeof Bun.which==="function"?Bun.which:null,Q=F?async(g)=>F(g):J,U=F??K});
3
- export{Q as D9,U as E9,L as F9};
2
+ import{I9 as B,J9 as I}from"./cli-yaxs01at.js";import{hda as H}from"./cli-qwx84m9c.js";import{execa as G}from"execa";async function J(g){if(process.platform==="win32"){let z=await G(`where.exe ${g}`,{shell:!0,stderr:"ignore",reject:!1});if(z.exitCode!==0||!z.stdout)return null;return z.stdout.trim().split(/\r?\n/)[0]||null}let q=await G(`which ${g}`,{shell:!0,stderr:"ignore",reject:!1});if(q.exitCode!==0||!q.stdout)return null;return q.stdout.trim()}function K(g){if(process.platform==="win32")try{return B(`where.exe ${g}`,{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).toString().trim().split(/\r?\n/)[0]||null}catch{return null}try{return B(`which ${g}`,{encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).toString().trim()||null}catch{return null}}var F,Q,U;var L=H(()=>{I();F=typeof Bun<"u"&&typeof Bun.which==="function"?Bun.which:null,Q=F?async(g)=>F(g):J,U=F??K});
3
+ export{Q as F9,U as G9,L as H9};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{c5 as $,g5 as P}from"./cli-mb1qrqw1.js";import{G7 as V,I7 as E}from"./cli-p0vh69b9.js";import{h9 as D,i9 as T}from"./cli-rxb5q8zw.js";import{D9 as k,F9 as O}from"./cli-xpa1neza.js";import{$9 as x,b_ as C,v_ as Z,y_ as N}from"./cli-hke6r0q8.js";import{fda as B}from"./cli-w1d8n9g3.js";import{readdirSync as y}from"fs";import{stat as W}from"fs/promises";import{homedir as F,platform as H,tmpdir as _,userInfo as M}from"os";import{join as J}from"path";function i(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z],Q;switch(v){case"macos":Q=j.macos.dataPath;break;case"linux":case"wsl":Q=j.linux.dataPath;break;case"windows":{if(j.windows.dataPath.length>0){let Y=j.windows.useRoaming?J(G,"AppData","Roaming"):J(G,"AppData","Local");q.push({browser:z,path:J(Y,...j.windows.dataPath)})}continue}}if(Q&&Q.length>0)q.push({browser:z,path:J(G,...Q)})}return q}function c(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z];switch(v){case"macos":if(j.macos.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.macos.nativeMessagingPath)});break;case"linux":case"wsl":if(j.linux.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.linux.nativeMessagingPath)});break;case"windows":break}}return q}function t(){let v=[];for(let G of X){let q=K[G];if(q.windows.registryKey)v.push({browser:G,key:q.windows.registryKey})}return v}async function w(){let v=$();for(let G of X){let q=K[G];switch(v){case"macos":{let z=`/Applications/${q.macos.appName}.app`;try{if((await W(z)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(j){if(!x(j))throw j}break}case"wsl":case"linux":{for(let z of q.linux.binaries)if(await k(z).catch(()=>null))return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G;break}case"windows":{let z=F();if(q.windows.dataPath.length>0){let j=q.windows.useRoaming?J(z,"AppData","Roaming"):J(z,"AppData","Local"),Q=J(j,...q.windows.dataPath);try{if((await W(Q)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(Y){if(!x(Y))throw Y}}break}}}return null}function r(v){return D(v)===S}function o(v){if(L.size>=R&&!L.has(v))L.clear();L.add(v)}async function a(v){let G=$(),q=await w();if(!q)return Z("[Claude in Chrome] No compatible browser found"),!1;let z=K[q];switch(G){case"macos":{let{code:j}=await V("open",["-a",z.macos.appName,v]);return j===0}case"windows":{let{code:j}=await V("rundll32",["url,OpenURL",v]);return j===0}case"wsl":case"linux":{for(let j of z.linux.binaries){let{code:Q}=await V(j,[v]);if(Q===0)return!0}return!1}default:return!1}}function U(){return`/tmp/claude-mcp-browser-bridge-${A()}`}function e(){if(H()==="win32")return`\\\\.\\pipe\\${u()}`;return J(U(),`${process.pid}.sock`)}function jj(){if(H()==="win32")return[`\\\\.\\pipe\\${u()}`];let v=[],G=U();try{let Q=y(G);for(let Y of Q)if(Y.endsWith(".sock"))v.push(J(G,Y))}catch{}let q=`claude-mcp-browser-bridge-${A()}`,z=J(_(),q),j=`/tmp/${q}`;if(!v.includes(z))v.push(z);if(z!==j&&!v.includes(j))v.push(j);return v}function u(){return`claude-mcp-browser-bridge-${A()}`}function A(){try{return M().username||"default"}catch{return process.env.USER||process.env.USERNAME||"default"}}var S="claude-in-chrome",K,X,R=200,L;var b=B(()=>{T();N();C();E();P();O();K={chrome:{name:"Google Chrome",macos:{appName:"Google Chrome",dataPath:["Library","Application Support","Google","Chrome"],nativeMessagingPath:["Library","Application Support","Google","Chrome","NativeMessagingHosts"]},linux:{binaries:["google-chrome","google-chrome-stable"],dataPath:[".config","google-chrome"],nativeMessagingPath:[".config","google-chrome","NativeMessagingHosts"]},windows:{dataPath:["Google","Chrome","User Data"],registryKey:"HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts"}},brave:{name:"Brave",macos:{appName:"Brave Browser",dataPath:["Library","Application Support","BraveSoftware","Brave-Browser"],nativeMessagingPath:["Library","Application Support","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},linux:{binaries:["brave-browser","brave"],dataPath:[".config","BraveSoftware","Brave-Browser"],nativeMessagingPath:[".config","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},windows:{dataPath:["BraveSoftware","Brave-Browser","User Data"],registryKey:"HKCU\\Software\\BraveSoftware\\Brave-Browser\\NativeMessagingHosts"}},arc:{name:"Arc",macos:{appName:"Arc",dataPath:["Library","Application Support","Arc","User Data"],nativeMessagingPath:["Library","Application Support","Arc","User Data","NativeMessagingHosts"]},linux:{binaries:[],dataPath:[],nativeMessagingPath:[]},windows:{dataPath:["Arc","User Data"],registryKey:"HKCU\\Software\\ArcBrowser\\Arc\\NativeMessagingHosts"}},chromium:{name:"Chromium",macos:{appName:"Chromium",dataPath:["Library","Application Support","Chromium"],nativeMessagingPath:["Library","Application Support","Chromium","NativeMessagingHosts"]},linux:{binaries:["chromium","chromium-browser"],dataPath:[".config","chromium"],nativeMessagingPath:[".config","chromium","NativeMessagingHosts"]},windows:{dataPath:["Chromium","User Data"],registryKey:"HKCU\\Software\\Chromium\\NativeMessagingHosts"}},edge:{name:"Microsoft Edge",macos:{appName:"Microsoft Edge",dataPath:["Library","Application Support","Microsoft Edge"],nativeMessagingPath:["Library","Application Support","Microsoft Edge","NativeMessagingHosts"]},linux:{binaries:["microsoft-edge","microsoft-edge-stable"],dataPath:[".config","microsoft-edge"],nativeMessagingPath:[".config","microsoft-edge","NativeMessagingHosts"]},windows:{dataPath:["Microsoft","Edge","User Data"],registryKey:"HKCU\\Software\\Microsoft\\Edge\\NativeMessagingHosts"}},vivaldi:{name:"Vivaldi",macos:{appName:"Vivaldi",dataPath:["Library","Application Support","Vivaldi"],nativeMessagingPath:["Library","Application Support","Vivaldi","NativeMessagingHosts"]},linux:{binaries:["vivaldi","vivaldi-stable"],dataPath:[".config","vivaldi"],nativeMessagingPath:[".config","vivaldi","NativeMessagingHosts"]},windows:{dataPath:["Vivaldi","User Data"],registryKey:"HKCU\\Software\\Vivaldi\\NativeMessagingHosts"}},opera:{name:"Opera",macos:{appName:"Opera",dataPath:["Library","Application Support","com.operasoftware.Opera"],nativeMessagingPath:["Library","Application Support","com.operasoftware.Opera","NativeMessagingHosts"]},linux:{binaries:["opera"],dataPath:[".config","opera"],nativeMessagingPath:[".config","opera","NativeMessagingHosts"]},windows:{dataPath:["Opera Software","Opera Stable"],registryKey:"HKCU\\Software\\Opera Software\\Opera Stable\\NativeMessagingHosts",useRoaming:!0}}},X=["chrome","brave","arc","edge","chromium","vivaldi","opera"];L=new Set});
2
+ import{c5 as $,g5 as P}from"./cli-6qt2xm18.js";import{I7 as V,K7 as E}from"./cli-7wxv39ry.js";import{j9 as D,k9 as T}from"./cli-yktdhy9p.js";import{F9 as k,H9 as O}from"./cli-2sbq6ggm.js";import{A_ as N,b_ as x,d_ as C,x_ as Z}from"./cli-awb77t95.js";import{hda as B}from"./cli-qwx84m9c.js";import{readdirSync as y}from"fs";import{stat as W}from"fs/promises";import{homedir as F,platform as H,tmpdir as _,userInfo as M}from"os";import{join as J}from"path";function i(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z],Q;switch(v){case"macos":Q=j.macos.dataPath;break;case"linux":case"wsl":Q=j.linux.dataPath;break;case"windows":{if(j.windows.dataPath.length>0){let Y=j.windows.useRoaming?J(G,"AppData","Roaming"):J(G,"AppData","Local");q.push({browser:z,path:J(Y,...j.windows.dataPath)})}continue}}if(Q&&Q.length>0)q.push({browser:z,path:J(G,...Q)})}return q}function c(){let v=$(),G=F(),q=[];for(let z of X){let j=K[z];switch(v){case"macos":if(j.macos.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.macos.nativeMessagingPath)});break;case"linux":case"wsl":if(j.linux.nativeMessagingPath.length>0)q.push({browser:z,path:J(G,...j.linux.nativeMessagingPath)});break;case"windows":break}}return q}function t(){let v=[];for(let G of X){let q=K[G];if(q.windows.registryKey)v.push({browser:G,key:q.windows.registryKey})}return v}async function w(){let v=$();for(let G of X){let q=K[G];switch(v){case"macos":{let z=`/Applications/${q.macos.appName}.app`;try{if((await W(z)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(j){if(!x(j))throw j}break}case"wsl":case"linux":{for(let z of q.linux.binaries)if(await k(z).catch(()=>null))return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G;break}case"windows":{let z=F();if(q.windows.dataPath.length>0){let j=q.windows.useRoaming?J(z,"AppData","Roaming"):J(z,"AppData","Local"),Q=J(j,...q.windows.dataPath);try{if((await W(Q)).isDirectory())return Z(`[Claude in Chrome] Detected browser: ${q.name}`),G}catch(Y){if(!x(Y))throw Y}}break}}}return null}function r(v){return D(v)===S}function o(v){if(L.size>=R&&!L.has(v))L.clear();L.add(v)}async function a(v){let G=$(),q=await w();if(!q)return Z("[Claude in Chrome] No compatible browser found"),!1;let z=K[q];switch(G){case"macos":{let{code:j}=await V("open",["-a",z.macos.appName,v]);return j===0}case"windows":{let{code:j}=await V("rundll32",["url,OpenURL",v]);return j===0}case"wsl":case"linux":{for(let j of z.linux.binaries){let{code:Q}=await V(j,[v]);if(Q===0)return!0}return!1}default:return!1}}function U(){return`/tmp/claude-mcp-browser-bridge-${A()}`}function e(){if(H()==="win32")return`\\\\.\\pipe\\${u()}`;return J(U(),`${process.pid}.sock`)}function jj(){if(H()==="win32")return[`\\\\.\\pipe\\${u()}`];let v=[],G=U();try{let Q=y(G);for(let Y of Q)if(Y.endsWith(".sock"))v.push(J(G,Y))}catch{}let q=`claude-mcp-browser-bridge-${A()}`,z=J(_(),q),j=`/tmp/${q}`;if(!v.includes(z))v.push(z);if(z!==j&&!v.includes(j))v.push(j);return v}function u(){return`claude-mcp-browser-bridge-${A()}`}function A(){try{return M().username||"default"}catch{return process.env.USER||process.env.USERNAME||"default"}}var S="claude-in-chrome",K,X,R=200,L;var b=B(()=>{T();N();C();E();P();O();K={chrome:{name:"Google Chrome",macos:{appName:"Google Chrome",dataPath:["Library","Application Support","Google","Chrome"],nativeMessagingPath:["Library","Application Support","Google","Chrome","NativeMessagingHosts"]},linux:{binaries:["google-chrome","google-chrome-stable"],dataPath:[".config","google-chrome"],nativeMessagingPath:[".config","google-chrome","NativeMessagingHosts"]},windows:{dataPath:["Google","Chrome","User Data"],registryKey:"HKCU\\Software\\Google\\Chrome\\NativeMessagingHosts"}},brave:{name:"Brave",macos:{appName:"Brave Browser",dataPath:["Library","Application Support","BraveSoftware","Brave-Browser"],nativeMessagingPath:["Library","Application Support","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},linux:{binaries:["brave-browser","brave"],dataPath:[".config","BraveSoftware","Brave-Browser"],nativeMessagingPath:[".config","BraveSoftware","Brave-Browser","NativeMessagingHosts"]},windows:{dataPath:["BraveSoftware","Brave-Browser","User Data"],registryKey:"HKCU\\Software\\BraveSoftware\\Brave-Browser\\NativeMessagingHosts"}},arc:{name:"Arc",macos:{appName:"Arc",dataPath:["Library","Application Support","Arc","User Data"],nativeMessagingPath:["Library","Application Support","Arc","User Data","NativeMessagingHosts"]},linux:{binaries:[],dataPath:[],nativeMessagingPath:[]},windows:{dataPath:["Arc","User Data"],registryKey:"HKCU\\Software\\ArcBrowser\\Arc\\NativeMessagingHosts"}},chromium:{name:"Chromium",macos:{appName:"Chromium",dataPath:["Library","Application Support","Chromium"],nativeMessagingPath:["Library","Application Support","Chromium","NativeMessagingHosts"]},linux:{binaries:["chromium","chromium-browser"],dataPath:[".config","chromium"],nativeMessagingPath:[".config","chromium","NativeMessagingHosts"]},windows:{dataPath:["Chromium","User Data"],registryKey:"HKCU\\Software\\Chromium\\NativeMessagingHosts"}},edge:{name:"Microsoft Edge",macos:{appName:"Microsoft Edge",dataPath:["Library","Application Support","Microsoft Edge"],nativeMessagingPath:["Library","Application Support","Microsoft Edge","NativeMessagingHosts"]},linux:{binaries:["microsoft-edge","microsoft-edge-stable"],dataPath:[".config","microsoft-edge"],nativeMessagingPath:[".config","microsoft-edge","NativeMessagingHosts"]},windows:{dataPath:["Microsoft","Edge","User Data"],registryKey:"HKCU\\Software\\Microsoft\\Edge\\NativeMessagingHosts"}},vivaldi:{name:"Vivaldi",macos:{appName:"Vivaldi",dataPath:["Library","Application Support","Vivaldi"],nativeMessagingPath:["Library","Application Support","Vivaldi","NativeMessagingHosts"]},linux:{binaries:["vivaldi","vivaldi-stable"],dataPath:[".config","vivaldi"],nativeMessagingPath:[".config","vivaldi","NativeMessagingHosts"]},windows:{dataPath:["Vivaldi","User Data"],registryKey:"HKCU\\Software\\Vivaldi\\NativeMessagingHosts"}},opera:{name:"Opera",macos:{appName:"Opera",dataPath:["Library","Application Support","com.operasoftware.Opera"],nativeMessagingPath:["Library","Application Support","com.operasoftware.Opera","NativeMessagingHosts"]},linux:{binaries:["opera"],dataPath:[".config","opera"],nativeMessagingPath:[".config","opera","NativeMessagingHosts"]},windows:{dataPath:["Opera Software","Opera Stable"],registryKey:"HKCU\\Software\\Opera Software\\Opera Stable\\NativeMessagingHosts",useRoaming:!0}}},X=["chrome","brave","arc","edge","chromium","vivaldi","opera"];L=new Set});
3
3
  export{S as ZM,i as _M,c as $M,t as aN,r as bN,o as cN,a as dN,U as eN,e as fN,jj as gN,b as hN};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{AF as G,BF as O,CF as W,DF as B,pF as U,sF as V,wF as y}from"./cli-me4e2p3e.js";import{Bca as K,bda as Y}from"./cli-3ac555qw.js";import{fda as X}from"./cli-w1d8n9g3.js";import{useEffect as T,useRef as Z}from"react";async function _(j,q){if(J)return;if(J=!0,!j.isBypassPermissionsModeAvailable)return;if(!await U())return;q((E)=>{return{...E,toolPermissionContext:V(E.toolPermissionContext)}})}function F(){J=!1}function I(){let j=G((w)=>w.toolPermissionContext),q=O();T(()=>{if(K())return;_(j,q)},[])}async function b(j,q,w){}function h(){$=!1}function v(){let j=G((z)=>z.mainLoopModel),q=G((z)=>z.mainLoopModelForSession),w=G((z)=>z.fastMode),E=O(),Q=W(),H=Z(!0);T(()=>{if(K())return;if(H.current)H.current=!1;else h();b(Q.getState().toolPermissionContext,E,w)},[j,q,w])}var J=!1,$=!1;var k=X(()=>{B();Y();y()});
2
+ import{AF as G,BF as O,CF as W,DF as B,pF as U,sF as V,wF as y}from"./cli-b3k8arn1.js";import{Dca as K,dda as Y}from"./cli-tafg3e9w.js";import{hda as X}from"./cli-qwx84m9c.js";import{useEffect as T,useRef as Z}from"react";async function _(j,q){if(J)return;if(J=!0,!j.isBypassPermissionsModeAvailable)return;if(!await U())return;q((E)=>{return{...E,toolPermissionContext:V(E.toolPermissionContext)}})}function F(){J=!1}function I(){let j=G((w)=>w.toolPermissionContext),q=O();T(()=>{if(K())return;_(j,q)},[])}async function b(j,q,w){}function h(){$=!1}function v(){let j=G((z)=>z.mainLoopModel),q=G((z)=>z.mainLoopModelForSession),w=G((z)=>z.fastMode),E=O(),Q=W(),H=Z(!0);T(()=>{if(K())return;if(H.current)H.current=!1;else h();b(Q.getState().toolPermissionContext,E,w)},[j,q,w])}var J=!1,$=!1;var k=X(()=>{B();Y();y()});
3
3
  export{_ as dg,F as eg,I as fg,v as gg,k as hg};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{F_ as o,S_ as i}from"./cli-tq5z9qv3.js";import{fda as a}from"./cli-w1d8n9g3.js";import{mkdir as p,readFile as s,writeFile as u}from"fs/promises";import{dirname as l,join as d}from"path";function n(){return d(o(),"cc-haha","computer-use-config.json")}function r(t){return{enabled:t?.enabled??g,authorizedApps:t?.authorizedApps??[],grantFlags:{...m,...t?.grantFlags??{}},pythonPath:h(t?.pythonPath)}}function h(t){if(typeof t!=="string")return null;let e=t.trim();return e.length>0?e:null}async function A(){try{let t=await s(n(),"utf8");return r(JSON.parse(t))}catch{return r()}}async function S(t){let e=n();await p(l(e),{recursive:!0}),await u(e,JSON.stringify(t,null,2),"utf8")}var g=!0,m;var C=a(()=>{i();m={clipboardRead:!0,clipboardWrite:!0,systemKeyCombos:!0}});
2
+ import{H_ as o,U_ as i}from"./cli-q8zmmp6z.js";import{hda as a}from"./cli-qwx84m9c.js";import{mkdir as p,readFile as s,writeFile as u}from"fs/promises";import{dirname as l,join as d}from"path";function n(){return d(o(),"cc-haha","computer-use-config.json")}function r(t){return{enabled:t?.enabled??g,authorizedApps:t?.authorizedApps??[],grantFlags:{...m,...t?.grantFlags??{}},pythonPath:h(t?.pythonPath)}}function h(t){if(typeof t!=="string")return null;let e=t.trim();return e.length>0?e:null}async function A(){try{let t=await s(n(),"utf8");return r(JSON.parse(t))}catch{return r()}}async function S(t){let e=n();await p(l(e),{recursive:!0}),await u(e,JSON.stringify(t,null,2),"utf8")}var g=!0,m;var C=a(()=>{i();m={clipboardRead:!0,clipboardWrite:!0,systemKeyCombos:!0}});
3
3
  export{g as ES,m as FS,n as GS,r as HS,h as IS,A as JS,S as KS,C as LS};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Dd as w,Ed as _,Fd as D,Gd as L,Hd as A,Id as h,Jd as O}from"./cli-q46epwyh.js";import{AD as W,BD as I,Ch as Q,Cv as j,Ev as C,Fh as S,Mq as V,Nq as b,zv as R}from"./cli-me4e2p3e.js";import{E8 as U,J8 as N}from"./cli-4ewb3q42.js";import{Y8 as K,Z8 as v}from"./cli-t9jht3kb.js";import{X9 as B,b_ as F}from"./cli-hke6r0q8.js";import{A_ as x,E_ as M}from"./cli-x70v8rsj.js";F();b();N();I();S();M();C();v();O();import X from"figures";function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${X.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=Q(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...R(Y,$,W())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:j(z),...H}),process.exit(1)}async function p(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await w(z,J);if(!q.success)throw Error(q.message);console.log(`${X.tick} ${q.message}`);let{name:G,marketplace:H}=Q(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...R(G,H,W())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function g(z,J="user",q=!1){try{let G=await _(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${X.tick} ${G.message}`);let{name:H,marketplace:Y}=Q(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...R(H,Y,W())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function a(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${X.tick} ${q.message}`);let{name:G,marketplace:H}=Q(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...R(G,H,W())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function i(z,J){try{let q=await L(z,J);if(!q.success)throw Error(q.message);console.log(`${X.tick} ${q.message}`);let{name:G,marketplace:H}=Q(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...R(G,H,W())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function u(){try{let z=await A();if(!z.success)throw Error(z.message);console.log(`${X.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function n(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope\u2026
2
+ import{Dd as w,Ed as _,Fd as D,Gd as L,Hd as A,Id as h,Jd as O}from"./cli-e3q6b1cv.js";import{AD as W,BD as I,Ch as Q,Cv as j,Ev as C,Fh as S,Mq as V,Nq as b,zv as R}from"./cli-b3k8arn1.js";import{G8 as U,L8 as N}from"./cli-8kpqq0ea.js";import{$8 as v,_8 as K}from"./cli-e5yek4vx.js";import{Z9 as B,d_ as F}from"./cli-awb77t95.js";import{C_ as x,G_ as M}from"./cli-rc3w6tqd.js";F();b();N();I();S();M();C();v();O();import X from"figures";function Z(z,J,q){U(z);let G=q?`${J} plugin "${q}"`:J==="disable-all"?"disable all plugins":`${J} plugins`;console.error(`${X.cross} Failed to ${G}: ${B(z)}`);let H=q?(()=>{let{name:Y,marketplace:$}=Q(q);return{_PROTO_plugin_name:Y,...$&&{_PROTO_marketplace_name:$},...R(Y,$,W())}})():{};K("tengu_plugin_command_failed",{command:J,error_category:j(z),...H}),process.exit(1)}async function p(z,J="user"){try{console.log(`Installing plugin "${z}"...`);let q=await w(z,J);if(!q.success)throw Error(q.message);console.log(`${X.tick} ${q.message}`);let{name:G,marketplace:H}=Q(q.pluginId||z);K("tengu_plugin_installed_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope||J,install_source:"cli-explicit",...R(G,H,W())}),process.exit(0)}catch(q){Z(q,"install",z)}}async function g(z,J="user",q=!1){try{let G=await _(z,J,!q);if(!G.success)throw Error(G.message);console.log(`${X.tick} ${G.message}`);let{name:H,marketplace:Y}=Q(G.pluginId||z);K("tengu_plugin_uninstalled_cli",{_PROTO_plugin_name:H,...Y&&{_PROTO_marketplace_name:Y},scope:G.scope||J,...R(H,Y,W())}),process.exit(0)}catch(G){Z(G,"uninstall",z)}}async function a(z,J){try{let q=await D(z,J);if(!q.success)throw Error(q.message);console.log(`${X.tick} ${q.message}`);let{name:G,marketplace:H}=Q(q.pluginId||z);K("tengu_plugin_enabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...R(G,H,W())}),process.exit(0)}catch(q){Z(q,"enable",z)}}async function i(z,J){try{let q=await L(z,J);if(!q.success)throw Error(q.message);console.log(`${X.tick} ${q.message}`);let{name:G,marketplace:H}=Q(q.pluginId||z);K("tengu_plugin_disabled_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},scope:q.scope,...R(G,H,W())}),process.exit(0)}catch(q){Z(q,"disable",z)}}async function u(){try{let z=await A();if(!z.success)throw Error(z.message);console.log(`${X.tick} ${z.message}`),K("tengu_plugin_disabled_all_cli",{}),process.exit(0)}catch(z){Z(z,"disable-all")}}async function n(z,J){try{x(`Checking for updates for plugin "${z}" at ${J} scope\u2026
3
3
  `);let q=await h(z,J);if(!q.success)throw Error(q.message);if(x(`${X.tick} ${q.message}
4
4
  `),!q.alreadyUpToDate){let{name:G,marketplace:H}=Q(q.pluginId||z);K("tengu_plugin_updated_cli",{_PROTO_plugin_name:G,...H&&{_PROTO_marketplace_name:H},old_version:q.oldVersion||"unknown",new_version:q.newVersion||"unknown",...R(G,H,W())})}await V(0)}catch(q){Z(q,"update",z)}}
5
5
  export{p as a,g as b,a as c,i as d,u as e,n as f};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{Ou as O,Pu as n}from"./cli-me4e2p3e.js";import{DQ as z,FQ as k,fR as p}from"./cli-x8xgga1a.js";import{fda as h}from"./cli-w1d8n9g3.js";import{c as v}from"react/compiler-runtime";import{jsxDEV as r}from"react/jsx-dev-runtime";function A(H){let _=v(10),{message:j,bold:o,dimColor:e,subtitle:K}=H,w=o===void 0?!1:o,P=e===void 0?!1:e,$;if(_[0]===Symbol.for("react.memo_cache_sentinel"))$=r(O,{},void 0,!1,void 0,this),_[0]=$;else $=_[0];let f;if(_[1]!==w||_[2]!==P||_[3]!==j)f=r(z,{flexDirection:"row",children:[$,r(k,{bold:w,dimColor:P,children:[" ",j]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_[1]=w,_[2]=P,_[3]=j,_[4]=f;else f=_[4];let q;if(_[5]!==K)q=K&&r(k,{dimColor:!0,children:K},void 0,!1,void 0,this),_[5]=K,_[6]=q;else q=_[6];let M;if(_[7]!==f||_[8]!==q)M=r(z,{flexDirection:"column",children:[f,q]},void 0,!0,void 0,this),_[7]=f,_[8]=q,_[9]=M;else M=_[9];return M}var a=h(()=>{p();n()});
2
+ import{Ou as O,Pu as n}from"./cli-b3k8arn1.js";import{DQ as z,FQ as k,fR as p}from"./cli-a2d962bq.js";import{hda as h}from"./cli-qwx84m9c.js";import{c as v}from"react/compiler-runtime";import{jsxDEV as r}from"react/jsx-dev-runtime";function A(H){let _=v(10),{message:j,bold:o,dimColor:e,subtitle:K}=H,w=o===void 0?!1:o,P=e===void 0?!1:e,$;if(_[0]===Symbol.for("react.memo_cache_sentinel"))$=r(O,{},void 0,!1,void 0,this),_[0]=$;else $=_[0];let f;if(_[1]!==w||_[2]!==P||_[3]!==j)f=r(z,{flexDirection:"row",children:[$,r(k,{bold:w,dimColor:P,children:[" ",j]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),_[1]=w,_[2]=P,_[3]=j,_[4]=f;else f=_[4];let q;if(_[5]!==K)q=K&&r(k,{dimColor:!0,children:K},void 0,!1,void 0,this),_[5]=K,_[6]=q;else q=_[6];let M;if(_[7]!==f||_[8]!==q)M=r(z,{flexDirection:"column",children:[f,q]},void 0,!0,void 0,this),_[7]=f,_[8]=q,_[9]=M;else M=_[9];return M}var a=h(()=>{p();n()});
3
3
  export{A as Ce,a as De};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{aO as l,bO as M_}from"./cli-6yprtw88.js";import{PO as a,RO as I,SO as b,UO as O_,aP as c,bP as w_}from"./cli-akcxtvv9.js";import{DQ as o,FQ as p,fR as G,lQ as S,mQ as U}from"./cli-x8xgga1a.js";import{Y8 as L,Z8 as s}from"./cli-t9jht3kb.js";import{fda as D}from"./cli-w1d8n9g3.js";import{useEffect as i,useRef as t}from"react";function d(O,_,f){let q=a(),z=q?.getDisplayText(O,_),K=z===void 0,M=q?"action_not_found":"no_context",w=t(!1);return i(()=>{if(K&&!w.current)w.current=!0,L("tengu_keybinding_fallback_used",{action:O,context:_,fallback:f,reason:M})},[K,O,_,f,M]),K?f:z}var g=D(()=>{s();I()});import{c as F}from"react/compiler-runtime";import{jsxDEV as R}from"react/jsx-dev-runtime";function Z(O){let _=F(9),{shortcut:f,action:q,parens:z,bold:K}=O,M=z===void 0?!1:z,w=K===void 0?!1:K,v;if(_[0]!==w||_[1]!==f)v=w?R(S,{bold:!0,children:f},void 0,!1,void 0,this):f,_[0]=w,_[1]=f,_[2]=v;else v=_[2];let P=v;if(M){let H;if(_[3]!==q||_[4]!==P)H=R(S,{children:["(",P," to ",q,")"]},void 0,!0,void 0,this),_[3]=q,_[4]=P,_[5]=H;else H=_[5];return H}let k;if(_[6]!==q||_[7]!==P)k=R(S,{children:[P," to ",q]},void 0,!0,void 0,this),_[6]=q,_[7]=P,_[8]=k;else k=_[8];return k}var V=D(()=>{U()});import{c as B}from"react/compiler-runtime";import{jsxDEV as Q}from"react/jsx-dev-runtime";function C(O){let _=B(5),{action:f,context:q,fallback:z,description:K,parens:M,bold:w}=O,v=d(f,q,z),P;if(_[0]!==w||_[1]!==K||_[2]!==M||_[3]!==v)P=Q(Z,{shortcut:v,action:K,parens:M,bold:w},void 0,!1,void 0,this),_[0]=w,_[1]=K,_[2]=M,_[3]=v,_[4]=P;else P=_[4];return P}var E=D(()=>{g();V()});import{c as __}from"react/compiler-runtime";import q_,{Children as f_,isValidElement as z_}from"react";import{jsxDEV as n,Fragment as P_}from"react/jsx-dev-runtime";function e(O){let _=__(5),{children:f}=O,q,z;if(_[0]!==f){z=Symbol.for("react.early_return_sentinel");_:{let M=f_.toArray(f);if(M.length===0){z=null;break _}q=M.map(K_)}_[0]=f,_[1]=q,_[2]=z}else q=_[1],z=_[2];if(z!==Symbol.for("react.early_return_sentinel"))return z;let K;if(_[3]!==q)K=n(P_,{children:q},void 0,!1,void 0,this),_[3]=q,_[4]=K;else K=_[4];return K}function K_(O,_){return n(q_.Fragment,{children:[_>0&&n(p,{dimColor:!0,children:" \xB7 "},void 0,!1,void 0,this),O]},z_(O)?O.key??_:_,!0,void 0,this)}var x=D(()=>{G()});import{c as $_}from"react/compiler-runtime";import{jsxDEV as $,Fragment as H_}from"react/jsx-dev-runtime";function E_(O){let _=$_(27),{title:f,subtitle:q,children:z,onCancel:K,color:M,hideInputGuide:w,hideBorder:v,inputGuide:P,isCancelActive:k}=O,H=M===void 0?"permission":M,J=k===void 0?!0:k,j=l(void 0,void 0,J),h;if(_[0]!==J)h={context:"Confirmation",isActive:J},_[0]=J,_[1]=h;else h=_[1];b("confirm:no",K,h);let W;if(_[2]!==j.keyName||_[3]!==j.pending)W=j.pending?$(p,{children:["Press ",j.keyName," again to exit"]},void 0,!0,void 0,this):$(e,{children:[$(Z,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),$(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_[2]=j.keyName,_[3]=j.pending,_[4]=W;else W=_[4];let u=W,r;if(_[5]!==H||_[6]!==f)r=$(p,{bold:!0,color:H,children:f},void 0,!1,void 0,this),_[5]=H,_[6]=f,_[7]=r;else r=_[7];let Y;if(_[8]!==q)Y=q&&$(p,{dimColor:!0,children:q},void 0,!1,void 0,this),_[8]=q,_[9]=Y;else Y=_[9];let A;if(_[10]!==r||_[11]!==Y)A=$(o,{flexDirection:"column",children:[r,Y]},void 0,!0,void 0,this),_[10]=r,_[11]=Y,_[12]=A;else A=_[12];let T;if(_[13]!==z||_[14]!==A)T=$(o,{flexDirection:"column",gap:1,children:[A,z]},void 0,!0,void 0,this),_[13]=z,_[14]=A,_[15]=T;else T=_[15];let m;if(_[16]!==u||_[17]!==j||_[18]!==w||_[19]!==P)m=!w&&$(o,{marginTop:1,children:$(p,{dimColor:!0,italic:!0,children:P?P(j):u},void 0,!1,void 0,this)},void 0,!1,void 0,this),_[16]=u,_[17]=j,_[18]=w,_[19]=P,_[20]=m;else m=_[20];let y;if(_[21]!==T||_[22]!==m)y=$(H_,{children:[T,m]},void 0,!0,void 0,this),_[21]=T,_[22]=m,_[23]=y;else y=_[23];let X=y;if(v)return X;let N;if(_[24]!==H||_[25]!==X)N=$(c,{color:H,children:X},void 0,!1,void 0,this),_[24]=H,_[25]=X,_[26]=N;else N=_[26];return N}var v_=D(()=>{M_();G();O_();E();x();V();w_()});function l_(){return`# Claude in Chrome browser automation
2
+ import{aO as l,bO as M_}from"./cli-awe5yg6m.js";import{PO as a,RO as I,SO as b,UO as O_,aP as c,bP as w_}from"./cli-8jym9hp6.js";import{DQ as o,FQ as p,fR as G,lQ as S,mQ as U}from"./cli-a2d962bq.js";import{$8 as s,_8 as L}from"./cli-e5yek4vx.js";import{hda as D}from"./cli-qwx84m9c.js";import{useEffect as i,useRef as t}from"react";function d(O,_,f){let q=a(),z=q?.getDisplayText(O,_),K=z===void 0,M=q?"action_not_found":"no_context",w=t(!1);return i(()=>{if(K&&!w.current)w.current=!0,L("tengu_keybinding_fallback_used",{action:O,context:_,fallback:f,reason:M})},[K,O,_,f,M]),K?f:z}var g=D(()=>{s();I()});import{c as F}from"react/compiler-runtime";import{jsxDEV as R}from"react/jsx-dev-runtime";function Z(O){let _=F(9),{shortcut:f,action:q,parens:z,bold:K}=O,M=z===void 0?!1:z,w=K===void 0?!1:K,v;if(_[0]!==w||_[1]!==f)v=w?R(S,{bold:!0,children:f},void 0,!1,void 0,this):f,_[0]=w,_[1]=f,_[2]=v;else v=_[2];let P=v;if(M){let H;if(_[3]!==q||_[4]!==P)H=R(S,{children:["(",P," to ",q,")"]},void 0,!0,void 0,this),_[3]=q,_[4]=P,_[5]=H;else H=_[5];return H}let k;if(_[6]!==q||_[7]!==P)k=R(S,{children:[P," to ",q]},void 0,!0,void 0,this),_[6]=q,_[7]=P,_[8]=k;else k=_[8];return k}var V=D(()=>{U()});import{c as B}from"react/compiler-runtime";import{jsxDEV as Q}from"react/jsx-dev-runtime";function C(O){let _=B(5),{action:f,context:q,fallback:z,description:K,parens:M,bold:w}=O,v=d(f,q,z),P;if(_[0]!==w||_[1]!==K||_[2]!==M||_[3]!==v)P=Q(Z,{shortcut:v,action:K,parens:M,bold:w},void 0,!1,void 0,this),_[0]=w,_[1]=K,_[2]=M,_[3]=v,_[4]=P;else P=_[4];return P}var E=D(()=>{g();V()});import{c as __}from"react/compiler-runtime";import q_,{Children as f_,isValidElement as z_}from"react";import{jsxDEV as n,Fragment as P_}from"react/jsx-dev-runtime";function e(O){let _=__(5),{children:f}=O,q,z;if(_[0]!==f){z=Symbol.for("react.early_return_sentinel");_:{let M=f_.toArray(f);if(M.length===0){z=null;break _}q=M.map(K_)}_[0]=f,_[1]=q,_[2]=z}else q=_[1],z=_[2];if(z!==Symbol.for("react.early_return_sentinel"))return z;let K;if(_[3]!==q)K=n(P_,{children:q},void 0,!1,void 0,this),_[3]=q,_[4]=K;else K=_[4];return K}function K_(O,_){return n(q_.Fragment,{children:[_>0&&n(p,{dimColor:!0,children:" \xB7 "},void 0,!1,void 0,this),O]},z_(O)?O.key??_:_,!0,void 0,this)}var x=D(()=>{G()});import{c as $_}from"react/compiler-runtime";import{jsxDEV as $,Fragment as H_}from"react/jsx-dev-runtime";function E_(O){let _=$_(27),{title:f,subtitle:q,children:z,onCancel:K,color:M,hideInputGuide:w,hideBorder:v,inputGuide:P,isCancelActive:k}=O,H=M===void 0?"permission":M,J=k===void 0?!0:k,j=l(void 0,void 0,J),h;if(_[0]!==J)h={context:"Confirmation",isActive:J},_[0]=J,_[1]=h;else h=_[1];b("confirm:no",K,h);let W;if(_[2]!==j.keyName||_[3]!==j.pending)W=j.pending?$(p,{children:["Press ",j.keyName," again to exit"]},void 0,!0,void 0,this):$(e,{children:[$(Z,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),$(C,{action:"confirm:no",context:"Confirmation",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),_[2]=j.keyName,_[3]=j.pending,_[4]=W;else W=_[4];let u=W,r;if(_[5]!==H||_[6]!==f)r=$(p,{bold:!0,color:H,children:f},void 0,!1,void 0,this),_[5]=H,_[6]=f,_[7]=r;else r=_[7];let Y;if(_[8]!==q)Y=q&&$(p,{dimColor:!0,children:q},void 0,!1,void 0,this),_[8]=q,_[9]=Y;else Y=_[9];let A;if(_[10]!==r||_[11]!==Y)A=$(o,{flexDirection:"column",children:[r,Y]},void 0,!0,void 0,this),_[10]=r,_[11]=Y,_[12]=A;else A=_[12];let T;if(_[13]!==z||_[14]!==A)T=$(o,{flexDirection:"column",gap:1,children:[A,z]},void 0,!0,void 0,this),_[13]=z,_[14]=A,_[15]=T;else T=_[15];let m;if(_[16]!==u||_[17]!==j||_[18]!==w||_[19]!==P)m=!w&&$(o,{marginTop:1,children:$(p,{dimColor:!0,italic:!0,children:P?P(j):u},void 0,!1,void 0,this)},void 0,!1,void 0,this),_[16]=u,_[17]=j,_[18]=w,_[19]=P,_[20]=m;else m=_[20];let y;if(_[21]!==T||_[22]!==m)y=$(H_,{children:[T,m]},void 0,!0,void 0,this),_[21]=T,_[22]=m,_[23]=y;else y=_[23];let X=y;if(v)return X;let N;if(_[24]!==H||_[25]!==X)N=$(c,{color:H,children:X},void 0,!1,void 0,this),_[24]=H,_[25]=X,_[26]=N;else N=_[26];return N}var v_=D(()=>{M_();G();O_();E();x();V();w_()});function l_(){return`# Claude in Chrome browser automation
3
3
 
4
4
  You have access to browser automation tools (mcp__claude-in-chrome__*) for interacting with web pages in Chrome. Follow these guidelines for effective browser automation.
5
5
 
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{C9 as F,t9 as P}from"./cli-kq16afrr.js";import{D9 as k,E9 as U,F9 as B}from"./cli-xpa1neza.js";import{l_ as Y,p_ as R}from"./cli-hke6r0q8.js";import{F_ as K,I_ as G,S_ as M}from"./cli-tq5z9qv3.js";import{fda as $,gda as D}from"./cli-w1d8n9g3.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 j9,b as k9,N as l9,W as m9,_ as n9,a as o9,I as p9,Z as q9,s as r9,T as s9};
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};
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import{Ep as D,Oq as i,Pq as E,Qq as C,Sq as a,Tq as s,Vq as Jq,dr as Qq}from"./cli-me4e2p3e.js";import{SL as f,TL as t,WL as d,XL as qq,YL as j,ZL as zq}from"./cli-xfsqvp8r.js";import{DQ as F,FQ as U,JQ as I,WQ as V,fR as e}from"./cli-x8xgga1a.js";import{Y8 as w,Z8 as o}from"./cli-t9jht3kb.js";import{fda as $}from"./cli-w1d8n9g3.js";import{c as v}from"react/compiler-runtime";import Uq,{useEffect as Xq,useState as r}from"react";import{jsxDEV as z,Fragment as x}from"react/jsx-dev-runtime";function Zq(){let J=v(9),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=z(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",z(U,{bold:!0,children:"October 8, 2025"},void 0,!1,void 0,this),". You can accept the updated terms today."]},void 0,!0,void 0,this),J[0]=q;else q=J[0];let W;if(J[1]===Symbol.for("react.memo_cache_sentinel"))W=z(U,{children:"What's changing?"},void 0,!1,void 0,this),J[1]=W;else W=J[1];let X,Y;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=z(U,{children:"\xB7 "},void 0,!1,void 0,this),Y=z(U,{bold:!0,children:"You can help improve Claude "},void 0,!1,void 0,this),J[2]=X,J[3]=Y;else X=J[2],Y=J[3];let M;if(J[4]===Symbol.for("react.memo_cache_sentinel"))M=z(F,{paddingLeft:1,children:z(U,{children:[X,Y,z(U,{children:["\u2014 Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",z(I,{url:"https://claude.ai/settings/data-privacy-controls"},void 0,!1,void 0,this),")."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J[4]=M;else M=J[4];let O;if(J[5]===Symbol.for("react.memo_cache_sentinel"))O=z(F,{flexDirection:"column",children:[W,M,z(F,{paddingLeft:1,children:z(U,{children:[z(U,{children:"\xB7 "},void 0,!1,void 0,this),z(U,{bold:!0,children:"Updates to data retention "},void 0,!1,void 0,this),z(U,{children:"\u2014 To help us improve our AI models and safety protections, we're extending data retention to 5 years."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[5]=O;else O=J[5];let Q;if(J[6]===Symbol.for("react.memo_cache_sentinel"))Q=z(I,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"},void 0,!1,void 0,this),J[6]=Q;else Q=J[6];let A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=z(I,{url:"https://anthropic.com/legal/terms"},void 0,!1,void 0,this),J[7]=A;else A=J[7];let N;if(J[8]===Symbol.for("react.memo_cache_sentinel"))N=z(x,{children:[q,O,z(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",A,") and Privacy Policy (",z(I,{url:"https://anthropic.com/legal/privacy"},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[8]=N;else N=J[8];return N}function Mq(){let J=v(7),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=z(U,{children:"We've updated our Consumer Terms and Privacy Policy."},void 0,!1,void 0,this),J[0]=q;else q=J[0];let W;if(J[1]===Symbol.for("react.memo_cache_sentinel"))W=z(U,{children:"What's changing?"},void 0,!1,void 0,this),J[1]=W;else W=J[1];let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=z(F,{flexDirection:"column",children:[z(U,{bold:!0,children:"Help improve Claude"},void 0,!1,void 0,this),z(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"},void 0,!1,void 0,this),z(I,{url:"https://claude.ai/settings/data-privacy-controls"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[2]=X;else X=J[2];let Y;if(J[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(F,{flexDirection:"column",gap:1,children:[W,X,z(F,{flexDirection:"column",children:[z(U,{bold:!0,children:"How this affects data retention"},void 0,!1,void 0,this),z(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[3]=Y;else Y=J[3];let M;if(J[4]===Symbol.for("react.memo_cache_sentinel"))M=z(I,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"},void 0,!1,void 0,this),J[4]=M;else M=J[4];let O;if(J[5]===Symbol.for("react.memo_cache_sentinel"))O=z(I,{url:"https://anthropic.com/legal/terms"},void 0,!1,void 0,this),J[5]=O;else O=J[5];let Q;if(J[6]===Symbol.for("react.memo_cache_sentinel"))Q=z(x,{children:[q,Y,z(U,{children:["Learn more (",M,") or read the updated Consumer Terms (",O,") and Privacy Policy (",z(I,{url:"https://anthropic.com/legal/privacy"},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[6]=Q;else Q=J[6];return Q}function kq(J){let q=v(34),{showIfAlreadyViewed:W,location:X,onDone:Y}=J,[M,O]=r(null),[Q,A]=r(null),N,K;if(q[0]!==X||q[1]!==Y||q[2]!==W)N=()=>{(async function(){let[n,u]=await Promise.all([i(),a()]),l=u.success?u.data:null;A(l);let g=s(n,u,W);if(O(g),!g){Y("skip_rendering");return}E(),w("tengu_grove_policy_viewed",{location:X,dismissable:l?.notice_is_grace_period})})()},K=[W,X,Y],q[0]=X,q[1]=Y,q[2]=W,q[3]=N,q[4]=K;else N=q[3],K=q[4];if(Xq(N,K),M===null)return null;if(!M)return null;let H;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Y)H=async function(c){q:switch(c){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Y(c)},q[5]=Q?.notice_is_grace_period,q[6]=Y,q[7]=H;else H=q[7];let P=H,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms \xB7 Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms \xB7 Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms \xB7 Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let R=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==P)G=function(){if(Q?.notice_is_grace_period){P("defer");return}P("escape")},q[10]=Q?.notice_is_grace_period,q[11]=P,q[12]=G;else G=q[12];let Z=G,k;if(q[13]!==Q?.notice_is_grace_period)k=z(F,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?z(Zq,{},void 0,!1,void 0,this):z(Mq,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let _;if(q[15]===Symbol.for("react.memo_cache_sentinel"))_=z(F,{flexShrink:0,children:z(U,{color:"professionalBlue",children:Yq},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[15]=_;else _=q[15];let B;if(q[16]!==k)B=z(F,{flexDirection:"row",children:[k,_]},void 0,!0,void 0,this),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=z(F,{flexDirection:"column",children:[z(U,{bold:!0,children:"Please select how you'd like to continue"},void 0,!1,void 0,this),z(U,{children:"Your choice takes effect immediately upon confirmation."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==R||q[22]!==b)m=[...R,...b],q[21]=R,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==P)p=(h)=>P(h),q[24]=P,q[25]=p;else p=q[25];let y;if(q[26]!==Z||q[27]!==m||q[28]!==p)y=z(F,{flexDirection:"column",gap:1,children:[T,z(D,{options:m,onChange:p,onCancel:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[26]=Z,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==Z||q[31]!==y||q[32]!==B)S=z(j,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:Z,inputGuide:Wq,children:[B,y]},void 0,!0,void 0,this),q[30]=Z,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Wq(J){return J.pending?z(U,{children:["Press ",J.keyName," again to exit"]},void 0,!0,void 0,this):z(d,{children:[z(f,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),z(f,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _q(J){let q=v(17),{settings:W,domainExcluded:X,onDone:Y}=J,[M,O]=r(W.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];Uq.useEffect(Fq,Q);let A;if(q[1]!==X||q[2]!==M)A=async(Z,k)=>{if(!X&&(k.tab||k.return||Z===" ")){let _=!M;O(_),await C(_)}},q[1]=X,q[2]=M,q[3]=A;else A=q[3];V(A);let N;if(q[4]===Symbol.for("react.memo_cache_sentinel"))N=z(U,{color:"error",children:"false"},void 0,!1,void 0,this),q[4]=N;else N=q[4];let K=N;if(X){let Z;if(q[5]===Symbol.for("react.memo_cache_sentinel"))Z=z(U,{color:"error",children:"false (for emails with your domain)"},void 0,!1,void 0,this),q[5]=Z;else Z=q[5];K=Z}else if(M){let Z;if(q[6]===Symbol.for("react.memo_cache_sentinel"))Z=z(U,{color:"success",children:"true"},void 0,!1,void 0,this),q[6]=Z;else Z=q[6];K=Z}let H;if(q[7]!==X)H=(Z)=>Z.pending?z(U,{children:["Press ",Z.keyName," again to exit"]},void 0,!0,void 0,this):X?z(f,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this):z(d,{children:[z(f,{shortcut:"Enter/Tab/Space",action:"toggle"},void 0,!1,void 0,this),z(f,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[7]=X,q[8]=H;else H=q[8];let P;if(q[9]===Symbol.for("react.memo_cache_sentinel"))P=z(U,{children:["Review and manage your privacy settings at"," ",z(I,{url:"https://claude.ai/settings/data-privacy-controls"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[9]=P;else P=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=z(F,{width:44,children:z(U,{bold:!0,children:"Help improve Claude"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[10]=L;else L=q[10];let R;if(q[11]!==K)R=z(F,{children:[L,z(F,{children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[11]=K,q[12]=R;else R=q[12];let G;if(q[13]!==Y||q[14]!==H||q[15]!==R)G=z(j,{title:"Data Privacy",color:"professionalBlue",onCancel:Y,inputGuide:H,children:[P,R]},void 0,!0,void 0,this),q[13]=Y,q[14]=H,q[15]=R,q[16]=G;else G=q[16];return G}function Fq(){w("tengu_grove_privacy_settings_viewed",{})}var Yq=` _____________
2
+ import{Ep as D,Oq as i,Pq as E,Qq as C,Sq as a,Tq as s,Vq as Jq,dr as Qq}from"./cli-b3k8arn1.js";import{SL as f,TL as t,WL as d,XL as qq,YL as j,ZL as zq}from"./cli-4pwyex04.js";import{DQ as F,FQ as U,JQ as I,WQ as V,fR as e}from"./cli-a2d962bq.js";import{$8 as o,_8 as w}from"./cli-e5yek4vx.js";import{hda as $}from"./cli-qwx84m9c.js";import{c as v}from"react/compiler-runtime";import Uq,{useEffect as Xq,useState as r}from"react";import{jsxDEV as z,Fragment as x}from"react/jsx-dev-runtime";function Zq(){let J=v(9),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=z(U,{children:["An update to our Consumer Terms and Privacy Policy will take effect on"," ",z(U,{bold:!0,children:"October 8, 2025"},void 0,!1,void 0,this),". You can accept the updated terms today."]},void 0,!0,void 0,this),J[0]=q;else q=J[0];let W;if(J[1]===Symbol.for("react.memo_cache_sentinel"))W=z(U,{children:"What's changing?"},void 0,!1,void 0,this),J[1]=W;else W=J[1];let X,Y;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=z(U,{children:"\xB7 "},void 0,!1,void 0,this),Y=z(U,{bold:!0,children:"You can help improve Claude "},void 0,!1,void 0,this),J[2]=X,J[3]=Y;else X=J[2],Y=J[3];let M;if(J[4]===Symbol.for("react.memo_cache_sentinel"))M=z(F,{paddingLeft:1,children:z(U,{children:[X,Y,z(U,{children:["\u2014 Allow the use of your chats and coding sessions to train and improve Anthropic AI models. Change anytime in your Privacy Settings (",z(I,{url:"https://claude.ai/settings/data-privacy-controls"},void 0,!1,void 0,this),")."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J[4]=M;else M=J[4];let O;if(J[5]===Symbol.for("react.memo_cache_sentinel"))O=z(F,{flexDirection:"column",children:[W,M,z(F,{paddingLeft:1,children:z(U,{children:[z(U,{children:"\xB7 "},void 0,!1,void 0,this),z(U,{bold:!0,children:"Updates to data retention "},void 0,!1,void 0,this),z(U,{children:"\u2014 To help us improve our AI models and safety protections, we're extending data retention to 5 years."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[5]=O;else O=J[5];let Q;if(J[6]===Symbol.for("react.memo_cache_sentinel"))Q=z(I,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"},void 0,!1,void 0,this),J[6]=Q;else Q=J[6];let A;if(J[7]===Symbol.for("react.memo_cache_sentinel"))A=z(I,{url:"https://anthropic.com/legal/terms"},void 0,!1,void 0,this),J[7]=A;else A=J[7];let N;if(J[8]===Symbol.for("react.memo_cache_sentinel"))N=z(x,{children:[q,O,z(U,{children:["Learn more (",Q,") or read the updated Consumer Terms (",A,") and Privacy Policy (",z(I,{url:"https://anthropic.com/legal/privacy"},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[8]=N;else N=J[8];return N}function Mq(){let J=v(7),q;if(J[0]===Symbol.for("react.memo_cache_sentinel"))q=z(U,{children:"We've updated our Consumer Terms and Privacy Policy."},void 0,!1,void 0,this),J[0]=q;else q=J[0];let W;if(J[1]===Symbol.for("react.memo_cache_sentinel"))W=z(U,{children:"What's changing?"},void 0,!1,void 0,this),J[1]=W;else W=J[1];let X;if(J[2]===Symbol.for("react.memo_cache_sentinel"))X=z(F,{flexDirection:"column",children:[z(U,{bold:!0,children:"Help improve Claude"},void 0,!1,void 0,this),z(U,{children:"Allow the use of your chats and coding sessions to train and improve Anthropic AI models. You can change this anytime in Privacy Settings"},void 0,!1,void 0,this),z(I,{url:"https://claude.ai/settings/data-privacy-controls"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J[2]=X;else X=J[2];let Y;if(J[3]===Symbol.for("react.memo_cache_sentinel"))Y=z(F,{flexDirection:"column",gap:1,children:[W,X,z(F,{flexDirection:"column",children:[z(U,{bold:!0,children:"How this affects data retention"},void 0,!1,void 0,this),z(U,{children:"Turning ON the improve Claude setting extends data retention from 30 days to 5 years. Turning it OFF keeps the default 30-day data retention. Delete data anytime."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[3]=Y;else Y=J[3];let M;if(J[4]===Symbol.for("react.memo_cache_sentinel"))M=z(I,{url:"https://www.anthropic.com/news/updates-to-our-consumer-terms"},void 0,!1,void 0,this),J[4]=M;else M=J[4];let O;if(J[5]===Symbol.for("react.memo_cache_sentinel"))O=z(I,{url:"https://anthropic.com/legal/terms"},void 0,!1,void 0,this),J[5]=O;else O=J[5];let Q;if(J[6]===Symbol.for("react.memo_cache_sentinel"))Q=z(x,{children:[q,Y,z(U,{children:["Learn more (",M,") or read the updated Consumer Terms (",O,") and Privacy Policy (",z(I,{url:"https://anthropic.com/legal/privacy"},void 0,!1,void 0,this),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),J[6]=Q;else Q=J[6];return Q}function kq(J){let q=v(34),{showIfAlreadyViewed:W,location:X,onDone:Y}=J,[M,O]=r(null),[Q,A]=r(null),N,K;if(q[0]!==X||q[1]!==Y||q[2]!==W)N=()=>{(async function(){let[n,u]=await Promise.all([i(),a()]),l=u.success?u.data:null;A(l);let g=s(n,u,W);if(O(g),!g){Y("skip_rendering");return}E(),w("tengu_grove_policy_viewed",{location:X,dismissable:l?.notice_is_grace_period})})()},K=[W,X,Y],q[0]=X,q[1]=Y,q[2]=W,q[3]=N,q[4]=K;else N=q[3],K=q[4];if(Xq(N,K),M===null)return null;if(!M)return null;let H;if(q[5]!==Q?.notice_is_grace_period||q[6]!==Y)H=async function(c){q:switch(c){case"accept_opt_in":{await C(!0),w("tengu_grove_policy_submitted",{state:!0,dismissable:Q?.notice_is_grace_period});break q}case"accept_opt_out":{await C(!1),w("tengu_grove_policy_submitted",{state:!1,dismissable:Q?.notice_is_grace_period});break q}case"defer":{w("tengu_grove_policy_dismissed",{state:!0});break q}case"escape":w("tengu_grove_policy_escaped",{})}Y(c)},q[5]=Q?.notice_is_grace_period,q[6]=Y,q[7]=H;else H=q[7];let P=H,L;if(q[8]!==Q?.domain_excluded)L=Q?.domain_excluded?[{label:"Accept terms \xB7 Help improve Claude: OFF (for emails with your domain)",value:"accept_opt_out"}]:[{label:"Accept terms \xB7 Help improve Claude: ON",value:"accept_opt_in"},{label:"Accept terms \xB7 Help improve Claude: OFF",value:"accept_opt_out"}],q[8]=Q?.domain_excluded,q[9]=L;else L=q[9];let R=L,G;if(q[10]!==Q?.notice_is_grace_period||q[11]!==P)G=function(){if(Q?.notice_is_grace_period){P("defer");return}P("escape")},q[10]=Q?.notice_is_grace_period,q[11]=P,q[12]=G;else G=q[12];let Z=G,k;if(q[13]!==Q?.notice_is_grace_period)k=z(F,{flexDirection:"column",gap:1,flexGrow:1,children:Q?.notice_is_grace_period?z(Zq,{},void 0,!1,void 0,this):z(Mq,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[13]=Q?.notice_is_grace_period,q[14]=k;else k=q[14];let _;if(q[15]===Symbol.for("react.memo_cache_sentinel"))_=z(F,{flexShrink:0,children:z(U,{color:"professionalBlue",children:Yq},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[15]=_;else _=q[15];let B;if(q[16]!==k)B=z(F,{flexDirection:"row",children:[k,_]},void 0,!0,void 0,this),q[16]=k,q[17]=B;else B=q[17];let T;if(q[18]===Symbol.for("react.memo_cache_sentinel"))T=z(F,{flexDirection:"column",children:[z(U,{bold:!0,children:"Please select how you'd like to continue"},void 0,!1,void 0,this),z(U,{children:"Your choice takes effect immediately upon confirmation."},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[18]=T;else T=q[18];let b;if(q[19]!==Q?.notice_is_grace_period)b=Q?.notice_is_grace_period?[{label:"Not now",value:"defer"}]:[],q[19]=Q?.notice_is_grace_period,q[20]=b;else b=q[20];let m;if(q[21]!==R||q[22]!==b)m=[...R,...b],q[21]=R,q[22]=b,q[23]=m;else m=q[23];let p;if(q[24]!==P)p=(h)=>P(h),q[24]=P,q[25]=p;else p=q[25];let y;if(q[26]!==Z||q[27]!==m||q[28]!==p)y=z(F,{flexDirection:"column",gap:1,children:[T,z(D,{options:m,onChange:p,onCancel:Z},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[26]=Z,q[27]=m,q[28]=p,q[29]=y;else y=q[29];let S;if(q[30]!==Z||q[31]!==y||q[32]!==B)S=z(j,{title:"Updates to Consumer Terms and Policies",color:"professionalBlue",onCancel:Z,inputGuide:Wq,children:[B,y]},void 0,!0,void 0,this),q[30]=Z,q[31]=y,q[32]=B,q[33]=S;else S=q[33];return S}function Wq(J){return J.pending?z(U,{children:["Press ",J.keyName," again to exit"]},void 0,!0,void 0,this):z(d,{children:[z(f,{shortcut:"Enter",action:"confirm"},void 0,!1,void 0,this),z(f,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _q(J){let q=v(17),{settings:W,domainExcluded:X,onDone:Y}=J,[M,O]=r(W.grove_enabled),Q;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Q=[],q[0]=Q;else Q=q[0];Uq.useEffect(Fq,Q);let A;if(q[1]!==X||q[2]!==M)A=async(Z,k)=>{if(!X&&(k.tab||k.return||Z===" ")){let _=!M;O(_),await C(_)}},q[1]=X,q[2]=M,q[3]=A;else A=q[3];V(A);let N;if(q[4]===Symbol.for("react.memo_cache_sentinel"))N=z(U,{color:"error",children:"false"},void 0,!1,void 0,this),q[4]=N;else N=q[4];let K=N;if(X){let Z;if(q[5]===Symbol.for("react.memo_cache_sentinel"))Z=z(U,{color:"error",children:"false (for emails with your domain)"},void 0,!1,void 0,this),q[5]=Z;else Z=q[5];K=Z}else if(M){let Z;if(q[6]===Symbol.for("react.memo_cache_sentinel"))Z=z(U,{color:"success",children:"true"},void 0,!1,void 0,this),q[6]=Z;else Z=q[6];K=Z}let H;if(q[7]!==X)H=(Z)=>Z.pending?z(U,{children:["Press ",Z.keyName," again to exit"]},void 0,!0,void 0,this):X?z(f,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this):z(d,{children:[z(f,{shortcut:"Enter/Tab/Space",action:"toggle"},void 0,!1,void 0,this),z(f,{shortcut:"Esc",action:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[7]=X,q[8]=H;else H=q[8];let P;if(q[9]===Symbol.for("react.memo_cache_sentinel"))P=z(U,{children:["Review and manage your privacy settings at"," ",z(I,{url:"https://claude.ai/settings/data-privacy-controls"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[9]=P;else P=q[9];let L;if(q[10]===Symbol.for("react.memo_cache_sentinel"))L=z(F,{width:44,children:z(U,{bold:!0,children:"Help improve Claude"},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[10]=L;else L=q[10];let R;if(q[11]!==K)R=z(F,{children:[L,z(F,{children:K},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[11]=K,q[12]=R;else R=q[12];let G;if(q[13]!==Y||q[14]!==H||q[15]!==R)G=z(j,{title:"Data Privacy",color:"professionalBlue",onCancel:Y,inputGuide:H,children:[P,R]},void 0,!0,void 0,this),q[13]=Y,q[14]=H,q[15]=R,q[16]=G;else G=q[16];return G}function Fq(){w("tengu_grove_privacy_settings_viewed",{})}var Yq=` _____________
3
3
  | \\ \\
4
4
  | NEW TERMS \\__\\
5
5
  | |
@@ -1,4 +1,4 @@
1
1
  // @bun
2
- import{_4 as v}from"./cli-1ny2386w.js";import{c5 as Y,g5 as A}from"./cli-mb1qrqw1.js";import{C7 as O,D7 as E}from"./cli-mzcsnm06.js";import{L7 as V,M7 as k}from"./cli-rvad3yhg.js";import{G9 as $,H9 as y}from"./cli-rjerv816.js";import{l_ as I,p_ as z,v_ as X,y_ as F}from"./cli-hke6r0q8.js";import{fda as _}from"./cli-w1d8n9g3.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{_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
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
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};
@@ -1,3 +1,3 @@
1
1
  // @bun
2
- import{gC as x,hC as A}from"./cli-me4e2p3e.js";import{fda as z}from"./cli-w1d8n9g3.js";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var B=z(()=>{A()});
2
+ import{gC as x,hC as A}from"./cli-b3k8arn1.js";import{hda as z}from"./cli-qwx84m9c.js";function H(q){if(!q)return 0;return q.activeAgents.filter((b)=>b.source!=="built-in").reduce((b,w)=>{let y=`${w.agentType}: ${w.whenToUse}`;return b+x(y)},0)}var G=15000;var B=z(()=>{A()});
3
3
  export{G as ke,H as le,B as me};