@zyycn/claudex 1.0.3-fork.8ea3477 → 1.0.3-fork.e907883
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 +28 -2
- package/dist/{chunk-qtehqasq.js → chunk-01wr8b2k.js} +1 -1
- package/dist/{chunk-zr3hd1wq.js → chunk-02pmnf7v.js} +4 -4
- package/dist/{chunk-xnakws1s.js → chunk-05h9dkhs.js} +20 -19
- package/dist/{chunk-tm3m9h26.js → chunk-0ga1p5xs.js} +20 -19
- package/dist/{chunk-rtj91cb3.js → chunk-0k68rhv0.js} +21 -20
- package/dist/{chunk-6amnmpc7.js → chunk-0r42cjt0.js} +5 -5
- package/dist/{chunk-267xk8e1.js → chunk-0z478j9t.js} +6 -6
- package/dist/{chunk-ps3tzxen.js → chunk-19t3jw8x.js} +3 -3
- package/dist/{chunk-ncy1z32c.js → chunk-1g6tvv0z.js} +2 -2
- package/dist/{chunk-hf93m2xa.js → chunk-1gjhtpj5.js} +27 -26
- package/dist/{chunk-prvrxrf2.js → chunk-1mqnq53j.js} +3 -3
- package/dist/{chunk-p3dpb078.js → chunk-1nt5wc40.js} +20 -19
- package/dist/{chunk-hfmsbgnt.js → chunk-1sabh25e.js} +2 -2
- package/dist/{chunk-9gtfj9vm.js → chunk-1ssp33jf.js} +1 -1
- package/dist/{chunk-e1sqeyc7.js → chunk-1xcdsfs3.js} +21 -20
- package/dist/{chunk-nqjf3pve.js → chunk-1z7zde10.js} +1 -1
- package/dist/{chunk-tvsx8wrp.js → chunk-21yy16bw.js} +1 -1
- package/dist/{chunk-066z3ftb.js → chunk-23grfsnk.js} +21 -20
- package/dist/{chunk-90n37wrr.js → chunk-2438dcc3.js} +20 -19
- package/dist/chunk-24xvt6zv.js +267 -0
- package/dist/{chunk-gjx8f6c8.js → chunk-26jzxc16.js} +20 -19
- package/dist/{chunk-yeeh5x71.js → chunk-2821abx0.js} +24 -23
- package/dist/{chunk-mp5xz5tb.js → chunk-2apnw8cf.js} +1 -1
- package/dist/{chunk-hkx4p18v.js → chunk-2j24kmqd.js} +3 -3
- package/dist/{chunk-r48dfqvv.js → chunk-2jr2qzaj.js} +3 -3
- package/dist/{chunk-k47b4t99.js → chunk-2pbwvm74.js} +20 -19
- package/dist/{chunk-tp39n82r.js → chunk-2wf43vyh.js} +20 -19
- package/dist/{chunk-6d2b3sxs.js → chunk-30j08xb7.js} +20 -19
- package/dist/{chunk-mbj33rwa.js → chunk-35s627hz.js} +28 -27
- package/dist/{chunk-a227j0w9.js → chunk-39f1ajfm.js} +5 -5
- package/dist/{chunk-6vqtwyj6.js → chunk-3a9tb3er.js} +20 -19
- package/dist/{chunk-xe4srnxa.js → chunk-3aps1tag.js} +1 -1
- package/dist/{chunk-2h9yz16j.js → chunk-3az3s2dr.js} +4 -4
- package/dist/{chunk-fxrdfygs.js → chunk-3cvgbrfj.js} +1 -1
- package/dist/{chunk-qgvxqs1j.js → chunk-3e0s1swc.js} +5 -5
- package/dist/{chunk-2gbw5g8b.js → chunk-3qan8w8e.js} +31 -30
- package/dist/{chunk-d9e4p204.js → chunk-3wxdnr9s.js} +4 -4
- package/dist/{chunk-k0r0zkj8.js → chunk-44c4c3tf.js} +22 -21
- package/dist/{chunk-dfrgsj5b.js → chunk-4akmcbss.js} +1 -1
- package/dist/{chunk-1v95gra1.js → chunk-4bfm3re3.js} +21 -20
- package/dist/{chunk-rk739vnk.js → chunk-4f0g9kt8.js} +2 -2
- package/dist/{chunk-nsxfev6d.js → chunk-4k6e0nqt.js} +2 -2
- package/dist/{chunk-bea5dax9.js → chunk-4r4n63xq.js} +21 -20
- package/dist/{chunk-2rcdx4ke.js → chunk-4w38zgp6.js} +4 -4
- package/dist/{chunk-8chajkk7.js → chunk-4ybw0d71.js} +18 -18
- package/dist/{chunk-p2jjhhdq.js → chunk-54cefep6.js} +2 -2
- package/dist/{chunk-9z0m461t.js → chunk-5dk0z8pa.js} +586 -677
- package/dist/{chunk-3kt2yep0.js → chunk-5y6bvafh.js} +1 -1
- package/dist/{chunk-56gvmm6d.js → chunk-65rsansb.js} +2 -2
- package/dist/{chunk-r04m54xx.js → chunk-6b046n5x.js} +2 -2
- package/dist/{chunk-anepdxcr.js → chunk-6dd4e918.js} +22 -21
- package/dist/{chunk-46r7cpk9.js → chunk-6df46z6q.js} +2 -2
- package/dist/{chunk-na23wjzk.js → chunk-6n13qf4a.js} +7 -7
- package/dist/{chunk-yjj8v101.js → chunk-6pj4v4qk.js} +20 -19
- package/dist/{chunk-q6rgn5n4.js → chunk-6qqn7nm7.js} +20 -19
- package/dist/{chunk-7n35ryhw.js → chunk-6xz7798k.js} +1 -1
- package/dist/{chunk-7qkp95sn.js → chunk-70z4cekc.js} +1 -1
- package/dist/{chunk-y6gvetdv.js → chunk-71pdxr0w.js} +6 -6
- package/dist/{chunk-5w1zy489.js → chunk-731chhqb.js} +20 -19
- package/dist/{chunk-08751ft2.js → chunk-73ypyn34.js} +1 -1
- package/dist/{chunk-g68qexsp.js → chunk-77paevx3.js} +35 -34
- package/dist/{chunk-t98nwe6t.js → chunk-78j6mner.js} +2 -2
- package/dist/{chunk-1s4mbp7w.js → chunk-7ethrqkf.js} +1 -1
- package/dist/{chunk-3ytpq9cp.js → chunk-7hnfsk5p.js} +25 -24
- package/dist/{chunk-xt3fpdyg.js → chunk-7mk5xrr5.js} +2 -2
- package/dist/{chunk-xtp0zyj6.js → chunk-82wavg20.js} +2 -2
- package/dist/{chunk-tajvq5kz.js → chunk-83w1nezx.js} +20 -19
- package/dist/{chunk-0vkyg316.js → chunk-846rntfe.js} +22 -21
- package/dist/{chunk-ehbn145a.js → chunk-84d1a15r.js} +21 -20
- package/dist/{chunk-gxyvncc7.js → chunk-86mampef.js} +3 -3
- package/dist/{chunk-ncp3pwsr.js → chunk-8acyzy32.js} +1 -1
- package/dist/{chunk-na52mk0r.js → chunk-8d235jn7.js} +1 -1
- package/dist/{chunk-yw6st6p0.js → chunk-8fm85wdy.js} +20 -19
- package/dist/{chunk-wzs27t3w.js → chunk-8m0qwksh.js} +20 -19
- package/dist/{chunk-6nhgz6tx.js → chunk-91kmjxr7.js} +13 -13
- package/dist/{chunk-xnvbzn1n.js → chunk-96fwp5k5.js} +8 -8
- package/dist/{chunk-mgn6vrbd.js → chunk-9a6b7d6t.js} +20 -19
- package/dist/{chunk-agzhg6xh.js → chunk-9c6pqkhv.js} +20 -19
- package/dist/{chunk-fexemt9v.js → chunk-9epd9ffp.js} +2 -2
- package/dist/{chunk-apg75xb6.js → chunk-9j94avjw.js} +3 -3
- package/dist/{chunk-jncc0weh.js → chunk-9mvar53y.js} +2 -2
- package/dist/{chunk-schbwy40.js → chunk-9vte2cw2.js} +20 -19
- package/dist/{chunk-fj9d53r3.js → chunk-a191c7re.js} +1 -1
- package/dist/{chunk-zkexh4g0.js → chunk-a619g33p.js} +2 -2
- package/dist/{chunk-dama2y06.js → chunk-a9mnjbt6.js} +1 -1
- package/dist/{chunk-661g1y9e.js → chunk-ajemg1rr.js} +20 -19
- package/dist/{chunk-manwgaqb.js → chunk-apnad17h.js} +3 -3
- package/dist/{chunk-vmc9brde.js → chunk-asy2fx7w.js} +24 -23
- package/dist/{chunk-hq3ky6kx.js → chunk-aw0kx4pr.js} +21 -20
- package/dist/{chunk-3fa6eerj.js → chunk-b0yay83x.js} +5 -5
- package/dist/{chunk-a8f3vcch.js → chunk-b2hq8x5s.js} +3 -3
- package/dist/{chunk-bc024pcs.js → chunk-b9gsdb4y.js} +21 -20
- package/dist/{chunk-b6ckwtkt.js → chunk-bc7754kx.js} +3 -3
- package/dist/{chunk-zpdp8dhh.js → chunk-bew1hspf.js} +4 -4
- package/dist/{chunk-h23rtn5x.js → chunk-bgqd5dkt.js} +1 -1
- package/dist/{chunk-xy5eszqt.js → chunk-bjf25ne8.js} +25 -24
- package/dist/{chunk-1t6z9k3a.js → chunk-bpzdwzkw.js} +28 -27
- package/dist/{chunk-3e6xa1xf.js → chunk-c56k9xjt.js} +22 -21
- package/dist/{chunk-d4qy15j0.js → chunk-c7nvtz8q.js} +2 -2
- package/dist/{chunk-rvk6yqam.js → chunk-cbgw03t3.js} +14 -14
- package/dist/{chunk-yzhjcs3j.js → chunk-cfq4ya37.js} +23 -22
- package/dist/{chunk-0fasmrp5.js → chunk-cky736mr.js} +1 -1
- package/dist/{chunk-ay5fs2aa.js → chunk-cm35zjcr.js} +1 -1
- package/dist/{chunk-3ynqq29q.js → chunk-cn2204je.js} +21 -20
- package/dist/{chunk-wh4h6pnd.js → chunk-cp7dqznm.js} +2 -2
- package/dist/{chunk-2fh7cz3s.js → chunk-crtz5w2n.js} +4 -4
- package/dist/{chunk-z7m40dxe.js → chunk-cw47e4ye.js} +8 -8
- package/dist/{chunk-m5xz321k.js → chunk-dbgvwfv7.js} +1 -1
- package/dist/{chunk-dg3pt430.js → chunk-dj02z1xd.js} +4 -4
- package/dist/{chunk-s8a69n2w.js → chunk-dnmxdcba.js} +2 -2
- package/dist/{chunk-rhv0n2y0.js → chunk-dr91dmw6.js} +25 -24
- package/dist/{chunk-7t2b6skq.js → chunk-e0hr3fx8.js} +20 -19
- package/dist/{chunk-ernvc6tg.js → chunk-ecpcxjdk.js} +3 -3
- package/dist/{chunk-yspc0e6q.js → chunk-ed1dx70t.js} +1 -1
- package/dist/{chunk-kabeznf0.js → chunk-er3qeydy.js} +22 -21
- package/dist/{chunk-1px7vbcw.js → chunk-ern3pbcx.js} +14 -14
- package/dist/{chunk-80x0ftcx.js → chunk-esafcgfa.js} +2 -2
- package/dist/{chunk-7sqx44pk.js → chunk-ezv3xk0x.js} +1 -1
- package/dist/{chunk-6g268xtz.js → chunk-fawgvfd4.js} +27 -26
- package/dist/{chunk-hryczgx7.js → chunk-feeh737b.js} +20 -19
- package/dist/{chunk-pwsr2s6a.js → chunk-frevtj6g.js} +2 -2
- package/dist/{chunk-sg51bdbd.js → chunk-frkbt9r1.js} +1 -1
- package/dist/{chunk-jr1x6bfe.js → chunk-fxd49xce.js} +6 -6
- package/dist/{chunk-bnrxrbaj.js → chunk-fynntf54.js} +1 -1
- package/dist/{chunk-1as4t5kt.js → chunk-g42cmdjg.js} +6 -6
- package/dist/{chunk-a7ygggm2.js → chunk-g5cfpvsg.js} +5 -5
- package/dist/{chunk-ztz55wxk.js → chunk-g6a5r6fm.js} +2 -2
- package/dist/{chunk-weckdstv.js → chunk-gn0d4spw.js} +3 -3
- package/dist/{chunk-n9k3xht4.js → chunk-gq3wv0wt.js} +5 -5
- package/dist/{chunk-kjxsm0j9.js → chunk-gr8j186r.js} +7 -7
- package/dist/{chunk-6b09y02p.js → chunk-h2j25g79.js} +20 -19
- package/dist/{chunk-c44kfkc6.js → chunk-h3qbajvx.js} +3 -3
- package/dist/{chunk-p1sd4c0p.js → chunk-h8r3gb0v.js} +9 -9
- package/dist/{chunk-zqftk9ez.js → chunk-h9gh97rn.js} +10 -10
- package/dist/{chunk-w46hn7j0.js → chunk-h9qjbp1t.js} +20 -19
- package/dist/{chunk-rean7kct.js → chunk-hay4dtrp.js} +2 -2
- package/dist/{chunk-4jskmhhh.js → chunk-hc1wtm8h.js} +21 -20
- package/dist/{chunk-aya4d0wt.js → chunk-hp32j0y0.js} +21 -20
- package/dist/{chunk-52b01pex.js → chunk-hqrqsmzy.js} +27 -26
- package/dist/{chunk-20ss1c7h.js → chunk-hsrqmn3b.js} +1 -1
- package/dist/{chunk-mz5h6z3a.js → chunk-hx1yn15m.js} +2 -2
- package/dist/{chunk-1cewx5s7.js → chunk-j0hk8w4t.js} +23 -22
- package/dist/{chunk-a62pbzrb.js → chunk-j6m3jrbj.js} +2 -2
- package/dist/{chunk-q6x1cx12.js → chunk-jjxy0jze.js} +22 -21
- package/dist/{chunk-003me4vk.js → chunk-jk741cv1.js} +4 -4
- package/dist/{chunk-mr2wt534.js → chunk-jm4fafwd.js} +74 -72
- package/dist/{chunk-0bk7kxrj.js → chunk-js5ddy7p.js} +21 -20
- package/dist/{chunk-8cay10ta.js → chunk-jz10r9rv.js} +21 -20
- package/dist/{chunk-rwctqm90.js → chunk-k7bkej7d.js} +2 -2
- package/dist/{chunk-mcf6nr2e.js → chunk-m6jw7q5d.js} +21 -20
- package/dist/{chunk-aaqgpqgw.js → chunk-ma7t6egq.js} +20 -19
- package/dist/{chunk-vjfekyq3.js → chunk-meqsta32.js} +21 -20
- package/dist/{chunk-0eq9w0ba.js → chunk-mgx38db9.js} +20 -19
- package/dist/chunk-mstqzs6p.js +145 -0
- package/dist/{chunk-75btqgqt.js → chunk-n2ag0df4.js} +32 -31
- package/dist/{chunk-k2hbbsmf.js → chunk-n30y8j85.js} +11 -11
- package/dist/{chunk-39bmsw23.js → chunk-n37ztrjn.js} +2 -2
- package/dist/{chunk-ed50zw8y.js → chunk-ndx5vged.js} +21 -20
- package/dist/{chunk-94my77mh.js → chunk-nfrydmks.js} +3 -3
- package/dist/{chunk-ft3p5en3.js → chunk-njrhnjyt.js} +20 -19
- package/dist/{chunk-2nrrq6tk.js → chunk-nkhv534m.js} +30 -29
- package/dist/{chunk-q97q1hcg.js → chunk-nn3k0zx9.js} +1 -1
- package/dist/{chunk-vhqrdtg4.js → chunk-nq8m9cpa.js} +21 -20
- package/dist/{chunk-q0405mzj.js → chunk-nt336bn5.js} +31 -30
- package/dist/{chunk-7g7e9act.js → chunk-nv2d2hf3.js} +4 -4
- package/dist/chunk-nzd11saa.js +213 -0
- package/dist/{chunk-pr923sem.js → chunk-p3bxdsx7.js} +2 -2
- package/dist/{chunk-83yfcea1.js → chunk-pbgtahw1.js} +22 -21
- package/dist/{chunk-jscm1tx3.js → chunk-pc5fegr8.js} +579 -599
- package/dist/{chunk-420ct162.js → chunk-phq4xb29.js} +1 -1
- package/dist/{chunk-1kpky5bk.js → chunk-pjr0e1a1.js} +20 -19
- package/dist/{chunk-g87xrf7y.js → chunk-pk76xtrm.js} +20 -19
- package/dist/{chunk-r7tcrqpt.js → chunk-prvvpwy2.js} +23 -22
- package/dist/{chunk-35dt3y82.js → chunk-ps9yvxr8.js} +26 -25
- package/dist/{chunk-34xh1xdb.js → chunk-pskb02c1.js} +2 -2
- package/dist/{chunk-9442vgaf.js → chunk-pv5hyepe.js} +24 -23
- package/dist/{chunk-pj2vyay0.js → chunk-pwfc5vts.js} +27 -26
- package/dist/{chunk-8anb09j4.js → chunk-q14zdmzn.js} +1 -1
- package/dist/{chunk-636ep70s.js → chunk-q1m2756m.js} +2 -2
- package/dist/{chunk-n3f8cmmp.js → chunk-qawxwdx7.js} +21 -20
- package/dist/{chunk-6f223q3r.js → chunk-qevm3y8y.js} +2 -2
- package/dist/{chunk-bz8b0rkr.js → chunk-qjk1jnzh.js} +1 -1
- package/dist/{chunk-2f4jrja7.js → chunk-qmaxxcva.js} +9 -9
- package/dist/{chunk-bnn0cewm.js → chunk-qn0wd7s3.js} +2 -2
- package/dist/{chunk-xachchct.js → chunk-qt9x0k50.js} +6 -6
- package/dist/{chunk-crjq6yhx.js → chunk-r0c1vyrd.js} +1 -1
- package/dist/{chunk-za5eeyp2.js → chunk-r8amcnbm.js} +6 -6
- package/dist/{chunk-xt3h1z45.js → chunk-r8h9d011.js} +2 -2
- package/dist/{chunk-y76a6yrx.js → chunk-ramjyyc8.js} +2 -2
- package/dist/{chunk-c1fryffh.js → chunk-rbbsyaff.js} +1 -1
- package/dist/{chunk-s9q1abw7.js → chunk-rcmqhhx2.js} +23 -22
- package/dist/{chunk-tyeya5st.js → chunk-rkt1hd6c.js} +24 -23
- package/dist/{chunk-k81s6dwg.js → chunk-rnq575t3.js} +2 -2
- package/dist/{chunk-k57nzm5g.js → chunk-rt1b88z4.js} +2 -2
- package/dist/{chunk-s50ktp24.js → chunk-rvakdrb0.js} +2 -2
- package/dist/{chunk-1qy9mmcc.js → chunk-rzw11yt1.js} +34 -33
- package/dist/{chunk-5x5e58ya.js → chunk-s1rcbzcw.js} +2 -2
- package/dist/{chunk-0xc21vnj.js → chunk-s6n27pkj.js} +21 -20
- package/dist/{chunk-3eshd6xk.js → chunk-s6ybwgw7.js} +20 -19
- package/dist/{chunk-y73vmtyg.js → chunk-s9pz9w8z.js} +24 -23
- package/dist/{chunk-x6tcd9r0.js → chunk-saajhd26.js} +36 -35
- package/dist/{chunk-3t7f3gcw.js → chunk-scg8vnj4.js} +2 -2
- package/dist/{chunk-xkr0p6ye.js → chunk-sdyzhdc1.js} +24 -23
- package/dist/chunk-sez4m9bv.js +89 -0
- package/dist/{chunk-sd4w5naz.js → chunk-smm60eqj.js} +2 -2
- package/dist/{chunk-1fzj9395.js → chunk-sw272bd9.js} +20 -19
- package/dist/{chunk-48tbj7wy.js → chunk-sw7mv4fp.js} +20 -20
- package/dist/{chunk-p2ph1g5r.js → chunk-syes26qt.js} +1 -1
- package/dist/{chunk-59xd4k12.js → chunk-t8hyzrty.js} +4 -4
- package/dist/{chunk-hnd3qdne.js → chunk-thvvdwdj.js} +1 -1
- package/dist/{chunk-crb2km34.js → chunk-tqbt95fc.js} +22 -21
- package/dist/{chunk-vb439x6p.js → chunk-tqg3vc07.js} +22 -21
- package/dist/chunk-vb317ddm.js +196 -0
- package/dist/{chunk-0h6aw0a3.js → chunk-vfz8zvd0.js} +22 -21
- package/dist/{chunk-yxn47tgb.js → chunk-vndc6hwb.js} +31 -30
- package/dist/{chunk-fzj9v433.js → chunk-w2kgev13.js} +22 -21
- package/dist/{chunk-yceyh928.js → chunk-w3wnk6jn.js} +21 -20
- package/dist/{chunk-xtxye29p.js → chunk-w4w72f1r.js} +1 -1
- package/dist/{chunk-4z2f0he5.js → chunk-w7qmyya1.js} +21 -20
- package/dist/{chunk-jmyf3yfd.js → chunk-wn91yme5.js} +2 -2
- package/dist/{chunk-s3aafktg.js → chunk-wq2c5sg5.js} +20 -19
- package/dist/{chunk-pk50mryy.js → chunk-wqrtcbsj.js} +20 -19
- package/dist/chunk-wv2681bc.js +513 -0
- package/dist/{chunk-wr1k3cvr.js → chunk-wxn90wjg.js} +1 -1
- package/dist/{chunk-b06ke6np.js → chunk-xmv1mbda.js} +1 -1
- package/dist/{chunk-b0nf8thf.js → chunk-xmz7js2j.js} +98 -97
- package/dist/{chunk-w3xaxxcd.js → chunk-xs63hmf9.js} +21 -20
- package/dist/{chunk-yz5qdghx.js → chunk-xy3a8670.js} +44 -43
- package/dist/{chunk-djrv0pe9.js → chunk-xzvvq64s.js} +4 -4
- package/dist/{chunk-hm3qhyzb.js → chunk-y23m4n37.js} +31 -30
- package/dist/{chunk-sn9qfdb7.js → chunk-y663q7cw.js} +1 -1
- package/dist/{chunk-47mk9z0m.js → chunk-y7hjaba4.js} +9 -9
- package/dist/{chunk-jyp9ghx7.js → chunk-y7zkx124.js} +3 -3
- package/dist/{chunk-s8h35ykn.js → chunk-y9aatm1y.js} +20 -19
- package/dist/{chunk-7g809g0h.js → chunk-y9sd7hzk.js} +21 -20
- package/dist/{chunk-cb96n1wn.js → chunk-yb4vwgj7.js} +23 -22
- package/dist/{chunk-5scc5afj.js → chunk-yp4j4zds.js} +20 -19
- package/dist/{chunk-ttt9vpe0.js → chunk-ystcd8se.js} +1 -1
- package/dist/{chunk-pqpct87d.js → chunk-ytf7qs19.js} +20 -19
- package/dist/{chunk-ksmr3w0g.js → chunk-yvwpdf32.js} +1 -1
- package/dist/{chunk-2b8rybcz.js → chunk-yvz7p2w8.js} +20 -19
- package/dist/{chunk-11xj9mwv.js → chunk-z02bkcdy.js} +2 -2
- package/dist/{chunk-chh771rg.js → chunk-z40yd48f.js} +1 -1
- package/dist/{chunk-j5mmcf8q.js → chunk-zgcgdxxa.js} +7 -7
- package/dist/{chunk-hcxrs7ab.js → chunk-zrbjy5n9.js} +6 -6
- package/dist/{chunk-d2yx9c0a.js → chunk-zvvs0p94.js} +1 -1
- package/dist/{chunk-bx7mvxyt.js → chunk-zw1rsq5n.js} +31 -30
- package/dist/cli.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-9gw90pr6.js +0 -143
|
@@ -9,15 +9,19 @@ import {
|
|
|
9
9
|
sendSessionActivitySignal,
|
|
10
10
|
startSessionActivity,
|
|
11
11
|
stopSessionActivity
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-w4w72f1r.js";
|
|
13
|
+
import {
|
|
14
|
+
clearTrustedDeviceTokenCache,
|
|
15
|
+
init_trustedDevice
|
|
16
|
+
} from "./chunk-cm35zjcr.js";
|
|
13
17
|
import {
|
|
14
18
|
init_datadog,
|
|
15
19
|
shutdownDatadog
|
|
16
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-70z4cekc.js";
|
|
17
21
|
import {
|
|
18
22
|
getTeammateModeFromSnapshot,
|
|
19
23
|
init_teammateModeSnapshot
|
|
20
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-1ssp33jf.js";
|
|
21
25
|
import {
|
|
22
26
|
DANGEROUS_uncachedSystemPromptSection,
|
|
23
27
|
clearSystemPromptSections,
|
|
@@ -25,10 +29,6 @@ import {
|
|
|
25
29
|
resolveSystemPromptSections,
|
|
26
30
|
systemPromptSection
|
|
27
31
|
} from "./chunk-t0rgmccj.js";
|
|
28
|
-
import {
|
|
29
|
-
clearTrustedDeviceTokenCache,
|
|
30
|
-
init_trustedDevice
|
|
31
|
-
} from "./chunk-ay5fs2aa.js";
|
|
32
32
|
import {
|
|
33
33
|
Byline,
|
|
34
34
|
CHROME_TOOL_SEARCH_INSTRUCTIONS,
|
|
@@ -42,7 +42,11 @@ import {
|
|
|
42
42
|
init_prompt as init_prompt3,
|
|
43
43
|
init_useShortcutDisplay,
|
|
44
44
|
useShortcutDisplay
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-19t3jw8x.js";
|
|
46
|
+
import {
|
|
47
|
+
init_p_map,
|
|
48
|
+
pMap
|
|
49
|
+
} from "./chunk-2gzv8nrw.js";
|
|
46
50
|
import {
|
|
47
51
|
chokidar_default,
|
|
48
52
|
init_chokidar
|
|
@@ -51,7 +55,7 @@ import {
|
|
|
51
55
|
getUndercoverInstructions,
|
|
52
56
|
init_undercover,
|
|
53
57
|
isUndercover
|
|
54
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-j6m3jrbj.js";
|
|
55
59
|
import {
|
|
56
60
|
calculateCommitAttribution,
|
|
57
61
|
createEmptyAttributionState,
|
|
@@ -59,7 +63,7 @@ import {
|
|
|
59
63
|
isInternalModelRepo,
|
|
60
64
|
isInternalModelRepoCached,
|
|
61
65
|
sanitizeModelName
|
|
62
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-y663q7cw.js";
|
|
63
67
|
import {
|
|
64
68
|
init_subprocessEnv,
|
|
65
69
|
subprocessEnv
|
|
@@ -98,11 +102,11 @@ import {
|
|
|
98
102
|
unregisterTeamForSessionCleanup,
|
|
99
103
|
updateTask,
|
|
100
104
|
writeTeamFileAsync
|
|
101
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-phq4xb29.js";
|
|
102
106
|
import {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
} from "./chunk-
|
|
107
|
+
getCompanion,
|
|
108
|
+
init_companion
|
|
109
|
+
} from "./chunk-vb317ddm.js";
|
|
106
110
|
import {
|
|
107
111
|
CLAUDE_IN_CHROME_MCP_SERVER_NAME,
|
|
108
112
|
init_common,
|
|
@@ -117,13 +121,13 @@ import {
|
|
|
117
121
|
checkCachedPassesEligibility,
|
|
118
122
|
getCachedReferrerReward,
|
|
119
123
|
init_referral
|
|
120
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-hay4dtrp.js";
|
|
121
125
|
import {
|
|
122
126
|
init_useDoublePress,
|
|
123
127
|
init_useExitOnCtrlCDWithKeybindings,
|
|
124
128
|
useDoublePress,
|
|
125
129
|
useExitOnCtrlCDWithKeybindings
|
|
126
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-ramjyyc8.js";
|
|
127
131
|
import {
|
|
128
132
|
READ_FILE_STATE_CACHE_SIZE,
|
|
129
133
|
cacheKeys,
|
|
@@ -138,7 +142,7 @@ import {
|
|
|
138
142
|
init_terminalSetup,
|
|
139
143
|
markBackslashReturnUsed,
|
|
140
144
|
maybeMarkProjectOnboardingComplete
|
|
141
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-rvakdrb0.js";
|
|
142
146
|
import {
|
|
143
147
|
debugBody,
|
|
144
148
|
exports_sessionIdCompat,
|
|
@@ -164,7 +168,7 @@ import {
|
|
|
164
168
|
useKeybinding,
|
|
165
169
|
useKeybindings,
|
|
166
170
|
useTerminalSize
|
|
167
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-r0c1vyrd.js";
|
|
168
172
|
import {
|
|
169
173
|
Ansi,
|
|
170
174
|
CLEAR_ITERM2_PROGRESS,
|
|
@@ -229,7 +233,7 @@ import {
|
|
|
229
233
|
wrapAnsi,
|
|
230
234
|
wrapForMultiplexer,
|
|
231
235
|
wrapText
|
|
232
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-zvvs0p94.js";
|
|
233
237
|
import {
|
|
234
238
|
gt,
|
|
235
239
|
gte,
|
|
@@ -247,7 +251,7 @@ import {
|
|
|
247
251
|
getPrompt,
|
|
248
252
|
init_prompt as init_prompt2,
|
|
249
253
|
isDeferredTool
|
|
250
|
-
} from "./chunk-
|
|
254
|
+
} from "./chunk-3aps1tag.js";
|
|
251
255
|
import {
|
|
252
256
|
TungstenTool,
|
|
253
257
|
init_TungstenTool
|
|
@@ -257,7 +261,7 @@ import {
|
|
|
257
261
|
getBranchFromSession,
|
|
258
262
|
getOAuthHeaders,
|
|
259
263
|
init_api
|
|
260
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-ystcd8se.js";
|
|
261
265
|
import {
|
|
262
266
|
init_browser,
|
|
263
267
|
openBrowser,
|
|
@@ -285,7 +289,7 @@ import {
|
|
|
285
289
|
startToolExecutionSpan,
|
|
286
290
|
startToolSpan,
|
|
287
291
|
unregisterAgent
|
|
288
|
-
} from "./chunk-
|
|
292
|
+
} from "./chunk-dnmxdcba.js";
|
|
289
293
|
import {
|
|
290
294
|
ADVISOR_BETA_HEADER,
|
|
291
295
|
AFK_MODE_BETA_HEADER,
|
|
@@ -664,7 +668,7 @@ import {
|
|
|
664
668
|
validateSettingsFileContent,
|
|
665
669
|
withOAuth401Retry,
|
|
666
670
|
writeTextContent
|
|
667
|
-
} from "./chunk-
|
|
671
|
+
} from "./chunk-h8r3gb0v.js";
|
|
668
672
|
import {
|
|
669
673
|
ConfigScopeSchema,
|
|
670
674
|
McpJsonConfigSchema,
|
|
@@ -4887,7 +4891,7 @@ var init_add_dir = __esm(() => {
|
|
|
4887
4891
|
name: "add-dir",
|
|
4888
4892
|
description: "Add a new working directory",
|
|
4889
4893
|
argumentHint: "<path>",
|
|
4890
|
-
load: () => import("./chunk-
|
|
4894
|
+
load: () => import("./chunk-44c4c3tf.js")
|
|
4891
4895
|
};
|
|
4892
4896
|
add_dir_default = addDir;
|
|
4893
4897
|
});
|
|
@@ -4913,7 +4917,7 @@ var init_btw = __esm(() => {
|
|
|
4913
4917
|
description: "Ask a quick side question without interrupting the main conversation",
|
|
4914
4918
|
immediate: true,
|
|
4915
4919
|
argumentHint: "<question>",
|
|
4916
|
-
load: () => import("./chunk-
|
|
4920
|
+
load: () => import("./chunk-846rntfe.js")
|
|
4917
4921
|
};
|
|
4918
4922
|
btw_default = btw;
|
|
4919
4923
|
});
|
|
@@ -4940,175 +4944,6 @@ var init_last = __esm(() => {
|
|
|
4940
4944
|
last_default = last;
|
|
4941
4945
|
});
|
|
4942
4946
|
|
|
4943
|
-
// src/buddy/types.ts
|
|
4944
|
-
var RARITIES, c, duck, goose, blob, cat, dragon, octopus, owl, penguin, turtle, snail, ghost, axolotl, capybara, cactus, robot, rabbit, mushroom, chonk, SPECIES, EYES, HATS, STAT_NAMES, RARITY_WEIGHTS;
|
|
4945
|
-
var init_types4 = __esm(() => {
|
|
4946
|
-
RARITIES = [
|
|
4947
|
-
"common",
|
|
4948
|
-
"uncommon",
|
|
4949
|
-
"rare",
|
|
4950
|
-
"epic",
|
|
4951
|
-
"legendary"
|
|
4952
|
-
];
|
|
4953
|
-
c = String.fromCharCode;
|
|
4954
|
-
duck = c(100, 117, 99, 107);
|
|
4955
|
-
goose = c(103, 111, 111, 115, 101);
|
|
4956
|
-
blob = c(98, 108, 111, 98);
|
|
4957
|
-
cat = c(99, 97, 116);
|
|
4958
|
-
dragon = c(100, 114, 97, 103, 111, 110);
|
|
4959
|
-
octopus = c(111, 99, 116, 111, 112, 117, 115);
|
|
4960
|
-
owl = c(111, 119, 108);
|
|
4961
|
-
penguin = c(112, 101, 110, 103, 117, 105, 110);
|
|
4962
|
-
turtle = c(116, 117, 114, 116, 108, 101);
|
|
4963
|
-
snail = c(115, 110, 97, 105, 108);
|
|
4964
|
-
ghost = c(103, 104, 111, 115, 116);
|
|
4965
|
-
axolotl = c(97, 120, 111, 108, 111, 116, 108);
|
|
4966
|
-
capybara = c(99, 97, 112, 121, 98, 97, 114, 97);
|
|
4967
|
-
cactus = c(99, 97, 99, 116, 117, 115);
|
|
4968
|
-
robot = c(114, 111, 98, 111, 116);
|
|
4969
|
-
rabbit = c(114, 97, 98, 98, 105, 116);
|
|
4970
|
-
mushroom = c(109, 117, 115, 104, 114, 111, 111, 109);
|
|
4971
|
-
chonk = c(99, 104, 111, 110, 107);
|
|
4972
|
-
SPECIES = [
|
|
4973
|
-
duck,
|
|
4974
|
-
goose,
|
|
4975
|
-
blob,
|
|
4976
|
-
cat,
|
|
4977
|
-
dragon,
|
|
4978
|
-
octopus,
|
|
4979
|
-
owl,
|
|
4980
|
-
penguin,
|
|
4981
|
-
turtle,
|
|
4982
|
-
snail,
|
|
4983
|
-
ghost,
|
|
4984
|
-
axolotl,
|
|
4985
|
-
capybara,
|
|
4986
|
-
cactus,
|
|
4987
|
-
robot,
|
|
4988
|
-
rabbit,
|
|
4989
|
-
mushroom,
|
|
4990
|
-
chonk
|
|
4991
|
-
];
|
|
4992
|
-
EYES = ["\xB7", "\u2726", "\xD7", "\u25C9", "@", "\xB0"];
|
|
4993
|
-
HATS = [
|
|
4994
|
-
"none",
|
|
4995
|
-
"crown",
|
|
4996
|
-
"tophat",
|
|
4997
|
-
"propeller",
|
|
4998
|
-
"halo",
|
|
4999
|
-
"wizard",
|
|
5000
|
-
"beanie",
|
|
5001
|
-
"tinyduck"
|
|
5002
|
-
];
|
|
5003
|
-
STAT_NAMES = [
|
|
5004
|
-
"DEBUGGING",
|
|
5005
|
-
"PATIENCE",
|
|
5006
|
-
"CHAOS",
|
|
5007
|
-
"WISDOM",
|
|
5008
|
-
"SNARK"
|
|
5009
|
-
];
|
|
5010
|
-
RARITY_WEIGHTS = {
|
|
5011
|
-
common: 60,
|
|
5012
|
-
uncommon: 25,
|
|
5013
|
-
rare: 10,
|
|
5014
|
-
epic: 4,
|
|
5015
|
-
legendary: 1
|
|
5016
|
-
};
|
|
5017
|
-
});
|
|
5018
|
-
|
|
5019
|
-
// src/buddy/companion.ts
|
|
5020
|
-
function mulberry32(seed) {
|
|
5021
|
-
let a = seed >>> 0;
|
|
5022
|
-
return function() {
|
|
5023
|
-
a |= 0;
|
|
5024
|
-
a = a + 1831565813 | 0;
|
|
5025
|
-
let t = Math.imul(a ^ a >>> 15, 1 | a);
|
|
5026
|
-
t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
|
|
5027
|
-
return ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
5028
|
-
};
|
|
5029
|
-
}
|
|
5030
|
-
function hashString(s) {
|
|
5031
|
-
if (typeof Bun !== "undefined") {
|
|
5032
|
-
return Number(BigInt(Bun.hash(s)) & 0xffffffffn);
|
|
5033
|
-
}
|
|
5034
|
-
let h = 2166136261;
|
|
5035
|
-
for (let i = 0;i < s.length; i++) {
|
|
5036
|
-
h ^= s.charCodeAt(i);
|
|
5037
|
-
h = Math.imul(h, 16777619);
|
|
5038
|
-
}
|
|
5039
|
-
return h >>> 0;
|
|
5040
|
-
}
|
|
5041
|
-
function pick(rng, arr) {
|
|
5042
|
-
return arr[Math.floor(rng() * arr.length)];
|
|
5043
|
-
}
|
|
5044
|
-
function rollRarity(rng) {
|
|
5045
|
-
const total = Object.values(RARITY_WEIGHTS).reduce((a, b) => a + b, 0);
|
|
5046
|
-
let roll = rng() * total;
|
|
5047
|
-
for (const rarity of RARITIES) {
|
|
5048
|
-
roll -= RARITY_WEIGHTS[rarity];
|
|
5049
|
-
if (roll < 0)
|
|
5050
|
-
return rarity;
|
|
5051
|
-
}
|
|
5052
|
-
return "common";
|
|
5053
|
-
}
|
|
5054
|
-
function rollStats(rng, rarity) {
|
|
5055
|
-
const floor = RARITY_FLOOR[rarity];
|
|
5056
|
-
const peak = pick(rng, STAT_NAMES);
|
|
5057
|
-
let dump = pick(rng, STAT_NAMES);
|
|
5058
|
-
while (dump === peak)
|
|
5059
|
-
dump = pick(rng, STAT_NAMES);
|
|
5060
|
-
const stats = {};
|
|
5061
|
-
for (const name of STAT_NAMES) {
|
|
5062
|
-
if (name === peak) {
|
|
5063
|
-
stats[name] = Math.min(100, floor + 50 + Math.floor(rng() * 30));
|
|
5064
|
-
} else if (name === dump) {
|
|
5065
|
-
stats[name] = Math.max(1, floor - 10 + Math.floor(rng() * 15));
|
|
5066
|
-
} else {
|
|
5067
|
-
stats[name] = floor + Math.floor(rng() * 40);
|
|
5068
|
-
}
|
|
5069
|
-
}
|
|
5070
|
-
return stats;
|
|
5071
|
-
}
|
|
5072
|
-
function rollFrom(rng) {
|
|
5073
|
-
const rarity = rollRarity(rng);
|
|
5074
|
-
const bones = {
|
|
5075
|
-
rarity,
|
|
5076
|
-
species: pick(rng, SPECIES),
|
|
5077
|
-
eye: pick(rng, EYES),
|
|
5078
|
-
hat: rarity === "common" ? "none" : pick(rng, HATS),
|
|
5079
|
-
shiny: rng() < 0.01,
|
|
5080
|
-
stats: rollStats(rng, rarity)
|
|
5081
|
-
};
|
|
5082
|
-
return { bones, inspirationSeed: Math.floor(rng() * 1e9) };
|
|
5083
|
-
}
|
|
5084
|
-
function rollWithSeed(seed) {
|
|
5085
|
-
return rollFrom(mulberry32(hashString(seed)));
|
|
5086
|
-
}
|
|
5087
|
-
function companionUserId() {
|
|
5088
|
-
const config2 = getGlobalConfig();
|
|
5089
|
-
return config2.oauthAccount?.accountUuid ?? config2.userID ?? "anon";
|
|
5090
|
-
}
|
|
5091
|
-
function getCompanion() {
|
|
5092
|
-
const stored = getGlobalConfig().companion;
|
|
5093
|
-
if (!stored)
|
|
5094
|
-
return;
|
|
5095
|
-
const seed = stored.seed ?? companionUserId();
|
|
5096
|
-
const { bones } = rollWithSeed(seed);
|
|
5097
|
-
return { ...stored, ...bones };
|
|
5098
|
-
}
|
|
5099
|
-
var RARITY_FLOOR;
|
|
5100
|
-
var init_companion = __esm(() => {
|
|
5101
|
-
init_config2();
|
|
5102
|
-
init_types4();
|
|
5103
|
-
RARITY_FLOOR = {
|
|
5104
|
-
common: 5,
|
|
5105
|
-
uncommon: 15,
|
|
5106
|
-
rare: 25,
|
|
5107
|
-
epic: 35,
|
|
5108
|
-
legendary: 50
|
|
5109
|
-
};
|
|
5110
|
-
});
|
|
5111
|
-
|
|
5112
4947
|
// src/buddy/prompt.ts
|
|
5113
4948
|
function companionIntroText(name, species) {
|
|
5114
4949
|
return `# Companion
|
|
@@ -5117,6 +4952,28 @@ A small ${species} named ${name} sits beside the user's input box and occasional
|
|
|
5117
4952
|
|
|
5118
4953
|
When the user addresses ${name} directly (by name), its bubble will answer. Your job in that moment is to stay out of the way: respond in ONE line or less, or just answer any part of the message meant for you. Don't explain that you're not ${name} \u2014 they know. Don't narrate what ${name} might say \u2014 the bubble handles that.`;
|
|
5119
4954
|
}
|
|
4955
|
+
function getCompanionIntroAttachment(messages) {
|
|
4956
|
+
if (false)
|
|
4957
|
+
;
|
|
4958
|
+
const companion = getCompanion();
|
|
4959
|
+
if (!companion || getGlobalConfig().companionMuted)
|
|
4960
|
+
return [];
|
|
4961
|
+
for (const msg of messages ?? []) {
|
|
4962
|
+
if (msg.type !== "attachment")
|
|
4963
|
+
continue;
|
|
4964
|
+
if (msg.attachment.type !== "companion_intro")
|
|
4965
|
+
continue;
|
|
4966
|
+
if (msg.attachment.name === companion.name)
|
|
4967
|
+
return [];
|
|
4968
|
+
}
|
|
4969
|
+
return [
|
|
4970
|
+
{
|
|
4971
|
+
type: "companion_intro",
|
|
4972
|
+
name: companion.name,
|
|
4973
|
+
species: companion.species
|
|
4974
|
+
}
|
|
4975
|
+
];
|
|
4976
|
+
}
|
|
5120
4977
|
var init_prompt8 = __esm(() => {
|
|
5121
4978
|
init_config2();
|
|
5122
4979
|
init_companion();
|
|
@@ -5753,9 +5610,9 @@ var require_Alias = __commonJS((exports) => {
|
|
|
5753
5610
|
} else if (identity.isCollection(node)) {
|
|
5754
5611
|
let count2 = 0;
|
|
5755
5612
|
for (const item of node.items) {
|
|
5756
|
-
const
|
|
5757
|
-
if (
|
|
5758
|
-
count2 =
|
|
5613
|
+
const c = getAliasCount(doc, item, anchors2);
|
|
5614
|
+
if (c > count2)
|
|
5615
|
+
count2 = c;
|
|
5759
5616
|
}
|
|
5760
5617
|
return count2;
|
|
5761
5618
|
} else if (identity.isPair(node)) {
|
|
@@ -12357,7 +12214,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
12357
12214
|
if (!isAttributionHeaderEnabled()) {
|
|
12358
12215
|
return "";
|
|
12359
12216
|
}
|
|
12360
|
-
const version = `${"1.0.3-fork.
|
|
12217
|
+
const version = `${"1.0.3-fork.e907883"}.${fingerprint}`;
|
|
12361
12218
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
12362
12219
|
const cch = "";
|
|
12363
12220
|
const workload = getWorkload();
|
|
@@ -14140,13 +13997,13 @@ var require_code = __commonJS((exports) => {
|
|
|
14140
13997
|
}
|
|
14141
13998
|
get str() {
|
|
14142
13999
|
var _a;
|
|
14143
|
-
return (_a = this._str) !== null && _a !== undefined ? _a : this._str = this._items.reduce((s,
|
|
14000
|
+
return (_a = this._str) !== null && _a !== undefined ? _a : this._str = this._items.reduce((s, c) => `${s}${c}`, "");
|
|
14144
14001
|
}
|
|
14145
14002
|
get names() {
|
|
14146
14003
|
var _a;
|
|
14147
|
-
return (_a = this._names) !== null && _a !== undefined ? _a : this._names = this._items.reduce((names,
|
|
14148
|
-
if (
|
|
14149
|
-
names[
|
|
14004
|
+
return (_a = this._names) !== null && _a !== undefined ? _a : this._names = this._items.reduce((names, c) => {
|
|
14005
|
+
if (c instanceof Name)
|
|
14006
|
+
names[c.str] = (names[c.str] || 0) + 1;
|
|
14150
14007
|
return names;
|
|
14151
14008
|
}, {});
|
|
14152
14009
|
}
|
|
@@ -14377,12 +14234,12 @@ var require_scope = __commonJS((exports) => {
|
|
|
14377
14234
|
if (nameSet.has(name))
|
|
14378
14235
|
return;
|
|
14379
14236
|
nameSet.set(name, UsedValueState.Started);
|
|
14380
|
-
let
|
|
14381
|
-
if (
|
|
14237
|
+
let c = valueCode(name);
|
|
14238
|
+
if (c) {
|
|
14382
14239
|
const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
|
|
14383
|
-
code = (0, code_1._)`${code}${def} ${name} = ${
|
|
14384
|
-
} else if (
|
|
14385
|
-
code = (0, code_1._)`${code}${
|
|
14240
|
+
code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
|
|
14241
|
+
} else if (c = getCode === null || getCode === undefined ? undefined : getCode(name)) {
|
|
14242
|
+
code = (0, code_1._)`${code}${c}${this.opts._n}`;
|
|
14386
14243
|
} else {
|
|
14387
14244
|
throw new ValueError(name);
|
|
14388
14245
|
}
|
|
@@ -14868,11 +14725,11 @@ var require_codegen = __commonJS((exports) => {
|
|
|
14868
14725
|
add(lhs, rhs) {
|
|
14869
14726
|
return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
|
|
14870
14727
|
}
|
|
14871
|
-
code(
|
|
14872
|
-
if (typeof
|
|
14873
|
-
|
|
14874
|
-
else if (
|
|
14875
|
-
this._leafNode(new AnyCode(
|
|
14728
|
+
code(c) {
|
|
14729
|
+
if (typeof c == "function")
|
|
14730
|
+
c();
|
|
14731
|
+
else if (c !== code_1.nil)
|
|
14732
|
+
this._leafNode(new AnyCode(c));
|
|
14876
14733
|
return this;
|
|
14877
14734
|
}
|
|
14878
14735
|
object(...keyValues) {
|
|
@@ -15059,24 +14916,24 @@ var require_codegen = __commonJS((exports) => {
|
|
|
15059
14916
|
return replaceName(expr);
|
|
15060
14917
|
if (!canOptimize(expr))
|
|
15061
14918
|
return expr;
|
|
15062
|
-
return new code_1._Code(expr._items.reduce((items,
|
|
15063
|
-
if (
|
|
15064
|
-
|
|
15065
|
-
if (
|
|
15066
|
-
items.push(...
|
|
14919
|
+
return new code_1._Code(expr._items.reduce((items, c) => {
|
|
14920
|
+
if (c instanceof code_1.Name)
|
|
14921
|
+
c = replaceName(c);
|
|
14922
|
+
if (c instanceof code_1._Code)
|
|
14923
|
+
items.push(...c._items);
|
|
15067
14924
|
else
|
|
15068
|
-
items.push(
|
|
14925
|
+
items.push(c);
|
|
15069
14926
|
return items;
|
|
15070
14927
|
}, []));
|
|
15071
14928
|
function replaceName(n) {
|
|
15072
|
-
const
|
|
15073
|
-
if (
|
|
14929
|
+
const c = constants[n.str];
|
|
14930
|
+
if (c === undefined || names[n.str] !== 1)
|
|
15074
14931
|
return n;
|
|
15075
14932
|
delete names[n.str];
|
|
15076
|
-
return
|
|
14933
|
+
return c;
|
|
15077
14934
|
}
|
|
15078
14935
|
function canOptimize(e) {
|
|
15079
|
-
return e instanceof code_1._Code && e._items.some((
|
|
14936
|
+
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants[c.str] !== undefined);
|
|
15080
14937
|
}
|
|
15081
14938
|
}
|
|
15082
14939
|
function subtractNames(names, from) {
|
|
@@ -21132,13 +20989,13 @@ function getMcpInstructionsDelta(mcpClients, messages, clientSideInstructions) {
|
|
|
21132
20989
|
for (const n of msg.attachment.removedNames)
|
|
21133
20990
|
announced.delete(n);
|
|
21134
20991
|
}
|
|
21135
|
-
const connected = mcpClients.filter((
|
|
21136
|
-
const connectedNames = new Set(connected.map((
|
|
20992
|
+
const connected = mcpClients.filter((c) => c.type === "connected");
|
|
20993
|
+
const connectedNames = new Set(connected.map((c) => c.name));
|
|
21137
20994
|
const blocks = new Map;
|
|
21138
|
-
for (const
|
|
21139
|
-
if (
|
|
21140
|
-
blocks.set(
|
|
21141
|
-
${
|
|
20995
|
+
for (const c of connected) {
|
|
20996
|
+
if (c.instructions)
|
|
20997
|
+
blocks.set(c.name, `## ${c.name}
|
|
20998
|
+
${c.instructions}`);
|
|
21142
20999
|
}
|
|
21143
21000
|
for (const ci of clientSideInstructions) {
|
|
21144
21001
|
if (!connectedNames.has(ci.serverName))
|
|
@@ -21807,13 +21664,13 @@ var T, _, be, m, Re, Te, Oe, C, we, Q, se, ie, ye, j, Pe, F, Se, $e, v = "addres
|
|
|
21807
21664
|
break;
|
|
21808
21665
|
n = n.slice(l);
|
|
21809
21666
|
let p = o.join(`
|
|
21810
|
-
`),
|
|
21667
|
+
`), c = p.replace(this.rules.other.blockquoteSetextReplace, `
|
|
21811
21668
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
21812
21669
|
r = r ? `${r}
|
|
21813
21670
|
${p}` : p, i = i ? `${i}
|
|
21814
|
-
${
|
|
21671
|
+
${c}` : c;
|
|
21815
21672
|
let d = this.lexer.state.top;
|
|
21816
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(
|
|
21673
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(c, s, true), this.lexer.state.top = d, n.length === 0)
|
|
21817
21674
|
break;
|
|
21818
21675
|
let h = s.at(-1);
|
|
21819
21676
|
if (h?.type === "code")
|
|
@@ -21843,14 +21700,14 @@ ${c2}` : c2;
|
|
|
21843
21700
|
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
21844
21701
|
let s = this.rules.other.listItemRegex(n), a = false;
|
|
21845
21702
|
for (;e; ) {
|
|
21846
|
-
let l = false, p = "",
|
|
21703
|
+
let l = false, p = "", c = "";
|
|
21847
21704
|
if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
|
|
21848
21705
|
break;
|
|
21849
21706
|
p = t[0], e = e.substring(p.length);
|
|
21850
21707
|
let d = ge(t[2].split(`
|
|
21851
21708
|
`, 1)[0], t[1].length), h = e.split(`
|
|
21852
21709
|
`, 1)[0], R = !d.trim(), f = 0;
|
|
21853
|
-
if (this.options.pedantic ? (f = 2,
|
|
21710
|
+
if (this.options.pedantic ? (f = 2, c = d.trimStart()) : R ? f = t[1].length + 1 : (f = d.search(this.rules.other.nonSpaceChar), f = f > 4 ? 1 : f, c = d.slice(f), f += t[1].length), R && this.rules.other.blankLine.test(h) && (p += h + `
|
|
21854
21711
|
`, e = e.substring(h.length + 1), l = true), !l) {
|
|
21855
21712
|
let S = this.rules.other.nextBulletRegex(f), Y = this.rules.other.hrRegex(f), ee = this.rules.other.fencesBeginRegex(f), te = this.rules.other.headingBeginRegex(f), me = this.rules.other.htmlBeginRegex(f), xe = this.rules.other.blockquoteBeginRegex(f);
|
|
21856
21713
|
for (;e; ) {
|
|
@@ -21859,19 +21716,19 @@ ${c2}` : c2;
|
|
|
21859
21716
|
if (h = Z, this.options.pedantic ? (h = h.replace(this.rules.other.listReplaceNesting, " "), A = h) : A = h.replace(this.rules.other.tabCharGlobal, " "), ee.test(h) || te.test(h) || me.test(h) || xe.test(h) || S.test(h) || Y.test(h))
|
|
21860
21717
|
break;
|
|
21861
21718
|
if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim())
|
|
21862
|
-
|
|
21719
|
+
c += `
|
|
21863
21720
|
` + A.slice(f);
|
|
21864
21721
|
else {
|
|
21865
21722
|
if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(d) || te.test(d) || Y.test(d))
|
|
21866
21723
|
break;
|
|
21867
|
-
|
|
21724
|
+
c += `
|
|
21868
21725
|
` + h;
|
|
21869
21726
|
}
|
|
21870
21727
|
R = !h.trim(), p += Z + `
|
|
21871
21728
|
`, e = e.substring(Z.length + 1), d = A.slice(f);
|
|
21872
21729
|
}
|
|
21873
21730
|
}
|
|
21874
|
-
i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (a = true)), i.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(
|
|
21731
|
+
i.loose || (a ? i.loose = true : this.rules.other.doubleBlankLine.test(p) && (a = true)), i.items.push({ type: "list_item", raw: p, task: !!this.options.gfm && this.rules.other.listIsTask.test(c), loose: false, text: c, tokens: [] }), i.raw += p;
|
|
21875
21732
|
}
|
|
21876
21733
|
let o = i.items.at(-1);
|
|
21877
21734
|
if (o)
|
|
@@ -21883,21 +21740,21 @@ ${c2}` : c2;
|
|
|
21883
21740
|
if (this.lexer.state.top = false, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
|
|
21884
21741
|
if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), l.tokens[0]?.type === "text" || l.tokens[0]?.type === "paragraph") {
|
|
21885
21742
|
l.tokens[0].raw = l.tokens[0].raw.replace(this.rules.other.listReplaceTask, ""), l.tokens[0].text = l.tokens[0].text.replace(this.rules.other.listReplaceTask, "");
|
|
21886
|
-
for (let
|
|
21887
|
-
if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[
|
|
21888
|
-
this.lexer.inlineQueue[
|
|
21743
|
+
for (let c = this.lexer.inlineQueue.length - 1;c >= 0; c--)
|
|
21744
|
+
if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[c].src)) {
|
|
21745
|
+
this.lexer.inlineQueue[c].src = this.lexer.inlineQueue[c].src.replace(this.rules.other.listReplaceTask, "");
|
|
21889
21746
|
break;
|
|
21890
21747
|
}
|
|
21891
21748
|
}
|
|
21892
21749
|
let p = this.rules.other.listTaskCheckbox.exec(l.raw);
|
|
21893
21750
|
if (p) {
|
|
21894
|
-
let
|
|
21895
|
-
l.checked =
|
|
21751
|
+
let c = { type: "checkbox", raw: p[0] + " ", checked: p[0] !== "[ ]" };
|
|
21752
|
+
l.checked = c.checked, i.loose ? l.tokens[0] && ["paragraph", "text"].includes(l.tokens[0].type) && "tokens" in l.tokens[0] && l.tokens[0].tokens ? (l.tokens[0].raw = c.raw + l.tokens[0].raw, l.tokens[0].text = c.raw + l.tokens[0].text, l.tokens[0].tokens.unshift(c)) : l.tokens.unshift({ type: "paragraph", raw: c.raw, text: c.raw, tokens: [c] }) : l.tokens.unshift(c);
|
|
21896
21753
|
}
|
|
21897
21754
|
}
|
|
21898
21755
|
if (!i.loose) {
|
|
21899
|
-
let p = l.tokens.filter((d) => d.type === "space"),
|
|
21900
|
-
i.loose =
|
|
21756
|
+
let p = l.tokens.filter((d) => d.type === "space"), c = p.length > 0 && p.some((d) => this.rules.other.anyLine.test(d.raw));
|
|
21757
|
+
i.loose = c;
|
|
21901
21758
|
}
|
|
21902
21759
|
}
|
|
21903
21760
|
if (i.loose)
|
|
@@ -22011,8 +21868,8 @@ ${c2}` : c2;
|
|
|
22011
21868
|
if (!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric))
|
|
22012
21869
|
return;
|
|
22013
21870
|
if (!(r[1] || r[3] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
22014
|
-
let s = [...r[0]].length - 1, a, o, l = s, p = 0,
|
|
22015
|
-
for (
|
|
21871
|
+
let s = [...r[0]].length - 1, a, o, l = s, p = 0, c = r[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
21872
|
+
for (c.lastIndex = 0, t = t.slice(-1 * e.length + s);(r = c.exec(t)) != null; ) {
|
|
22016
21873
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a)
|
|
22017
21874
|
continue;
|
|
22018
21875
|
if (o = [...a].length, r[3] || r[4]) {
|
|
@@ -22063,7 +21920,7 @@ ${c2}` : c2;
|
|
|
22063
21920
|
if (l -= o, l > 0)
|
|
22064
21921
|
continue;
|
|
22065
21922
|
o = Math.min(o, o + l);
|
|
22066
|
-
let
|
|
21923
|
+
let c = [...r[0]][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
|
|
22067
21924
|
return { type: "del", raw: d, text: h, tokens: this.lexer.inlineTokens(h) };
|
|
22068
21925
|
}
|
|
22069
21926
|
}
|
|
@@ -22292,9 +22149,9 @@ ${c2}` : c2;
|
|
|
22292
22149
|
}
|
|
22293
22150
|
let l = e;
|
|
22294
22151
|
if (this.options.extensions?.startInline) {
|
|
22295
|
-
let p = 1 / 0,
|
|
22152
|
+
let p = 1 / 0, c = e.slice(1), d;
|
|
22296
22153
|
this.options.extensions.startInline.forEach((h) => {
|
|
22297
|
-
d = h.call({ lexer: this },
|
|
22154
|
+
d = h.call({ lexer: this }, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
|
|
22298
22155
|
}), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
|
|
22299
22156
|
}
|
|
22300
22157
|
if (o = this.tokenizer.inlineText(l)) {
|
|
@@ -22691,8 +22548,8 @@ ${e}</tr>
|
|
|
22691
22548
|
continue;
|
|
22692
22549
|
let a = s, o = n.renderer[a], l = i[a];
|
|
22693
22550
|
i[a] = (...p) => {
|
|
22694
|
-
let
|
|
22695
|
-
return
|
|
22551
|
+
let c = o.apply(i, p);
|
|
22552
|
+
return c === false && (c = l.apply(i, p)), c || "";
|
|
22696
22553
|
};
|
|
22697
22554
|
}
|
|
22698
22555
|
r.renderer = i;
|
|
@@ -22706,8 +22563,8 @@ ${e}</tr>
|
|
|
22706
22563
|
continue;
|
|
22707
22564
|
let a = s, o = n.tokenizer[a], l = i[a];
|
|
22708
22565
|
i[a] = (...p) => {
|
|
22709
|
-
let
|
|
22710
|
-
return
|
|
22566
|
+
let c = o.apply(i, p);
|
|
22567
|
+
return c === false && (c = l.apply(i, p)), c;
|
|
22711
22568
|
};
|
|
22712
22569
|
}
|
|
22713
22570
|
r.tokenizer = i;
|
|
@@ -22726,16 +22583,16 @@ ${e}</tr>
|
|
|
22726
22583
|
let d = await o.call(i, p);
|
|
22727
22584
|
return l.call(i, d);
|
|
22728
22585
|
})();
|
|
22729
|
-
let
|
|
22730
|
-
return l.call(i,
|
|
22586
|
+
let c = o.call(i, p);
|
|
22587
|
+
return l.call(i, c);
|
|
22731
22588
|
} : i[a] = (...p) => {
|
|
22732
22589
|
if (this.defaults.async)
|
|
22733
22590
|
return (async () => {
|
|
22734
22591
|
let d = await o.apply(i, p);
|
|
22735
22592
|
return d === false && (d = await l.apply(i, p)), d;
|
|
22736
22593
|
})();
|
|
22737
|
-
let
|
|
22738
|
-
return
|
|
22594
|
+
let c = o.apply(i, p);
|
|
22595
|
+
return c === false && (c = l.apply(i, p)), c;
|
|
22739
22596
|
};
|
|
22740
22597
|
}
|
|
22741
22598
|
r.hooks = i;
|
|
@@ -22770,17 +22627,17 @@ ${e}</tr>
|
|
|
22770
22627
|
return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
22771
22628
|
if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async)
|
|
22772
22629
|
return (async () => {
|
|
22773
|
-
let o = s.hooks ? await s.hooks.preprocess(n) : n, p = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s),
|
|
22774
|
-
s.walkTokens && await Promise.all(this.walkTokens(
|
|
22775
|
-
let h = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(
|
|
22630
|
+
let o = s.hooks ? await s.hooks.preprocess(n) : n, p = await (s.hooks ? await s.hooks.provideLexer() : e ? x.lex : x.lexInline)(o, s), c = s.hooks ? await s.hooks.processAllTokens(p) : p;
|
|
22631
|
+
s.walkTokens && await Promise.all(this.walkTokens(c, s.walkTokens));
|
|
22632
|
+
let h = await (s.hooks ? await s.hooks.provideParser() : e ? b.parse : b.parseInline)(c, s);
|
|
22776
22633
|
return s.hooks ? await s.hooks.postprocess(h) : h;
|
|
22777
22634
|
})().catch(a);
|
|
22778
22635
|
try {
|
|
22779
22636
|
s.hooks && (n = s.hooks.preprocess(n));
|
|
22780
22637
|
let l = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
|
|
22781
22638
|
s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
|
|
22782
|
-
let
|
|
22783
|
-
return s.hooks && (
|
|
22639
|
+
let c = (s.hooks ? s.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s);
|
|
22640
|
+
return s.hooks && (c = s.hooks.postprocess(c)), c;
|
|
22784
22641
|
} catch (o) {
|
|
22785
22642
|
return a(o);
|
|
22786
22643
|
}
|
|
@@ -25514,7 +25371,7 @@ var init_zod_compat = __esm(() => {
|
|
|
25514
25371
|
|
|
25515
25372
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
25516
25373
|
var LATEST_PROTOCOL_VERSION = "2025-11-25", SUPPORTED_PROTOCOL_VERSIONS, RELATED_TASK_META_KEY = "io.modelcontextprotocol/related-task", JSONRPC_VERSION = "2.0", AssertObjectSchema, ProgressTokenSchema, CursorSchema, TaskCreationParamsSchema, TaskMetadataSchema, RelatedTaskMetadataSchema, RequestMetaSchema, BaseRequestParamsSchema, TaskAugmentedRequestParamsSchema, isTaskAugmentedRequestParams = (value) => TaskAugmentedRequestParamsSchema.safeParse(value).success, RequestSchema, NotificationsParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, isJSONRPCRequest = (value) => JSONRPCRequestSchema.safeParse(value).success, JSONRPCNotificationSchema, isJSONRPCNotification = (value) => JSONRPCNotificationSchema.safeParse(value).success, JSONRPCResultResponseSchema, isJSONRPCResultResponse = (value) => JSONRPCResultResponseSchema.safeParse(value).success, ErrorCode, JSONRPCErrorResponseSchema, isJSONRPCErrorResponse = (value) => JSONRPCErrorResponseSchema.safeParse(value).success, JSONRPCMessageSchema, JSONRPCResponseSchema, EmptyResultSchema, CancelledNotificationParamsSchema, CancelledNotificationSchema, IconSchema, IconsSchema, BaseMetadataSchema, ImplementationSchema, FormElicitationCapabilitySchema, ElicitationCapabilitySchema, ClientTasksCapabilitySchema, ServerTasksCapabilitySchema, ClientCapabilitiesSchema, InitializeRequestParamsSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, isInitializedNotification = (value) => InitializedNotificationSchema.safeParse(value).success, PingRequestSchema, ProgressSchema, ProgressNotificationParamsSchema, ProgressNotificationSchema, PaginatedRequestParamsSchema, PaginatedRequestSchema, PaginatedResultSchema, TaskStatusSchema2, TaskSchema, CreateTaskResultSchema, TaskStatusNotificationParamsSchema, TaskStatusNotificationSchema, GetTaskRequestSchema, GetTaskResultSchema, GetTaskPayloadRequestSchema, GetTaskPayloadResultSchema, ListTasksRequestSchema, ListTasksResultSchema, CancelTaskRequestSchema, CancelTaskResultSchema, ResourceContentsSchema, TextResourceContentsSchema, Base64Schema, BlobResourceContentsSchema, RoleSchema, AnnotationsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ResourceRequestParamsSchema, ReadResourceRequestParamsSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestParamsSchema, SubscribeRequestSchema, UnsubscribeRequestParamsSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationParamsSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestParamsSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, AudioContentSchema, ToolUseContentSchema, EmbeddedResourceSchema, ResourceLinkSchema, ContentBlockSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolAnnotationsSchema, ToolExecutionSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestParamsSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, ListChangedOptionsBaseSchema, LoggingLevelSchema, SetLevelRequestParamsSchema, SetLevelRequestSchema, LoggingMessageNotificationParamsSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, ToolChoiceSchema, ToolResultContentSchema, SamplingContentSchema, SamplingMessageContentBlockSchema, SamplingMessageSchema, CreateMessageRequestParamsSchema, CreateMessageRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, BooleanSchemaSchema, StringSchemaSchema, NumberSchemaSchema, UntitledSingleSelectEnumSchemaSchema, TitledSingleSelectEnumSchemaSchema, LegacyTitledEnumSchemaSchema, SingleSelectEnumSchemaSchema, UntitledMultiSelectEnumSchemaSchema, TitledMultiSelectEnumSchemaSchema, MultiSelectEnumSchemaSchema, EnumSchemaSchema, PrimitiveSchemaDefinitionSchema, ElicitRequestFormParamsSchema, ElicitRequestURLParamsSchema, ElicitRequestParamsSchema, ElicitRequestSchema, ElicitationCompleteNotificationParamsSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ResourceTemplateReferenceSchema, PromptReferenceSchema, CompleteRequestParamsSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError, UrlElicitationRequiredError;
|
|
25517
|
-
var
|
|
25374
|
+
var init_types4 = __esm(() => {
|
|
25518
25375
|
init_v4();
|
|
25519
25376
|
SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
25520
25377
|
AssertObjectSchema = custom((v2) => v2 !== null && (typeof v2 === "object" || typeof v2 === "function"));
|
|
@@ -27476,7 +27333,7 @@ function mergeCapabilities(base, additional) {
|
|
|
27476
27333
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
27477
27334
|
var init_protocol = __esm(() => {
|
|
27478
27335
|
init_zod_compat();
|
|
27479
|
-
|
|
27336
|
+
init_types4();
|
|
27480
27337
|
init_interfaces();
|
|
27481
27338
|
init_zod_json_schema_compat();
|
|
27482
27339
|
});
|
|
@@ -27875,7 +27732,7 @@ class ExperimentalClientTasks {
|
|
|
27875
27732
|
}
|
|
27876
27733
|
}
|
|
27877
27734
|
var init_client3 = __esm(() => {
|
|
27878
|
-
|
|
27735
|
+
init_types4();
|
|
27879
27736
|
});
|
|
27880
27737
|
|
|
27881
27738
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
@@ -27959,7 +27816,7 @@ function getSupportedElicitationModes(capabilities) {
|
|
|
27959
27816
|
var Client;
|
|
27960
27817
|
var init_client4 = __esm(() => {
|
|
27961
27818
|
init_protocol();
|
|
27962
|
-
|
|
27819
|
+
init_types4();
|
|
27963
27820
|
init_ajv_provider();
|
|
27964
27821
|
init_zod_compat();
|
|
27965
27822
|
init_client3();
|
|
@@ -29529,7 +29386,7 @@ async function registerClient(authorizationServerUrl, { metadata, clientMetadata
|
|
|
29529
29386
|
var UnauthorizedError, AUTHORIZATION_CODE_RESPONSE_TYPE = "code", AUTHORIZATION_CODE_CHALLENGE_METHOD = "S256";
|
|
29530
29387
|
var init_auth3 = __esm(() => {
|
|
29531
29388
|
init_index_node();
|
|
29532
|
-
|
|
29389
|
+
init_types4();
|
|
29533
29390
|
init_auth2();
|
|
29534
29391
|
init_auth2();
|
|
29535
29392
|
init_auth_utils();
|
|
@@ -29724,7 +29581,7 @@ var SseError;
|
|
|
29724
29581
|
var init_sse = __esm(() => {
|
|
29725
29582
|
init_dist5();
|
|
29726
29583
|
init_transport();
|
|
29727
|
-
|
|
29584
|
+
init_types4();
|
|
29728
29585
|
init_auth3();
|
|
29729
29586
|
SseError = class SseError extends Error {
|
|
29730
29587
|
constructor(code, message, event) {
|
|
@@ -29765,7 +29622,7 @@ function serializeMessage(message) {
|
|
|
29765
29622
|
`;
|
|
29766
29623
|
}
|
|
29767
29624
|
var init_stdio = __esm(() => {
|
|
29768
|
-
|
|
29625
|
+
init_types4();
|
|
29769
29626
|
});
|
|
29770
29627
|
|
|
29771
29628
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js
|
|
@@ -30300,7 +30157,7 @@ class StreamableHTTPClientTransport {
|
|
|
30300
30157
|
var DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS, StreamableHTTPError;
|
|
30301
30158
|
var init_streamableHttp = __esm(() => {
|
|
30302
30159
|
init_transport();
|
|
30303
|
-
|
|
30160
|
+
init_types4();
|
|
30304
30161
|
init_auth3();
|
|
30305
30162
|
init_stream();
|
|
30306
30163
|
DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS = {
|
|
@@ -31349,10 +31206,10 @@ function toolCallOf(msg) {
|
|
|
31349
31206
|
function action(a) {
|
|
31350
31207
|
return a;
|
|
31351
31208
|
}
|
|
31352
|
-
function isApplicable(a,
|
|
31353
|
-
if (!a.types.includes(
|
|
31209
|
+
function isApplicable(a, c) {
|
|
31210
|
+
if (!a.types.includes(c.msgType))
|
|
31354
31211
|
return false;
|
|
31355
|
-
return !a.applies || a.applies(
|
|
31212
|
+
return !a.applies || a.applies(c);
|
|
31356
31213
|
}
|
|
31357
31214
|
function useSelectedMessageBg() {
|
|
31358
31215
|
return import_react.default.useContext(MessageActionsSelectedContext) ? "messageActionsBackground" : undefined;
|
|
@@ -31370,8 +31227,8 @@ function useMessageActions(cursor, setCursor, navRef, caps) {
|
|
|
31370
31227
|
"messageActions:nextUser": () => navRef.current?.navigateNextUser(),
|
|
31371
31228
|
"messageActions:top": () => navRef.current?.navigateTop(),
|
|
31372
31229
|
"messageActions:bottom": () => navRef.current?.navigateBottom(),
|
|
31373
|
-
"messageActions:escape": () => setCursor((
|
|
31374
|
-
...
|
|
31230
|
+
"messageActions:escape": () => setCursor((c) => c?.expanded ? {
|
|
31231
|
+
...c,
|
|
31375
31232
|
expanded: false
|
|
31376
31233
|
} : null),
|
|
31377
31234
|
"messageActions:ctrlc": () => setCursor(null)
|
|
@@ -31630,12 +31487,12 @@ function toolResultText(r) {
|
|
|
31630
31487
|
const b2 = r.message.content[0];
|
|
31631
31488
|
if (b2?.type !== "tool_result")
|
|
31632
31489
|
return "";
|
|
31633
|
-
const
|
|
31634
|
-
if (typeof
|
|
31635
|
-
return
|
|
31636
|
-
if (!
|
|
31490
|
+
const c = b2.content;
|
|
31491
|
+
if (typeof c === "string")
|
|
31492
|
+
return c;
|
|
31493
|
+
if (!c)
|
|
31637
31494
|
return "";
|
|
31638
|
-
return
|
|
31495
|
+
return c.flatMap((x2) => x2.type === "text" ? [x2.text] : []).join(`
|
|
31639
31496
|
`);
|
|
31640
31497
|
}
|
|
31641
31498
|
var import_compiler_runtime, import_react, jsx_dev_runtime, NAVIGABLE_TYPES, str = (k2) => (i) => typeof i[k2] === "string" ? i[k2] : undefined, PRIMARY_INPUT, MESSAGE_ACTIONS, MessageActionsSelectedContext, InVirtualListContext;
|
|
@@ -31709,24 +31566,24 @@ var init_messageActions = __esm(() => {
|
|
|
31709
31566
|
key: "enter",
|
|
31710
31567
|
label: "edit",
|
|
31711
31568
|
types: ["user"],
|
|
31712
|
-
run: (m2,
|
|
31569
|
+
run: (m2, c) => void c.edit(m2)
|
|
31713
31570
|
}), action({
|
|
31714
31571
|
key: "c",
|
|
31715
31572
|
label: "copy",
|
|
31716
31573
|
types: NAVIGABLE_TYPES,
|
|
31717
|
-
run: (m2,
|
|
31574
|
+
run: (m2, c) => c.copy(copyTextOf(m2))
|
|
31718
31575
|
}), action({
|
|
31719
31576
|
key: "p",
|
|
31720
31577
|
label: (s) => `copy ${PRIMARY_INPUT[s.toolName].label}`,
|
|
31721
31578
|
types: ["grouped_tool_use", "assistant"],
|
|
31722
31579
|
applies: (s) => s.toolName != null && (s.toolName in PRIMARY_INPUT),
|
|
31723
|
-
run: (m2,
|
|
31580
|
+
run: (m2, c) => {
|
|
31724
31581
|
const tc = toolCallOf(m2);
|
|
31725
31582
|
if (!tc)
|
|
31726
31583
|
return;
|
|
31727
31584
|
const val = PRIMARY_INPUT[tc.name]?.extract(tc.input);
|
|
31728
31585
|
if (val)
|
|
31729
|
-
|
|
31586
|
+
c.copy(val);
|
|
31730
31587
|
}
|
|
31731
31588
|
})];
|
|
31732
31589
|
MessageActionsSelectedContext = import_react.default.createContext(false);
|
|
@@ -32318,7 +32175,7 @@ var init_ListMcpResourcesTool = __esm(() => {
|
|
|
32318
32175
|
const { server: targetServer } = input;
|
|
32319
32176
|
const clientsToProcess = targetServer ? mcpClients.filter((client) => client.name === targetServer) : mcpClients;
|
|
32320
32177
|
if (targetServer && clientsToProcess.length === 0) {
|
|
32321
|
-
throw new Error(`Server "${targetServer}" not found. Available servers: ${mcpClients.map((
|
|
32178
|
+
throw new Error(`Server "${targetServer}" not found. Available servers: ${mcpClients.map((c) => c.name).join(", ")}`);
|
|
32322
32179
|
}
|
|
32323
32180
|
const results = await Promise.all(clientsToProcess.map(async (client) => {
|
|
32324
32181
|
if (client.type !== "connected")
|
|
@@ -33828,15 +33685,15 @@ function hasMalformedTokens(command, parsed) {
|
|
|
33828
33685
|
let doubleCount = 0;
|
|
33829
33686
|
let singleCount = 0;
|
|
33830
33687
|
for (let i = 0;i < command.length; i++) {
|
|
33831
|
-
const
|
|
33832
|
-
if (
|
|
33688
|
+
const c = command[i];
|
|
33689
|
+
if (c === "\\" && !inSingle) {
|
|
33833
33690
|
i++;
|
|
33834
33691
|
continue;
|
|
33835
33692
|
}
|
|
33836
|
-
if (
|
|
33693
|
+
if (c === '"' && !inSingle) {
|
|
33837
33694
|
doubleCount++;
|
|
33838
33695
|
inDouble = !inDouble;
|
|
33839
|
-
} else if (
|
|
33696
|
+
} else if (c === "'" && !inDouble) {
|
|
33840
33697
|
singleCount++;
|
|
33841
33698
|
inSingle = !inSingle;
|
|
33842
33699
|
}
|
|
@@ -34477,7 +34334,7 @@ function classifyImageError(error) {
|
|
|
34477
34334
|
}
|
|
34478
34335
|
return ERROR_TYPE_UNKNOWN;
|
|
34479
34336
|
}
|
|
34480
|
-
function
|
|
34337
|
+
function hashString(str2) {
|
|
34481
34338
|
let hash = 5381;
|
|
34482
34339
|
for (let i = 0;i < str2.length; i++) {
|
|
34483
34340
|
hash = (hash << 5) + hash + str2.charCodeAt(i) | 0;
|
|
@@ -34637,7 +34494,7 @@ async function maybeResizeAndDownsampleImageBuffer(imageBuffer, originalSize, ex
|
|
|
34637
34494
|
logEvent("tengu_image_resize_failed", {
|
|
34638
34495
|
original_size_bytes: originalSize,
|
|
34639
34496
|
error_type: errorType,
|
|
34640
|
-
error_message_hash:
|
|
34497
|
+
error_message_hash: hashString(errorMsg)
|
|
34641
34498
|
});
|
|
34642
34499
|
const detected = detectImageFormatFromBuffer(imageBuffer);
|
|
34643
34500
|
const normalizedExt = detected.slice(6);
|
|
@@ -34716,7 +34573,7 @@ async function compressImageBuffer(imageBuffer, maxBytes = IMAGE_TARGET_RAW_SIZE
|
|
|
34716
34573
|
original_size_bytes: imageBuffer.length,
|
|
34717
34574
|
max_bytes: maxBytes,
|
|
34718
34575
|
error_type: errorType,
|
|
34719
|
-
error_message_hash:
|
|
34576
|
+
error_message_hash: hashString(errorMsg)
|
|
34720
34577
|
});
|
|
34721
34578
|
if (imageBuffer.length <= maxBytes) {
|
|
34722
34579
|
const detected = detectImageFormatFromBuffer(imageBuffer);
|
|
@@ -37401,7 +37258,7 @@ async function persistFileSnapshotIfRemote() {
|
|
|
37401
37258
|
uuid: randomUUID3(),
|
|
37402
37259
|
snapshotFiles
|
|
37403
37260
|
};
|
|
37404
|
-
const { recordTranscript } = await import("./chunk-
|
|
37261
|
+
const { recordTranscript } = await import("./chunk-1nt5wc40.js");
|
|
37405
37262
|
await recordTranscript([message]);
|
|
37406
37263
|
} catch (error) {
|
|
37407
37264
|
logError(error);
|
|
@@ -38461,7 +38318,7 @@ function getInstallationEnv() {
|
|
|
38461
38318
|
return;
|
|
38462
38319
|
}
|
|
38463
38320
|
function getClaudeCodeVersion() {
|
|
38464
|
-
return "1.0.3-fork.
|
|
38321
|
+
return "1.0.3-fork.e907883";
|
|
38465
38322
|
}
|
|
38466
38323
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
38467
38324
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -38992,7 +38849,7 @@ function appendCappedMessage(prev, item) {
|
|
|
38992
38849
|
return [...prev, item];
|
|
38993
38850
|
}
|
|
38994
38851
|
var TEAMMATE_MESSAGES_UI_CAP = 50;
|
|
38995
|
-
var
|
|
38852
|
+
var init_types5 = () => {};
|
|
38996
38853
|
|
|
38997
38854
|
// src/state/selectors.ts
|
|
38998
38855
|
function getViewedTeammateTask(appState) {
|
|
@@ -39024,7 +38881,7 @@ function getActiveAgentForInput(appState) {
|
|
|
39024
38881
|
return { type: "leader" };
|
|
39025
38882
|
}
|
|
39026
38883
|
var init_selectors = __esm(() => {
|
|
39027
|
-
|
|
38884
|
+
init_types5();
|
|
39028
38885
|
});
|
|
39029
38886
|
|
|
39030
38887
|
// src/services/diagnosticTracking.ts
|
|
@@ -39225,14 +39082,14 @@ var init_diagnosticTracking = __esm(() => {
|
|
|
39225
39082
|
});
|
|
39226
39083
|
|
|
39227
39084
|
// src/types/textInputTypes.ts
|
|
39228
|
-
function isValidImagePaste(
|
|
39229
|
-
return
|
|
39085
|
+
function isValidImagePaste(c) {
|
|
39086
|
+
return c.type === "image" && c.content.length > 0;
|
|
39230
39087
|
}
|
|
39231
39088
|
function getImagePasteIds(pastedContents) {
|
|
39232
39089
|
if (!pastedContents) {
|
|
39233
39090
|
return;
|
|
39234
39091
|
}
|
|
39235
|
-
const ids = Object.values(pastedContents).filter(isValidImagePaste).map((
|
|
39092
|
+
const ids = Object.values(pastedContents).filter(isValidImagePaste).map((c) => c.id);
|
|
39236
39093
|
return ids.length > 0 ? ids : undefined;
|
|
39237
39094
|
}
|
|
39238
39095
|
var init_textInputTypes = () => {};
|
|
@@ -49588,7 +49445,7 @@ var init_promptCategory = __esm(() => {
|
|
|
49588
49445
|
import { createHash as createHash4 } from "crypto";
|
|
49589
49446
|
import { promises as fs6 } from "fs";
|
|
49590
49447
|
import { dirname as dirname16, join as join24 } from "path";
|
|
49591
|
-
function
|
|
49448
|
+
function hashString2(str2) {
|
|
49592
49449
|
return createHash4("sha256").update(str2).digest("hex");
|
|
49593
49450
|
}
|
|
49594
49451
|
function clearDumpState(agentIdOrSessionId) {
|
|
@@ -49637,7 +49494,7 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
49637
49494
|
if (!state.initialized || fingerprint !== state.lastInitFingerprint) {
|
|
49638
49495
|
const { messages: _2, ...initData } = req;
|
|
49639
49496
|
const initDataStr = jsonStringify(initData);
|
|
49640
|
-
const initDataHash =
|
|
49497
|
+
const initDataHash = hashString2(initDataStr);
|
|
49641
49498
|
state.lastInitFingerprint = fingerprint;
|
|
49642
49499
|
if (!state.initialized) {
|
|
49643
49500
|
state.initialized = true;
|
|
@@ -49906,7 +49763,7 @@ function getUnconfiguredChannels(plugin) {
|
|
|
49906
49763
|
return unconfigured;
|
|
49907
49764
|
}
|
|
49908
49765
|
function loadChannelUserConfig(plugin, serverName) {
|
|
49909
|
-
const channel = plugin.manifest.channels?.find((
|
|
49766
|
+
const channel = plugin.manifest.channels?.find((c) => c.server === serverName);
|
|
49910
49767
|
if (!channel?.userConfig) {
|
|
49911
49768
|
return;
|
|
49912
49769
|
}
|
|
@@ -50179,14 +50036,14 @@ function commandBelongsToServer(command, serverName) {
|
|
|
50179
50036
|
return name.startsWith(`mcp__${normalized}__`) || name.startsWith(`${normalized}:`);
|
|
50180
50037
|
}
|
|
50181
50038
|
function filterMcpPromptsByServer(commands, serverName) {
|
|
50182
|
-
return commands.filter((
|
|
50039
|
+
return commands.filter((c) => commandBelongsToServer(c, serverName) && !(c.type === "prompt" && c.loadedFrom === "mcp"));
|
|
50183
50040
|
}
|
|
50184
50041
|
function excludeToolsByServer(tools, serverName) {
|
|
50185
50042
|
const prefix = `mcp__${normalizeNameForMCP(serverName)}__`;
|
|
50186
50043
|
return tools.filter((tool) => !tool.name?.startsWith(prefix));
|
|
50187
50044
|
}
|
|
50188
50045
|
function excludeCommandsByServer(commands, serverName) {
|
|
50189
|
-
return commands.filter((
|
|
50046
|
+
return commands.filter((c) => !commandBelongsToServer(c, serverName));
|
|
50190
50047
|
}
|
|
50191
50048
|
function excludeResourcesByServer(resources, serverName) {
|
|
50192
50049
|
const result = { ...resources };
|
|
@@ -50208,11 +50065,11 @@ function hashMcpConfig(config2) {
|
|
|
50208
50065
|
return createHash5("sha256").update(stable).digest("hex").slice(0, 16);
|
|
50209
50066
|
}
|
|
50210
50067
|
function excludeStalePluginClients(mcp, configs) {
|
|
50211
|
-
const stale = mcp.clients.filter((
|
|
50212
|
-
const fresh = configs[
|
|
50068
|
+
const stale = mcp.clients.filter((c) => {
|
|
50069
|
+
const fresh = configs[c.name];
|
|
50213
50070
|
if (!fresh)
|
|
50214
|
-
return
|
|
50215
|
-
return hashMcpConfig(
|
|
50071
|
+
return c.config.scope === "dynamic";
|
|
50072
|
+
return hashMcpConfig(c.config) !== hashMcpConfig(fresh);
|
|
50216
50073
|
});
|
|
50217
50074
|
if (stale.length === 0) {
|
|
50218
50075
|
return { ...mcp, stale: [] };
|
|
@@ -50223,9 +50080,9 @@ function excludeStalePluginClients(mcp, configs) {
|
|
|
50223
50080
|
commands = excludeCommandsByServer(commands, s.name);
|
|
50224
50081
|
resources = excludeResourcesByServer(resources, s.name);
|
|
50225
50082
|
}
|
|
50226
|
-
const staleNames = new Set(stale.map((
|
|
50083
|
+
const staleNames = new Set(stale.map((c) => c.name));
|
|
50227
50084
|
return {
|
|
50228
|
-
clients: mcp.clients.filter((
|
|
50085
|
+
clients: mcp.clients.filter((c) => !staleNames.has(c.name)),
|
|
50229
50086
|
tools,
|
|
50230
50087
|
commands,
|
|
50231
50088
|
resources,
|
|
@@ -50699,8 +50556,8 @@ function filterMcpServersByPolicy(configs) {
|
|
|
50699
50556
|
const allowed = {};
|
|
50700
50557
|
const blocked = [];
|
|
50701
50558
|
for (const [name, config2] of Object.entries(configs)) {
|
|
50702
|
-
const
|
|
50703
|
-
if (
|
|
50559
|
+
const c = config2;
|
|
50560
|
+
if (c.type === "sdk" || isMcpServerAllowedByPolicy(name, c)) {
|
|
50704
50561
|
allowed[name] = config2;
|
|
50705
50562
|
} else {
|
|
50706
50563
|
blocked.push(name);
|
|
@@ -51283,7 +51140,7 @@ function shouldAllowManagedMcpServersOnly() {
|
|
|
51283
51140
|
return getSettingsForSource("policySettings")?.allowManagedMcpServersOnly === true;
|
|
51284
51141
|
}
|
|
51285
51142
|
function areMcpConfigsAllowedWithEnterpriseMcpConfig(configs) {
|
|
51286
|
-
return Object.values(configs).every((
|
|
51143
|
+
return Object.values(configs).every((c) => c.type === "sdk" && c.name === "claude-vscode");
|
|
51287
51144
|
}
|
|
51288
51145
|
function isDefaultDisabledBuiltin(name) {
|
|
51289
51146
|
return DEFAULT_DISABLED_BUILTIN !== null && name === DEFAULT_DISABLED_BUILTIN;
|
|
@@ -51927,7 +51784,7 @@ function computeFingerprint(messageText, version) {
|
|
|
51927
51784
|
}
|
|
51928
51785
|
function computeFingerprintFromMessages(messages) {
|
|
51929
51786
|
const firstMessageText = extractFirstMessageText(messages);
|
|
51930
|
-
return computeFingerprint(firstMessageText, "1.0.3-fork.
|
|
51787
|
+
return computeFingerprint(firstMessageText, "1.0.3-fork.e907883");
|
|
51931
51788
|
}
|
|
51932
51789
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
51933
51790
|
var init_fingerprint = () => {};
|
|
@@ -51969,7 +51826,7 @@ async function sideQuery(opts) {
|
|
|
51969
51826
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
51970
51827
|
}
|
|
51971
51828
|
const messageText = extractFirstUserMessageText(messages);
|
|
51972
|
-
const fingerprint = computeFingerprint(messageText, "1.0.3-fork.
|
|
51829
|
+
const fingerprint = computeFingerprint(messageText, "1.0.3-fork.e907883");
|
|
51973
51830
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
51974
51831
|
const systemBlocks = [
|
|
51975
51832
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -52693,7 +52550,7 @@ async function* runAgent({
|
|
|
52693
52550
|
}
|
|
52694
52551
|
validSkills.push({ skillName, skill });
|
|
52695
52552
|
}
|
|
52696
|
-
const { formatSkillLoadingMetadata } = await import("./chunk-
|
|
52553
|
+
const { formatSkillLoadingMetadata } = await import("./chunk-9a6b7d6t.js");
|
|
52697
52554
|
const loaded = await Promise.all(validSkills.map(async ({ skillName, skill }) => ({
|
|
52698
52555
|
skillName,
|
|
52699
52556
|
skill,
|
|
@@ -53034,7 +52891,7 @@ var init_agentSummary = __esm(() => {
|
|
|
53034
52891
|
|
|
53035
52892
|
// src/utils/todo/types.ts
|
|
53036
52893
|
var TodoStatusSchema, TodoItemSchema, TodoListSchema;
|
|
53037
|
-
var
|
|
52894
|
+
var init_types6 = __esm(() => {
|
|
53038
52895
|
init_v4();
|
|
53039
52896
|
init_lazySchema();
|
|
53040
52897
|
TodoStatusSchema = lazySchema(() => exports_external.enum(["pending", "in_progress", "completed"]));
|
|
@@ -53240,7 +53097,7 @@ var init_TodoWriteTool = __esm(() => {
|
|
|
53240
53097
|
init_Tool();
|
|
53241
53098
|
init_lazySchema();
|
|
53242
53099
|
init_tasks();
|
|
53243
|
-
|
|
53100
|
+
init_types6();
|
|
53244
53101
|
init_constants2();
|
|
53245
53102
|
init_constants8();
|
|
53246
53103
|
init_prompt18();
|
|
@@ -53524,13 +53381,13 @@ function cleanupTerminalModes() {
|
|
|
53524
53381
|
}
|
|
53525
53382
|
function printResumeHint() {
|
|
53526
53383
|
if (resumeHintPrinted) {
|
|
53527
|
-
return;
|
|
53384
|
+
return true;
|
|
53528
53385
|
}
|
|
53529
53386
|
if (process.stdout.isTTY && getIsInteractive() && !isSessionPersistenceDisabled()) {
|
|
53530
53387
|
try {
|
|
53531
53388
|
const sessionId = getSessionId();
|
|
53532
53389
|
if (!sessionIdExists(sessionId)) {
|
|
53533
|
-
return;
|
|
53390
|
+
return false;
|
|
53534
53391
|
}
|
|
53535
53392
|
const customTitle = getCurrentSessionTitle(sessionId);
|
|
53536
53393
|
let resumeArg;
|
|
@@ -53545,6 +53402,24 @@ Resume this session with:
|
|
|
53545
53402
|
${getCliBin()} --resume ${resumeArg}
|
|
53546
53403
|
`));
|
|
53547
53404
|
resumeHintPrinted = true;
|
|
53405
|
+
exitBoundaryPrinted = true;
|
|
53406
|
+
return true;
|
|
53407
|
+
} catch {}
|
|
53408
|
+
}
|
|
53409
|
+
return false;
|
|
53410
|
+
}
|
|
53411
|
+
function printExitBoundary(options) {
|
|
53412
|
+
if (exitBoundaryPrinted) {
|
|
53413
|
+
return;
|
|
53414
|
+
}
|
|
53415
|
+
if (printResumeHint()) {
|
|
53416
|
+
return;
|
|
53417
|
+
}
|
|
53418
|
+
if (!options?.expectFinalMessage && process.stdout.isTTY) {
|
|
53419
|
+
try {
|
|
53420
|
+
writeSync(1, `
|
|
53421
|
+
`);
|
|
53422
|
+
exitBoundaryPrinted = true;
|
|
53548
53423
|
} catch {}
|
|
53549
53424
|
}
|
|
53550
53425
|
}
|
|
@@ -53584,17 +53459,17 @@ async function gracefulShutdown(exitCode = 0, reason = "other", options) {
|
|
|
53584
53459
|
return;
|
|
53585
53460
|
}
|
|
53586
53461
|
shutdownInProgress = true;
|
|
53587
|
-
const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-
|
|
53462
|
+
const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-9c6pqkhv.js");
|
|
53588
53463
|
const sessionEndTimeoutMs = getSessionEndHookTimeoutMs();
|
|
53589
53464
|
failsafeTimer = setTimeout((code) => {
|
|
53590
53465
|
cleanupTerminalModes();
|
|
53591
|
-
|
|
53466
|
+
printExitBoundary();
|
|
53592
53467
|
forceExit(code);
|
|
53593
53468
|
}, Math.max(5000, sessionEndTimeoutMs + 3500), exitCode);
|
|
53594
53469
|
failsafeTimer.unref();
|
|
53595
53470
|
process.exitCode = exitCode;
|
|
53596
53471
|
cleanupTerminalModes();
|
|
53597
|
-
|
|
53472
|
+
printExitBoundary({ expectFinalMessage: Boolean(options?.finalMessage) });
|
|
53598
53473
|
let cleanupTimeoutId;
|
|
53599
53474
|
try {
|
|
53600
53475
|
const cleanupPromise = (async () => {
|
|
@@ -53643,7 +53518,7 @@ async function gracefulShutdown(exitCode = 0, reason = "other", options) {
|
|
|
53643
53518
|
}
|
|
53644
53519
|
forceExit(exitCode);
|
|
53645
53520
|
}
|
|
53646
|
-
var resumeHintPrinted = false, setupGracefulShutdown, shutdownInProgress = false, failsafeTimer, orphanCheckInterval, pendingShutdown, CleanupTimeoutError;
|
|
53521
|
+
var resumeHintPrinted = false, exitBoundaryPrinted = false, setupGracefulShutdown, shutdownInProgress = false, failsafeTimer, orphanCheckInterval, pendingShutdown, CleanupTimeoutError;
|
|
53647
53522
|
var init_gracefulShutdown = __esm(() => {
|
|
53648
53523
|
init_source();
|
|
53649
53524
|
init_memoize();
|
|
@@ -54000,7 +53875,7 @@ var init_syncCache = __esm(() => {
|
|
|
54000
53875
|
|
|
54001
53876
|
// src/services/remoteManagedSettings/types.ts
|
|
54002
53877
|
var RemoteManagedSettingsResponseSchema;
|
|
54003
|
-
var
|
|
53878
|
+
var init_types7 = __esm(() => {
|
|
54004
53879
|
init_v4();
|
|
54005
53880
|
init_lazySchema();
|
|
54006
53881
|
RemoteManagedSettingsResponseSchema = lazySchema(() => exports_external.object({
|
|
@@ -54358,7 +54233,7 @@ var init_remoteManagedSettings = __esm(() => {
|
|
|
54358
54233
|
init_securityCheck();
|
|
54359
54234
|
init_syncCache();
|
|
54360
54235
|
init_syncCacheState();
|
|
54361
|
-
|
|
54236
|
+
init_types7();
|
|
54362
54237
|
POLLING_INTERVAL_MS = 60 * 60 * 1000;
|
|
54363
54238
|
});
|
|
54364
54239
|
|
|
@@ -54368,7 +54243,7 @@ async function performLogout({
|
|
|
54368
54243
|
}) {
|
|
54369
54244
|
const {
|
|
54370
54245
|
flushTelemetry
|
|
54371
|
-
} = await import("./chunk-
|
|
54246
|
+
} = await import("./chunk-6n13qf4a.js");
|
|
54372
54247
|
await flushTelemetry();
|
|
54373
54248
|
await removeApiKey();
|
|
54374
54249
|
const secureStorage = getSecureStorage();
|
|
@@ -54928,9 +54803,9 @@ async function assertMinVersion() {
|
|
|
54928
54803
|
}
|
|
54929
54804
|
try {
|
|
54930
54805
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
54931
|
-
if (versionConfig.minVersion && lt("1.0.3-fork.
|
|
54806
|
+
if (versionConfig.minVersion && lt("1.0.3-fork.e907883", versionConfig.minVersion)) {
|
|
54932
54807
|
console.error(`
|
|
54933
|
-
It looks like your version of Claude Code (${"1.0.3-fork.
|
|
54808
|
+
It looks like your version of Claude Code (${"1.0.3-fork.e907883"}) needs an update.
|
|
54934
54809
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
54935
54810
|
|
|
54936
54811
|
To update, please run:
|
|
@@ -55146,7 +55021,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
55146
55021
|
logError(new AutoUpdaterError("Another process is currently installing an update"));
|
|
55147
55022
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
55148
55023
|
pid: process.pid,
|
|
55149
|
-
currentVersion: "1.0.3-fork.
|
|
55024
|
+
currentVersion: "1.0.3-fork.e907883"
|
|
55150
55025
|
});
|
|
55151
55026
|
return "in_progress";
|
|
55152
55027
|
}
|
|
@@ -55155,7 +55030,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
55155
55030
|
if (!env.isRunningWithBun() && env.isNpmFromWindowsPath()) {
|
|
55156
55031
|
logError(new Error("Windows NPM detected in WSL environment"));
|
|
55157
55032
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
55158
|
-
currentVersion: "1.0.3-fork.
|
|
55033
|
+
currentVersion: "1.0.3-fork.e907883"
|
|
55159
55034
|
});
|
|
55160
55035
|
console.error(`
|
|
55161
55036
|
Error: Windows NPM detected in WSL
|
|
@@ -55469,7 +55344,7 @@ function ripGrepRaw(args, target, abortSignal, callback, singleThread = false) {
|
|
|
55469
55344
|
child.kill();
|
|
55470
55345
|
} else {
|
|
55471
55346
|
child.kill("SIGTERM");
|
|
55472
|
-
killTimeoutId = setTimeout((
|
|
55347
|
+
killTimeoutId = setTimeout((c) => c.kill("SIGKILL"), 5000, child);
|
|
55473
55348
|
}
|
|
55474
55349
|
}, timeout);
|
|
55475
55350
|
let settled = false;
|
|
@@ -56038,7 +55913,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
56038
55913
|
}
|
|
56039
55914
|
async function getDoctorDiagnostic() {
|
|
56040
55915
|
const installationType = await getCurrentInstallationType();
|
|
56041
|
-
const version = typeof MACRO !== "undefined" ? "1.0.3-fork.
|
|
55916
|
+
const version = typeof MACRO !== "undefined" ? "1.0.3-fork.e907883" : "unknown";
|
|
56042
55917
|
const installationPath = await getInstallationPath();
|
|
56043
55918
|
const invokedBinary = getInvokedBinary();
|
|
56044
55919
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -56329,7 +56204,7 @@ async function downloadAndVerifyBinary(binaryUrl, expectedChecksum, binaryPath,
|
|
|
56329
56204
|
};
|
|
56330
56205
|
const resetStallTimer = () => {
|
|
56331
56206
|
clearStallTimer();
|
|
56332
|
-
stallTimer = setTimeout((
|
|
56207
|
+
stallTimer = setTimeout((c) => c.abort(), getStallTimeoutMs(), controller);
|
|
56333
56208
|
};
|
|
56334
56209
|
try {
|
|
56335
56210
|
resetStallTimer();
|
|
@@ -56975,8 +56850,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
56975
56850
|
const maxVersion = await getMaxVersion();
|
|
56976
56851
|
if (maxVersion && gt(version, maxVersion)) {
|
|
56977
56852
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version} to ${maxVersion}`);
|
|
56978
|
-
if (gte("1.0.3-fork.
|
|
56979
|
-
logForDebugging(`Native installer: current version ${"1.0.3-fork.
|
|
56853
|
+
if (gte("1.0.3-fork.e907883", maxVersion)) {
|
|
56854
|
+
logForDebugging(`Native installer: current version ${"1.0.3-fork.e907883"} is already at or above maxVersion ${maxVersion}, skipping update`);
|
|
56980
56855
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
56981
56856
|
latency_ms: Date.now() - startTime,
|
|
56982
56857
|
max_version: maxVersion,
|
|
@@ -56987,7 +56862,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
56987
56862
|
version = maxVersion;
|
|
56988
56863
|
}
|
|
56989
56864
|
}
|
|
56990
|
-
if (!forceReinstall && version === "1.0.3-fork.
|
|
56865
|
+
if (!forceReinstall && version === "1.0.3-fork.e907883" && await versionIsAvailable(version) && await isPossibleClaudeBinary(executablePath)) {
|
|
56991
56866
|
logForDebugging(`Found ${version} at ${executablePath}, skipping install`);
|
|
56992
56867
|
logEvent("tengu_native_update_complete", {
|
|
56993
56868
|
latency_ms: Date.now() - startTime,
|
|
@@ -61704,7 +61579,7 @@ class HighlightSegmenter {
|
|
|
61704
61579
|
}
|
|
61705
61580
|
}
|
|
61706
61581
|
function reduceCodes(codes) {
|
|
61707
|
-
return reduceAnsiCodes(codes).filter((
|
|
61582
|
+
return reduceAnsiCodes(codes).filter((c) => c.code !== c.endCode);
|
|
61708
61583
|
}
|
|
61709
61584
|
var init_textHighlighting = __esm(() => {
|
|
61710
61585
|
init_build();
|
|
@@ -62092,29 +61967,29 @@ function hueToRgb(hue) {
|
|
|
62092
61967
|
const h = (hue % 360 + 360) % 360;
|
|
62093
61968
|
const s = 0.7;
|
|
62094
61969
|
const l = 0.6;
|
|
62095
|
-
const
|
|
62096
|
-
const x2 =
|
|
62097
|
-
const m2 = l -
|
|
61970
|
+
const c = (1 - Math.abs(2 * l - 1)) * s;
|
|
61971
|
+
const x2 = c * (1 - Math.abs(h / 60 % 2 - 1));
|
|
61972
|
+
const m2 = l - c / 2;
|
|
62098
61973
|
let r = 0;
|
|
62099
61974
|
let g2 = 0;
|
|
62100
61975
|
let b2 = 0;
|
|
62101
61976
|
if (h < 60) {
|
|
62102
|
-
r =
|
|
61977
|
+
r = c;
|
|
62103
61978
|
g2 = x2;
|
|
62104
61979
|
} else if (h < 120) {
|
|
62105
61980
|
r = x2;
|
|
62106
|
-
g2 =
|
|
61981
|
+
g2 = c;
|
|
62107
61982
|
} else if (h < 180) {
|
|
62108
|
-
g2 =
|
|
61983
|
+
g2 = c;
|
|
62109
61984
|
b2 = x2;
|
|
62110
61985
|
} else if (h < 240) {
|
|
62111
61986
|
g2 = x2;
|
|
62112
|
-
b2 =
|
|
61987
|
+
b2 = c;
|
|
62113
61988
|
} else if (h < 300) {
|
|
62114
61989
|
r = x2;
|
|
62115
|
-
b2 =
|
|
61990
|
+
b2 = c;
|
|
62116
61991
|
} else {
|
|
62117
|
-
r =
|
|
61992
|
+
r = c;
|
|
62118
61993
|
b2 = x2;
|
|
62119
61994
|
}
|
|
62120
61995
|
return {
|
|
@@ -63017,8 +62892,8 @@ function SelectInputOption(t0) {
|
|
|
63017
62892
|
}
|
|
63018
62893
|
return t38;
|
|
63019
62894
|
}
|
|
63020
|
-
function _temp3(
|
|
63021
|
-
return
|
|
62895
|
+
function _temp3(c) {
|
|
62896
|
+
return c.type === "image";
|
|
63022
62897
|
}
|
|
63023
62898
|
var import_compiler_runtime18, import_react16, jsx_dev_runtime22;
|
|
63024
62899
|
var init_select_input_option = __esm(() => {
|
|
@@ -64451,8 +64326,8 @@ function _temp33() {
|
|
|
64451
64326
|
flexDirection: "column"
|
|
64452
64327
|
};
|
|
64453
64328
|
}
|
|
64454
|
-
function _temp23(
|
|
64455
|
-
return
|
|
64329
|
+
function _temp23(c) {
|
|
64330
|
+
return c.type === "image";
|
|
64456
64331
|
}
|
|
64457
64332
|
function _temp10(c_0) {
|
|
64458
64333
|
return c_0.type === "image";
|
|
@@ -65332,7 +65207,7 @@ var init_TaskListV2 = __esm(() => {
|
|
|
65332
65207
|
init_stringWidth();
|
|
65333
65208
|
init_ink();
|
|
65334
65209
|
init_AppState();
|
|
65335
|
-
|
|
65210
|
+
init_types5();
|
|
65336
65211
|
init_agentColorManager();
|
|
65337
65212
|
init_agentSwarmsEnabled();
|
|
65338
65213
|
init_array();
|
|
@@ -66372,7 +66247,7 @@ function isBackgroundTask(task) {
|
|
|
66372
66247
|
}
|
|
66373
66248
|
return true;
|
|
66374
66249
|
}
|
|
66375
|
-
var
|
|
66250
|
+
var init_types8 = () => {};
|
|
66376
66251
|
|
|
66377
66252
|
// src/constants/turnCompletionVerbs.ts
|
|
66378
66253
|
var TURN_COMPLETION_VERBS;
|
|
@@ -66644,7 +66519,7 @@ var init_InProcessTeammateTask = __esm(() => {
|
|
|
66644
66519
|
init_messages2();
|
|
66645
66520
|
init_spawnInProcess();
|
|
66646
66521
|
init_framework();
|
|
66647
|
-
|
|
66522
|
+
init_types5();
|
|
66648
66523
|
InProcessTeammateTask = {
|
|
66649
66524
|
name: "InProcessTeammateTask",
|
|
66650
66525
|
type: "in_process_teammate",
|
|
@@ -67699,8 +67574,8 @@ var init_Spinner2 = __esm(() => {
|
|
|
67699
67574
|
init_Spinner();
|
|
67700
67575
|
init_SpinnerAnimationRow();
|
|
67701
67576
|
init_useSettings();
|
|
67702
|
-
|
|
67703
|
-
|
|
67577
|
+
init_types5();
|
|
67578
|
+
init_types8();
|
|
67704
67579
|
init_InProcessTeammateTask();
|
|
67705
67580
|
init_effort();
|
|
67706
67581
|
init_model();
|
|
@@ -70220,12 +70095,12 @@ async function computeDiffStatsForFile(originalFile, backupFileName) {
|
|
|
70220
70095
|
}
|
|
70221
70096
|
filesChanged.push(originalFile);
|
|
70222
70097
|
const changes = diffLines(originalContent ?? "", backupContent ?? "");
|
|
70223
|
-
changes.forEach((
|
|
70224
|
-
if (
|
|
70225
|
-
insertions +=
|
|
70098
|
+
changes.forEach((c) => {
|
|
70099
|
+
if (c.added) {
|
|
70100
|
+
insertions += c.count || 0;
|
|
70226
70101
|
}
|
|
70227
|
-
if (
|
|
70228
|
-
deletions +=
|
|
70102
|
+
if (c.removed) {
|
|
70103
|
+
deletions += c.count || 0;
|
|
70229
70104
|
}
|
|
70230
70105
|
});
|
|
70231
70106
|
} catch (error) {
|
|
@@ -74582,7 +74457,7 @@ var init_extra_usage = __esm(() => {
|
|
|
74582
74457
|
name: "extra-usage",
|
|
74583
74458
|
description: "Configure extra usage to keep working when limits are hit",
|
|
74584
74459
|
isEnabled: () => isExtraUsageAllowed() && !getIsNonInteractiveSession(),
|
|
74585
|
-
load: () => import("./chunk-
|
|
74460
|
+
load: () => import("./chunk-hqrqsmzy.js")
|
|
74586
74461
|
};
|
|
74587
74462
|
extraUsageNonInteractive = {
|
|
74588
74463
|
type: "local",
|
|
@@ -74593,7 +74468,7 @@ var init_extra_usage = __esm(() => {
|
|
|
74593
74468
|
get isHidden() {
|
|
74594
74469
|
return !getIsNonInteractiveSession();
|
|
74595
74470
|
},
|
|
74596
|
-
load: () => import("./chunk-
|
|
74471
|
+
load: () => import("./chunk-0r42cjt0.js")
|
|
74597
74472
|
};
|
|
74598
74473
|
});
|
|
74599
74474
|
|
|
@@ -81663,7 +81538,7 @@ function CollapsedReadSearchContent({
|
|
|
81663
81538
|
"cherry-picked": "cherry-picked"
|
|
81664
81539
|
};
|
|
81665
81540
|
for (const kind of ["committed", "amended", "cherry-picked"]) {
|
|
81666
|
-
const shas = message.commits.filter((
|
|
81541
|
+
const shas = message.commits.filter((c) => c.kind === kind).map((c_0) => c_0.sha);
|
|
81667
81542
|
if (shas.length) {
|
|
81668
81543
|
pushPart(kind, byKind[kind], /* @__PURE__ */ jsx_dev_runtime75.jsxDEV(ThemedText, {
|
|
81669
81544
|
bold: true,
|
|
@@ -83389,7 +83264,7 @@ var init_SystemTextMessage = __esm(() => {
|
|
|
83389
83264
|
init_ThemedText();
|
|
83390
83265
|
init_CtrlOToExpand();
|
|
83391
83266
|
init_AppState();
|
|
83392
|
-
|
|
83267
|
+
init_types8();
|
|
83393
83268
|
init_pillLabel();
|
|
83394
83269
|
init_messageActions();
|
|
83395
83270
|
import_compiler_runtime69 = __toESM(require_compiler_runtime(), 1);
|
|
@@ -84629,7 +84504,7 @@ function renderToolUseMessage3({
|
|
|
84629
84504
|
if (!skill) {
|
|
84630
84505
|
return null;
|
|
84631
84506
|
}
|
|
84632
|
-
const command = commands?.find((
|
|
84507
|
+
const command = commands?.find((c) => c.name === skill);
|
|
84633
84508
|
const displayName = command?.loadedFrom === "commands_DEPRECATED" ? `/${skill}` : skill;
|
|
84634
84509
|
return displayName;
|
|
84635
84510
|
}
|
|
@@ -84809,7 +84684,7 @@ async function executeForkedSkill(command, commandName, args, context, canUseToo
|
|
|
84809
84684
|
const normalizedNew = normalizeMessages([message]);
|
|
84810
84685
|
for (const m2 of normalizedNew) {
|
|
84811
84686
|
const contentArray = m2.message?.content;
|
|
84812
|
-
const hasToolContent = Array.isArray(contentArray) && contentArray.some((
|
|
84687
|
+
const hasToolContent = Array.isArray(contentArray) && contentArray.some((c) => c.type === "tool_use" || c.type === "tool_result");
|
|
84813
84688
|
if (hasToolContent) {
|
|
84814
84689
|
onProgress({
|
|
84815
84690
|
toolUseID: `skill_${parentMessage.message.id}`,
|
|
@@ -85063,7 +84938,7 @@ var init_SkillTool = __esm(() => {
|
|
|
85063
84938
|
if (command?.type === "prompt" && command.context === "fork") {
|
|
85064
84939
|
return executeForkedSkill(command, commandName, args, context, canUseTool, parentMessage, onProgress);
|
|
85065
84940
|
}
|
|
85066
|
-
const { processPromptSlashCommand } = await import("./chunk-
|
|
84941
|
+
const { processPromptSlashCommand } = await import("./chunk-9a6b7d6t.js");
|
|
85067
84942
|
const processedCommand = await processPromptSlashCommand(commandName, args || "", commands, context);
|
|
85068
84943
|
if (!processedCommand.shouldQuery) {
|
|
85069
84944
|
throw new Error("Command processing failed");
|
|
@@ -90408,7 +90283,7 @@ var init_semanticBoolean = __esm(() => {
|
|
|
90408
90283
|
|
|
90409
90284
|
// src/tools/FileEditTool/types.ts
|
|
90410
90285
|
var inputSchema5, hunkSchema, gitDiffSchema, outputSchema5;
|
|
90411
|
-
var
|
|
90286
|
+
var init_types9 = __esm(() => {
|
|
90412
90287
|
init_v4();
|
|
90413
90288
|
init_lazySchema();
|
|
90414
90289
|
init_semanticBoolean();
|
|
@@ -90676,7 +90551,7 @@ function detectColorMode(theme) {
|
|
|
90676
90551
|
return ct === "truecolor" || ct === "24bit" ? "truecolor" : "color256";
|
|
90677
90552
|
}
|
|
90678
90553
|
function ansi256FromRgb(r, g2, b2) {
|
|
90679
|
-
const q2 = (
|
|
90554
|
+
const q2 = (c) => c < 48 ? 0 : c < 115 ? 1 : c < 155 ? 2 : c < 195 ? 3 : c < 235 ? 4 : 5;
|
|
90680
90555
|
const qr = q2(r);
|
|
90681
90556
|
const qg = q2(g2);
|
|
90682
90557
|
const qb = q2(b2);
|
|
@@ -90696,22 +90571,22 @@ function ansi256FromRgb(r, g2, b2) {
|
|
|
90696
90571
|
const dGrey = (r - greyRgb) ** 2 + (g2 - greyRgb) ** 2 + (b2 - greyRgb) ** 2;
|
|
90697
90572
|
return dGrey < dCube ? greyIdx : cubeIdx;
|
|
90698
90573
|
}
|
|
90699
|
-
function colorToEscape(
|
|
90700
|
-
if (
|
|
90701
|
-
const idx =
|
|
90574
|
+
function colorToEscape(c, fg, mode) {
|
|
90575
|
+
if (c.a === 0) {
|
|
90576
|
+
const idx = c.r;
|
|
90702
90577
|
if (idx < 8)
|
|
90703
90578
|
return `\x1B[${(fg ? 30 : 40) + idx}m`;
|
|
90704
90579
|
if (idx < 16)
|
|
90705
90580
|
return `\x1B[${(fg ? 90 : 100) + (idx - 8)}m`;
|
|
90706
90581
|
return `\x1B[${fg ? 38 : 48};5;${idx}m`;
|
|
90707
90582
|
}
|
|
90708
|
-
if (
|
|
90583
|
+
if (c.a === 1)
|
|
90709
90584
|
return fg ? "\x1B[39m" : "\x1B[49m";
|
|
90710
90585
|
const codeType = fg ? 38 : 48;
|
|
90711
90586
|
if (mode === "truecolor") {
|
|
90712
|
-
return `\x1B[${codeType};2;${
|
|
90587
|
+
return `\x1B[${codeType};2;${c.r};${c.g};${c.b}m`;
|
|
90713
90588
|
}
|
|
90714
|
-
return `\x1B[${codeType};5;${ansi256FromRgb(
|
|
90589
|
+
return `\x1B[${codeType};5;${ansi256FromRgb(c.r, c.g, c.b)}m`;
|
|
90715
90590
|
}
|
|
90716
90591
|
function asTerminalEscaped(blocks, mode, skipBackground, dim) {
|
|
90717
90592
|
let out = dim ? RESET + DIM : RESET;
|
|
@@ -93070,7 +92945,7 @@ var init_FileEditTool = __esm(() => {
|
|
|
93070
92945
|
init_constants6();
|
|
93071
92946
|
init_constants5();
|
|
93072
92947
|
init_prompt19();
|
|
93073
|
-
|
|
92948
|
+
init_types9();
|
|
93074
92949
|
init_UI3();
|
|
93075
92950
|
init_utils();
|
|
93076
92951
|
MAX_EDIT_FILE_SIZE = 1024 * 1024 * 1024;
|
|
@@ -93924,7 +93799,7 @@ var init_FileWriteTool = __esm(() => {
|
|
|
93924
93799
|
init_filesystem();
|
|
93925
93800
|
init_shellRuleMatching();
|
|
93926
93801
|
init_constants5();
|
|
93927
|
-
|
|
93802
|
+
init_types9();
|
|
93928
93803
|
init_prompt6();
|
|
93929
93804
|
init_UI4();
|
|
93930
93805
|
inputSchema6 = lazySchema(() => exports_external.strictObject({
|
|
@@ -96974,7 +96849,7 @@ async function readNotebook(notebookPath, cellId) {
|
|
|
96974
96849
|
const notebook = jsonParse(content);
|
|
96975
96850
|
const language = notebook.metadata.language_info?.name ?? "python";
|
|
96976
96851
|
if (cellId) {
|
|
96977
|
-
const cell = notebook.cells.find((
|
|
96852
|
+
const cell = notebook.cells.find((c) => c.id === cellId);
|
|
96978
96853
|
if (!cell) {
|
|
96979
96854
|
throw new Error(`Cell with ID "${cellId}" not found in notebook`);
|
|
96980
96855
|
}
|
|
@@ -98092,14 +97967,14 @@ function collectCandidatesByMessage(messages) {
|
|
|
98092
97967
|
return groups;
|
|
98093
97968
|
}
|
|
98094
97969
|
function partitionByPriorDecision(candidates, state) {
|
|
98095
|
-
return candidates.reduce((acc,
|
|
98096
|
-
const replacement = state.replacements.get(
|
|
97970
|
+
return candidates.reduce((acc, c) => {
|
|
97971
|
+
const replacement = state.replacements.get(c.toolUseId);
|
|
98097
97972
|
if (replacement !== undefined) {
|
|
98098
|
-
acc.mustReapply.push({ ...
|
|
98099
|
-
} else if (state.seenIds.has(
|
|
98100
|
-
acc.frozen.push(
|
|
97973
|
+
acc.mustReapply.push({ ...c, replacement });
|
|
97974
|
+
} else if (state.seenIds.has(c.toolUseId)) {
|
|
97975
|
+
acc.frozen.push(c);
|
|
98101
97976
|
} else {
|
|
98102
|
-
acc.fresh.push(
|
|
97977
|
+
acc.fresh.push(c);
|
|
98103
97978
|
}
|
|
98104
97979
|
return acc;
|
|
98105
97980
|
}, { mustReapply: [], frozen: [], fresh: [] });
|
|
@@ -98107,12 +97982,12 @@ function partitionByPriorDecision(candidates, state) {
|
|
|
98107
97982
|
function selectFreshToReplace(fresh, frozenSize, limit) {
|
|
98108
97983
|
const sorted = [...fresh].sort((a, b2) => b2.size - a.size);
|
|
98109
97984
|
const selected = [];
|
|
98110
|
-
let remaining = frozenSize + fresh.reduce((sum,
|
|
98111
|
-
for (const
|
|
97985
|
+
let remaining = frozenSize + fresh.reduce((sum, c) => sum + c.size, 0);
|
|
97986
|
+
for (const c of sorted) {
|
|
98112
97987
|
if (remaining <= limit)
|
|
98113
97988
|
break;
|
|
98114
|
-
selected.push(
|
|
98115
|
-
remaining -=
|
|
97989
|
+
selected.push(c);
|
|
97990
|
+
remaining -= c.size;
|
|
98116
97991
|
}
|
|
98117
97992
|
return selected;
|
|
98118
97993
|
}
|
|
@@ -98159,20 +98034,20 @@ async function enforceToolResultBudget(messages, state, skipToolNames = new Set)
|
|
|
98159
98034
|
let messagesOverBudget = 0;
|
|
98160
98035
|
for (const candidates of candidatesByMessage) {
|
|
98161
98036
|
const { mustReapply, frozen, fresh } = partitionByPriorDecision(candidates, state);
|
|
98162
|
-
mustReapply.forEach((
|
|
98037
|
+
mustReapply.forEach((c) => replacementMap.set(c.toolUseId, c.replacement));
|
|
98163
98038
|
reappliedCount += mustReapply.length;
|
|
98164
98039
|
if (fresh.length === 0) {
|
|
98165
|
-
candidates.forEach((
|
|
98040
|
+
candidates.forEach((c) => state.seenIds.add(c.toolUseId));
|
|
98166
98041
|
continue;
|
|
98167
98042
|
}
|
|
98168
|
-
const skipped = fresh.filter((
|
|
98169
|
-
skipped.forEach((
|
|
98170
|
-
const eligible = fresh.filter((
|
|
98171
|
-
const frozenSize = frozen.reduce((sum,
|
|
98172
|
-
const freshSize = eligible.reduce((sum,
|
|
98043
|
+
const skipped = fresh.filter((c) => shouldSkip(c.toolUseId));
|
|
98044
|
+
skipped.forEach((c) => state.seenIds.add(c.toolUseId));
|
|
98045
|
+
const eligible = fresh.filter((c) => !shouldSkip(c.toolUseId));
|
|
98046
|
+
const frozenSize = frozen.reduce((sum, c) => sum + c.size, 0);
|
|
98047
|
+
const freshSize = eligible.reduce((sum, c) => sum + c.size, 0);
|
|
98173
98048
|
const selected = frozenSize + freshSize > limit ? selectFreshToReplace(eligible, frozenSize, limit) : [];
|
|
98174
|
-
const selectedIds = new Set(selected.map((
|
|
98175
|
-
candidates.filter((
|
|
98049
|
+
const selectedIds = new Set(selected.map((c) => c.toolUseId));
|
|
98050
|
+
candidates.filter((c) => !selectedIds.has(c.toolUseId)).forEach((c) => state.seenIds.add(c.toolUseId));
|
|
98176
98051
|
if (selected.length === 0)
|
|
98177
98052
|
continue;
|
|
98178
98053
|
messagesOverBudget++;
|
|
@@ -98181,7 +98056,7 @@ async function enforceToolResultBudget(messages, state, skipToolNames = new Set)
|
|
|
98181
98056
|
if (replacementMap.size === 0 && toPersist.length === 0) {
|
|
98182
98057
|
return { messages, newlyReplaced: [] };
|
|
98183
98058
|
}
|
|
98184
|
-
const freshReplacements = await Promise.all(toPersist.map(async (
|
|
98059
|
+
const freshReplacements = await Promise.all(toPersist.map(async (c) => [c, await buildReplacement(c)]));
|
|
98185
98060
|
const newlyReplaced = [];
|
|
98186
98061
|
let replacedSize = 0;
|
|
98187
98062
|
for (const [candidate, replacement] of freshReplacements) {
|
|
@@ -98231,7 +98106,7 @@ async function applyToolResultBudget(messages, state, writeToTranscript, skipToo
|
|
|
98231
98106
|
}
|
|
98232
98107
|
function reconstructContentReplacementState(messages, records, inheritedReplacements) {
|
|
98233
98108
|
const state = createContentReplacementState();
|
|
98234
|
-
const candidateIds = new Set(collectCandidatesByMessage(messages).flat().map((
|
|
98109
|
+
const candidateIds = new Set(collectCandidatesByMessage(messages).flat().map((c) => c.toolUseId));
|
|
98235
98110
|
for (const id of candidateIds) {
|
|
98236
98111
|
state.seenIds.add(id);
|
|
98237
98112
|
}
|
|
@@ -98965,7 +98840,7 @@ async function listCandidates(projectDir, doStat, projectPath) {
|
|
|
98965
98840
|
return null;
|
|
98966
98841
|
}
|
|
98967
98842
|
}));
|
|
98968
|
-
return results.filter((
|
|
98843
|
+
return results.filter((c) => c !== null);
|
|
98969
98844
|
}
|
|
98970
98845
|
var init_listSessionsImpl = __esm(() => {
|
|
98971
98846
|
init_getWorktreePathsPortable();
|
|
@@ -99031,7 +98906,7 @@ async function rollbackConsolidationLock(priorMtime) {
|
|
|
99031
98906
|
async function listSessionsTouchedSince(sinceMs) {
|
|
99032
98907
|
const dir = getProjectDir(getOriginalCwd());
|
|
99033
98908
|
const candidates = await listCandidates(dir, true);
|
|
99034
|
-
return candidates.filter((
|
|
98909
|
+
return candidates.filter((c) => c.mtime > sinceMs).map((c) => c.sessionId);
|
|
99035
98910
|
}
|
|
99036
98911
|
var LOCK_FILE = ".consolidate-lock", HOLDER_STALE_MS;
|
|
99037
98912
|
var init_consolidationLock = __esm(() => {
|
|
@@ -99992,9 +99867,9 @@ function processProgressMessages(messages, tools, isAgentRunning) {
|
|
|
99992
99867
|
const toolUseByID = new Map;
|
|
99993
99868
|
for (const msg of agentMessages) {
|
|
99994
99869
|
if (msg.data.message.type === "assistant") {
|
|
99995
|
-
for (const
|
|
99996
|
-
if (
|
|
99997
|
-
toolUseByID.set(
|
|
99870
|
+
for (const c of msg.data.message.message.content) {
|
|
99871
|
+
if (c.type === "tool_use") {
|
|
99872
|
+
toolUseByID.set(c.id, c);
|
|
99998
99873
|
}
|
|
99999
99874
|
}
|
|
100000
99875
|
}
|
|
@@ -100775,9 +100650,9 @@ function extractLastToolInfo(progressMessages, tools) {
|
|
|
100775
100650
|
continue;
|
|
100776
100651
|
}
|
|
100777
100652
|
if (pm.data.message.type === "assistant") {
|
|
100778
|
-
for (const
|
|
100779
|
-
if (
|
|
100780
|
-
toolUseByID.set(
|
|
100653
|
+
for (const c of pm.data.message.message.content) {
|
|
100654
|
+
if (c.type === "tool_use") {
|
|
100655
|
+
toolUseByID.set(c.id, c);
|
|
100781
100656
|
}
|
|
100782
100657
|
}
|
|
100783
100658
|
}
|
|
@@ -100810,10 +100685,10 @@ function extractLastToolInfo(progressMessages, tools) {
|
|
|
100810
100685
|
return false;
|
|
100811
100686
|
}
|
|
100812
100687
|
const message = msg.data.message;
|
|
100813
|
-
return message.type === "user" && message.message.content.some((
|
|
100688
|
+
return message.type === "user" && message.message.content.some((c) => c.type === "tool_result");
|
|
100814
100689
|
});
|
|
100815
100690
|
if (lastToolResult?.data.message.type === "user") {
|
|
100816
|
-
const toolResultBlock = lastToolResult.data.message.message.content.find((
|
|
100691
|
+
const toolResultBlock = lastToolResult.data.message.message.content.find((c) => c.type === "tool_result");
|
|
100817
100692
|
if (toolResultBlock?.type === "tool_result") {
|
|
100818
100693
|
const toolUseBlock = toolUseByID.get(toolResultBlock.tool_use_id);
|
|
100819
100694
|
if (toolUseBlock) {
|
|
@@ -102010,7 +101885,7 @@ function handlePlanApprovalResponse(taskId, _response, setAppState) {
|
|
|
102010
101885
|
setAwaitingPlanApproval(taskId, setAppState, false);
|
|
102011
101886
|
}
|
|
102012
101887
|
var init_inProcessTeammateHelpers = __esm(() => {
|
|
102013
|
-
|
|
101888
|
+
init_types5();
|
|
102014
101889
|
init_framework();
|
|
102015
101890
|
init_teammateMailbox();
|
|
102016
101891
|
});
|
|
@@ -104166,7 +104041,7 @@ var init_UI15 = __esm(() => {
|
|
|
104166
104041
|
// src/tools/ReadMcpResourceTool/ReadMcpResourceTool.ts
|
|
104167
104042
|
var inputSchema20, outputSchema17, ReadMcpResourceTool;
|
|
104168
104043
|
var init_ReadMcpResourceTool = __esm(() => {
|
|
104169
|
-
|
|
104044
|
+
init_types4();
|
|
104170
104045
|
init_v4();
|
|
104171
104046
|
init_client5();
|
|
104172
104047
|
init_Tool();
|
|
@@ -104218,7 +104093,7 @@ var init_ReadMcpResourceTool = __esm(() => {
|
|
|
104218
104093
|
const { server: serverName, uri } = input;
|
|
104219
104094
|
const client = mcpClients.find((client2) => client2.name === serverName);
|
|
104220
104095
|
if (!client) {
|
|
104221
|
-
throw new Error(`Server "${serverName}" not found. Available servers: ${mcpClients.map((
|
|
104096
|
+
throw new Error(`Server "${serverName}" not found. Available servers: ${mcpClients.map((c) => c.name).join(", ")}`);
|
|
104222
104097
|
}
|
|
104223
104098
|
if (client.type !== "connected") {
|
|
104224
104099
|
throw new Error(`Server "${serverName}" is not connected`);
|
|
@@ -104231,27 +104106,27 @@ var init_ReadMcpResourceTool = __esm(() => {
|
|
|
104231
104106
|
method: "resources/read",
|
|
104232
104107
|
params: { uri }
|
|
104233
104108
|
}, ReadResourceResultSchema);
|
|
104234
|
-
const contents = await Promise.all(result.contents.map(async (
|
|
104235
|
-
if ("text" in
|
|
104236
|
-
return { uri:
|
|
104109
|
+
const contents = await Promise.all(result.contents.map(async (c, i) => {
|
|
104110
|
+
if ("text" in c) {
|
|
104111
|
+
return { uri: c.uri, mimeType: c.mimeType, text: c.text };
|
|
104237
104112
|
}
|
|
104238
|
-
if (!("blob" in
|
|
104239
|
-
return { uri:
|
|
104113
|
+
if (!("blob" in c) || typeof c.blob !== "string") {
|
|
104114
|
+
return { uri: c.uri, mimeType: c.mimeType };
|
|
104240
104115
|
}
|
|
104241
104116
|
const persistId = `mcp-resource-${Date.now()}-${i}-${Math.random().toString(36).slice(2, 8)}`;
|
|
104242
|
-
const persisted = await persistBinaryContent(Buffer.from(
|
|
104117
|
+
const persisted = await persistBinaryContent(Buffer.from(c.blob, "base64"), c.mimeType, persistId);
|
|
104243
104118
|
if ("error" in persisted) {
|
|
104244
104119
|
return {
|
|
104245
|
-
uri:
|
|
104246
|
-
mimeType:
|
|
104120
|
+
uri: c.uri,
|
|
104121
|
+
mimeType: c.mimeType,
|
|
104247
104122
|
text: `Binary content could not be saved to disk: ${persisted.error}`
|
|
104248
104123
|
};
|
|
104249
104124
|
}
|
|
104250
104125
|
return {
|
|
104251
|
-
uri:
|
|
104252
|
-
mimeType:
|
|
104126
|
+
uri: c.uri,
|
|
104127
|
+
mimeType: c.mimeType,
|
|
104253
104128
|
blobSavedTo: persisted.filepath,
|
|
104254
|
-
text: getBinaryBlobSavedMessage(persisted.filepath,
|
|
104129
|
+
text: getBinaryBlobSavedMessage(persisted.filepath, c.mimeType, persisted.size, `[Resource from ${serverName} at ${c.uri}] `)
|
|
104255
104130
|
};
|
|
104256
104131
|
}));
|
|
104257
104132
|
return {
|
|
@@ -104461,7 +104336,7 @@ var init_ToolSearchTool = __esm(() => {
|
|
|
104461
104336
|
maybeInvalidateCache(deferredTools);
|
|
104462
104337
|
function getPendingServerNames() {
|
|
104463
104338
|
const appState = getAppState();
|
|
104464
|
-
const pending = appState.mcp.clients.filter((
|
|
104339
|
+
const pending = appState.mcp.clients.filter((c) => c.type === "pending");
|
|
104465
104340
|
return pending.length > 0 ? pending.map((s) => s.name) : undefined;
|
|
104466
104341
|
}
|
|
104467
104342
|
function logSearchOutcome(matches2, queryType) {
|
|
@@ -108211,32 +108086,32 @@ function maskBracesInQuotedContexts(cmd) {
|
|
|
108211
108086
|
let inDouble = false;
|
|
108212
108087
|
let i = 0;
|
|
108213
108088
|
while (i < cmd.length) {
|
|
108214
|
-
const
|
|
108089
|
+
const c = cmd[i];
|
|
108215
108090
|
if (inSingle) {
|
|
108216
|
-
if (
|
|
108091
|
+
if (c === "'")
|
|
108217
108092
|
inSingle = false;
|
|
108218
|
-
out.push(
|
|
108093
|
+
out.push(c === "{" ? " " : c);
|
|
108219
108094
|
i++;
|
|
108220
108095
|
} else if (inDouble) {
|
|
108221
|
-
if (
|
|
108222
|
-
out.push(
|
|
108096
|
+
if (c === "\\" && (cmd[i + 1] === '"' || cmd[i + 1] === "\\")) {
|
|
108097
|
+
out.push(c, cmd[i + 1]);
|
|
108223
108098
|
i += 2;
|
|
108224
108099
|
} else {
|
|
108225
|
-
if (
|
|
108100
|
+
if (c === '"')
|
|
108226
108101
|
inDouble = false;
|
|
108227
|
-
out.push(
|
|
108102
|
+
out.push(c === "{" ? " " : c);
|
|
108228
108103
|
i++;
|
|
108229
108104
|
}
|
|
108230
108105
|
} else {
|
|
108231
|
-
if (
|
|
108232
|
-
out.push(
|
|
108106
|
+
if (c === "\\" && i + 1 < cmd.length) {
|
|
108107
|
+
out.push(c, cmd[i + 1]);
|
|
108233
108108
|
i += 2;
|
|
108234
108109
|
} else {
|
|
108235
|
-
if (
|
|
108110
|
+
if (c === "'")
|
|
108236
108111
|
inSingle = true;
|
|
108237
|
-
else if (
|
|
108112
|
+
else if (c === '"')
|
|
108238
108113
|
inDouble = true;
|
|
108239
|
-
out.push(
|
|
108114
|
+
out.push(c);
|
|
108240
108115
|
i++;
|
|
108241
108116
|
}
|
|
108242
108117
|
}
|
|
@@ -108319,8 +108194,8 @@ function collectCommands(node, commands, varScope) {
|
|
|
108319
108194
|
const isPipeline = node.type === "pipeline";
|
|
108320
108195
|
let needsSnapshot = false;
|
|
108321
108196
|
if (!isPipeline) {
|
|
108322
|
-
for (const
|
|
108323
|
-
if (
|
|
108197
|
+
for (const c of node.children) {
|
|
108198
|
+
if (c && (c.type === "||" || c.type === "&")) {
|
|
108324
108199
|
needsSnapshot = true;
|
|
108325
108200
|
break;
|
|
108326
108201
|
}
|
|
@@ -108449,12 +108324,12 @@ function collectCommands(node, commands, varScope) {
|
|
|
108449
108324
|
}
|
|
108450
108325
|
varScope.set(loopVar, VAR_PLACEHOLDER);
|
|
108451
108326
|
const bodyScope = new Map(varScope);
|
|
108452
|
-
for (const
|
|
108453
|
-
if (!
|
|
108327
|
+
for (const c of doGroup.children) {
|
|
108328
|
+
if (!c)
|
|
108454
108329
|
continue;
|
|
108455
|
-
if (
|
|
108330
|
+
if (c.type === "do" || c.type === "done" || c.type === ";")
|
|
108456
108331
|
continue;
|
|
108457
|
-
const err = collectCommands(
|
|
108332
|
+
const err = collectCommands(c, commands, bodyScope);
|
|
108458
108333
|
if (err)
|
|
108459
108334
|
return err;
|
|
108460
108335
|
}
|
|
@@ -108474,12 +108349,12 @@ function collectCommands(node, commands, varScope) {
|
|
|
108474
108349
|
}
|
|
108475
108350
|
if (child.type === "do_group") {
|
|
108476
108351
|
const bodyScope = new Map(varScope);
|
|
108477
|
-
for (const
|
|
108478
|
-
if (!
|
|
108352
|
+
for (const c of child.children) {
|
|
108353
|
+
if (!c)
|
|
108479
108354
|
continue;
|
|
108480
|
-
if (
|
|
108355
|
+
if (c.type === "do" || c.type === "done" || c.type === ";")
|
|
108481
108356
|
continue;
|
|
108482
|
-
const err2 = collectCommands(
|
|
108357
|
+
const err2 = collectCommands(c, commands, bodyScope);
|
|
108483
108358
|
if (err2)
|
|
108484
108359
|
return err2;
|
|
108485
108360
|
}
|
|
@@ -108487,13 +108362,13 @@ function collectCommands(node, commands, varScope) {
|
|
|
108487
108362
|
}
|
|
108488
108363
|
if (child.type === "elif_clause" || child.type === "else_clause") {
|
|
108489
108364
|
const branchScope = new Map(varScope);
|
|
108490
|
-
for (const
|
|
108491
|
-
if (!
|
|
108365
|
+
for (const c of child.children) {
|
|
108366
|
+
if (!c)
|
|
108492
108367
|
continue;
|
|
108493
|
-
if (
|
|
108368
|
+
if (c.type === "elif" || c.type === "else" || c.type === "then" || c.type === ";") {
|
|
108494
108369
|
continue;
|
|
108495
108370
|
}
|
|
108496
|
-
const err2 = collectCommands(
|
|
108371
|
+
const err2 = collectCommands(c, commands, branchScope);
|
|
108497
108372
|
if (err2)
|
|
108498
108373
|
return err2;
|
|
108499
108374
|
}
|
|
@@ -108506,9 +108381,9 @@ function collectCommands(node, commands, varScope) {
|
|
|
108506
108381
|
return err;
|
|
108507
108382
|
if (!seenThen) {
|
|
108508
108383
|
for (let i = before;i < commands.length; i++) {
|
|
108509
|
-
const
|
|
108510
|
-
if (
|
|
108511
|
-
for (const a of
|
|
108384
|
+
const c = commands[i];
|
|
108385
|
+
if (c?.argv[0] === "read") {
|
|
108386
|
+
for (const a of c.argv.slice(1)) {
|
|
108512
108387
|
if (!a.startsWith("-") && /^[A-Za-z_][A-Za-z0-9_]*$/.test(a)) {
|
|
108513
108388
|
const existing = varScope.get(a);
|
|
108514
108389
|
if (existing !== undefined && !containsAnyPlaceholder(existing)) {
|
|
@@ -108591,10 +108466,10 @@ function walkTestExpr(node, argv, innerCommands, varScope) {
|
|
|
108591
108466
|
case "binary_expression":
|
|
108592
108467
|
case "negated_expression":
|
|
108593
108468
|
case "parenthesized_expression": {
|
|
108594
|
-
for (const
|
|
108595
|
-
if (!
|
|
108469
|
+
for (const c of node.children) {
|
|
108470
|
+
if (!c)
|
|
108596
108471
|
continue;
|
|
108597
|
-
const err = walkTestExpr(
|
|
108472
|
+
const err = walkTestExpr(c, argv, innerCommands, varScope);
|
|
108598
108473
|
if (err)
|
|
108599
108474
|
return err;
|
|
108600
108475
|
}
|
|
@@ -109021,7 +108896,7 @@ function extractSafeCatHeredoc(subNode) {
|
|
|
109021
108896
|
if (!child)
|
|
109022
108897
|
continue;
|
|
109023
108898
|
if (child.type === "command") {
|
|
109024
|
-
const cmdChildren = child.children.filter((
|
|
108899
|
+
const cmdChildren = child.children.filter((c) => c);
|
|
109025
108900
|
if (cmdChildren.length !== 1)
|
|
109026
108901
|
return null;
|
|
109027
108902
|
const nameNode = cmdChildren[0];
|
|
@@ -109133,13 +109008,13 @@ function walkVariableAssignment(node, innerCommands, varScope) {
|
|
|
109133
109008
|
function resolveSimpleExpansion(node, varScope, insideString) {
|
|
109134
109009
|
let varName = null;
|
|
109135
109010
|
let isSpecial = false;
|
|
109136
|
-
for (const
|
|
109137
|
-
if (
|
|
109138
|
-
varName =
|
|
109011
|
+
for (const c of node.children) {
|
|
109012
|
+
if (c?.type === "variable_name") {
|
|
109013
|
+
varName = c.text;
|
|
109139
109014
|
break;
|
|
109140
109015
|
}
|
|
109141
|
-
if (
|
|
109142
|
-
varName =
|
|
109016
|
+
if (c?.type === "special_variable_name") {
|
|
109017
|
+
varName = c.text;
|
|
109143
109018
|
isSpecial = true;
|
|
109144
109019
|
break;
|
|
109145
109020
|
}
|
|
@@ -109949,8 +109824,8 @@ function extractRedirectionNodes(rootNode) {
|
|
|
109949
109824
|
visitNodes(rootNode, (node) => {
|
|
109950
109825
|
if (node.type === "file_redirect") {
|
|
109951
109826
|
const children = node.children;
|
|
109952
|
-
const op = children.find((
|
|
109953
|
-
const target = children.find((
|
|
109827
|
+
const op = children.find((c) => c.type === ">" || c.type === ">>");
|
|
109828
|
+
const target = children.find((c) => c.type === "word");
|
|
109954
109829
|
if (op && target) {
|
|
109955
109830
|
redirections.push({
|
|
109956
109831
|
startIndex: node.startIndex,
|
|
@@ -110690,17 +110565,17 @@ function validateGitCommit(context) {
|
|
|
110690
110565
|
let inSQ = false;
|
|
110691
110566
|
let inDQ = false;
|
|
110692
110567
|
for (let i = 0;i < remainder.length; i++) {
|
|
110693
|
-
const
|
|
110694
|
-
if (
|
|
110568
|
+
const c = remainder[i];
|
|
110569
|
+
if (c === "'" && !inDQ) {
|
|
110695
110570
|
inSQ = !inSQ;
|
|
110696
110571
|
continue;
|
|
110697
110572
|
}
|
|
110698
|
-
if (
|
|
110573
|
+
if (c === '"' && !inSQ) {
|
|
110699
110574
|
inDQ = !inDQ;
|
|
110700
110575
|
continue;
|
|
110701
110576
|
}
|
|
110702
110577
|
if (!inSQ && !inDQ)
|
|
110703
|
-
unquoted +=
|
|
110578
|
+
unquoted += c;
|
|
110704
110579
|
}
|
|
110705
110580
|
if (/[<>]/.test(unquoted)) {
|
|
110706
110581
|
return {
|
|
@@ -110876,24 +110751,24 @@ function validateCarriageReturn(context) {
|
|
|
110876
110751
|
let inDoubleQuote = false;
|
|
110877
110752
|
let escaped = false;
|
|
110878
110753
|
for (let i = 0;i < originalCommand.length; i++) {
|
|
110879
|
-
const
|
|
110754
|
+
const c = originalCommand[i];
|
|
110880
110755
|
if (escaped) {
|
|
110881
110756
|
escaped = false;
|
|
110882
110757
|
continue;
|
|
110883
110758
|
}
|
|
110884
|
-
if (
|
|
110759
|
+
if (c === "\\" && !inSingleQuote) {
|
|
110885
110760
|
escaped = true;
|
|
110886
110761
|
continue;
|
|
110887
110762
|
}
|
|
110888
|
-
if (
|
|
110763
|
+
if (c === "'" && !inDoubleQuote) {
|
|
110889
110764
|
inSingleQuote = !inSingleQuote;
|
|
110890
110765
|
continue;
|
|
110891
110766
|
}
|
|
110892
|
-
if (
|
|
110767
|
+
if (c === '"' && !inSingleQuote) {
|
|
110893
110768
|
inDoubleQuote = !inDoubleQuote;
|
|
110894
110769
|
continue;
|
|
110895
110770
|
}
|
|
110896
|
-
if (
|
|
110771
|
+
if (c === "\r" && !inDoubleQuote) {
|
|
110897
110772
|
logEvent("tengu_bash_security_check_triggered", {
|
|
110898
110773
|
checkId: BASH_SECURITY_CHECK_IDS.NEWLINES,
|
|
110899
110774
|
subId: 2
|
|
@@ -113647,8 +113522,8 @@ async function bashToolHasPermission(input, context, getCommandSubcommandPrefixF
|
|
|
113647
113522
|
suggestions: []
|
|
113648
113523
|
};
|
|
113649
113524
|
}
|
|
113650
|
-
astSubcommands = astResult.commands.map((
|
|
113651
|
-
astRedirects = astResult.commands.flatMap((
|
|
113525
|
+
astSubcommands = astResult.commands.map((c) => c.text);
|
|
113526
|
+
astRedirects = astResult.commands.flatMap((c) => c.redirects);
|
|
113652
113527
|
astCommands = astResult.commands;
|
|
113653
113528
|
}
|
|
113654
113529
|
if (astResult.kind === "parse-unavailable") {
|
|
@@ -113871,7 +113746,7 @@ async function bashToolHasPermission(input, context, getCommandSubcommandPrefixF
|
|
|
113871
113746
|
const onDivergence = () => {
|
|
113872
113747
|
divergenceCount++;
|
|
113873
113748
|
};
|
|
113874
|
-
const results = await Promise.all(subcommands.map((
|
|
113749
|
+
const results = await Promise.all(subcommands.map((c) => bashCommandIsSafeAsync(c, onDivergence)));
|
|
113875
113750
|
hasPossibleCommandInjection = results.some((r) => r.behavior !== "passthrough");
|
|
113876
113751
|
if (divergenceCount > 0) {
|
|
113877
113752
|
logEvent("tengu_tree_sitter_security_divergence", {
|
|
@@ -115028,7 +114903,7 @@ var init_inProcessRunner = __esm(() => {
|
|
|
115028
114903
|
init_compact();
|
|
115029
114904
|
init_microCompact();
|
|
115030
114905
|
init_InProcessTeammateTask();
|
|
115031
|
-
|
|
114906
|
+
init_types5();
|
|
115032
114907
|
init_LocalAgentTask();
|
|
115033
114908
|
init_runAgent();
|
|
115034
114909
|
init_bashPermissions();
|
|
@@ -115646,8 +115521,8 @@ var init_PaneBackendExecutor = __esm(() => {
|
|
|
115646
115521
|
async function ensureBackendsRegistered() {
|
|
115647
115522
|
if (backendsRegistered)
|
|
115648
115523
|
return;
|
|
115649
|
-
await import("./chunk-
|
|
115650
|
-
await import("./chunk-
|
|
115524
|
+
await import("./chunk-ajemg1rr.js");
|
|
115525
|
+
await import("./chunk-h2j25g79.js");
|
|
115651
115526
|
backendsRegistered = true;
|
|
115652
115527
|
}
|
|
115653
115528
|
function registerTmuxBackend(backendClass) {
|
|
@@ -118296,7 +118171,7 @@ function trackGitOperations(command, exitCode, stdout) {
|
|
|
118296
118171
|
if (stdout) {
|
|
118297
118172
|
const prInfo = findPrInStdout(stdout);
|
|
118298
118173
|
if (prInfo) {
|
|
118299
|
-
import("./chunk-
|
|
118174
|
+
import("./chunk-1nt5wc40.js").then(({ linkSessionToPR }) => {
|
|
118300
118175
|
import("./chunk-44fpr6jq.js").then(({ getSessionId: getSessionId2 }) => {
|
|
118301
118176
|
const sessionId = getSessionId2();
|
|
118302
118177
|
if (sessionId) {
|
|
@@ -118529,9 +118404,9 @@ function transformCommandAst(raw) {
|
|
|
118529
118404
|
const rawChildren = ensureArray(ce2.children);
|
|
118530
118405
|
if (rawChildren.length > 0) {
|
|
118531
118406
|
hasChildren = true;
|
|
118532
|
-
children.push(rawChildren.map((
|
|
118533
|
-
type: mapElementType(
|
|
118534
|
-
text:
|
|
118407
|
+
children.push(rawChildren.map((c) => ({
|
|
118408
|
+
type: mapElementType(c.type),
|
|
118409
|
+
text: c.text
|
|
118535
118410
|
})));
|
|
118536
118411
|
} else {
|
|
118537
118412
|
children.push(undefined);
|
|
@@ -119311,27 +119186,27 @@ function resolveCwdReentry(normalized) {
|
|
|
119311
119186
|
function normalizeGitPathArg(arg) {
|
|
119312
119187
|
let s = arg;
|
|
119313
119188
|
if (s.length > 0 && (PS_TOKENIZER_DASH_CHARS.has(s[0]) || s[0] === "/")) {
|
|
119314
|
-
const
|
|
119315
|
-
if (
|
|
119316
|
-
s = s.slice(
|
|
119189
|
+
const c = s.indexOf(":", 1);
|
|
119190
|
+
if (c > 0)
|
|
119191
|
+
s = s.slice(c + 1);
|
|
119317
119192
|
}
|
|
119318
119193
|
s = s.replace(/^['"]|['"]$/g, "");
|
|
119319
119194
|
s = s.replace(/`/g, "");
|
|
119320
119195
|
s = s.replace(/^(?:[A-Za-z0-9_.]+\\){0,3}FileSystem::/i, "");
|
|
119321
119196
|
s = s.replace(/^[A-Za-z]:(?![/\\])/, "");
|
|
119322
119197
|
s = s.replace(/\\/g, "/");
|
|
119323
|
-
s = s.split("/").map((
|
|
119324
|
-
if (
|
|
119325
|
-
return
|
|
119198
|
+
s = s.split("/").map((c) => {
|
|
119199
|
+
if (c === "")
|
|
119200
|
+
return c;
|
|
119326
119201
|
let prev;
|
|
119327
119202
|
do {
|
|
119328
|
-
prev =
|
|
119329
|
-
|
|
119330
|
-
if (
|
|
119331
|
-
return
|
|
119332
|
-
|
|
119333
|
-
} while (
|
|
119334
|
-
return
|
|
119203
|
+
prev = c;
|
|
119204
|
+
c = c.replace(/ +$/, "");
|
|
119205
|
+
if (c === "." || c === "..")
|
|
119206
|
+
return c;
|
|
119207
|
+
c = c.replace(/\.+$/, "");
|
|
119208
|
+
} while (c !== prev);
|
|
119209
|
+
return c || ".";
|
|
119335
119210
|
}).join("/");
|
|
119336
119211
|
s = posix4.normalize(s);
|
|
119337
119212
|
if (s.startsWith("./"))
|
|
@@ -119435,7 +119310,7 @@ function argLeaksValue(_cmd, element) {
|
|
|
119435
119310
|
if (argTypes[i] === "Parameter") {
|
|
119436
119311
|
const paramChildren = children?.[i];
|
|
119437
119312
|
if (paramChildren) {
|
|
119438
|
-
if (paramChildren.some((
|
|
119313
|
+
if (paramChildren.some((c) => c.type !== "StringConstant")) {
|
|
119439
119314
|
return true;
|
|
119440
119315
|
}
|
|
119441
119316
|
} else {
|
|
@@ -119619,7 +119494,7 @@ function isAllowlistedCommand(cmd, originalCommand) {
|
|
|
119619
119494
|
if (t === "Parameter") {
|
|
119620
119495
|
const paramChildren = cmd.children?.[i - 1];
|
|
119621
119496
|
if (paramChildren) {
|
|
119622
|
-
if (paramChildren.some((
|
|
119497
|
+
if (paramChildren.some((c) => c.type !== "StringConstant")) {
|
|
119623
119498
|
return false;
|
|
119624
119499
|
}
|
|
119625
119500
|
} else {
|
|
@@ -122254,7 +122129,7 @@ function checkDownloadCradles(parsed) {
|
|
|
122254
122129
|
}
|
|
122255
122130
|
}
|
|
122256
122131
|
const all = getAllCommands2(parsed);
|
|
122257
|
-
if (all.some((
|
|
122132
|
+
if (all.some((c) => isDownloader(c.name)) && all.some((c) => isIex(c.name))) {
|
|
122258
122133
|
return {
|
|
122259
122134
|
behavior: "ask",
|
|
122260
122135
|
message: "Command downloads and executes remote code"
|
|
@@ -123288,10 +123163,10 @@ async function powershellToolHasPermission(input, context) {
|
|
|
123288
123163
|
return true;
|
|
123289
123164
|
}
|
|
123290
123165
|
if (statement !== null) {
|
|
123291
|
-
for (const
|
|
123292
|
-
if (
|
|
123166
|
+
for (const c of statement.commands) {
|
|
123167
|
+
if (c.elementType === "CommandAst")
|
|
123293
123168
|
continue;
|
|
123294
|
-
if (isGitInternalPathPS(
|
|
123169
|
+
if (isGitInternalPathPS(c.text))
|
|
123295
123170
|
return true;
|
|
123296
123171
|
}
|
|
123297
123172
|
}
|
|
@@ -126090,7 +125965,7 @@ var init_AgentTool = __esm(() => {
|
|
|
126090
125965
|
}
|
|
126091
125966
|
const requiredMcpServers = selectedAgent.requiredMcpServers;
|
|
126092
125967
|
if (requiredMcpServers?.length) {
|
|
126093
|
-
const hasPendingRequiredServers = appState.mcp.clients.some((
|
|
125968
|
+
const hasPendingRequiredServers = appState.mcp.clients.some((c) => c.type === "pending" && requiredMcpServers.some((pattern) => c.name.toLowerCase().includes(pattern.toLowerCase())));
|
|
126094
125969
|
let currentAppState = appState;
|
|
126095
125970
|
if (hasPendingRequiredServers) {
|
|
126096
125971
|
const MAX_WAIT_MS = 30000;
|
|
@@ -126099,10 +125974,10 @@ var init_AgentTool = __esm(() => {
|
|
|
126099
125974
|
while (Date.now() < deadline) {
|
|
126100
125975
|
await sleep(POLL_INTERVAL_MS2);
|
|
126101
125976
|
currentAppState = toolUseContext.getAppState();
|
|
126102
|
-
const hasFailedRequiredServer = currentAppState.mcp.clients.some((
|
|
125977
|
+
const hasFailedRequiredServer = currentAppState.mcp.clients.some((c) => c.type === "failed" && requiredMcpServers.some((pattern) => c.name.toLowerCase().includes(pattern.toLowerCase())));
|
|
126103
125978
|
if (hasFailedRequiredServer)
|
|
126104
125979
|
break;
|
|
126105
|
-
const stillPending = currentAppState.mcp.clients.some((
|
|
125980
|
+
const stillPending = currentAppState.mcp.clients.some((c) => c.type === "pending" && requiredMcpServers.some((pattern) => c.name.toLowerCase().includes(pattern.toLowerCase())));
|
|
126106
125981
|
if (!stillPending)
|
|
126107
125982
|
break;
|
|
126108
125983
|
}
|
|
@@ -127209,7 +127084,7 @@ function isCollapsibleToolUse(msg, tools) {
|
|
|
127209
127084
|
function isCollapsibleToolResult(msg, collapsibleToolUseIds) {
|
|
127210
127085
|
if (msg.type === "user") {
|
|
127211
127086
|
const contentItems = getContentItems(msg.message?.content);
|
|
127212
|
-
const toolResults = contentItems.filter((
|
|
127087
|
+
const toolResults = contentItems.filter((c) => c.type === "tool_result");
|
|
127213
127088
|
return toolResults.length > 0 && toolResults.every((r) => collapsibleToolUseIds.has(r.tool_use_id));
|
|
127214
127089
|
}
|
|
127215
127090
|
return false;
|
|
@@ -127285,10 +127160,10 @@ function scanBashResultForGitOps(msg, group) {
|
|
|
127285
127160
|
return;
|
|
127286
127161
|
const combined = (out.stdout ?? "") + `
|
|
127287
127162
|
` + (out.stderr ?? "");
|
|
127288
|
-
for (const
|
|
127289
|
-
if (
|
|
127163
|
+
for (const c of getContentItems(msg.message?.content)) {
|
|
127164
|
+
if (c.type !== "tool_result")
|
|
127290
127165
|
continue;
|
|
127291
|
-
const toolResult =
|
|
127166
|
+
const toolResult = c;
|
|
127292
127167
|
const command = group.bashCommands?.get(toolResult.tool_use_id);
|
|
127293
127168
|
if (!command)
|
|
127294
127169
|
continue;
|
|
@@ -128820,7 +128695,9 @@ async function getAttachments(input, toolUseContext, ideSelection, queuedCommand
|
|
|
128820
128695
|
}))),
|
|
128821
128696
|
maybe("agent_listing_delta", () => Promise.resolve(getAgentListingDeltaAttachment(toolUseContext, messages))),
|
|
128822
128697
|
maybe("mcp_instructions_delta", () => Promise.resolve(getMcpInstructionsDeltaAttachment(toolUseContext.options.mcpClients, toolUseContext.options.tools, toolUseContext.options.mainLoopModel, messages))),
|
|
128823
|
-
...[
|
|
128698
|
+
...[
|
|
128699
|
+
maybe("companion_intro", () => Promise.resolve(getCompanionIntroAttachment(messages)))
|
|
128700
|
+
],
|
|
128824
128701
|
maybe("changed_files", () => getChangedFiles(context)),
|
|
128825
128702
|
maybe("nested_memory", () => getNestedMemoryAttachments(context)),
|
|
128826
128703
|
maybe("dynamic_skill", () => getDynamicSkillAttachments(context)),
|
|
@@ -129348,7 +129225,7 @@ async function processMcpResourceAttachments(input, toolUseContext) {
|
|
|
129348
129225
|
logEvent("tengu_at_mention_mcp_resource_error", {});
|
|
129349
129226
|
return null;
|
|
129350
129227
|
}
|
|
129351
|
-
const client = mcpClients.find((
|
|
129228
|
+
const client = mcpClients.find((c) => c.name === serverName);
|
|
129352
129229
|
if (!client || client.type !== "connected") {
|
|
129353
129230
|
logEvent("tengu_at_mention_mcp_resource_error", {});
|
|
129354
129231
|
return null;
|
|
@@ -132053,7 +131930,7 @@ async function checkPermissionsAndCallTool(tool, toolUseID, input, toolUseContex
|
|
|
132053
131930
|
if (error instanceof McpAuthError) {
|
|
132054
131931
|
toolUseContext.setAppState((prevState) => {
|
|
132055
131932
|
const serverName = error.serverName;
|
|
132056
|
-
const existingClientIndex = prevState.mcp.clients.findIndex((
|
|
131933
|
+
const existingClientIndex = prevState.mcp.clients.findIndex((c) => c.name === serverName);
|
|
132057
131934
|
if (existingClientIndex === -1) {
|
|
132058
131935
|
return prevState;
|
|
132059
131936
|
}
|
|
@@ -133663,7 +133540,7 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
133663
133540
|
maxOutputTokensOverride,
|
|
133664
133541
|
fetchOverride: dumpPromptsFetch,
|
|
133665
133542
|
mcpTools: appState.mcp.tools,
|
|
133666
|
-
hasPendingMcpServers: appState.mcp.clients.some((
|
|
133543
|
+
hasPendingMcpServers: appState.mcp.clients.some((c) => c.type === "pending"),
|
|
133667
133544
|
queryTracking,
|
|
133668
133545
|
effortValue: appState.effortValue,
|
|
133669
133546
|
advisorModel: appState.advisorModel,
|
|
@@ -134023,7 +133900,7 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
134023
133900
|
const toolUseIds = toolUseBlocks.map((block) => block.id);
|
|
134024
133901
|
const toolInfoForSummary = toolUseBlocks.map((block) => {
|
|
134025
133902
|
const toolResult = toolResults.find((result) => result.type === "user" && Array.isArray(result.message.content) && result.message.content.some((content) => content.type === "tool_result" && content.tool_use_id === block.id));
|
|
134026
|
-
const resultContent = toolResult?.type === "user" && Array.isArray(toolResult.message.content) ? toolResult.message.content.find((
|
|
133903
|
+
const resultContent = toolResult?.type === "user" && Array.isArray(toolResult.message.content) ? toolResult.message.content.find((c) => c.type === "tool_result" && c.tool_use_id === block.id) : undefined;
|
|
134027
133904
|
return {
|
|
134028
133905
|
name: block.name,
|
|
134029
133906
|
input: block.input,
|
|
@@ -134264,7 +134141,7 @@ function getAnthropicEnvMetadata() {
|
|
|
134264
134141
|
function getBuildAgeMinutes() {
|
|
134265
134142
|
if (false)
|
|
134266
134143
|
;
|
|
134267
|
-
const buildTime = new Date("2026-04-
|
|
134144
|
+
const buildTime = new Date("2026-04-02T15:32:51.750Z").getTime();
|
|
134268
134145
|
if (isNaN(buildTime))
|
|
134269
134146
|
return;
|
|
134270
134147
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -134613,7 +134490,7 @@ function logAPISuccessAndDuration({
|
|
|
134613
134490
|
const content = m2.message.content;
|
|
134614
134491
|
if (!Array.isArray(content))
|
|
134615
134492
|
return [];
|
|
134616
|
-
return content.filter((
|
|
134493
|
+
return content.filter((c) => typeof c !== "string" && c.type === "text").map((c) => c.text);
|
|
134617
134494
|
}).join(`
|
|
134618
134495
|
`) || undefined;
|
|
134619
134496
|
if (process.env.USER_TYPE === "ant") {
|
|
@@ -134621,7 +134498,7 @@ function logAPISuccessAndDuration({
|
|
|
134621
134498
|
const content = m2.message.content;
|
|
134622
134499
|
if (!Array.isArray(content))
|
|
134623
134500
|
return [];
|
|
134624
|
-
return content.filter((
|
|
134501
|
+
return content.filter((c) => typeof c !== "string" && c.type === "thinking").map((c) => c.thinking);
|
|
134625
134502
|
}).join(`
|
|
134626
134503
|
`) || undefined;
|
|
134627
134504
|
}
|
|
@@ -134629,7 +134506,7 @@ function logAPISuccessAndDuration({
|
|
|
134629
134506
|
const content = m2.message.content;
|
|
134630
134507
|
if (!Array.isArray(content))
|
|
134631
134508
|
return false;
|
|
134632
|
-
return content.some((
|
|
134509
|
+
return content.some((c) => typeof c !== "string" && c.type === "tool_use");
|
|
134633
134510
|
});
|
|
134634
134511
|
}
|
|
134635
134512
|
endLLMRequestSpan(llmSpan, {
|
|
@@ -138344,7 +138221,7 @@ var init_sessionFileAccessHooks = __esm(() => {
|
|
|
138344
138221
|
init_state();
|
|
138345
138222
|
init_analytics();
|
|
138346
138223
|
init_constants5();
|
|
138347
|
-
|
|
138224
|
+
init_types9();
|
|
138348
138225
|
init_FileReadTool();
|
|
138349
138226
|
init_prompt5();
|
|
138350
138227
|
init_FileWriteTool();
|
|
@@ -139418,7 +139295,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
|
|
|
139418
139295
|
if (parsed.kind !== "simple") {
|
|
139419
139296
|
return () => true;
|
|
139420
139297
|
}
|
|
139421
|
-
const subcommands = parsed.commands.map((
|
|
139298
|
+
const subcommands = parsed.commands.map((c) => c.argv.join(" "));
|
|
139422
139299
|
return (pattern) => {
|
|
139423
139300
|
const prefix = permissionRuleExtractPrefix2(pattern);
|
|
139424
139301
|
return subcommands.some((cmd) => {
|
|
@@ -141473,7 +141350,7 @@ var init_contextAnalysis = __esm(() => {
|
|
|
141473
141350
|
|
|
141474
141351
|
// src/utils/memory/types.ts
|
|
141475
141352
|
var MEMORY_TYPE_VALUES;
|
|
141476
|
-
var
|
|
141353
|
+
var init_types10 = __esm(() => {
|
|
141477
141354
|
MEMORY_TYPE_VALUES = [
|
|
141478
141355
|
"User",
|
|
141479
141356
|
"Project",
|
|
@@ -142737,7 +142614,7 @@ var init_compact = __esm(() => {
|
|
|
142737
142614
|
init_forkedAgent();
|
|
142738
142615
|
init_hooks3();
|
|
142739
142616
|
init_log();
|
|
142740
|
-
|
|
142617
|
+
init_types10();
|
|
142741
142618
|
init_messages2();
|
|
142742
142619
|
init_path();
|
|
142743
142620
|
init_plans();
|
|
@@ -143557,8 +143434,8 @@ async function countBuiltInToolTokens(tools, getToolPermissionContext, agentInfo
|
|
|
143557
143434
|
systemToolDetails: []
|
|
143558
143435
|
};
|
|
143559
143436
|
}
|
|
143560
|
-
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-
|
|
143561
|
-
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-
|
|
143437
|
+
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-ma7t6egq.js");
|
|
143438
|
+
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-s1rcbzcw.js");
|
|
143562
143439
|
const isDeferred = await isToolSearchEnabled2(model ?? "", tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeBuiltIn");
|
|
143563
143440
|
const alwaysLoadedTools = builtInTools.filter((t) => !isDeferredTool2(t));
|
|
143564
143441
|
const deferredBuiltinTools = builtInTools.filter((t) => isDeferredTool2(t));
|
|
@@ -143692,8 +143569,8 @@ async function countMcpToolTokens(tools, getToolPermissionContext, agentInfo, mo
|
|
|
143692
143569
|
}))));
|
|
143693
143570
|
const estimateTotal = estimates.reduce((s, e) => s + e, 0) || 1;
|
|
143694
143571
|
const mcpToolTokensByTool = estimates.map((e) => Math.round(e / estimateTotal * totalTokens));
|
|
143695
|
-
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-
|
|
143696
|
-
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-
|
|
143572
|
+
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-ma7t6egq.js");
|
|
143573
|
+
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-s1rcbzcw.js");
|
|
143697
143574
|
const isDeferred = await isToolSearchEnabled2(model, tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeMcp");
|
|
143698
143575
|
const loadedMcpToolNames = new Set;
|
|
143699
143576
|
if (isDeferred && messages) {
|
|
@@ -143952,7 +143829,7 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
143952
143829
|
color: "purple_FOR_SUBAGENTS_ONLY"
|
|
143953
143830
|
});
|
|
143954
143831
|
}
|
|
143955
|
-
const actualUsage = cats.reduce((sum,
|
|
143832
|
+
const actualUsage = cats.reduce((sum, cat) => sum + (cat.isDeferred ? 0 : cat.tokens), 0);
|
|
143956
143833
|
let reservedTokens = 0;
|
|
143957
143834
|
let skipReservedBuffer = false;
|
|
143958
143835
|
if (false) {}
|
|
@@ -143986,11 +143863,11 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
143986
143863
|
const GRID_WIDTH = contextWindow >= 1e6 ? isNarrowScreen ? 5 : 20 : isNarrowScreen ? 5 : 10;
|
|
143987
143864
|
const GRID_HEIGHT = contextWindow >= 1e6 ? 10 : isNarrowScreen ? 5 : 10;
|
|
143988
143865
|
const TOTAL_SQUARES = GRID_WIDTH * GRID_HEIGHT;
|
|
143989
|
-
const nonDeferredCats = cats.filter((
|
|
143990
|
-
const categorySquares = nonDeferredCats.map((
|
|
143991
|
-
...
|
|
143992
|
-
squares:
|
|
143993
|
-
percentageOfTotal: Math.round(
|
|
143866
|
+
const nonDeferredCats = cats.filter((cat) => !cat.isDeferred);
|
|
143867
|
+
const categorySquares = nonDeferredCats.map((cat) => ({
|
|
143868
|
+
...cat,
|
|
143869
|
+
squares: cat.name === "Free space" ? Math.round(cat.tokens / contextWindow * TOTAL_SQUARES) : Math.max(1, Math.round(cat.tokens / contextWindow * TOTAL_SQUARES)),
|
|
143870
|
+
percentageOfTotal: Math.round(cat.tokens / contextWindow * 100)
|
|
143994
143871
|
}));
|
|
143995
143872
|
function createCategorySquares(category) {
|
|
143996
143873
|
const squares = [];
|
|
@@ -144014,10 +143891,10 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
144014
143891
|
return squares;
|
|
144015
143892
|
}
|
|
144016
143893
|
const gridSquares = [];
|
|
144017
|
-
const reservedCategory = categorySquares.find((
|
|
144018
|
-
const nonReservedCategories = categorySquares.filter((
|
|
144019
|
-
for (const
|
|
144020
|
-
const squares = createCategorySquares(
|
|
143894
|
+
const reservedCategory = categorySquares.find((cat) => cat.name === RESERVED_CATEGORY_NAME || cat.name === MANUAL_COMPACT_BUFFER_NAME);
|
|
143895
|
+
const nonReservedCategories = categorySquares.filter((cat) => cat.name !== RESERVED_CATEGORY_NAME && cat.name !== MANUAL_COMPACT_BUFFER_NAME && cat.name !== "Free space");
|
|
143896
|
+
for (const cat of nonReservedCategories) {
|
|
143897
|
+
const squares = createCategorySquares(cat);
|
|
144021
143898
|
for (const square of squares) {
|
|
144022
143899
|
if (gridSquares.length < TOTAL_SQUARES) {
|
|
144023
143900
|
gridSquares.push(square);
|
|
@@ -144025,7 +143902,7 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
144025
143902
|
}
|
|
144026
143903
|
}
|
|
144027
143904
|
const reservedSquareCount = reservedCategory ? reservedCategory.squares : 0;
|
|
144028
|
-
const freeSpaceCat = cats.find((
|
|
143905
|
+
const freeSpaceCat = cats.find((c) => c.name === "Free space");
|
|
144029
143906
|
const freeSpaceTarget = TOTAL_SQUARES - reservedSquareCount;
|
|
144030
143907
|
while (gridSquares.length < freeSpaceTarget) {
|
|
144031
143908
|
gridSquares.push({
|
|
@@ -144718,7 +144595,7 @@ function stripToolSearchFieldsFromMessages(messages) {
|
|
|
144718
144595
|
if (block.type === "tool_result") {
|
|
144719
144596
|
const toolResult = block;
|
|
144720
144597
|
if (Array.isArray(toolResult.content)) {
|
|
144721
|
-
const filteredContent = toolResult.content.filter((
|
|
144598
|
+
const filteredContent = toolResult.content.filter((c) => !isToolReferenceBlock(c));
|
|
144722
144599
|
if (filteredContent.length === 0) {
|
|
144723
144600
|
return {
|
|
144724
144601
|
...toolResult,
|
|
@@ -145905,23 +145782,23 @@ var require_parser2 = __commonJS((exports, module) => {
|
|
|
145905
145782
|
lastPos = i + 1;
|
|
145906
145783
|
}
|
|
145907
145784
|
for (;i < cssLength; i++) {
|
|
145908
|
-
var
|
|
145909
|
-
if (
|
|
145785
|
+
var c = css[i];
|
|
145786
|
+
if (c === "/" && css[i + 1] === "*") {
|
|
145910
145787
|
var j2 = css.indexOf("*/", i + 2);
|
|
145911
145788
|
if (j2 === -1)
|
|
145912
145789
|
break;
|
|
145913
145790
|
i = j2 + 1;
|
|
145914
145791
|
lastPos = i + 1;
|
|
145915
145792
|
isParenthesisOpen = false;
|
|
145916
|
-
} else if (
|
|
145793
|
+
} else if (c === "(") {
|
|
145917
145794
|
isParenthesisOpen = true;
|
|
145918
|
-
} else if (
|
|
145795
|
+
} else if (c === ")") {
|
|
145919
145796
|
isParenthesisOpen = false;
|
|
145920
|
-
} else if (
|
|
145797
|
+
} else if (c === ";") {
|
|
145921
145798
|
if (isParenthesisOpen) {} else {
|
|
145922
145799
|
addNewAttr();
|
|
145923
145800
|
}
|
|
145924
|
-
} else if (
|
|
145801
|
+
} else if (c === `
|
|
145925
145802
|
`) {
|
|
145926
145803
|
addNewAttr();
|
|
145927
145804
|
}
|
|
@@ -146312,11 +146189,11 @@ var require_default2 = __commonJS((exports) => {
|
|
|
146312
146189
|
function stripBlankChar(html) {
|
|
146313
146190
|
var chars = html.split("");
|
|
146314
146191
|
chars = chars.filter(function(char) {
|
|
146315
|
-
var
|
|
146316
|
-
if (
|
|
146192
|
+
var c = char.charCodeAt(0);
|
|
146193
|
+
if (c === 127)
|
|
146317
146194
|
return false;
|
|
146318
|
-
if (
|
|
146319
|
-
if (
|
|
146195
|
+
if (c <= 31) {
|
|
146196
|
+
if (c === 10 || c === 13)
|
|
146320
146197
|
return true;
|
|
146321
146198
|
return false;
|
|
146322
146199
|
}
|
|
@@ -146380,21 +146257,21 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146380
146257
|
var currentHtml = "";
|
|
146381
146258
|
chariterator:
|
|
146382
146259
|
for (currentPos = 0;currentPos < len; currentPos++) {
|
|
146383
|
-
var
|
|
146260
|
+
var c = html.charAt(currentPos);
|
|
146384
146261
|
if (tagStart === false) {
|
|
146385
|
-
if (
|
|
146262
|
+
if (c === "<") {
|
|
146386
146263
|
tagStart = currentPos;
|
|
146387
146264
|
continue;
|
|
146388
146265
|
}
|
|
146389
146266
|
} else {
|
|
146390
146267
|
if (quoteStart === false) {
|
|
146391
|
-
if (
|
|
146268
|
+
if (c === "<") {
|
|
146392
146269
|
rethtml += escapeHtml(html.slice(lastPos, currentPos));
|
|
146393
146270
|
tagStart = currentPos;
|
|
146394
146271
|
lastPos = currentPos;
|
|
146395
146272
|
continue;
|
|
146396
146273
|
}
|
|
146397
|
-
if (
|
|
146274
|
+
if (c === ">" || currentPos === len - 1) {
|
|
146398
146275
|
rethtml += escapeHtml(html.slice(lastPos, tagStart));
|
|
146399
146276
|
currentHtml = html.slice(tagStart, currentPos + 1);
|
|
146400
146277
|
currentTagName = getTagName(currentHtml);
|
|
@@ -146403,19 +146280,19 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146403
146280
|
tagStart = false;
|
|
146404
146281
|
continue;
|
|
146405
146282
|
}
|
|
146406
|
-
if (
|
|
146283
|
+
if (c === '"' || c === "'") {
|
|
146407
146284
|
var i = 1;
|
|
146408
146285
|
var ic = html.charAt(currentPos - i);
|
|
146409
146286
|
while (ic.trim() === "" || ic === "=") {
|
|
146410
146287
|
if (ic === "=") {
|
|
146411
|
-
quoteStart =
|
|
146288
|
+
quoteStart = c;
|
|
146412
146289
|
continue chariterator;
|
|
146413
146290
|
}
|
|
146414
146291
|
ic = html.charAt(currentPos - ++i);
|
|
146415
146292
|
}
|
|
146416
146293
|
}
|
|
146417
146294
|
} else {
|
|
146418
|
-
if (
|
|
146295
|
+
if (c === quoteStart) {
|
|
146419
146296
|
quoteStart = false;
|
|
146420
146297
|
continue;
|
|
146421
146298
|
}
|
|
@@ -146444,9 +146321,9 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146444
146321
|
retAttrs.push(ret);
|
|
146445
146322
|
}
|
|
146446
146323
|
for (var i = 0;i < len; i++) {
|
|
146447
|
-
var
|
|
146324
|
+
var c = html.charAt(i);
|
|
146448
146325
|
var v2, j2;
|
|
146449
|
-
if (tmpName === false &&
|
|
146326
|
+
if (tmpName === false && c === "=") {
|
|
146450
146327
|
tmpName = html.slice(lastPos, i);
|
|
146451
146328
|
lastPos = i + 1;
|
|
146452
146329
|
lastMarkPos = html.charAt(lastPos) === '"' || html.charAt(lastPos) === "'" ? lastPos : findNextQuotationMark(html, i + 1);
|
|
@@ -146454,7 +146331,7 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146454
146331
|
}
|
|
146455
146332
|
if (tmpName !== false) {
|
|
146456
146333
|
if (i === lastMarkPos) {
|
|
146457
|
-
j2 = html.indexOf(
|
|
146334
|
+
j2 = html.indexOf(c, i + 1);
|
|
146458
146335
|
if (j2 === -1) {
|
|
146459
146336
|
break;
|
|
146460
146337
|
} else {
|
|
@@ -146467,7 +146344,7 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146467
146344
|
}
|
|
146468
146345
|
}
|
|
146469
146346
|
}
|
|
146470
|
-
if (/\s|\n|\t/.test(
|
|
146347
|
+
if (/\s|\n|\t/.test(c)) {
|
|
146471
146348
|
html = html.replace(/\s|\n|\t/g, " ");
|
|
146472
146349
|
if (tmpName === false) {
|
|
146473
146350
|
j2 = findNextEqual(html, i);
|
|
@@ -146507,30 +146384,30 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146507
146384
|
}
|
|
146508
146385
|
function findNextEqual(str2, i) {
|
|
146509
146386
|
for (;i < str2.length; i++) {
|
|
146510
|
-
var
|
|
146511
|
-
if (
|
|
146387
|
+
var c = str2[i];
|
|
146388
|
+
if (c === " ")
|
|
146512
146389
|
continue;
|
|
146513
|
-
if (
|
|
146390
|
+
if (c === "=")
|
|
146514
146391
|
return i;
|
|
146515
146392
|
return -1;
|
|
146516
146393
|
}
|
|
146517
146394
|
}
|
|
146518
146395
|
function findNextQuotationMark(str2, i) {
|
|
146519
146396
|
for (;i < str2.length; i++) {
|
|
146520
|
-
var
|
|
146521
|
-
if (
|
|
146397
|
+
var c = str2[i];
|
|
146398
|
+
if (c === " ")
|
|
146522
146399
|
continue;
|
|
146523
|
-
if (
|
|
146400
|
+
if (c === "'" || c === '"')
|
|
146524
146401
|
return i;
|
|
146525
146402
|
return -1;
|
|
146526
146403
|
}
|
|
146527
146404
|
}
|
|
146528
146405
|
function findBeforeEqual(str2, i) {
|
|
146529
146406
|
for (;i > 0; i--) {
|
|
146530
|
-
var
|
|
146531
|
-
if (
|
|
146407
|
+
var c = str2[i];
|
|
146408
|
+
if (c === " ")
|
|
146532
146409
|
continue;
|
|
146533
|
-
if (
|
|
146410
|
+
if (c === "=")
|
|
146534
146411
|
return i;
|
|
146535
146412
|
return -1;
|
|
146536
146413
|
}
|
|
@@ -148603,22 +148480,22 @@ async function readClientSecret() {
|
|
|
148603
148480
|
process.stdin.setRawMode?.(true);
|
|
148604
148481
|
let secret = "";
|
|
148605
148482
|
const onData = (ch) => {
|
|
148606
|
-
const
|
|
148607
|
-
if (
|
|
148608
|
-
` ||
|
|
148483
|
+
const c = ch.toString();
|
|
148484
|
+
if (c === `
|
|
148485
|
+
` || c === "\r") {
|
|
148609
148486
|
process.stdin.setRawMode?.(false);
|
|
148610
148487
|
process.stdin.removeListener("data", onData);
|
|
148611
148488
|
process.stderr.write(`
|
|
148612
148489
|
`);
|
|
148613
148490
|
resolve23(secret);
|
|
148614
|
-
} else if (
|
|
148491
|
+
} else if (c === "\x03") {
|
|
148615
148492
|
process.stdin.setRawMode?.(false);
|
|
148616
148493
|
process.stdin.removeListener("data", onData);
|
|
148617
148494
|
reject2(new Error("Cancelled"));
|
|
148618
|
-
} else if (
|
|
148495
|
+
} else if (c === "\x7F" || c === "\b") {
|
|
148619
148496
|
secret = secret.slice(0, -1);
|
|
148620
148497
|
} else {
|
|
148621
|
-
secret +=
|
|
148498
|
+
secret += c;
|
|
148622
148499
|
}
|
|
148623
148500
|
};
|
|
148624
148501
|
process.stdin.on("data", onData);
|
|
@@ -148777,13 +148654,13 @@ function createMcpAuthTool(serverName, config2) {
|
|
|
148777
148654
|
...prev,
|
|
148778
148655
|
mcp: {
|
|
148779
148656
|
...prev.mcp,
|
|
148780
|
-
clients: prev.mcp.clients.map((
|
|
148657
|
+
clients: prev.mcp.clients.map((c) => c.name === serverName ? result.client : c),
|
|
148781
148658
|
tools: [
|
|
148782
148659
|
...reject_default(prev.mcp.tools, (t) => t.name?.startsWith(prefix)),
|
|
148783
148660
|
...result.tools
|
|
148784
148661
|
],
|
|
148785
148662
|
commands: [
|
|
148786
|
-
...reject_default(prev.mcp.commands, (
|
|
148663
|
+
...reject_default(prev.mcp.commands, (c) => c.name?.startsWith(prefix)),
|
|
148787
148664
|
...result.commands
|
|
148788
148665
|
],
|
|
148789
148666
|
resources: result.resources ? { ...prev.mcp.resources, [serverName]: result.resources } : prev.mcp.resources
|
|
@@ -148994,7 +148871,7 @@ class WebSocketTransport {
|
|
|
148994
148871
|
}
|
|
148995
148872
|
var WS_CONNECTING = 0, WS_OPEN = 1;
|
|
148996
148873
|
var init_mcpWebSocketTransport = __esm(() => {
|
|
148997
|
-
|
|
148874
|
+
init_types4();
|
|
148998
148875
|
init_diagLogs();
|
|
148999
148876
|
init_errors();
|
|
149000
148877
|
init_slowOperations();
|
|
@@ -149195,7 +149072,7 @@ async function runElicitationResultHooks(serverName, result, signal, mode, elici
|
|
|
149195
149072
|
}
|
|
149196
149073
|
}
|
|
149197
149074
|
var init_elicitationHandler = __esm(() => {
|
|
149198
|
-
|
|
149075
|
+
init_types4();
|
|
149199
149076
|
init_hooks3();
|
|
149200
149077
|
init_log();
|
|
149201
149078
|
init_slowOperations();
|
|
@@ -150166,7 +150043,7 @@ function wrapFetchWithTimeout(baseFetch) {
|
|
|
150166
150043
|
headers.set("accept", MCP_STREAMABLE_HTTP_ACCEPT);
|
|
150167
150044
|
}
|
|
150168
150045
|
const controller = new AbortController;
|
|
150169
|
-
const timer = setTimeout((
|
|
150046
|
+
const timer = setTimeout((c) => c.abort(new DOMException("The operation timed out.", "TimeoutError")), MCP_REQUEST_TIMEOUT_MS, controller);
|
|
150170
150047
|
timer.unref?.();
|
|
150171
150048
|
const parentSignal = init?.signal;
|
|
150172
150049
|
const abort = () => controller.abort(parentSignal?.reason);
|
|
@@ -150315,11 +150192,11 @@ async function getMcpToolsCommandsAndResources(onConnectionAttempt, mcpConfigs)
|
|
|
150315
150192
|
}
|
|
150316
150193
|
}
|
|
150317
150194
|
const totalServers = configEntries.length;
|
|
150318
|
-
const stdioCount = count(configEntries, ([_2,
|
|
150319
|
-
const sseCount = count(configEntries, ([_2,
|
|
150320
|
-
const httpCount = count(configEntries, ([_2,
|
|
150321
|
-
const sseIdeCount = count(configEntries, ([_2,
|
|
150322
|
-
const wsIdeCount = count(configEntries, ([_2,
|
|
150195
|
+
const stdioCount = count(configEntries, ([_2, c]) => c.type === "stdio");
|
|
150196
|
+
const sseCount = count(configEntries, ([_2, c]) => c.type === "sse");
|
|
150197
|
+
const httpCount = count(configEntries, ([_2, c]) => c.type === "http");
|
|
150198
|
+
const sseIdeCount = count(configEntries, ([_2, c]) => c.type === "sse-ide");
|
|
150199
|
+
const wsIdeCount = count(configEntries, ([_2, c]) => c.type === "ws-ide");
|
|
150323
150200
|
const localServers = configEntries.filter(([_2, config2]) => isLocalMcpServer(config2));
|
|
150324
150201
|
const remoteServers = configEntries.filter(([_2, config2]) => !isLocalMcpServer(config2));
|
|
150325
150202
|
const serverStats = {
|
|
@@ -150895,7 +150772,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
150895
150772
|
const client = new Client({
|
|
150896
150773
|
name: "claude-code",
|
|
150897
150774
|
title: "Claude Code",
|
|
150898
|
-
version: "1.0.3-fork.
|
|
150775
|
+
version: "1.0.3-fork.e907883",
|
|
150899
150776
|
description: "Anthropic's agentic coding tool",
|
|
150900
150777
|
websiteUrl: PRODUCT_URL
|
|
150901
150778
|
}, {
|
|
@@ -150950,7 +150827,7 @@ var init_client5 = __esm(() => {
|
|
|
150950
150827
|
init_stdio2();
|
|
150951
150828
|
init_streamableHttp();
|
|
150952
150829
|
init_transport();
|
|
150953
|
-
|
|
150830
|
+
init_types4();
|
|
150954
150831
|
init_mapValues();
|
|
150955
150832
|
init_memoize();
|
|
150956
150833
|
init_zipObject();
|
|
@@ -151214,7 +151091,7 @@ var init_client5 = __esm(() => {
|
|
|
151214
151091
|
transport = new StreamableHTTPClientTransport(new URL(proxyUrl), transportOptions);
|
|
151215
151092
|
logMCPDebug(name, `claude.ai proxy transport created successfully`);
|
|
151216
151093
|
} else if ((serverRef.type === "stdio" || !serverRef.type) && isClaudeInChromeMCPServer(name)) {
|
|
151217
|
-
const { createChromeContext } = await import("./chunk-
|
|
151094
|
+
const { createChromeContext } = await import("./chunk-vfz8zvd0.js");
|
|
151218
151095
|
const { createClaudeForChromeMcpServer } = await import("./chunk-bm1qb16p.js");
|
|
151219
151096
|
const { createLinkedTransportPair } = await import("./chunk-1h2famwb.js");
|
|
151220
151097
|
const context = createChromeContext(serverRef.env);
|
|
@@ -151257,7 +151134,7 @@ var init_client5 = __esm(() => {
|
|
|
151257
151134
|
const client = new Client({
|
|
151258
151135
|
name: "claude-code",
|
|
151259
151136
|
title: "Claude Code",
|
|
151260
|
-
version: "1.0.3-fork.
|
|
151137
|
+
version: "1.0.3-fork.e907883",
|
|
151261
151138
|
description: "Anthropic's agentic coding tool",
|
|
151262
151139
|
websiteUrl: PRODUCT_URL
|
|
151263
151140
|
}, {
|
|
@@ -157832,10 +157709,10 @@ function stripUnavailableToolReferencesFromUserMessage(message, availableToolNam
|
|
|
157832
157709
|
if (!Array.isArray(content)) {
|
|
157833
157710
|
return message;
|
|
157834
157711
|
}
|
|
157835
|
-
const hasUnavailableReference = content.some((block) => block.type === "tool_result" && Array.isArray(block.content) && block.content.some((
|
|
157836
|
-
if (!isToolReferenceBlock(
|
|
157712
|
+
const hasUnavailableReference = content.some((block) => block.type === "tool_result" && Array.isArray(block.content) && block.content.some((c) => {
|
|
157713
|
+
if (!isToolReferenceBlock(c))
|
|
157837
157714
|
return false;
|
|
157838
|
-
const toolName =
|
|
157715
|
+
const toolName = c.tool_name;
|
|
157839
157716
|
return toolName && !availableToolNames.has(normalizeLegacyToolName(toolName));
|
|
157840
157717
|
}));
|
|
157841
157718
|
if (!hasUnavailableReference) {
|
|
@@ -157849,10 +157726,10 @@ function stripUnavailableToolReferencesFromUserMessage(message, availableToolNam
|
|
|
157849
157726
|
if (block.type !== "tool_result" || !Array.isArray(block.content)) {
|
|
157850
157727
|
return block;
|
|
157851
157728
|
}
|
|
157852
|
-
const filteredContent = block.content.filter((
|
|
157853
|
-
if (!isToolReferenceBlock(
|
|
157729
|
+
const filteredContent = block.content.filter((c) => {
|
|
157730
|
+
if (!isToolReferenceBlock(c))
|
|
157854
157731
|
return true;
|
|
157855
|
-
const rawToolName =
|
|
157732
|
+
const rawToolName = c.tool_name;
|
|
157856
157733
|
if (!rawToolName)
|
|
157857
157734
|
return true;
|
|
157858
157735
|
const toolName = normalizeLegacyToolName(rawToolName);
|
|
@@ -157898,7 +157775,7 @@ function stripToolReferenceBlocksFromUserMessage(message) {
|
|
|
157898
157775
|
if (block.type !== "tool_result" || !Array.isArray(block.content)) {
|
|
157899
157776
|
return block;
|
|
157900
157777
|
}
|
|
157901
|
-
const filteredContent = block.content.filter((
|
|
157778
|
+
const filteredContent = block.content.filter((c) => !isToolReferenceBlock(c));
|
|
157902
157779
|
if (filteredContent.length === 0) {
|
|
157903
157780
|
return {
|
|
157904
157781
|
...block,
|
|
@@ -158017,10 +157894,10 @@ function sanitizeErrorToolResultContent(messages) {
|
|
|
158017
157894
|
const trContent = b2.content;
|
|
158018
157895
|
if (!Array.isArray(trContent))
|
|
158019
157896
|
return b2;
|
|
158020
|
-
if (trContent.every((
|
|
157897
|
+
if (trContent.every((c) => c.type === "text"))
|
|
158021
157898
|
return b2;
|
|
158022
157899
|
changed = true;
|
|
158023
|
-
const texts = trContent.filter((
|
|
157900
|
+
const texts = trContent.filter((c) => c.type === "text").map((c) => c.text);
|
|
158024
157901
|
const textOnly = texts.length > 0 ? [{ type: "text", text: texts.join(`
|
|
158025
157902
|
|
|
158026
157903
|
`) }] : [];
|
|
@@ -158250,7 +158127,7 @@ function normalizeMessagesForAPI(messages, tools = []) {
|
|
|
158250
158127
|
const attachmentMessage = checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_chair_sermon") ? rawAttachmentMessage.map(ensureSystemReminderWrap) : rawAttachmentMessage;
|
|
158251
158128
|
const lastMessage = last_default(result);
|
|
158252
158129
|
if (lastMessage?.type === "user") {
|
|
158253
|
-
result[result.length - 1] = attachmentMessage.reduce((p,
|
|
158130
|
+
result[result.length - 1] = attachmentMessage.reduce((p, c) => mergeUserMessagesAndToolResults(p, c), lastMessage);
|
|
158254
158131
|
return;
|
|
158255
158132
|
}
|
|
158256
158133
|
result.push(...attachmentMessage);
|
|
@@ -160138,9 +160015,9 @@ function ensureToolResultPairing(messages) {
|
|
|
160138
160015
|
continue;
|
|
160139
160016
|
}
|
|
160140
160017
|
const serverResultIds = new Set;
|
|
160141
|
-
for (const
|
|
160142
|
-
if (typeof
|
|
160143
|
-
serverResultIds.add(
|
|
160018
|
+
for (const c of msg.message.content) {
|
|
160019
|
+
if (typeof c !== "string" && "tool_use_id" in c && typeof c.tool_use_id === "string") {
|
|
160020
|
+
serverResultIds.add(c.tool_use_id);
|
|
160144
160021
|
}
|
|
160145
160022
|
}
|
|
160146
160023
|
const seenToolUseIds = new Set;
|
|
@@ -160873,7 +160750,7 @@ var init_withRetry = __esm(() => {
|
|
|
160873
160750
|
|
|
160874
160751
|
// src/services/policyLimits/types.ts
|
|
160875
160752
|
var PolicyLimitsResponseSchema;
|
|
160876
|
-
var
|
|
160753
|
+
var init_types11 = __esm(() => {
|
|
160877
160754
|
init_v4();
|
|
160878
160755
|
init_lazySchema();
|
|
160879
160756
|
PolicyLimitsResponseSchema = lazySchema(() => exports_external.object({
|
|
@@ -161268,7 +161145,7 @@ var init_policyLimits = __esm(() => {
|
|
|
161268
161145
|
init_slowOperations();
|
|
161269
161146
|
init_userAgent();
|
|
161270
161147
|
init_withRetry();
|
|
161271
|
-
|
|
161148
|
+
init_types11();
|
|
161272
161149
|
POLLING_INTERVAL_MS2 = 60 * 60 * 1000;
|
|
161273
161150
|
ESSENTIAL_TRAFFIC_DENY_ON_MISS = new Set(["allow_product_feedback"]);
|
|
161274
161151
|
});
|
|
@@ -161286,7 +161163,7 @@ var init_feedback = __esm(() => {
|
|
|
161286
161163
|
description: `Submit feedback about Claude Code`,
|
|
161287
161164
|
argumentHint: "[report]",
|
|
161288
161165
|
isEnabled: () => !(isEnvTruthy(process.env.CLAUDE_CODE_USE_BEDROCK) || isEnvTruthy(process.env.CLAUDE_CODE_USE_VERTEX) || isEnvTruthy(process.env.CLAUDE_CODE_USE_FOUNDRY) || isEnvTruthy(process.env.DISABLE_FEEDBACK_COMMAND) || isEnvTruthy(process.env.DISABLE_BUG_COMMAND) || isEssentialTrafficOnly() || process.env.USER_TYPE === "ant" || !isPolicyAllowed("allow_product_feedback")),
|
|
161289
|
-
load: () => import("./chunk-
|
|
161166
|
+
load: () => import("./chunk-b9gsdb4y.js")
|
|
161290
161167
|
};
|
|
161291
161168
|
feedback_default = feedback;
|
|
161292
161169
|
});
|
|
@@ -161300,7 +161177,7 @@ var init_clear = __esm(() => {
|
|
|
161300
161177
|
description: "Clear conversation history and free up context",
|
|
161301
161178
|
aliases: ["reset", "new"],
|
|
161302
161179
|
supportsNonInteractive: false,
|
|
161303
|
-
load: () => import("./chunk-
|
|
161180
|
+
load: () => import("./chunk-s9pz9w8z.js")
|
|
161304
161181
|
};
|
|
161305
161182
|
clear_default = clear;
|
|
161306
161183
|
});
|
|
@@ -161314,7 +161191,7 @@ var init_color2 = __esm(() => {
|
|
|
161314
161191
|
description: "Set the prompt bar color for this session",
|
|
161315
161192
|
immediate: true,
|
|
161316
161193
|
argumentHint: "<color|default>",
|
|
161317
|
-
load: () => import("./chunk-
|
|
161194
|
+
load: () => import("./chunk-9vte2cw2.js")
|
|
161318
161195
|
};
|
|
161319
161196
|
color_default = color2;
|
|
161320
161197
|
});
|
|
@@ -161414,7 +161291,7 @@ var init_copy = __esm(() => {
|
|
|
161414
161291
|
type: "local-jsx",
|
|
161415
161292
|
name: "copy",
|
|
161416
161293
|
description: "Copy Claude's last response to clipboard (or /copy N for the Nth-latest)",
|
|
161417
|
-
load: () => import("./chunk-
|
|
161294
|
+
load: () => import("./chunk-8fm85wdy.js")
|
|
161418
161295
|
};
|
|
161419
161296
|
copy_default = copy;
|
|
161420
161297
|
});
|
|
@@ -161441,7 +161318,7 @@ var init_desktop = __esm(() => {
|
|
|
161441
161318
|
get isHidden() {
|
|
161442
161319
|
return !isSupportedPlatform2();
|
|
161443
161320
|
},
|
|
161444
|
-
load: () => import("./chunk-
|
|
161321
|
+
load: () => import("./chunk-w2kgev13.js")
|
|
161445
161322
|
};
|
|
161446
161323
|
desktop_default = desktop;
|
|
161447
161324
|
});
|
|
@@ -161604,7 +161481,7 @@ var init_compact2 = __esm(() => {
|
|
|
161604
161481
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_COMPACT),
|
|
161605
161482
|
supportsNonInteractive: true,
|
|
161606
161483
|
argumentHint: "<optional custom summarization instructions>",
|
|
161607
|
-
load: () => import("./chunk-
|
|
161484
|
+
load: () => import("./chunk-26jzxc16.js")
|
|
161608
161485
|
};
|
|
161609
161486
|
compact_default = compact;
|
|
161610
161487
|
});
|
|
@@ -161617,7 +161494,7 @@ var init_config7 = __esm(() => {
|
|
|
161617
161494
|
type: "local-jsx",
|
|
161618
161495
|
name: "config",
|
|
161619
161496
|
description: "Open config panel",
|
|
161620
|
-
load: () => import("./chunk-
|
|
161497
|
+
load: () => import("./chunk-3qan8w8e.js")
|
|
161621
161498
|
};
|
|
161622
161499
|
config_default = config2;
|
|
161623
161500
|
});
|
|
@@ -161631,7 +161508,7 @@ var init_context3 = __esm(() => {
|
|
|
161631
161508
|
description: "Visualize current context usage as a colored grid",
|
|
161632
161509
|
isEnabled: () => !getIsNonInteractiveSession(),
|
|
161633
161510
|
type: "local-jsx",
|
|
161634
|
-
load: () => import("./chunk-
|
|
161511
|
+
load: () => import("./chunk-c56k9xjt.js")
|
|
161635
161512
|
};
|
|
161636
161513
|
contextNonInteractive = {
|
|
161637
161514
|
type: "local",
|
|
@@ -161644,7 +161521,7 @@ var init_context3 = __esm(() => {
|
|
|
161644
161521
|
isEnabled() {
|
|
161645
161522
|
return getIsNonInteractiveSession();
|
|
161646
161523
|
},
|
|
161647
|
-
load: () => import("./chunk-
|
|
161524
|
+
load: () => import("./chunk-w7qmyya1.js")
|
|
161648
161525
|
};
|
|
161649
161526
|
});
|
|
161650
161527
|
|
|
@@ -161663,7 +161540,7 @@ var init_cost = __esm(() => {
|
|
|
161663
161540
|
return isClaudeAISubscriber();
|
|
161664
161541
|
},
|
|
161665
161542
|
supportsNonInteractive: true,
|
|
161666
|
-
load: () => import("./chunk-
|
|
161543
|
+
load: () => import("./chunk-731chhqb.js")
|
|
161667
161544
|
};
|
|
161668
161545
|
cost_default = cost;
|
|
161669
161546
|
});
|
|
@@ -161675,7 +161552,7 @@ var init_diff2 = __esm(() => {
|
|
|
161675
161552
|
type: "local-jsx",
|
|
161676
161553
|
name: "diff",
|
|
161677
161554
|
description: "View uncommitted changes and per-turn diffs",
|
|
161678
|
-
load: () => import("./chunk-
|
|
161555
|
+
load: () => import("./chunk-xmv1mbda.js")
|
|
161679
161556
|
};
|
|
161680
161557
|
});
|
|
161681
161558
|
|
|
@@ -161694,7 +161571,7 @@ var init_doctor = __esm(() => {
|
|
|
161694
161571
|
description: "Diagnose and verify your Claude Code installation and settings",
|
|
161695
161572
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_DOCTOR_COMMAND),
|
|
161696
161573
|
type: "local-jsx",
|
|
161697
|
-
load: () => import("./chunk-
|
|
161574
|
+
load: () => import("./chunk-1gjhtpj5.js")
|
|
161698
161575
|
};
|
|
161699
161576
|
doctor_default = doctor;
|
|
161700
161577
|
});
|
|
@@ -161706,7 +161583,7 @@ var init_memory = __esm(() => {
|
|
|
161706
161583
|
type: "local-jsx",
|
|
161707
161584
|
name: "memory",
|
|
161708
161585
|
description: "Edit Claude memory files",
|
|
161709
|
-
load: () => import("./chunk-
|
|
161586
|
+
load: () => import("./chunk-hc1wtm8h.js")
|
|
161710
161587
|
};
|
|
161711
161588
|
memory_default = memory;
|
|
161712
161589
|
});
|
|
@@ -161718,7 +161595,7 @@ var init_help = __esm(() => {
|
|
|
161718
161595
|
type: "local-jsx",
|
|
161719
161596
|
name: "help",
|
|
161720
161597
|
description: "Show help and available commands",
|
|
161721
|
-
load: () => import("./chunk-
|
|
161598
|
+
load: () => import("./chunk-sdyzhdc1.js")
|
|
161722
161599
|
};
|
|
161723
161600
|
help_default = help;
|
|
161724
161601
|
});
|
|
@@ -161731,7 +161608,7 @@ var init_ide2 = __esm(() => {
|
|
|
161731
161608
|
name: "ide",
|
|
161732
161609
|
description: "Manage IDE integrations and show status",
|
|
161733
161610
|
argumentHint: "[open]",
|
|
161734
|
-
load: () => import("./chunk-
|
|
161611
|
+
load: () => import("./chunk-6qqn7nm7.js")
|
|
161735
161612
|
};
|
|
161736
161613
|
ide_default = ide;
|
|
161737
161614
|
});
|
|
@@ -162056,7 +161933,7 @@ var init_keybindings = __esm(() => {
|
|
|
162056
161933
|
isEnabled: () => isKeybindingCustomizationEnabled(),
|
|
162057
161934
|
supportsNonInteractive: false,
|
|
162058
161935
|
type: "local",
|
|
162059
|
-
load: () => import("./chunk-
|
|
161936
|
+
load: () => import("./chunk-nq8m9cpa.js")
|
|
162060
161937
|
};
|
|
162061
161938
|
keybindings_default = keybindings;
|
|
162062
161939
|
});
|
|
@@ -162067,7 +161944,7 @@ var login_default = () => ({
|
|
|
162067
161944
|
name: "login",
|
|
162068
161945
|
description: hasAnthropicApiKeyAuth() ? "Switch Anthropic accounts" : "Sign in with your Anthropic account",
|
|
162069
161946
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGIN_COMMAND),
|
|
162070
|
-
load: () => import("./chunk-
|
|
161947
|
+
load: () => import("./chunk-yb4vwgj7.js")
|
|
162071
161948
|
});
|
|
162072
161949
|
var init_login = __esm(() => {
|
|
162073
161950
|
init_auth();
|
|
@@ -162083,7 +161960,7 @@ var init_logout2 = __esm(() => {
|
|
|
162083
161960
|
name: "logout",
|
|
162084
161961
|
description: "Sign out from your Anthropic account",
|
|
162085
161962
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGOUT_COMMAND),
|
|
162086
|
-
load: () => import("./chunk-
|
|
161963
|
+
load: () => import("./chunk-pk76xtrm.js")
|
|
162087
161964
|
};
|
|
162088
161965
|
});
|
|
162089
161966
|
|
|
@@ -162097,7 +161974,7 @@ var init_install_github_app = __esm(() => {
|
|
|
162097
161974
|
description: "Set up Claude GitHub Actions for a repository",
|
|
162098
161975
|
availability: ["claude-ai", "console"],
|
|
162099
161976
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_INSTALL_GITHUB_APP_COMMAND),
|
|
162100
|
-
load: () => import("./chunk-
|
|
161977
|
+
load: () => import("./chunk-2438dcc3.js")
|
|
162101
161978
|
};
|
|
162102
161979
|
install_github_app_default = installGitHubApp;
|
|
162103
161980
|
});
|
|
@@ -162111,7 +161988,7 @@ var init_install_slack_app = __esm(() => {
|
|
|
162111
161988
|
description: "Install the Claude Slack app",
|
|
162112
161989
|
availability: ["claude-ai"],
|
|
162113
161990
|
supportsNonInteractive: false,
|
|
162114
|
-
load: () => import("./chunk-
|
|
161991
|
+
load: () => import("./chunk-2apnw8cf.js")
|
|
162115
161992
|
};
|
|
162116
161993
|
install_slack_app_default = installSlackApp;
|
|
162117
161994
|
});
|
|
@@ -162131,7 +162008,7 @@ var init_mcp = __esm(() => {
|
|
|
162131
162008
|
description: "Manage MCP servers",
|
|
162132
162009
|
immediate: true,
|
|
162133
162010
|
argumentHint: "[enable|disable [server-name]]",
|
|
162134
|
-
load: () => import("./chunk-
|
|
162011
|
+
load: () => import("./chunk-y23m4n37.js")
|
|
162135
162012
|
};
|
|
162136
162013
|
mcp_default = mcp;
|
|
162137
162014
|
});
|
|
@@ -162144,7 +162021,7 @@ var init_mobile = __esm(() => {
|
|
|
162144
162021
|
name: "mobile",
|
|
162145
162022
|
aliases: ["ios", "android"],
|
|
162146
162023
|
description: "Show QR code to download the Claude mobile app",
|
|
162147
|
-
load: () => import("./chunk-
|
|
162024
|
+
load: () => import("./chunk-y7zkx124.js")
|
|
162148
162025
|
};
|
|
162149
162026
|
mobile_default = mobile;
|
|
162150
162027
|
});
|
|
@@ -162260,7 +162137,7 @@ var init_release_notes = __esm(() => {
|
|
|
162260
162137
|
name: "release-notes",
|
|
162261
162138
|
type: "local",
|
|
162262
162139
|
supportsNonInteractive: true,
|
|
162263
|
-
load: () => import("./chunk-
|
|
162140
|
+
load: () => import("./chunk-6b046n5x.js")
|
|
162264
162141
|
};
|
|
162265
162142
|
release_notes_default = releaseNotes;
|
|
162266
162143
|
});
|
|
@@ -162274,7 +162151,7 @@ var init_rename = __esm(() => {
|
|
|
162274
162151
|
description: "Rename the current conversation",
|
|
162275
162152
|
immediate: true,
|
|
162276
162153
|
argumentHint: "[name]",
|
|
162277
|
-
load: () => import("./chunk-
|
|
162154
|
+
load: () => import("./chunk-2821abx0.js")
|
|
162278
162155
|
};
|
|
162279
162156
|
rename_default = rename7;
|
|
162280
162157
|
});
|
|
@@ -162288,7 +162165,7 @@ var init_resume = __esm(() => {
|
|
|
162288
162165
|
description: "Resume a previous conversation",
|
|
162289
162166
|
aliases: ["continue"],
|
|
162290
162167
|
argumentHint: "[conversation id or search term]",
|
|
162291
|
-
load: () => import("./chunk-
|
|
162168
|
+
load: () => import("./chunk-n2ag0df4.js")
|
|
162292
162169
|
};
|
|
162293
162170
|
resume_default = resume;
|
|
162294
162171
|
});
|
|
@@ -162344,7 +162221,7 @@ var init_review = __esm(() => {
|
|
|
162344
162221
|
name: "ultrareview",
|
|
162345
162222
|
description: `~10\u201320 min \xB7 Finds and verifies bugs in your branch. Runs in Claude Code on the web. See ${CCR_TERMS_URL}`,
|
|
162346
162223
|
isEnabled: () => isUltrareviewEnabled(),
|
|
162347
|
-
load: () => import("./chunk-
|
|
162224
|
+
load: () => import("./chunk-w3wnk6jn.js")
|
|
162348
162225
|
};
|
|
162349
162226
|
review_default = review;
|
|
162350
162227
|
});
|
|
@@ -162362,7 +162239,7 @@ var init_session = __esm(() => {
|
|
|
162362
162239
|
get isHidden() {
|
|
162363
162240
|
return !getIsRemoteMode();
|
|
162364
162241
|
},
|
|
162365
|
-
load: () => import("./chunk-
|
|
162242
|
+
load: () => import("./chunk-y9aatm1y.js")
|
|
162366
162243
|
};
|
|
162367
162244
|
session_default = session;
|
|
162368
162245
|
});
|
|
@@ -162380,7 +162257,7 @@ var init_skills = __esm(() => {
|
|
|
162380
162257
|
type: "local-jsx",
|
|
162381
162258
|
name: "skills",
|
|
162382
162259
|
description: "List available skills",
|
|
162383
|
-
load: () => import("./chunk-
|
|
162260
|
+
load: () => import("./chunk-sw272bd9.js")
|
|
162384
162261
|
};
|
|
162385
162262
|
skills_default = skills;
|
|
162386
162263
|
});
|
|
@@ -162393,7 +162270,7 @@ var init_status2 = __esm(() => {
|
|
|
162393
162270
|
name: "status",
|
|
162394
162271
|
description: "Show Claude Code status including version, model, account, API connectivity, and tool statuses",
|
|
162395
162272
|
immediate: true,
|
|
162396
|
-
load: () => import("./chunk-
|
|
162273
|
+
load: () => import("./chunk-nt336bn5.js")
|
|
162397
162274
|
};
|
|
162398
162275
|
status_default = status;
|
|
162399
162276
|
});
|
|
@@ -162406,7 +162283,7 @@ var init_tasks3 = __esm(() => {
|
|
|
162406
162283
|
name: "tasks",
|
|
162407
162284
|
aliases: ["bashes"],
|
|
162408
162285
|
description: "List and manage background tasks",
|
|
162409
|
-
load: () => import("./chunk-
|
|
162286
|
+
load: () => import("./chunk-pbgtahw1.js")
|
|
162410
162287
|
};
|
|
162411
162288
|
tasks_default = tasks;
|
|
162412
162289
|
});
|
|
@@ -162670,7 +162547,7 @@ var init_terminalSetup2 = __esm(() => {
|
|
|
162670
162547
|
name: "terminal-setup",
|
|
162671
162548
|
description: env.terminal === "Apple_Terminal" ? "Enable Option+Enter key binding for newlines and visual bell" : "Install Shift+Enter key binding for newlines",
|
|
162672
162549
|
isHidden: env.terminal !== null && env.terminal in NATIVE_CSIU_TERMINALS,
|
|
162673
|
-
load: () => import("./chunk-
|
|
162550
|
+
load: () => import("./chunk-bc7754kx.js")
|
|
162674
162551
|
};
|
|
162675
162552
|
terminalSetup_default = terminalSetup;
|
|
162676
162553
|
});
|
|
@@ -162683,7 +162560,7 @@ var init_usage = __esm(() => {
|
|
|
162683
162560
|
name: "usage",
|
|
162684
162561
|
description: "Show plan usage limits",
|
|
162685
162562
|
availability: ["claude-ai"],
|
|
162686
|
-
load: () => import("./chunk-
|
|
162563
|
+
load: () => import("./chunk-zw1rsq5n.js")
|
|
162687
162564
|
};
|
|
162688
162565
|
});
|
|
162689
162566
|
|
|
@@ -162694,7 +162571,7 @@ var init_theme2 = __esm(() => {
|
|
|
162694
162571
|
type: "local-jsx",
|
|
162695
162572
|
name: "theme",
|
|
162696
162573
|
description: "Change the theme",
|
|
162697
|
-
load: () => import("./chunk-
|
|
162574
|
+
load: () => import("./chunk-jz10r9rv.js")
|
|
162698
162575
|
};
|
|
162699
162576
|
theme_default = theme;
|
|
162700
162577
|
});
|
|
@@ -162707,7 +162584,7 @@ var init_vim = __esm(() => {
|
|
|
162707
162584
|
description: "Toggle between Vim and Normal editing modes",
|
|
162708
162585
|
supportsNonInteractive: false,
|
|
162709
162586
|
type: "local",
|
|
162710
|
-
load: () => import("./chunk-
|
|
162587
|
+
load: () => import("./chunk-qjk1jnzh.js")
|
|
162711
162588
|
};
|
|
162712
162589
|
vim_default = command5;
|
|
162713
162590
|
});
|
|
@@ -162721,7 +162598,7 @@ var init_thinkback = __esm(() => {
|
|
|
162721
162598
|
name: "think-back",
|
|
162722
162599
|
description: "Your 2025 Claude Code Year in Review",
|
|
162723
162600
|
isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
|
|
162724
|
-
load: () => import("./chunk-
|
|
162601
|
+
load: () => import("./chunk-cfq4ya37.js")
|
|
162725
162602
|
};
|
|
162726
162603
|
thinkback_default = thinkback;
|
|
162727
162604
|
});
|
|
@@ -162737,7 +162614,7 @@ var init_thinkback_play = __esm(() => {
|
|
|
162737
162614
|
isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
|
|
162738
162615
|
isHidden: true,
|
|
162739
162616
|
supportsNonInteractive: false,
|
|
162740
|
-
load: () => import("./chunk-
|
|
162617
|
+
load: () => import("./chunk-rcmqhhx2.js")
|
|
162741
162618
|
};
|
|
162742
162619
|
thinkback_play_default = thinkbackPlay;
|
|
162743
162620
|
});
|
|
@@ -162750,7 +162627,7 @@ var init_permissions3 = __esm(() => {
|
|
|
162750
162627
|
name: "permissions",
|
|
162751
162628
|
aliases: ["allowed-tools"],
|
|
162752
162629
|
description: "Manage allow & deny tool permission rules",
|
|
162753
|
-
load: () => import("./chunk-
|
|
162630
|
+
load: () => import("./chunk-pwfc5vts.js")
|
|
162754
162631
|
};
|
|
162755
162632
|
permissions_default = permissions;
|
|
162756
162633
|
});
|
|
@@ -162763,7 +162640,7 @@ var init_plan = __esm(() => {
|
|
|
162763
162640
|
name: "plan",
|
|
162764
162641
|
description: "Enable plan mode or view the current session plan",
|
|
162765
162642
|
argumentHint: "[open|<description>]",
|
|
162766
|
-
load: () => import("./chunk-
|
|
162643
|
+
load: () => import("./chunk-jjxy0jze.js")
|
|
162767
162644
|
};
|
|
162768
162645
|
plan_default = plan;
|
|
162769
162646
|
});
|
|
@@ -162796,7 +162673,7 @@ var init_fast = __esm(() => {
|
|
|
162796
162673
|
get immediate() {
|
|
162797
162674
|
return shouldInferenceConfigCommandBeImmediate();
|
|
162798
162675
|
},
|
|
162799
|
-
load: () => import("./chunk-
|
|
162676
|
+
load: () => import("./chunk-m6jw7q5d.js")
|
|
162800
162677
|
};
|
|
162801
162678
|
fast_default = fast;
|
|
162802
162679
|
});
|
|
@@ -162819,8 +162696,20 @@ var init_passes = __esm(() => {
|
|
|
162819
162696
|
const { eligible, hasCache } = checkCachedPassesEligibility();
|
|
162820
162697
|
return !eligible || !hasCache;
|
|
162821
162698
|
},
|
|
162822
|
-
load: () => import("./chunk-
|
|
162699
|
+
load: () => import("./chunk-r8amcnbm.js")
|
|
162700
|
+
};
|
|
162701
|
+
});
|
|
162702
|
+
|
|
162703
|
+
// src/commands/permission/index.ts
|
|
162704
|
+
var permission, permission_default;
|
|
162705
|
+
var init_permission = __esm(() => {
|
|
162706
|
+
permission = {
|
|
162707
|
+
type: "local-jsx",
|
|
162708
|
+
name: "permission",
|
|
162709
|
+
description: "Switch between Default and Full Access permission modes",
|
|
162710
|
+
load: () => import("./chunk-nzd11saa.js")
|
|
162823
162711
|
};
|
|
162712
|
+
permission_default = permission;
|
|
162824
162713
|
});
|
|
162825
162714
|
|
|
162826
162715
|
// src/commands/privacy-settings/index.ts
|
|
@@ -162834,7 +162723,7 @@ var init_privacy_settings = __esm(() => {
|
|
|
162834
162723
|
isEnabled: () => {
|
|
162835
162724
|
return isConsumerSubscriber();
|
|
162836
162725
|
},
|
|
162837
|
-
load: () => import("./chunk-
|
|
162726
|
+
load: () => import("./chunk-4r4n63xq.js")
|
|
162838
162727
|
};
|
|
162839
162728
|
privacy_settings_default = privacySettings;
|
|
162840
162729
|
});
|
|
@@ -162847,7 +162736,7 @@ var init_hooks = __esm(() => {
|
|
|
162847
162736
|
name: "hooks",
|
|
162848
162737
|
description: "View hook configurations for tool events",
|
|
162849
162738
|
immediate: true,
|
|
162850
|
-
load: () => import("./chunk-
|
|
162739
|
+
load: () => import("./chunk-wqrtcbsj.js")
|
|
162851
162740
|
};
|
|
162852
162741
|
hooks_default = hooks;
|
|
162853
162742
|
});
|
|
@@ -162875,7 +162764,7 @@ var init_branch = __esm(() => {
|
|
|
162875
162764
|
aliases: ["fork"],
|
|
162876
162765
|
description: "Create a branch of the current conversation at this point",
|
|
162877
162766
|
argumentHint: "[name]",
|
|
162878
|
-
load: () => import("./chunk-
|
|
162767
|
+
load: () => import("./chunk-feeh737b.js")
|
|
162879
162768
|
};
|
|
162880
162769
|
branch_default = branch;
|
|
162881
162770
|
});
|
|
@@ -162887,7 +162776,7 @@ var init_agents = __esm(() => {
|
|
|
162887
162776
|
type: "local-jsx",
|
|
162888
162777
|
name: "agents",
|
|
162889
162778
|
description: "Manage agent configurations",
|
|
162890
|
-
load: () => import("./chunk-
|
|
162779
|
+
load: () => import("./chunk-ps9yvxr8.js")
|
|
162891
162780
|
};
|
|
162892
162781
|
agents_default = agents;
|
|
162893
162782
|
});
|
|
@@ -162901,7 +162790,7 @@ var init_plugin2 = __esm(() => {
|
|
|
162901
162790
|
aliases: ["plugins", "marketplace"],
|
|
162902
162791
|
description: "Manage Claude Code plugins",
|
|
162903
162792
|
immediate: true,
|
|
162904
|
-
load: () => import("./chunk-
|
|
162793
|
+
load: () => import("./chunk-nkhv534m.js")
|
|
162905
162794
|
};
|
|
162906
162795
|
plugin_default = plugin;
|
|
162907
162796
|
});
|
|
@@ -162914,7 +162803,7 @@ var init_reload_plugins = __esm(() => {
|
|
|
162914
162803
|
name: "reload-plugins",
|
|
162915
162804
|
description: "Activate pending plugin changes in the current session",
|
|
162916
162805
|
supportsNonInteractive: false,
|
|
162917
|
-
load: () => import("./chunk-
|
|
162806
|
+
load: () => import("./chunk-6dd4e918.js")
|
|
162918
162807
|
};
|
|
162919
162808
|
reload_plugins_default = reloadPlugins;
|
|
162920
162809
|
});
|
|
@@ -162943,7 +162832,7 @@ var init_heapdump = __esm(() => {
|
|
|
162943
162832
|
description: "Dump the JS heap to ~/Desktop",
|
|
162944
162833
|
isHidden: true,
|
|
162945
162834
|
supportsNonInteractive: true,
|
|
162946
|
-
load: () => import("./chunk-
|
|
162835
|
+
load: () => import("./chunk-54cefep6.js")
|
|
162947
162836
|
};
|
|
162948
162837
|
heapdump_default = heapDump;
|
|
162949
162838
|
});
|
|
@@ -162956,7 +162845,7 @@ var init_mock_limits = __esm(() => {
|
|
|
162956
162845
|
|
|
162957
162846
|
// src/bridge/types.ts
|
|
162958
162847
|
var DEFAULT_SESSION_TIMEOUT_MS, BRIDGE_LOGIN_INSTRUCTION = "Remote Control is only available with claude.ai subscriptions. Please use `/login` to sign in with your claude.ai account.", BRIDGE_LOGIN_ERROR, REMOTE_CONTROL_DISCONNECTED_MSG = "Remote Control disconnected.";
|
|
162959
|
-
var
|
|
162848
|
+
var init_types12 = __esm(() => {
|
|
162960
162849
|
DEFAULT_SESSION_TIMEOUT_MS = 24 * 60 * 60 * 1000;
|
|
162961
162850
|
BRIDGE_LOGIN_ERROR = `Error: You must be logged in to use Remote Control.
|
|
162962
162851
|
|
|
@@ -163204,7 +163093,7 @@ var BETA_HEADER = "environments-2025-11-01", SAFE_ID_PATTERN, BridgeFatalError;
|
|
|
163204
163093
|
var init_bridgeApi = __esm(() => {
|
|
163205
163094
|
init_axios();
|
|
163206
163095
|
init_debugUtils();
|
|
163207
|
-
|
|
163096
|
+
init_types12();
|
|
163208
163097
|
SAFE_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
|
|
163209
163098
|
BridgeFatalError = class BridgeFatalError extends Error {
|
|
163210
163099
|
status;
|
|
@@ -163438,7 +163327,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
163438
163327
|
var call3 = async () => {
|
|
163439
163328
|
return {
|
|
163440
163329
|
type: "text",
|
|
163441
|
-
value: `${"1.0.3-fork.
|
|
163330
|
+
value: `${"1.0.3-fork.e907883"} (built ${"2026-04-02T15:32:51.750Z"})`
|
|
163442
163331
|
};
|
|
163443
163332
|
}, version, version_default;
|
|
163444
163333
|
var init_version = __esm(() => {
|
|
@@ -163514,7 +163403,7 @@ var init_sandbox_toggle = __esm(() => {
|
|
|
163514
163403
|
},
|
|
163515
163404
|
immediate: true,
|
|
163516
163405
|
type: "local-jsx",
|
|
163517
|
-
load: () => import("./chunk-
|
|
163406
|
+
load: () => import("./chunk-tqg3vc07.js")
|
|
163518
163407
|
};
|
|
163519
163408
|
sandbox_toggle_default = command6;
|
|
163520
163409
|
});
|
|
@@ -163529,7 +163418,7 @@ var init_chrome = __esm(() => {
|
|
|
163529
163418
|
availability: ["claude-ai"],
|
|
163530
163419
|
isEnabled: () => !getIsNonInteractiveSession(),
|
|
163531
163420
|
type: "local-jsx",
|
|
163532
|
-
load: () => import("./chunk-
|
|
163421
|
+
load: () => import("./chunk-hp32j0y0.js")
|
|
163533
163422
|
};
|
|
163534
163423
|
chrome_default = command7;
|
|
163535
163424
|
});
|
|
@@ -163716,7 +163605,7 @@ async function writeSkillFiles(dir, files2) {
|
|
|
163716
163605
|
}
|
|
163717
163606
|
await Promise.all([...byParent].map(async ([parent, entries]) => {
|
|
163718
163607
|
await mkdir21(parent, { recursive: true, mode: 448 });
|
|
163719
|
-
await Promise.all(entries.map(([p,
|
|
163608
|
+
await Promise.all(entries.map(([p, c]) => safeWriteFile(p, c)));
|
|
163720
163609
|
}));
|
|
163721
163610
|
}
|
|
163722
163611
|
async function safeWriteFile(p, content) {
|
|
@@ -163770,7 +163659,7 @@ var init_exit = __esm(() => {
|
|
|
163770
163659
|
aliases: ["quit"],
|
|
163771
163660
|
description: "Exit the REPL",
|
|
163772
163661
|
immediate: true,
|
|
163773
|
-
load: () => import("./chunk-
|
|
163662
|
+
load: () => import("./chunk-y9sd7hzk.js")
|
|
163774
163663
|
};
|
|
163775
163664
|
exit_default = exit;
|
|
163776
163665
|
});
|
|
@@ -163783,7 +163672,7 @@ var init_export = __esm(() => {
|
|
|
163783
163672
|
name: "export",
|
|
163784
163673
|
description: "Export the current conversation to a file or clipboard",
|
|
163785
163674
|
argumentHint: "[filename]",
|
|
163786
|
-
load: () => import("./chunk-
|
|
163675
|
+
load: () => import("./chunk-vndc6hwb.js")
|
|
163787
163676
|
};
|
|
163788
163677
|
export_default = exportCommand;
|
|
163789
163678
|
});
|
|
@@ -163803,7 +163692,7 @@ var init_model2 = __esm(() => {
|
|
|
163803
163692
|
get immediate() {
|
|
163804
163693
|
return shouldInferenceConfigCommandBeImmediate();
|
|
163805
163694
|
},
|
|
163806
|
-
load: () => import("./chunk-
|
|
163695
|
+
load: () => import("./chunk-qawxwdx7.js")
|
|
163807
163696
|
};
|
|
163808
163697
|
});
|
|
163809
163698
|
|
|
@@ -163816,7 +163705,7 @@ var init_tag = __esm(() => {
|
|
|
163816
163705
|
description: "Toggle a searchable tag on the current session",
|
|
163817
163706
|
isEnabled: () => process.env.USER_TYPE === "ant",
|
|
163818
163707
|
argumentHint: "<tag-name>",
|
|
163819
|
-
load: () => import("./chunk-
|
|
163708
|
+
load: () => import("./chunk-30j08xb7.js")
|
|
163820
163709
|
};
|
|
163821
163710
|
tag_default = tag;
|
|
163822
163711
|
});
|
|
@@ -163847,7 +163736,7 @@ var init_remote_env = __esm(() => {
|
|
|
163847
163736
|
get isHidden() {
|
|
163848
163737
|
return !isClaudeAISubscriber() || !isPolicyAllowed("allow_remote_sessions");
|
|
163849
163738
|
},
|
|
163850
|
-
load: () => import("./chunk-
|
|
163739
|
+
load: () => import("./chunk-ndx5vged.js")
|
|
163851
163740
|
};
|
|
163852
163741
|
});
|
|
163853
163742
|
|
|
@@ -163862,7 +163751,7 @@ var init_upgrade = __esm(() => {
|
|
|
163862
163751
|
description: "Upgrade to Max for higher rate limits and more Opus",
|
|
163863
163752
|
availability: ["claude-ai"],
|
|
163864
163753
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_UPGRADE_COMMAND) && getSubscriptionType() !== "enterprise",
|
|
163865
|
-
load: () => import("./chunk-
|
|
163754
|
+
load: () => import("./chunk-pv5hyepe.js")
|
|
163866
163755
|
};
|
|
163867
163756
|
upgrade_default = upgrade;
|
|
163868
163757
|
});
|
|
@@ -163882,7 +163771,7 @@ var init_rate_limit_options = __esm(() => {
|
|
|
163882
163771
|
return true;
|
|
163883
163772
|
},
|
|
163884
163773
|
isHidden: true,
|
|
163885
|
-
load: () => import("./chunk-
|
|
163774
|
+
load: () => import("./chunk-35s627hz.js")
|
|
163886
163775
|
};
|
|
163887
163776
|
rate_limit_options_default = rateLimitOptions;
|
|
163888
163777
|
});
|
|
@@ -163924,7 +163813,7 @@ var init_effort2 = __esm(() => {
|
|
|
163924
163813
|
get immediate() {
|
|
163925
163814
|
return shouldInferenceConfigCommandBeImmediate();
|
|
163926
163815
|
},
|
|
163927
|
-
load: () => import("./chunk-
|
|
163816
|
+
load: () => import("./chunk-0k68rhv0.js")
|
|
163928
163817
|
};
|
|
163929
163818
|
});
|
|
163930
163819
|
|
|
@@ -163935,7 +163824,7 @@ var init_stats = __esm(() => {
|
|
|
163935
163824
|
type: "local-jsx",
|
|
163936
163825
|
name: "stats",
|
|
163937
163826
|
description: "Show your Claude Code usage statistics and activity",
|
|
163938
|
-
load: () => import("./chunk-
|
|
163827
|
+
load: () => import("./chunk-tqbt95fc.js")
|
|
163939
163828
|
};
|
|
163940
163829
|
stats_default = stats;
|
|
163941
163830
|
});
|
|
@@ -163971,6 +163860,23 @@ var init_agents_platform = __esm(() => {
|
|
|
163971
163860
|
agents_platform_default = { name: "agents-platform", type: "local", isEnabled: () => false };
|
|
163972
163861
|
});
|
|
163973
163862
|
|
|
163863
|
+
// src/commands/buddy/index.ts
|
|
163864
|
+
var exports_buddy = {};
|
|
163865
|
+
__export(exports_buddy, {
|
|
163866
|
+
default: () => buddy_default
|
|
163867
|
+
});
|
|
163868
|
+
var buddy, buddy_default;
|
|
163869
|
+
var init_buddy = __esm(() => {
|
|
163870
|
+
buddy = {
|
|
163871
|
+
type: "local",
|
|
163872
|
+
name: "buddy",
|
|
163873
|
+
description: "View and manage your companion buddy",
|
|
163874
|
+
supportsNonInteractive: false,
|
|
163875
|
+
load: () => import("./chunk-24xvt6zv.js")
|
|
163876
|
+
};
|
|
163877
|
+
buddy_default = buddy;
|
|
163878
|
+
});
|
|
163879
|
+
|
|
163974
163880
|
// src/commands.ts
|
|
163975
163881
|
async function getSkills(cwd) {
|
|
163976
163882
|
try {
|
|
@@ -164034,13 +163940,13 @@ async function getCommands(cwd) {
|
|
|
164034
163940
|
if (dynamicSkills2.length === 0) {
|
|
164035
163941
|
return baseCommands;
|
|
164036
163942
|
}
|
|
164037
|
-
const baseCommandNames = new Set(baseCommands.map((
|
|
163943
|
+
const baseCommandNames = new Set(baseCommands.map((c) => c.name));
|
|
164038
163944
|
const uniqueDynamicSkills = dynamicSkills2.filter((s) => !baseCommandNames.has(s.name) && meetsAvailabilityRequirement(s) && isCommandEnabled(s));
|
|
164039
163945
|
if (uniqueDynamicSkills.length === 0) {
|
|
164040
163946
|
return baseCommands;
|
|
164041
163947
|
}
|
|
164042
|
-
const builtInNames = new Set(COMMANDS().map((
|
|
164043
|
-
const insertIndex = baseCommands.findIndex((
|
|
163948
|
+
const builtInNames = new Set(COMMANDS().map((c) => c.name));
|
|
163949
|
+
const insertIndex = baseCommands.findIndex((c) => builtInNames.has(c.name));
|
|
164044
163950
|
if (insertIndex === -1) {
|
|
164045
163951
|
return [...baseCommands, ...uniqueDynamicSkills];
|
|
164046
163952
|
}
|
|
@@ -164114,7 +164020,7 @@ function formatDescriptionWithSource(cmd) {
|
|
|
164114
164020
|
}
|
|
164115
164021
|
return `${cmd.description} (${getSettingSourceName(cmd.source)})`;
|
|
164116
164022
|
}
|
|
164117
|
-
var agentsPlatform, proactive = null, briefCommand = null, assistantCommand = null, bridge = null, remoteControlServerCommand = null, voiceCommand = null, forceSnip = null, workflowsCmd = null, webCmd = null, clearSkillIndexCache = null, subscribePr = null, ultraplan = null, torch = null, peersCmd = null, forkCmd = null,
|
|
164023
|
+
var agentsPlatform, proactive = null, briefCommand = null, assistantCommand = null, bridge = null, remoteControlServerCommand = null, voiceCommand = null, forceSnip = null, workflowsCmd = null, webCmd = null, clearSkillIndexCache = null, subscribePr = null, ultraplan = null, torch = null, peersCmd = null, forkCmd = null, buddy2, usageReport, INTERNAL_ONLY_COMMANDS, COMMANDS, builtInCommandNames, getWorkflowCommands = null, loadAllCommands, getSkillToolCommands, getSlashCommandToolSkills, REMOTE_SAFE_COMMANDS, BRIDGE_SAFE_COMMANDS;
|
|
164118
164024
|
var init_commands2 = __esm(() => {
|
|
164119
164025
|
init_add_dir();
|
|
164120
164026
|
init_autofix_pr();
|
|
@@ -164173,6 +164079,7 @@ var init_commands2 = __esm(() => {
|
|
|
164173
164079
|
init_plan();
|
|
164174
164080
|
init_fast();
|
|
164175
164081
|
init_passes();
|
|
164082
|
+
init_permission();
|
|
164176
164083
|
init_privacy_settings();
|
|
164177
164084
|
init_hooks();
|
|
164178
164085
|
init_files2();
|
|
@@ -164222,6 +164129,7 @@ var init_commands2 = __esm(() => {
|
|
|
164222
164129
|
init_command();
|
|
164223
164130
|
init_command();
|
|
164224
164131
|
agentsPlatform = process.env.USER_TYPE === "ant" ? (init_agents_platform(), __toCommonJS(exports_agents_platform)).default : null;
|
|
164132
|
+
buddy2 = (init_buddy(), __toCommonJS(exports_buddy)).default;
|
|
164225
164133
|
usageReport = {
|
|
164226
164134
|
type: "prompt",
|
|
164227
164135
|
name: "insights",
|
|
@@ -164230,7 +164138,7 @@ var init_commands2 = __esm(() => {
|
|
|
164230
164138
|
progressMessage: "analyzing your sessions",
|
|
164231
164139
|
source: "builtin",
|
|
164232
164140
|
async getPromptForCommand(args, context2) {
|
|
164233
|
-
const real = (await import("./chunk-
|
|
164141
|
+
const real = (await import("./chunk-cn2204je.js")).default;
|
|
164234
164142
|
if (real.type !== "prompt")
|
|
164235
164143
|
throw new Error("unreachable");
|
|
164236
164144
|
return real.getPromptForCommand(args, context2);
|
|
@@ -164330,7 +164238,7 @@ var init_commands2 = __esm(() => {
|
|
|
164330
164238
|
vim_default,
|
|
164331
164239
|
...webCmd ? [webCmd] : [],
|
|
164332
164240
|
...forkCmd ? [forkCmd] : [],
|
|
164333
|
-
...
|
|
164241
|
+
...buddy2 ? [buddy2] : [],
|
|
164334
164242
|
...proactive ? [proactive] : [],
|
|
164335
164243
|
...briefCommand ? [briefCommand] : [],
|
|
164336
164244
|
...assistantCommand ? [assistantCommand] : [],
|
|
@@ -164339,6 +164247,7 @@ var init_commands2 = __esm(() => {
|
|
|
164339
164247
|
...voiceCommand ? [voiceCommand] : [],
|
|
164340
164248
|
thinkback_default,
|
|
164341
164249
|
thinkback_play_default,
|
|
164250
|
+
permission_default,
|
|
164342
164251
|
permissions_default,
|
|
164343
164252
|
plan_default,
|
|
164344
164253
|
privacy_settings_default,
|
|
@@ -164414,7 +164323,7 @@ var init_commands2 = __esm(() => {
|
|
|
164414
164323
|
summary_default,
|
|
164415
164324
|
release_notes_default,
|
|
164416
164325
|
files_default
|
|
164417
|
-
].filter((
|
|
164326
|
+
].filter((c) => c !== null));
|
|
164418
164327
|
});
|
|
164419
164328
|
|
|
164420
164329
|
// src/utils/getWorktreePaths.ts
|
|
@@ -165934,7 +165843,7 @@ async function trackSessionBranchingAnalytics(logs) {
|
|
|
165934
165843
|
if (maxCount <= 1) {
|
|
165935
165844
|
return;
|
|
165936
165845
|
}
|
|
165937
|
-
const branchCounts = Array.from(sessionIdCounts.values()).filter((
|
|
165846
|
+
const branchCounts = Array.from(sessionIdCounts.values()).filter((c) => c > 1);
|
|
165938
165847
|
const sessionsWithBranches = branchCounts.length;
|
|
165939
165848
|
const totalBranches = branchCounts.reduce((sum, count3) => sum + count3, 0);
|
|
165940
165849
|
logEvent("tengu_session_forked_branches_fetched", {
|
|
@@ -167411,7 +167320,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
167411
167320
|
init_settings2();
|
|
167412
167321
|
init_slowOperations();
|
|
167413
167322
|
init_uuid();
|
|
167414
|
-
VERSION = typeof MACRO !== "undefined" ? "1.0.3-fork.
|
|
167323
|
+
VERSION = typeof MACRO !== "undefined" ? "1.0.3-fork.e907883" : "unknown";
|
|
167415
167324
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
167416
167325
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
167417
167326
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -168618,7 +168527,7 @@ var init_filesystem = __esm(() => {
|
|
|
168618
168527
|
});
|
|
168619
168528
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
168620
168529
|
const nonce = randomBytes14(16).toString("hex");
|
|
168621
|
-
return join72(getClaudeTempDir(), "bundled-skills", "1.0.3-fork.
|
|
168530
|
+
return join72(getClaudeTempDir(), "bundled-skills", "1.0.3-fork.e907883", nonce);
|
|
168622
168531
|
});
|
|
168623
168532
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
168624
168533
|
});
|
|
@@ -169899,7 +169808,7 @@ var init_ssrfGuard = () => {};
|
|
|
169899
169808
|
|
|
169900
169809
|
// src/utils/hooks/execHttpHook.ts
|
|
169901
169810
|
async function getSandboxProxyConfig() {
|
|
169902
|
-
const { SandboxManager: SandboxManager3 } = await import("./chunk-
|
|
169811
|
+
const { SandboxManager: SandboxManager3 } = await import("./chunk-6pj4v4qk.js");
|
|
169903
169812
|
if (!SandboxManager3.isSandboxingEnabled()) {
|
|
169904
169813
|
return;
|
|
169905
169814
|
}
|
|
@@ -173628,4 +173537,4 @@ var init_sandbox_adapter = __esm(() => {
|
|
|
173628
173537
|
};
|
|
173629
173538
|
});
|
|
173630
173539
|
|
|
173631
|
-
export { LATEST_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, ErrorCode, EmptyResultSchema, InitializeRequestSchema, InitializedNotificationSchema, CreateTaskResultSchema, ResourceListChangedNotificationSchema, PromptListChangedNotificationSchema, ListToolsRequestSchema, CallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, ElicitRequestSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ListRootsResultSchema, McpError, init_types5 as init_types, ReadBuffer, serializeMessage, init_stdio, readCustomApiStorage, writeCustomApiStorage, addSavedModelForProvider, init_customApiStorage, getEmptyToolPermissionContext, toolMatchesName, findToolByName, init_Tool, BASH_TOOL_NAME, init_toolName, GREP_TOOL_NAME, init_prompt4 as init_prompt, FILE_EDIT_TOOL_NAME, CLAUDE_FOLDER_PERMISSION_PATTERN, GLOBAL_CLAUDE_FOLDER_PERMISSION_PATTERN, init_constants5 as init_constants, FILE_READ_TOOL_NAME, init_prompt5 as init_prompt1, init_prompt6 as init_prompt2, init_prompt7 as init_prompt3, init_constants6 as init_constants1, MessageResponse, init_MessageResponse, validateDirectoryForWorkspace, addDirHelpMessage, init_validation2 as init_validation, createStore, init_store, init_voice, useMailbox, init_mailbox2 as init_mailbox, settingsChangeDetector, init_changeDetector, useSettingsChange, init_useSettingsChange, last_default, init_last, duck, goose, blob, cat, dragon, octopus, owl, penguin, turtle, snail, ghost, axolotl, capybara, cactus, robot, rabbit, mushroom, chonk, init_types4 as init_types1, getCompanion, init_companion, NO_CONTENT_MESSAGE, init_messages, parseYaml, init_yaml, FRONTMATTER_REGEX, parseFrontmatter, init_frontmatterParser, ripGrep2 as ripGrep, countFilesRoundedRg, init_ripgrep2 as init_ripgrep, isRestrictedToPluginOnly, isSourceAdminTrusted, init_pluginOnlyPolicy, CLAUDE_CONFIG_DIRECTORIES, loadMarkdownFilesForSubdir, init_markdownConfigLoader, getPluginErrorMessage, init_plugin, isBuiltinPluginId, getBuiltinPluginDefinition, init_builtinPlugins, getAddDirEnabledPlugins, init_addDirPluginSettings, SETTING_SOURCE_TO_SCOPE, parsePluginIdentifier, isOfficialMarketplaceName, scopeToSettingSource, init_pluginIdentifier, findReverseDependents, formatReverseDependentsSuffix, init_dependencyResolver, OFFICIAL_MARKETPLACE_SOURCE, OFFICIAL_MARKETPLACE_NAME, init_officialMarketplace, logPluginFetch, classifyFetchError, init_fetchTelemetry, checkGitAvailable, markGitUnavailable, init_gitAvailability, SandboxViolationStore, SandboxRuntimeConfigSchema, WEB_FETCH_TOOL_NAME, init_prompt10 as init_prompt4, resolvePathPatternForSandbox, resolveSandboxFilesystemPath, shouldAllowManagedSandboxDomainsOnly, convertToSandboxRuntimeConfig, addToExcludedCommands, SandboxManager2 as SandboxManager, init_sandbox_adapter, getPluginsDirectory, getPluginSeedDirs, pluginDataDirPath, getPluginDataDirSize, deletePluginDataDir, init_pluginDirectories, isUltrathinkEnabled, findThinkingTriggerPositions, getRainbowColor, modelSupportsAdaptiveThinking, shouldEnableThinkingByDefault, init_thinking, EFFORT_LEVELS, modelSupportsEffort, modelSupportsMaxEffort, isEffortLevel, parseEffortValue, toPersistableEffort, getInitialEffortSetting, resolvePickerEffortPersistence, getEffortEnvOverride, resolveAppliedEffort, getDisplayedEffortLevel, getEffortSuffix, convertEffortValueToLevel, getEffortValueDescription, getOpusDefaultEffortConfig, getDefaultEffortForModel, init_effort, isMcpbSource, loadMcpServerUserConfig, saveMcpServerUserConfig, loadMcpbFile, init_mcpbHandler, loadPluginOptions, savePluginOptions, deletePluginOptions, getUnconfiguredOptions, init_pluginOptionsStorage, loadPluginAgents, init_loadPluginAgents, AGENT_COLORS, AGENT_COLOR_TO_THEME_COLOR, getAgentColor, setAgentColor, init_agentColorManager, getSessionStartDate, init_common2 as init_common, init_prompt11 as init_prompt5, CLAUDE_CODE_GUIDE_AGENT_TYPE, init_claudeCodeGuideAgent, EXIT_PLAN_MODE_TOOL_NAME, EXIT_PLAN_MODE_V2_TOOL_NAME, init_constants11 as init_constants2, isBuiltInAgent, isCustomAgent, isPluginAgent, getActiveAgentsFromList, hasRequiredMcpServers, filterAgentsByMcpRequirements, getAgentDefinitionsWithOverrides, clearAgentDefinitionsCache, parseAgentFromJson, parseAgentsFromJson, parseAgentFromMarkdown, init_loadAgentsDir, SKILL_BUDGET_CONTEXT_PERCENT, CHARS_PER_TOKEN, DEFAULT_CHAR_BUDGET, MAX_LISTING_DESC_CHARS, getCharBudget, formatCommandsWithinBudget, getPrompt2 as getPrompt, getSkillToolInfo, getLimitedSkillToolCommands, clearPromptCache, getSkillInfo, init_prompt16 as init_prompt6, POWERSHELL_TOOL_NAME, init_toolName2 as init_toolName1, SHELL_TOOL_NAMES, isPowerShellToolEnabled, init_shellToolUtils, diffLines, init_libesm, resetPromptCacheBreakDetection, init_promptCacheBreakDetection, compactWarningStore, suppressCompactWarning, init_compactWarningState, resetMicrocompactState, microcompactMessages, init_microCompact, g, init_marked_esm, MAX_MEMORY_CHARACTER_COUNT, getMemoryFiles, clearMemoryFileCaches, resetGetMemoryFilesCache, getLargeMemoryFiles, getExternalClaudeMdIncludes, hasExternalClaudeMdIncludes, shouldShowClaudeMdExternalIncludesWarning, init_claudemd, setSystemPromptInjection, getGitStatus, getSystemContext, getUserContext, init_context2 as init_context, getTokenUsage, tokenCountFromLastAPIResponse, getCurrentUsage, doesMostRecentAssistantMessageExceed200k, getAssistantMessageContentLength, tokenCountWithEstimation, init_tokens, DEFAULT_SESSION_MEMORY_CONFIG, setLastSummarizedMessageId, markExtractionStarted, markExtractionCompleted, getSessionMemoryContent, setSessionMemoryConfig, getSessionMemoryConfig, recordExtractionTokenCount, isSessionMemoryInitialized, markSessionMemoryInitialized, hasMetInitializationThreshold, hasMetUpdateThreshold, getToolCallsBetweenUpdates, init_sessionMemoryUtils, uniqBy_default, init_uniqBy, inputSchema21 as inputSchema, outputSchema18 as outputSchema, clearToolSearchDescriptionCache, ToolSearchTool, init_ToolSearchTool, getSSLErrorHint, formatAPIError, init_errorUtils, init_withRetry, maybeResizeAndDownsampleImageBlock, detectImageFormatFromBase64, createImageMetadataText, init_imageResizer, asSystemPrompt, init_systemPromptType, subscribeToCommandQueue, getCommandQueueSnapshot, getCommandQueue, getCommandQueueLength, hasCommandsInQueue, enqueue, enqueuePendingNotification, dequeue, peek, dequeueAllMatching, removeByFilter, clearCommandQueue, isQueuedCommandEditable, isQueuedCommandVisible, popAllEditable, getCommandsByMaxPriority, init_messageQueueManager, setCommandLifecycleListener, notifyCommandLifecycle, init_commandLifecycle, headlessProfilerStartTurn, headlessProfilerCheckpoint, logHeadlessProfilerTurn, init_headlessProfiler, SLEEP_TOOL_NAME, init_prompt13 as init_prompt7, registerPostSamplingHook, init_postSamplingHooks, clearAllDumpState, getDumpPromptsPath, init_dumpPrompts, createAbortController, init_abortController, getCliHighlightPromise, getLanguageName, init_cliHighlight, logPermissionDecision, init_permissionLogging, tryParseShellCommand, quote, init_shellQuote, PROMPT_PREFIX, createPromptRuleContent, isClassifierPermissionsEnabled, getBashPromptAllowDescriptions, generateGenericDescription, init_bashClassifier, shouldShowAlwaysAllowOptions, getPermissionRulesForSource, init_permissionsLoader, extractRules, hasRules, applyPermissionUpdate, applyPermissionUpdates, supportsPersistence, persistPermissionUpdate, persistPermissionUpdates, init_PermissionUpdate, permissionRuleExtractPrefix, init_shellRuleMatching, setupVscodeSdkMcp, init_vscodeSdkMcp, getRateLimitWarning, getUsingOverageText, currentLimits, getRawUtilization, statusListeners, checkQuotaStatus, init_claudeAiLimits, shouldEnablePromptSuggestion, abortPromptSuggestion, tryGenerateSuggestion, logSuggestionOutcome, logSuggestionSuppressed, init_promptSuggestion, IDLE_SPECULATION_STATE, getDefaultAppState, init_AppStateStore, toArray, fromArray, init_generators, isResultSuccessful, normalizeMessage, handleOrphanedPermission, extractReadFilesFromMessages, extractBashToolsFromMessages, init_queryHelpers, abortSpeculation, handleSpeculationAccept, init_speculation, enqueueSdkEvent, drainSdkEvents, emitTaskTerminatedSdk, init_sdkEventQueue, updateTaskState, evictTerminalTask, getRunningTasks, init_framework, escapeXml, escapeXmlAttr, init_xml2 as init_xml, SYNTHETIC_OUTPUT_TOOL_NAME, isSyntheticOutputToolEnabled, createSyntheticOutputTool, init_SyntheticOutputTool, asSessionId, asAgentId, init_ids, getQuerySourceForREPL, init_promptCategory, ENTER_PLAN_MODE_TOOL_NAME, init_constants13 as init_constants3, ASK_USER_QUESTION_TOOL_NAME, init_prompt9 as init_prompt8, TODO_WRITE_TOOL_NAME, init_constants8 as init_constants4, SKILL_TOOL_NAME, init_constants10 as init_constants5, cronToHuman, init_cron, getCronFilePath, readCronTasks, hasCronTasksSync, removeCronTasks, markCronTasksFired, DEFAULT_CRON_JITTER_CONFIG, jitteredNextCronRunMs, oneShotJitteredNextCronRunMs, findMissedTasks, init_cronTasks, DEFAULT_MAX_AGE_DAYS, isKairosCronEnabled, CRON_CREATE_TOOL_NAME, CRON_DELETE_TOOL_NAME, exports_prompt, init_prompt12 as init_prompt9, init_tools, TEAM_CREATE_TOOL_NAME, init_constants20 as init_constants6, isCoordinatorMode, init_coordinatorMode, isZ4Schema, safeParse2 as safeParse, getObjectShape, init_zod_compat, Protocol, mergeCapabilities, init_protocol, AjvJsonSchemaValidator, init_ajv_provider, assertToolsCallTaskCapability, assertClientRequestTaskCapability, init_helpers, mapValues_default, init_mapValues, getRemoteSessionUrl, init_product, DEFAULT_BINDINGS, init_defaultBindings, NON_REBINDABLE, TERMINAL_RESERVED, MACOS_RESERVED, normalizeKeyForComparison, init_reservedShortcuts, isKeybindingCustomizationEnabled, getKeybindingsPath, loadKeybindingsSyncWithWarnings, getCachedKeybindingWarnings, init_loadUserBindings, getShortcutDisplay, init_shortcutFormat, isNavigableMessage, toolCallOf, MessageActionsSelectedContext, InVirtualListContext, useMessageActions, MessageActionsBar, stripSystemReminders, init_messageActions, init_prompt14 as init_prompt10, ListMcpResourcesTool, init_ListMcpResourcesTool, ProgressBar, init_ProgressBar, _baseEach_default, init__baseEach, reject_default, init_reject, loadPluginMcpServers, getUnconfiguredChannels, init_mcpPluginIntegration, fetchClaudeAIMcpConfigsIfEligible, clearClaudeAIMcpConfigsCache, hasClaudeAiMcpEverConnected, init_claudeai, getMcpServerSignature, dedupClaudeAiMcpServers, filterMcpServersByPolicy, addMcpConfig, removeMcpConfig, getMcpConfigsByScope, getMcpConfigByName, getClaudeCodeMcpConfigs, getAllMcpConfigs, parseMcpConfig, parseMcpConfigFromFilePath, doesEnterpriseMcpConfigExist, areMcpConfigsAllowedWithEnterpriseMcpConfig, isMcpServerDisabled, setMcpServerEnabled, init_config3 as init_config, filterToolsByServer, commandBelongsToServer, filterMcpPromptsByServer, excludeToolsByServer, excludeCommandsByServer, excludeResourcesByServer, excludeStalePluginClients, isMcpTool, describeMcpConfigFilePath, getScopeLabel, ensureConfigScope, ensureTransport, parseHeaders, getProjectMcpServerStatus, extractAgentMcpServers, init_utils2 as init_utils, isXaaEnabled, getXaaIdpSettings, issuerKey, getCachedIdpIdToken, saveIdpIdTokenFromJwt, clearIdpIdToken, saveIdpClientSecret, getIdpClientSecret, clearIdpClientSecret, acquireIdpIdToken, init_xaaIdpLogin, AuthenticationCancelledError, revokeServerTokens, clearServerTokensFromLocalStorage, performMCPOAuthFlow, ClaudeAuthProvider, readClientSecret, saveMcpClientSecret, clearMcpClientConfig, getMcpClientConfig, init_auth5 as init_auth, TOOL_RESULTS_SUBDIR, processToolResultBlock, provisionContentReplacementState, reconstructContentReplacementState, init_toolResultStorage, ReadMcpResourceTool, init_ReadMcpResourceTool, _baseSlice_default, init__baseSlice, capitalize_default, init_capitalize, isJetBrainsPluginInstalledCachedSync, init_jetbrains, WindowsToWSLConverter, init_idePathConversion, IdeOnboardingDialog, init_IdeOnboardingDialog, isJetBrainsIde, isSupportedVSCodeTerminal, isSupportedJetBrainsTerminal, isSupportedTerminal, getTerminalIdeType, getSortedIdeLockfiles, detectIDEs, hasAccessToIDEExtensionDiffFeature, isCursorInstalled, isWindsurfInstalled, isVSCodeInstalled, detectRunningIDEs, detectRunningIDEsCached, getConnectedIdeName, toIDEDisplayName, getConnectedIdeClient, closeOpenDiffs, initializeIdeIntegration, init_ide, recursivelySanitizeUnicode, init_sanitization, registerElicitationHandler, runElicitationHooks, runElicitationResultHooks, init_elicitationHandler, getMcpServerConnectionBatchSize, connectToServer, clearServerCache, areMcpConfigsEqual, fetchToolsForClient, fetchResourcesForClient, fetchCommandsForClient, callIdeRpc, reconnectMcpServerImpl, getMcpToolsCommandsAndResources, prefetchAllMcpResources, setupSdkMcpClients, init_client5 as init_client, isLocalShellTask, init_guards, getHookDisplayText, getAllHooks, hookSourceDescriptionDisplayString, hookSourceHeaderDisplayString, hookSourceInlineDisplayString, sortMatchersByPriority, init_hooksSettings, addSessionHook, addFunctionHook, removeSessionHook, init_sessionHooks, getDefaultSubagentModel, getAgentModelDisplay, getAgentModelOptions, init_agent, validateUuid2 as validateUuid, createAgentId, init_uuid, filterToolsForAgent, resolveAgentTools, init_agentToolUtils, useSettings, init_useSettings, applyMarkdown, init_markdown, Markdown, StreamingMarkdown, init_Markdown, isAdvisorBlock, isAdvisorEnabled, canUserConfigureAdvisor, modelSupportsAdvisor, isValidAdvisorModel, getInitialAdvisorSetting, init_advisor, checkOpus1mAccess, checkSonnet1mAccess, init_check1mAccess, getUpgradeMessage, init_contextWindowUpgradeCheck, setupGracefulShutdown, gracefulShutdownSync, isShuttingDown, gracefulShutdown, init_gracefulShutdown, getGroveSettings, markGroveNoticeViewed, updateGroveSettings, isQualifiedForGrove, getGroveNoticeConfig, calculateShouldShowGrove, checkGroveForNonInteractive, init_grove, initializePolicyLimitsLoadingPromise, isPolicyLimitsEligible, waitForPolicyLimitsToLoad, isPolicyAllowed, loadPolicyLimits, refreshPolicyLimits, init_policyLimits, isRemoteManagedSettingsEligible, init_syncCache, initializeRemoteManagedSettingsLoadingPromise, isEligibleForRemoteManagedSettings, waitForRemoteManagedSettingsToLoad, loadRemoteManagedSettings, refreshRemoteManagedSettings, init_remoteManagedSettings, performLogout, clearAuthRelatedCaches, call, init_logout, OAuthService, init_oauth2 as init_oauth, installOrUpdateClaudePackage, localInstallationExists, getShellType, init_localInstaller, assertMinVersion, getMaxVersion, getMaxVersionMessage, shouldSkipVersion, getLatestVersion, getNpmDistTags, getLatestVersionFromGcs, getGcsDistTags, installGlobalPackage, init_autoUpdater, getPackageManager, init_packageManagers, getCurrentInstallationType, getDoctorDiagnostic, init_doctorDiagnostic, getXDGStateHome, init_xdg, isPidBasedLockingEnabled, getAllLockInfo, cleanupStaleLocks, init_pidLock, checkInstall, installLatest, lockCurrentVersion, cleanupOldVersions, removeInstalledSymlink, cleanupShellAliases, cleanupNpmInstallations, init_nativeInstaller, getSettingsWithAllErrors, init_allErrors, buildSandboxProperties, buildIDEProperties, buildMcpProperties, buildMemoryDiagnostics, buildSettingSourcesProperties, buildInstallationDiagnostics, buildInstallationHealthDiagnostics, buildAccountProperties, buildAPIProviderProperties, getModelDisplayLabel, init_status, installOAuthTokens, authLogin, authStatus, authLogout, init_auth4 as init_auth1, sendNotification, init_notifier, PASTE_THRESHOLD, getImageFromClipboard, init_imagePaste, cacheImagePath, storeImage, storeImages, clearStoredImagePaths, cleanupOldImageCaches, init_imageStore, ListItem, init_ListItem, useRegisterOverlay, useIsOverlayActive, useIsModalOverlayActive, init_overlayContext, Select, init_select, buildBridgeConnectUrl, getBridgeStatus, buildIdleFooterText, buildActiveFooterText, FAILED_FOOTER_TEXT, init_bridgeStatusUtil, sample_default, init_sample, activityManager, init_activityManager, isInProcessTeammateTask, init_types6 as init_types2, TaskListV2, init_TaskListV2, useTasksV2, useTasksV2WithCollapseEffect, init_useTasksV2, toRGBColor, hueToRgb, init_utils3 as init_utils1, ShimmerChar, init_ShimmerChar, SpinnerGlyph, init_SpinnerGlyph, useShimmerAnimation, init_useShimmerAnimation, toInkColor, init_ink2 as init_ink, isBackgroundTask, init_types9 as init_types3, McpServerConfigForProcessTransportSchema, McpServerStatusSchema, PermissionUpdateSchema, PermissionModeSchema, HookEventSchema, HookInputSchema, SlashCommandSchema, AgentInfoSchema, ModelInfoSchema, AccountInfoSchema, AgentDefinitionSchema, SDKUserMessageSchema, SDKStreamlinedTextMessageSchema, SDKStreamlinedToolUseSummaryMessageSchema, SDKPostTurnSummaryMessageSchema, SDKMessageSchema, FastModeStateSchema, init_coreSchemas, readUnreadMessages, writeToMailbox, markMessagesAsRead, createIdleNotification, isPermissionRequest, isPermissionResponse, isSandboxPermissionRequest, isSandboxPermissionResponse, sendShutdownRequestToMailbox, isShutdownRequest, isPlanApprovalRequest, isShutdownApproved, isPlanApprovalResponse, isTeamPermissionUpdate, createModeSetRequestMessage, isModeSetRequest, getLastPeerDmSummary, init_teammateMailbox, permissionUpdateSchema, init_PermissionUpdateSchema, createPermissionRequest, isSwarmWorker, sendPermissionRequestViaMailbox, sendPermissionResponseViaMailbox, generateSandboxRequestId, sendSandboxPermissionRequestViaMailbox, sendSandboxPermissionResponseViaMailbox, init_permissionSync, registerPermissionCallback, hasPermissionCallback, clearAllPendingCallbacks, processMailboxPermissionResponse, registerSandboxPermissionCallback, hasSandboxPermissionCallback, processSandboxPermissionResponse, init_useSwarmPermissionPoller, registerLeaderToolUseConfirmQueue, getLeaderToolUseConfirmQueue, unregisterLeaderToolUseConfirmQueue, registerLeaderSetToolPermissionContext, unregisterLeaderSetToolPermissionContext, init_leaderPermissionBridge, exports_teammatePromptAddendum, init_teammatePromptAddendum, ensureBackendsRegistered, registerTmuxBackend, registerITermBackend, detectAndGetBackend, getBackendByType, getCachedBackend, getCachedDetectionResult, markInProcessFallback, isInProcessEnabled, getResolvedTeammateMode, getInProcessBackend, getTeammateExecutor, resetBackendDetection, init_registry, InProcessTeammateTask, injectUserMessageToTeammate, findTeammateTaskByAgentId, getAllInProcessTeammateTasks, getRunningTeammatesSorted, exports_InProcessTeammateTask, init_InProcessTeammateTask, getViewedTeammateTask, getActiveAgentForInput, init_selectors, useElapsedTime, init_useElapsedTime, SpinnerWithVerb, BriefIdleStatus, Spinner, init_Spinner2 as init_Spinner, ConsoleOAuthFlow, init_ConsoleOAuthFlow, extraUsage, init_extra_usage, useClaudeAiLimits, init_claudeAiLimitsHook, AssistantThinkingMessage, init_AssistantThinkingMessage, clearClassifierChecking, init_classifierApprovals, SentryErrorBoundary, init_SentryErrorBoundary, UserBashInputMessage, init_UserBashInputMessage, UserPlanMessage, init_UserPlanMessage, QueuedMessageProvider, init_QueuedMessageContext, UserTextMessage, init_UserTextMessage, diagnosticTracker, init_diagnosticTracking, FilePathLink, init_FilePathLink, PrBadge, init_PrBadge, getPillLabel, pillNeedsCta, init_pillLabel, OffscreenFreeze, init_OffscreenFreeze, hasThinkingContent, Message, init_Message, renderToolUseProgressMessage4 as renderToolUseProgressMessage, init_UI11 as init_UI, recordSkillUsage, getSkillUsageScore, init_skillUsageTracking, buildPluginTelemetryFields, buildPluginCommandTelemetryFields, logPluginsEnabledForSession, classifyPluginCommandError, logPluginLoadErrors, init_pluginTelemetry, runAgent, init_runAgent, TodoListSchema, init_types7 as init_types4, TodoWriteTool, init_TodoWriteTool, fetchEnvironments, init_environments, SelectMulti, init_SelectMulti, init_CustomSelect, TeleportError, init_TeleportError, KeybindingSetup, init_KeybindingProviderSetup, clearAllSessions, init_sessionIngress, fileHistoryEnabled, fileHistoryMakeSnapshot, fileHistoryRewind, fileHistoryCanRestore, fileHistoryGetDiffStats, fileHistoryHasAnyChanges, fileHistoryRestoreStateFromLog, copyFileHistoryForResume, init_fileHistory, init_outputsScanner, generateShortWordSlug, init_words, getPlanSlug, setPlanSlug, clearAllPlanSlugs, getPlansDirectory, getPlanFilePath, getPlan, copyPlanForResume, copyPlanForFork, init_plans, captureHooksConfigSnapshot, updateHooksConfigSnapshot, init_hooksConfigSnapshot, setEnvHookNotifier, initializeFileChangedWatcher, init_fileChangedWatcher, loadPluginHooks, clearPluginHookCache, pruneRemovedPluginHooks, resetHotReloadState, getPluginAffectingSettingsSnapshot, setupPluginHookHotReload, init_loadPluginHooks, takeInitialUserMessage, processSessionStartHooks, processSetupHooks, init_sessionStart, deserializeMessages, loadConversationForResume, init_conversationRecovery, downloadSessionFiles, parseFileSpecs, init_filesApi, generateTempFilePath, init_tempfile, validateGitState, processMessagesForTeleportResume, checkOutTeleportedSessionBranch, validateSessionRepository, teleportResumeCodeSession, teleportToRemoteWithErrorHandling, teleportFromSessionsAPI, pollRemoteSessionEvents, teleportToRemote, archiveRemoteSession, init_teleport, checkRemoteAgentEligibility, formatPreconditionError, registerRemoteAgentTask, restoreRemoteAgentTasks, RemoteAgentTask, getRemoteTaskSessionUrl, init_RemoteAgentTask, SkillTool, init_SkillTool, resetAllLSPDiagnosticState, init_LSPDiagnosticRegistry, loadPluginLspServers, init_lspPluginIntegration, getLspServerManager, getInitializationStatus, initializeLspServerManager, reinitializeLspServerManager, shutdownLspServerManager, init_manager, parseArguments, generateProgressiveArgumentHint, init_argumentSubstitution, clearPendingHint, markShownThisSession, subscribeToPendingHint, getPendingHintSnapshot, init_claudeCodeHints, isPluginBlockedByPolicy, init_pluginPolicy, resolvePluginHint, markHintPluginShown, disableHintRecommendations, init_hintRecommendation, CircularBuffer, init_CircularBuffer, validateBoundedIntEnvVar, init_envValidation, BASH_MAX_OUTPUT_UPPER_LIMIT, BASH_MAX_OUTPUT_DEFAULT, init_outputLimits, clearSessionEnvVars, init_sessionEnvVars, exec, setCwd, init_Shell, ShellProgressMessage, init_ShellProgressMessage, parseSedEditCommand, applySedSubstitution, init_sedEditParser, parsePowerShellCommandCached, getAllCommands2 as getAllCommands, init_parser3 as init_parser, isAllowlistedCommand, init_readOnlyValidation, NEVER_SUGGEST, init_dangerousCmdlets, PowerShellTool, exports_PowerShellTool, init_PowerShellTool, getSkillsPath, estimateSkillFrontmatterTokens, clearSkillCaches, onDynamicSkillsLoaded, clearDynamicSkills, init_loadSkillsDir, getStoredSessionCosts, restoreCostStateForSession, saveCurrentSessionCosts, formatCost, formatTotalCost, init_cost_tracker, CONTEXT_LINES, adjustHunkLineNumbers, getPatchFromContents, getPatchForDisplay, init_diff, fetchGitDiff, fetchGitDiffHunks, init_gitDiff, getColorModuleUnavailableReason, getSyntaxTheme2 as getSyntaxTheme, init_colorDiff, HighlightedCode, init_HighlightedCode, StructuredDiff, init_StructuredDiff, StructuredDiffList, init_StructuredDiffList, CHUNK_SIZE, openForScan, scanForContext, readCapped, init_readEditContext, findActualString, preserveQuoteStyle, getPatchForEdits, getEditsForPatch, init_utils as init_utils2, FileEditTool, init_FileEditTool, FileWriteTool, init_FileWriteTool, getGlobExclusionsForPluginCache, clearPluginCacheExclusions, init_orphanedPluginFilter, GrepTool, init_GrepTool, GlobTool, init_GlobTool, parseCellId, init_notebook, NotebookEditTool, init_NotebookEditTool, clearWebFetchCache, MAX_MARKDOWN_LENGTH, isPreapprovedUrl, validateURL, checkDomainBlocklist, isPermittedRedirect, getWithPermittedRedirects, getURLMarkdownContent, applyPromptToMarkdown, init_utils7 as init_utils3, WebFetchTool, init_WebFetchTool, readLastConsolidatedAt, init_consolidationLock, DreamTask, init_DreamTask, stopTask, init_stopTask, TaskStopTool, init_TaskStopTool, exports_BriefTool, init_BriefTool, TASK_MAX_OUTPUT_UPPER_LIMIT, TASK_MAX_OUTPUT_DEFAULT, init_outputFormatting, TaskOutputTool, init_TaskOutputTool, WebSearchTool, init_WebSearchTool, findInProcessTeammateTaskId, handlePlanApprovalResponse, init_inProcessTeammateHelpers, ExitPlanModeV2Tool, init_ExitPlanModeV2Tool, AskUserQuestionTool, init_AskUserQuestionTool, init_prompt23 as init_prompt11, isPlanModeInterviewPhaseEnabled, getPewterLedgerVariant, init_planModeV2, EnterPlanModeTool, init_EnterPlanModeTool, getModelOptions, init_modelOptions, init_voiceModeEnabled, validateModel, init_validateModel, registerSession, updateSessionName, updateSessionBridgeId, countConcurrentSessions, init_concurrentSessions, init_replBridgeHandle, startBackgroundSession, init_LocalMainSessionTask, buildEffectiveSystemPrompt, init_systemPrompt, resumeAgentBackground, init_resumeAgent, getAllBaseTools, filterToolsByDenyRules, getTools, assembleToolPool, init_tools2 as init_tools1, getHardcodedTeammateModelFallback, init_teammateModel, isAutoManagedMemoryFile, init_memoryFileDetection, getToolSearchOrReadInfo, getToolUseIdsFromCollapsedGroup, hasAnyToolInProgress, getDisplayMessageFromCollapsed, collapseReadSearchGroups, summarizeRecentActivities, init_collapseReadSearch, isLocalAgentTask, isPanelAgentTask, queuePendingMessage, appendMessageToLocalAgent, LocalAgentTask, killAllRunningAgentTasks, markAgentsNotified, init_LocalAgentTask, BACKGROUND_BASH_SUMMARY_PREFIX, LocalShellTask, hasForegroundTasks, backgroundAll, init_LocalShellTask, isMemoryFileAccess, registerSessionFileAccessHooks, init_sessionFileAccessHooks, BashTool, init_BashTool, getSimpleCommandPrefix, getFirstWordPrefix, clearSpeculativeChecks, init_bashPermissions, Stream, init_stream2 as init_stream, getErrorParts, init_toolErrors, startQueryProfile, queryCheckpoint, logQueryProfileReport, init_queryProfiler, isAutoDreamEnabled, init_config5 as init_config1, init_readFileInRange, initAutoDream, init_autoDream, init_tokenBudget, query, init_query, init_logging, getLastCacheSafeParams, createCacheSafeParams, prepareForkedCommandContext, extractResultText, createSubagentContext, runForkedAgent, init_forkedAgent, logPermissionContextForAnts, init_internalLogging, ERROR_MESSAGE_NOT_ENOUGH_MESSAGES, ERROR_MESSAGE_USER_ABORT, ERROR_MESSAGE_INCOMPLETE_RESPONSE, buildPostCompactMessages, mergeHookInstructions, compactConversation, partialCompactConversation, init_compact, runPostCompactCleanup, init_postCompactCleanup, loadSessionMemoryTemplate, buildSessionMemoryUpdatePrompt, init_prompts3 as init_prompts, shouldUseSessionMemoryCompaction, trySessionMemoryCompaction, init_sessionMemoryCompact, getEffectiveContextWindowSize, calculateTokenWarningState, isAutoCompactEnabled, init_autoCompact, countMcpToolTokens, analyzeContextUsage, init_analyzeContext, zodToJsonSchema3 as zodToJsonSchema, init_zodToJsonSchema2 as init_zodToJsonSchema, getAutoToolSearchCharThreshold, getToolSearchMode, modelSupportsToolReference, isToolSearchEnabledOptimistic, isToolSearchToolAvailable, isToolSearchEnabled, isToolReferenceBlock, extractDiscoveredToolNames, isDeferredToolsDeltaEnabled, getDeferredToolsDelta, init_toolSearch, roughTokenCountEstimation, init_tokenEstimation, registerFileReadListener, FileReadTool, init_FileReadTool, isValidImagePaste, init_textInputTypes, registerHookEventHandler, setAllHookEventsEnabled, init_hookEvents, finalizePendingAsyncHooks, init_AsyncHookRegistry, isHumanTurn, init_messagePredicates, getQueuedCommandAttachments, resetSentSkillNames, getAttachmentMessages, createAttachmentMessage, init_attachments2 as init_attachments, getPluginCommands, init_loadPluginCommands, isPluginZipCacheEnabled, getPluginZipCachePath, getZipCacheKnownMarketplacesPath, getZipCacheMarketplacesDir, getZipCachePluginsDir, cleanupSessionPluginCache, atomicWriteToZipCache, getMarketplaceJsonRelativePath, isMarketplaceSourceSupportedByZipCache, init_zipCache, clearAllCaches, markPluginVersionOrphaned, cleanupOrphanedPluginVersionsInBackground, init_cacheUtils, formatFailureDetails, getMarketplaceSourceDisplay, createPluginId, loadMarketplacesWithGracefulDegradation, formatMarketplaceLoadingErrors, getPluginTrustMessage, isSourceAllowedByPolicy, detectEmptyMarketplaceReason, init_marketplaceHelpers, fetchOfficialMarketplaceFromGcs, init_officialMarketplaceGcs, getMarketplacesCacheDir, clearMarketplacesCache, getDeclaredMarketplaces, saveMarketplaceToSettings, loadKnownMarketplacesConfig, loadKnownMarketplacesConfigSafe, saveKnownMarketplacesConfig, registerSeedMarketplaces, addMarketplaceSource, removeMarketplaceSource, getMarketplace, getPluginById, refreshAllMarketplaces, refreshMarketplace, setMarketplaceAutoUpdate, init_marketplaceManager, loadInstalledPluginsV2, removePluginInstallation, getInMemoryInstalledPlugins, loadInstalledPluginsFromDisk, updateInstallationPathOnDisk, initializeVersionedPlugins, isInstallationRelevantToCurrentProject, isPluginInstalled, isPluginGloballyInstalled, migrateFromEnabledPlugins, init_installedPluginsManager, getManagedPluginNames, init_managedPlugins, calculatePluginVersion, init_pluginVersioning, cacheAndRegisterPlugin, registerPluginInstallation, formatResolutionError, installResolvedPlugin, installPluginFromMarketplace, init_pluginInstallationHelpers, getVersionedCachePath, getVersionedZipCachePath, copyPluginToVersionedCache, cachePlugin, loadPluginManifest, loadAllPlugins, loadAllPluginsCacheOnly, clearPluginCache, init_pluginLoader, DEFAULT_OUTPUT_STYLE_NAME, OUTPUT_STYLE_CONFIG, getAllOutputStyles, init_outputStyles, withMemoryCorrectionHint, INTERRUPT_MESSAGE, INTERRUPT_MESSAGE_FOR_TOOL_USE, REJECT_MESSAGE, REJECT_MESSAGE_WITH_REASON_PREFIX, SUBAGENT_REJECT_MESSAGE, SUBAGENT_REJECT_MESSAGE_WITH_REASON_PREFIX, SYNTHETIC_MODEL, SYNTHETIC_MESSAGES, isSyntheticMessage, getLastAssistantMessage, hasToolCallsInLastAssistantTurn, createAssistantMessage, createUserMessage, prepareUserContent, createUserInterruptionMessage, createSyntheticUserCaveatMessage, formatCommandInputTags, createModelSwitchBreadcrumbs, extractTag, isNotEmptyMessage, deriveUUID, normalizeMessages, isToolUseResultMessage, reorderMessagesInUI, buildMessageLookups, EMPTY_LOOKUPS, EMPTY_STRING_SET, getSiblingToolUseIDsFromLookup, getProgressMessagesFromLookup, hasUnresolvedHooksFromLookup, getToolUseIDs, isSystemLocalCommandMessage, normalizeMessagesForAPI, isEmptyMessageText, stripPromptXMLTags, getToolUseID, getUserMessageText, textForResubmit, extractTextContent, getContentText, handleMessageFromStream, createSystemMessage, createPermissionRetryMessage, createScheduledTaskFireMessage, createTurnDurationMessage, createAgentsKilledMessage, createApiMetricsMessage, createCommandInputMessage, isCompactBoundaryMessage, getMessagesAfterCompactBoundary, shouldShowUserMessage, countToolCalls, stripSignatureBlocks, init_messages2 as init_messages1, startsWithApiErrorPrefix, categorizeRetryableAPIError, init_errors3 as init_errors, splitCommand_DEPRECATED, clearCommandPrefixCaches, extractOutputRedirections, init_commands, shouldUseSandbox, init_shouldUseSandbox, permissionRuleSourceDisplayString, getAllowRules, getDenyRules, getAskRules, hasPermissionsToUseTool, deletePermissionRule, init_permissions2 as init_permissions, removeDangerousPermissions, transitionPermissionMode, initialPermissionModeFromCLI, parseToolListFromCLI, initializeToolPermissionContext, getAutoModeUnavailableNotification, shouldDisableBypassPermissions, getAutoModeUnavailableReason, isBypassPermissionsModeDisabled, createDisabledBypassPermissionsContext, checkAndDisableBypassPermissions, prepareContextForPlanMode, transitionPlanAutoMode, init_permissionSetup, applySettingsChange, init_applySettingsChange, AppStateProvider, useAppState, useSetAppState, useAppStateStore, init_AppState, useNotifications, init_notifications, useClipboardImageHint, init_useClipboardImageHint, prependModeCharacterToInput, getModeFromInput, getValueFromInput, init_inputModes, cleanupOldPastes, init_pasteStore, getPastedTextRefNumLines, formatPastedTextRef, formatImageRef, parseReferences, expandPastedTextRefs, makeHistoryReader, getHistory, addToHistory, removeLastFromHistory, init_history, pushToKillRing, getLastKill, resetKillAccumulation, recordYank, yankPop, updateYankLength, resetYankState, isVimWordChar, isVimWhitespace, isVimPunctuation, Cursor, init_Cursor, useTextInput, init_useTextInput, BaseTextInput, init_BaseTextInput, TextInput, init_TextInput, getWorktreePaths, init_getWorktreePaths, isUltrareviewEnabled, init_ultrareviewEnabled, review_default, init_review, REMOTE_CONTROL_DISCONNECTED_MSG, init_types13 as init_types5, validateBridgeId, BridgeFatalError, createBridgeApiClient, isExpiredErrorType, isSuppressible403, init_bridgeApi, registerBridgeDebugHandle, clearBridgeDebugHandle, injectBridgeFault, wrapApiForFaultInjection, init_bridgeDebug, registerBundledSkill, init_bundledSkills, exit_default, init_exit, upgrade_default, init_upgrade, getCommandName, isCommandEnabled, builtInCommandNames, getCommands, clearCommandMemoizationCaches, clearCommandsCache, getSkillToolCommands, getSlashCommandToolSkills, REMOTE_SAFE_COMMANDS, isBridgeSafeCommand, filterCommandsForRemoteMode, findCommand, hasCommand, getCommand, formatDescriptionWithSource, init_commands2 as init_commands1, isTranscriptMessage, isChainParticipant, isEphemeralToolProgress, getProjectsDir2 as getProjectsDir, getTranscriptPath, getTranscriptPathForSession, MAX_TRANSCRIPT_READ_BYTES, setAgentTranscriptSubdir, clearAgentTranscriptSubdir, getAgentTranscriptPath, writeAgentMetadata, readAgentMetadata, writeRemoteAgentMetadata, readRemoteAgentMetadata, deleteRemoteAgentMetadata, listRemoteAgentMetadata, sessionIdExists, getNodeEnv, getUserType, isCustomTitleEnabled, getProjectDir, resetProjectFlushStateForTesting, resetProjectForTesting, setSessionFileForTesting, setInternalEventWriter, setInternalEventReader, setRemoteIngressUrlForTesting, recordTranscript, recordSidechainTranscript, recordQueueOperation, removeTranscriptMessage, recordFileHistorySnapshot, recordAttributionSnapshot, recordContentReplacement, resetSessionFilePointer, adoptResumedSessionFile, recordContextCollapseCommit, recordContextCollapseSnapshot, flushSessionStorage, hydrateRemoteSession, hydrateFromCCRv2InternalEvents, getFirstMeaningfulUserMessageTextContent, removeExtraFields, buildConversationChain, checkResumeConsistency, loadTranscriptFromFile, fetchLogs, saveCustomTitle, saveAiGeneratedTitle, saveTaskSummary, saveTag, linkSessionToPR, getCurrentSessionTag, getCurrentSessionTitle, getCurrentSessionAgentColor, restoreSessionMetadata, clearSessionMetadata, reAppendSessionMetadata, saveAgentName, saveAgentColor, saveAgentSetting, cacheSessionTitle, saveMode, saveWorktreeState, getSessionIdFromLog, isLiteLog, loadFullLog, searchSessionsByCustomTitle, loadTranscriptFile, clearSessionMessagesCache, doesMessageExistInSession, getLastSessionLog, loadMessageLogs, loadAllProjectsMessageLogs, loadAllProjectsMessageLogsProgressive, loadSameRepoMessageLogs, loadSameRepoMessageLogsProgressive, getAgentTranscript, extractAgentIdsFromMessages, extractTeammateTranscriptsFromTasks, loadSubagentTranscripts, loadAllSubagentTranscriptsFromDisk, isLoggableMessage, cleanMessagesForLogging, getLogByIndex, findUnresolvedToolUse, getSessionFilesWithMtime, loadAllLogsFromSessionFile, getSessionFilesLite, enrichLogs, exports_sessionStorage, init_sessionStorage, loadMemoryPrompt, init_memdir, getAgentMemoryDir, getMemoryScopeDisplay, loadAgentMemoryPrompt, init_agentMemory, normalizeCaseForComparison2 as normalizeCaseForComparison, getSessionMemoryDir, getSessionMemoryPath, isScratchpadEnabled, getScratchpadDir, ensureScratchpadDir, pathInAllowedWorkingPath, generateSuggestions, init_filesystem, getTaskOutputPath, evictTaskOutput, initTaskOutputAsSymlink, init_diskOutput, isTerminalTaskStatus, init_Task, hookJSONOutputSchema, init_hooks2 as init_hooks, createCombinedAbortSignal, init_combinedAbortSignal, registerStructuredOutputEnforcement, init_hookHelpers, getSessionEndHookTimeoutMs, shouldSkipHookDueToTrust, createBaseHookInput, getMatchingHooks, getPreToolHookBlockingMessage, getStopHookMessage, getTeammateIdleHookMessage, getTaskCreatedHookMessage, getTaskCompletedHookMessage, getUserPromptSubmitHookBlockingMessage, hasBlockingResult, executePreToolHooks, executePostToolHooks, executePostToolUseFailureHooks, executePermissionDeniedHooks2 as executePermissionDeniedHooks, executeNotificationHooks, executeStopFailureHooks, executeStopHooks, executeTeammateIdleHooks, executeTaskCreatedHooks, executeTaskCompletedHooks, executeUserPromptSubmitHooks, executeSessionStartHooks, executeSetupHooks, executeSubagentStartHooks, executePreCompactHooks, executePostCompactHooks, executeSessionEndHooks, executePermissionRequestHooks, executeConfigChangeHooks, executeCwdChangedHooks, executeFileChangedHooks, hasInstructionsLoadedHook, executeInstructionsLoadedHooks, executeElicitationHooks, executeElicitationResultHooks, executeStatusLineCommand, executeFileSuggestionCommand, hasWorktreeCreateHook, executeWorktreeCreateHook, executeWorktreeRemoveHook, init_hooks3 as init_hooks1, validateWorktreeSlug, getCurrentWorktreeSession, restoreWorktreeSession, generateTmuxSessionName, worktreeBranchName, copyWorktreeIncludeFiles, parsePRReference, isTmuxAvailable2 as isTmuxAvailable, getTmuxInstallInstructions, createTmuxSessionForWorktree, killTmuxSession, createWorktreeForSession, keepWorktree, cleanupWorktree, createAgentWorktree, removeAgentWorktree, cleanupStaleAgentWorktrees, hasWorktreeChanges, execIntoTmuxWorktree, init_worktree, getSystemPrompt, init_prompts as init_prompts1, prependUserContext, logContextMetrics, init_api2 as init_api, verifyApiKey, queryModelWithoutStreaming, updateUsage, accumulateUsage, queryHaiku, queryWithModel, init_claude, sideQuery, init_sideQuery };
|
|
173540
|
+
export { LATEST_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, ErrorCode, EmptyResultSchema, InitializeRequestSchema, InitializedNotificationSchema, CreateTaskResultSchema, ResourceListChangedNotificationSchema, PromptListChangedNotificationSchema, ListToolsRequestSchema, CallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, CreateMessageResultSchema, CreateMessageResultWithToolsSchema, ElicitRequestSchema, ElicitationCompleteNotificationSchema, ElicitResultSchema, ListRootsResultSchema, McpError, init_types4 as init_types, ReadBuffer, serializeMessage, init_stdio, readCustomApiStorage, writeCustomApiStorage, addSavedModelForProvider, init_customApiStorage, getEmptyToolPermissionContext, toolMatchesName, findToolByName, init_Tool, BASH_TOOL_NAME, init_toolName, GREP_TOOL_NAME, init_prompt4 as init_prompt, FILE_EDIT_TOOL_NAME, CLAUDE_FOLDER_PERMISSION_PATTERN, GLOBAL_CLAUDE_FOLDER_PERMISSION_PATTERN, init_constants5 as init_constants, FILE_READ_TOOL_NAME, init_prompt5 as init_prompt1, init_prompt6 as init_prompt2, init_prompt7 as init_prompt3, init_constants6 as init_constants1, MessageResponse, init_MessageResponse, validateDirectoryForWorkspace, addDirHelpMessage, init_validation2 as init_validation, createStore, init_store, init_voice, useMailbox, init_mailbox2 as init_mailbox, settingsChangeDetector, init_changeDetector, useSettingsChange, init_useSettingsChange, last_default, init_last, NO_CONTENT_MESSAGE, init_messages, parseYaml, init_yaml, FRONTMATTER_REGEX, parseFrontmatter, init_frontmatterParser, ripGrep2 as ripGrep, countFilesRoundedRg, init_ripgrep2 as init_ripgrep, isRestrictedToPluginOnly, isSourceAdminTrusted, init_pluginOnlyPolicy, CLAUDE_CONFIG_DIRECTORIES, loadMarkdownFilesForSubdir, init_markdownConfigLoader, getPluginErrorMessage, init_plugin, isBuiltinPluginId, getBuiltinPluginDefinition, init_builtinPlugins, getAddDirEnabledPlugins, init_addDirPluginSettings, SETTING_SOURCE_TO_SCOPE, parsePluginIdentifier, isOfficialMarketplaceName, scopeToSettingSource, init_pluginIdentifier, findReverseDependents, formatReverseDependentsSuffix, init_dependencyResolver, OFFICIAL_MARKETPLACE_SOURCE, OFFICIAL_MARKETPLACE_NAME, init_officialMarketplace, logPluginFetch, classifyFetchError, init_fetchTelemetry, checkGitAvailable, markGitUnavailable, init_gitAvailability, SandboxViolationStore, SandboxRuntimeConfigSchema, WEB_FETCH_TOOL_NAME, init_prompt10 as init_prompt4, resolvePathPatternForSandbox, resolveSandboxFilesystemPath, shouldAllowManagedSandboxDomainsOnly, convertToSandboxRuntimeConfig, addToExcludedCommands, SandboxManager2 as SandboxManager, init_sandbox_adapter, getPluginsDirectory, getPluginSeedDirs, pluginDataDirPath, getPluginDataDirSize, deletePluginDataDir, init_pluginDirectories, isUltrathinkEnabled, findThinkingTriggerPositions, getRainbowColor, modelSupportsAdaptiveThinking, shouldEnableThinkingByDefault, init_thinking, EFFORT_LEVELS, modelSupportsEffort, modelSupportsMaxEffort, isEffortLevel, parseEffortValue, toPersistableEffort, getInitialEffortSetting, resolvePickerEffortPersistence, getEffortEnvOverride, resolveAppliedEffort, getDisplayedEffortLevel, getEffortSuffix, convertEffortValueToLevel, getEffortValueDescription, getOpusDefaultEffortConfig, getDefaultEffortForModel, init_effort, isMcpbSource, loadMcpServerUserConfig, saveMcpServerUserConfig, loadMcpbFile, init_mcpbHandler, loadPluginOptions, savePluginOptions, deletePluginOptions, getUnconfiguredOptions, init_pluginOptionsStorage, loadPluginAgents, init_loadPluginAgents, AGENT_COLORS, AGENT_COLOR_TO_THEME_COLOR, getAgentColor, setAgentColor, init_agentColorManager, getSessionStartDate, init_common2 as init_common, init_prompt11 as init_prompt5, CLAUDE_CODE_GUIDE_AGENT_TYPE, init_claudeCodeGuideAgent, EXIT_PLAN_MODE_TOOL_NAME, EXIT_PLAN_MODE_V2_TOOL_NAME, init_constants11 as init_constants2, isBuiltInAgent, isCustomAgent, isPluginAgent, getActiveAgentsFromList, hasRequiredMcpServers, filterAgentsByMcpRequirements, getAgentDefinitionsWithOverrides, clearAgentDefinitionsCache, parseAgentFromJson, parseAgentsFromJson, parseAgentFromMarkdown, init_loadAgentsDir, SKILL_BUDGET_CONTEXT_PERCENT, CHARS_PER_TOKEN, DEFAULT_CHAR_BUDGET, MAX_LISTING_DESC_CHARS, getCharBudget, formatCommandsWithinBudget, getPrompt2 as getPrompt, getSkillToolInfo, getLimitedSkillToolCommands, clearPromptCache, getSkillInfo, init_prompt16 as init_prompt6, POWERSHELL_TOOL_NAME, init_toolName2 as init_toolName1, SHELL_TOOL_NAMES, isPowerShellToolEnabled, init_shellToolUtils, diffLines, init_libesm, resetPromptCacheBreakDetection, init_promptCacheBreakDetection, compactWarningStore, suppressCompactWarning, init_compactWarningState, resetMicrocompactState, microcompactMessages, init_microCompact, g, init_marked_esm, MAX_MEMORY_CHARACTER_COUNT, getMemoryFiles, clearMemoryFileCaches, resetGetMemoryFilesCache, getLargeMemoryFiles, getExternalClaudeMdIncludes, hasExternalClaudeMdIncludes, shouldShowClaudeMdExternalIncludesWarning, init_claudemd, setSystemPromptInjection, getGitStatus, getSystemContext, getUserContext, init_context2 as init_context, getTokenUsage, tokenCountFromLastAPIResponse, getCurrentUsage, doesMostRecentAssistantMessageExceed200k, getAssistantMessageContentLength, tokenCountWithEstimation, init_tokens, DEFAULT_SESSION_MEMORY_CONFIG, setLastSummarizedMessageId, markExtractionStarted, markExtractionCompleted, getSessionMemoryContent, setSessionMemoryConfig, getSessionMemoryConfig, recordExtractionTokenCount, isSessionMemoryInitialized, markSessionMemoryInitialized, hasMetInitializationThreshold, hasMetUpdateThreshold, getToolCallsBetweenUpdates, init_sessionMemoryUtils, uniqBy_default, init_uniqBy, inputSchema21 as inputSchema, outputSchema18 as outputSchema, clearToolSearchDescriptionCache, ToolSearchTool, init_ToolSearchTool, getSSLErrorHint, formatAPIError, init_errorUtils, init_withRetry, maybeResizeAndDownsampleImageBlock, detectImageFormatFromBase64, createImageMetadataText, init_imageResizer, asSystemPrompt, init_systemPromptType, subscribeToCommandQueue, getCommandQueueSnapshot, getCommandQueue, getCommandQueueLength, hasCommandsInQueue, enqueue, enqueuePendingNotification, dequeue, peek, dequeueAllMatching, removeByFilter, clearCommandQueue, isQueuedCommandEditable, isQueuedCommandVisible, popAllEditable, getCommandsByMaxPriority, init_messageQueueManager, setCommandLifecycleListener, notifyCommandLifecycle, init_commandLifecycle, headlessProfilerStartTurn, headlessProfilerCheckpoint, logHeadlessProfilerTurn, init_headlessProfiler, SLEEP_TOOL_NAME, init_prompt13 as init_prompt7, registerPostSamplingHook, init_postSamplingHooks, clearAllDumpState, getDumpPromptsPath, init_dumpPrompts, createAbortController, init_abortController, getCliHighlightPromise, getLanguageName, init_cliHighlight, logPermissionDecision, init_permissionLogging, tryParseShellCommand, quote, init_shellQuote, PROMPT_PREFIX, createPromptRuleContent, isClassifierPermissionsEnabled, getBashPromptAllowDescriptions, generateGenericDescription, init_bashClassifier, shouldShowAlwaysAllowOptions, getPermissionRulesForSource, init_permissionsLoader, extractRules, hasRules, applyPermissionUpdate, applyPermissionUpdates, supportsPersistence, persistPermissionUpdate, persistPermissionUpdates, init_PermissionUpdate, permissionRuleExtractPrefix, init_shellRuleMatching, setupVscodeSdkMcp, init_vscodeSdkMcp, getRateLimitWarning, getUsingOverageText, currentLimits, getRawUtilization, statusListeners, checkQuotaStatus, init_claudeAiLimits, shouldEnablePromptSuggestion, abortPromptSuggestion, tryGenerateSuggestion, logSuggestionOutcome, logSuggestionSuppressed, init_promptSuggestion, IDLE_SPECULATION_STATE, getDefaultAppState, init_AppStateStore, toArray, fromArray, init_generators, isResultSuccessful, normalizeMessage, handleOrphanedPermission, extractReadFilesFromMessages, extractBashToolsFromMessages, init_queryHelpers, abortSpeculation, handleSpeculationAccept, init_speculation, enqueueSdkEvent, drainSdkEvents, emitTaskTerminatedSdk, init_sdkEventQueue, updateTaskState, evictTerminalTask, getRunningTasks, init_framework, escapeXml, escapeXmlAttr, init_xml2 as init_xml, SYNTHETIC_OUTPUT_TOOL_NAME, isSyntheticOutputToolEnabled, createSyntheticOutputTool, init_SyntheticOutputTool, asSessionId, asAgentId, init_ids, getQuerySourceForREPL, init_promptCategory, ENTER_PLAN_MODE_TOOL_NAME, init_constants13 as init_constants3, ASK_USER_QUESTION_TOOL_NAME, init_prompt9 as init_prompt8, TODO_WRITE_TOOL_NAME, init_constants8 as init_constants4, SKILL_TOOL_NAME, init_constants10 as init_constants5, cronToHuman, init_cron, getCronFilePath, readCronTasks, hasCronTasksSync, removeCronTasks, markCronTasksFired, DEFAULT_CRON_JITTER_CONFIG, jitteredNextCronRunMs, oneShotJitteredNextCronRunMs, findMissedTasks, init_cronTasks, DEFAULT_MAX_AGE_DAYS, isKairosCronEnabled, CRON_CREATE_TOOL_NAME, CRON_DELETE_TOOL_NAME, exports_prompt, init_prompt12 as init_prompt9, init_tools, TEAM_CREATE_TOOL_NAME, init_constants20 as init_constants6, isCoordinatorMode, init_coordinatorMode, isZ4Schema, safeParse2 as safeParse, getObjectShape, init_zod_compat, Protocol, mergeCapabilities, init_protocol, AjvJsonSchemaValidator, init_ajv_provider, assertToolsCallTaskCapability, assertClientRequestTaskCapability, init_helpers, mapValues_default, init_mapValues, getRemoteSessionUrl, init_product, DEFAULT_BINDINGS, init_defaultBindings, NON_REBINDABLE, TERMINAL_RESERVED, MACOS_RESERVED, normalizeKeyForComparison, init_reservedShortcuts, isKeybindingCustomizationEnabled, getKeybindingsPath, loadKeybindingsSyncWithWarnings, getCachedKeybindingWarnings, init_loadUserBindings, getShortcutDisplay, init_shortcutFormat, isNavigableMessage, toolCallOf, MessageActionsSelectedContext, InVirtualListContext, useMessageActions, MessageActionsBar, stripSystemReminders, init_messageActions, init_prompt14 as init_prompt10, ListMcpResourcesTool, init_ListMcpResourcesTool, ProgressBar, init_ProgressBar, _baseEach_default, init__baseEach, reject_default, init_reject, loadPluginMcpServers, getUnconfiguredChannels, init_mcpPluginIntegration, fetchClaudeAIMcpConfigsIfEligible, clearClaudeAIMcpConfigsCache, hasClaudeAiMcpEverConnected, init_claudeai, getMcpServerSignature, dedupClaudeAiMcpServers, filterMcpServersByPolicy, addMcpConfig, removeMcpConfig, getMcpConfigsByScope, getMcpConfigByName, getClaudeCodeMcpConfigs, getAllMcpConfigs, parseMcpConfig, parseMcpConfigFromFilePath, doesEnterpriseMcpConfigExist, areMcpConfigsAllowedWithEnterpriseMcpConfig, isMcpServerDisabled, setMcpServerEnabled, init_config3 as init_config, filterToolsByServer, commandBelongsToServer, filterMcpPromptsByServer, excludeToolsByServer, excludeCommandsByServer, excludeResourcesByServer, excludeStalePluginClients, isMcpTool, describeMcpConfigFilePath, getScopeLabel, ensureConfigScope, ensureTransport, parseHeaders, getProjectMcpServerStatus, extractAgentMcpServers, init_utils2 as init_utils, isXaaEnabled, getXaaIdpSettings, issuerKey, getCachedIdpIdToken, saveIdpIdTokenFromJwt, clearIdpIdToken, saveIdpClientSecret, getIdpClientSecret, clearIdpClientSecret, acquireIdpIdToken, init_xaaIdpLogin, AuthenticationCancelledError, revokeServerTokens, clearServerTokensFromLocalStorage, performMCPOAuthFlow, ClaudeAuthProvider, readClientSecret, saveMcpClientSecret, clearMcpClientConfig, getMcpClientConfig, init_auth5 as init_auth, TOOL_RESULTS_SUBDIR, processToolResultBlock, provisionContentReplacementState, reconstructContentReplacementState, init_toolResultStorage, ReadMcpResourceTool, init_ReadMcpResourceTool, _baseSlice_default, init__baseSlice, capitalize_default, init_capitalize, isJetBrainsPluginInstalledCachedSync, init_jetbrains, WindowsToWSLConverter, init_idePathConversion, IdeOnboardingDialog, init_IdeOnboardingDialog, isJetBrainsIde, isSupportedVSCodeTerminal, isSupportedJetBrainsTerminal, isSupportedTerminal, getTerminalIdeType, getSortedIdeLockfiles, detectIDEs, hasAccessToIDEExtensionDiffFeature, isCursorInstalled, isWindsurfInstalled, isVSCodeInstalled, detectRunningIDEs, detectRunningIDEsCached, getConnectedIdeName, toIDEDisplayName, getConnectedIdeClient, closeOpenDiffs, initializeIdeIntegration, init_ide, recursivelySanitizeUnicode, init_sanitization, registerElicitationHandler, runElicitationHooks, runElicitationResultHooks, init_elicitationHandler, getMcpServerConnectionBatchSize, connectToServer, clearServerCache, areMcpConfigsEqual, fetchToolsForClient, fetchResourcesForClient, fetchCommandsForClient, callIdeRpc, reconnectMcpServerImpl, getMcpToolsCommandsAndResources, prefetchAllMcpResources, setupSdkMcpClients, init_client5 as init_client, isLocalShellTask, init_guards, getHookDisplayText, getAllHooks, hookSourceDescriptionDisplayString, hookSourceHeaderDisplayString, hookSourceInlineDisplayString, sortMatchersByPriority, init_hooksSettings, addSessionHook, addFunctionHook, removeSessionHook, init_sessionHooks, getDefaultSubagentModel, getAgentModelDisplay, getAgentModelOptions, init_agent, validateUuid2 as validateUuid, createAgentId, init_uuid, filterToolsForAgent, resolveAgentTools, init_agentToolUtils, useSettings, init_useSettings, applyMarkdown, init_markdown, Markdown, StreamingMarkdown, init_Markdown, isAdvisorBlock, isAdvisorEnabled, canUserConfigureAdvisor, modelSupportsAdvisor, isValidAdvisorModel, getInitialAdvisorSetting, init_advisor, checkOpus1mAccess, checkSonnet1mAccess, init_check1mAccess, getUpgradeMessage, init_contextWindowUpgradeCheck, setupGracefulShutdown, gracefulShutdownSync, isShuttingDown, gracefulShutdown, init_gracefulShutdown, getGroveSettings, markGroveNoticeViewed, updateGroveSettings, isQualifiedForGrove, getGroveNoticeConfig, calculateShouldShowGrove, checkGroveForNonInteractive, init_grove, initializePolicyLimitsLoadingPromise, isPolicyLimitsEligible, waitForPolicyLimitsToLoad, isPolicyAllowed, loadPolicyLimits, refreshPolicyLimits, init_policyLimits, isRemoteManagedSettingsEligible, init_syncCache, initializeRemoteManagedSettingsLoadingPromise, isEligibleForRemoteManagedSettings, waitForRemoteManagedSettingsToLoad, loadRemoteManagedSettings, refreshRemoteManagedSettings, init_remoteManagedSettings, performLogout, clearAuthRelatedCaches, call, init_logout, OAuthService, init_oauth2 as init_oauth, installOrUpdateClaudePackage, localInstallationExists, getShellType, init_localInstaller, assertMinVersion, getMaxVersion, getMaxVersionMessage, shouldSkipVersion, getLatestVersion, getNpmDistTags, getLatestVersionFromGcs, getGcsDistTags, installGlobalPackage, init_autoUpdater, getPackageManager, init_packageManagers, getCurrentInstallationType, getDoctorDiagnostic, init_doctorDiagnostic, getXDGStateHome, init_xdg, isPidBasedLockingEnabled, getAllLockInfo, cleanupStaleLocks, init_pidLock, checkInstall, installLatest, lockCurrentVersion, cleanupOldVersions, removeInstalledSymlink, cleanupShellAliases, cleanupNpmInstallations, init_nativeInstaller, getSettingsWithAllErrors, init_allErrors, buildSandboxProperties, buildIDEProperties, buildMcpProperties, buildMemoryDiagnostics, buildSettingSourcesProperties, buildInstallationDiagnostics, buildInstallationHealthDiagnostics, buildAccountProperties, buildAPIProviderProperties, getModelDisplayLabel, init_status, installOAuthTokens, authLogin, authStatus, authLogout, init_auth4 as init_auth1, sendNotification, init_notifier, PASTE_THRESHOLD, getImageFromClipboard, init_imagePaste, cacheImagePath, storeImage, storeImages, clearStoredImagePaths, cleanupOldImageCaches, init_imageStore, ListItem, init_ListItem, useRegisterOverlay, useIsOverlayActive, useIsModalOverlayActive, init_overlayContext, Select, init_select, buildBridgeConnectUrl, getBridgeStatus, buildIdleFooterText, buildActiveFooterText, FAILED_FOOTER_TEXT, init_bridgeStatusUtil, sample_default, init_sample, activityManager, init_activityManager, isInProcessTeammateTask, init_types5 as init_types1, TaskListV2, init_TaskListV2, useTasksV2, useTasksV2WithCollapseEffect, init_useTasksV2, toRGBColor, hueToRgb, init_utils3 as init_utils1, ShimmerChar, init_ShimmerChar, SpinnerGlyph, init_SpinnerGlyph, useShimmerAnimation, init_useShimmerAnimation, toInkColor, init_ink2 as init_ink, isBackgroundTask, init_types8 as init_types2, McpServerConfigForProcessTransportSchema, McpServerStatusSchema, PermissionUpdateSchema, PermissionModeSchema, HookEventSchema, HookInputSchema, SlashCommandSchema, AgentInfoSchema, ModelInfoSchema, AccountInfoSchema, AgentDefinitionSchema, SDKUserMessageSchema, SDKStreamlinedTextMessageSchema, SDKStreamlinedToolUseSummaryMessageSchema, SDKPostTurnSummaryMessageSchema, SDKMessageSchema, FastModeStateSchema, init_coreSchemas, readUnreadMessages, writeToMailbox, markMessagesAsRead, createIdleNotification, isPermissionRequest, isPermissionResponse, isSandboxPermissionRequest, isSandboxPermissionResponse, sendShutdownRequestToMailbox, isShutdownRequest, isPlanApprovalRequest, isShutdownApproved, isPlanApprovalResponse, isTeamPermissionUpdate, createModeSetRequestMessage, isModeSetRequest, getLastPeerDmSummary, init_teammateMailbox, permissionUpdateSchema, init_PermissionUpdateSchema, createPermissionRequest, isSwarmWorker, sendPermissionRequestViaMailbox, sendPermissionResponseViaMailbox, generateSandboxRequestId, sendSandboxPermissionRequestViaMailbox, sendSandboxPermissionResponseViaMailbox, init_permissionSync, registerPermissionCallback, hasPermissionCallback, clearAllPendingCallbacks, processMailboxPermissionResponse, registerSandboxPermissionCallback, hasSandboxPermissionCallback, processSandboxPermissionResponse, init_useSwarmPermissionPoller, registerLeaderToolUseConfirmQueue, getLeaderToolUseConfirmQueue, unregisterLeaderToolUseConfirmQueue, registerLeaderSetToolPermissionContext, unregisterLeaderSetToolPermissionContext, init_leaderPermissionBridge, exports_teammatePromptAddendum, init_teammatePromptAddendum, ensureBackendsRegistered, registerTmuxBackend, registerITermBackend, detectAndGetBackend, getBackendByType, getCachedBackend, getCachedDetectionResult, markInProcessFallback, isInProcessEnabled, getResolvedTeammateMode, getInProcessBackend, getTeammateExecutor, resetBackendDetection, init_registry, InProcessTeammateTask, injectUserMessageToTeammate, findTeammateTaskByAgentId, getAllInProcessTeammateTasks, getRunningTeammatesSorted, exports_InProcessTeammateTask, init_InProcessTeammateTask, getViewedTeammateTask, getActiveAgentForInput, init_selectors, useElapsedTime, init_useElapsedTime, SpinnerWithVerb, BriefIdleStatus, Spinner, init_Spinner2 as init_Spinner, ConsoleOAuthFlow, init_ConsoleOAuthFlow, extraUsage, init_extra_usage, useClaudeAiLimits, init_claudeAiLimitsHook, AssistantThinkingMessage, init_AssistantThinkingMessage, clearClassifierChecking, init_classifierApprovals, SentryErrorBoundary, init_SentryErrorBoundary, UserBashInputMessage, init_UserBashInputMessage, UserPlanMessage, init_UserPlanMessage, QueuedMessageProvider, init_QueuedMessageContext, UserTextMessage, init_UserTextMessage, diagnosticTracker, init_diagnosticTracking, FilePathLink, init_FilePathLink, PrBadge, init_PrBadge, getPillLabel, pillNeedsCta, init_pillLabel, OffscreenFreeze, init_OffscreenFreeze, hasThinkingContent, Message, init_Message, renderToolUseProgressMessage4 as renderToolUseProgressMessage, init_UI11 as init_UI, recordSkillUsage, getSkillUsageScore, init_skillUsageTracking, buildPluginTelemetryFields, buildPluginCommandTelemetryFields, logPluginsEnabledForSession, classifyPluginCommandError, logPluginLoadErrors, init_pluginTelemetry, runAgent, init_runAgent, TodoListSchema, init_types6 as init_types3, TodoWriteTool, init_TodoWriteTool, fetchEnvironments, init_environments, SelectMulti, init_SelectMulti, init_CustomSelect, TeleportError, init_TeleportError, KeybindingSetup, init_KeybindingProviderSetup, clearAllSessions, init_sessionIngress, fileHistoryEnabled, fileHistoryMakeSnapshot, fileHistoryRewind, fileHistoryCanRestore, fileHistoryGetDiffStats, fileHistoryHasAnyChanges, fileHistoryRestoreStateFromLog, copyFileHistoryForResume, init_fileHistory, init_outputsScanner, generateShortWordSlug, init_words, getPlanSlug, setPlanSlug, clearAllPlanSlugs, getPlansDirectory, getPlanFilePath, getPlan, copyPlanForResume, copyPlanForFork, init_plans, captureHooksConfigSnapshot, updateHooksConfigSnapshot, init_hooksConfigSnapshot, setEnvHookNotifier, initializeFileChangedWatcher, init_fileChangedWatcher, loadPluginHooks, clearPluginHookCache, pruneRemovedPluginHooks, resetHotReloadState, getPluginAffectingSettingsSnapshot, setupPluginHookHotReload, init_loadPluginHooks, takeInitialUserMessage, processSessionStartHooks, processSetupHooks, init_sessionStart, deserializeMessages, loadConversationForResume, init_conversationRecovery, downloadSessionFiles, parseFileSpecs, init_filesApi, generateTempFilePath, init_tempfile, validateGitState, processMessagesForTeleportResume, checkOutTeleportedSessionBranch, validateSessionRepository, teleportResumeCodeSession, teleportToRemoteWithErrorHandling, teleportFromSessionsAPI, pollRemoteSessionEvents, teleportToRemote, archiveRemoteSession, init_teleport, checkRemoteAgentEligibility, formatPreconditionError, registerRemoteAgentTask, restoreRemoteAgentTasks, RemoteAgentTask, getRemoteTaskSessionUrl, init_RemoteAgentTask, SkillTool, init_SkillTool, resetAllLSPDiagnosticState, init_LSPDiagnosticRegistry, loadPluginLspServers, init_lspPluginIntegration, getLspServerManager, getInitializationStatus, initializeLspServerManager, reinitializeLspServerManager, shutdownLspServerManager, init_manager, parseArguments, generateProgressiveArgumentHint, init_argumentSubstitution, clearPendingHint, markShownThisSession, subscribeToPendingHint, getPendingHintSnapshot, init_claudeCodeHints, isPluginBlockedByPolicy, init_pluginPolicy, resolvePluginHint, markHintPluginShown, disableHintRecommendations, init_hintRecommendation, CircularBuffer, init_CircularBuffer, validateBoundedIntEnvVar, init_envValidation, BASH_MAX_OUTPUT_UPPER_LIMIT, BASH_MAX_OUTPUT_DEFAULT, init_outputLimits, clearSessionEnvVars, init_sessionEnvVars, exec, setCwd, init_Shell, ShellProgressMessage, init_ShellProgressMessage, parseSedEditCommand, applySedSubstitution, init_sedEditParser, parsePowerShellCommandCached, getAllCommands2 as getAllCommands, init_parser3 as init_parser, isAllowlistedCommand, init_readOnlyValidation, NEVER_SUGGEST, init_dangerousCmdlets, PowerShellTool, exports_PowerShellTool, init_PowerShellTool, getSkillsPath, estimateSkillFrontmatterTokens, clearSkillCaches, onDynamicSkillsLoaded, clearDynamicSkills, init_loadSkillsDir, getStoredSessionCosts, restoreCostStateForSession, saveCurrentSessionCosts, formatCost, formatTotalCost, init_cost_tracker, CONTEXT_LINES, adjustHunkLineNumbers, getPatchFromContents, getPatchForDisplay, init_diff, fetchGitDiff, fetchGitDiffHunks, init_gitDiff, getColorModuleUnavailableReason, getSyntaxTheme2 as getSyntaxTheme, init_colorDiff, HighlightedCode, init_HighlightedCode, StructuredDiff, init_StructuredDiff, StructuredDiffList, init_StructuredDiffList, CHUNK_SIZE, openForScan, scanForContext, readCapped, init_readEditContext, findActualString, preserveQuoteStyle, getPatchForEdits, getEditsForPatch, init_utils as init_utils2, FileEditTool, init_FileEditTool, FileWriteTool, init_FileWriteTool, getGlobExclusionsForPluginCache, clearPluginCacheExclusions, init_orphanedPluginFilter, GrepTool, init_GrepTool, GlobTool, init_GlobTool, parseCellId, init_notebook, NotebookEditTool, init_NotebookEditTool, clearWebFetchCache, MAX_MARKDOWN_LENGTH, isPreapprovedUrl, validateURL, checkDomainBlocklist, isPermittedRedirect, getWithPermittedRedirects, getURLMarkdownContent, applyPromptToMarkdown, init_utils7 as init_utils3, WebFetchTool, init_WebFetchTool, readLastConsolidatedAt, init_consolidationLock, DreamTask, init_DreamTask, stopTask, init_stopTask, TaskStopTool, init_TaskStopTool, exports_BriefTool, init_BriefTool, TASK_MAX_OUTPUT_UPPER_LIMIT, TASK_MAX_OUTPUT_DEFAULT, init_outputFormatting, TaskOutputTool, init_TaskOutputTool, WebSearchTool, init_WebSearchTool, findInProcessTeammateTaskId, handlePlanApprovalResponse, init_inProcessTeammateHelpers, ExitPlanModeV2Tool, init_ExitPlanModeV2Tool, AskUserQuestionTool, init_AskUserQuestionTool, init_prompt23 as init_prompt11, isPlanModeInterviewPhaseEnabled, getPewterLedgerVariant, init_planModeV2, EnterPlanModeTool, init_EnterPlanModeTool, getModelOptions, init_modelOptions, init_voiceModeEnabled, validateModel, init_validateModel, registerSession, updateSessionName, updateSessionBridgeId, countConcurrentSessions, init_concurrentSessions, init_replBridgeHandle, startBackgroundSession, init_LocalMainSessionTask, buildEffectiveSystemPrompt, init_systemPrompt, resumeAgentBackground, init_resumeAgent, getAllBaseTools, filterToolsByDenyRules, getTools, assembleToolPool, init_tools2 as init_tools1, getHardcodedTeammateModelFallback, init_teammateModel, isAutoManagedMemoryFile, init_memoryFileDetection, getToolSearchOrReadInfo, getToolUseIdsFromCollapsedGroup, hasAnyToolInProgress, getDisplayMessageFromCollapsed, collapseReadSearchGroups, summarizeRecentActivities, init_collapseReadSearch, isLocalAgentTask, isPanelAgentTask, queuePendingMessage, appendMessageToLocalAgent, LocalAgentTask, killAllRunningAgentTasks, markAgentsNotified, init_LocalAgentTask, BACKGROUND_BASH_SUMMARY_PREFIX, LocalShellTask, hasForegroundTasks, backgroundAll, init_LocalShellTask, isMemoryFileAccess, registerSessionFileAccessHooks, init_sessionFileAccessHooks, BashTool, init_BashTool, getSimpleCommandPrefix, getFirstWordPrefix, clearSpeculativeChecks, init_bashPermissions, Stream, init_stream2 as init_stream, getErrorParts, init_toolErrors, startQueryProfile, queryCheckpoint, logQueryProfileReport, init_queryProfiler, isAutoDreamEnabled, init_config5 as init_config1, init_readFileInRange, initAutoDream, init_autoDream, init_tokenBudget, query, init_query, init_logging, getLastCacheSafeParams, createCacheSafeParams, prepareForkedCommandContext, extractResultText, createSubagentContext, runForkedAgent, init_forkedAgent, logPermissionContextForAnts, init_internalLogging, ERROR_MESSAGE_NOT_ENOUGH_MESSAGES, ERROR_MESSAGE_USER_ABORT, ERROR_MESSAGE_INCOMPLETE_RESPONSE, buildPostCompactMessages, mergeHookInstructions, compactConversation, partialCompactConversation, init_compact, runPostCompactCleanup, init_postCompactCleanup, loadSessionMemoryTemplate, buildSessionMemoryUpdatePrompt, init_prompts3 as init_prompts, shouldUseSessionMemoryCompaction, trySessionMemoryCompaction, init_sessionMemoryCompact, getEffectiveContextWindowSize, calculateTokenWarningState, isAutoCompactEnabled, init_autoCompact, countMcpToolTokens, analyzeContextUsage, init_analyzeContext, zodToJsonSchema3 as zodToJsonSchema, init_zodToJsonSchema2 as init_zodToJsonSchema, getAutoToolSearchCharThreshold, getToolSearchMode, modelSupportsToolReference, isToolSearchEnabledOptimistic, isToolSearchToolAvailable, isToolSearchEnabled, isToolReferenceBlock, extractDiscoveredToolNames, isDeferredToolsDeltaEnabled, getDeferredToolsDelta, init_toolSearch, roughTokenCountEstimation, init_tokenEstimation, registerFileReadListener, FileReadTool, init_FileReadTool, isValidImagePaste, init_textInputTypes, registerHookEventHandler, setAllHookEventsEnabled, init_hookEvents, finalizePendingAsyncHooks, init_AsyncHookRegistry, isHumanTurn, init_messagePredicates, getQueuedCommandAttachments, resetSentSkillNames, getAttachmentMessages, createAttachmentMessage, init_attachments2 as init_attachments, getPluginCommands, init_loadPluginCommands, isPluginZipCacheEnabled, getPluginZipCachePath, getZipCacheKnownMarketplacesPath, getZipCacheMarketplacesDir, getZipCachePluginsDir, cleanupSessionPluginCache, atomicWriteToZipCache, getMarketplaceJsonRelativePath, isMarketplaceSourceSupportedByZipCache, init_zipCache, clearAllCaches, markPluginVersionOrphaned, cleanupOrphanedPluginVersionsInBackground, init_cacheUtils, formatFailureDetails, getMarketplaceSourceDisplay, createPluginId, loadMarketplacesWithGracefulDegradation, formatMarketplaceLoadingErrors, getPluginTrustMessage, isSourceAllowedByPolicy, detectEmptyMarketplaceReason, init_marketplaceHelpers, fetchOfficialMarketplaceFromGcs, init_officialMarketplaceGcs, getMarketplacesCacheDir, clearMarketplacesCache, getDeclaredMarketplaces, saveMarketplaceToSettings, loadKnownMarketplacesConfig, loadKnownMarketplacesConfigSafe, saveKnownMarketplacesConfig, registerSeedMarketplaces, addMarketplaceSource, removeMarketplaceSource, getMarketplace, getPluginById, refreshAllMarketplaces, refreshMarketplace, setMarketplaceAutoUpdate, init_marketplaceManager, loadInstalledPluginsV2, removePluginInstallation, getInMemoryInstalledPlugins, loadInstalledPluginsFromDisk, updateInstallationPathOnDisk, initializeVersionedPlugins, isInstallationRelevantToCurrentProject, isPluginInstalled, isPluginGloballyInstalled, migrateFromEnabledPlugins, init_installedPluginsManager, getManagedPluginNames, init_managedPlugins, calculatePluginVersion, init_pluginVersioning, cacheAndRegisterPlugin, registerPluginInstallation, formatResolutionError, installResolvedPlugin, installPluginFromMarketplace, init_pluginInstallationHelpers, getVersionedCachePath, getVersionedZipCachePath, copyPluginToVersionedCache, cachePlugin, loadPluginManifest, loadAllPlugins, loadAllPluginsCacheOnly, clearPluginCache, init_pluginLoader, DEFAULT_OUTPUT_STYLE_NAME, OUTPUT_STYLE_CONFIG, getAllOutputStyles, init_outputStyles, withMemoryCorrectionHint, INTERRUPT_MESSAGE, INTERRUPT_MESSAGE_FOR_TOOL_USE, REJECT_MESSAGE, REJECT_MESSAGE_WITH_REASON_PREFIX, SUBAGENT_REJECT_MESSAGE, SUBAGENT_REJECT_MESSAGE_WITH_REASON_PREFIX, SYNTHETIC_MODEL, SYNTHETIC_MESSAGES, isSyntheticMessage, getLastAssistantMessage, hasToolCallsInLastAssistantTurn, createAssistantMessage, createUserMessage, prepareUserContent, createUserInterruptionMessage, createSyntheticUserCaveatMessage, formatCommandInputTags, createModelSwitchBreadcrumbs, extractTag, isNotEmptyMessage, deriveUUID, normalizeMessages, isToolUseResultMessage, reorderMessagesInUI, buildMessageLookups, EMPTY_LOOKUPS, EMPTY_STRING_SET, getSiblingToolUseIDsFromLookup, getProgressMessagesFromLookup, hasUnresolvedHooksFromLookup, getToolUseIDs, isSystemLocalCommandMessage, normalizeMessagesForAPI, isEmptyMessageText, stripPromptXMLTags, getToolUseID, getUserMessageText, textForResubmit, extractTextContent, getContentText, handleMessageFromStream, createSystemMessage, createPermissionRetryMessage, createScheduledTaskFireMessage, createTurnDurationMessage, createAgentsKilledMessage, createApiMetricsMessage, createCommandInputMessage, isCompactBoundaryMessage, getMessagesAfterCompactBoundary, shouldShowUserMessage, countToolCalls, stripSignatureBlocks, init_messages2 as init_messages1, startsWithApiErrorPrefix, categorizeRetryableAPIError, init_errors3 as init_errors, splitCommand_DEPRECATED, clearCommandPrefixCaches, extractOutputRedirections, init_commands, shouldUseSandbox, init_shouldUseSandbox, permissionRuleSourceDisplayString, getAllowRules, getDenyRules, getAskRules, hasPermissionsToUseTool, deletePermissionRule, init_permissions2 as init_permissions, removeDangerousPermissions, transitionPermissionMode, initialPermissionModeFromCLI, parseToolListFromCLI, initializeToolPermissionContext, getAutoModeUnavailableNotification, shouldDisableBypassPermissions, getAutoModeUnavailableReason, isBypassPermissionsModeDisabled, createDisabledBypassPermissionsContext, checkAndDisableBypassPermissions, prepareContextForPlanMode, transitionPlanAutoMode, init_permissionSetup, applySettingsChange, init_applySettingsChange, AppStateProvider, useAppState, useSetAppState, useAppStateStore, init_AppState, useNotifications, init_notifications, useClipboardImageHint, init_useClipboardImageHint, prependModeCharacterToInput, getModeFromInput, getValueFromInput, init_inputModes, cleanupOldPastes, init_pasteStore, getPastedTextRefNumLines, formatPastedTextRef, formatImageRef, parseReferences, expandPastedTextRefs, makeHistoryReader, getHistory, addToHistory, removeLastFromHistory, init_history, pushToKillRing, getLastKill, resetKillAccumulation, recordYank, yankPop, updateYankLength, resetYankState, isVimWordChar, isVimWhitespace, isVimPunctuation, Cursor, init_Cursor, useTextInput, init_useTextInput, BaseTextInput, init_BaseTextInput, TextInput, init_TextInput, getWorktreePaths, init_getWorktreePaths, isUltrareviewEnabled, init_ultrareviewEnabled, review_default, init_review, REMOTE_CONTROL_DISCONNECTED_MSG, init_types12 as init_types4, validateBridgeId, BridgeFatalError, createBridgeApiClient, isExpiredErrorType, isSuppressible403, init_bridgeApi, registerBridgeDebugHandle, clearBridgeDebugHandle, injectBridgeFault, wrapApiForFaultInjection, init_bridgeDebug, registerBundledSkill, init_bundledSkills, exit_default, init_exit, upgrade_default, init_upgrade, getCommandName, isCommandEnabled, builtInCommandNames, getCommands, clearCommandMemoizationCaches, clearCommandsCache, getSkillToolCommands, getSlashCommandToolSkills, REMOTE_SAFE_COMMANDS, isBridgeSafeCommand, filterCommandsForRemoteMode, findCommand, hasCommand, getCommand, formatDescriptionWithSource, init_commands2 as init_commands1, isTranscriptMessage, isChainParticipant, isEphemeralToolProgress, getProjectsDir2 as getProjectsDir, getTranscriptPath, getTranscriptPathForSession, MAX_TRANSCRIPT_READ_BYTES, setAgentTranscriptSubdir, clearAgentTranscriptSubdir, getAgentTranscriptPath, writeAgentMetadata, readAgentMetadata, writeRemoteAgentMetadata, readRemoteAgentMetadata, deleteRemoteAgentMetadata, listRemoteAgentMetadata, sessionIdExists, getNodeEnv, getUserType, isCustomTitleEnabled, getProjectDir, resetProjectFlushStateForTesting, resetProjectForTesting, setSessionFileForTesting, setInternalEventWriter, setInternalEventReader, setRemoteIngressUrlForTesting, recordTranscript, recordSidechainTranscript, recordQueueOperation, removeTranscriptMessage, recordFileHistorySnapshot, recordAttributionSnapshot, recordContentReplacement, resetSessionFilePointer, adoptResumedSessionFile, recordContextCollapseCommit, recordContextCollapseSnapshot, flushSessionStorage, hydrateRemoteSession, hydrateFromCCRv2InternalEvents, getFirstMeaningfulUserMessageTextContent, removeExtraFields, buildConversationChain, checkResumeConsistency, loadTranscriptFromFile, fetchLogs, saveCustomTitle, saveAiGeneratedTitle, saveTaskSummary, saveTag, linkSessionToPR, getCurrentSessionTag, getCurrentSessionTitle, getCurrentSessionAgentColor, restoreSessionMetadata, clearSessionMetadata, reAppendSessionMetadata, saveAgentName, saveAgentColor, saveAgentSetting, cacheSessionTitle, saveMode, saveWorktreeState, getSessionIdFromLog, isLiteLog, loadFullLog, searchSessionsByCustomTitle, loadTranscriptFile, clearSessionMessagesCache, doesMessageExistInSession, getLastSessionLog, loadMessageLogs, loadAllProjectsMessageLogs, loadAllProjectsMessageLogsProgressive, loadSameRepoMessageLogs, loadSameRepoMessageLogsProgressive, getAgentTranscript, extractAgentIdsFromMessages, extractTeammateTranscriptsFromTasks, loadSubagentTranscripts, loadAllSubagentTranscriptsFromDisk, isLoggableMessage, cleanMessagesForLogging, getLogByIndex, findUnresolvedToolUse, getSessionFilesWithMtime, loadAllLogsFromSessionFile, getSessionFilesLite, enrichLogs, exports_sessionStorage, init_sessionStorage, loadMemoryPrompt, init_memdir, getAgentMemoryDir, getMemoryScopeDisplay, loadAgentMemoryPrompt, init_agentMemory, normalizeCaseForComparison2 as normalizeCaseForComparison, getSessionMemoryDir, getSessionMemoryPath, isScratchpadEnabled, getScratchpadDir, ensureScratchpadDir, pathInAllowedWorkingPath, generateSuggestions, init_filesystem, getTaskOutputPath, evictTaskOutput, initTaskOutputAsSymlink, init_diskOutput, isTerminalTaskStatus, init_Task, hookJSONOutputSchema, init_hooks2 as init_hooks, createCombinedAbortSignal, init_combinedAbortSignal, registerStructuredOutputEnforcement, init_hookHelpers, getSessionEndHookTimeoutMs, shouldSkipHookDueToTrust, createBaseHookInput, getMatchingHooks, getPreToolHookBlockingMessage, getStopHookMessage, getTeammateIdleHookMessage, getTaskCreatedHookMessage, getTaskCompletedHookMessage, getUserPromptSubmitHookBlockingMessage, hasBlockingResult, executePreToolHooks, executePostToolHooks, executePostToolUseFailureHooks, executePermissionDeniedHooks2 as executePermissionDeniedHooks, executeNotificationHooks, executeStopFailureHooks, executeStopHooks, executeTeammateIdleHooks, executeTaskCreatedHooks, executeTaskCompletedHooks, executeUserPromptSubmitHooks, executeSessionStartHooks, executeSetupHooks, executeSubagentStartHooks, executePreCompactHooks, executePostCompactHooks, executeSessionEndHooks, executePermissionRequestHooks, executeConfigChangeHooks, executeCwdChangedHooks, executeFileChangedHooks, hasInstructionsLoadedHook, executeInstructionsLoadedHooks, executeElicitationHooks, executeElicitationResultHooks, executeStatusLineCommand, executeFileSuggestionCommand, hasWorktreeCreateHook, executeWorktreeCreateHook, executeWorktreeRemoveHook, init_hooks3 as init_hooks1, validateWorktreeSlug, getCurrentWorktreeSession, restoreWorktreeSession, generateTmuxSessionName, worktreeBranchName, copyWorktreeIncludeFiles, parsePRReference, isTmuxAvailable2 as isTmuxAvailable, getTmuxInstallInstructions, createTmuxSessionForWorktree, killTmuxSession, createWorktreeForSession, keepWorktree, cleanupWorktree, createAgentWorktree, removeAgentWorktree, cleanupStaleAgentWorktrees, hasWorktreeChanges, execIntoTmuxWorktree, init_worktree, getSystemPrompt, init_prompts as init_prompts1, prependUserContext, logContextMetrics, init_api2 as init_api, verifyApiKey, queryModelWithoutStreaming, updateUsage, accumulateUsage, queryHaiku, queryWithModel, init_claude, sideQuery, init_sideQuery };
|