@unieai/code 0.0.14 → 0.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/dist/chunks/App-6wcwb5pc.js +2 -0
- package/dist/chunks/ApproveApiKey-d97zej3m.js +2 -0
- package/dist/chunks/{assistant-bmwndz7j.js → AssistantSessionChooser-vygv3jdr.js} +1 -1
- package/dist/chunks/BypassPermissionsModeDialog-p7yq2zap.js +2 -0
- package/dist/chunks/{ClaudeInChromeOnboarding-ckjppjhr.js → ClaudeInChromeOnboarding-n11q2368.js} +1 -1
- package/dist/chunks/ClaudeMdExternalIncludesDialog-6afdc75a.js +2 -0
- package/dist/chunks/ConsoleOAuthFlow-7na5hhyn.js +2 -0
- package/dist/chunks/{DiffDialog-ptnc4sgx.js → DiffDialog-0gfe5ew5.js} +1 -1
- package/dist/chunks/Doctor-q03grp6g.js +2 -0
- package/dist/chunks/Grove-2hdgsj42.js +2 -0
- package/dist/chunks/{ITermBackend-wgbbpgpy.js → ITermBackend-d4maa39x.js} +1 -1
- package/dist/chunks/{InProcessTransport-vgh7qgjn.js → InProcessTransport-7sr7467h.js} +1 -1
- package/dist/chunks/InvalidConfigDialog-qe8rkhkj.js +2 -0
- package/dist/chunks/InvalidSettingsDialog-tmhmy5tf.js +2 -0
- package/dist/chunks/Onboarding-hp8hb5kc.js +2 -0
- package/dist/chunks/REPL-5ppdjgag.js +2 -0
- package/dist/chunks/{ResumeConversation-ymc529y6.js → ResumeConversation-sr90x948.js} +1 -1
- package/dist/chunks/{SnapshotUpdateDialog-aya2c2f9.js → SnapshotUpdateDialog-wt6b6ee8.js} +1 -1
- package/dist/chunks/{TeleportProgress-kn3qgvd9.js → TeleportProgress-yv82g5fx.js} +1 -1
- package/dist/chunks/{TeleportRepoMismatchDialog-01v6e2qz.js → TeleportRepoMismatchDialog-hdzhp1cy.js} +1 -1
- package/dist/chunks/{TeleportResumeWrapper-48dsm503.js → TeleportResumeWrapper-m93f8nva.js} +1 -1
- package/dist/chunks/{TmuxBackend-s0bt8zqj.js → TmuxBackend-5ajj7r7b.js} +1 -1
- package/dist/chunks/ToolSearchTool-e8x4b1xy.js +2 -0
- package/dist/chunks/{TrustDialog-xtn3kq0n.js → TrustDialog-m74p2tm4.js} +1 -1
- package/dist/chunks/TungstenTool-3f5rj0vm.js +2 -0
- package/dist/chunks/{add-dir-z0kz5nf7.js → add-dir-fswbbep3.js} +1 -1
- package/dist/chunks/{agents-ex4cdx64.js → agents-ftrmk7h2.js} +1 -1
- package/dist/chunks/agents-wg0hfr30.js +4 -0
- package/dist/chunks/ant-claude-for-chrome-mcp-p12dy6z6.js +2 -0
- package/dist/chunks/api-94eda39h.js +2 -0
- package/dist/chunks/asciicast-ktxrxtw6.js +2 -0
- package/dist/chunks/{AssistantSessionChooser-wxmyvgcf.js → assistant-kae6ttkn.js} +1 -1
- package/dist/chunks/{auth-g2p039wk.js → auth-2kpz51np.js} +1 -1
- package/dist/chunks/auth-xw8gbsgb.js +2 -0
- package/dist/chunks/backgroundHousekeeping-zxf9qg70.js +2 -0
- package/dist/chunks/{branch-rdvbhvts.js → branch-takyqck5.js} +1 -1
- package/dist/chunks/{bridgePointer-9rqn5tp6.js → bridgePointer-73w5dbak.js} +1 -1
- package/dist/chunks/{btw-xts6twbq.js → btw-jdp39tx4.js} +1 -1
- package/dist/chunks/{buddy-yc09g048.js → buddy-m4zdx3bb.js} +1 -1
- package/dist/chunks/{cachedMicrocompact-fa2mdnyh.js → cachedMicrocompact-6agq4j15.js} +1 -1
- package/dist/chunks/caches-zfq2xyng.js +2 -0
- package/dist/chunks/{chrome-gb6g0d5p.js → chrome-6nn58sx4.js} +1 -1
- package/dist/chunks/{chromeNativeHost-jsntnc29.js → chromeNativeHost-zww6nc8m.js} +1 -1
- package/dist/chunks/{claudeDesktop-me56qerx.js → claudeDesktop-mbfy989f.js} +1 -1
- package/dist/chunks/{cleanup-hxj6tm50.js → cleanup-b1j2gz00.js} +1 -1
- package/dist/chunks/clear-gcgpc454.js +2 -0
- package/dist/chunks/{cli-63wps6p0.js → cli-01hdyy20.js} +1 -1
- package/dist/chunks/{cli-fnt125we.js → cli-024t0qj5.js} +2 -2
- package/dist/chunks/{cli-xqqnx8gk.js → cli-05d7kjwb.js} +1 -1
- package/dist/chunks/{cli-z02gsrtd.js → cli-0gt2xz4m.js} +2 -2
- package/dist/chunks/{cli-hp5gs22f.js → cli-0hyd6spd.js} +1 -1
- package/dist/chunks/{cli-3619x17q.js → cli-0p0bgg1c.js} +1 -1
- package/dist/chunks/{cli-j4r75xsd.js → cli-0qjhtnek.js} +1 -1
- package/dist/chunks/{cli-7ed2q42n.js → cli-0th9dbz0.js} +2 -2
- package/dist/chunks/{cli-8j0b3b55.js → cli-0vb8t8wq.js} +1 -1
- package/dist/chunks/{cli-7jw2qe69.js → cli-0ybyvcx6.js} +2 -2
- package/dist/chunks/{cli-8xyb31dy.js → cli-10j9svm7.js} +2 -2
- package/dist/chunks/{cli-2sbq6ggm.js → cli-16j5x50q.js} +2 -2
- package/dist/chunks/{cli-3tkd82y4.js → cli-19s45qns.js} +1 -1
- package/dist/chunks/{cli-zwn9x1p2.js → cli-1pwyw30a.js} +1 -1
- package/dist/chunks/{cli-h2t2hyz7.js → cli-1px0m0pt.js} +2 -2
- package/dist/chunks/{cli-e9t5kfxm.js → cli-2540qh2b.js} +1 -1
- package/dist/chunks/{cli-ps5qshk4.js → cli-259ff8gy.js} +1 -1
- package/dist/chunks/{cli-rc3w6tqd.js → cli-26y0jfks.js} +2 -2
- package/dist/chunks/{cli-qwx84m9c.js → cli-2afdzhna.js} +1 -1
- package/dist/chunks/{cli-e5yek4vx.js → cli-2dkq8dre.js} +2 -2
- package/dist/chunks/{cli-1eejy071.js → cli-2q9p0rr5.js} +1 -1
- package/dist/chunks/{cli-awe5yg6m.js → cli-39xs60x2.js} +2 -2
- package/dist/chunks/{cli-mx33m3gs.js → cli-3he638yr.js} +1 -1
- package/dist/chunks/{cli-an97yxg9.js → cli-3q4bcd9y.js} +2 -2
- package/dist/chunks/{cli-swrtc7tv.js → cli-40cqn5s4.js} +1 -1
- package/dist/chunks/cli-461ebjmk.js +3 -0
- package/dist/chunks/{cli-n5wt59z1.js → cli-4c9nnszs.js} +2 -2
- package/dist/chunks/{cli-64x5ghm5.js → cli-4dj4x3mr.js} +1 -1
- package/dist/chunks/{cli-zxe1a0ey.js → cli-4r0qxxn2.js} +2 -2
- package/dist/chunks/{cli-jz50hv3m.js → cli-4v73qw68.js} +1 -1
- package/dist/chunks/{cli-bfm3f0yw.js → cli-5pn327m7.js} +1 -1
- package/dist/chunks/{cli-jrwh6rs0.js → cli-5rxvwnb0.js} +1 -1
- package/dist/chunks/{cli-93sm9n17.js → cli-5t8cqq40.js} +1 -1
- package/dist/chunks/{cli-b3k8arn1.js → cli-63389c5w.js} +589 -589
- package/dist/chunks/{cli-609dp2ck.js → cli-6376p7cj.js} +1 -1
- package/dist/chunks/{cli-8h10q2x8.js → cli-6fmt7dye.js} +1 -1
- package/dist/chunks/{cli-9e8f55fp.js → cli-6xn8gqp2.js} +1 -1
- package/dist/chunks/{cli-a2d962bq.js → cli-7dm5ex18.js} +3 -3
- package/dist/chunks/{cli-9hqmq5g6.js → cli-7q6tcs56.js} +1 -1
- package/dist/chunks/{cli-6cqemsm9.js → cli-7xgc2882.js} +1 -1
- package/dist/chunks/{cli-wznsj6nb.js → cli-884gn8px.js} +1 -1
- package/dist/chunks/cli-8ayzxqxm.js +3 -0
- package/dist/chunks/{cli-33tchr20.js → cli-8hpg8nq4.js} +2 -2
- package/dist/chunks/{cli-5c6e6txh.js → cli-9m758wb1.js} +48 -48
- package/dist/chunks/{cli-192xnkcx.js → cli-9sjvqgf1.js} +39 -39
- package/dist/chunks/{cli-bj0csmzs.js → cli-a1ejrtbd.js} +2 -2
- package/dist/chunks/{cli-fdjfk8yq.js → cli-a2f4j8s5.js} +2 -2
- package/dist/chunks/cli-aevjtty8.js +3 -0
- package/dist/chunks/{cli-601zv0wv.js → cli-ajnshm3j.js} +2 -2
- package/dist/chunks/{cli-q2g5mjv6.js → cli-aw71bpta.js} +1 -1
- package/dist/chunks/{cli-brr3bnrj.js → cli-b2fkrk49.js} +2 -2
- package/dist/chunks/{cli-7k17xstr.js → cli-bavw7hk5.js} +1 -1
- package/dist/chunks/{cli-5ajcy93q.js → cli-bbt5chja.js} +2 -2
- package/dist/chunks/{cli-awb77t95.js → cli-bqs5smsv.js} +2 -2
- package/dist/chunks/{cli-yt4ezhhk.js → cli-btsq7ax8.js} +1 -1
- package/dist/chunks/{cli-yktdhy9p.js → cli-cmfxv0fb.js} +2 -2
- package/dist/chunks/{cli-nqvfpxp6.js → cli-d287m3xt.js} +1 -1
- package/dist/chunks/{cli-0nz8v3dj.js → cli-d5tdpnv2.js} +1 -1
- package/dist/chunks/{cli-jmq1x925.js → cli-d8qkvmdn.js} +2 -2
- package/dist/chunks/{cli-9xtyh8c7.js → cli-dc6wqdxq.js} +2 -2
- package/dist/chunks/{cli-rjy86nps.js → cli-djvr12vv.js} +1 -1
- package/dist/chunks/{cli-e4a4fjx9.js → cli-dp2jt8fs.js} +2 -2
- package/dist/chunks/{cli-e3q6b1cv.js → cli-e1e1m0pp.js} +1 -1
- package/dist/chunks/{cli-szxfz15b.js → cli-e1gmbexn.js} +1 -1
- package/dist/chunks/{cli-2428yw99.js → cli-e5vc9y1s.js} +2 -2
- package/dist/chunks/{cli-8kpqq0ea.js → cli-eehgc06t.js} +2 -2
- package/dist/chunks/{cli-a1cx6p3g.js → cli-ehchpnvs.js} +1 -1
- package/dist/chunks/{cli-6qt2xm18.js → cli-epetmtbs.js} +2 -2
- package/dist/chunks/{cli-m6amgxq3.js → cli-ex1phpwq.js} +1 -1
- package/dist/chunks/{cli-8ykv66e4.js → cli-ey3ajcbm.js} +2 -2
- package/dist/chunks/{cli-wvctks7e.js → cli-eys4epws.js} +2 -2
- package/dist/chunks/{cli-2fqrjjs9.js → cli-ezm83s1g.js} +1 -1
- package/dist/chunks/{cli-dx0pk7k2.js → cli-f2vabz18.js} +1 -1
- package/dist/chunks/{cli-7wxv39ry.js → cli-fg3rb4dg.js} +2 -2
- package/dist/chunks/{cli-t7sx6zqn.js → cli-fn58ekhc.js} +1 -1
- package/dist/chunks/{cli-6ee37m6j.js → cli-ft5hkwbj.js} +1 -1
- package/dist/chunks/{cli-eh1wx76n.js → cli-ftpdmdw5.js} +1 -1
- package/dist/chunks/{cli-df5r5xrp.js → cli-fvr47wt6.js} +1 -1
- package/dist/chunks/{cli-a1dqnvy2.js → cli-g85dpwpq.js} +1 -1
- package/dist/chunks/{cli-d1w21hsm.js → cli-gd0f1rtp.js} +1 -1
- package/dist/chunks/{cli-bpj9na88.js → cli-gh3w0z1t.js} +1 -1
- package/dist/chunks/{cli-ktzyyx91.js → cli-gpsc6dvd.js} +1 -1
- package/dist/chunks/{cli-zqrzc3qx.js → cli-gv71wq8a.js} +1 -1
- package/dist/chunks/{cli-67azkkwm.js → cli-h2e1scnk.js} +1 -1
- package/dist/chunks/{cli-bdgrtpsy.js → cli-h3vttdhj.js} +2 -2
- package/dist/chunks/{cli-sbm8tsyq.js → cli-h5hm4rsb.js} +1 -1
- package/dist/chunks/cli-h7tdk5fx.js +3 -0
- package/dist/chunks/{cli-yaxs01at.js → cli-h9xmkhdq.js} +2 -2
- package/dist/chunks/{cli-b8j8bm5m.js → cli-hs95nqb0.js} +1 -1
- package/dist/chunks/{cli-rz03bav0.js → cli-hsnk77dk.js} +1 -1
- package/dist/chunks/{cli-q8zmmp6z.js → cli-hy0se8fa.js} +2 -2
- package/dist/chunks/{cli-3tmtx9ka.js → cli-jr0hzh2w.js} +1 -1
- package/dist/chunks/{cli-hpxspent.js → cli-jy20hqk9.js} +2 -2
- package/dist/chunks/{cli-ez2xsd4m.js → cli-k3b5ctgk.js} +2 -2
- package/dist/chunks/{cli-yxsn8ang.js → cli-kc4b0z3x.js} +1 -1
- package/dist/chunks/{cli-d2pn0xfj.js → cli-krmacmt6.js} +1 -1
- package/dist/chunks/{cli-tafg3e9w.js → cli-ktzb7cwm.js} +2 -2
- package/dist/chunks/{cli-sr25begm.js → cli-m09f7s7e.js} +1 -1
- package/dist/chunks/{cli-kx3r72jp.js → cli-mae5am6a.js} +1 -1
- package/dist/chunks/{cli-z2ewnqgr.js → cli-mhza34xq.js} +2 -2
- package/dist/chunks/{cli-qpjkqhg2.js → cli-mky8bjey.js} +1 -1
- package/dist/chunks/{cli-fz053waw.js → cli-mqkqq3ye.js} +2 -2
- package/dist/chunks/{cli-vtsy70mz.js → cli-ms2tdrrf.js} +1 -1
- package/dist/chunks/{cli-hrmzaf5d.js → cli-n0xnhnx9.js} +2 -2
- package/dist/chunks/{cli-cfbfexxj.js → cli-ncbagd2h.js} +1 -1
- package/dist/chunks/{cli-vfh77r55.js → cli-ndp9j4vm.js} +1 -1
- package/dist/chunks/{cli-4pwyex04.js → cli-ndrvqgnc.js} +2 -2
- package/dist/chunks/{cli-jz8jcrhh.js → cli-nhks97kf.js} +1 -1
- package/dist/chunks/{cli-ry9g546q.js → cli-p2ngs1jm.js} +1 -1
- package/dist/chunks/{cli-qrmc38f8.js → cli-p853vxnx.js} +2 -2
- package/dist/chunks/{cli-gfweqbpz.js → cli-pmfc2886.js} +1 -1
- package/dist/chunks/{cli-1p7nc6zb.js → cli-q33bj7n5.js} +2 -2
- package/dist/chunks/{cli-t4see9hh.js → cli-q5arj6fm.js} +2 -2
- package/dist/chunks/{cli-vb6aa4jk.js → cli-q6atnwff.js} +2 -2
- package/dist/chunks/{cli-cmh6qwg8.js → cli-q93jv7x6.js} +2 -2
- package/dist/chunks/{cli-dy9qrrps.js → cli-qa0qmmg4.js} +2 -2
- package/dist/chunks/{cli-222ywgt0.js → cli-qhefvb54.js} +2 -2
- package/dist/chunks/{cli-sxe9wke0.js → cli-qxtxfn2z.js} +1 -1
- package/dist/chunks/{cli-bnr79ddy.js → cli-r29k5h5x.js} +2 -2
- package/dist/chunks/{cli-a826q5zk.js → cli-rm2gppbh.js} +1 -1
- package/dist/chunks/{cli-a25jeqs8.js → cli-rv4z0bsv.js} +2 -2
- package/dist/chunks/{cli-g2s3391y.js → cli-s5ee96g6.js} +1 -1
- package/dist/chunks/{cli-5kehgkgh.js → cli-sqtf9njc.js} +1 -1
- package/dist/chunks/{cli-3hrmwgsv.js → cli-stjsr4fx.js} +2 -2
- package/dist/chunks/{cli-tpjr1pz9.js → cli-svyc36nr.js} +1 -1
- package/dist/chunks/{cli-j403r21v.js → cli-sw84zjvc.js} +1 -1
- package/dist/chunks/{cli-vm7dr5aa.js → cli-tbp8513t.js} +2 -2
- package/dist/chunks/{cli-7n4d5yzr.js → cli-tez2hmqw.js} +1 -1
- package/dist/chunks/{cli-hs2k9997.js → cli-tfs3as1v.js} +1 -1
- package/dist/chunks/{cli-2j6cv2kz.js → cli-tj8fyjds.js} +2 -2
- package/dist/chunks/{cli-phwbqkv7.js → cli-tnbyhfne.js} +2 -2
- package/dist/chunks/{cli-97vx3m99.js → cli-ttxhmsvc.js} +1 -1
- package/dist/chunks/{cli-yb5m6jwq.js → cli-v86f53k0.js} +3 -3
- package/dist/chunks/{cli-07f2hk9d.js → cli-v8wqc6y3.js} +1 -1
- package/dist/chunks/{cli-m3r80gy0.js → cli-v9wwx1rc.js} +1 -1
- package/dist/chunks/{cli-8jym9hp6.js → cli-vbn35zp3.js} +2 -2
- package/dist/chunks/{cli-ca1jmr8f.js → cli-vj1rywde.js} +2 -2
- package/dist/chunks/cli-vq0ktbx3.js +3 -0
- package/dist/chunks/{cli-pgjnzqk4.js → cli-vrs8hpz4.js} +1 -1
- package/dist/chunks/{cli-r43jhzwm.js → cli-vzcpa5mx.js} +2 -2
- package/dist/chunks/{cli-q0vret0x.js → cli-w0jxph8x.js} +1 -1
- package/dist/chunks/{cli-x9s7jxq5.js → cli-w1y2zvbw.js} +2 -2
- package/dist/chunks/{cli-vy3e90k9.js → cli-w4zkh280.js} +1 -1
- package/dist/chunks/{cli-chvks6bg.js → cli-w8jvw417.js} +1 -1
- package/dist/chunks/{cli-ax0ckqpv.js → cli-w8pfefka.js} +1 -1
- package/dist/chunks/{cli-rd5ax7sn.js → cli-x0jht735.js} +1 -1
- package/dist/chunks/{cli-gypyp608.js → cli-x4rgkedw.js} +1 -1
- package/dist/chunks/{cli-asc9xmsr.js → cli-xabdpk7s.js} +1 -1
- package/dist/chunks/{cli-1q1b8rgs.js → cli-xq9g16gt.js} +1 -1
- package/dist/chunks/{cli-vqne1z50.js → cli-xw96dapq.js} +1 -1
- package/dist/chunks/{cli-b29enbbc.js → cli-xza1mmh1.js} +1 -1
- package/dist/chunks/{cli-b5z57an7.js → cli-y2g1asak.js} +1 -1
- package/dist/chunks/{cli-mcbntv3p.js → cli-yaw2d4zq.js} +1 -1
- package/dist/chunks/{cli-yfb8bk69.js → cli-ymqdnbx2.js} +2 -2
- package/dist/chunks/{cli-shsgq494.js → cli-yps4pn87.js} +1 -1
- package/dist/chunks/{cli-bzrat9yd.js → cli-z1f33m31.js} +2 -2
- package/dist/chunks/cli-z6eshqx6.js +3 -0
- package/dist/chunks/{cli-9tbmrp89.js → cli-zjznn7cc.js} +1 -1
- package/dist/chunks/{cli-ceas97gw.js → cli-zqj1my2v.js} +2 -2
- package/dist/chunks/{cli-psqvdh1r.js → cli-zrth7vt6.js} +1 -1
- package/dist/chunks/{cli-8z8d5bgb.js → cli-zxrt2zch.js} +2 -2
- package/dist/chunks/cli-zxz1xm2y.js +3 -0
- package/dist/chunks/client-syew3mvc.js +2 -0
- package/dist/chunks/color-qatz507k.js +2 -0
- package/dist/chunks/commitAttribution-shckr1cq.js +2 -0
- package/dist/chunks/common-jh4pavb6.js +2 -0
- package/dist/chunks/{compact-kysg5kxd.js → compact-sxghgg9n.js} +1 -1
- package/dist/chunks/config-25r8er6j.js +2 -0
- package/dist/chunks/config-ahnc48yv.js +2 -0
- package/dist/chunks/{context-aat04hqp.js → context-8vmnhkcn.js} +1 -1
- package/dist/chunks/context-noninteractive-r3easde9.js +2 -0
- package/dist/chunks/conversation-5j4eggm2.js +2 -0
- package/dist/chunks/{copy-zpvnnk85.js → copy-kkwp50xa.js} +1 -1
- package/dist/chunks/cost-jpq9rbzx.js +5 -0
- package/dist/chunks/createSession-q0a53mn0.js +2 -0
- package/dist/chunks/desktop-k6291p1x.js +2 -0
- package/dist/chunks/detectRepository-h3gr8gdb.js +2 -0
- package/dist/chunks/detection-b0zsvwnb.js +2 -0
- package/dist/chunks/{devtools-7jd4m7th.js → devtools-8zc2m716.js} +1 -1
- package/dist/chunks/{diff-xaw6ebj0.js → diff-vm40nyxd.js} +1 -1
- package/dist/chunks/doctor-y45fmac9.js +2 -0
- package/dist/chunks/earlyInput-pegekfhn.js +2 -0
- package/dist/chunks/{effort-bj5x7fcg.js → effort-9xnbtb27.js} +1 -1
- package/dist/chunks/executor-kx69dfy3.js +2 -0
- package/dist/chunks/exit-8r8kx8hm.js +2 -0
- package/dist/chunks/{export-tjrkechp.js → export-0wr0abd0.js} +1 -1
- package/dist/chunks/extra-usage-nbgas106.js +2 -0
- package/dist/chunks/extra-usage-noninteractive-66zmwx05.js +2 -0
- package/dist/chunks/fast-8ymdvfm8.js +2 -0
- package/dist/chunks/feedback-n8vwr3z9.js +2 -0
- package/dist/chunks/{files-n3b22fs2.js → files-mhx9cc10.js} +1 -1
- package/dist/chunks/firstPartyEventLogger-paerdr2m.js +2 -0
- package/dist/chunks/gates-wngyk842.js +2 -0
- package/dist/chunks/git-r7sca128.js +2 -0
- package/dist/chunks/goal-zqeb4rnv.js +2 -0
- package/dist/chunks/growthbook-z0km1xj1.js +2 -0
- package/dist/chunks/{heapdump-2y7wcy1r.js → heapdump-rcge2q0e.js} +1 -1
- package/dist/chunks/{help-a7mc9946.js → help-zba127jm.js} +1 -1
- package/dist/chunks/{hooks-22nm9hn0.js → hooks-kwyxgfnh.js} +1 -1
- package/dist/chunks/hooks-sd4knstw.js +2 -0
- package/dist/chunks/{ide-9x5zsk63.js → ide-ph9revqg.js} +1 -1
- package/dist/chunks/index-y2qvpmjn.js +2 -0
- package/dist/chunks/{initReplBridge-xjc6eaan.js → initReplBridge-0fb0sdd0.js} +1 -1
- package/dist/chunks/ink-qfs553mf.js +2 -0
- package/dist/chunks/{insights-n7k1ty4n.js → insights-mc3fr5tq.js} +1 -1
- package/dist/chunks/{install-github-app-zdsmjft8.js → install-github-app-8bpx4gak.js} +1 -1
- package/dist/chunks/{install-rhzcmymh.js → install-jnwzbh9n.js} +1 -1
- package/dist/chunks/install-slack-app-mq18xdh4.js +2 -0
- package/dist/chunks/instrumentation-r6m6cpwq.js +13 -0
- package/dist/chunks/keybindings-5xfde34t.js +3 -0
- package/dist/chunks/loadAgentsDir-858gc42y.js +2 -0
- package/dist/chunks/loadPluginHooks-nye2wnjd.js +2 -0
- package/dist/chunks/login-d806meeh.js +2 -0
- package/dist/chunks/logout-7eab6ep8.js +2 -0
- package/dist/chunks/{main-6h6y0rzf.js → main-r6t52mjc.js} +14 -14
- package/dist/chunks/{mcp-yqhzespv.js → mcp-0vwtqwa6.js} +1 -1
- package/dist/chunks/mcp-r18hhy02.js +3 -0
- package/dist/chunks/{mcp-yrt7dbxp.js → mcp-y8q5yb60.js} +3 -3
- package/dist/chunks/{mcpServer-f90a93nt.js → mcpServer-17f7qjpf.js} +1 -1
- package/dist/chunks/{mcpServer-v1dy489g.js → mcpServer-za0c5qxf.js} +1 -1
- package/dist/chunks/{memory-mdwb22wh.js → memory-cygg4exk.js} +1 -1
- package/dist/chunks/{mobile-j4jwvavn.js → mobile-3b85d257.js} +1 -1
- package/dist/chunks/{model-tf1ne2j9.js → model-159q4y9p.js} +1 -1
- package/dist/chunks/model-m251ahzh.js +2 -0
- package/dist/chunks/{oauth-1b0qpxz4.js → oauth-0bwqgx9q.js} +1 -1
- package/dist/chunks/{output-style-t39s3jqx.js → output-style-93keyt16.js} +1 -1
- package/dist/chunks/parser-hwq42bt6.js +2 -0
- package/dist/chunks/{passes-s3fqswrg.js → passes-q304cea1.js} +1 -1
- package/dist/chunks/{permissions-a050zfqv.js → permissions-tyasy9cv.js} +1 -1
- package/dist/chunks/plan-24nj1sc9.js +2 -0
- package/dist/chunks/plugin-6vddyvyh.js +2 -0
- package/dist/chunks/pluginStartupCheck-0vse6r56.js +2 -0
- package/dist/chunks/{plugins-4py04yzf.js → plugins-0c98naeb.js} +2 -2
- package/dist/chunks/{preauthorizedConfig-hmxcgb8e.js → preauthorizedConfig-et34h6tr.js} +1 -1
- package/dist/chunks/{print-pmzxgktf.js → print-z6k6yas1.js} +4 -4
- package/dist/chunks/privacy-settings-8j5mffff.js +2 -0
- package/dist/chunks/process-22t1nv1h.js +2 -0
- package/dist/chunks/{processBashCommand-zkztsgn4.js → processBashCommand-z4dv10xe.js} +1 -1
- package/dist/chunks/{processSlashCommand-mfh1h592.js → processSlashCommand-3d7jy9zn.js} +1 -1
- package/dist/chunks/prompt-2vc9x4tz.js +2 -0
- package/dist/chunks/prompt-n672rb6v.js +2 -0
- package/dist/chunks/provider-prompt-cyzsv35w.js +2 -0
- package/dist/chunks/{rate-limit-options-kd432dap.js → rate-limit-options-sj78r287.js} +1 -1
- package/dist/chunks/registry-eh3nbvrw.js +2 -0
- package/dist/chunks/release-notes-242sqhds.js +6 -0
- package/dist/chunks/reload-plugins-bnwgt3b2.js +3 -0
- package/dist/chunks/{remote-env-rg4k5em5.js → remote-env-gpwv8c1y.js} +1 -1
- package/dist/chunks/{remoteBridgeCore-t980tt3v.js → remoteBridgeCore-5f92ewk3.js} +1 -1
- package/dist/chunks/rename-q0t9qmps.js +2 -0
- package/dist/chunks/{resume-3tc40yn9.js → resume-707rbm95.js} +1 -1
- package/dist/chunks/{rewind-b6vg7dxs.js → rewind-2ghm1ys8.js} +1 -1
- package/dist/chunks/sandbox-adapter-z2sedaea.js +2 -0
- package/dist/chunks/{sandbox-toggle-eke03mr8.js → sandbox-toggle-r0nsvjfe.js} +1 -1
- package/dist/chunks/{session-53f3eza5.js → session-7jy47tfh.js} +1 -1
- package/dist/chunks/sessionFileAccessHooks-0h2dzr6d.js +2 -0
- package/dist/chunks/sessionStorage-na71kng7.js +2 -0
- package/dist/chunks/settings-jnqec2t4.js +2 -0
- package/dist/chunks/{setup-z05dsr8q.js → setup-exrj5apq.js} +2 -2
- package/dist/chunks/{setup-gravfzvg.js → setup-hhnqt5m4.js} +1 -1
- package/dist/chunks/setup-sv1h7c9x.js +2 -0
- package/dist/chunks/sinks-h5jqp76t.js +2 -0
- package/dist/chunks/{skills-41mfq71n.js → skills-7cx810ev.js} +1 -1
- package/dist/chunks/startupProfiler-qkkwmx3e.js +2 -0
- package/dist/chunks/state-9t5rddcc.js +2 -0
- package/dist/chunks/{stats-7qg84dw1.js → stats-4trmdgr9.js} +1 -1
- package/dist/chunks/status-qvn7jn0p.js +2 -0
- package/dist/chunks/stickers-p4yrfr32.js +2 -0
- package/dist/chunks/subprocessEnv-x1xd9x7k.js +2 -0
- package/dist/chunks/{systemPromptSections-jxxyhnxe.js → systemPromptSections-pcrphkzc.js} +1 -1
- package/dist/chunks/{tag-58ndeaa9.js → tag-bexktcx4.js} +1 -1
- package/dist/chunks/tasks-a0mx2drp.js +2 -0
- package/dist/chunks/teamHelpers-bfbx13m0.js +2 -0
- package/dist/chunks/teammateModeSnapshot-x1dc2d00.js +2 -0
- package/dist/chunks/teleport-y1mmes2t.js +2 -0
- package/dist/chunks/terminalSetup-a0a8wgbj.js +2 -0
- package/dist/chunks/theme-1wm2bpaf.js +2 -0
- package/dist/chunks/thinkback-3sz6bf5t.js +2 -0
- package/dist/chunks/thinkback-play-swd1vjqn.js +2 -0
- package/dist/chunks/toolSearch-8mgqzknz.js +2 -0
- package/dist/chunks/trustedDevice-9yp8mttk.js +2 -0
- package/dist/chunks/{ultrareviewCommand-qwnsjdez.js → ultrareviewCommand-dj716ryk.js} +1 -1
- package/dist/chunks/update-r3pdnfg1.js +82 -0
- package/dist/chunks/upgrade-adym17ka.js +2 -0
- package/dist/chunks/{upstreamproxy-34wva0r5.js → upstreamproxy-39e2hgq3.js} +1 -1
- package/dist/chunks/usage-gehxyrfj.js +2 -0
- package/dist/chunks/util-qk39hg9x.js +2 -0
- package/dist/chunks/utils-5nwk1214.js +2 -0
- package/dist/chunks/vim-zqzf0xh8.js +2 -0
- package/dist/chunks/worktree-17wb4yc5.js +2 -0
- package/dist/chunks/worktreeModeEnabled-pjb4srr0.js +2 -0
- package/dist/cli.js +1 -1
- package/package.json +2 -1
- package/dist/chunks/App-ncpmz34p.js +0 -2
- package/dist/chunks/ApproveApiKey-fqzjf1j3.js +0 -2
- package/dist/chunks/BypassPermissionsModeDialog-3ksmd8pp.js +0 -2
- package/dist/chunks/ClaudeMdExternalIncludesDialog-rrsfavte.js +0 -2
- package/dist/chunks/ConsoleOAuthFlow-04xt4sby.js +0 -2
- package/dist/chunks/Doctor-kg5m2zma.js +0 -2
- package/dist/chunks/Grove-rf9xhe2e.js +0 -2
- package/dist/chunks/InvalidConfigDialog-6spqsgmr.js +0 -2
- package/dist/chunks/InvalidSettingsDialog-m6y6esgz.js +0 -2
- package/dist/chunks/Onboarding-j1m69bqm.js +0 -2
- package/dist/chunks/REPL-bpg86z4h.js +0 -2
- package/dist/chunks/ToolSearchTool-4rm3kr13.js +0 -2
- package/dist/chunks/TungstenTool-3wjjz6cf.js +0 -2
- package/dist/chunks/agents-w6zde2j9.js +0 -4
- package/dist/chunks/ant-claude-for-chrome-mcp-gr0b0jr4.js +0 -2
- package/dist/chunks/api-07pqphw5.js +0 -2
- package/dist/chunks/asciicast-2k1ztt6v.js +0 -2
- package/dist/chunks/auth-g509w5pr.js +0 -2
- package/dist/chunks/backgroundHousekeeping-hw0chw1d.js +0 -2
- package/dist/chunks/caches-3qzm958c.js +0 -2
- package/dist/chunks/clear-ssfbry3k.js +0 -2
- package/dist/chunks/cli-16k24hzp.js +0 -3
- package/dist/chunks/cli-8xz7dd7z.js +0 -3
- package/dist/chunks/cli-geka8fb7.js +0 -3
- package/dist/chunks/cli-rwh0a2m1.js +0 -3
- package/dist/chunks/cli-t5ddsvmv.js +0 -3
- package/dist/chunks/cli-t5yqvdb3.js +0 -3
- package/dist/chunks/cli-t8ydjjs7.js +0 -3
- package/dist/chunks/client-qxx2ja27.js +0 -2
- package/dist/chunks/color-k1ew8kzn.js +0 -2
- package/dist/chunks/commitAttribution-nsa26sdx.js +0 -2
- package/dist/chunks/common-7t28qq0q.js +0 -2
- package/dist/chunks/config-d4kj5q8e.js +0 -2
- package/dist/chunks/config-txzzncm9.js +0 -2
- package/dist/chunks/context-noninteractive-w54t6xnc.js +0 -2
- package/dist/chunks/conversation-brecqh0t.js +0 -2
- package/dist/chunks/cost-5fbyws6x.js +0 -5
- package/dist/chunks/createSession-hsp3x7vw.js +0 -2
- package/dist/chunks/desktop-7kdmxet0.js +0 -2
- package/dist/chunks/detectRepository-9xqead5f.js +0 -2
- package/dist/chunks/detection-z3cdks0s.js +0 -2
- package/dist/chunks/doctor-nbm4z0tx.js +0 -2
- package/dist/chunks/earlyInput-e8zh4d2d.js +0 -2
- package/dist/chunks/executor-e1744nra.js +0 -2
- package/dist/chunks/exit-894g29w2.js +0 -2
- package/dist/chunks/extra-usage-noninteractive-577ac873.js +0 -2
- package/dist/chunks/extra-usage-tfwmdc7z.js +0 -2
- package/dist/chunks/fast-1krm57mn.js +0 -2
- package/dist/chunks/feedback-2421cbpm.js +0 -2
- package/dist/chunks/firstPartyEventLogger-1kwwcqdn.js +0 -2
- package/dist/chunks/gates-sd1cp8f2.js +0 -2
- package/dist/chunks/git-t6e9xdt2.js +0 -2
- package/dist/chunks/goal-0sxyk3va.js +0 -2
- package/dist/chunks/growthbook-4hx0kbpq.js +0 -2
- package/dist/chunks/hooks-tf9v5b0x.js +0 -2
- package/dist/chunks/index-p1k4dhfc.js +0 -2
- package/dist/chunks/ink-9n8bszp5.js +0 -2
- package/dist/chunks/install-slack-app-vhfe2dsf.js +0 -2
- package/dist/chunks/instrumentation-5jjvsvke.js +0 -13
- package/dist/chunks/keybindings-tqnmw7ng.js +0 -3
- package/dist/chunks/loadAgentsDir-j7pntb5v.js +0 -2
- package/dist/chunks/loadPluginHooks-sta7ra57.js +0 -2
- package/dist/chunks/login-j7x2fjw8.js +0 -2
- package/dist/chunks/logout-53bvwba1.js +0 -2
- package/dist/chunks/mcp-3mjagnnt.js +0 -3
- package/dist/chunks/model-hz3nn362.js +0 -2
- package/dist/chunks/parser-8venanpw.js +0 -2
- package/dist/chunks/plan-gjaybyvb.js +0 -2
- package/dist/chunks/plugin-trf2388p.js +0 -2
- package/dist/chunks/pluginStartupCheck-wxmc7h98.js +0 -2
- package/dist/chunks/privacy-settings-b2rz35r5.js +0 -2
- package/dist/chunks/process-n5355p53.js +0 -2
- package/dist/chunks/prompt-2jyjhkwg.js +0 -2
- package/dist/chunks/prompt-b34a0h5z.js +0 -2
- package/dist/chunks/provider-prompt-qe4s2yzh.js +0 -2
- package/dist/chunks/registry-d7cd5dqg.js +0 -2
- package/dist/chunks/release-notes-rwgbn4pp.js +0 -6
- package/dist/chunks/reload-plugins-9axdwaaj.js +0 -3
- package/dist/chunks/rename-xap3rpbv.js +0 -2
- package/dist/chunks/sandbox-adapter-1z8xktva.js +0 -2
- package/dist/chunks/sessionFileAccessHooks-xscvsvqt.js +0 -2
- package/dist/chunks/sessionStorage-rb63e8bn.js +0 -2
- package/dist/chunks/settings-hp0ksjn9.js +0 -2
- package/dist/chunks/setup-ssq8b1e6.js +0 -2
- package/dist/chunks/sinks-agafqaxj.js +0 -2
- package/dist/chunks/startupProfiler-wmf8nvfd.js +0 -2
- package/dist/chunks/state-rhxyy4qm.js +0 -2
- package/dist/chunks/status-sran2y9h.js +0 -2
- package/dist/chunks/stickers-hythmrsd.js +0 -2
- package/dist/chunks/subprocessEnv-b12dkzky.js +0 -2
- package/dist/chunks/tasks-52g28x72.js +0 -2
- package/dist/chunks/teamHelpers-rxt9rvmd.js +0 -2
- package/dist/chunks/teammateModeSnapshot-2782d4w9.js +0 -2
- package/dist/chunks/teleport-8gjys6yn.js +0 -2
- package/dist/chunks/terminalSetup-bbftxeqk.js +0 -2
- package/dist/chunks/theme-b38te5rz.js +0 -2
- package/dist/chunks/thinkback-05a9q24j.js +0 -2
- package/dist/chunks/thinkback-play-1nbagfm5.js +0 -2
- package/dist/chunks/toolSearch-7rnke366.js +0 -2
- package/dist/chunks/trustedDevice-2dn4981h.js +0 -2
- package/dist/chunks/update-ney1krzn.js +0 -82
- package/dist/chunks/upgrade-zxxxfq8c.js +0 -2
- package/dist/chunks/usage-82ghrfb3.js +0 -2
- package/dist/chunks/util-xm9cs164.js +0 -2
- package/dist/chunks/utils-zs0ft181.js +0 -2
- package/dist/chunks/vim-6gxdrp1k.js +0 -2
- package/dist/chunks/worktree-xjxz4ndt.js +0 -2
- package/dist/chunks/worktreeModeEnabled-8ndm5yfs.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ae as LJ,Be as MQ}from"./cli-
|
|
2
|
+
import{Ae as LJ,Be as MQ}from"./cli-yps4pn87.js";import{Ye as EJ,bf as lQ}from"./cli-ncbagd2h.js";import{mg as SJ,pg as NJ,qg as pQ}from"./cli-fvr47wt6.js";import{$o as TJ,$v as dQ,$z as cQ,BD as uQ,Ei as bQ,Ep as VJ,Fp as qQ,Lh as h,Mh as NQ,QI as rQ,Rm as wJ,Sm as DQ,To as jJ,Tv as i,Vo as AJ,Xo as xJ,_o as vJ,_z as bJ,ap as fJ,cp as CJ,fI as uJ,gD as FJ,gr as yJ,hr as OQ,ip as EQ,kn as q,ln as _Q,pi as $J,qD as mQ,wi as hJ,xH as mJ,yD as DJ}from"./cli-63389c5w.js";import{IM as p,JM as d,_M as RQ}from"./cli-k3b5ctgk.js";import{QN as IJ,TN as FQ}from"./cli-a1ejrtbd.js";import{$N as nQ,VN as pJ,WN as dJ,XN as cJ}from"./cli-ey3ajcbm.js";import{oO as _J,uO as iQ}from"./cli-z1f33m31.js";import{DQ as y,EQ as SQ,FQ as c,HQ as UJ,hR as PQ}from"./cli-7dm5ex18.js";import{pS as XJ,rS as UQ}from"./cli-zqj1my2v.js";import{E3 as b,EW as qJ,F3 as s,JW as C,K1 as CQ,KW as u,S2 as R,S3 as x,SW as TQ,Y1 as o,Z1 as aJ,ZY as OJ,_Y as MJ,aX as iJ,b3 as YJ,c3 as WJ,dX as eQ,n1 as f,w3 as M,wZ as fQ,z3 as Y}from"./cli-9sjvqgf1.js";import{F4 as LQ,t4 as HJ}from"./cli-vzcpa5mx.js";import{e5 as $,i5 as vQ}from"./cli-epetmtbs.js";import{B5 as XQ,n5 as _,q5 as KQ,v5 as GJ,w5 as KJ}from"./cli-e5vc9y1s.js";import{E7 as g,h7 as n,i7 as r,x7 as PJ}from"./cli-v86f53k0.js";import{L7 as N,M7 as gJ}from"./cli-fg3rb4dg.js";import{P7 as S,Q7 as rJ}from"./cli-024t0qj5.js";import{I8 as W,N8 as A}from"./cli-eehgc06t.js";import{a9 as BJ,b9 as kQ}from"./cli-2dkq8dre.js";import{u9 as U,w9 as a}from"./cli-bbt5chja.js";import{F9 as zJ,G9 as GQ}from"./cli-4r0qxxn2.js";import{$9 as QJ,C_ as v,f_ as ZQ,h_ as D,i_ as ZJ,l_ as zQ,z_ as K}from"./cli-bqs5smsv.js";import{kda as QQ}from"./cli-2afdzhna.js";rJ();x();a();gJ();g();A();aJ();import t from"lodash-es/memoize.js";import l from"lodash-es/sample.js";var oJ=[/(?:^|\/)(?:package-lock\.json|yarn\.lock|bun\.lock|bun\.lockb|pnpm-lock\.yaml|Pipfile\.lock|poetry\.lock|Cargo\.lock|Gemfile\.lock|go\.sum|composer\.lock|uv\.lock)$/,/\.generated\./,/(?:^|\/)(?:dist|build|out|target|node_modules|\.next|__pycache__)\//,/\.(?:min\.js|min\.css|map|pyc|pyo)$/,/\.(?:json|ya?ml|toml|xml|ini|cfg|conf|env|lock|txt|md|mdx|rst|csv|log|svg)$/i,/(?:^|\/)\.?(?:eslintrc|prettierrc|babelrc|editorconfig|gitignore|gitattributes|dockerignore|npmrc)/,/(?:^|\/)(?:tsconfig|jsconfig|biome|vitest\.config|jest\.config|webpack\.config|vite\.config|rollup\.config)\.[a-z]+$/,/(?:^|\/)\.(?:github|vscode|idea|claude)\//,/(?:^|\/)(?:CHANGELOG|LICENSE|CONTRIBUTING|CODEOWNERS|README)(?:\.[a-z]+)?$/i];function sJ(Q){return!oJ.some((J)=>J.test(Q))}function tJ(Q,J){let Z=[],z=new Set,X=new Map;for(let G=1;Z.length<J&&G<=J;G++)for(let H of Q){if(Z.length>=J)break;if(!sJ(H))continue;let B=Math.max(H.lastIndexOf("/"),H.lastIndexOf("\\")),V=B>=0?H.slice(B+1):H;if(!V||z.has(V))continue;let L=B>=0?H.slice(0,B):".";if((X.get(L)??0)>=G)continue;Z.push(V),z.add(V),X.set(L,(X.get(L)??0)+1)}return Z.length>=J?Z:[]}async function eJ(){if(U.platform==="win32")return[];if(!await r())return[];try{let Q=await o(),J=["log","-n","1000","--pretty=format:","--name-only","--diff-filter=M"],Z=new Map,z=(G)=>{for(let H of G.split(`
|
|
3
3
|
`)){let B=H.trim();if(B)Z.set(B,(Z.get(B)??0)+1)}};if(Q){let{stdout:G}=await N("git",[...J,`--author=${Q}`],{cwd:S()});z(G)}if(Z.size<10){let{stdout:G}=await N(n(),J,{cwd:S()});z(G)}let X=Array.from(Z.entries()).sort((G,H)=>H[1]-G[1]).map(([G])=>G);return tJ(X,5)}catch(Q){return W(Q),[]}}var JQ=604800000,UZ=t(()=>{let Q=b(),J=Q.exampleFiles?.length?l(Q.exampleFiles):"<filepath>",Z=["fix lint errors","fix typecheck errors",`how does ${J} work?`,`refactor ${J}`,"how do I log an error?",`edit ${J} to...`,`write a test for ${J}`,"create a util logging.py that..."];return`Try "${l(Z)}"`}),VZ=t(async()=>{let Q=b(),J=Date.now(),Z=Q.exampleFilesGeneratedAt??0;if(J-Z>JQ)Q.exampleFiles=[];if(!Q.exampleFiles?.length)eJ().then((z)=>{if(z.length)s((X)=>({...X,exampleFiles:z,exampleFilesGeneratedAt:Date.now()}))})});v();A();UQ();GQ();v();ZQ();A();KQ();XQ();zQ();import{randomUUID as HQ}from"crypto";var e=2000,JJ=5,BQ=30000,F=3,YQ=new Set([4003]);function WQ(Q){if(typeof Q!=="object"||Q===null||!("type"in Q))return!1;return typeof Q.type==="string"}class E{sessionId;orgUuid;getAccessToken;callbacks;ws=null;state="closed";reconnectAttempts=0;sessionNotFoundRetries=0;pingInterval=null;reconnectTimer=null;constructor(Q,J,Z,z){this.sessionId=Q;this.orgUuid=J;this.getAccessToken=Z;this.callbacks=z}async connect(){if(this.state==="connecting"){K("[SessionsWebSocket] Already connecting");return}this.state="connecting";let J=`${zJ().BASE_API_URL.replace("https://","wss://")}/v1/sessions/ws/${this.sessionId}/subscribe?organization_uuid=${this.orgUuid}`;K(`[SessionsWebSocket] Connecting to ${J}`);let z={Authorization:`Bearer ${this.getAccessToken()}`,"anthropic-version":"2023-06-01"};if(typeof Bun<"u"){let X=new globalThis.WebSocket(J,{headers:z,proxy:KJ(J),tls:_()||void 0});this.ws=X,X.addEventListener("open",()=>{K("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),X.addEventListener("message",(G)=>{let H=typeof G.data==="string"?G.data:String(G.data);this.handleMessage(H)}),X.addEventListener("error",()=>{let G=Error("[SessionsWebSocket] WebSocket error");W(G),this.callbacks.onError?.(G)}),X.addEventListener("close",(G)=>{K(`[SessionsWebSocket] Closed: code=${G.code} reason=${G.reason}`),this.handleClose(G.code)}),X.addEventListener("pong",()=>{K("[SessionsWebSocket] Pong received")})}else{let{default:X}=await import("ws"),G=new X(J,{headers:z,agent:GJ(J),..._()});this.ws=G,G.on("open",()=>{K("[SessionsWebSocket] Connection opened, authenticated via headers"),this.state="connected",this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.startPingInterval(),this.callbacks.onConnected?.()}),G.on("message",(H)=>{this.handleMessage(H.toString())}),G.on("error",(H)=>{W(Error(`[SessionsWebSocket] Error: ${H.message}`)),this.callbacks.onError?.(H)}),G.on("close",(H,B)=>{K(`[SessionsWebSocket] Closed: code=${H} reason=${B.toString()}`),this.handleClose(H)}),G.on("pong",()=>{K("[SessionsWebSocket] Pong received")})}}handleMessage(Q){try{let J=ZJ(Q);if(WQ(J))this.callbacks.onMessage(J);else K(`[SessionsWebSocket] Ignoring message type: ${typeof J==="object"&&J!==null&&"type"in J?String(J.type):"unknown"}`)}catch(J){W(Error(`[SessionsWebSocket] Failed to parse message: ${QJ(J)}`))}}handleClose(Q){if(this.stopPingInterval(),this.state==="closed")return;this.ws=null;let J=this.state;if(this.state="closed",YQ.has(Q)){K(`[SessionsWebSocket] Permanent close code ${Q}, not reconnecting`),this.callbacks.onClose?.();return}if(Q===4001){if(this.sessionNotFoundRetries++,this.sessionNotFoundRetries>F){K(`[SessionsWebSocket] 4001 retry budget exhausted (${F}), not reconnecting`),this.callbacks.onClose?.();return}this.scheduleReconnect(e*this.sessionNotFoundRetries,`4001 attempt ${this.sessionNotFoundRetries}/${F}`);return}if(J==="connected"&&this.reconnectAttempts<JJ)this.reconnectAttempts++,this.scheduleReconnect(e,`attempt ${this.reconnectAttempts}/${JJ}`);else K("[SessionsWebSocket] Not reconnecting"),this.callbacks.onClose?.()}scheduleReconnect(Q,J){this.callbacks.onReconnecting?.(),K(`[SessionsWebSocket] Scheduling reconnect (${J}) in ${Q}ms`),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},Q)}startPingInterval(){this.stopPingInterval(),this.pingInterval=setInterval(()=>{if(this.ws&&this.state==="connected")try{this.ws.ping?.()}catch{}},BQ)}stopPingInterval(){if(this.pingInterval)clearInterval(this.pingInterval),this.pingInterval=null}sendControlResponse(Q){if(!this.ws||this.state!=="connected"){W(Error("[SessionsWebSocket] Cannot send: not connected"));return}K("[SessionsWebSocket] Sending control response"),this.ws.send(D(Q))}sendControlRequest(Q){if(!this.ws||this.state!=="connected"){W(Error("[SessionsWebSocket] Cannot send: not connected"));return}let J={type:"control_request",request_id:HQ(),request:Q};K(`[SessionsWebSocket] Sending control request: ${Q.subtype}`),this.ws.send(D(J))}isConnected(){return this.state==="connected"}close(){if(K("[SessionsWebSocket] Closing connection"),this.state="closed",this.stopPingInterval(),this.reconnectTimer)clearTimeout(this.reconnectTimer),this.reconnectTimer=null;if(this.ws)this.ws.close(),this.ws=null}reconnect(){K("[SessionsWebSocket] Force reconnecting"),this.reconnectAttempts=0,this.sessionNotFoundRetries=0,this.close(),this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},500)}}function VQ(Q){return Q.type!=="control_request"&&Q.type!=="control_response"&&Q.type!=="control_cancel_request"}class yQ{config;callbacks;websocket=null;pendingPermissionRequests=new Map;constructor(Q,J){this.config=Q;this.callbacks=J}connect(){K(`[RemoteSessionManager] Connecting to session ${this.config.sessionId}`);let Q={onMessage:(J)=>this.handleMessage(J),onConnected:()=>{K("[RemoteSessionManager] Connected"),this.callbacks.onConnected?.()},onClose:()=>{K("[RemoteSessionManager] Disconnected"),this.callbacks.onDisconnected?.()},onReconnecting:()=>{K("[RemoteSessionManager] Reconnecting"),this.callbacks.onReconnecting?.()},onError:(J)=>{W(J),this.callbacks.onError?.(J)}};this.websocket=new E(this.config.sessionId,this.config.orgUuid,this.config.getAccessToken,Q),this.websocket.connect()}handleMessage(Q){if(Q.type==="control_request"){this.handleControlRequest(Q);return}if(Q.type==="control_cancel_request"){let{request_id:J}=Q,Z=this.pendingPermissionRequests.get(J);K(`[RemoteSessionManager] Permission request cancelled: ${J}`),this.pendingPermissionRequests.delete(J),this.callbacks.onPermissionCancelled?.(J,Z?.tool_use_id);return}if(Q.type==="control_response"){K("[RemoteSessionManager] Received control response");return}if(VQ(Q))this.callbacks.onMessage(Q)}handleControlRequest(Q){let{request_id:J,request:Z}=Q;if(Z.subtype==="can_use_tool")K(`[RemoteSessionManager] Permission request for tool: ${Z.tool_name}`),this.pendingPermissionRequests.set(J,Z),this.callbacks.onPermissionRequest(Z,J);else{K(`[RemoteSessionManager] Unsupported control request subtype: ${Z.subtype}`);let z={type:"control_response",response:{subtype:"error",request_id:J,error:`Unsupported control request subtype: ${Z.subtype}`}};this.websocket?.sendControlResponse(z)}}async sendMessage(Q,J){K(`[RemoteSessionManager] Sending message to session ${this.config.sessionId}`);let Z=await XJ(this.config.sessionId,Q,J);if(!Z)W(Error(`[RemoteSessionManager] Failed to send message to session ${this.config.sessionId}`));return Z}respondToPermissionRequest(Q,J){if(!this.pendingPermissionRequests.get(Q)){W(Error(`[RemoteSessionManager] No pending permission request with ID: ${Q}`));return}this.pendingPermissionRequests.delete(Q);let z={type:"control_response",response:{subtype:"success",request_id:Q,response:{behavior:J.behavior,...J.behavior==="allow"?{updatedInput:J.updatedInput}:{message:J.message}}}};K(`[RemoteSessionManager] Sending permission response: ${J.behavior}`),this.websocket?.sendControlResponse(z)}isConnected(){return this.websocket?.isConnected()??!1}cancelSession(){K("[RemoteSessionManager] Sending interrupt signal"),this.websocket?.sendControlRequest({subtype:"interrupt"})}getSessionId(){return this.config.sessionId}disconnect(){K("[RemoteSessionManager] Disconnecting"),this.websocket?.close(),this.websocket=null,this.pendingPermissionRequests.clear()}reconnect(){K("[RemoteSessionManager] Reconnecting WebSocket"),this.websocket?.reconnect()}}function xZ(Q,J,Z,z=!1,X=!1){return{sessionId:Q,getAccessToken:J,orgUuid:Z,hasInitialPrompt:z,viewerOnly:X}}v();A();LQ();RQ();function NZ(){let Q=HJ();if(!Q?.teamName||!Q?.agentName){K("[Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)");return}let{teamName:J,agentId:Z,agentName:z}=Q,X=d(J);if(!X){W(Error(`[computeInitialTeamContext] Could not read team file for ${J}`));return}let G=p(J),H=!Z;return K(`[Reconnection] Computed initial team context for ${H?"leader":`teammate ${z}`} in team ${J}`),{teamName:J,teamFilePath:G,leadAgentId:X.leadAgentId,selfAgentId:Z,selfAgentName:z,isLeader:H,teammates:{}}}function bZ(Q,J,Z){let z=d(J);if(!z){W(Error(`[initializeTeammateContextFromSession] Could not read team file for ${J} (agent: ${Z})`));return}let X=z.members.find((B)=>B.name===Z);if(!X)K(`[Reconnection] Member ${Z} not found in team ${J} - may have been removed`);let G=X?.agentId,H=p(J);Q((B)=>({...B,teamContext:{teamName:J,teamFilePath:H,leadAgentId:z.leadAgentId,selfAgentId:G,selfAgentName:Z,isLeader:!1,teammates:{}}})),K(`[Reconnection] Initialized agent context from session for ${Z} in team ${J}`)}PQ();WJ();kQ();x();qQ();MQ();OQ();import{c as $Q}from"react/compiler-runtime";import{useEffect as hQ,useState as IQ}from"react";import{jsxDEV as P}from"react/jsx-dev-runtime";var wQ={enable_shortcut_tip:!1,enable_startup_dialog:!1};function m(){return YJ("tengu_desktop_upsell",wQ)}function jQ(){return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}function lZ(){if(!jQ())return!1;if(!m().enable_startup_dialog)return!1;let Q=Y();if(Q.desktopUpsellDismissed)return!1;if((Q.desktopUpsellSeenCount??0)>=3)return!1;return!0}function nZ(Q){let J=$Q(14),{onDone:Z}=Q,[z,X]=IQ(!1),G;if(J[0]===Symbol.for("react.memo_cache_sentinel"))G=[],J[0]=G;else G=J[0];if(hQ(xQ,G),z){let O;if(J[1]!==Z)O=P(LJ,{onDone:()=>Z()},void 0,!1,void 0,this),J[1]=Z,J[2]=O;else O=J[2];return O}let H;if(J[3]!==Z)H=function(nJ){switch(nJ){case"try":{X(!0);return}case"never":{M(AQ),Z();return}case"not-now":{Z();return}}},J[3]=Z,J[4]=H;else H=J[4];let B=H,V;if(J[5]===Symbol.for("react.memo_cache_sentinel"))V={label:"Open in UnieAI Code Desktop",value:"try"},J[5]=V;else V=J[5];let L;if(J[6]===Symbol.for("react.memo_cache_sentinel"))L={label:"Not now",value:"not-now"},J[6]=L;else L=J[6];let I;if(J[7]===Symbol.for("react.memo_cache_sentinel"))I=[V,L,{label:"Don't ask again",value:"never"}],J[7]=I;else I=J[7];let lJ=I,w;if(J[8]===Symbol.for("react.memo_cache_sentinel"))w=P(c,{marginBottom:1,children:P(UJ,{children:"Same UnieAI Code with visual diffs, live app preview, parallel sessions, and more."},void 0,!1,void 0,this)},void 0,!1,void 0,this),J[8]=w;else w=J[8];let k;if(J[9]!==B)k=()=>B("not-now"),J[9]=B,J[10]=k;else k=J[10];let j;if(J[11]!==B||J[12]!==k)j=P(yJ,{title:"Try UnieAI Code Desktop",children:P(c,{flexDirection:"column",paddingX:2,paddingY:1,children:[w,P(VJ,{options:lJ,onChange:B,onCancel:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),J[11]=B,J[12]=k,J[13]=j;else j=J[13];return j}function AQ(Q){if(Q.desktopUpsellDismissed)return Q;return{...Q,desktopUpsellDismissed:!0}}function xQ(){let Q=(Y().desktopUpsellSeenCount??0)+1;M((J)=>{if((J.desktopUpsellSeenCount??0)>=Q)return J;return{...J,desktopUpsellSeenCount:Q}}),BJ("tengu_desktop_upsell_shown",{seen_count:Q})}v();dQ();TQ();iQ();import gQ from"chalk";SQ();lQ();_Q();DQ();CQ();cQ();x();bQ();a();FQ();g();EQ();fQ();vQ();uQ();mQ();NQ();rQ();WJ();pQ();nQ();x();function oZ(Q){let J=Y().numStartups;M((Z)=>{let z=Z.tipsHistory??{};if(z[Q]===J)return Z;return{...Z,tipsHistory:{...z,[Q]:J}}})}function RJ(Q){let J=Y(),Z=J.tipsHistory?.[Q];if(!Z)return 1/0;return J.numStartups-Z}var T;async function aQ(){if(T!==void 0)return T;let Q=await FJ();return T=h in Q,T}async function kJ(Q,J,Z){if(!await aQ())return!1;if(DJ(`${Q}@${h}`))return!1;let{bashTools:z}=J??{};if(Z.cli&&z?.size){if(Z.cli.some((X)=>z.has(X)))return!0}if(Z.filePath&&J?.readFileState){if(IJ(J.readFileState).some((G)=>Z.filePath.test(G)))return!0}return!1}var oQ=[{id:"new-user-warmup",content:async()=>"Start with small features or bug fixes, tell Claude to propose a plan, and verify its suggested edits",cooldownSessions:3,async isRelevant(){return Y().numStartups<10}},{id:"plan-mode-for-complex-tasks",content:async()=>`Use Plan Mode to prepare for a complex request before making changes. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to enable.`,cooldownSessions:5,isRelevant:async()=>{if(process.env.USER_TYPE==="ant")return!1;let Q=Y();return(Q.lastPlanModeUse?(Date.now()-Q.lastPlanModeUse)/86400000:1/0)>7}},{id:"default-permission-mode-config",content:async()=>"Use /config to change your default permission mode (including Plan Mode)",cooldownSessions:10,isRelevant:async()=>{try{let Q=Y(),J=u(),Z=Boolean(Q.lastPlanModeUse),z=Boolean(J?.permissions?.defaultMode);return Z&&!z}catch(Q){return K(`Failed to check default-permission-mode-config tip relevance: ${Q}`,{level:"warn"}),!1}}},{id:"git-worktrees",content:async()=>"Use git worktrees to run multiple Claude sessions in parallel.",cooldownSessions:10,isRelevant:async()=>{try{let Q=Y();return await PJ()<=1&&Q.numStartups>50}catch(Q){return!1}}},{id:"color-when-multi-clauding",content:async()=>"Running multiple Claude sessions? Use /color and /rename to tell them apart at a glance.",cooldownSessions:10,isRelevant:async()=>{if(uJ())return!1;return await bJ()>=2}},{id:"terminal-setup",content:async()=>U.terminal==="Apple_Terminal"?"Run /terminal-setup to enable convenient terminal integration like Option + Enter for new line and more":"Run /terminal-setup to enable convenient terminal integration like Shift + Enter for new line and more",cooldownSessions:10,async isRelevant(){let Q=Y();if(U.terminal==="Apple_Terminal")return!Q.optionAsMetaKeyInstalled;return!Q.shiftEnterKeyBindingInstalled}},{id:"shift-enter",content:async()=>U.terminal==="Apple_Terminal"?"Press Option+Enter to send a multi-line message":"Press Shift+Enter to send a multi-line message",cooldownSessions:10,async isRelevant(){let Q=Y();return Boolean((U.terminal==="Apple_Terminal"?Q.optionAsMetaKeyInstalled:Q.shiftEnterKeyBindingInstalled)&&Q.numStartups>3)}},{id:"shift-enter-setup",content:async()=>U.terminal==="Apple_Terminal"?"Run /terminal-setup to enable Option+Enter for new lines":"Run /terminal-setup to enable Shift+Enter for new lines",cooldownSessions:10,async isRelevant(){if(!_J())return!1;let Q=Y();return!(U.terminal==="Apple_Terminal"?Q.optionAsMetaKeyInstalled:Q.shiftEnterKeyBindingInstalled)}},{id:"memory-command",content:async()=>"Use /memory to view and manage Claude memory",cooldownSessions:15,async isRelevant(){return Y().memoryUsageCount<=0}},{id:"theme-command",content:async()=>"Use /theme to change the color theme",cooldownSessions:20,isRelevant:async()=>!0},{id:"colorterm-truecolor",content:async()=>"Try setting environment variable COLORTERM=truecolor for richer colors",cooldownSessions:30,isRelevant:async()=>!process.env.COLORTERM&&gQ.level<3},{id:"powershell-tool-env",content:async()=>"Set CLAUDE_CODE_USE_POWERSHELL_TOOL=1 to enable the PowerShell tool (preview)",cooldownSessions:10,isRelevant:async()=>$()==="windows"&&process.env.CLAUDE_CODE_USE_POWERSHELL_TOOL===void 0},{id:"status-line",content:async()=>"Use /statusline to set up a custom status line that will display beneath the input box",cooldownSessions:25,isRelevant:async()=>u().statusLine===void 0},{id:"prompt-queue",content:async()=>"Hit Enter to queue up additional messages while Claude is working.",cooldownSessions:5,async isRelevant(){return Y().promptQueueUseCount<=3}},{id:"enter-to-steer-in-relatime",content:async()=>"Send messages to Claude while it works to steer Claude in real-time",cooldownSessions:20,isRelevant:async()=>!0},{id:"todo-list",content:async()=>"Ask Claude to create a todo list when working on complex tasks to track progress and remain on track",cooldownSessions:20,isRelevant:async()=>!0},{id:"vscode-command-install",content:async()=>`Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install '${U.terminal==="vscode"?"code":U.terminal}' command in PATH" to enable IDE integration`,cooldownSessions:0,async isRelevant(){if(!jJ())return!1;if($()!=="macos")return!1;switch(U.terminal){case"vscode":return!await fJ();case"cursor":return!await vJ();case"windsurf":return!await TJ();default:return!1}}},{id:"ide-upsell-external-terminal",content:async()=>"Connect Claude to your IDE \xB7 /ide",cooldownSessions:4,async isRelevant(){if(AJ())return!1;if((await xJ()).length!==0)return!1;return(await CJ()).length>0}},{id:"install-github-app",content:async()=>"Run /install-github-app to tag @claude right from your Github issues and PRs",cooldownSessions:10,isRelevant:async()=>!Y().githubActionSetupCount},{id:"install-slack-app",content:async()=>"Run /install-slack-app to use Claude in Slack",cooldownSessions:10,isRelevant:async()=>!Y().slackAppInstallCount},{id:"permissions",content:async()=>"Use /permissions to pre-approve and pre-deny bash, edit, and MCP tools",cooldownSessions:10,async isRelevant(){return Y().numStartups>10}},{id:"drag-and-drop-images",content:async()=>"Did you know you can drag and drop image files into your terminal?",cooldownSessions:10,isRelevant:async()=>!U.isSSH()},{id:"paste-images-mac",content:async()=>"Paste images into Claude Code using control+v (not cmd+v!)",cooldownSessions:10,isRelevant:async()=>$()==="macos"},{id:"double-esc",content:async()=>"Double-tap esc to rewind the conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>!i()},{id:"double-esc-code-restore",content:async()=>"Double-tap esc to rewind the code and/or conversation to a previous point in time",cooldownSessions:10,isRelevant:async()=>i()},{id:"continue",content:async()=>"Run unieai --continue or unieai --resume to resume a conversation",cooldownSessions:10,isRelevant:async()=>!0},{id:"rename-conversation",content:async()=>"Name your conversations with /rename to find them easily in /resume later",cooldownSessions:15,isRelevant:async()=>mJ()&&Y().numStartups>10},{id:"custom-commands",content:async()=>"Create skills by adding .md files to .claude/skills/ in your project or ~/.claude/skills/ for skills that work in any project",cooldownSessions:15,async isRelevant(){return Y().numStartups>10}},{id:"shift-tab",content:async()=>process.env.USER_TYPE==="ant"?`Hit ${q("chat:cycleMode","Chat","shift+tab")} to cycle between default mode and auto mode`:`Hit ${q("chat:cycleMode","Chat","shift+tab")} to cycle between default mode, auto-accept edit mode, and plan mode`,cooldownSessions:10,isRelevant:async()=>!0},{id:"image-paste",content:async()=>`Use ${q("chat:imagePaste","Chat","ctrl+v")} to paste images from your clipboard`,cooldownSessions:20,isRelevant:async()=>!0},{id:"custom-agents",content:async()=>"Use /agents to optimize specific tasks. Eg. Software Architect, Code Writer, Code Reviewer",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}},{id:"agent-flag",content:async()=>"Use --agent <agent_name> to directly start a conversation with a subagent",cooldownSessions:15,async isRelevant(){return Y().numStartups>5}},{id:"desktop-app",content:async()=>"Run Claude Code locally or remotely using the Claude desktop app: clau.de/desktop",cooldownSessions:15,isRelevant:async()=>$()!=="linux"},{id:"desktop-shortcut",content:async(Q)=>{return`Continue your session in Claude Code Desktop with ${y("suggestion",Q.theme)("/desktop")}`},cooldownSessions:15,isRelevant:async()=>{if(!m().enable_shortcut_tip)return!1;return process.platform==="darwin"||process.platform==="win32"&&process.arch==="x64"}},{id:"web-app",content:async()=>"Run tasks in the cloud while you keep coding locally \xB7 clau.de/web",cooldownSessions:15,isRelevant:async()=>!0},{id:"mobile-app",content:async()=>"/mobile to use Claude Code from the Claude app on your phone",cooldownSessions:15,isRelevant:async()=>!0},{id:"opusplan-mode-reminder",content:async()=>`Your default model setting is Opus Plan Mode. Press ${q("chat:cycleMode","Chat","shift+tab")} twice to activate Plan Mode and plan with Claude Opus.`,cooldownSessions:2,async isRelevant(){if(process.env.USER_TYPE==="ant")return!1;let Q=Y(),Z=OJ()==="opusplan",z=Q.lastPlanModeUse?(Date.now()-Q.lastPlanModeUse)/86400000:1/0;return Z&&z>3}},{id:"frontend-design-plugin",content:async(Q)=>{return`Working with HTML/CSS? Install the frontend-design plugin:
|
|
4
4
|
${y("suggestion",Q.theme)(`/plugin install frontend-design@${h}`)}`},cooldownSessions:3,isRelevant:async(Q)=>kJ("frontend-design",Q,{filePath:/\.(html|css|htm)$/i})},{id:"vercel-plugin",content:async(Q)=>{return`Working with Vercel? Install the vercel plugin:
|
|
5
5
|
${y("suggestion",Q.theme)(`/plugin install vercel@${h}`)}`},cooldownSessions:3,isRelevant:async(Q)=>kJ("vercel",Q,{filePath:/(?:^|[/\\])vercel\.json$/i,cli:["vercel"]})},{id:"effort-high-nudge",content:async(Q)=>{let Z=y("suggestion",Q.theme)("/effort high");return R("tengu_tide_elm","off")==="copy_b"?`Use ${Z} for better one-shot answers. Claude thinks it through first.`:`Working on something tricky? ${Z} gives better first answers`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;if(!$J(MJ()))return!1;if(qJ("policySettings")?.effortLevel!==void 0)return!1;if(hJ()!==void 0)return!1;let Q=C().effortLevel;if(Q==="high"||Q==="max")return!1;return R("tengu_tide_elm","off")!=="off"}},{id:"subagent-fanout-nudge",content:async(Q)=>{let J=y("suggestion",Q.theme);return R("tengu_tern_alloy","off")==="copy_b"?`For big tasks, tell Claude to ${J("use subagents")}. They work in parallel and keep your main thread clean.`:`Say ${J('"fan out subagents"')} and Claude sends a team. Each one digs deep so nothing gets missed.`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;return R("tengu_tern_alloy","off")!=="off"}},{id:"loop-command-nudge",content:async(Q)=>{let J=y("suggestion",Q.theme);return R("tengu_timber_lark","off")==="copy_b"?`Use ${J("/loop 5m check the deploy")} to run any prompt on a schedule. Set it and forget it.`:`${J("/loop")} runs any prompt on a recurring schedule. Great for monitoring deploys, babysitting PRs, or polling status.`},cooldownSessions:3,isRelevant:async()=>{if(!f())return!1;if(!wJ())return!1;return R("tengu_timber_lark","off")!=="off"}},{id:"guest-passes",content:async(Q)=>{let J=y("claude",Q.theme),Z=cJ();return Z?`Share Claude Code and earn ${J(dJ(Z))} of extra usage \xB7 ${J("/passes")}`:`You have free guest passes to share \xB7 ${J("/passes")}`},cooldownSessions:3,isRelevant:async()=>{if(Y().hasVisitedPasses)return!1;let{eligible:J}=pJ();return J}},{id:"overage-credit",content:async(Q)=>{let J=y("claude",Q.theme),Z=SJ(),z=Z?NJ(Z):null;if(!z)return"";return`${J(`${z} in extra usage, on us`)} \xB7 third-party apps \xB7 ${J("/extra-usage")}`},cooldownSessions:3,isRelevant:async()=>EJ()},{id:"feedback-command",content:async()=>"Use /feedback to help us improve!",cooldownSessions:15,async isRelevant(){if(process.env.USER_TYPE==="ant")return!1;return Y().numStartups>5}}],sQ=process.env.USER_TYPE==="ant"?[{id:"important-claudemd",content:async()=>'[ANT-ONLY] Use "IMPORTANT:" prefix for must-follow CLAUDE.md rules',cooldownSessions:30,isRelevant:async()=>!0},{id:"skillify",content:async()=>"[ANT-ONLY] Use /skillify at the end of a workflow to turn it into a reusable skill",cooldownSessions:15,isRelevant:async()=>!0}]:[];function tQ(){let J=C().spinnerTipsOverride;if(!J?.tips?.length)return[];return J.tips.map((Z,z)=>({id:`custom-tip-${z}`,content:async()=>Z,cooldownSessions:0,isRelevant:async()=>!0}))}async function A0(Q){let Z=C().spinnerTipsOverride,z=tQ();if(Z?.excludeDefault&&z.length>0)return z;let X=[...oQ,...sQ],G=await Promise.all(X.map((B)=>B.isRelevant(Q)));return[...X.filter((B,V)=>G[V]).filter((B)=>RJ(B.id)>=B.cooldownSessions),...z]}eQ();var JZ={"claude-3-opus":{modelName:"Claude 3 Opus",retirementDates:{firstParty:"January 5, 2026",bedrock:"January 15, 2026",vertex:"January 5, 2026",foundry:"January 5, 2026",azureOpenAI:null}},"claude-3-7-sonnet":{modelName:"Claude 3.7 Sonnet",retirementDates:{firstParty:"February 19, 2026",bedrock:"April 28, 2026",vertex:"May 11, 2026",foundry:"February 19, 2026",azureOpenAI:null}},"claude-3-5-haiku":{modelName:"Claude 3.5 Haiku",retirementDates:{firstParty:"February 19, 2026",bedrock:null,vertex:null,foundry:null,azureOpenAI:null}}};function QZ(Q){let J=Q.toLowerCase(),Z=iJ();for(let[z,X]of Object.entries(JZ)){let G=X.retirementDates[Z];if(!J.includes(z)||!G)continue;return{isDeprecated:!0,modelName:X.modelName,retirementDate:G}}return{isDeprecated:!1}}function T0(Q){if(!Q)return null;let J=QZ(Q);if(!J.isDeprecated)return null;return`\u26A0 ${J.modelName} will be retired on ${J.retirementDate}. Consider switching to a newer model.`}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Mf as i,Pf as Xq}from"./cli-
|
|
2
|
+
import{Mf as i,Pf as Xq}from"./cli-w4zkh280.js";import{Qf as r,Sf as Zq}from"./cli-xw96dapq.js";import{Ep as g,Fp as Qq,Ug as S,Vg as l,Wg as t,oG as $,pG as Uq}from"./cli-63389c5w.js";import{$L as Lq,UL as D,VL as qq,WL as d,XL as Gq,YL as c,ZL as Jq,_L as u}from"./cli-ndrvqgnc.js";import{UO as a,WO as zq}from"./cli-vbn35zp3.js";import{FQ as O,HQ as F,hR as e}from"./cli-7dm5ex18.js";import{jda as s}from"./cli-2afdzhna.js";import{c as h}from"react/compiler-runtime";import Nq from"figures";import{useEffect as Wq,useState as y}from"react";import{useDebounceCallback as Yq}from"usehooks-ts";import{jsxDEV as z}from"react/jsx-dev-runtime";function n(){let Z=h(1),q;if(Z[0]===Symbol.for("react.memo_cache_sentinel"))q=z(F,{dimColor:!0,children:"UnieAI Code will be able to read files in this directory and make edits when auto-accept edits is on."},void 0,!1,void 0,this),Z[0]=q;else q=Z[0];return q}function Mq(Z){let q=h(5),{path:X}=Z,Q;if(q[0]!==X)Q=z(F,{color:"permission",children:X},void 0,!1,void 0,this),q[0]=X,q[1]=Q;else Q=q[1];let N;if(q[2]===Symbol.for("react.memo_cache_sentinel"))N=z(n,{},void 0,!1,void 0,this),q[2]=N;else N=q[2];let L;if(q[3]!==Q)L=z(O,{flexDirection:"column",paddingX:2,gap:1,children:[Q,N]},void 0,!0,void 0,this),q[3]=Q,q[4]=L;else L=q[4];return L}function Oq(Z){let q=h(14),{value:X,onChange:Q,onSubmit:N,error:L,suggestions:W,selectedSuggestion:R}=Z,M;if(q[0]===Symbol.for("react.memo_cache_sentinel"))M=z(F,{children:"Enter the path to the directory:"},void 0,!1,void 0,this),q[0]=M;else M=q[0];let k;if(q[1]!==Q||q[2]!==N||q[3]!==X)k=z(O,{borderDimColor:!0,borderStyle:"round",marginY:1,paddingLeft:1,children:z($,{showCursor:!0,placeholder:`Directory path${Nq.ellipsis}`,value:X,onChange:Q,onSubmit:N,columns:80,cursorOffset:X.length,onChangeCursorOffset:fq},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[1]=Q,q[2]=N,q[3]=X,q[4]=k;else k=q[4];let Y;if(q[5]!==R||q[6]!==W)Y=W.length>0&&z(O,{marginBottom:1,children:z(r,{suggestions:W,selectedSuggestion:R},void 0,!1,void 0,this)},void 0,!1,void 0,this),q[5]=R,q[6]=W,q[7]=Y;else Y=q[7];let U;if(q[8]!==L)U=L&&z(F,{color:"error",children:L},void 0,!1,void 0,this),q[8]=L,q[9]=U;else U=q[9];let f;if(q[10]!==k||q[11]!==Y||q[12]!==U)f=z(O,{flexDirection:"column",children:[M,k,Y,U]},void 0,!0,void 0,this),q[10]=k,q[11]=Y,q[12]=U,q[13]=f;else f=q[13];return f}function fq(){}function xq(Z){let q=h(34),{onAddDirectory:X,onCancel:Q,permissionContext:N,directoryPath:L}=Z,[W,R]=y(""),[M,k]=y(null),Y;if(q[0]===Symbol.for("react.memo_cache_sentinel"))Y=[],q[0]=Y;else Y=q[0];let[U,f]=y(Y),[H,T]=y(0),B;if(q[1]===Symbol.for("react.memo_cache_sentinel"))B=async(G)=>{if(!G){f([]),T(0);return}let J=await i(G);f(J),T(0)},q[1]=B;else B=q[1];let v=Yq(B,100),I,C;if(q[2]!==v||q[3]!==W)I=()=>{v(W)},C=[W,v],q[2]=v,q[3]=W,q[4]=I,q[5]=C;else I=q[4],C=q[5];Wq(I,C);let P;if(q[6]===Symbol.for("react.memo_cache_sentinel"))P=(G)=>{let J=G.id+"/";R(J),k(null)},q[6]=P;else P=q[6];let o=P,m;if(q[7]!==X||q[8]!==N)m=async(G)=>{let J=await S(G,N);if(J.resultType==="success")X(J.absolutePath,!1);else k(l(J))},q[7]=X,q[8]=N,q[9]=m;else m=q[9];let w=m,_;if(q[10]===Symbol.for("react.memo_cache_sentinel"))_={context:"Settings"},q[10]=_;else _=q[10];a("confirm:no",Q,_);let b;if(q[11]!==w||q[12]!==H||q[13]!==U)b=(G)=>{if(U.length>0){if(G.key==="tab"){G.preventDefault();let J=U[H];if(J)o(J);return}if(G.key==="return"){G.preventDefault();let J=U[H];if(J)w(J.id+"/");return}if(G.key==="up"||G.ctrl&&G.key==="p"){G.preventDefault(),T((J)=>J<=0?U.length-1:J-1);return}if(G.key==="down"||G.ctrl&&G.key==="n"){G.preventDefault(),T((J)=>J>=U.length-1?0:J+1);return}}},q[11]=w,q[12]=H,q[13]=U,q[14]=b;else b=q[14];let x=b,V;if(q[15]!==L||q[16]!==X||q[17]!==Q)V=(G)=>{if(!L)return;let J=G;q:switch(J){case"yes-session":{X(L,!1);break q}case"yes-remember":{X(L,!0);break q}case"no":Q()}},q[15]=L,q[16]=X,q[17]=Q,q[18]=V;else V=q[18];let j=V,p=L?void 0:Hq,K;if(q[19]!==W||q[20]!==L||q[21]!==M||q[22]!==j||q[23]!==w||q[24]!==H||q[25]!==U)K=L?z(O,{flexDirection:"column",gap:1,children:[z(Mq,{path:L},void 0,!1,void 0,this),z(g,{options:kq,onChange:j,onCancel:()=>j("no")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):z(O,{flexDirection:"column",gap:1,marginX:2,children:[z(n,{},void 0,!1,void 0,this),z(Oq,{value:W,onChange:R,onSubmit:w,error:M,suggestions:U,selectedSuggestion:H},void 0,!1,void 0,this)]},void 0,!0,void 0,this),q[19]=W,q[20]=L,q[21]=M,q[22]=j,q[23]=w,q[24]=H,q[25]=U,q[26]=K;else K=q[26];let A;if(q[27]!==Q||q[28]!==p||q[29]!==K)A=z(u,{title:"Add directory to workspace",onCancel:Q,color:"permission",isCancelActive:!1,inputGuide:p,children:K},void 0,!1,void 0,this),q[27]=Q,q[28]=p,q[29]=K,q[30]=A;else A=q[30];let E;if(q[31]!==x||q[32]!==A)E=z(O,{flexDirection:"column",tabIndex:0,autoFocus:!0,onKeyDown:x,children:A},void 0,!1,void 0,this),q[31]=x,q[32]=A,q[33]=E;else E=q[33];return E}function Hq(Z){return Z.pending?z(F,{children:["Press ",Z.keyName," again to exit"]},void 0,!0,void 0,this):z(c,{children:[z(D,{shortcut:"Tab",action:"complete"},void 0,!1,void 0,this),z(D,{shortcut:"Enter",action:"add"},void 0,!1,void 0,this),z(d,{action:"confirm:no",context:"Settings",fallback:"Esc",description:"cancel"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var kq;var Rq=s(()=>{t();Uq();e();zq();Xq();Gq();Qq();Jq();Lq();qq();Zq();kq=[{value:"yes-session",label:"Yes, for this session"},{value:"yes-remember",label:"Yes, and remember this directory"},{value:"no",label:"No"}]});
|
|
3
3
|
export{xq as Kf,Rq as Lf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{M as
|
|
2
|
+
import{jda as K}from"./cli-2afdzhna.js";function C(f){return(j)=>{if(j.code==="EPIPE")f.destroy()}}function M(){process.stdout.on("error",C(process.stdout)),process.stderr.on("error",C(process.stderr))}function G(f,j){if(f.destroyed)return;f.write(j)}function N(f){G(process.stdout,f)}function Q(f){G(process.stderr,f)}function R(f){console.error(f),process.exit(1)}function S(f,j){return new Promise((H)=>{let q=(J)=>{clearTimeout(B),f.off("end",z),f.off("data",A),H(J)},z=()=>q(!1),A=()=>clearTimeout(B),B=setTimeout(q,j,!0);f.once("end",z),f.once("data",A)})}var L=()=>{};
|
|
3
|
+
export{M as D_,N as E_,Q as F_,R as G_,S as H_,L as I_};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var{defineProperty:h,getOwnPropertyNames:k,getOwnPropertyDescriptor:l}=Object,m=Object.prototype.hasOwnProperty;function n(b){return this[b]}var q=(b)=>{var a=(i??=new WeakMap).get(b),c;if(a)return a;if(a=h({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var d of k(b))if(!m.call(a,d))h(a,d,{get:n.bind(b,d),enumerable:!(c=l(b,d))||c.enumerable})}return i.set(b,a),a},i,r=(b,a)=>()=>(a||b((a={exports:{}}).exports,a),a.exports);var o=(b)=>b;function p(b,a){this[b]=o.bind(null,a)}var s=(b,a)=>{for(var c in a)h(b,c,{get:a[c],enumerable:!0,configurable:!0,set:p.bind(a,c)})};var t=(b,a)=>()=>(b&&(a=b(b=0)),a);var u=import.meta.require,v=(b,a,c)=>{if(a!=null){if(typeof a!=="object"&&typeof a!=="function")throw TypeError('Object expected to be assigned to "using" declaration');let d;if(c)d=a[Symbol.asyncDispose];if(d===void 0)d=a[Symbol.dispose];if(typeof d!=="function")throw TypeError("Object not disposable");b.push([c,d,a])}else if(c)b.push([c]);return a},w=(b,a,c)=>{let d=(e)=>a=c?new SuppressedError(e,a,"An error was suppressed during disposal"):(c=!0,e),f=(e)=>{while(e=b.pop())try{var j=e[1]&&e[1].call(e[2]);if(e[0])return Promise.resolve(j).then(f,(g)=>(d(g),f()))}catch(g){d(g)}if(c)throw a};return f()};
|
|
3
|
-
export{q as
|
|
3
|
+
export{q as gda,r as hda,s as ida,t as jda,u as kda,v as lda,w as mda};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{C as
|
|
2
|
+
import{jda as A}from"./cli-2afdzhna.js";function C(h){let b;for(let j in h)if(j.startsWith("_PROTO_")){if(b===void 0)b={...h};delete b[j]}return b??h}function D(h){if(x!==null)return;if(x=h,z.length>0){let b=[...z];if(z.length=0,process.env.USER_TYPE==="ant")x.logEvent("analytics_sink_attached",{queued_event_count:b.length});queueMicrotask(()=>{for(let j of b)if(j.async)x.logEventAsync(j.eventName,j.metadata);else x.logEvent(j.eventName,j.metadata)})}}function F(h,b){if(x===null){z.push({eventName:h,metadata:b,async:!1});return}x.logEvent(h,b)}var z,x=null;var B=A(()=>{z=[]});
|
|
3
|
+
export{C as _8,D as $8,F as a9,B as b9};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{F3 as z,S3 as Y}from"./cli-9sjvqgf1.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{
|
|
3
|
-
export{H as
|
|
2
|
+
import{VO as I,WO as R}from"./cli-vbn35zp3.js";import{WQ as M,XQ as T}from"./cli-7dm5ex18.js";import{jda as B}from"./cli-2afdzhna.js";import{useCallback as j,useEffect as y,useRef as U}from"react";function H(z,G,J){let V=U(0),q=U(void 0),N=j(()=>{if(q.current)clearTimeout(q.current),q.current=void 0},[]);return y(()=>{return()=>{N()}},[N]),j(()=>{let Q=Date.now();if(Q-V.current<=K&&q.current!==void 0)N(),z(!1),G();else J?.(),z(!0),N(),q.current=setTimeout((X,Y)=>{X(!1),Y.current=void 0},K,z,q);V.current=Q},[z,G,J,N])}var K=800;var w=()=>{};import{useCallback as A,useMemo as F,useState as k}from"react";function _(z,G,J,V=!0){let{exit:q}=M(),[N,Q]=k({pending:!1,keyName:null}),Z=F(()=>J??q,[J,q]),$=H((W)=>Q({pending:W,keyName:"Ctrl-C"}),Z),X=H((W)=>Q({pending:W,keyName:"Ctrl-D"}),Z),Y=A(()=>{if(G?.())return;$()},[$,G]),L=A(()=>{X()},[X]),O=F(()=>({"app:interrupt":Y,"app:exit":L}),[Y,L]);return z(O,{context:"Global",isActive:V}),N}var v=B(()=>{T();w()});function f(z,G,J){return _(I,G,z,J)}var S=B(()=>{R();v()});
|
|
3
|
+
export{H as aO,w as bO,f as cO,S as dO};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ta as Yq}from"./cli-
|
|
2
|
+
import{Ta as Yq}from"./cli-x4rgkedw.js";import{$v as pq,$z as aq,AC as Mq,AJ as l,Em as zq,Gm as cq,Jv as Jq,Kv as dq,Lx as w,MH as Zq,Mx as uq,NH as $q,Nm as Gq,OH as Bq,Om as Aq,Pj as b,QI as nq,TJ as a,UG as u,VG as i,Vj as mq,XE as oq,Yz as Xq,Zv as Kq,ay as y,cy as d,dH as Iq,dK as Nq,dy as p,fK as D,fj as qq,fy as Fq,gI as Vq,gK as k,gw as v,hy as Qq,ij as _,lw as gq,my as iq,nj as fq,oI as L,xC as g,zK as rq}from"./cli-63389c5w.js";import{ML as Sq}from"./cli-0th9dbz0.js";import{QL as x,RL as lq}from"./cli-4c9nnszs.js";import{BM as hq,mM as Hq}from"./cli-k3b5ctgk.js";import{qZ as e,wZ as Pq}from"./cli-9sjvqgf1.js";import{P7 as T,Q7 as Cq}from"./cli-024t0qj5.js";import{a9 as S,b9 as Uq}from"./cli-2dkq8dre.js";import{C_ as h,O9 as c,Q9 as jq,p_ as A,t_ as Eq,z_ as B}from"./cli-bqs5smsv.js";import{Eca as F,Mca as f,fda as m,g$ as P,h$ as Rq,i$ as n,l$ as r,q$ as O,taa as s,vaa as t}from"./cli-ktzb7cwm.js";m();Iq();Uq();Fq();Mq();jq();h();Eq();Nq();Rq();import Wq from"chokidar";import*as $ from"path";var _q=1000,Lq=500,Oq=300,Tq=2000,bq=typeof Bun<"u",X=null,Z=null,R=new Set,N=!1,W=!1,C=!1,E=null,j=P(),U=null;async function vq(){if(N||W)return;if(N=!0,!C)C=!0,p(()=>{u(),j.emit()});let q=await xq();if(q.length===0)return;B(`Watching for changes in skill/command directories: ${q.join(", ")}...`),X=Wq.watch(q,{persistent:!0,ignoreInitial:!0,depth:2,awaitWriteFinish:{stabilityThreshold:U?.stabilityThreshold??_q,pollInterval:U?.pollInterval??Lq},ignored:(z,G)=>{if(G&&!G.isFile()&&!G.isDirectory())return!0;return z.split($.sep).some((H)=>H===".git")},ignorePermissionErrors:!0,usePolling:bq,interval:U?.chokidarInterval??Tq,atomic:!0}),X.on("add",I),X.on("change",I),X.on("unlink",I),E=c(async()=>{await o()})}function o(){if(W=!0,E)E(),E=null;let q=Promise.resolve();if(X)q=X.close(),X=null;if(Z)clearTimeout(Z),Z=null;return R.clear(),j.clear(),q}var wq=j.subscribe;async function xq(){let q=A(),z=[],G=y("userSettings","skills");if(G)try{await q.stat(G),z.push(G)}catch{}let H=y("userSettings","commands");if(H)try{await q.stat(H),z.push(H)}catch{}let J=y("projectSettings","skills");if(J)try{let K=$.resolve(J);await q.stat(K),z.push(K)}catch{}let Q=y("projectSettings","commands");if(Q)try{let K=$.resolve(Q);await q.stat(K),z.push(K)}catch{}for(let K of f()){let Y=$.join(K,".claude","skills");try{await q.stat(Y),z.push(Y)}catch{}}return z}function I(q){B(`Detected skill change: ${q}`),S("tengu_skill_file_changed",{source:"chokidar"}),Dq(q)}function Dq(q){if(R.add(q),Z)clearTimeout(Z);Z=setTimeout(async()=>{Z=null;let z=[...R];R.clear();let G=await a("skills",z[0]);if(l(G)){B(`ConfigChange hook blocked skill reload (${z.length} paths)`);return}d(),i(),g(),j.emit()},U?.reloadDebounce??Oq)}async function kq(q){if(X)await X.close(),X=null;if(Z)clearTimeout(Z),Z=null;R.clear(),j.clear(),N=!1,W=!1,U=q??null}var Uz={initialize:vq,dispose:o,subscribe:wq,resetForTesting:kq};m();lq();iq();fq();Aq();cq();import{dirname as sq}from"path";mq();Sq();aq();Cq();h();pq();oq();Pq();gq();uq();nq();hq();dq();rq();function tq(q){for(let z=q.length-1;z>=0;z--){let G=q[z];if(G?.type!=="assistant")continue;let H=G.message.content.find((K)=>K.type==="tool_use"&&K.name===Gq);if(!H||H.type!=="tool_use")continue;let J=H.input;if(J===null||typeof J!=="object")return[];let Q=Jq().safeParse(J.todos);return Q.success?Q.data:[]}return[]}function gz(q,z){if(q.fileHistorySnapshots&&q.fileHistorySnapshots.length>0)Kq(q.fileHistorySnapshots,(G)=>{z((H)=>({...H,fileHistory:G}))});if(!Hq()&&q.messages&&q.messages.length>0){let G=tq(q.messages);if(G.length>0){let H=n();z((J)=>({...J,todos:{...J.todos,[H]:G}}))}}}function eq(q){return}function qz(q,z){if(!q&&!z)return;return{name:q??"",color:z==="default"?void 0:z}}function zz(q,z,G){if(z)return{agentDefinition:z,agentType:void 0};if(!q)return F(void 0),{agentDefinition:void 0,agentType:void 0};let H=G.activeAgents.find((J)=>J.agentType===q);if(!H)return B(`Resumed session had agent "${q}" but it is no longer available. Using default behavior.`),F(void 0),{agentDefinition:void 0,agentType:void 0};if(F(H.agentType),!s()&&H.model&&H.model!=="inherit")t(e(H.model));return{agentDefinition:H,agentType:H.agentType}}async function Gz(q,z,G,H){return H}function Hz(q){let z=D();if(z){L(z);return}if(!q)return;try{process.chdir(q.worktreePath)}catch{L(null);return}w(q.worktreePath),O(T()),k(q),b(),x(),v.cache.clear?.()}function uz(){let q=D();if(!q)return;k(null),b(),x(),v.cache.clear?.();try{process.chdir(q.originalCwd)}catch{return}w(q.originalCwd),O(T())}async function iz(q,z,G){let H;if(!z.forkSession){let M=z.sessionIdOverride??q.sessionId;if(M)r(zq(M),z.transcriptPath?sq(z.transcriptPath):null),await Yq(),await $q(),Qq(M)}else if(q.contentReplacements?.length)await Zq(q.contentReplacements);if(Vq(z.forkSession?{...q,worktreeSession:void 0}:q),!z.forkSession)Hz(q.worktreeSession),Bq();let{agentDefinition:J,agentType:Q}=zz(q.agentSetting,G.mainThreadAgentDefinition,G.agentDefinitions),K=z.includeAttribution?eq(q):void 0,Y=qz(q.agentName,q.agentColor);Xq(q.agentName);let yq=await Gz(!!H,G.currentCwd,G.cliAgents,G.agentDefinitions);return{messages:q.messages,fileHistorySnapshots:q.fileHistorySnapshots,contentReplacements:q.contentReplacements,agentName:q.agentName,agentColor:q.agentColor==="default"?void 0:q.agentColor,restoredAgentDef:J,initialState:{...G.initialState,...Q&&{agent:Q},...K&&{attribution:K},...Y&&{standaloneAgentContext:Y},agentDefinitions:yq}}}
|
|
3
3
|
export{Uz as ra,gz as sa,qz as ta,zz as ua,Hz as va,uz as wa,iz as xa};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{K as
|
|
2
|
+
import{K7 as z,M7 as G}from"./cli-fg3rb4dg.js";import{jda as D}from"./cli-2afdzhna.js";function H(k){let g;try{g=new URL(k)}catch(A){throw Error(`Invalid URL format: ${k}`)}if(g.protocol!=="http:"&&g.protocol!=="https:")throw Error(`Invalid URL protocol: must use http:// or https://, got ${g.protocol}`)}async function K(k){try{let g=process.platform;if(g==="win32"){let{code:C}=await z("explorer",[k]);return C===0}let A=g==="darwin"?"open":"xdg-open",{code:B}=await z(A,[k]);return B===0}catch(g){return!1}}async function L(k){try{H(k);let g=process.env.BROWSER,A=process.platform;if(A==="win32"){if(g){let{code:C}=await z(g,[`"${k}"`]);return C===0}let{code:B}=await z("rundll32",["url,OpenURL",k],{});return B===0}else{let B=g||(A==="darwin"?"open":"xdg-open"),{code:C}=await z(B,[k]);return C===0}}catch(g){return!1}}var I=D(()=>{G()});
|
|
3
|
+
export{K as C5,L as D5,I as E5};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{WQ as O,fR as j,hR as v}from"./cli-7dm5ex18.js";import{jda as A}from"./cli-2afdzhna.js";import{c as e}from"react/compiler-runtime";import{useLayoutEffect as o}from"react";import{PassThrough as p}from"stream";import z from"strip-ansi";import{jsxDEV as M,Fragment as n}from"react/jsx-dev-runtime";function Y(q){let _=e(5),{children:$}=q,{exit:f}=O(),K,w;if(_[0]!==f)K=()=>{let k=setTimeout(f,0);return()=>clearTimeout(k)},w=[f],_[0]=f,_[1]=K,_[2]=w;else K=_[1],w=_[2];o(K,w);let r;if(_[3]!==$)r=M(n,{children:$},void 0,!1,void 0,this),_[3]=$,_[4]=r;else r=_[4];return r}function h(q){let _=q.indexOf(P);if(_===-1)return q;let $=_+P.length,f=q.indexOf(a,$);if(f===-1)return q;return q.slice($,f)}function H(q,_){return new Promise(async($)=>{let f="",K=new p;if(_!==void 0)K.columns=_;K.on("data",(r)=>{f+=r.toString()}),await(await j(M(Y,{children:q},void 0,!1,void 0,this),{stdout:K,patchConsole:!1})).waitUntilExit(),await $(h(f))})}async function C(q,_){let $=await H(q,_);return z($)}var P="\x1B[?2026h",a="\x1B[?2026l";var D=A(()=>{v()});
|
|
3
3
|
export{H as nf,C as of,D as pf};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{G as
|
|
2
|
+
import{Hca as k,Ica as q,Jca as w,cda as x,fda as A}from"./cli-ktzb7cwm.js";import{jda as z}from"./cli-2afdzhna.js";function G(g,b){return{name:g,compute:b,cacheBreak:!1}}function I(g,b,f){return{name:g,compute:b,cacheBreak:!0}}async function J(g){let b=k();return Promise.all(g.map(async(f)=>{if(!f.cacheBreak&&b.has(f.name))return b.get(f.name)??null;let j=await f.compute();return q(f.name,j),j}))}function K(){w(),x()}var D=z(()=>{A()});
|
|
3
|
+
export{G as NL,I as OL,J as PL,K as QL,D as RL};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ga as Y}from"./cli-mq300hkq.js";import{
|
|
2
|
+
import{Ga as Y}from"./cli-mq300hkq.js";import{$K as C,ZK as N}from"./cli-0ybyvcx6.js";import{A8 as w,y8 as A}from"./cli-eehgc06t.js";import{a9 as B,b9 as k}from"./cli-2dkq8dre.js";import{$9 as G,C_ as j,f_ as K,i_ as L,l_ as E,z_ as W}from"./cli-bqs5smsv.js";k();C();import{randomUUID as O}from"crypto";j();w();K();E();function T(f){return f!==null&&typeof f==="object"&&"type"in f&&typeof f.type==="string"}function P(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_response"&&"response"in f}function S(f){return f!==null&&typeof f==="object"&&"type"in f&&f.type==="control_request"&&"request_id"in f&&"request"in f}function v(f){if((f.type==="user"||f.type==="assistant")&&f.isVirtual)return!1;return f.type==="user"||f.type==="assistant"||f.type==="system"&&f.subtype==="local_command"}function q(f){if(f.type!=="user"||f.isMeta||f.toolUseResult||f.isCompactSummary)return;if(f.origin&&f.origin.kind!=="human")return;let X=f.message.content,Q;if(typeof X==="string")Q=X;else for(let Z of X)if(Z.type==="text"){Q=Z.text;break}if(!Q)return;return A(Q)||void 0}function p(f,X,Q,$,Z,z){try{let H=Y(L(f));if(P(H)){W("[bridge:repl] Ingress message type=control_response"),Z?.(H);return}if(S(H)){W(`[bridge:repl] Inbound control_request subtype=${H.request.subtype}`),z?.(H);return}if(!T(H))return;let J="uuid"in H&&typeof H.uuid==="string"?H.uuid:void 0;if(J&&X.has(J)){W(`[bridge:repl] Ignoring echo: type=${H.type} uuid=${J}`);return}if(J&&Q.has(J)){W(`[bridge:repl] Ignoring re-delivered inbound: type=${H.type} uuid=${J}`);return}if(W(`[bridge:repl] Ingress message type=${H.type}${J?` uuid=${J}`:""}`),H.type==="user"){if(J)Q.add(J);B("tengu_bridge_message_received",{is_repl:!0}),$?.(H)}else W(`[bridge:repl] Ignoring non-user inbound message: type=${H.type}`)}catch(H){W(`[bridge:repl] Failed to parse ingress message: ${G(H)}`)}}var y="This session is outbound-only. Enable Remote Control locally to allow inbound control.";function g(f,X){let{transport:Q,sessionId:$,outboundOnly:Z,onInterrupt:z,onSetModel:H,onSetMaxThinkingTokens:J,onSetPermissionMode:h}=X;if(!Q){W("[bridge:repl] Cannot respond to control_request: transport not configured");return}let V;if(Z&&f.request.subtype!=="initialize"){V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:y}};let x={...V,session_id:$};Q.write(x),W(`[bridge:repl] Rejected ${f.request.subtype} (outbound-only) request_id=${f.request_id}`);return}switch(f.request.subtype){case"initialize":V={type:"control_response",response:{subtype:"success",request_id:f.request_id,response:{commands:[],output_style:"normal",available_output_styles:["normal"],models:[],account:{},pid:process.pid}}};break;case"set_model":H?.(f.request.model),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_max_thinking_tokens":J?.(f.request.max_thinking_tokens),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;case"set_permission_mode":{let x=h?.(f.request.mode)??{ok:!1,error:"set_permission_mode is not supported in this context (onSetPermissionMode callback not registered)"};if(x.ok)V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};else V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:x.error}};break}case"interrupt":z?.(),V={type:"control_response",response:{subtype:"success",request_id:f.request_id}};break;default:V={type:"control_response",response:{subtype:"error",request_id:f.request_id,error:`REPL bridge does not handle control_request subtype: ${f.request.subtype}`}}}let _={...V,session_id:$};Q.write(_),W(`[bridge:repl] Sent control_response for ${f.request.subtype} request_id=${f.request_id} result=${V.response.subtype}`)}function d(f){return{type:"result",subtype:"success",duration_ms:0,duration_api_ms:0,is_error:!1,num_turns:0,result:"",stop_reason:null,total_cost_usd:0,usage:{...N},modelUsage:{},permission_denials:[],session_id:f,uuid:O()}}class R{capacity;ring;set=new Set;writeIdx=0;constructor(f){this.capacity=f,this.ring=Array(f)}add(f){if(this.set.has(f))return;let X=this.ring[this.writeIdx];if(X!==void 0)this.set.delete(X);this.ring[this.writeIdx]=f,this.set.add(f),this.writeIdx=(this.writeIdx+1)%this.capacity}has(f){return this.set.has(f)}clear(){this.set.clear(),this.ring.fill(void 0),this.writeIdx=0}}
|
|
3
3
|
export{v as Aa,q as Ba,p as Ca,g as Da,d as Ea,R as Fa};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
3
|
-
export{d as
|
|
2
|
+
import{M_ as J,W_ as Y}from"./cli-hy0se8fa.js";import{jda as V}from"./cli-2afdzhna.js";function M(){if(process.env.USER_TYPE==="ant"){if(J(process.env.USE_LOCAL_OAUTH))return"local";if(J(process.env.USE_STAGING_OAUTH))return"staging"}return"prod"}function d(){if(process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL)return"-custom-oauth";switch(M()){case"local":return"-local-oauth";case"staging":return"-staging-oauth";case"prod":return""}}function W(){let q=process.env.CLAUDE_LOCAL_OAUTH_API_BASE?.replace(/\/$/,"")??"http://localhost:8000",z=process.env.CLAUDE_LOCAL_OAUTH_APPS_BASE?.replace(/\/$/,"")??"http://localhost:4000",x=process.env.CLAUDE_LOCAL_OAUTH_CONSOLE_BASE?.replace(/\/$/,"")??"http://localhost:3000";return{BASE_API_URL:q,CONSOLE_AUTHORIZE_URL:`${x}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${z}/oauth/authorize`,CLAUDE_AI_ORIGIN:z,TOKEN_URL:`${q}/v1/oauth/token`,API_KEY_URL:`${q}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${q}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${x}/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code`,CLAUDEAI_SUCCESS_URL:`${x}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${x}/oauth/code/callback`,CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-local-oauth",MCP_PROXY_URL:"http://localhost:8205",MCP_PROXY_PATH:"/v1/toolbox/shttp/mcp/{server_id}"}}function h(){let q=(()=>{switch(M()){case"local":return W();case"staging":return w??K;case"prod":return K}})(),z=process.env.CLAUDE_CODE_CUSTOM_OAUTH_URL;if(z){let k=z.replace(/\/$/,"");if(!X.includes(k))throw Error("CLAUDE_CODE_CUSTOM_OAUTH_URL is not an approved endpoint.");q={...q,BASE_API_URL:k,CONSOLE_AUTHORIZE_URL:`${k}/oauth/authorize`,CLAUDE_AI_AUTHORIZE_URL:`${k}/oauth/authorize`,CLAUDE_AI_ORIGIN:k,TOKEN_URL:`${k}/v1/oauth/token`,API_KEY_URL:`${k}/api/oauth/claude_cli/create_api_key`,ROLES_URL:`${k}/api/oauth/claude_cli/roles`,CONSOLE_SUCCESS_URL:`${k}/oauth/code/success?app=claude-code`,CLAUDEAI_SUCCESS_URL:`${k}/oauth/code/success?app=claude-code`,MANUAL_REDIRECT_URL:`${k}/oauth/code/callback`,OAUTH_FILE_SUFFIX:"-custom-oauth"}}let x=process.env.CLAUDE_CODE_OAUTH_CLIENT_ID;if(x)q={...q,CLIENT_ID:x};return q}var Z="user:inference",Q="user:profile",$="org:create_api_key",F="oauth-2025-04-20",j,m,H,K,R="https://claude.ai/oauth/claude-code-client-metadata",w,X;var y=V(()=>{Y();j=[$,Q],m=[Q,Z,"user:sessions:claude_code","user:mcp_servers","user:file_upload"],H=Array.from(new Set([...j,...m])),K={BASE_API_URL:"https://api.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.claude.com/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude.com/cai/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude.ai",TOKEN_URL:"https://platform.claude.com/v1/oauth/token",API_KEY_URL:"https://api.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.claude.com/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.claude.com/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.claude.com/oauth/code/callback",CLIENT_ID:"9d1c250a-e61b-44d9-88ed-5944d1962f5e",OAUTH_FILE_SUFFIX:"",MCP_PROXY_URL:"https://mcp-proxy.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"},w=process.env.USER_TYPE==="ant"?{BASE_API_URL:"https://api-staging.anthropic.com",CONSOLE_AUTHORIZE_URL:"https://platform.staging.ant.dev/oauth/authorize",CLAUDE_AI_AUTHORIZE_URL:"https://claude-ai.staging.ant.dev/oauth/authorize",CLAUDE_AI_ORIGIN:"https://claude-ai.staging.ant.dev",TOKEN_URL:"https://platform.staging.ant.dev/v1/oauth/token",API_KEY_URL:"https://api-staging.anthropic.com/api/oauth/claude_cli/create_api_key",ROLES_URL:"https://api-staging.anthropic.com/api/oauth/claude_cli/roles",CONSOLE_SUCCESS_URL:"https://platform.staging.ant.dev/buy_credits?returnUrl=/oauth/code/success%3Fapp%3Dclaude-code",CLAUDEAI_SUCCESS_URL:"https://platform.staging.ant.dev/oauth/code/success?app=claude-code",MANUAL_REDIRECT_URL:"https://platform.staging.ant.dev/oauth/code/callback",CLIENT_ID:"22422756-60c9-4084-8eb7-27705fd5cf9a",OAUTH_FILE_SUFFIX:"-staging-oauth",MCP_PROXY_URL:"https://mcp-proxy-staging.anthropic.com",MCP_PROXY_PATH:"/v1/mcp/{server_id}"}:void 0;X=["https://beacon.claude-ai.staging.ant.dev","https://claude.fedstart.com","https://claude-staging.fedstart.com"]});
|
|
3
|
+
export{d as x9,Z as y9,Q as z9,F as A9,j as B9,m as C9,H as D9,R as E9,h as F9,y as G9};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Id as j,Jd as E}from"./cli-
|
|
2
|
+
import{Id as j,Jd as E}from"./cli-e1e1m0pp.js";import{BD as f,Ch as W,Fh as v,dD as X,fD as Y,oD as Z,qD as w,uD as _,xD as $}from"./cli-63389c5w.js";import{H3 as V,S3 as N,jV as S,wV as A}from"./cli-9sjvqgf1.js";import{I8 as Q,N8 as T}from"./cli-eehgc06t.js";import{$9 as L,C_ as R,f_ as K,z_ as B}from"./cli-bqs5smsv.js";import{jda as y}from"./cli-2afdzhna.js";function d(q){if(J=q,G!==null&&G.length>0)q(G),G=null;return()=>{J=null}}async function C(){let q=await Y(),D=X(),x=new Set;for(let[z,h]of Object.entries(q)){let F=D[z]?.autoUpdate;if(F!==void 0?F:S(z,h))x.add(z.toLowerCase())}return x}async function M(q,D){let x=!1;for(let{scope:z}of D)try{let h=await j(q,z);if(h.success&&!h.alreadyUpToDate)x=!0,B(`Plugin autoupdate: updated ${q} from ${h.oldVersion} to ${h.newVersion}`);else if(!h.alreadyUpToDate)B(`Plugin autoupdate: failed to update ${q}: ${h.message}`,{level:"warn"})}catch(h){B(`Plugin autoupdate: error updating ${q}: ${L(h)}`,{level:"warn"})}return x?q:null}async function P(q){let D=_(),x=Object.keys(D.plugins);if(x.length===0)return[];return(await Promise.allSettled(x.map(async(h)=>{let{marketplace:F}=W(h);if(!F||!q.has(F.toLowerCase()))return null;let H=D.plugins[h];if(!H||H.length===0)return null;let O=H.filter($);if(O.length===0)return null;return M(h,O)}))).filter((h)=>h.status==="fulfilled"&&h.value!==null).map((h)=>h.value)}async function m(q){return P(q)}function t(){(async()=>{if(V()){B("Plugin autoupdate: skipped (auto-updater disabled)");return}try{let q=await C();if(q.size===0)return;let x=(await Promise.allSettled(Array.from(q).map(async(h)=>{try{await Z(h,void 0,{disableCredentialHelper:!0})}catch(F){B(`Plugin autoupdate: failed to refresh marketplace ${h}: ${L(F)}`,{level:"warn"})}}))).filter((h)=>h.status==="rejected");if(x.length>0)B(`Plugin autoupdate: ${x.length} marketplace refresh(es) failed`,{level:"warn"});B("Plugin autoupdate: checking installed plugins");let z=await m(q);if(z.length>0)if(J)J(z);else G=z}catch(q){Q(q)}})()}var J=null,G=null;var U=y(()=>{E();N();R();K();T();f();w();v();A()});
|
|
3
3
|
export{d as ud,P as vd,t as wd,U as xd};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{jda as B}from"./cli-2afdzhna.js";function F(z){let k=z.trim();if(!k.startsWith("/"))return null;let b=k.slice(1).split(" ");if(!b[0])return null;let j=b[0],l=!1,q=1;if(b.length>1&&b[1]==="(MCP)")j=j+" (MCP)",l=!0,q=2;let A=b.slice(q).join(" ");return{commandName:j,args:A,isMcp:l}}var C=()=>{};
|
|
3
3
|
export{F as tg,C as ug};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{vg as I,xg as Gj}from"./cli-
|
|
2
|
+
import{vg as I,xg as Gj}from"./cli-w8jvw417.js";import{cM as N,eM as Zj}from"./cli-ndrvqgnc.js";import{$M as L,aN as w,bN as d,cN as p,fN as P,jN as Xj}from"./cli-8hpg8nq4.js";import{S2 as c,S3 as Wj,c3 as Rj,w3 as g,z3 as H}from"./cli-9sjvqgf1.js";import{e5 as $,i5 as Jj}from"./cli-epetmtbs.js";import{L7 as y,M7 as Oj}from"./cli-fg3rb4dg.js";import{o9 as b,p9 as Qj}from"./cli-bbt5chja.js";import{C_ as zj,d_ as A,f_ as n,h_ as D,l_ as qj,z_ as R}from"./cli-bqs5smsv.js";import{J_ as u,M_ as v,N_ as B,W_ as jj}from"./cli-hy0se8fa.js";import{Sba as _,Xaa as E,Yaa as F,fda as e}from"./cli-ktzb7cwm.js";import{jda as U}from"./cli-2afdzhna.js";import{readdir as V}from"fs/promises";import{join as o}from"path";function t(){return process.env.USER_TYPE==="ant"?[Y,s,r]:[Y]}async function a(q,j){if(q.length===0)return j?.("[Claude in Chrome] No browser paths to check"),{isInstalled:!1,browser:null};let G=t();for(let{browser:z,path:O}of q){let J=[];try{J=await V(O,{withFileTypes:!0})}catch(Q){if(A(Q))continue;throw Q}let W=J.filter((Q)=>Q.isDirectory()).filter((Q)=>Q.name==="Default"||Q.name.startsWith("Profile ")).map((Q)=>Q.name);if(W.length>0)j?.(`[Claude in Chrome] Found ${z} profiles: ${W.join(", ")}`);for(let Q of W)for(let Z of G){let i=o(O,Q,"Extensions",Z);try{return await V(i),j?.(`[Claude in Chrome] Extension ${Z} found in ${z} ${Q}`),{isInstalled:!0,browser:z}}catch{}}}return j?.("[Claude in Chrome] Extension not found in any browser"),{isInstalled:!1,browser:null}}async function K(q,j){return(await a(q,j)).isInstalled}var Y="fcoeoabgfenejglbffodgkkbkcdhcgfn",s="dihbgbndebgnbjfmelmegjepbnkhlgni",r="dngcpimnedloihjnnfngkgjoidhnaolf";var M=U(()=>{n()});import{chmod as $j,mkdir as f,readFile as m,writeFile as h}from"fs/promises";import{homedir as kj}from"os";import{join as X}from"path";import{fileURLToPath as Hj}from"url";function pj(q){if(E()&&q!==!0)return!1;if(q===!0)return!0;if(q===!1)return!1;if(v(process.env.CLAUDE_CODE_ENABLE_CFC))return!0;if(B(process.env.CLAUDE_CODE_ENABLE_CFC))return!1;let j=H();if(j.claudeInChromeDefaultEnabled!==void 0)return j.claudeInChromeDefaultEnabled;return!1}function Pj(){if(k!==void 0)return k;return k=F()&&Vj()&&(process.env.USER_TYPE==="ant"||c("tengu_chrome_auto_enable",!1)),k}function fj(){let q=b(),j=I.map((O)=>`mcp__claude-in-chrome__${O.name}`),G={};if(_())G.CLAUDE_CHROME_PERMISSION_MODE="skip_all_permission_checks";let z=Object.keys(G).length>0;if(q){let O=`"${process.execPath}" --chrome-native-host`;return C(O).then((J)=>x(J)).catch((J)=>R(`[Claude in Chrome] Failed to install native host: ${J}`,{level:"error"})),{mcpConfig:{[L]:{type:"stdio",command:process.execPath,args:["--claude-in-chrome-mcp"],scope:"dynamic",...z&&{env:G}}},allowedTools:j,systemPrompt:N()}}else{let O=Hj(import.meta.url),J=X(O,".."),W=X(J,"cli.js");return C(`"${process.execPath}" "${W}" --chrome-native-host`).then((Z)=>x(Z)).catch((Z)=>R(`[Claude in Chrome] Failed to install native host: ${Z}`,{level:"error"})),{mcpConfig:{[L]:{type:"stdio",command:process.execPath,args:[`${W}`,"--claude-in-chrome-mcp"],scope:"dynamic",...z&&{env:G}}},allowedTools:j,systemPrompt:N()}}}function Nj(){if($()==="windows"){let j=kj(),G=process.env.APPDATA||X(j,"AppData","Local");return[X(G,"Claude Code","ChromeNativeHost")]}return d().map(({path:j})=>j)}async function x(q){let j=Nj();if(j.length===0)throw Error("Claude in Chrome Native Host not supported on this platform");let G={name:S,description:"Claude Code Browser Extension Native Host",path:q,type:"stdio",allowed_origins:["chrome-extension://fcoeoabgfenejglbffodgkkbkcdhcgfn/",...process.env.USER_TYPE==="ant"?["chrome-extension://dihbgbndebgnbjfmelmegjepbnkhlgni/","chrome-extension://dngcpimnedloihjnnfngkgjoidhnaolf/"]:[]]},z=D(G,null,2),O=!1;for(let J of j){let W=X(J,T);if(await m(W,"utf-8").catch(()=>null)===z)continue;try{await f(J,{recursive:!0}),await h(W,z),R(`[Claude in Chrome] Installed native host manifest at: ${W}`),O=!0}catch(Z){R(`[Claude in Chrome] Failed to install manifest at ${W}: ${Z}`)}}if($()==="windows"){let J=X(j[0],T);Sj(J)}if(O)l().then((J)=>{if(J)R("[Claude in Chrome] First-time install detected, opening reconnect page in browser"),P(Lj);else R("[Claude in Chrome] First-time install detected, but extension not installed, skipping reconnect")})}function Sj(q){let j=p();for(let{browser:G,key:z}of j){let O=`${z}\\${S}`;y("reg",["add",O,"/ve","/t","REG_SZ","/d",q,"/f"]).then((J)=>{if(J.code===0)R(`[Claude in Chrome] Registered native host for ${G} in Windows registry: ${O}`);else R(`[Claude in Chrome] Failed to register native host for ${G} in Windows registry: ${J.stderr}`)})}}async function C(q){let j=$(),G=X(u(),"chrome"),z=j==="windows"?X(G,"chrome-native-host.bat"):X(G,"chrome-native-host"),O=j==="windows"?`@echo off
|
|
3
3
|
REM Chrome native host wrapper script
|
|
4
4
|
REM Generated by Claude Code - do not edit manually
|
|
5
5
|
${q}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{Ac as $,Bc as E}from"./cli-
|
|
2
|
+
import{Ac as $,Bc as E}from"./cli-gd0f1rtp.js";import{nf as _,pf as D}from"./cli-40cqn5s4.js";import{BF as Z,FF as K,hn as X,jn as W}from"./cli-63389c5w.js";import{QO as Y,TO as C}from"./cli-vbn35zp3.js";import{jda as U}from"./cli-2afdzhna.js";import{useRef as N}from"react";import T from"strip-ansi";import{jsxDEV as L}from"react/jsx-dev-runtime";function V({children:q}){let{bindings:F}=X(),H=N(null),G=N(new Map),I=N(new Set).current;return L(Y,{bindings:F,pendingChordRef:H,pendingChord:null,setPendingChord:()=>{},activeContexts:I,registerActiveContext:()=>{},unregisterActiveContext:()=>{},handlerRegistryRef:G,children:q},void 0,!1,void 0,this)}function A(q){if(!("message"in q))return 1;let F=q.message.content;return Array.isArray(F)?F.length:1}async function P(q,F,H,{columns:G,verbose:I=!1,chunkSize:J=40,onProgress:B}={}){let M=(w)=>_(L(Z,{children:L(V,{children:L($,{messages:q,tools:F,commands:[],verbose:I,toolJSX:null,toolUseConfirmQueue:[],inProgressToolUseIDs:new Set,isMessageSelectorVisible:!1,conversationId:"export",screen:"prompt",streamingToolUses:[],showAllInTranscript:!0,isLoading:!1,renderRange:w},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),G),O=J;for(let w of q)O+=A(w);for(let w=0;w<O;w+=J){let Q=await M([w,w+J]);if(T(Q).trim()==="")break;await H(Q),B?.(w+J)}}async function k(q,F=[],H){let G=[];return await P(q,F,(I)=>void G.push(T(I)),{columns:H}),G.join("")}var x=U(()=>{E();C();W();K();D()});
|
|
3
3
|
export{k as hb,x as ib};
|