@zyycn/claudex 1.0.3-fork.dc451ee → 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-h15b7cz3.js → chunk-01wr8b2k.js} +1 -1
- package/dist/{chunk-cgj8jsts.js → chunk-02pmnf7v.js} +4 -4
- package/dist/{chunk-29z3qkgf.js → chunk-05h9dkhs.js} +20 -19
- package/dist/{chunk-ecpna5ny.js → chunk-0ga1p5xs.js} +20 -19
- package/dist/{chunk-zym9gr30.js → chunk-0k68rhv0.js} +21 -20
- package/dist/{chunk-6dapx39c.js → chunk-0r42cjt0.js} +5 -5
- package/dist/{chunk-sz2my4s2.js → chunk-0z478j9t.js} +6 -6
- package/dist/{chunk-mqqxnnfj.js → chunk-19t3jw8x.js} +3 -3
- package/dist/{chunk-7g5m01ns.js → chunk-1g6tvv0z.js} +2 -2
- package/dist/{chunk-ggtxtmxb.js → chunk-1gjhtpj5.js} +27 -26
- package/dist/{chunk-8n6h3zms.js → chunk-1mqnq53j.js} +3 -3
- package/dist/{chunk-rxg5tfet.js → chunk-1nt5wc40.js} +20 -19
- package/dist/{chunk-vzp6qwme.js → chunk-1sabh25e.js} +2 -2
- package/dist/{chunk-70sptmfr.js → chunk-1ssp33jf.js} +1 -1
- package/dist/{chunk-5vjhgysy.js → chunk-1xcdsfs3.js} +21 -20
- package/dist/{chunk-sfmvvvej.js → chunk-1z7zde10.js} +1 -1
- package/dist/{chunk-drnpqm9b.js → chunk-21yy16bw.js} +1 -1
- package/dist/{chunk-928e93fe.js → chunk-23grfsnk.js} +21 -20
- package/dist/{chunk-0ybgmphy.js → chunk-2438dcc3.js} +20 -19
- package/dist/chunk-24xvt6zv.js +267 -0
- package/dist/{chunk-r33bj9hd.js → chunk-26jzxc16.js} +20 -19
- package/dist/{chunk-0wsksm3h.js → chunk-2821abx0.js} +24 -23
- package/dist/{chunk-b492k6w5.js → chunk-2apnw8cf.js} +1 -1
- package/dist/{chunk-v5cyme56.js → chunk-2j24kmqd.js} +3 -3
- package/dist/{chunk-12vrm30y.js → chunk-2jr2qzaj.js} +3 -3
- package/dist/{chunk-dwfph287.js → chunk-2pbwvm74.js} +20 -19
- package/dist/{chunk-8qt8g4v6.js → chunk-2wf43vyh.js} +20 -19
- package/dist/{chunk-d77k886w.js → chunk-30j08xb7.js} +20 -19
- package/dist/{chunk-gh095zq3.js → chunk-35s627hz.js} +28 -27
- package/dist/{chunk-0fxwgch0.js → chunk-39f1ajfm.js} +5 -5
- package/dist/{chunk-bqqmwf67.js → chunk-3a9tb3er.js} +20 -19
- package/dist/{chunk-t7jreps1.js → chunk-3aps1tag.js} +1 -1
- package/dist/{chunk-x83df67j.js → chunk-3az3s2dr.js} +4 -4
- package/dist/{chunk-9zy5e7xp.js → chunk-3cvgbrfj.js} +1 -1
- package/dist/{chunk-my0s74jd.js → chunk-3e0s1swc.js} +5 -5
- package/dist/{chunk-mtvjbywy.js → chunk-3qan8w8e.js} +31 -30
- package/dist/{chunk-fdex6gh0.js → chunk-3wxdnr9s.js} +4 -4
- package/dist/{chunk-y8nbd78g.js → chunk-44c4c3tf.js} +22 -21
- package/dist/{chunk-039mev52.js → chunk-4akmcbss.js} +1 -1
- package/dist/{chunk-trxj710w.js → chunk-4bfm3re3.js} +21 -20
- package/dist/{chunk-cs5fn1ys.js → chunk-4f0g9kt8.js} +2 -2
- package/dist/{chunk-sfznvv94.js → chunk-4k6e0nqt.js} +2 -2
- package/dist/{chunk-7mxd760q.js → chunk-4r4n63xq.js} +21 -20
- package/dist/{chunk-d5c4hhjf.js → chunk-4w38zgp6.js} +4 -4
- package/dist/{chunk-bq30y0tt.js → chunk-4ybw0d71.js} +18 -18
- package/dist/{chunk-nc7cr0gr.js → chunk-54cefep6.js} +2 -2
- package/dist/{chunk-w4nbestk.js → chunk-5dk0z8pa.js} +611 -682
- package/dist/{chunk-3sn27knv.js → chunk-5y6bvafh.js} +1 -1
- package/dist/{chunk-4vy9ansq.js → chunk-65rsansb.js} +2 -2
- package/dist/{chunk-q1s4atwf.js → chunk-6b046n5x.js} +2 -2
- package/dist/{chunk-mvzv376c.js → chunk-6dd4e918.js} +22 -21
- package/dist/{chunk-4k5tvnaa.js → chunk-6df46z6q.js} +2 -2
- package/dist/{chunk-893egk2x.js → chunk-6n13qf4a.js} +7 -7
- package/dist/{chunk-8xthyq2a.js → chunk-6pj4v4qk.js} +20 -19
- package/dist/{chunk-rnnpz84j.js → chunk-6qqn7nm7.js} +20 -19
- package/dist/{chunk-mdcrf7kq.js → chunk-6xz7798k.js} +1 -1
- package/dist/{chunk-qe7v8338.js → chunk-70z4cekc.js} +1 -1
- package/dist/{chunk-knpcrc3f.js → chunk-71pdxr0w.js} +6 -6
- package/dist/{chunk-c52pxtdp.js → chunk-731chhqb.js} +20 -19
- package/dist/{chunk-pkch61xz.js → chunk-73ypyn34.js} +1 -1
- package/dist/{chunk-01jbgenf.js → chunk-77paevx3.js} +35 -34
- package/dist/{chunk-3e6mgtmj.js → chunk-78j6mner.js} +2 -2
- package/dist/{chunk-rt07mhhd.js → chunk-7ethrqkf.js} +1 -1
- package/dist/{chunk-3ph8mywh.js → chunk-7hnfsk5p.js} +25 -24
- package/dist/{chunk-935snp32.js → chunk-7mk5xrr5.js} +2 -2
- package/dist/{chunk-c02es22f.js → chunk-82wavg20.js} +2 -2
- package/dist/{chunk-5dyqnr9v.js → chunk-83w1nezx.js} +20 -19
- package/dist/{chunk-1w5mkj15.js → chunk-846rntfe.js} +22 -21
- package/dist/{chunk-5qcb7v09.js → chunk-84d1a15r.js} +21 -20
- package/dist/{chunk-ph3b78ps.js → chunk-86mampef.js} +3 -3
- package/dist/{chunk-6q6f1wpf.js → chunk-8acyzy32.js} +1 -1
- package/dist/{chunk-hy4tj4dr.js → chunk-8d235jn7.js} +1 -1
- package/dist/{chunk-54ey0bfh.js → chunk-8fm85wdy.js} +20 -19
- package/dist/{chunk-h43t48kg.js → chunk-8m0qwksh.js} +20 -19
- package/dist/{chunk-md1y2eqg.js → chunk-91kmjxr7.js} +13 -13
- package/dist/{chunk-gmtb3py1.js → chunk-96fwp5k5.js} +8 -8
- package/dist/{chunk-6zj0xxwa.js → chunk-9a6b7d6t.js} +20 -19
- package/dist/{chunk-c5gedm4r.js → chunk-9c6pqkhv.js} +20 -19
- package/dist/{chunk-x59aq274.js → chunk-9epd9ffp.js} +2 -2
- package/dist/{chunk-jepn7r9p.js → chunk-9j94avjw.js} +3 -3
- package/dist/{chunk-2fmhdd8f.js → chunk-9mvar53y.js} +2 -2
- package/dist/{chunk-204bvb3a.js → chunk-9vte2cw2.js} +20 -19
- package/dist/{chunk-tx795rhd.js → chunk-a191c7re.js} +1 -1
- package/dist/{chunk-gn3ehnss.js → chunk-a619g33p.js} +2 -2
- package/dist/{chunk-q1e2q8vd.js → chunk-a9mnjbt6.js} +1 -1
- package/dist/{chunk-v7te982b.js → chunk-ajemg1rr.js} +20 -19
- package/dist/{chunk-4g3nkwf6.js → chunk-apnad17h.js} +3 -3
- package/dist/{chunk-xrzjf3ng.js → chunk-asy2fx7w.js} +24 -23
- package/dist/{chunk-sxv4ej3r.js → chunk-aw0kx4pr.js} +21 -20
- package/dist/{chunk-zqprzgwd.js → chunk-b0yay83x.js} +5 -5
- package/dist/{chunk-f1q9zc26.js → chunk-b2hq8x5s.js} +3 -3
- package/dist/{chunk-t6f605we.js → chunk-b9gsdb4y.js} +21 -20
- package/dist/{chunk-5q3xwwxc.js → chunk-bc7754kx.js} +3 -3
- package/dist/{chunk-a0yq6r2s.js → chunk-bew1hspf.js} +4 -4
- package/dist/{chunk-ezv8m5n1.js → chunk-bgqd5dkt.js} +1 -1
- package/dist/{chunk-w1yp7n9a.js → chunk-bjf25ne8.js} +25 -24
- package/dist/{chunk-xgtm1e87.js → chunk-bpzdwzkw.js} +28 -27
- package/dist/{chunk-15ep9q6g.js → chunk-c56k9xjt.js} +22 -21
- package/dist/{chunk-w56p0krx.js → chunk-c7nvtz8q.js} +2 -2
- package/dist/{chunk-vnkvzr4h.js → chunk-cbgw03t3.js} +14 -14
- package/dist/{chunk-j9jdgw34.js → chunk-cfq4ya37.js} +23 -22
- package/dist/{chunk-k23pmfbx.js → chunk-cky736mr.js} +1 -1
- package/dist/{chunk-65rhdjsh.js → chunk-cm35zjcr.js} +1 -1
- package/dist/{chunk-y1awg7b9.js → chunk-cn2204je.js} +21 -20
- package/dist/{chunk-h9jv2xgg.js → chunk-cp7dqznm.js} +2 -2
- package/dist/{chunk-kfbmhrtq.js → chunk-crtz5w2n.js} +4 -4
- package/dist/{chunk-nc2jgzdn.js → chunk-cw47e4ye.js} +8 -8
- package/dist/{chunk-adsny3rk.js → chunk-dbgvwfv7.js} +1 -1
- package/dist/{chunk-12ba0dyr.js → chunk-dj02z1xd.js} +4 -4
- package/dist/{chunk-zhs1p77x.js → chunk-dnmxdcba.js} +2 -2
- package/dist/{chunk-axg7dmhd.js → chunk-dr91dmw6.js} +25 -24
- package/dist/{chunk-9cyyef6h.js → chunk-e0hr3fx8.js} +20 -19
- package/dist/{chunk-p1awc9y1.js → chunk-ecpcxjdk.js} +3 -3
- package/dist/{chunk-d2ptwy7e.js → chunk-ed1dx70t.js} +1 -1
- package/dist/{chunk-fst69d4x.js → chunk-er3qeydy.js} +22 -21
- package/dist/{chunk-mnxz3vrc.js → chunk-ern3pbcx.js} +14 -14
- package/dist/{chunk-fhxyts2e.js → chunk-esafcgfa.js} +2 -2
- package/dist/{chunk-72qky895.js → chunk-ezv3xk0x.js} +1 -1
- package/dist/{chunk-k1crwgbf.js → chunk-fawgvfd4.js} +27 -26
- package/dist/{chunk-yc2q7z9e.js → chunk-feeh737b.js} +20 -19
- package/dist/{chunk-75v2m3wc.js → chunk-frevtj6g.js} +2 -2
- package/dist/{chunk-xm6kmhn3.js → chunk-frkbt9r1.js} +1 -1
- package/dist/{chunk-8jqd6zk1.js → chunk-fxd49xce.js} +6 -6
- package/dist/{chunk-kbx5e5my.js → chunk-fynntf54.js} +1 -1
- package/dist/{chunk-vfenn4z5.js → chunk-g42cmdjg.js} +6 -6
- package/dist/{chunk-wfgd8s68.js → chunk-g5cfpvsg.js} +5 -5
- package/dist/{chunk-adr042e8.js → chunk-g6a5r6fm.js} +2 -2
- package/dist/{chunk-0dh6n0ch.js → chunk-gn0d4spw.js} +3 -3
- package/dist/{chunk-pkct38g4.js → chunk-gq3wv0wt.js} +5 -5
- package/dist/{chunk-451p7apq.js → chunk-gr8j186r.js} +7 -7
- package/dist/{chunk-t8aatza2.js → chunk-h2j25g79.js} +20 -19
- package/dist/{chunk-gzdjjnn5.js → chunk-h3qbajvx.js} +3 -3
- package/dist/{chunk-tf2bch5a.js → chunk-h8r3gb0v.js} +9 -9
- package/dist/{chunk-a3n7swjm.js → chunk-h9gh97rn.js} +10 -10
- package/dist/{chunk-p0j4ydhy.js → chunk-h9qjbp1t.js} +20 -19
- package/dist/{chunk-qb9wcc29.js → chunk-hay4dtrp.js} +2 -2
- package/dist/{chunk-5kysreeg.js → chunk-hc1wtm8h.js} +21 -20
- package/dist/{chunk-c35xkm17.js → chunk-hp32j0y0.js} +21 -20
- package/dist/{chunk-dqf0z3wb.js → chunk-hqrqsmzy.js} +27 -26
- package/dist/{chunk-j35has2p.js → chunk-hsrqmn3b.js} +1 -1
- package/dist/{chunk-9xeqmmys.js → chunk-hx1yn15m.js} +2 -2
- package/dist/{chunk-14tk332x.js → chunk-j0hk8w4t.js} +23 -22
- package/dist/{chunk-v6czveqp.js → chunk-j6m3jrbj.js} +2 -2
- package/dist/{chunk-ckhrg84a.js → chunk-jjxy0jze.js} +22 -21
- package/dist/{chunk-ygz63dz0.js → chunk-jk741cv1.js} +4 -4
- package/dist/{chunk-bh40vfxs.js → chunk-jm4fafwd.js} +74 -72
- package/dist/{chunk-h64ezmsr.js → chunk-js5ddy7p.js} +21 -20
- package/dist/{chunk-1txpc2g1.js → chunk-jz10r9rv.js} +21 -20
- package/dist/{chunk-m4gdbyrb.js → chunk-k7bkej7d.js} +2 -2
- package/dist/{chunk-xyqhqbv4.js → chunk-m6jw7q5d.js} +21 -20
- package/dist/{chunk-3yasspz3.js → chunk-ma7t6egq.js} +20 -19
- package/dist/{chunk-t9szgfq4.js → chunk-meqsta32.js} +21 -20
- package/dist/{chunk-n9baptct.js → chunk-mgx38db9.js} +20 -19
- package/dist/chunk-mstqzs6p.js +145 -0
- package/dist/{chunk-v8gmdw89.js → chunk-n2ag0df4.js} +32 -31
- package/dist/{chunk-9r95vmm0.js → chunk-n30y8j85.js} +11 -11
- package/dist/{chunk-zma5bt6m.js → chunk-n37ztrjn.js} +2 -2
- package/dist/{chunk-xpxja2pj.js → chunk-ndx5vged.js} +21 -20
- package/dist/{chunk-yn35568f.js → chunk-nfrydmks.js} +3 -3
- package/dist/{chunk-5nrq1pdw.js → chunk-njrhnjyt.js} +20 -19
- package/dist/{chunk-dx35mxvf.js → chunk-nkhv534m.js} +30 -29
- package/dist/{chunk-bff0kgxz.js → chunk-nn3k0zx9.js} +1 -1
- package/dist/{chunk-95s727e4.js → chunk-nq8m9cpa.js} +21 -20
- package/dist/{chunk-3j94qess.js → chunk-nt336bn5.js} +31 -30
- package/dist/{chunk-7efm29pb.js → chunk-nv2d2hf3.js} +4 -4
- package/dist/chunk-nzd11saa.js +213 -0
- package/dist/{chunk-ncms02sf.js → chunk-p3bxdsx7.js} +2 -2
- package/dist/{chunk-h4mynavj.js → chunk-pbgtahw1.js} +22 -21
- package/dist/{chunk-yym7gb2v.js → chunk-pc5fegr8.js} +579 -599
- package/dist/{chunk-k9njhmpx.js → chunk-phq4xb29.js} +1 -1
- package/dist/{chunk-gdmf3jkv.js → chunk-pjr0e1a1.js} +20 -19
- package/dist/{chunk-cjwzcb6y.js → chunk-pk76xtrm.js} +20 -19
- package/dist/{chunk-dj3twbkt.js → chunk-prvvpwy2.js} +23 -22
- package/dist/{chunk-3k7b192z.js → chunk-ps9yvxr8.js} +26 -25
- package/dist/{chunk-t6n82trs.js → chunk-pskb02c1.js} +2 -2
- package/dist/{chunk-4nset8em.js → chunk-pv5hyepe.js} +24 -23
- package/dist/{chunk-a4f63wwn.js → chunk-pwfc5vts.js} +27 -26
- package/dist/{chunk-4x6pcda3.js → chunk-q14zdmzn.js} +1 -1
- package/dist/{chunk-xdxqjjjm.js → chunk-q1m2756m.js} +2 -2
- package/dist/{chunk-yac7hqxy.js → chunk-qawxwdx7.js} +21 -20
- package/dist/{chunk-fye84z7c.js → chunk-qevm3y8y.js} +2 -2
- package/dist/{chunk-5v3sg5wp.js → chunk-qjk1jnzh.js} +1 -1
- package/dist/{chunk-ng9r08ph.js → chunk-qmaxxcva.js} +9 -9
- package/dist/{chunk-j877m6ys.js → chunk-qn0wd7s3.js} +2 -2
- package/dist/{chunk-0r43hjca.js → chunk-qt9x0k50.js} +6 -6
- package/dist/{chunk-e3q7htwd.js → chunk-r0c1vyrd.js} +1 -1
- package/dist/{chunk-tzm3e3gk.js → chunk-r8amcnbm.js} +6 -6
- package/dist/{chunk-tp128m12.js → chunk-r8h9d011.js} +2 -2
- package/dist/{chunk-hjdgcdwx.js → chunk-ramjyyc8.js} +2 -2
- package/dist/{chunk-a3dhm7f4.js → chunk-rbbsyaff.js} +1 -1
- package/dist/{chunk-03vfa4c5.js → chunk-rcmqhhx2.js} +23 -22
- package/dist/{chunk-hq4ghfgh.js → chunk-rkt1hd6c.js} +24 -23
- package/dist/{chunk-e067kzj6.js → chunk-rnq575t3.js} +2 -2
- package/dist/{chunk-ac769m23.js → chunk-rt1b88z4.js} +2 -2
- package/dist/{chunk-hmym2src.js → chunk-rvakdrb0.js} +2 -2
- package/dist/{chunk-42ppyf2p.js → chunk-rzw11yt1.js} +34 -33
- package/dist/{chunk-vsds9f6z.js → chunk-s1rcbzcw.js} +2 -2
- package/dist/{chunk-8msd30bx.js → chunk-s6n27pkj.js} +21 -20
- package/dist/{chunk-gn3ahnf2.js → chunk-s6ybwgw7.js} +20 -19
- package/dist/{chunk-6camhvtz.js → chunk-s9pz9w8z.js} +24 -23
- package/dist/{chunk-q10bhasj.js → chunk-saajhd26.js} +36 -35
- package/dist/{chunk-raxk1djz.js → chunk-scg8vnj4.js} +2 -2
- package/dist/{chunk-j566xj0b.js → chunk-sdyzhdc1.js} +24 -23
- package/dist/chunk-sez4m9bv.js +89 -0
- package/dist/{chunk-vhnpv3pj.js → chunk-smm60eqj.js} +2 -2
- package/dist/{chunk-f5c2rz1k.js → chunk-sw272bd9.js} +20 -19
- package/dist/{chunk-6x07mer9.js → chunk-sw7mv4fp.js} +20 -20
- package/dist/{chunk-dhhhc3nr.js → chunk-syes26qt.js} +1 -1
- package/dist/{chunk-a280pgbp.js → chunk-t8hyzrty.js} +4 -4
- package/dist/{chunk-34bxf7y6.js → chunk-thvvdwdj.js} +1 -1
- package/dist/{chunk-4he43f79.js → chunk-tqbt95fc.js} +22 -21
- package/dist/{chunk-re781b8d.js → chunk-tqg3vc07.js} +22 -21
- package/dist/chunk-vb317ddm.js +196 -0
- package/dist/{chunk-e8bq61w7.js → chunk-vfz8zvd0.js} +22 -21
- package/dist/{chunk-fwczm6pd.js → chunk-vndc6hwb.js} +31 -30
- package/dist/{chunk-f1t11cfc.js → chunk-w2kgev13.js} +22 -21
- package/dist/{chunk-mvtgvpcq.js → chunk-w3wnk6jn.js} +21 -20
- package/dist/{chunk-bv2eqmzw.js → chunk-w4w72f1r.js} +1 -1
- package/dist/{chunk-bgrf03e7.js → chunk-w7qmyya1.js} +21 -20
- package/dist/{chunk-w7g64wm8.js → chunk-wn91yme5.js} +2 -2
- package/dist/{chunk-hxj00asb.js → chunk-wq2c5sg5.js} +20 -19
- package/dist/{chunk-ve5vatga.js → chunk-wqrtcbsj.js} +20 -19
- package/dist/chunk-wv2681bc.js +513 -0
- package/dist/{chunk-sdp7y6wk.js → chunk-wxn90wjg.js} +1 -1
- package/dist/{chunk-kqseqv7y.js → chunk-xmv1mbda.js} +1 -1
- package/dist/{chunk-0jpawpmr.js → chunk-xmz7js2j.js} +98 -97
- package/dist/{chunk-gk96s7cj.js → chunk-xs63hmf9.js} +21 -20
- package/dist/{chunk-0njdqjh2.js → chunk-xy3a8670.js} +44 -43
- package/dist/{chunk-yfsxkk0m.js → chunk-xzvvq64s.js} +4 -4
- package/dist/{chunk-ssk2rgcq.js → chunk-y23m4n37.js} +31 -30
- package/dist/{chunk-yd7rjac1.js → chunk-y663q7cw.js} +1 -1
- package/dist/{chunk-tsrmegs7.js → chunk-y7hjaba4.js} +9 -9
- package/dist/{chunk-kbw8v1gx.js → chunk-y7zkx124.js} +3 -3
- package/dist/{chunk-qqzq7zq5.js → chunk-y9aatm1y.js} +20 -19
- package/dist/{chunk-prxnxj25.js → chunk-y9sd7hzk.js} +21 -20
- package/dist/{chunk-g851jeek.js → chunk-yb4vwgj7.js} +23 -22
- package/dist/{chunk-a8441emx.js → chunk-yp4j4zds.js} +20 -19
- package/dist/{chunk-cckwtdb4.js → chunk-ystcd8se.js} +1 -1
- package/dist/{chunk-f7vscw75.js → chunk-ytf7qs19.js} +20 -19
- package/dist/{chunk-9gpzf0pn.js → chunk-yvwpdf32.js} +1 -1
- package/dist/{chunk-qqrva33h.js → chunk-yvz7p2w8.js} +20 -19
- package/dist/{chunk-abeh3zrz.js → chunk-z02bkcdy.js} +2 -2
- package/dist/{chunk-ypn9csh5.js → chunk-z40yd48f.js} +1 -1
- package/dist/{chunk-3z1qwrcm.js → chunk-zgcgdxxa.js} +7 -7
- package/dist/{chunk-yy038nv7.js → chunk-zrbjy5n9.js} +6 -6
- package/dist/{chunk-pdhje0vd.js → chunk-zvvs0p94.js} +1 -1
- package/dist/{chunk-w774ntch.js → chunk-zw1rsq5n.js} +31 -30
- package/dist/cli.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-shcf6ywy.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-65rhdjsh.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,179 +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 roll(userId) {
|
|
5085
|
-
const key = userId + SALT;
|
|
5086
|
-
if (rollCache?.key === key)
|
|
5087
|
-
return rollCache.value;
|
|
5088
|
-
const value = rollFrom(mulberry32(hashString(key)));
|
|
5089
|
-
rollCache = { key, value };
|
|
5090
|
-
return value;
|
|
5091
|
-
}
|
|
5092
|
-
function companionUserId() {
|
|
5093
|
-
const config2 = getGlobalConfig();
|
|
5094
|
-
return config2.oauthAccount?.accountUuid ?? config2.userID ?? "anon";
|
|
5095
|
-
}
|
|
5096
|
-
function getCompanion() {
|
|
5097
|
-
const stored = getGlobalConfig().companion;
|
|
5098
|
-
if (!stored)
|
|
5099
|
-
return;
|
|
5100
|
-
const { bones } = roll(companionUserId());
|
|
5101
|
-
return { ...stored, ...bones };
|
|
5102
|
-
}
|
|
5103
|
-
var RARITY_FLOOR, SALT = "friend-2026-401", rollCache;
|
|
5104
|
-
var init_companion = __esm(() => {
|
|
5105
|
-
init_config2();
|
|
5106
|
-
init_types4();
|
|
5107
|
-
RARITY_FLOOR = {
|
|
5108
|
-
common: 5,
|
|
5109
|
-
uncommon: 15,
|
|
5110
|
-
rare: 25,
|
|
5111
|
-
epic: 35,
|
|
5112
|
-
legendary: 50
|
|
5113
|
-
};
|
|
5114
|
-
});
|
|
5115
|
-
|
|
5116
4947
|
// src/buddy/prompt.ts
|
|
5117
4948
|
function companionIntroText(name, species) {
|
|
5118
4949
|
return `# Companion
|
|
@@ -5121,6 +4952,28 @@ A small ${species} named ${name} sits beside the user's input box and occasional
|
|
|
5121
4952
|
|
|
5122
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.`;
|
|
5123
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
|
+
}
|
|
5124
4977
|
var init_prompt8 = __esm(() => {
|
|
5125
4978
|
init_config2();
|
|
5126
4979
|
init_companion();
|
|
@@ -5757,9 +5610,9 @@ var require_Alias = __commonJS((exports) => {
|
|
|
5757
5610
|
} else if (identity.isCollection(node)) {
|
|
5758
5611
|
let count2 = 0;
|
|
5759
5612
|
for (const item of node.items) {
|
|
5760
|
-
const
|
|
5761
|
-
if (
|
|
5762
|
-
count2 =
|
|
5613
|
+
const c = getAliasCount(doc, item, anchors2);
|
|
5614
|
+
if (c > count2)
|
|
5615
|
+
count2 = c;
|
|
5763
5616
|
}
|
|
5764
5617
|
return count2;
|
|
5765
5618
|
} else if (identity.isPair(node)) {
|
|
@@ -12361,7 +12214,7 @@ function getAttributionHeader(fingerprint) {
|
|
|
12361
12214
|
if (!isAttributionHeaderEnabled()) {
|
|
12362
12215
|
return "";
|
|
12363
12216
|
}
|
|
12364
|
-
const version = `${"1.0.3-fork.
|
|
12217
|
+
const version = `${"1.0.3-fork.e907883"}.${fingerprint}`;
|
|
12365
12218
|
const entrypoint = process.env.CLAUDE_CODE_ENTRYPOINT ?? "unknown";
|
|
12366
12219
|
const cch = "";
|
|
12367
12220
|
const workload = getWorkload();
|
|
@@ -14144,13 +13997,13 @@ var require_code = __commonJS((exports) => {
|
|
|
14144
13997
|
}
|
|
14145
13998
|
get str() {
|
|
14146
13999
|
var _a;
|
|
14147
|
-
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}`, "");
|
|
14148
14001
|
}
|
|
14149
14002
|
get names() {
|
|
14150
14003
|
var _a;
|
|
14151
|
-
return (_a = this._names) !== null && _a !== undefined ? _a : this._names = this._items.reduce((names,
|
|
14152
|
-
if (
|
|
14153
|
-
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;
|
|
14154
14007
|
return names;
|
|
14155
14008
|
}, {});
|
|
14156
14009
|
}
|
|
@@ -14381,12 +14234,12 @@ var require_scope = __commonJS((exports) => {
|
|
|
14381
14234
|
if (nameSet.has(name))
|
|
14382
14235
|
return;
|
|
14383
14236
|
nameSet.set(name, UsedValueState.Started);
|
|
14384
|
-
let
|
|
14385
|
-
if (
|
|
14237
|
+
let c = valueCode(name);
|
|
14238
|
+
if (c) {
|
|
14386
14239
|
const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
|
|
14387
|
-
code = (0, code_1._)`${code}${def} ${name} = ${
|
|
14388
|
-
} else if (
|
|
14389
|
-
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}`;
|
|
14390
14243
|
} else {
|
|
14391
14244
|
throw new ValueError(name);
|
|
14392
14245
|
}
|
|
@@ -14872,11 +14725,11 @@ var require_codegen = __commonJS((exports) => {
|
|
|
14872
14725
|
add(lhs, rhs) {
|
|
14873
14726
|
return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
|
|
14874
14727
|
}
|
|
14875
|
-
code(
|
|
14876
|
-
if (typeof
|
|
14877
|
-
|
|
14878
|
-
else if (
|
|
14879
|
-
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));
|
|
14880
14733
|
return this;
|
|
14881
14734
|
}
|
|
14882
14735
|
object(...keyValues) {
|
|
@@ -15063,24 +14916,24 @@ var require_codegen = __commonJS((exports) => {
|
|
|
15063
14916
|
return replaceName(expr);
|
|
15064
14917
|
if (!canOptimize(expr))
|
|
15065
14918
|
return expr;
|
|
15066
|
-
return new code_1._Code(expr._items.reduce((items,
|
|
15067
|
-
if (
|
|
15068
|
-
|
|
15069
|
-
if (
|
|
15070
|
-
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);
|
|
15071
14924
|
else
|
|
15072
|
-
items.push(
|
|
14925
|
+
items.push(c);
|
|
15073
14926
|
return items;
|
|
15074
14927
|
}, []));
|
|
15075
14928
|
function replaceName(n) {
|
|
15076
|
-
const
|
|
15077
|
-
if (
|
|
14929
|
+
const c = constants[n.str];
|
|
14930
|
+
if (c === undefined || names[n.str] !== 1)
|
|
15078
14931
|
return n;
|
|
15079
14932
|
delete names[n.str];
|
|
15080
|
-
return
|
|
14933
|
+
return c;
|
|
15081
14934
|
}
|
|
15082
14935
|
function canOptimize(e) {
|
|
15083
|
-
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);
|
|
15084
14937
|
}
|
|
15085
14938
|
}
|
|
15086
14939
|
function subtractNames(names, from) {
|
|
@@ -21136,13 +20989,13 @@ function getMcpInstructionsDelta(mcpClients, messages, clientSideInstructions) {
|
|
|
21136
20989
|
for (const n of msg.attachment.removedNames)
|
|
21137
20990
|
announced.delete(n);
|
|
21138
20991
|
}
|
|
21139
|
-
const connected = mcpClients.filter((
|
|
21140
|
-
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));
|
|
21141
20994
|
const blocks = new Map;
|
|
21142
|
-
for (const
|
|
21143
|
-
if (
|
|
21144
|
-
blocks.set(
|
|
21145
|
-
${
|
|
20995
|
+
for (const c of connected) {
|
|
20996
|
+
if (c.instructions)
|
|
20997
|
+
blocks.set(c.name, `## ${c.name}
|
|
20998
|
+
${c.instructions}`);
|
|
21146
20999
|
}
|
|
21147
21000
|
for (const ci of clientSideInstructions) {
|
|
21148
21001
|
if (!connectedNames.has(ci.serverName))
|
|
@@ -21811,13 +21664,13 @@ var T, _, be, m, Re, Te, Oe, C, we, Q, se, ie, ye, j, Pe, F, Se, $e, v = "addres
|
|
|
21811
21664
|
break;
|
|
21812
21665
|
n = n.slice(l);
|
|
21813
21666
|
let p = o.join(`
|
|
21814
|
-
`),
|
|
21667
|
+
`), c = p.replace(this.rules.other.blockquoteSetextReplace, `
|
|
21815
21668
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
21816
21669
|
r = r ? `${r}
|
|
21817
21670
|
${p}` : p, i = i ? `${i}
|
|
21818
|
-
${
|
|
21671
|
+
${c}` : c;
|
|
21819
21672
|
let d = this.lexer.state.top;
|
|
21820
|
-
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)
|
|
21821
21674
|
break;
|
|
21822
21675
|
let h = s.at(-1);
|
|
21823
21676
|
if (h?.type === "code")
|
|
@@ -21847,14 +21700,14 @@ ${c2}` : c2;
|
|
|
21847
21700
|
n = r ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r ? n : "[*+-]");
|
|
21848
21701
|
let s = this.rules.other.listItemRegex(n), a = false;
|
|
21849
21702
|
for (;e; ) {
|
|
21850
|
-
let l = false, p = "",
|
|
21703
|
+
let l = false, p = "", c = "";
|
|
21851
21704
|
if (!(t = s.exec(e)) || this.rules.block.hr.test(e))
|
|
21852
21705
|
break;
|
|
21853
21706
|
p = t[0], e = e.substring(p.length);
|
|
21854
21707
|
let d = ge(t[2].split(`
|
|
21855
21708
|
`, 1)[0], t[1].length), h = e.split(`
|
|
21856
21709
|
`, 1)[0], R = !d.trim(), f = 0;
|
|
21857
|
-
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 + `
|
|
21858
21711
|
`, e = e.substring(h.length + 1), l = true), !l) {
|
|
21859
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);
|
|
21860
21713
|
for (;e; ) {
|
|
@@ -21863,19 +21716,19 @@ ${c2}` : c2;
|
|
|
21863
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))
|
|
21864
21717
|
break;
|
|
21865
21718
|
if (A.search(this.rules.other.nonSpaceChar) >= f || !h.trim())
|
|
21866
|
-
|
|
21719
|
+
c += `
|
|
21867
21720
|
` + A.slice(f);
|
|
21868
21721
|
else {
|
|
21869
21722
|
if (R || d.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || ee.test(d) || te.test(d) || Y.test(d))
|
|
21870
21723
|
break;
|
|
21871
|
-
|
|
21724
|
+
c += `
|
|
21872
21725
|
` + h;
|
|
21873
21726
|
}
|
|
21874
21727
|
R = !h.trim(), p += Z + `
|
|
21875
21728
|
`, e = e.substring(Z.length + 1), d = A.slice(f);
|
|
21876
21729
|
}
|
|
21877
21730
|
}
|
|
21878
|
-
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;
|
|
21879
21732
|
}
|
|
21880
21733
|
let o = i.items.at(-1);
|
|
21881
21734
|
if (o)
|
|
@@ -21887,21 +21740,21 @@ ${c2}` : c2;
|
|
|
21887
21740
|
if (this.lexer.state.top = false, l.tokens = this.lexer.blockTokens(l.text, []), l.task) {
|
|
21888
21741
|
if (l.text = l.text.replace(this.rules.other.listReplaceTask, ""), l.tokens[0]?.type === "text" || l.tokens[0]?.type === "paragraph") {
|
|
21889
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, "");
|
|
21890
|
-
for (let
|
|
21891
|
-
if (this.rules.other.listIsTask.test(this.lexer.inlineQueue[
|
|
21892
|
-
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, "");
|
|
21893
21746
|
break;
|
|
21894
21747
|
}
|
|
21895
21748
|
}
|
|
21896
21749
|
let p = this.rules.other.listTaskCheckbox.exec(l.raw);
|
|
21897
21750
|
if (p) {
|
|
21898
|
-
let
|
|
21899
|
-
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);
|
|
21900
21753
|
}
|
|
21901
21754
|
}
|
|
21902
21755
|
if (!i.loose) {
|
|
21903
|
-
let p = l.tokens.filter((d) => d.type === "space"),
|
|
21904
|
-
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;
|
|
21905
21758
|
}
|
|
21906
21759
|
}
|
|
21907
21760
|
if (i.loose)
|
|
@@ -22015,8 +21868,8 @@ ${c2}` : c2;
|
|
|
22015
21868
|
if (!r || !r[1] && !r[2] && !r[3] && !r[4] || r[4] && n.match(this.rules.other.unicodeAlphaNumeric))
|
|
22016
21869
|
return;
|
|
22017
21870
|
if (!(r[1] || r[3] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
22018
|
-
let s = [...r[0]].length - 1, a, o, l = s, p = 0,
|
|
22019
|
-
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; ) {
|
|
22020
21873
|
if (a = r[1] || r[2] || r[3] || r[4] || r[5] || r[6], !a)
|
|
22021
21874
|
continue;
|
|
22022
21875
|
if (o = [...a].length, r[3] || r[4]) {
|
|
@@ -22067,7 +21920,7 @@ ${c2}` : c2;
|
|
|
22067
21920
|
if (l -= o, l > 0)
|
|
22068
21921
|
continue;
|
|
22069
21922
|
o = Math.min(o, o + l);
|
|
22070
|
-
let
|
|
21923
|
+
let c = [...r[0]][0].length, d = e.slice(0, s + r.index + c + o), h = d.slice(s, -s);
|
|
22071
21924
|
return { type: "del", raw: d, text: h, tokens: this.lexer.inlineTokens(h) };
|
|
22072
21925
|
}
|
|
22073
21926
|
}
|
|
@@ -22296,9 +22149,9 @@ ${c2}` : c2;
|
|
|
22296
22149
|
}
|
|
22297
22150
|
let l = e;
|
|
22298
22151
|
if (this.options.extensions?.startInline) {
|
|
22299
|
-
let p = 1 / 0,
|
|
22152
|
+
let p = 1 / 0, c = e.slice(1), d;
|
|
22300
22153
|
this.options.extensions.startInline.forEach((h) => {
|
|
22301
|
-
d = h.call({ lexer: this },
|
|
22154
|
+
d = h.call({ lexer: this }, c), typeof d == "number" && d >= 0 && (p = Math.min(p, d));
|
|
22302
22155
|
}), p < 1 / 0 && p >= 0 && (l = e.substring(0, p + 1));
|
|
22303
22156
|
}
|
|
22304
22157
|
if (o = this.tokenizer.inlineText(l)) {
|
|
@@ -22695,8 +22548,8 @@ ${e}</tr>
|
|
|
22695
22548
|
continue;
|
|
22696
22549
|
let a = s, o = n.renderer[a], l = i[a];
|
|
22697
22550
|
i[a] = (...p) => {
|
|
22698
|
-
let
|
|
22699
|
-
return
|
|
22551
|
+
let c = o.apply(i, p);
|
|
22552
|
+
return c === false && (c = l.apply(i, p)), c || "";
|
|
22700
22553
|
};
|
|
22701
22554
|
}
|
|
22702
22555
|
r.renderer = i;
|
|
@@ -22710,8 +22563,8 @@ ${e}</tr>
|
|
|
22710
22563
|
continue;
|
|
22711
22564
|
let a = s, o = n.tokenizer[a], l = i[a];
|
|
22712
22565
|
i[a] = (...p) => {
|
|
22713
|
-
let
|
|
22714
|
-
return
|
|
22566
|
+
let c = o.apply(i, p);
|
|
22567
|
+
return c === false && (c = l.apply(i, p)), c;
|
|
22715
22568
|
};
|
|
22716
22569
|
}
|
|
22717
22570
|
r.tokenizer = i;
|
|
@@ -22730,16 +22583,16 @@ ${e}</tr>
|
|
|
22730
22583
|
let d = await o.call(i, p);
|
|
22731
22584
|
return l.call(i, d);
|
|
22732
22585
|
})();
|
|
22733
|
-
let
|
|
22734
|
-
return l.call(i,
|
|
22586
|
+
let c = o.call(i, p);
|
|
22587
|
+
return l.call(i, c);
|
|
22735
22588
|
} : i[a] = (...p) => {
|
|
22736
22589
|
if (this.defaults.async)
|
|
22737
22590
|
return (async () => {
|
|
22738
22591
|
let d = await o.apply(i, p);
|
|
22739
22592
|
return d === false && (d = await l.apply(i, p)), d;
|
|
22740
22593
|
})();
|
|
22741
|
-
let
|
|
22742
|
-
return
|
|
22594
|
+
let c = o.apply(i, p);
|
|
22595
|
+
return c === false && (c = l.apply(i, p)), c;
|
|
22743
22596
|
};
|
|
22744
22597
|
}
|
|
22745
22598
|
r.hooks = i;
|
|
@@ -22774,17 +22627,17 @@ ${e}</tr>
|
|
|
22774
22627
|
return a(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
22775
22628
|
if (s.hooks && (s.hooks.options = s, s.hooks.block = e), s.async)
|
|
22776
22629
|
return (async () => {
|
|
22777
|
-
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),
|
|
22778
|
-
s.walkTokens && await Promise.all(this.walkTokens(
|
|
22779
|
-
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);
|
|
22780
22633
|
return s.hooks ? await s.hooks.postprocess(h) : h;
|
|
22781
22634
|
})().catch(a);
|
|
22782
22635
|
try {
|
|
22783
22636
|
s.hooks && (n = s.hooks.preprocess(n));
|
|
22784
22637
|
let l = (s.hooks ? s.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s);
|
|
22785
22638
|
s.hooks && (l = s.hooks.processAllTokens(l)), s.walkTokens && this.walkTokens(l, s.walkTokens);
|
|
22786
|
-
let
|
|
22787
|
-
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;
|
|
22788
22641
|
} catch (o) {
|
|
22789
22642
|
return a(o);
|
|
22790
22643
|
}
|
|
@@ -25518,7 +25371,7 @@ var init_zod_compat = __esm(() => {
|
|
|
25518
25371
|
|
|
25519
25372
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
25520
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;
|
|
25521
|
-
var
|
|
25374
|
+
var init_types4 = __esm(() => {
|
|
25522
25375
|
init_v4();
|
|
25523
25376
|
SUPPORTED_PROTOCOL_VERSIONS = [LATEST_PROTOCOL_VERSION, "2025-06-18", "2025-03-26", "2024-11-05", "2024-10-07"];
|
|
25524
25377
|
AssertObjectSchema = custom((v2) => v2 !== null && (typeof v2 === "object" || typeof v2 === "function"));
|
|
@@ -27480,7 +27333,7 @@ function mergeCapabilities(base, additional) {
|
|
|
27480
27333
|
var DEFAULT_REQUEST_TIMEOUT_MSEC = 60000;
|
|
27481
27334
|
var init_protocol = __esm(() => {
|
|
27482
27335
|
init_zod_compat();
|
|
27483
|
-
|
|
27336
|
+
init_types4();
|
|
27484
27337
|
init_interfaces();
|
|
27485
27338
|
init_zod_json_schema_compat();
|
|
27486
27339
|
});
|
|
@@ -27879,7 +27732,7 @@ class ExperimentalClientTasks {
|
|
|
27879
27732
|
}
|
|
27880
27733
|
}
|
|
27881
27734
|
var init_client3 = __esm(() => {
|
|
27882
|
-
|
|
27735
|
+
init_types4();
|
|
27883
27736
|
});
|
|
27884
27737
|
|
|
27885
27738
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js
|
|
@@ -27963,7 +27816,7 @@ function getSupportedElicitationModes(capabilities) {
|
|
|
27963
27816
|
var Client;
|
|
27964
27817
|
var init_client4 = __esm(() => {
|
|
27965
27818
|
init_protocol();
|
|
27966
|
-
|
|
27819
|
+
init_types4();
|
|
27967
27820
|
init_ajv_provider();
|
|
27968
27821
|
init_zod_compat();
|
|
27969
27822
|
init_client3();
|
|
@@ -29533,7 +29386,7 @@ async function registerClient(authorizationServerUrl, { metadata, clientMetadata
|
|
|
29533
29386
|
var UnauthorizedError, AUTHORIZATION_CODE_RESPONSE_TYPE = "code", AUTHORIZATION_CODE_CHALLENGE_METHOD = "S256";
|
|
29534
29387
|
var init_auth3 = __esm(() => {
|
|
29535
29388
|
init_index_node();
|
|
29536
|
-
|
|
29389
|
+
init_types4();
|
|
29537
29390
|
init_auth2();
|
|
29538
29391
|
init_auth2();
|
|
29539
29392
|
init_auth_utils();
|
|
@@ -29728,7 +29581,7 @@ var SseError;
|
|
|
29728
29581
|
var init_sse = __esm(() => {
|
|
29729
29582
|
init_dist5();
|
|
29730
29583
|
init_transport();
|
|
29731
|
-
|
|
29584
|
+
init_types4();
|
|
29732
29585
|
init_auth3();
|
|
29733
29586
|
SseError = class SseError extends Error {
|
|
29734
29587
|
constructor(code, message, event) {
|
|
@@ -29769,7 +29622,7 @@ function serializeMessage(message) {
|
|
|
29769
29622
|
`;
|
|
29770
29623
|
}
|
|
29771
29624
|
var init_stdio = __esm(() => {
|
|
29772
|
-
|
|
29625
|
+
init_types4();
|
|
29773
29626
|
});
|
|
29774
29627
|
|
|
29775
29628
|
// node_modules/.bun/@modelcontextprotocol+sdk@1.29.0/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js
|
|
@@ -30304,7 +30157,7 @@ class StreamableHTTPClientTransport {
|
|
|
30304
30157
|
var DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS, StreamableHTTPError;
|
|
30305
30158
|
var init_streamableHttp = __esm(() => {
|
|
30306
30159
|
init_transport();
|
|
30307
|
-
|
|
30160
|
+
init_types4();
|
|
30308
30161
|
init_auth3();
|
|
30309
30162
|
init_stream();
|
|
30310
30163
|
DEFAULT_STREAMABLE_HTTP_RECONNECTION_OPTIONS = {
|
|
@@ -31353,10 +31206,10 @@ function toolCallOf(msg) {
|
|
|
31353
31206
|
function action(a) {
|
|
31354
31207
|
return a;
|
|
31355
31208
|
}
|
|
31356
|
-
function isApplicable(a,
|
|
31357
|
-
if (!a.types.includes(
|
|
31209
|
+
function isApplicable(a, c) {
|
|
31210
|
+
if (!a.types.includes(c.msgType))
|
|
31358
31211
|
return false;
|
|
31359
|
-
return !a.applies || a.applies(
|
|
31212
|
+
return !a.applies || a.applies(c);
|
|
31360
31213
|
}
|
|
31361
31214
|
function useSelectedMessageBg() {
|
|
31362
31215
|
return import_react.default.useContext(MessageActionsSelectedContext) ? "messageActionsBackground" : undefined;
|
|
@@ -31374,8 +31227,8 @@ function useMessageActions(cursor, setCursor, navRef, caps) {
|
|
|
31374
31227
|
"messageActions:nextUser": () => navRef.current?.navigateNextUser(),
|
|
31375
31228
|
"messageActions:top": () => navRef.current?.navigateTop(),
|
|
31376
31229
|
"messageActions:bottom": () => navRef.current?.navigateBottom(),
|
|
31377
|
-
"messageActions:escape": () => setCursor((
|
|
31378
|
-
...
|
|
31230
|
+
"messageActions:escape": () => setCursor((c) => c?.expanded ? {
|
|
31231
|
+
...c,
|
|
31379
31232
|
expanded: false
|
|
31380
31233
|
} : null),
|
|
31381
31234
|
"messageActions:ctrlc": () => setCursor(null)
|
|
@@ -31634,12 +31487,12 @@ function toolResultText(r) {
|
|
|
31634
31487
|
const b2 = r.message.content[0];
|
|
31635
31488
|
if (b2?.type !== "tool_result")
|
|
31636
31489
|
return "";
|
|
31637
|
-
const
|
|
31638
|
-
if (typeof
|
|
31639
|
-
return
|
|
31640
|
-
if (!
|
|
31490
|
+
const c = b2.content;
|
|
31491
|
+
if (typeof c === "string")
|
|
31492
|
+
return c;
|
|
31493
|
+
if (!c)
|
|
31641
31494
|
return "";
|
|
31642
|
-
return
|
|
31495
|
+
return c.flatMap((x2) => x2.type === "text" ? [x2.text] : []).join(`
|
|
31643
31496
|
`);
|
|
31644
31497
|
}
|
|
31645
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;
|
|
@@ -31713,24 +31566,24 @@ var init_messageActions = __esm(() => {
|
|
|
31713
31566
|
key: "enter",
|
|
31714
31567
|
label: "edit",
|
|
31715
31568
|
types: ["user"],
|
|
31716
|
-
run: (m2,
|
|
31569
|
+
run: (m2, c) => void c.edit(m2)
|
|
31717
31570
|
}), action({
|
|
31718
31571
|
key: "c",
|
|
31719
31572
|
label: "copy",
|
|
31720
31573
|
types: NAVIGABLE_TYPES,
|
|
31721
|
-
run: (m2,
|
|
31574
|
+
run: (m2, c) => c.copy(copyTextOf(m2))
|
|
31722
31575
|
}), action({
|
|
31723
31576
|
key: "p",
|
|
31724
31577
|
label: (s) => `copy ${PRIMARY_INPUT[s.toolName].label}`,
|
|
31725
31578
|
types: ["grouped_tool_use", "assistant"],
|
|
31726
31579
|
applies: (s) => s.toolName != null && (s.toolName in PRIMARY_INPUT),
|
|
31727
|
-
run: (m2,
|
|
31580
|
+
run: (m2, c) => {
|
|
31728
31581
|
const tc = toolCallOf(m2);
|
|
31729
31582
|
if (!tc)
|
|
31730
31583
|
return;
|
|
31731
31584
|
const val = PRIMARY_INPUT[tc.name]?.extract(tc.input);
|
|
31732
31585
|
if (val)
|
|
31733
|
-
|
|
31586
|
+
c.copy(val);
|
|
31734
31587
|
}
|
|
31735
31588
|
})];
|
|
31736
31589
|
MessageActionsSelectedContext = import_react.default.createContext(false);
|
|
@@ -32322,7 +32175,7 @@ var init_ListMcpResourcesTool = __esm(() => {
|
|
|
32322
32175
|
const { server: targetServer } = input;
|
|
32323
32176
|
const clientsToProcess = targetServer ? mcpClients.filter((client) => client.name === targetServer) : mcpClients;
|
|
32324
32177
|
if (targetServer && clientsToProcess.length === 0) {
|
|
32325
|
-
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(", ")}`);
|
|
32326
32179
|
}
|
|
32327
32180
|
const results = await Promise.all(clientsToProcess.map(async (client) => {
|
|
32328
32181
|
if (client.type !== "connected")
|
|
@@ -33832,15 +33685,15 @@ function hasMalformedTokens(command, parsed) {
|
|
|
33832
33685
|
let doubleCount = 0;
|
|
33833
33686
|
let singleCount = 0;
|
|
33834
33687
|
for (let i = 0;i < command.length; i++) {
|
|
33835
|
-
const
|
|
33836
|
-
if (
|
|
33688
|
+
const c = command[i];
|
|
33689
|
+
if (c === "\\" && !inSingle) {
|
|
33837
33690
|
i++;
|
|
33838
33691
|
continue;
|
|
33839
33692
|
}
|
|
33840
|
-
if (
|
|
33693
|
+
if (c === '"' && !inSingle) {
|
|
33841
33694
|
doubleCount++;
|
|
33842
33695
|
inDouble = !inDouble;
|
|
33843
|
-
} else if (
|
|
33696
|
+
} else if (c === "'" && !inDouble) {
|
|
33844
33697
|
singleCount++;
|
|
33845
33698
|
inSingle = !inSingle;
|
|
33846
33699
|
}
|
|
@@ -34481,7 +34334,7 @@ function classifyImageError(error) {
|
|
|
34481
34334
|
}
|
|
34482
34335
|
return ERROR_TYPE_UNKNOWN;
|
|
34483
34336
|
}
|
|
34484
|
-
function
|
|
34337
|
+
function hashString(str2) {
|
|
34485
34338
|
let hash = 5381;
|
|
34486
34339
|
for (let i = 0;i < str2.length; i++) {
|
|
34487
34340
|
hash = (hash << 5) + hash + str2.charCodeAt(i) | 0;
|
|
@@ -34641,7 +34494,7 @@ async function maybeResizeAndDownsampleImageBuffer(imageBuffer, originalSize, ex
|
|
|
34641
34494
|
logEvent("tengu_image_resize_failed", {
|
|
34642
34495
|
original_size_bytes: originalSize,
|
|
34643
34496
|
error_type: errorType,
|
|
34644
|
-
error_message_hash:
|
|
34497
|
+
error_message_hash: hashString(errorMsg)
|
|
34645
34498
|
});
|
|
34646
34499
|
const detected = detectImageFormatFromBuffer(imageBuffer);
|
|
34647
34500
|
const normalizedExt = detected.slice(6);
|
|
@@ -34720,7 +34573,7 @@ async function compressImageBuffer(imageBuffer, maxBytes = IMAGE_TARGET_RAW_SIZE
|
|
|
34720
34573
|
original_size_bytes: imageBuffer.length,
|
|
34721
34574
|
max_bytes: maxBytes,
|
|
34722
34575
|
error_type: errorType,
|
|
34723
|
-
error_message_hash:
|
|
34576
|
+
error_message_hash: hashString(errorMsg)
|
|
34724
34577
|
});
|
|
34725
34578
|
if (imageBuffer.length <= maxBytes) {
|
|
34726
34579
|
const detected = detectImageFormatFromBuffer(imageBuffer);
|
|
@@ -37405,7 +37258,7 @@ async function persistFileSnapshotIfRemote() {
|
|
|
37405
37258
|
uuid: randomUUID3(),
|
|
37406
37259
|
snapshotFiles
|
|
37407
37260
|
};
|
|
37408
|
-
const { recordTranscript } = await import("./chunk-
|
|
37261
|
+
const { recordTranscript } = await import("./chunk-1nt5wc40.js");
|
|
37409
37262
|
await recordTranscript([message]);
|
|
37410
37263
|
} catch (error) {
|
|
37411
37264
|
logError(error);
|
|
@@ -38465,7 +38318,7 @@ function getInstallationEnv() {
|
|
|
38465
38318
|
return;
|
|
38466
38319
|
}
|
|
38467
38320
|
function getClaudeCodeVersion() {
|
|
38468
|
-
return "1.0.3-fork.
|
|
38321
|
+
return "1.0.3-fork.e907883";
|
|
38469
38322
|
}
|
|
38470
38323
|
async function getInstalledVSCodeExtensionVersion(command) {
|
|
38471
38324
|
const { stdout } = await execFileNoThrow(command, ["--list-extensions", "--show-versions"], {
|
|
@@ -38996,7 +38849,7 @@ function appendCappedMessage(prev, item) {
|
|
|
38996
38849
|
return [...prev, item];
|
|
38997
38850
|
}
|
|
38998
38851
|
var TEAMMATE_MESSAGES_UI_CAP = 50;
|
|
38999
|
-
var
|
|
38852
|
+
var init_types5 = () => {};
|
|
39000
38853
|
|
|
39001
38854
|
// src/state/selectors.ts
|
|
39002
38855
|
function getViewedTeammateTask(appState) {
|
|
@@ -39028,7 +38881,7 @@ function getActiveAgentForInput(appState) {
|
|
|
39028
38881
|
return { type: "leader" };
|
|
39029
38882
|
}
|
|
39030
38883
|
var init_selectors = __esm(() => {
|
|
39031
|
-
|
|
38884
|
+
init_types5();
|
|
39032
38885
|
});
|
|
39033
38886
|
|
|
39034
38887
|
// src/services/diagnosticTracking.ts
|
|
@@ -39229,14 +39082,14 @@ var init_diagnosticTracking = __esm(() => {
|
|
|
39229
39082
|
});
|
|
39230
39083
|
|
|
39231
39084
|
// src/types/textInputTypes.ts
|
|
39232
|
-
function isValidImagePaste(
|
|
39233
|
-
return
|
|
39085
|
+
function isValidImagePaste(c) {
|
|
39086
|
+
return c.type === "image" && c.content.length > 0;
|
|
39234
39087
|
}
|
|
39235
39088
|
function getImagePasteIds(pastedContents) {
|
|
39236
39089
|
if (!pastedContents) {
|
|
39237
39090
|
return;
|
|
39238
39091
|
}
|
|
39239
|
-
const ids = Object.values(pastedContents).filter(isValidImagePaste).map((
|
|
39092
|
+
const ids = Object.values(pastedContents).filter(isValidImagePaste).map((c) => c.id);
|
|
39240
39093
|
return ids.length > 0 ? ids : undefined;
|
|
39241
39094
|
}
|
|
39242
39095
|
var init_textInputTypes = () => {};
|
|
@@ -49592,7 +49445,7 @@ var init_promptCategory = __esm(() => {
|
|
|
49592
49445
|
import { createHash as createHash4 } from "crypto";
|
|
49593
49446
|
import { promises as fs6 } from "fs";
|
|
49594
49447
|
import { dirname as dirname16, join as join24 } from "path";
|
|
49595
|
-
function
|
|
49448
|
+
function hashString2(str2) {
|
|
49596
49449
|
return createHash4("sha256").update(str2).digest("hex");
|
|
49597
49450
|
}
|
|
49598
49451
|
function clearDumpState(agentIdOrSessionId) {
|
|
@@ -49641,7 +49494,7 @@ function dumpRequest(body, ts, state, filePath) {
|
|
|
49641
49494
|
if (!state.initialized || fingerprint !== state.lastInitFingerprint) {
|
|
49642
49495
|
const { messages: _2, ...initData } = req;
|
|
49643
49496
|
const initDataStr = jsonStringify(initData);
|
|
49644
|
-
const initDataHash =
|
|
49497
|
+
const initDataHash = hashString2(initDataStr);
|
|
49645
49498
|
state.lastInitFingerprint = fingerprint;
|
|
49646
49499
|
if (!state.initialized) {
|
|
49647
49500
|
state.initialized = true;
|
|
@@ -49910,7 +49763,7 @@ function getUnconfiguredChannels(plugin) {
|
|
|
49910
49763
|
return unconfigured;
|
|
49911
49764
|
}
|
|
49912
49765
|
function loadChannelUserConfig(plugin, serverName) {
|
|
49913
|
-
const channel = plugin.manifest.channels?.find((
|
|
49766
|
+
const channel = plugin.manifest.channels?.find((c) => c.server === serverName);
|
|
49914
49767
|
if (!channel?.userConfig) {
|
|
49915
49768
|
return;
|
|
49916
49769
|
}
|
|
@@ -50183,14 +50036,14 @@ function commandBelongsToServer(command, serverName) {
|
|
|
50183
50036
|
return name.startsWith(`mcp__${normalized}__`) || name.startsWith(`${normalized}:`);
|
|
50184
50037
|
}
|
|
50185
50038
|
function filterMcpPromptsByServer(commands, serverName) {
|
|
50186
|
-
return commands.filter((
|
|
50039
|
+
return commands.filter((c) => commandBelongsToServer(c, serverName) && !(c.type === "prompt" && c.loadedFrom === "mcp"));
|
|
50187
50040
|
}
|
|
50188
50041
|
function excludeToolsByServer(tools, serverName) {
|
|
50189
50042
|
const prefix = `mcp__${normalizeNameForMCP(serverName)}__`;
|
|
50190
50043
|
return tools.filter((tool) => !tool.name?.startsWith(prefix));
|
|
50191
50044
|
}
|
|
50192
50045
|
function excludeCommandsByServer(commands, serverName) {
|
|
50193
|
-
return commands.filter((
|
|
50046
|
+
return commands.filter((c) => !commandBelongsToServer(c, serverName));
|
|
50194
50047
|
}
|
|
50195
50048
|
function excludeResourcesByServer(resources, serverName) {
|
|
50196
50049
|
const result = { ...resources };
|
|
@@ -50212,11 +50065,11 @@ function hashMcpConfig(config2) {
|
|
|
50212
50065
|
return createHash5("sha256").update(stable).digest("hex").slice(0, 16);
|
|
50213
50066
|
}
|
|
50214
50067
|
function excludeStalePluginClients(mcp, configs) {
|
|
50215
|
-
const stale = mcp.clients.filter((
|
|
50216
|
-
const fresh = configs[
|
|
50068
|
+
const stale = mcp.clients.filter((c) => {
|
|
50069
|
+
const fresh = configs[c.name];
|
|
50217
50070
|
if (!fresh)
|
|
50218
|
-
return
|
|
50219
|
-
return hashMcpConfig(
|
|
50071
|
+
return c.config.scope === "dynamic";
|
|
50072
|
+
return hashMcpConfig(c.config) !== hashMcpConfig(fresh);
|
|
50220
50073
|
});
|
|
50221
50074
|
if (stale.length === 0) {
|
|
50222
50075
|
return { ...mcp, stale: [] };
|
|
@@ -50227,9 +50080,9 @@ function excludeStalePluginClients(mcp, configs) {
|
|
|
50227
50080
|
commands = excludeCommandsByServer(commands, s.name);
|
|
50228
50081
|
resources = excludeResourcesByServer(resources, s.name);
|
|
50229
50082
|
}
|
|
50230
|
-
const staleNames = new Set(stale.map((
|
|
50083
|
+
const staleNames = new Set(stale.map((c) => c.name));
|
|
50231
50084
|
return {
|
|
50232
|
-
clients: mcp.clients.filter((
|
|
50085
|
+
clients: mcp.clients.filter((c) => !staleNames.has(c.name)),
|
|
50233
50086
|
tools,
|
|
50234
50087
|
commands,
|
|
50235
50088
|
resources,
|
|
@@ -50703,8 +50556,8 @@ function filterMcpServersByPolicy(configs) {
|
|
|
50703
50556
|
const allowed = {};
|
|
50704
50557
|
const blocked = [];
|
|
50705
50558
|
for (const [name, config2] of Object.entries(configs)) {
|
|
50706
|
-
const
|
|
50707
|
-
if (
|
|
50559
|
+
const c = config2;
|
|
50560
|
+
if (c.type === "sdk" || isMcpServerAllowedByPolicy(name, c)) {
|
|
50708
50561
|
allowed[name] = config2;
|
|
50709
50562
|
} else {
|
|
50710
50563
|
blocked.push(name);
|
|
@@ -51287,7 +51140,7 @@ function shouldAllowManagedMcpServersOnly() {
|
|
|
51287
51140
|
return getSettingsForSource("policySettings")?.allowManagedMcpServersOnly === true;
|
|
51288
51141
|
}
|
|
51289
51142
|
function areMcpConfigsAllowedWithEnterpriseMcpConfig(configs) {
|
|
51290
|
-
return Object.values(configs).every((
|
|
51143
|
+
return Object.values(configs).every((c) => c.type === "sdk" && c.name === "claude-vscode");
|
|
51291
51144
|
}
|
|
51292
51145
|
function isDefaultDisabledBuiltin(name) {
|
|
51293
51146
|
return DEFAULT_DISABLED_BUILTIN !== null && name === DEFAULT_DISABLED_BUILTIN;
|
|
@@ -51931,7 +51784,7 @@ function computeFingerprint(messageText, version) {
|
|
|
51931
51784
|
}
|
|
51932
51785
|
function computeFingerprintFromMessages(messages) {
|
|
51933
51786
|
const firstMessageText = extractFirstMessageText(messages);
|
|
51934
|
-
return computeFingerprint(firstMessageText, "1.0.3-fork.
|
|
51787
|
+
return computeFingerprint(firstMessageText, "1.0.3-fork.e907883");
|
|
51935
51788
|
}
|
|
51936
51789
|
var FINGERPRINT_SALT = "59cf53e54c78";
|
|
51937
51790
|
var init_fingerprint = () => {};
|
|
@@ -51973,7 +51826,7 @@ async function sideQuery(opts) {
|
|
|
51973
51826
|
betas.push(STRUCTURED_OUTPUTS_BETA_HEADER);
|
|
51974
51827
|
}
|
|
51975
51828
|
const messageText = extractFirstUserMessageText(messages);
|
|
51976
|
-
const fingerprint = computeFingerprint(messageText, "1.0.3-fork.
|
|
51829
|
+
const fingerprint = computeFingerprint(messageText, "1.0.3-fork.e907883");
|
|
51977
51830
|
const attributionHeader = getAttributionHeader(fingerprint);
|
|
51978
51831
|
const systemBlocks = [
|
|
51979
51832
|
attributionHeader ? { type: "text", text: attributionHeader } : null,
|
|
@@ -52697,7 +52550,7 @@ async function* runAgent({
|
|
|
52697
52550
|
}
|
|
52698
52551
|
validSkills.push({ skillName, skill });
|
|
52699
52552
|
}
|
|
52700
|
-
const { formatSkillLoadingMetadata } = await import("./chunk-
|
|
52553
|
+
const { formatSkillLoadingMetadata } = await import("./chunk-9a6b7d6t.js");
|
|
52701
52554
|
const loaded = await Promise.all(validSkills.map(async ({ skillName, skill }) => ({
|
|
52702
52555
|
skillName,
|
|
52703
52556
|
skill,
|
|
@@ -53038,7 +52891,7 @@ var init_agentSummary = __esm(() => {
|
|
|
53038
52891
|
|
|
53039
52892
|
// src/utils/todo/types.ts
|
|
53040
52893
|
var TodoStatusSchema, TodoItemSchema, TodoListSchema;
|
|
53041
|
-
var
|
|
52894
|
+
var init_types6 = __esm(() => {
|
|
53042
52895
|
init_v4();
|
|
53043
52896
|
init_lazySchema();
|
|
53044
52897
|
TodoStatusSchema = lazySchema(() => exports_external.enum(["pending", "in_progress", "completed"]));
|
|
@@ -53244,7 +53097,7 @@ var init_TodoWriteTool = __esm(() => {
|
|
|
53244
53097
|
init_Tool();
|
|
53245
53098
|
init_lazySchema();
|
|
53246
53099
|
init_tasks();
|
|
53247
|
-
|
|
53100
|
+
init_types6();
|
|
53248
53101
|
init_constants2();
|
|
53249
53102
|
init_constants8();
|
|
53250
53103
|
init_prompt18();
|
|
@@ -53528,13 +53381,13 @@ function cleanupTerminalModes() {
|
|
|
53528
53381
|
}
|
|
53529
53382
|
function printResumeHint() {
|
|
53530
53383
|
if (resumeHintPrinted) {
|
|
53531
|
-
return;
|
|
53384
|
+
return true;
|
|
53532
53385
|
}
|
|
53533
53386
|
if (process.stdout.isTTY && getIsInteractive() && !isSessionPersistenceDisabled()) {
|
|
53534
53387
|
try {
|
|
53535
53388
|
const sessionId = getSessionId();
|
|
53536
53389
|
if (!sessionIdExists(sessionId)) {
|
|
53537
|
-
return;
|
|
53390
|
+
return false;
|
|
53538
53391
|
}
|
|
53539
53392
|
const customTitle = getCurrentSessionTitle(sessionId);
|
|
53540
53393
|
let resumeArg;
|
|
@@ -53549,6 +53402,24 @@ Resume this session with:
|
|
|
53549
53402
|
${getCliBin()} --resume ${resumeArg}
|
|
53550
53403
|
`));
|
|
53551
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;
|
|
53552
53423
|
} catch {}
|
|
53553
53424
|
}
|
|
53554
53425
|
}
|
|
@@ -53588,17 +53459,17 @@ async function gracefulShutdown(exitCode = 0, reason = "other", options) {
|
|
|
53588
53459
|
return;
|
|
53589
53460
|
}
|
|
53590
53461
|
shutdownInProgress = true;
|
|
53591
|
-
const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-
|
|
53462
|
+
const { executeSessionEndHooks, getSessionEndHookTimeoutMs } = await import("./chunk-9c6pqkhv.js");
|
|
53592
53463
|
const sessionEndTimeoutMs = getSessionEndHookTimeoutMs();
|
|
53593
53464
|
failsafeTimer = setTimeout((code) => {
|
|
53594
53465
|
cleanupTerminalModes();
|
|
53595
|
-
|
|
53466
|
+
printExitBoundary();
|
|
53596
53467
|
forceExit(code);
|
|
53597
53468
|
}, Math.max(5000, sessionEndTimeoutMs + 3500), exitCode);
|
|
53598
53469
|
failsafeTimer.unref();
|
|
53599
53470
|
process.exitCode = exitCode;
|
|
53600
53471
|
cleanupTerminalModes();
|
|
53601
|
-
|
|
53472
|
+
printExitBoundary({ expectFinalMessage: Boolean(options?.finalMessage) });
|
|
53602
53473
|
let cleanupTimeoutId;
|
|
53603
53474
|
try {
|
|
53604
53475
|
const cleanupPromise = (async () => {
|
|
@@ -53647,7 +53518,7 @@ async function gracefulShutdown(exitCode = 0, reason = "other", options) {
|
|
|
53647
53518
|
}
|
|
53648
53519
|
forceExit(exitCode);
|
|
53649
53520
|
}
|
|
53650
|
-
var resumeHintPrinted = false, setupGracefulShutdown, shutdownInProgress = false, failsafeTimer, orphanCheckInterval, pendingShutdown, CleanupTimeoutError;
|
|
53521
|
+
var resumeHintPrinted = false, exitBoundaryPrinted = false, setupGracefulShutdown, shutdownInProgress = false, failsafeTimer, orphanCheckInterval, pendingShutdown, CleanupTimeoutError;
|
|
53651
53522
|
var init_gracefulShutdown = __esm(() => {
|
|
53652
53523
|
init_source();
|
|
53653
53524
|
init_memoize();
|
|
@@ -54004,7 +53875,7 @@ var init_syncCache = __esm(() => {
|
|
|
54004
53875
|
|
|
54005
53876
|
// src/services/remoteManagedSettings/types.ts
|
|
54006
53877
|
var RemoteManagedSettingsResponseSchema;
|
|
54007
|
-
var
|
|
53878
|
+
var init_types7 = __esm(() => {
|
|
54008
53879
|
init_v4();
|
|
54009
53880
|
init_lazySchema();
|
|
54010
53881
|
RemoteManagedSettingsResponseSchema = lazySchema(() => exports_external.object({
|
|
@@ -54362,7 +54233,7 @@ var init_remoteManagedSettings = __esm(() => {
|
|
|
54362
54233
|
init_securityCheck();
|
|
54363
54234
|
init_syncCache();
|
|
54364
54235
|
init_syncCacheState();
|
|
54365
|
-
|
|
54236
|
+
init_types7();
|
|
54366
54237
|
POLLING_INTERVAL_MS = 60 * 60 * 1000;
|
|
54367
54238
|
});
|
|
54368
54239
|
|
|
@@ -54372,7 +54243,7 @@ async function performLogout({
|
|
|
54372
54243
|
}) {
|
|
54373
54244
|
const {
|
|
54374
54245
|
flushTelemetry
|
|
54375
|
-
} = await import("./chunk-
|
|
54246
|
+
} = await import("./chunk-6n13qf4a.js");
|
|
54376
54247
|
await flushTelemetry();
|
|
54377
54248
|
await removeApiKey();
|
|
54378
54249
|
const secureStorage = getSecureStorage();
|
|
@@ -54932,9 +54803,9 @@ async function assertMinVersion() {
|
|
|
54932
54803
|
}
|
|
54933
54804
|
try {
|
|
54934
54805
|
const versionConfig = await getDynamicConfig_BLOCKS_ON_INIT("tengu_version_config", { minVersion: "0.0.0" });
|
|
54935
|
-
if (versionConfig.minVersion && lt("1.0.3-fork.
|
|
54806
|
+
if (versionConfig.minVersion && lt("1.0.3-fork.e907883", versionConfig.minVersion)) {
|
|
54936
54807
|
console.error(`
|
|
54937
|
-
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.
|
|
54938
54809
|
A newer version (${versionConfig.minVersion} or higher) is required to continue.
|
|
54939
54810
|
|
|
54940
54811
|
To update, please run:
|
|
@@ -55150,7 +55021,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
55150
55021
|
logError(new AutoUpdaterError("Another process is currently installing an update"));
|
|
55151
55022
|
logEvent("tengu_auto_updater_lock_contention", {
|
|
55152
55023
|
pid: process.pid,
|
|
55153
|
-
currentVersion: "1.0.3-fork.
|
|
55024
|
+
currentVersion: "1.0.3-fork.e907883"
|
|
55154
55025
|
});
|
|
55155
55026
|
return "in_progress";
|
|
55156
55027
|
}
|
|
@@ -55159,7 +55030,7 @@ async function installGlobalPackage(specificVersion) {
|
|
|
55159
55030
|
if (!env.isRunningWithBun() && env.isNpmFromWindowsPath()) {
|
|
55160
55031
|
logError(new Error("Windows NPM detected in WSL environment"));
|
|
55161
55032
|
logEvent("tengu_auto_updater_windows_npm_in_wsl", {
|
|
55162
|
-
currentVersion: "1.0.3-fork.
|
|
55033
|
+
currentVersion: "1.0.3-fork.e907883"
|
|
55163
55034
|
});
|
|
55164
55035
|
console.error(`
|
|
55165
55036
|
Error: Windows NPM detected in WSL
|
|
@@ -55473,7 +55344,7 @@ function ripGrepRaw(args, target, abortSignal, callback, singleThread = false) {
|
|
|
55473
55344
|
child.kill();
|
|
55474
55345
|
} else {
|
|
55475
55346
|
child.kill("SIGTERM");
|
|
55476
|
-
killTimeoutId = setTimeout((
|
|
55347
|
+
killTimeoutId = setTimeout((c) => c.kill("SIGKILL"), 5000, child);
|
|
55477
55348
|
}
|
|
55478
55349
|
}, timeout);
|
|
55479
55350
|
let settled = false;
|
|
@@ -56042,7 +55913,7 @@ function detectLinuxGlobPatternWarnings() {
|
|
|
56042
55913
|
}
|
|
56043
55914
|
async function getDoctorDiagnostic() {
|
|
56044
55915
|
const installationType = await getCurrentInstallationType();
|
|
56045
|
-
const version = typeof MACRO !== "undefined" ? "1.0.3-fork.
|
|
55916
|
+
const version = typeof MACRO !== "undefined" ? "1.0.3-fork.e907883" : "unknown";
|
|
56046
55917
|
const installationPath = await getInstallationPath();
|
|
56047
55918
|
const invokedBinary = getInvokedBinary();
|
|
56048
55919
|
const multipleInstallations = await detectMultipleInstallations();
|
|
@@ -56333,7 +56204,7 @@ async function downloadAndVerifyBinary(binaryUrl, expectedChecksum, binaryPath,
|
|
|
56333
56204
|
};
|
|
56334
56205
|
const resetStallTimer = () => {
|
|
56335
56206
|
clearStallTimer();
|
|
56336
|
-
stallTimer = setTimeout((
|
|
56207
|
+
stallTimer = setTimeout((c) => c.abort(), getStallTimeoutMs(), controller);
|
|
56337
56208
|
};
|
|
56338
56209
|
try {
|
|
56339
56210
|
resetStallTimer();
|
|
@@ -56979,8 +56850,8 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
56979
56850
|
const maxVersion = await getMaxVersion();
|
|
56980
56851
|
if (maxVersion && gt(version, maxVersion)) {
|
|
56981
56852
|
logForDebugging(`Native installer: maxVersion ${maxVersion} is set, capping update from ${version} to ${maxVersion}`);
|
|
56982
|
-
if (gte("1.0.3-fork.
|
|
56983
|
-
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`);
|
|
56984
56855
|
logEvent("tengu_native_update_skipped_max_version", {
|
|
56985
56856
|
latency_ms: Date.now() - startTime,
|
|
56986
56857
|
max_version: maxVersion,
|
|
@@ -56991,7 +56862,7 @@ async function updateLatest(channelOrVersion, forceReinstall = false) {
|
|
|
56991
56862
|
version = maxVersion;
|
|
56992
56863
|
}
|
|
56993
56864
|
}
|
|
56994
|
-
if (!forceReinstall && version === "1.0.3-fork.
|
|
56865
|
+
if (!forceReinstall && version === "1.0.3-fork.e907883" && await versionIsAvailable(version) && await isPossibleClaudeBinary(executablePath)) {
|
|
56995
56866
|
logForDebugging(`Found ${version} at ${executablePath}, skipping install`);
|
|
56996
56867
|
logEvent("tengu_native_update_complete", {
|
|
56997
56868
|
latency_ms: Date.now() - startTime,
|
|
@@ -61708,7 +61579,7 @@ class HighlightSegmenter {
|
|
|
61708
61579
|
}
|
|
61709
61580
|
}
|
|
61710
61581
|
function reduceCodes(codes) {
|
|
61711
|
-
return reduceAnsiCodes(codes).filter((
|
|
61582
|
+
return reduceAnsiCodes(codes).filter((c) => c.code !== c.endCode);
|
|
61712
61583
|
}
|
|
61713
61584
|
var init_textHighlighting = __esm(() => {
|
|
61714
61585
|
init_build();
|
|
@@ -62096,29 +61967,29 @@ function hueToRgb(hue) {
|
|
|
62096
61967
|
const h = (hue % 360 + 360) % 360;
|
|
62097
61968
|
const s = 0.7;
|
|
62098
61969
|
const l = 0.6;
|
|
62099
|
-
const
|
|
62100
|
-
const x2 =
|
|
62101
|
-
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;
|
|
62102
61973
|
let r = 0;
|
|
62103
61974
|
let g2 = 0;
|
|
62104
61975
|
let b2 = 0;
|
|
62105
61976
|
if (h < 60) {
|
|
62106
|
-
r =
|
|
61977
|
+
r = c;
|
|
62107
61978
|
g2 = x2;
|
|
62108
61979
|
} else if (h < 120) {
|
|
62109
61980
|
r = x2;
|
|
62110
|
-
g2 =
|
|
61981
|
+
g2 = c;
|
|
62111
61982
|
} else if (h < 180) {
|
|
62112
|
-
g2 =
|
|
61983
|
+
g2 = c;
|
|
62113
61984
|
b2 = x2;
|
|
62114
61985
|
} else if (h < 240) {
|
|
62115
61986
|
g2 = x2;
|
|
62116
|
-
b2 =
|
|
61987
|
+
b2 = c;
|
|
62117
61988
|
} else if (h < 300) {
|
|
62118
61989
|
r = x2;
|
|
62119
|
-
b2 =
|
|
61990
|
+
b2 = c;
|
|
62120
61991
|
} else {
|
|
62121
|
-
r =
|
|
61992
|
+
r = c;
|
|
62122
61993
|
b2 = x2;
|
|
62123
61994
|
}
|
|
62124
61995
|
return {
|
|
@@ -63021,8 +62892,8 @@ function SelectInputOption(t0) {
|
|
|
63021
62892
|
}
|
|
63022
62893
|
return t38;
|
|
63023
62894
|
}
|
|
63024
|
-
function _temp3(
|
|
63025
|
-
return
|
|
62895
|
+
function _temp3(c) {
|
|
62896
|
+
return c.type === "image";
|
|
63026
62897
|
}
|
|
63027
62898
|
var import_compiler_runtime18, import_react16, jsx_dev_runtime22;
|
|
63028
62899
|
var init_select_input_option = __esm(() => {
|
|
@@ -64455,8 +64326,8 @@ function _temp33() {
|
|
|
64455
64326
|
flexDirection: "column"
|
|
64456
64327
|
};
|
|
64457
64328
|
}
|
|
64458
|
-
function _temp23(
|
|
64459
|
-
return
|
|
64329
|
+
function _temp23(c) {
|
|
64330
|
+
return c.type === "image";
|
|
64460
64331
|
}
|
|
64461
64332
|
function _temp10(c_0) {
|
|
64462
64333
|
return c_0.type === "image";
|
|
@@ -65336,7 +65207,7 @@ var init_TaskListV2 = __esm(() => {
|
|
|
65336
65207
|
init_stringWidth();
|
|
65337
65208
|
init_ink();
|
|
65338
65209
|
init_AppState();
|
|
65339
|
-
|
|
65210
|
+
init_types5();
|
|
65340
65211
|
init_agentColorManager();
|
|
65341
65212
|
init_agentSwarmsEnabled();
|
|
65342
65213
|
init_array();
|
|
@@ -66376,7 +66247,7 @@ function isBackgroundTask(task) {
|
|
|
66376
66247
|
}
|
|
66377
66248
|
return true;
|
|
66378
66249
|
}
|
|
66379
|
-
var
|
|
66250
|
+
var init_types8 = () => {};
|
|
66380
66251
|
|
|
66381
66252
|
// src/constants/turnCompletionVerbs.ts
|
|
66382
66253
|
var TURN_COMPLETION_VERBS;
|
|
@@ -66648,7 +66519,7 @@ var init_InProcessTeammateTask = __esm(() => {
|
|
|
66648
66519
|
init_messages2();
|
|
66649
66520
|
init_spawnInProcess();
|
|
66650
66521
|
init_framework();
|
|
66651
|
-
|
|
66522
|
+
init_types5();
|
|
66652
66523
|
InProcessTeammateTask = {
|
|
66653
66524
|
name: "InProcessTeammateTask",
|
|
66654
66525
|
type: "in_process_teammate",
|
|
@@ -67703,8 +67574,8 @@ var init_Spinner2 = __esm(() => {
|
|
|
67703
67574
|
init_Spinner();
|
|
67704
67575
|
init_SpinnerAnimationRow();
|
|
67705
67576
|
init_useSettings();
|
|
67706
|
-
|
|
67707
|
-
|
|
67577
|
+
init_types5();
|
|
67578
|
+
init_types8();
|
|
67708
67579
|
init_InProcessTeammateTask();
|
|
67709
67580
|
init_effort();
|
|
67710
67581
|
init_model();
|
|
@@ -70224,12 +70095,12 @@ async function computeDiffStatsForFile(originalFile, backupFileName) {
|
|
|
70224
70095
|
}
|
|
70225
70096
|
filesChanged.push(originalFile);
|
|
70226
70097
|
const changes = diffLines(originalContent ?? "", backupContent ?? "");
|
|
70227
|
-
changes.forEach((
|
|
70228
|
-
if (
|
|
70229
|
-
insertions +=
|
|
70098
|
+
changes.forEach((c) => {
|
|
70099
|
+
if (c.added) {
|
|
70100
|
+
insertions += c.count || 0;
|
|
70230
70101
|
}
|
|
70231
|
-
if (
|
|
70232
|
-
deletions +=
|
|
70102
|
+
if (c.removed) {
|
|
70103
|
+
deletions += c.count || 0;
|
|
70233
70104
|
}
|
|
70234
70105
|
});
|
|
70235
70106
|
} catch (error) {
|
|
@@ -74586,7 +74457,7 @@ var init_extra_usage = __esm(() => {
|
|
|
74586
74457
|
name: "extra-usage",
|
|
74587
74458
|
description: "Configure extra usage to keep working when limits are hit",
|
|
74588
74459
|
isEnabled: () => isExtraUsageAllowed() && !getIsNonInteractiveSession(),
|
|
74589
|
-
load: () => import("./chunk-
|
|
74460
|
+
load: () => import("./chunk-hqrqsmzy.js")
|
|
74590
74461
|
};
|
|
74591
74462
|
extraUsageNonInteractive = {
|
|
74592
74463
|
type: "local",
|
|
@@ -74597,7 +74468,7 @@ var init_extra_usage = __esm(() => {
|
|
|
74597
74468
|
get isHidden() {
|
|
74598
74469
|
return !getIsNonInteractiveSession();
|
|
74599
74470
|
},
|
|
74600
|
-
load: () => import("./chunk-
|
|
74471
|
+
load: () => import("./chunk-0r42cjt0.js")
|
|
74601
74472
|
};
|
|
74602
74473
|
});
|
|
74603
74474
|
|
|
@@ -81667,7 +81538,7 @@ function CollapsedReadSearchContent({
|
|
|
81667
81538
|
"cherry-picked": "cherry-picked"
|
|
81668
81539
|
};
|
|
81669
81540
|
for (const kind of ["committed", "amended", "cherry-picked"]) {
|
|
81670
|
-
const shas = message.commits.filter((
|
|
81541
|
+
const shas = message.commits.filter((c) => c.kind === kind).map((c_0) => c_0.sha);
|
|
81671
81542
|
if (shas.length) {
|
|
81672
81543
|
pushPart(kind, byKind[kind], /* @__PURE__ */ jsx_dev_runtime75.jsxDEV(ThemedText, {
|
|
81673
81544
|
bold: true,
|
|
@@ -83393,7 +83264,7 @@ var init_SystemTextMessage = __esm(() => {
|
|
|
83393
83264
|
init_ThemedText();
|
|
83394
83265
|
init_CtrlOToExpand();
|
|
83395
83266
|
init_AppState();
|
|
83396
|
-
|
|
83267
|
+
init_types8();
|
|
83397
83268
|
init_pillLabel();
|
|
83398
83269
|
init_messageActions();
|
|
83399
83270
|
import_compiler_runtime69 = __toESM(require_compiler_runtime(), 1);
|
|
@@ -84633,7 +84504,7 @@ function renderToolUseMessage3({
|
|
|
84633
84504
|
if (!skill) {
|
|
84634
84505
|
return null;
|
|
84635
84506
|
}
|
|
84636
|
-
const command = commands?.find((
|
|
84507
|
+
const command = commands?.find((c) => c.name === skill);
|
|
84637
84508
|
const displayName = command?.loadedFrom === "commands_DEPRECATED" ? `/${skill}` : skill;
|
|
84638
84509
|
return displayName;
|
|
84639
84510
|
}
|
|
@@ -84813,7 +84684,7 @@ async function executeForkedSkill(command, commandName, args, context, canUseToo
|
|
|
84813
84684
|
const normalizedNew = normalizeMessages([message]);
|
|
84814
84685
|
for (const m2 of normalizedNew) {
|
|
84815
84686
|
const contentArray = m2.message?.content;
|
|
84816
|
-
const hasToolContent = Array.isArray(contentArray) && contentArray.some((
|
|
84687
|
+
const hasToolContent = Array.isArray(contentArray) && contentArray.some((c) => c.type === "tool_use" || c.type === "tool_result");
|
|
84817
84688
|
if (hasToolContent) {
|
|
84818
84689
|
onProgress({
|
|
84819
84690
|
toolUseID: `skill_${parentMessage.message.id}`,
|
|
@@ -85067,7 +84938,7 @@ var init_SkillTool = __esm(() => {
|
|
|
85067
84938
|
if (command?.type === "prompt" && command.context === "fork") {
|
|
85068
84939
|
return executeForkedSkill(command, commandName, args, context, canUseTool, parentMessage, onProgress);
|
|
85069
84940
|
}
|
|
85070
|
-
const { processPromptSlashCommand } = await import("./chunk-
|
|
84941
|
+
const { processPromptSlashCommand } = await import("./chunk-9a6b7d6t.js");
|
|
85071
84942
|
const processedCommand = await processPromptSlashCommand(commandName, args || "", commands, context);
|
|
85072
84943
|
if (!processedCommand.shouldQuery) {
|
|
85073
84944
|
throw new Error("Command processing failed");
|
|
@@ -90412,7 +90283,7 @@ var init_semanticBoolean = __esm(() => {
|
|
|
90412
90283
|
|
|
90413
90284
|
// src/tools/FileEditTool/types.ts
|
|
90414
90285
|
var inputSchema5, hunkSchema, gitDiffSchema, outputSchema5;
|
|
90415
|
-
var
|
|
90286
|
+
var init_types9 = __esm(() => {
|
|
90416
90287
|
init_v4();
|
|
90417
90288
|
init_lazySchema();
|
|
90418
90289
|
init_semanticBoolean();
|
|
@@ -90680,7 +90551,7 @@ function detectColorMode(theme) {
|
|
|
90680
90551
|
return ct === "truecolor" || ct === "24bit" ? "truecolor" : "color256";
|
|
90681
90552
|
}
|
|
90682
90553
|
function ansi256FromRgb(r, g2, b2) {
|
|
90683
|
-
const q2 = (
|
|
90554
|
+
const q2 = (c) => c < 48 ? 0 : c < 115 ? 1 : c < 155 ? 2 : c < 195 ? 3 : c < 235 ? 4 : 5;
|
|
90684
90555
|
const qr = q2(r);
|
|
90685
90556
|
const qg = q2(g2);
|
|
90686
90557
|
const qb = q2(b2);
|
|
@@ -90700,22 +90571,22 @@ function ansi256FromRgb(r, g2, b2) {
|
|
|
90700
90571
|
const dGrey = (r - greyRgb) ** 2 + (g2 - greyRgb) ** 2 + (b2 - greyRgb) ** 2;
|
|
90701
90572
|
return dGrey < dCube ? greyIdx : cubeIdx;
|
|
90702
90573
|
}
|
|
90703
|
-
function colorToEscape(
|
|
90704
|
-
if (
|
|
90705
|
-
const idx =
|
|
90574
|
+
function colorToEscape(c, fg, mode) {
|
|
90575
|
+
if (c.a === 0) {
|
|
90576
|
+
const idx = c.r;
|
|
90706
90577
|
if (idx < 8)
|
|
90707
90578
|
return `\x1B[${(fg ? 30 : 40) + idx}m`;
|
|
90708
90579
|
if (idx < 16)
|
|
90709
90580
|
return `\x1B[${(fg ? 90 : 100) + (idx - 8)}m`;
|
|
90710
90581
|
return `\x1B[${fg ? 38 : 48};5;${idx}m`;
|
|
90711
90582
|
}
|
|
90712
|
-
if (
|
|
90583
|
+
if (c.a === 1)
|
|
90713
90584
|
return fg ? "\x1B[39m" : "\x1B[49m";
|
|
90714
90585
|
const codeType = fg ? 38 : 48;
|
|
90715
90586
|
if (mode === "truecolor") {
|
|
90716
|
-
return `\x1B[${codeType};2;${
|
|
90587
|
+
return `\x1B[${codeType};2;${c.r};${c.g};${c.b}m`;
|
|
90717
90588
|
}
|
|
90718
|
-
return `\x1B[${codeType};5;${ansi256FromRgb(
|
|
90589
|
+
return `\x1B[${codeType};5;${ansi256FromRgb(c.r, c.g, c.b)}m`;
|
|
90719
90590
|
}
|
|
90720
90591
|
function asTerminalEscaped(blocks, mode, skipBackground, dim) {
|
|
90721
90592
|
let out = dim ? RESET + DIM : RESET;
|
|
@@ -93074,7 +92945,7 @@ var init_FileEditTool = __esm(() => {
|
|
|
93074
92945
|
init_constants6();
|
|
93075
92946
|
init_constants5();
|
|
93076
92947
|
init_prompt19();
|
|
93077
|
-
|
|
92948
|
+
init_types9();
|
|
93078
92949
|
init_UI3();
|
|
93079
92950
|
init_utils();
|
|
93080
92951
|
MAX_EDIT_FILE_SIZE = 1024 * 1024 * 1024;
|
|
@@ -93928,7 +93799,7 @@ var init_FileWriteTool = __esm(() => {
|
|
|
93928
93799
|
init_filesystem();
|
|
93929
93800
|
init_shellRuleMatching();
|
|
93930
93801
|
init_constants5();
|
|
93931
|
-
|
|
93802
|
+
init_types9();
|
|
93932
93803
|
init_prompt6();
|
|
93933
93804
|
init_UI4();
|
|
93934
93805
|
inputSchema6 = lazySchema(() => exports_external.strictObject({
|
|
@@ -96978,7 +96849,7 @@ async function readNotebook(notebookPath, cellId) {
|
|
|
96978
96849
|
const notebook = jsonParse(content);
|
|
96979
96850
|
const language = notebook.metadata.language_info?.name ?? "python";
|
|
96980
96851
|
if (cellId) {
|
|
96981
|
-
const cell = notebook.cells.find((
|
|
96852
|
+
const cell = notebook.cells.find((c) => c.id === cellId);
|
|
96982
96853
|
if (!cell) {
|
|
96983
96854
|
throw new Error(`Cell with ID "${cellId}" not found in notebook`);
|
|
96984
96855
|
}
|
|
@@ -98096,14 +97967,14 @@ function collectCandidatesByMessage(messages) {
|
|
|
98096
97967
|
return groups;
|
|
98097
97968
|
}
|
|
98098
97969
|
function partitionByPriorDecision(candidates, state) {
|
|
98099
|
-
return candidates.reduce((acc,
|
|
98100
|
-
const replacement = state.replacements.get(
|
|
97970
|
+
return candidates.reduce((acc, c) => {
|
|
97971
|
+
const replacement = state.replacements.get(c.toolUseId);
|
|
98101
97972
|
if (replacement !== undefined) {
|
|
98102
|
-
acc.mustReapply.push({ ...
|
|
98103
|
-
} else if (state.seenIds.has(
|
|
98104
|
-
acc.frozen.push(
|
|
97973
|
+
acc.mustReapply.push({ ...c, replacement });
|
|
97974
|
+
} else if (state.seenIds.has(c.toolUseId)) {
|
|
97975
|
+
acc.frozen.push(c);
|
|
98105
97976
|
} else {
|
|
98106
|
-
acc.fresh.push(
|
|
97977
|
+
acc.fresh.push(c);
|
|
98107
97978
|
}
|
|
98108
97979
|
return acc;
|
|
98109
97980
|
}, { mustReapply: [], frozen: [], fresh: [] });
|
|
@@ -98111,12 +97982,12 @@ function partitionByPriorDecision(candidates, state) {
|
|
|
98111
97982
|
function selectFreshToReplace(fresh, frozenSize, limit) {
|
|
98112
97983
|
const sorted = [...fresh].sort((a, b2) => b2.size - a.size);
|
|
98113
97984
|
const selected = [];
|
|
98114
|
-
let remaining = frozenSize + fresh.reduce((sum,
|
|
98115
|
-
for (const
|
|
97985
|
+
let remaining = frozenSize + fresh.reduce((sum, c) => sum + c.size, 0);
|
|
97986
|
+
for (const c of sorted) {
|
|
98116
97987
|
if (remaining <= limit)
|
|
98117
97988
|
break;
|
|
98118
|
-
selected.push(
|
|
98119
|
-
remaining -=
|
|
97989
|
+
selected.push(c);
|
|
97990
|
+
remaining -= c.size;
|
|
98120
97991
|
}
|
|
98121
97992
|
return selected;
|
|
98122
97993
|
}
|
|
@@ -98163,20 +98034,20 @@ async function enforceToolResultBudget(messages, state, skipToolNames = new Set)
|
|
|
98163
98034
|
let messagesOverBudget = 0;
|
|
98164
98035
|
for (const candidates of candidatesByMessage) {
|
|
98165
98036
|
const { mustReapply, frozen, fresh } = partitionByPriorDecision(candidates, state);
|
|
98166
|
-
mustReapply.forEach((
|
|
98037
|
+
mustReapply.forEach((c) => replacementMap.set(c.toolUseId, c.replacement));
|
|
98167
98038
|
reappliedCount += mustReapply.length;
|
|
98168
98039
|
if (fresh.length === 0) {
|
|
98169
|
-
candidates.forEach((
|
|
98040
|
+
candidates.forEach((c) => state.seenIds.add(c.toolUseId));
|
|
98170
98041
|
continue;
|
|
98171
98042
|
}
|
|
98172
|
-
const skipped = fresh.filter((
|
|
98173
|
-
skipped.forEach((
|
|
98174
|
-
const eligible = fresh.filter((
|
|
98175
|
-
const frozenSize = frozen.reduce((sum,
|
|
98176
|
-
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);
|
|
98177
98048
|
const selected = frozenSize + freshSize > limit ? selectFreshToReplace(eligible, frozenSize, limit) : [];
|
|
98178
|
-
const selectedIds = new Set(selected.map((
|
|
98179
|
-
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));
|
|
98180
98051
|
if (selected.length === 0)
|
|
98181
98052
|
continue;
|
|
98182
98053
|
messagesOverBudget++;
|
|
@@ -98185,7 +98056,7 @@ async function enforceToolResultBudget(messages, state, skipToolNames = new Set)
|
|
|
98185
98056
|
if (replacementMap.size === 0 && toPersist.length === 0) {
|
|
98186
98057
|
return { messages, newlyReplaced: [] };
|
|
98187
98058
|
}
|
|
98188
|
-
const freshReplacements = await Promise.all(toPersist.map(async (
|
|
98059
|
+
const freshReplacements = await Promise.all(toPersist.map(async (c) => [c, await buildReplacement(c)]));
|
|
98189
98060
|
const newlyReplaced = [];
|
|
98190
98061
|
let replacedSize = 0;
|
|
98191
98062
|
for (const [candidate, replacement] of freshReplacements) {
|
|
@@ -98235,7 +98106,7 @@ async function applyToolResultBudget(messages, state, writeToTranscript, skipToo
|
|
|
98235
98106
|
}
|
|
98236
98107
|
function reconstructContentReplacementState(messages, records, inheritedReplacements) {
|
|
98237
98108
|
const state = createContentReplacementState();
|
|
98238
|
-
const candidateIds = new Set(collectCandidatesByMessage(messages).flat().map((
|
|
98109
|
+
const candidateIds = new Set(collectCandidatesByMessage(messages).flat().map((c) => c.toolUseId));
|
|
98239
98110
|
for (const id of candidateIds) {
|
|
98240
98111
|
state.seenIds.add(id);
|
|
98241
98112
|
}
|
|
@@ -98969,7 +98840,7 @@ async function listCandidates(projectDir, doStat, projectPath) {
|
|
|
98969
98840
|
return null;
|
|
98970
98841
|
}
|
|
98971
98842
|
}));
|
|
98972
|
-
return results.filter((
|
|
98843
|
+
return results.filter((c) => c !== null);
|
|
98973
98844
|
}
|
|
98974
98845
|
var init_listSessionsImpl = __esm(() => {
|
|
98975
98846
|
init_getWorktreePathsPortable();
|
|
@@ -99035,7 +98906,7 @@ async function rollbackConsolidationLock(priorMtime) {
|
|
|
99035
98906
|
async function listSessionsTouchedSince(sinceMs) {
|
|
99036
98907
|
const dir = getProjectDir(getOriginalCwd());
|
|
99037
98908
|
const candidates = await listCandidates(dir, true);
|
|
99038
|
-
return candidates.filter((
|
|
98909
|
+
return candidates.filter((c) => c.mtime > sinceMs).map((c) => c.sessionId);
|
|
99039
98910
|
}
|
|
99040
98911
|
var LOCK_FILE = ".consolidate-lock", HOLDER_STALE_MS;
|
|
99041
98912
|
var init_consolidationLock = __esm(() => {
|
|
@@ -99996,9 +99867,9 @@ function processProgressMessages(messages, tools, isAgentRunning) {
|
|
|
99996
99867
|
const toolUseByID = new Map;
|
|
99997
99868
|
for (const msg of agentMessages) {
|
|
99998
99869
|
if (msg.data.message.type === "assistant") {
|
|
99999
|
-
for (const
|
|
100000
|
-
if (
|
|
100001
|
-
toolUseByID.set(
|
|
99870
|
+
for (const c of msg.data.message.message.content) {
|
|
99871
|
+
if (c.type === "tool_use") {
|
|
99872
|
+
toolUseByID.set(c.id, c);
|
|
100002
99873
|
}
|
|
100003
99874
|
}
|
|
100004
99875
|
}
|
|
@@ -100779,9 +100650,9 @@ function extractLastToolInfo(progressMessages, tools) {
|
|
|
100779
100650
|
continue;
|
|
100780
100651
|
}
|
|
100781
100652
|
if (pm.data.message.type === "assistant") {
|
|
100782
|
-
for (const
|
|
100783
|
-
if (
|
|
100784
|
-
toolUseByID.set(
|
|
100653
|
+
for (const c of pm.data.message.message.content) {
|
|
100654
|
+
if (c.type === "tool_use") {
|
|
100655
|
+
toolUseByID.set(c.id, c);
|
|
100785
100656
|
}
|
|
100786
100657
|
}
|
|
100787
100658
|
}
|
|
@@ -100814,10 +100685,10 @@ function extractLastToolInfo(progressMessages, tools) {
|
|
|
100814
100685
|
return false;
|
|
100815
100686
|
}
|
|
100816
100687
|
const message = msg.data.message;
|
|
100817
|
-
return message.type === "user" && message.message.content.some((
|
|
100688
|
+
return message.type === "user" && message.message.content.some((c) => c.type === "tool_result");
|
|
100818
100689
|
});
|
|
100819
100690
|
if (lastToolResult?.data.message.type === "user") {
|
|
100820
|
-
const toolResultBlock = lastToolResult.data.message.message.content.find((
|
|
100691
|
+
const toolResultBlock = lastToolResult.data.message.message.content.find((c) => c.type === "tool_result");
|
|
100821
100692
|
if (toolResultBlock?.type === "tool_result") {
|
|
100822
100693
|
const toolUseBlock = toolUseByID.get(toolResultBlock.tool_use_id);
|
|
100823
100694
|
if (toolUseBlock) {
|
|
@@ -102014,7 +101885,7 @@ function handlePlanApprovalResponse(taskId, _response, setAppState) {
|
|
|
102014
101885
|
setAwaitingPlanApproval(taskId, setAppState, false);
|
|
102015
101886
|
}
|
|
102016
101887
|
var init_inProcessTeammateHelpers = __esm(() => {
|
|
102017
|
-
|
|
101888
|
+
init_types5();
|
|
102018
101889
|
init_framework();
|
|
102019
101890
|
init_teammateMailbox();
|
|
102020
101891
|
});
|
|
@@ -104170,7 +104041,7 @@ var init_UI15 = __esm(() => {
|
|
|
104170
104041
|
// src/tools/ReadMcpResourceTool/ReadMcpResourceTool.ts
|
|
104171
104042
|
var inputSchema20, outputSchema17, ReadMcpResourceTool;
|
|
104172
104043
|
var init_ReadMcpResourceTool = __esm(() => {
|
|
104173
|
-
|
|
104044
|
+
init_types4();
|
|
104174
104045
|
init_v4();
|
|
104175
104046
|
init_client5();
|
|
104176
104047
|
init_Tool();
|
|
@@ -104222,7 +104093,7 @@ var init_ReadMcpResourceTool = __esm(() => {
|
|
|
104222
104093
|
const { server: serverName, uri } = input;
|
|
104223
104094
|
const client = mcpClients.find((client2) => client2.name === serverName);
|
|
104224
104095
|
if (!client) {
|
|
104225
|
-
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(", ")}`);
|
|
104226
104097
|
}
|
|
104227
104098
|
if (client.type !== "connected") {
|
|
104228
104099
|
throw new Error(`Server "${serverName}" is not connected`);
|
|
@@ -104235,27 +104106,27 @@ var init_ReadMcpResourceTool = __esm(() => {
|
|
|
104235
104106
|
method: "resources/read",
|
|
104236
104107
|
params: { uri }
|
|
104237
104108
|
}, ReadResourceResultSchema);
|
|
104238
|
-
const contents = await Promise.all(result.contents.map(async (
|
|
104239
|
-
if ("text" in
|
|
104240
|
-
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 };
|
|
104241
104112
|
}
|
|
104242
|
-
if (!("blob" in
|
|
104243
|
-
return { uri:
|
|
104113
|
+
if (!("blob" in c) || typeof c.blob !== "string") {
|
|
104114
|
+
return { uri: c.uri, mimeType: c.mimeType };
|
|
104244
104115
|
}
|
|
104245
104116
|
const persistId = `mcp-resource-${Date.now()}-${i}-${Math.random().toString(36).slice(2, 8)}`;
|
|
104246
|
-
const persisted = await persistBinaryContent(Buffer.from(
|
|
104117
|
+
const persisted = await persistBinaryContent(Buffer.from(c.blob, "base64"), c.mimeType, persistId);
|
|
104247
104118
|
if ("error" in persisted) {
|
|
104248
104119
|
return {
|
|
104249
|
-
uri:
|
|
104250
|
-
mimeType:
|
|
104120
|
+
uri: c.uri,
|
|
104121
|
+
mimeType: c.mimeType,
|
|
104251
104122
|
text: `Binary content could not be saved to disk: ${persisted.error}`
|
|
104252
104123
|
};
|
|
104253
104124
|
}
|
|
104254
104125
|
return {
|
|
104255
|
-
uri:
|
|
104256
|
-
mimeType:
|
|
104126
|
+
uri: c.uri,
|
|
104127
|
+
mimeType: c.mimeType,
|
|
104257
104128
|
blobSavedTo: persisted.filepath,
|
|
104258
|
-
text: getBinaryBlobSavedMessage(persisted.filepath,
|
|
104129
|
+
text: getBinaryBlobSavedMessage(persisted.filepath, c.mimeType, persisted.size, `[Resource from ${serverName} at ${c.uri}] `)
|
|
104259
104130
|
};
|
|
104260
104131
|
}));
|
|
104261
104132
|
return {
|
|
@@ -104465,7 +104336,7 @@ var init_ToolSearchTool = __esm(() => {
|
|
|
104465
104336
|
maybeInvalidateCache(deferredTools);
|
|
104466
104337
|
function getPendingServerNames() {
|
|
104467
104338
|
const appState = getAppState();
|
|
104468
|
-
const pending = appState.mcp.clients.filter((
|
|
104339
|
+
const pending = appState.mcp.clients.filter((c) => c.type === "pending");
|
|
104469
104340
|
return pending.length > 0 ? pending.map((s) => s.name) : undefined;
|
|
104470
104341
|
}
|
|
104471
104342
|
function logSearchOutcome(matches2, queryType) {
|
|
@@ -108215,32 +108086,32 @@ function maskBracesInQuotedContexts(cmd) {
|
|
|
108215
108086
|
let inDouble = false;
|
|
108216
108087
|
let i = 0;
|
|
108217
108088
|
while (i < cmd.length) {
|
|
108218
|
-
const
|
|
108089
|
+
const c = cmd[i];
|
|
108219
108090
|
if (inSingle) {
|
|
108220
|
-
if (
|
|
108091
|
+
if (c === "'")
|
|
108221
108092
|
inSingle = false;
|
|
108222
|
-
out.push(
|
|
108093
|
+
out.push(c === "{" ? " " : c);
|
|
108223
108094
|
i++;
|
|
108224
108095
|
} else if (inDouble) {
|
|
108225
|
-
if (
|
|
108226
|
-
out.push(
|
|
108096
|
+
if (c === "\\" && (cmd[i + 1] === '"' || cmd[i + 1] === "\\")) {
|
|
108097
|
+
out.push(c, cmd[i + 1]);
|
|
108227
108098
|
i += 2;
|
|
108228
108099
|
} else {
|
|
108229
|
-
if (
|
|
108100
|
+
if (c === '"')
|
|
108230
108101
|
inDouble = false;
|
|
108231
|
-
out.push(
|
|
108102
|
+
out.push(c === "{" ? " " : c);
|
|
108232
108103
|
i++;
|
|
108233
108104
|
}
|
|
108234
108105
|
} else {
|
|
108235
|
-
if (
|
|
108236
|
-
out.push(
|
|
108106
|
+
if (c === "\\" && i + 1 < cmd.length) {
|
|
108107
|
+
out.push(c, cmd[i + 1]);
|
|
108237
108108
|
i += 2;
|
|
108238
108109
|
} else {
|
|
108239
|
-
if (
|
|
108110
|
+
if (c === "'")
|
|
108240
108111
|
inSingle = true;
|
|
108241
|
-
else if (
|
|
108112
|
+
else if (c === '"')
|
|
108242
108113
|
inDouble = true;
|
|
108243
|
-
out.push(
|
|
108114
|
+
out.push(c);
|
|
108244
108115
|
i++;
|
|
108245
108116
|
}
|
|
108246
108117
|
}
|
|
@@ -108323,8 +108194,8 @@ function collectCommands(node, commands, varScope) {
|
|
|
108323
108194
|
const isPipeline = node.type === "pipeline";
|
|
108324
108195
|
let needsSnapshot = false;
|
|
108325
108196
|
if (!isPipeline) {
|
|
108326
|
-
for (const
|
|
108327
|
-
if (
|
|
108197
|
+
for (const c of node.children) {
|
|
108198
|
+
if (c && (c.type === "||" || c.type === "&")) {
|
|
108328
108199
|
needsSnapshot = true;
|
|
108329
108200
|
break;
|
|
108330
108201
|
}
|
|
@@ -108453,12 +108324,12 @@ function collectCommands(node, commands, varScope) {
|
|
|
108453
108324
|
}
|
|
108454
108325
|
varScope.set(loopVar, VAR_PLACEHOLDER);
|
|
108455
108326
|
const bodyScope = new Map(varScope);
|
|
108456
|
-
for (const
|
|
108457
|
-
if (!
|
|
108327
|
+
for (const c of doGroup.children) {
|
|
108328
|
+
if (!c)
|
|
108458
108329
|
continue;
|
|
108459
|
-
if (
|
|
108330
|
+
if (c.type === "do" || c.type === "done" || c.type === ";")
|
|
108460
108331
|
continue;
|
|
108461
|
-
const err = collectCommands(
|
|
108332
|
+
const err = collectCommands(c, commands, bodyScope);
|
|
108462
108333
|
if (err)
|
|
108463
108334
|
return err;
|
|
108464
108335
|
}
|
|
@@ -108478,12 +108349,12 @@ function collectCommands(node, commands, varScope) {
|
|
|
108478
108349
|
}
|
|
108479
108350
|
if (child.type === "do_group") {
|
|
108480
108351
|
const bodyScope = new Map(varScope);
|
|
108481
|
-
for (const
|
|
108482
|
-
if (!
|
|
108352
|
+
for (const c of child.children) {
|
|
108353
|
+
if (!c)
|
|
108483
108354
|
continue;
|
|
108484
|
-
if (
|
|
108355
|
+
if (c.type === "do" || c.type === "done" || c.type === ";")
|
|
108485
108356
|
continue;
|
|
108486
|
-
const err2 = collectCommands(
|
|
108357
|
+
const err2 = collectCommands(c, commands, bodyScope);
|
|
108487
108358
|
if (err2)
|
|
108488
108359
|
return err2;
|
|
108489
108360
|
}
|
|
@@ -108491,13 +108362,13 @@ function collectCommands(node, commands, varScope) {
|
|
|
108491
108362
|
}
|
|
108492
108363
|
if (child.type === "elif_clause" || child.type === "else_clause") {
|
|
108493
108364
|
const branchScope = new Map(varScope);
|
|
108494
|
-
for (const
|
|
108495
|
-
if (!
|
|
108365
|
+
for (const c of child.children) {
|
|
108366
|
+
if (!c)
|
|
108496
108367
|
continue;
|
|
108497
|
-
if (
|
|
108368
|
+
if (c.type === "elif" || c.type === "else" || c.type === "then" || c.type === ";") {
|
|
108498
108369
|
continue;
|
|
108499
108370
|
}
|
|
108500
|
-
const err2 = collectCommands(
|
|
108371
|
+
const err2 = collectCommands(c, commands, branchScope);
|
|
108501
108372
|
if (err2)
|
|
108502
108373
|
return err2;
|
|
108503
108374
|
}
|
|
@@ -108510,9 +108381,9 @@ function collectCommands(node, commands, varScope) {
|
|
|
108510
108381
|
return err;
|
|
108511
108382
|
if (!seenThen) {
|
|
108512
108383
|
for (let i = before;i < commands.length; i++) {
|
|
108513
|
-
const
|
|
108514
|
-
if (
|
|
108515
|
-
for (const a of
|
|
108384
|
+
const c = commands[i];
|
|
108385
|
+
if (c?.argv[0] === "read") {
|
|
108386
|
+
for (const a of c.argv.slice(1)) {
|
|
108516
108387
|
if (!a.startsWith("-") && /^[A-Za-z_][A-Za-z0-9_]*$/.test(a)) {
|
|
108517
108388
|
const existing = varScope.get(a);
|
|
108518
108389
|
if (existing !== undefined && !containsAnyPlaceholder(existing)) {
|
|
@@ -108595,10 +108466,10 @@ function walkTestExpr(node, argv, innerCommands, varScope) {
|
|
|
108595
108466
|
case "binary_expression":
|
|
108596
108467
|
case "negated_expression":
|
|
108597
108468
|
case "parenthesized_expression": {
|
|
108598
|
-
for (const
|
|
108599
|
-
if (!
|
|
108469
|
+
for (const c of node.children) {
|
|
108470
|
+
if (!c)
|
|
108600
108471
|
continue;
|
|
108601
|
-
const err = walkTestExpr(
|
|
108472
|
+
const err = walkTestExpr(c, argv, innerCommands, varScope);
|
|
108602
108473
|
if (err)
|
|
108603
108474
|
return err;
|
|
108604
108475
|
}
|
|
@@ -109025,7 +108896,7 @@ function extractSafeCatHeredoc(subNode) {
|
|
|
109025
108896
|
if (!child)
|
|
109026
108897
|
continue;
|
|
109027
108898
|
if (child.type === "command") {
|
|
109028
|
-
const cmdChildren = child.children.filter((
|
|
108899
|
+
const cmdChildren = child.children.filter((c) => c);
|
|
109029
108900
|
if (cmdChildren.length !== 1)
|
|
109030
108901
|
return null;
|
|
109031
108902
|
const nameNode = cmdChildren[0];
|
|
@@ -109137,13 +109008,13 @@ function walkVariableAssignment(node, innerCommands, varScope) {
|
|
|
109137
109008
|
function resolveSimpleExpansion(node, varScope, insideString) {
|
|
109138
109009
|
let varName = null;
|
|
109139
109010
|
let isSpecial = false;
|
|
109140
|
-
for (const
|
|
109141
|
-
if (
|
|
109142
|
-
varName =
|
|
109011
|
+
for (const c of node.children) {
|
|
109012
|
+
if (c?.type === "variable_name") {
|
|
109013
|
+
varName = c.text;
|
|
109143
109014
|
break;
|
|
109144
109015
|
}
|
|
109145
|
-
if (
|
|
109146
|
-
varName =
|
|
109016
|
+
if (c?.type === "special_variable_name") {
|
|
109017
|
+
varName = c.text;
|
|
109147
109018
|
isSpecial = true;
|
|
109148
109019
|
break;
|
|
109149
109020
|
}
|
|
@@ -109953,8 +109824,8 @@ function extractRedirectionNodes(rootNode) {
|
|
|
109953
109824
|
visitNodes(rootNode, (node) => {
|
|
109954
109825
|
if (node.type === "file_redirect") {
|
|
109955
109826
|
const children = node.children;
|
|
109956
|
-
const op = children.find((
|
|
109957
|
-
const target = children.find((
|
|
109827
|
+
const op = children.find((c) => c.type === ">" || c.type === ">>");
|
|
109828
|
+
const target = children.find((c) => c.type === "word");
|
|
109958
109829
|
if (op && target) {
|
|
109959
109830
|
redirections.push({
|
|
109960
109831
|
startIndex: node.startIndex,
|
|
@@ -110694,17 +110565,17 @@ function validateGitCommit(context) {
|
|
|
110694
110565
|
let inSQ = false;
|
|
110695
110566
|
let inDQ = false;
|
|
110696
110567
|
for (let i = 0;i < remainder.length; i++) {
|
|
110697
|
-
const
|
|
110698
|
-
if (
|
|
110568
|
+
const c = remainder[i];
|
|
110569
|
+
if (c === "'" && !inDQ) {
|
|
110699
110570
|
inSQ = !inSQ;
|
|
110700
110571
|
continue;
|
|
110701
110572
|
}
|
|
110702
|
-
if (
|
|
110573
|
+
if (c === '"' && !inSQ) {
|
|
110703
110574
|
inDQ = !inDQ;
|
|
110704
110575
|
continue;
|
|
110705
110576
|
}
|
|
110706
110577
|
if (!inSQ && !inDQ)
|
|
110707
|
-
unquoted +=
|
|
110578
|
+
unquoted += c;
|
|
110708
110579
|
}
|
|
110709
110580
|
if (/[<>]/.test(unquoted)) {
|
|
110710
110581
|
return {
|
|
@@ -110880,24 +110751,24 @@ function validateCarriageReturn(context) {
|
|
|
110880
110751
|
let inDoubleQuote = false;
|
|
110881
110752
|
let escaped = false;
|
|
110882
110753
|
for (let i = 0;i < originalCommand.length; i++) {
|
|
110883
|
-
const
|
|
110754
|
+
const c = originalCommand[i];
|
|
110884
110755
|
if (escaped) {
|
|
110885
110756
|
escaped = false;
|
|
110886
110757
|
continue;
|
|
110887
110758
|
}
|
|
110888
|
-
if (
|
|
110759
|
+
if (c === "\\" && !inSingleQuote) {
|
|
110889
110760
|
escaped = true;
|
|
110890
110761
|
continue;
|
|
110891
110762
|
}
|
|
110892
|
-
if (
|
|
110763
|
+
if (c === "'" && !inDoubleQuote) {
|
|
110893
110764
|
inSingleQuote = !inSingleQuote;
|
|
110894
110765
|
continue;
|
|
110895
110766
|
}
|
|
110896
|
-
if (
|
|
110767
|
+
if (c === '"' && !inSingleQuote) {
|
|
110897
110768
|
inDoubleQuote = !inDoubleQuote;
|
|
110898
110769
|
continue;
|
|
110899
110770
|
}
|
|
110900
|
-
if (
|
|
110771
|
+
if (c === "\r" && !inDoubleQuote) {
|
|
110901
110772
|
logEvent("tengu_bash_security_check_triggered", {
|
|
110902
110773
|
checkId: BASH_SECURITY_CHECK_IDS.NEWLINES,
|
|
110903
110774
|
subId: 2
|
|
@@ -113651,8 +113522,8 @@ async function bashToolHasPermission(input, context, getCommandSubcommandPrefixF
|
|
|
113651
113522
|
suggestions: []
|
|
113652
113523
|
};
|
|
113653
113524
|
}
|
|
113654
|
-
astSubcommands = astResult.commands.map((
|
|
113655
|
-
astRedirects = astResult.commands.flatMap((
|
|
113525
|
+
astSubcommands = astResult.commands.map((c) => c.text);
|
|
113526
|
+
astRedirects = astResult.commands.flatMap((c) => c.redirects);
|
|
113656
113527
|
astCommands = astResult.commands;
|
|
113657
113528
|
}
|
|
113658
113529
|
if (astResult.kind === "parse-unavailable") {
|
|
@@ -113875,7 +113746,7 @@ async function bashToolHasPermission(input, context, getCommandSubcommandPrefixF
|
|
|
113875
113746
|
const onDivergence = () => {
|
|
113876
113747
|
divergenceCount++;
|
|
113877
113748
|
};
|
|
113878
|
-
const results = await Promise.all(subcommands.map((
|
|
113749
|
+
const results = await Promise.all(subcommands.map((c) => bashCommandIsSafeAsync(c, onDivergence)));
|
|
113879
113750
|
hasPossibleCommandInjection = results.some((r) => r.behavior !== "passthrough");
|
|
113880
113751
|
if (divergenceCount > 0) {
|
|
113881
113752
|
logEvent("tengu_tree_sitter_security_divergence", {
|
|
@@ -115032,7 +114903,7 @@ var init_inProcessRunner = __esm(() => {
|
|
|
115032
114903
|
init_compact();
|
|
115033
114904
|
init_microCompact();
|
|
115034
114905
|
init_InProcessTeammateTask();
|
|
115035
|
-
|
|
114906
|
+
init_types5();
|
|
115036
114907
|
init_LocalAgentTask();
|
|
115037
114908
|
init_runAgent();
|
|
115038
114909
|
init_bashPermissions();
|
|
@@ -115650,8 +115521,8 @@ var init_PaneBackendExecutor = __esm(() => {
|
|
|
115650
115521
|
async function ensureBackendsRegistered() {
|
|
115651
115522
|
if (backendsRegistered)
|
|
115652
115523
|
return;
|
|
115653
|
-
await import("./chunk-
|
|
115654
|
-
await import("./chunk-
|
|
115524
|
+
await import("./chunk-ajemg1rr.js");
|
|
115525
|
+
await import("./chunk-h2j25g79.js");
|
|
115655
115526
|
backendsRegistered = true;
|
|
115656
115527
|
}
|
|
115657
115528
|
function registerTmuxBackend(backendClass) {
|
|
@@ -118300,7 +118171,7 @@ function trackGitOperations(command, exitCode, stdout) {
|
|
|
118300
118171
|
if (stdout) {
|
|
118301
118172
|
const prInfo = findPrInStdout(stdout);
|
|
118302
118173
|
if (prInfo) {
|
|
118303
|
-
import("./chunk-
|
|
118174
|
+
import("./chunk-1nt5wc40.js").then(({ linkSessionToPR }) => {
|
|
118304
118175
|
import("./chunk-44fpr6jq.js").then(({ getSessionId: getSessionId2 }) => {
|
|
118305
118176
|
const sessionId = getSessionId2();
|
|
118306
118177
|
if (sessionId) {
|
|
@@ -118533,9 +118404,9 @@ function transformCommandAst(raw) {
|
|
|
118533
118404
|
const rawChildren = ensureArray(ce2.children);
|
|
118534
118405
|
if (rawChildren.length > 0) {
|
|
118535
118406
|
hasChildren = true;
|
|
118536
|
-
children.push(rawChildren.map((
|
|
118537
|
-
type: mapElementType(
|
|
118538
|
-
text:
|
|
118407
|
+
children.push(rawChildren.map((c) => ({
|
|
118408
|
+
type: mapElementType(c.type),
|
|
118409
|
+
text: c.text
|
|
118539
118410
|
})));
|
|
118540
118411
|
} else {
|
|
118541
118412
|
children.push(undefined);
|
|
@@ -119315,27 +119186,27 @@ function resolveCwdReentry(normalized) {
|
|
|
119315
119186
|
function normalizeGitPathArg(arg) {
|
|
119316
119187
|
let s = arg;
|
|
119317
119188
|
if (s.length > 0 && (PS_TOKENIZER_DASH_CHARS.has(s[0]) || s[0] === "/")) {
|
|
119318
|
-
const
|
|
119319
|
-
if (
|
|
119320
|
-
s = s.slice(
|
|
119189
|
+
const c = s.indexOf(":", 1);
|
|
119190
|
+
if (c > 0)
|
|
119191
|
+
s = s.slice(c + 1);
|
|
119321
119192
|
}
|
|
119322
119193
|
s = s.replace(/^['"]|['"]$/g, "");
|
|
119323
119194
|
s = s.replace(/`/g, "");
|
|
119324
119195
|
s = s.replace(/^(?:[A-Za-z0-9_.]+\\){0,3}FileSystem::/i, "");
|
|
119325
119196
|
s = s.replace(/^[A-Za-z]:(?![/\\])/, "");
|
|
119326
119197
|
s = s.replace(/\\/g, "/");
|
|
119327
|
-
s = s.split("/").map((
|
|
119328
|
-
if (
|
|
119329
|
-
return
|
|
119198
|
+
s = s.split("/").map((c) => {
|
|
119199
|
+
if (c === "")
|
|
119200
|
+
return c;
|
|
119330
119201
|
let prev;
|
|
119331
119202
|
do {
|
|
119332
|
-
prev =
|
|
119333
|
-
|
|
119334
|
-
if (
|
|
119335
|
-
return
|
|
119336
|
-
|
|
119337
|
-
} while (
|
|
119338
|
-
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 || ".";
|
|
119339
119210
|
}).join("/");
|
|
119340
119211
|
s = posix4.normalize(s);
|
|
119341
119212
|
if (s.startsWith("./"))
|
|
@@ -119439,7 +119310,7 @@ function argLeaksValue(_cmd, element) {
|
|
|
119439
119310
|
if (argTypes[i] === "Parameter") {
|
|
119440
119311
|
const paramChildren = children?.[i];
|
|
119441
119312
|
if (paramChildren) {
|
|
119442
|
-
if (paramChildren.some((
|
|
119313
|
+
if (paramChildren.some((c) => c.type !== "StringConstant")) {
|
|
119443
119314
|
return true;
|
|
119444
119315
|
}
|
|
119445
119316
|
} else {
|
|
@@ -119623,7 +119494,7 @@ function isAllowlistedCommand(cmd, originalCommand) {
|
|
|
119623
119494
|
if (t === "Parameter") {
|
|
119624
119495
|
const paramChildren = cmd.children?.[i - 1];
|
|
119625
119496
|
if (paramChildren) {
|
|
119626
|
-
if (paramChildren.some((
|
|
119497
|
+
if (paramChildren.some((c) => c.type !== "StringConstant")) {
|
|
119627
119498
|
return false;
|
|
119628
119499
|
}
|
|
119629
119500
|
} else {
|
|
@@ -122258,7 +122129,7 @@ function checkDownloadCradles(parsed) {
|
|
|
122258
122129
|
}
|
|
122259
122130
|
}
|
|
122260
122131
|
const all = getAllCommands2(parsed);
|
|
122261
|
-
if (all.some((
|
|
122132
|
+
if (all.some((c) => isDownloader(c.name)) && all.some((c) => isIex(c.name))) {
|
|
122262
122133
|
return {
|
|
122263
122134
|
behavior: "ask",
|
|
122264
122135
|
message: "Command downloads and executes remote code"
|
|
@@ -123292,10 +123163,10 @@ async function powershellToolHasPermission(input, context) {
|
|
|
123292
123163
|
return true;
|
|
123293
123164
|
}
|
|
123294
123165
|
if (statement !== null) {
|
|
123295
|
-
for (const
|
|
123296
|
-
if (
|
|
123166
|
+
for (const c of statement.commands) {
|
|
123167
|
+
if (c.elementType === "CommandAst")
|
|
123297
123168
|
continue;
|
|
123298
|
-
if (isGitInternalPathPS(
|
|
123169
|
+
if (isGitInternalPathPS(c.text))
|
|
123299
123170
|
return true;
|
|
123300
123171
|
}
|
|
123301
123172
|
}
|
|
@@ -126094,7 +125965,7 @@ var init_AgentTool = __esm(() => {
|
|
|
126094
125965
|
}
|
|
126095
125966
|
const requiredMcpServers = selectedAgent.requiredMcpServers;
|
|
126096
125967
|
if (requiredMcpServers?.length) {
|
|
126097
|
-
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())));
|
|
126098
125969
|
let currentAppState = appState;
|
|
126099
125970
|
if (hasPendingRequiredServers) {
|
|
126100
125971
|
const MAX_WAIT_MS = 30000;
|
|
@@ -126103,10 +125974,10 @@ var init_AgentTool = __esm(() => {
|
|
|
126103
125974
|
while (Date.now() < deadline) {
|
|
126104
125975
|
await sleep(POLL_INTERVAL_MS2);
|
|
126105
125976
|
currentAppState = toolUseContext.getAppState();
|
|
126106
|
-
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())));
|
|
126107
125978
|
if (hasFailedRequiredServer)
|
|
126108
125979
|
break;
|
|
126109
|
-
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())));
|
|
126110
125981
|
if (!stillPending)
|
|
126111
125982
|
break;
|
|
126112
125983
|
}
|
|
@@ -127213,7 +127084,7 @@ function isCollapsibleToolUse(msg, tools) {
|
|
|
127213
127084
|
function isCollapsibleToolResult(msg, collapsibleToolUseIds) {
|
|
127214
127085
|
if (msg.type === "user") {
|
|
127215
127086
|
const contentItems = getContentItems(msg.message?.content);
|
|
127216
|
-
const toolResults = contentItems.filter((
|
|
127087
|
+
const toolResults = contentItems.filter((c) => c.type === "tool_result");
|
|
127217
127088
|
return toolResults.length > 0 && toolResults.every((r) => collapsibleToolUseIds.has(r.tool_use_id));
|
|
127218
127089
|
}
|
|
127219
127090
|
return false;
|
|
@@ -127289,10 +127160,10 @@ function scanBashResultForGitOps(msg, group) {
|
|
|
127289
127160
|
return;
|
|
127290
127161
|
const combined = (out.stdout ?? "") + `
|
|
127291
127162
|
` + (out.stderr ?? "");
|
|
127292
|
-
for (const
|
|
127293
|
-
if (
|
|
127163
|
+
for (const c of getContentItems(msg.message?.content)) {
|
|
127164
|
+
if (c.type !== "tool_result")
|
|
127294
127165
|
continue;
|
|
127295
|
-
const toolResult =
|
|
127166
|
+
const toolResult = c;
|
|
127296
127167
|
const command = group.bashCommands?.get(toolResult.tool_use_id);
|
|
127297
127168
|
if (!command)
|
|
127298
127169
|
continue;
|
|
@@ -128824,7 +128695,9 @@ async function getAttachments(input, toolUseContext, ideSelection, queuedCommand
|
|
|
128824
128695
|
}))),
|
|
128825
128696
|
maybe("agent_listing_delta", () => Promise.resolve(getAgentListingDeltaAttachment(toolUseContext, messages))),
|
|
128826
128697
|
maybe("mcp_instructions_delta", () => Promise.resolve(getMcpInstructionsDeltaAttachment(toolUseContext.options.mcpClients, toolUseContext.options.tools, toolUseContext.options.mainLoopModel, messages))),
|
|
128827
|
-
...[
|
|
128698
|
+
...[
|
|
128699
|
+
maybe("companion_intro", () => Promise.resolve(getCompanionIntroAttachment(messages)))
|
|
128700
|
+
],
|
|
128828
128701
|
maybe("changed_files", () => getChangedFiles(context)),
|
|
128829
128702
|
maybe("nested_memory", () => getNestedMemoryAttachments(context)),
|
|
128830
128703
|
maybe("dynamic_skill", () => getDynamicSkillAttachments(context)),
|
|
@@ -129352,7 +129225,7 @@ async function processMcpResourceAttachments(input, toolUseContext) {
|
|
|
129352
129225
|
logEvent("tengu_at_mention_mcp_resource_error", {});
|
|
129353
129226
|
return null;
|
|
129354
129227
|
}
|
|
129355
|
-
const client = mcpClients.find((
|
|
129228
|
+
const client = mcpClients.find((c) => c.name === serverName);
|
|
129356
129229
|
if (!client || client.type !== "connected") {
|
|
129357
129230
|
logEvent("tengu_at_mention_mcp_resource_error", {});
|
|
129358
129231
|
return null;
|
|
@@ -132057,7 +131930,7 @@ async function checkPermissionsAndCallTool(tool, toolUseID, input, toolUseContex
|
|
|
132057
131930
|
if (error instanceof McpAuthError) {
|
|
132058
131931
|
toolUseContext.setAppState((prevState) => {
|
|
132059
131932
|
const serverName = error.serverName;
|
|
132060
|
-
const existingClientIndex = prevState.mcp.clients.findIndex((
|
|
131933
|
+
const existingClientIndex = prevState.mcp.clients.findIndex((c) => c.name === serverName);
|
|
132061
131934
|
if (existingClientIndex === -1) {
|
|
132062
131935
|
return prevState;
|
|
132063
131936
|
}
|
|
@@ -133667,7 +133540,7 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
133667
133540
|
maxOutputTokensOverride,
|
|
133668
133541
|
fetchOverride: dumpPromptsFetch,
|
|
133669
133542
|
mcpTools: appState.mcp.tools,
|
|
133670
|
-
hasPendingMcpServers: appState.mcp.clients.some((
|
|
133543
|
+
hasPendingMcpServers: appState.mcp.clients.some((c) => c.type === "pending"),
|
|
133671
133544
|
queryTracking,
|
|
133672
133545
|
effortValue: appState.effortValue,
|
|
133673
133546
|
advisorModel: appState.advisorModel,
|
|
@@ -134027,7 +133900,7 @@ async function* queryLoop(params, consumedCommandUuids) {
|
|
|
134027
133900
|
const toolUseIds = toolUseBlocks.map((block) => block.id);
|
|
134028
133901
|
const toolInfoForSummary = toolUseBlocks.map((block) => {
|
|
134029
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));
|
|
134030
|
-
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;
|
|
134031
133904
|
return {
|
|
134032
133905
|
name: block.name,
|
|
134033
133906
|
input: block.input,
|
|
@@ -134268,7 +134141,7 @@ function getAnthropicEnvMetadata() {
|
|
|
134268
134141
|
function getBuildAgeMinutes() {
|
|
134269
134142
|
if (false)
|
|
134270
134143
|
;
|
|
134271
|
-
const buildTime = new Date("2026-04-
|
|
134144
|
+
const buildTime = new Date("2026-04-02T15:32:51.750Z").getTime();
|
|
134272
134145
|
if (isNaN(buildTime))
|
|
134273
134146
|
return;
|
|
134274
134147
|
return Math.floor((Date.now() - buildTime) / 60000);
|
|
@@ -134617,7 +134490,7 @@ function logAPISuccessAndDuration({
|
|
|
134617
134490
|
const content = m2.message.content;
|
|
134618
134491
|
if (!Array.isArray(content))
|
|
134619
134492
|
return [];
|
|
134620
|
-
return content.filter((
|
|
134493
|
+
return content.filter((c) => typeof c !== "string" && c.type === "text").map((c) => c.text);
|
|
134621
134494
|
}).join(`
|
|
134622
134495
|
`) || undefined;
|
|
134623
134496
|
if (process.env.USER_TYPE === "ant") {
|
|
@@ -134625,7 +134498,7 @@ function logAPISuccessAndDuration({
|
|
|
134625
134498
|
const content = m2.message.content;
|
|
134626
134499
|
if (!Array.isArray(content))
|
|
134627
134500
|
return [];
|
|
134628
|
-
return content.filter((
|
|
134501
|
+
return content.filter((c) => typeof c !== "string" && c.type === "thinking").map((c) => c.thinking);
|
|
134629
134502
|
}).join(`
|
|
134630
134503
|
`) || undefined;
|
|
134631
134504
|
}
|
|
@@ -134633,7 +134506,7 @@ function logAPISuccessAndDuration({
|
|
|
134633
134506
|
const content = m2.message.content;
|
|
134634
134507
|
if (!Array.isArray(content))
|
|
134635
134508
|
return false;
|
|
134636
|
-
return content.some((
|
|
134509
|
+
return content.some((c) => typeof c !== "string" && c.type === "tool_use");
|
|
134637
134510
|
});
|
|
134638
134511
|
}
|
|
134639
134512
|
endLLMRequestSpan(llmSpan, {
|
|
@@ -138348,7 +138221,7 @@ var init_sessionFileAccessHooks = __esm(() => {
|
|
|
138348
138221
|
init_state();
|
|
138349
138222
|
init_analytics();
|
|
138350
138223
|
init_constants5();
|
|
138351
|
-
|
|
138224
|
+
init_types9();
|
|
138352
138225
|
init_FileReadTool();
|
|
138353
138226
|
init_prompt5();
|
|
138354
138227
|
init_FileWriteTool();
|
|
@@ -139422,7 +139295,7 @@ For commands that are harder to parse at a glance (piped commands, obscure flags
|
|
|
139422
139295
|
if (parsed.kind !== "simple") {
|
|
139423
139296
|
return () => true;
|
|
139424
139297
|
}
|
|
139425
|
-
const subcommands = parsed.commands.map((
|
|
139298
|
+
const subcommands = parsed.commands.map((c) => c.argv.join(" "));
|
|
139426
139299
|
return (pattern) => {
|
|
139427
139300
|
const prefix = permissionRuleExtractPrefix2(pattern);
|
|
139428
139301
|
return subcommands.some((cmd) => {
|
|
@@ -141477,7 +141350,7 @@ var init_contextAnalysis = __esm(() => {
|
|
|
141477
141350
|
|
|
141478
141351
|
// src/utils/memory/types.ts
|
|
141479
141352
|
var MEMORY_TYPE_VALUES;
|
|
141480
|
-
var
|
|
141353
|
+
var init_types10 = __esm(() => {
|
|
141481
141354
|
MEMORY_TYPE_VALUES = [
|
|
141482
141355
|
"User",
|
|
141483
141356
|
"Project",
|
|
@@ -142741,7 +142614,7 @@ var init_compact = __esm(() => {
|
|
|
142741
142614
|
init_forkedAgent();
|
|
142742
142615
|
init_hooks3();
|
|
142743
142616
|
init_log();
|
|
142744
|
-
|
|
142617
|
+
init_types10();
|
|
142745
142618
|
init_messages2();
|
|
142746
142619
|
init_path();
|
|
142747
142620
|
init_plans();
|
|
@@ -143561,8 +143434,8 @@ async function countBuiltInToolTokens(tools, getToolPermissionContext, agentInfo
|
|
|
143561
143434
|
systemToolDetails: []
|
|
143562
143435
|
};
|
|
143563
143436
|
}
|
|
143564
|
-
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-
|
|
143565
|
-
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-
|
|
143437
|
+
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-ma7t6egq.js");
|
|
143438
|
+
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-s1rcbzcw.js");
|
|
143566
143439
|
const isDeferred = await isToolSearchEnabled2(model ?? "", tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeBuiltIn");
|
|
143567
143440
|
const alwaysLoadedTools = builtInTools.filter((t) => !isDeferredTool2(t));
|
|
143568
143441
|
const deferredBuiltinTools = builtInTools.filter((t) => isDeferredTool2(t));
|
|
@@ -143696,8 +143569,8 @@ async function countMcpToolTokens(tools, getToolPermissionContext, agentInfo, mo
|
|
|
143696
143569
|
}))));
|
|
143697
143570
|
const estimateTotal = estimates.reduce((s, e) => s + e, 0) || 1;
|
|
143698
143571
|
const mcpToolTokensByTool = estimates.map((e) => Math.round(e / estimateTotal * totalTokens));
|
|
143699
|
-
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-
|
|
143700
|
-
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-
|
|
143572
|
+
const { isToolSearchEnabled: isToolSearchEnabled2 } = await import("./chunk-ma7t6egq.js");
|
|
143573
|
+
const { isDeferredTool: isDeferredTool2 } = await import("./chunk-s1rcbzcw.js");
|
|
143701
143574
|
const isDeferred = await isToolSearchEnabled2(model, tools, getToolPermissionContext, agentInfo?.activeAgents ?? [], "analyzeMcp");
|
|
143702
143575
|
const loadedMcpToolNames = new Set;
|
|
143703
143576
|
if (isDeferred && messages) {
|
|
@@ -143956,7 +143829,7 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
143956
143829
|
color: "purple_FOR_SUBAGENTS_ONLY"
|
|
143957
143830
|
});
|
|
143958
143831
|
}
|
|
143959
|
-
const actualUsage = cats.reduce((sum,
|
|
143832
|
+
const actualUsage = cats.reduce((sum, cat) => sum + (cat.isDeferred ? 0 : cat.tokens), 0);
|
|
143960
143833
|
let reservedTokens = 0;
|
|
143961
143834
|
let skipReservedBuffer = false;
|
|
143962
143835
|
if (false) {}
|
|
@@ -143990,11 +143863,11 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
143990
143863
|
const GRID_WIDTH = contextWindow >= 1e6 ? isNarrowScreen ? 5 : 20 : isNarrowScreen ? 5 : 10;
|
|
143991
143864
|
const GRID_HEIGHT = contextWindow >= 1e6 ? 10 : isNarrowScreen ? 5 : 10;
|
|
143992
143865
|
const TOTAL_SQUARES = GRID_WIDTH * GRID_HEIGHT;
|
|
143993
|
-
const nonDeferredCats = cats.filter((
|
|
143994
|
-
const categorySquares = nonDeferredCats.map((
|
|
143995
|
-
...
|
|
143996
|
-
squares:
|
|
143997
|
-
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)
|
|
143998
143871
|
}));
|
|
143999
143872
|
function createCategorySquares(category) {
|
|
144000
143873
|
const squares = [];
|
|
@@ -144018,10 +143891,10 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
144018
143891
|
return squares;
|
|
144019
143892
|
}
|
|
144020
143893
|
const gridSquares = [];
|
|
144021
|
-
const reservedCategory = categorySquares.find((
|
|
144022
|
-
const nonReservedCategories = categorySquares.filter((
|
|
144023
|
-
for (const
|
|
144024
|
-
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);
|
|
144025
143898
|
for (const square of squares) {
|
|
144026
143899
|
if (gridSquares.length < TOTAL_SQUARES) {
|
|
144027
143900
|
gridSquares.push(square);
|
|
@@ -144029,7 +143902,7 @@ async function analyzeContextUsage(messages, model, getToolPermissionContext, to
|
|
|
144029
143902
|
}
|
|
144030
143903
|
}
|
|
144031
143904
|
const reservedSquareCount = reservedCategory ? reservedCategory.squares : 0;
|
|
144032
|
-
const freeSpaceCat = cats.find((
|
|
143905
|
+
const freeSpaceCat = cats.find((c) => c.name === "Free space");
|
|
144033
143906
|
const freeSpaceTarget = TOTAL_SQUARES - reservedSquareCount;
|
|
144034
143907
|
while (gridSquares.length < freeSpaceTarget) {
|
|
144035
143908
|
gridSquares.push({
|
|
@@ -144722,7 +144595,7 @@ function stripToolSearchFieldsFromMessages(messages) {
|
|
|
144722
144595
|
if (block.type === "tool_result") {
|
|
144723
144596
|
const toolResult = block;
|
|
144724
144597
|
if (Array.isArray(toolResult.content)) {
|
|
144725
|
-
const filteredContent = toolResult.content.filter((
|
|
144598
|
+
const filteredContent = toolResult.content.filter((c) => !isToolReferenceBlock(c));
|
|
144726
144599
|
if (filteredContent.length === 0) {
|
|
144727
144600
|
return {
|
|
144728
144601
|
...toolResult,
|
|
@@ -145909,23 +145782,23 @@ var require_parser2 = __commonJS((exports, module) => {
|
|
|
145909
145782
|
lastPos = i + 1;
|
|
145910
145783
|
}
|
|
145911
145784
|
for (;i < cssLength; i++) {
|
|
145912
|
-
var
|
|
145913
|
-
if (
|
|
145785
|
+
var c = css[i];
|
|
145786
|
+
if (c === "/" && css[i + 1] === "*") {
|
|
145914
145787
|
var j2 = css.indexOf("*/", i + 2);
|
|
145915
145788
|
if (j2 === -1)
|
|
145916
145789
|
break;
|
|
145917
145790
|
i = j2 + 1;
|
|
145918
145791
|
lastPos = i + 1;
|
|
145919
145792
|
isParenthesisOpen = false;
|
|
145920
|
-
} else if (
|
|
145793
|
+
} else if (c === "(") {
|
|
145921
145794
|
isParenthesisOpen = true;
|
|
145922
|
-
} else if (
|
|
145795
|
+
} else if (c === ")") {
|
|
145923
145796
|
isParenthesisOpen = false;
|
|
145924
|
-
} else if (
|
|
145797
|
+
} else if (c === ";") {
|
|
145925
145798
|
if (isParenthesisOpen) {} else {
|
|
145926
145799
|
addNewAttr();
|
|
145927
145800
|
}
|
|
145928
|
-
} else if (
|
|
145801
|
+
} else if (c === `
|
|
145929
145802
|
`) {
|
|
145930
145803
|
addNewAttr();
|
|
145931
145804
|
}
|
|
@@ -146316,11 +146189,11 @@ var require_default2 = __commonJS((exports) => {
|
|
|
146316
146189
|
function stripBlankChar(html) {
|
|
146317
146190
|
var chars = html.split("");
|
|
146318
146191
|
chars = chars.filter(function(char) {
|
|
146319
|
-
var
|
|
146320
|
-
if (
|
|
146192
|
+
var c = char.charCodeAt(0);
|
|
146193
|
+
if (c === 127)
|
|
146321
146194
|
return false;
|
|
146322
|
-
if (
|
|
146323
|
-
if (
|
|
146195
|
+
if (c <= 31) {
|
|
146196
|
+
if (c === 10 || c === 13)
|
|
146324
146197
|
return true;
|
|
146325
146198
|
return false;
|
|
146326
146199
|
}
|
|
@@ -146384,21 +146257,21 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146384
146257
|
var currentHtml = "";
|
|
146385
146258
|
chariterator:
|
|
146386
146259
|
for (currentPos = 0;currentPos < len; currentPos++) {
|
|
146387
|
-
var
|
|
146260
|
+
var c = html.charAt(currentPos);
|
|
146388
146261
|
if (tagStart === false) {
|
|
146389
|
-
if (
|
|
146262
|
+
if (c === "<") {
|
|
146390
146263
|
tagStart = currentPos;
|
|
146391
146264
|
continue;
|
|
146392
146265
|
}
|
|
146393
146266
|
} else {
|
|
146394
146267
|
if (quoteStart === false) {
|
|
146395
|
-
if (
|
|
146268
|
+
if (c === "<") {
|
|
146396
146269
|
rethtml += escapeHtml(html.slice(lastPos, currentPos));
|
|
146397
146270
|
tagStart = currentPos;
|
|
146398
146271
|
lastPos = currentPos;
|
|
146399
146272
|
continue;
|
|
146400
146273
|
}
|
|
146401
|
-
if (
|
|
146274
|
+
if (c === ">" || currentPos === len - 1) {
|
|
146402
146275
|
rethtml += escapeHtml(html.slice(lastPos, tagStart));
|
|
146403
146276
|
currentHtml = html.slice(tagStart, currentPos + 1);
|
|
146404
146277
|
currentTagName = getTagName(currentHtml);
|
|
@@ -146407,19 +146280,19 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146407
146280
|
tagStart = false;
|
|
146408
146281
|
continue;
|
|
146409
146282
|
}
|
|
146410
|
-
if (
|
|
146283
|
+
if (c === '"' || c === "'") {
|
|
146411
146284
|
var i = 1;
|
|
146412
146285
|
var ic = html.charAt(currentPos - i);
|
|
146413
146286
|
while (ic.trim() === "" || ic === "=") {
|
|
146414
146287
|
if (ic === "=") {
|
|
146415
|
-
quoteStart =
|
|
146288
|
+
quoteStart = c;
|
|
146416
146289
|
continue chariterator;
|
|
146417
146290
|
}
|
|
146418
146291
|
ic = html.charAt(currentPos - ++i);
|
|
146419
146292
|
}
|
|
146420
146293
|
}
|
|
146421
146294
|
} else {
|
|
146422
|
-
if (
|
|
146295
|
+
if (c === quoteStart) {
|
|
146423
146296
|
quoteStart = false;
|
|
146424
146297
|
continue;
|
|
146425
146298
|
}
|
|
@@ -146448,9 +146321,9 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146448
146321
|
retAttrs.push(ret);
|
|
146449
146322
|
}
|
|
146450
146323
|
for (var i = 0;i < len; i++) {
|
|
146451
|
-
var
|
|
146324
|
+
var c = html.charAt(i);
|
|
146452
146325
|
var v2, j2;
|
|
146453
|
-
if (tmpName === false &&
|
|
146326
|
+
if (tmpName === false && c === "=") {
|
|
146454
146327
|
tmpName = html.slice(lastPos, i);
|
|
146455
146328
|
lastPos = i + 1;
|
|
146456
146329
|
lastMarkPos = html.charAt(lastPos) === '"' || html.charAt(lastPos) === "'" ? lastPos : findNextQuotationMark(html, i + 1);
|
|
@@ -146458,7 +146331,7 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146458
146331
|
}
|
|
146459
146332
|
if (tmpName !== false) {
|
|
146460
146333
|
if (i === lastMarkPos) {
|
|
146461
|
-
j2 = html.indexOf(
|
|
146334
|
+
j2 = html.indexOf(c, i + 1);
|
|
146462
146335
|
if (j2 === -1) {
|
|
146463
146336
|
break;
|
|
146464
146337
|
} else {
|
|
@@ -146471,7 +146344,7 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146471
146344
|
}
|
|
146472
146345
|
}
|
|
146473
146346
|
}
|
|
146474
|
-
if (/\s|\n|\t/.test(
|
|
146347
|
+
if (/\s|\n|\t/.test(c)) {
|
|
146475
146348
|
html = html.replace(/\s|\n|\t/g, " ");
|
|
146476
146349
|
if (tmpName === false) {
|
|
146477
146350
|
j2 = findNextEqual(html, i);
|
|
@@ -146511,30 +146384,30 @@ var require_parser3 = __commonJS((exports) => {
|
|
|
146511
146384
|
}
|
|
146512
146385
|
function findNextEqual(str2, i) {
|
|
146513
146386
|
for (;i < str2.length; i++) {
|
|
146514
|
-
var
|
|
146515
|
-
if (
|
|
146387
|
+
var c = str2[i];
|
|
146388
|
+
if (c === " ")
|
|
146516
146389
|
continue;
|
|
146517
|
-
if (
|
|
146390
|
+
if (c === "=")
|
|
146518
146391
|
return i;
|
|
146519
146392
|
return -1;
|
|
146520
146393
|
}
|
|
146521
146394
|
}
|
|
146522
146395
|
function findNextQuotationMark(str2, i) {
|
|
146523
146396
|
for (;i < str2.length; i++) {
|
|
146524
|
-
var
|
|
146525
|
-
if (
|
|
146397
|
+
var c = str2[i];
|
|
146398
|
+
if (c === " ")
|
|
146526
146399
|
continue;
|
|
146527
|
-
if (
|
|
146400
|
+
if (c === "'" || c === '"')
|
|
146528
146401
|
return i;
|
|
146529
146402
|
return -1;
|
|
146530
146403
|
}
|
|
146531
146404
|
}
|
|
146532
146405
|
function findBeforeEqual(str2, i) {
|
|
146533
146406
|
for (;i > 0; i--) {
|
|
146534
|
-
var
|
|
146535
|
-
if (
|
|
146407
|
+
var c = str2[i];
|
|
146408
|
+
if (c === " ")
|
|
146536
146409
|
continue;
|
|
146537
|
-
if (
|
|
146410
|
+
if (c === "=")
|
|
146538
146411
|
return i;
|
|
146539
146412
|
return -1;
|
|
146540
146413
|
}
|
|
@@ -148607,22 +148480,22 @@ async function readClientSecret() {
|
|
|
148607
148480
|
process.stdin.setRawMode?.(true);
|
|
148608
148481
|
let secret = "";
|
|
148609
148482
|
const onData = (ch) => {
|
|
148610
|
-
const
|
|
148611
|
-
if (
|
|
148612
|
-
` ||
|
|
148483
|
+
const c = ch.toString();
|
|
148484
|
+
if (c === `
|
|
148485
|
+
` || c === "\r") {
|
|
148613
148486
|
process.stdin.setRawMode?.(false);
|
|
148614
148487
|
process.stdin.removeListener("data", onData);
|
|
148615
148488
|
process.stderr.write(`
|
|
148616
148489
|
`);
|
|
148617
148490
|
resolve23(secret);
|
|
148618
|
-
} else if (
|
|
148491
|
+
} else if (c === "\x03") {
|
|
148619
148492
|
process.stdin.setRawMode?.(false);
|
|
148620
148493
|
process.stdin.removeListener("data", onData);
|
|
148621
148494
|
reject2(new Error("Cancelled"));
|
|
148622
|
-
} else if (
|
|
148495
|
+
} else if (c === "\x7F" || c === "\b") {
|
|
148623
148496
|
secret = secret.slice(0, -1);
|
|
148624
148497
|
} else {
|
|
148625
|
-
secret +=
|
|
148498
|
+
secret += c;
|
|
148626
148499
|
}
|
|
148627
148500
|
};
|
|
148628
148501
|
process.stdin.on("data", onData);
|
|
@@ -148781,13 +148654,13 @@ function createMcpAuthTool(serverName, config2) {
|
|
|
148781
148654
|
...prev,
|
|
148782
148655
|
mcp: {
|
|
148783
148656
|
...prev.mcp,
|
|
148784
|
-
clients: prev.mcp.clients.map((
|
|
148657
|
+
clients: prev.mcp.clients.map((c) => c.name === serverName ? result.client : c),
|
|
148785
148658
|
tools: [
|
|
148786
148659
|
...reject_default(prev.mcp.tools, (t) => t.name?.startsWith(prefix)),
|
|
148787
148660
|
...result.tools
|
|
148788
148661
|
],
|
|
148789
148662
|
commands: [
|
|
148790
|
-
...reject_default(prev.mcp.commands, (
|
|
148663
|
+
...reject_default(prev.mcp.commands, (c) => c.name?.startsWith(prefix)),
|
|
148791
148664
|
...result.commands
|
|
148792
148665
|
],
|
|
148793
148666
|
resources: result.resources ? { ...prev.mcp.resources, [serverName]: result.resources } : prev.mcp.resources
|
|
@@ -148998,7 +148871,7 @@ class WebSocketTransport {
|
|
|
148998
148871
|
}
|
|
148999
148872
|
var WS_CONNECTING = 0, WS_OPEN = 1;
|
|
149000
148873
|
var init_mcpWebSocketTransport = __esm(() => {
|
|
149001
|
-
|
|
148874
|
+
init_types4();
|
|
149002
148875
|
init_diagLogs();
|
|
149003
148876
|
init_errors();
|
|
149004
148877
|
init_slowOperations();
|
|
@@ -149199,7 +149072,7 @@ async function runElicitationResultHooks(serverName, result, signal, mode, elici
|
|
|
149199
149072
|
}
|
|
149200
149073
|
}
|
|
149201
149074
|
var init_elicitationHandler = __esm(() => {
|
|
149202
|
-
|
|
149075
|
+
init_types4();
|
|
149203
149076
|
init_hooks3();
|
|
149204
149077
|
init_log();
|
|
149205
149078
|
init_slowOperations();
|
|
@@ -150170,7 +150043,7 @@ function wrapFetchWithTimeout(baseFetch) {
|
|
|
150170
150043
|
headers.set("accept", MCP_STREAMABLE_HTTP_ACCEPT);
|
|
150171
150044
|
}
|
|
150172
150045
|
const controller = new AbortController;
|
|
150173
|
-
const timer = setTimeout((
|
|
150046
|
+
const timer = setTimeout((c) => c.abort(new DOMException("The operation timed out.", "TimeoutError")), MCP_REQUEST_TIMEOUT_MS, controller);
|
|
150174
150047
|
timer.unref?.();
|
|
150175
150048
|
const parentSignal = init?.signal;
|
|
150176
150049
|
const abort = () => controller.abort(parentSignal?.reason);
|
|
@@ -150319,11 +150192,11 @@ async function getMcpToolsCommandsAndResources(onConnectionAttempt, mcpConfigs)
|
|
|
150319
150192
|
}
|
|
150320
150193
|
}
|
|
150321
150194
|
const totalServers = configEntries.length;
|
|
150322
|
-
const stdioCount = count(configEntries, ([_2,
|
|
150323
|
-
const sseCount = count(configEntries, ([_2,
|
|
150324
|
-
const httpCount = count(configEntries, ([_2,
|
|
150325
|
-
const sseIdeCount = count(configEntries, ([_2,
|
|
150326
|
-
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");
|
|
150327
150200
|
const localServers = configEntries.filter(([_2, config2]) => isLocalMcpServer(config2));
|
|
150328
150201
|
const remoteServers = configEntries.filter(([_2, config2]) => !isLocalMcpServer(config2));
|
|
150329
150202
|
const serverStats = {
|
|
@@ -150899,7 +150772,7 @@ async function setupSdkMcpClients(sdkMcpConfigs, sendMcpMessage) {
|
|
|
150899
150772
|
const client = new Client({
|
|
150900
150773
|
name: "claude-code",
|
|
150901
150774
|
title: "Claude Code",
|
|
150902
|
-
version: "1.0.3-fork.
|
|
150775
|
+
version: "1.0.3-fork.e907883",
|
|
150903
150776
|
description: "Anthropic's agentic coding tool",
|
|
150904
150777
|
websiteUrl: PRODUCT_URL
|
|
150905
150778
|
}, {
|
|
@@ -150954,7 +150827,7 @@ var init_client5 = __esm(() => {
|
|
|
150954
150827
|
init_stdio2();
|
|
150955
150828
|
init_streamableHttp();
|
|
150956
150829
|
init_transport();
|
|
150957
|
-
|
|
150830
|
+
init_types4();
|
|
150958
150831
|
init_mapValues();
|
|
150959
150832
|
init_memoize();
|
|
150960
150833
|
init_zipObject();
|
|
@@ -151218,7 +151091,7 @@ var init_client5 = __esm(() => {
|
|
|
151218
151091
|
transport = new StreamableHTTPClientTransport(new URL(proxyUrl), transportOptions);
|
|
151219
151092
|
logMCPDebug(name, `claude.ai proxy transport created successfully`);
|
|
151220
151093
|
} else if ((serverRef.type === "stdio" || !serverRef.type) && isClaudeInChromeMCPServer(name)) {
|
|
151221
|
-
const { createChromeContext } = await import("./chunk-
|
|
151094
|
+
const { createChromeContext } = await import("./chunk-vfz8zvd0.js");
|
|
151222
151095
|
const { createClaudeForChromeMcpServer } = await import("./chunk-bm1qb16p.js");
|
|
151223
151096
|
const { createLinkedTransportPair } = await import("./chunk-1h2famwb.js");
|
|
151224
151097
|
const context = createChromeContext(serverRef.env);
|
|
@@ -151261,7 +151134,7 @@ var init_client5 = __esm(() => {
|
|
|
151261
151134
|
const client = new Client({
|
|
151262
151135
|
name: "claude-code",
|
|
151263
151136
|
title: "Claude Code",
|
|
151264
|
-
version: "1.0.3-fork.
|
|
151137
|
+
version: "1.0.3-fork.e907883",
|
|
151265
151138
|
description: "Anthropic's agentic coding tool",
|
|
151266
151139
|
websiteUrl: PRODUCT_URL
|
|
151267
151140
|
}, {
|
|
@@ -157836,10 +157709,10 @@ function stripUnavailableToolReferencesFromUserMessage(message, availableToolNam
|
|
|
157836
157709
|
if (!Array.isArray(content)) {
|
|
157837
157710
|
return message;
|
|
157838
157711
|
}
|
|
157839
|
-
const hasUnavailableReference = content.some((block) => block.type === "tool_result" && Array.isArray(block.content) && block.content.some((
|
|
157840
|
-
if (!isToolReferenceBlock(
|
|
157712
|
+
const hasUnavailableReference = content.some((block) => block.type === "tool_result" && Array.isArray(block.content) && block.content.some((c) => {
|
|
157713
|
+
if (!isToolReferenceBlock(c))
|
|
157841
157714
|
return false;
|
|
157842
|
-
const toolName =
|
|
157715
|
+
const toolName = c.tool_name;
|
|
157843
157716
|
return toolName && !availableToolNames.has(normalizeLegacyToolName(toolName));
|
|
157844
157717
|
}));
|
|
157845
157718
|
if (!hasUnavailableReference) {
|
|
@@ -157853,10 +157726,10 @@ function stripUnavailableToolReferencesFromUserMessage(message, availableToolNam
|
|
|
157853
157726
|
if (block.type !== "tool_result" || !Array.isArray(block.content)) {
|
|
157854
157727
|
return block;
|
|
157855
157728
|
}
|
|
157856
|
-
const filteredContent = block.content.filter((
|
|
157857
|
-
if (!isToolReferenceBlock(
|
|
157729
|
+
const filteredContent = block.content.filter((c) => {
|
|
157730
|
+
if (!isToolReferenceBlock(c))
|
|
157858
157731
|
return true;
|
|
157859
|
-
const rawToolName =
|
|
157732
|
+
const rawToolName = c.tool_name;
|
|
157860
157733
|
if (!rawToolName)
|
|
157861
157734
|
return true;
|
|
157862
157735
|
const toolName = normalizeLegacyToolName(rawToolName);
|
|
@@ -157902,7 +157775,7 @@ function stripToolReferenceBlocksFromUserMessage(message) {
|
|
|
157902
157775
|
if (block.type !== "tool_result" || !Array.isArray(block.content)) {
|
|
157903
157776
|
return block;
|
|
157904
157777
|
}
|
|
157905
|
-
const filteredContent = block.content.filter((
|
|
157778
|
+
const filteredContent = block.content.filter((c) => !isToolReferenceBlock(c));
|
|
157906
157779
|
if (filteredContent.length === 0) {
|
|
157907
157780
|
return {
|
|
157908
157781
|
...block,
|
|
@@ -158021,10 +157894,10 @@ function sanitizeErrorToolResultContent(messages) {
|
|
|
158021
157894
|
const trContent = b2.content;
|
|
158022
157895
|
if (!Array.isArray(trContent))
|
|
158023
157896
|
return b2;
|
|
158024
|
-
if (trContent.every((
|
|
157897
|
+
if (trContent.every((c) => c.type === "text"))
|
|
158025
157898
|
return b2;
|
|
158026
157899
|
changed = true;
|
|
158027
|
-
const texts = trContent.filter((
|
|
157900
|
+
const texts = trContent.filter((c) => c.type === "text").map((c) => c.text);
|
|
158028
157901
|
const textOnly = texts.length > 0 ? [{ type: "text", text: texts.join(`
|
|
158029
157902
|
|
|
158030
157903
|
`) }] : [];
|
|
@@ -158254,7 +158127,7 @@ function normalizeMessagesForAPI(messages, tools = []) {
|
|
|
158254
158127
|
const attachmentMessage = checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_chair_sermon") ? rawAttachmentMessage.map(ensureSystemReminderWrap) : rawAttachmentMessage;
|
|
158255
158128
|
const lastMessage = last_default(result);
|
|
158256
158129
|
if (lastMessage?.type === "user") {
|
|
158257
|
-
result[result.length - 1] = attachmentMessage.reduce((p,
|
|
158130
|
+
result[result.length - 1] = attachmentMessage.reduce((p, c) => mergeUserMessagesAndToolResults(p, c), lastMessage);
|
|
158258
158131
|
return;
|
|
158259
158132
|
}
|
|
158260
158133
|
result.push(...attachmentMessage);
|
|
@@ -160142,9 +160015,9 @@ function ensureToolResultPairing(messages) {
|
|
|
160142
160015
|
continue;
|
|
160143
160016
|
}
|
|
160144
160017
|
const serverResultIds = new Set;
|
|
160145
|
-
for (const
|
|
160146
|
-
if (typeof
|
|
160147
|
-
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);
|
|
160148
160021
|
}
|
|
160149
160022
|
}
|
|
160150
160023
|
const seenToolUseIds = new Set;
|
|
@@ -160877,7 +160750,7 @@ var init_withRetry = __esm(() => {
|
|
|
160877
160750
|
|
|
160878
160751
|
// src/services/policyLimits/types.ts
|
|
160879
160752
|
var PolicyLimitsResponseSchema;
|
|
160880
|
-
var
|
|
160753
|
+
var init_types11 = __esm(() => {
|
|
160881
160754
|
init_v4();
|
|
160882
160755
|
init_lazySchema();
|
|
160883
160756
|
PolicyLimitsResponseSchema = lazySchema(() => exports_external.object({
|
|
@@ -161272,7 +161145,7 @@ var init_policyLimits = __esm(() => {
|
|
|
161272
161145
|
init_slowOperations();
|
|
161273
161146
|
init_userAgent();
|
|
161274
161147
|
init_withRetry();
|
|
161275
|
-
|
|
161148
|
+
init_types11();
|
|
161276
161149
|
POLLING_INTERVAL_MS2 = 60 * 60 * 1000;
|
|
161277
161150
|
ESSENTIAL_TRAFFIC_DENY_ON_MISS = new Set(["allow_product_feedback"]);
|
|
161278
161151
|
});
|
|
@@ -161290,7 +161163,7 @@ var init_feedback = __esm(() => {
|
|
|
161290
161163
|
description: `Submit feedback about Claude Code`,
|
|
161291
161164
|
argumentHint: "[report]",
|
|
161292
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")),
|
|
161293
|
-
load: () => import("./chunk-
|
|
161166
|
+
load: () => import("./chunk-b9gsdb4y.js")
|
|
161294
161167
|
};
|
|
161295
161168
|
feedback_default = feedback;
|
|
161296
161169
|
});
|
|
@@ -161304,7 +161177,7 @@ var init_clear = __esm(() => {
|
|
|
161304
161177
|
description: "Clear conversation history and free up context",
|
|
161305
161178
|
aliases: ["reset", "new"],
|
|
161306
161179
|
supportsNonInteractive: false,
|
|
161307
|
-
load: () => import("./chunk-
|
|
161180
|
+
load: () => import("./chunk-s9pz9w8z.js")
|
|
161308
161181
|
};
|
|
161309
161182
|
clear_default = clear;
|
|
161310
161183
|
});
|
|
@@ -161318,7 +161191,7 @@ var init_color2 = __esm(() => {
|
|
|
161318
161191
|
description: "Set the prompt bar color for this session",
|
|
161319
161192
|
immediate: true,
|
|
161320
161193
|
argumentHint: "<color|default>",
|
|
161321
|
-
load: () => import("./chunk-
|
|
161194
|
+
load: () => import("./chunk-9vte2cw2.js")
|
|
161322
161195
|
};
|
|
161323
161196
|
color_default = color2;
|
|
161324
161197
|
});
|
|
@@ -161418,7 +161291,7 @@ var init_copy = __esm(() => {
|
|
|
161418
161291
|
type: "local-jsx",
|
|
161419
161292
|
name: "copy",
|
|
161420
161293
|
description: "Copy Claude's last response to clipboard (or /copy N for the Nth-latest)",
|
|
161421
|
-
load: () => import("./chunk-
|
|
161294
|
+
load: () => import("./chunk-8fm85wdy.js")
|
|
161422
161295
|
};
|
|
161423
161296
|
copy_default = copy;
|
|
161424
161297
|
});
|
|
@@ -161445,7 +161318,7 @@ var init_desktop = __esm(() => {
|
|
|
161445
161318
|
get isHidden() {
|
|
161446
161319
|
return !isSupportedPlatform2();
|
|
161447
161320
|
},
|
|
161448
|
-
load: () => import("./chunk-
|
|
161321
|
+
load: () => import("./chunk-w2kgev13.js")
|
|
161449
161322
|
};
|
|
161450
161323
|
desktop_default = desktop;
|
|
161451
161324
|
});
|
|
@@ -161608,7 +161481,7 @@ var init_compact2 = __esm(() => {
|
|
|
161608
161481
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_COMPACT),
|
|
161609
161482
|
supportsNonInteractive: true,
|
|
161610
161483
|
argumentHint: "<optional custom summarization instructions>",
|
|
161611
|
-
load: () => import("./chunk-
|
|
161484
|
+
load: () => import("./chunk-26jzxc16.js")
|
|
161612
161485
|
};
|
|
161613
161486
|
compact_default = compact;
|
|
161614
161487
|
});
|
|
@@ -161621,7 +161494,7 @@ var init_config7 = __esm(() => {
|
|
|
161621
161494
|
type: "local-jsx",
|
|
161622
161495
|
name: "config",
|
|
161623
161496
|
description: "Open config panel",
|
|
161624
|
-
load: () => import("./chunk-
|
|
161497
|
+
load: () => import("./chunk-3qan8w8e.js")
|
|
161625
161498
|
};
|
|
161626
161499
|
config_default = config2;
|
|
161627
161500
|
});
|
|
@@ -161635,7 +161508,7 @@ var init_context3 = __esm(() => {
|
|
|
161635
161508
|
description: "Visualize current context usage as a colored grid",
|
|
161636
161509
|
isEnabled: () => !getIsNonInteractiveSession(),
|
|
161637
161510
|
type: "local-jsx",
|
|
161638
|
-
load: () => import("./chunk-
|
|
161511
|
+
load: () => import("./chunk-c56k9xjt.js")
|
|
161639
161512
|
};
|
|
161640
161513
|
contextNonInteractive = {
|
|
161641
161514
|
type: "local",
|
|
@@ -161648,7 +161521,7 @@ var init_context3 = __esm(() => {
|
|
|
161648
161521
|
isEnabled() {
|
|
161649
161522
|
return getIsNonInteractiveSession();
|
|
161650
161523
|
},
|
|
161651
|
-
load: () => import("./chunk-
|
|
161524
|
+
load: () => import("./chunk-w7qmyya1.js")
|
|
161652
161525
|
};
|
|
161653
161526
|
});
|
|
161654
161527
|
|
|
@@ -161667,7 +161540,7 @@ var init_cost = __esm(() => {
|
|
|
161667
161540
|
return isClaudeAISubscriber();
|
|
161668
161541
|
},
|
|
161669
161542
|
supportsNonInteractive: true,
|
|
161670
|
-
load: () => import("./chunk-
|
|
161543
|
+
load: () => import("./chunk-731chhqb.js")
|
|
161671
161544
|
};
|
|
161672
161545
|
cost_default = cost;
|
|
161673
161546
|
});
|
|
@@ -161679,7 +161552,7 @@ var init_diff2 = __esm(() => {
|
|
|
161679
161552
|
type: "local-jsx",
|
|
161680
161553
|
name: "diff",
|
|
161681
161554
|
description: "View uncommitted changes and per-turn diffs",
|
|
161682
|
-
load: () => import("./chunk-
|
|
161555
|
+
load: () => import("./chunk-xmv1mbda.js")
|
|
161683
161556
|
};
|
|
161684
161557
|
});
|
|
161685
161558
|
|
|
@@ -161698,7 +161571,7 @@ var init_doctor = __esm(() => {
|
|
|
161698
161571
|
description: "Diagnose and verify your Claude Code installation and settings",
|
|
161699
161572
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_DOCTOR_COMMAND),
|
|
161700
161573
|
type: "local-jsx",
|
|
161701
|
-
load: () => import("./chunk-
|
|
161574
|
+
load: () => import("./chunk-1gjhtpj5.js")
|
|
161702
161575
|
};
|
|
161703
161576
|
doctor_default = doctor;
|
|
161704
161577
|
});
|
|
@@ -161710,7 +161583,7 @@ var init_memory = __esm(() => {
|
|
|
161710
161583
|
type: "local-jsx",
|
|
161711
161584
|
name: "memory",
|
|
161712
161585
|
description: "Edit Claude memory files",
|
|
161713
|
-
load: () => import("./chunk-
|
|
161586
|
+
load: () => import("./chunk-hc1wtm8h.js")
|
|
161714
161587
|
};
|
|
161715
161588
|
memory_default = memory;
|
|
161716
161589
|
});
|
|
@@ -161722,7 +161595,7 @@ var init_help = __esm(() => {
|
|
|
161722
161595
|
type: "local-jsx",
|
|
161723
161596
|
name: "help",
|
|
161724
161597
|
description: "Show help and available commands",
|
|
161725
|
-
load: () => import("./chunk-
|
|
161598
|
+
load: () => import("./chunk-sdyzhdc1.js")
|
|
161726
161599
|
};
|
|
161727
161600
|
help_default = help;
|
|
161728
161601
|
});
|
|
@@ -161735,7 +161608,7 @@ var init_ide2 = __esm(() => {
|
|
|
161735
161608
|
name: "ide",
|
|
161736
161609
|
description: "Manage IDE integrations and show status",
|
|
161737
161610
|
argumentHint: "[open]",
|
|
161738
|
-
load: () => import("./chunk-
|
|
161611
|
+
load: () => import("./chunk-6qqn7nm7.js")
|
|
161739
161612
|
};
|
|
161740
161613
|
ide_default = ide;
|
|
161741
161614
|
});
|
|
@@ -162060,7 +161933,7 @@ var init_keybindings = __esm(() => {
|
|
|
162060
161933
|
isEnabled: () => isKeybindingCustomizationEnabled(),
|
|
162061
161934
|
supportsNonInteractive: false,
|
|
162062
161935
|
type: "local",
|
|
162063
|
-
load: () => import("./chunk-
|
|
161936
|
+
load: () => import("./chunk-nq8m9cpa.js")
|
|
162064
161937
|
};
|
|
162065
161938
|
keybindings_default = keybindings;
|
|
162066
161939
|
});
|
|
@@ -162071,7 +161944,7 @@ var login_default = () => ({
|
|
|
162071
161944
|
name: "login",
|
|
162072
161945
|
description: hasAnthropicApiKeyAuth() ? "Switch Anthropic accounts" : "Sign in with your Anthropic account",
|
|
162073
161946
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGIN_COMMAND),
|
|
162074
|
-
load: () => import("./chunk-
|
|
161947
|
+
load: () => import("./chunk-yb4vwgj7.js")
|
|
162075
161948
|
});
|
|
162076
161949
|
var init_login = __esm(() => {
|
|
162077
161950
|
init_auth();
|
|
@@ -162087,7 +161960,7 @@ var init_logout2 = __esm(() => {
|
|
|
162087
161960
|
name: "logout",
|
|
162088
161961
|
description: "Sign out from your Anthropic account",
|
|
162089
161962
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_LOGOUT_COMMAND),
|
|
162090
|
-
load: () => import("./chunk-
|
|
161963
|
+
load: () => import("./chunk-pk76xtrm.js")
|
|
162091
161964
|
};
|
|
162092
161965
|
});
|
|
162093
161966
|
|
|
@@ -162101,7 +161974,7 @@ var init_install_github_app = __esm(() => {
|
|
|
162101
161974
|
description: "Set up Claude GitHub Actions for a repository",
|
|
162102
161975
|
availability: ["claude-ai", "console"],
|
|
162103
161976
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_INSTALL_GITHUB_APP_COMMAND),
|
|
162104
|
-
load: () => import("./chunk-
|
|
161977
|
+
load: () => import("./chunk-2438dcc3.js")
|
|
162105
161978
|
};
|
|
162106
161979
|
install_github_app_default = installGitHubApp;
|
|
162107
161980
|
});
|
|
@@ -162115,7 +161988,7 @@ var init_install_slack_app = __esm(() => {
|
|
|
162115
161988
|
description: "Install the Claude Slack app",
|
|
162116
161989
|
availability: ["claude-ai"],
|
|
162117
161990
|
supportsNonInteractive: false,
|
|
162118
|
-
load: () => import("./chunk-
|
|
161991
|
+
load: () => import("./chunk-2apnw8cf.js")
|
|
162119
161992
|
};
|
|
162120
161993
|
install_slack_app_default = installSlackApp;
|
|
162121
161994
|
});
|
|
@@ -162135,7 +162008,7 @@ var init_mcp = __esm(() => {
|
|
|
162135
162008
|
description: "Manage MCP servers",
|
|
162136
162009
|
immediate: true,
|
|
162137
162010
|
argumentHint: "[enable|disable [server-name]]",
|
|
162138
|
-
load: () => import("./chunk-
|
|
162011
|
+
load: () => import("./chunk-y23m4n37.js")
|
|
162139
162012
|
};
|
|
162140
162013
|
mcp_default = mcp;
|
|
162141
162014
|
});
|
|
@@ -162148,7 +162021,7 @@ var init_mobile = __esm(() => {
|
|
|
162148
162021
|
name: "mobile",
|
|
162149
162022
|
aliases: ["ios", "android"],
|
|
162150
162023
|
description: "Show QR code to download the Claude mobile app",
|
|
162151
|
-
load: () => import("./chunk-
|
|
162024
|
+
load: () => import("./chunk-y7zkx124.js")
|
|
162152
162025
|
};
|
|
162153
162026
|
mobile_default = mobile;
|
|
162154
162027
|
});
|
|
@@ -162264,7 +162137,7 @@ var init_release_notes = __esm(() => {
|
|
|
162264
162137
|
name: "release-notes",
|
|
162265
162138
|
type: "local",
|
|
162266
162139
|
supportsNonInteractive: true,
|
|
162267
|
-
load: () => import("./chunk-
|
|
162140
|
+
load: () => import("./chunk-6b046n5x.js")
|
|
162268
162141
|
};
|
|
162269
162142
|
release_notes_default = releaseNotes;
|
|
162270
162143
|
});
|
|
@@ -162278,7 +162151,7 @@ var init_rename = __esm(() => {
|
|
|
162278
162151
|
description: "Rename the current conversation",
|
|
162279
162152
|
immediate: true,
|
|
162280
162153
|
argumentHint: "[name]",
|
|
162281
|
-
load: () => import("./chunk-
|
|
162154
|
+
load: () => import("./chunk-2821abx0.js")
|
|
162282
162155
|
};
|
|
162283
162156
|
rename_default = rename7;
|
|
162284
162157
|
});
|
|
@@ -162292,7 +162165,7 @@ var init_resume = __esm(() => {
|
|
|
162292
162165
|
description: "Resume a previous conversation",
|
|
162293
162166
|
aliases: ["continue"],
|
|
162294
162167
|
argumentHint: "[conversation id or search term]",
|
|
162295
|
-
load: () => import("./chunk-
|
|
162168
|
+
load: () => import("./chunk-n2ag0df4.js")
|
|
162296
162169
|
};
|
|
162297
162170
|
resume_default = resume;
|
|
162298
162171
|
});
|
|
@@ -162348,7 +162221,7 @@ var init_review = __esm(() => {
|
|
|
162348
162221
|
name: "ultrareview",
|
|
162349
162222
|
description: `~10\u201320 min \xB7 Finds and verifies bugs in your branch. Runs in Claude Code on the web. See ${CCR_TERMS_URL}`,
|
|
162350
162223
|
isEnabled: () => isUltrareviewEnabled(),
|
|
162351
|
-
load: () => import("./chunk-
|
|
162224
|
+
load: () => import("./chunk-w3wnk6jn.js")
|
|
162352
162225
|
};
|
|
162353
162226
|
review_default = review;
|
|
162354
162227
|
});
|
|
@@ -162366,7 +162239,7 @@ var init_session = __esm(() => {
|
|
|
162366
162239
|
get isHidden() {
|
|
162367
162240
|
return !getIsRemoteMode();
|
|
162368
162241
|
},
|
|
162369
|
-
load: () => import("./chunk-
|
|
162242
|
+
load: () => import("./chunk-y9aatm1y.js")
|
|
162370
162243
|
};
|
|
162371
162244
|
session_default = session;
|
|
162372
162245
|
});
|
|
@@ -162384,7 +162257,7 @@ var init_skills = __esm(() => {
|
|
|
162384
162257
|
type: "local-jsx",
|
|
162385
162258
|
name: "skills",
|
|
162386
162259
|
description: "List available skills",
|
|
162387
|
-
load: () => import("./chunk-
|
|
162260
|
+
load: () => import("./chunk-sw272bd9.js")
|
|
162388
162261
|
};
|
|
162389
162262
|
skills_default = skills;
|
|
162390
162263
|
});
|
|
@@ -162397,7 +162270,7 @@ var init_status2 = __esm(() => {
|
|
|
162397
162270
|
name: "status",
|
|
162398
162271
|
description: "Show Claude Code status including version, model, account, API connectivity, and tool statuses",
|
|
162399
162272
|
immediate: true,
|
|
162400
|
-
load: () => import("./chunk-
|
|
162273
|
+
load: () => import("./chunk-nt336bn5.js")
|
|
162401
162274
|
};
|
|
162402
162275
|
status_default = status;
|
|
162403
162276
|
});
|
|
@@ -162410,7 +162283,7 @@ var init_tasks3 = __esm(() => {
|
|
|
162410
162283
|
name: "tasks",
|
|
162411
162284
|
aliases: ["bashes"],
|
|
162412
162285
|
description: "List and manage background tasks",
|
|
162413
|
-
load: () => import("./chunk-
|
|
162286
|
+
load: () => import("./chunk-pbgtahw1.js")
|
|
162414
162287
|
};
|
|
162415
162288
|
tasks_default = tasks;
|
|
162416
162289
|
});
|
|
@@ -162674,7 +162547,7 @@ var init_terminalSetup2 = __esm(() => {
|
|
|
162674
162547
|
name: "terminal-setup",
|
|
162675
162548
|
description: env.terminal === "Apple_Terminal" ? "Enable Option+Enter key binding for newlines and visual bell" : "Install Shift+Enter key binding for newlines",
|
|
162676
162549
|
isHidden: env.terminal !== null && env.terminal in NATIVE_CSIU_TERMINALS,
|
|
162677
|
-
load: () => import("./chunk-
|
|
162550
|
+
load: () => import("./chunk-bc7754kx.js")
|
|
162678
162551
|
};
|
|
162679
162552
|
terminalSetup_default = terminalSetup;
|
|
162680
162553
|
});
|
|
@@ -162687,7 +162560,7 @@ var init_usage = __esm(() => {
|
|
|
162687
162560
|
name: "usage",
|
|
162688
162561
|
description: "Show plan usage limits",
|
|
162689
162562
|
availability: ["claude-ai"],
|
|
162690
|
-
load: () => import("./chunk-
|
|
162563
|
+
load: () => import("./chunk-zw1rsq5n.js")
|
|
162691
162564
|
};
|
|
162692
162565
|
});
|
|
162693
162566
|
|
|
@@ -162698,7 +162571,7 @@ var init_theme2 = __esm(() => {
|
|
|
162698
162571
|
type: "local-jsx",
|
|
162699
162572
|
name: "theme",
|
|
162700
162573
|
description: "Change the theme",
|
|
162701
|
-
load: () => import("./chunk-
|
|
162574
|
+
load: () => import("./chunk-jz10r9rv.js")
|
|
162702
162575
|
};
|
|
162703
162576
|
theme_default = theme;
|
|
162704
162577
|
});
|
|
@@ -162711,7 +162584,7 @@ var init_vim = __esm(() => {
|
|
|
162711
162584
|
description: "Toggle between Vim and Normal editing modes",
|
|
162712
162585
|
supportsNonInteractive: false,
|
|
162713
162586
|
type: "local",
|
|
162714
|
-
load: () => import("./chunk-
|
|
162587
|
+
load: () => import("./chunk-qjk1jnzh.js")
|
|
162715
162588
|
};
|
|
162716
162589
|
vim_default = command5;
|
|
162717
162590
|
});
|
|
@@ -162725,7 +162598,7 @@ var init_thinkback = __esm(() => {
|
|
|
162725
162598
|
name: "think-back",
|
|
162726
162599
|
description: "Your 2025 Claude Code Year in Review",
|
|
162727
162600
|
isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
|
|
162728
|
-
load: () => import("./chunk-
|
|
162601
|
+
load: () => import("./chunk-cfq4ya37.js")
|
|
162729
162602
|
};
|
|
162730
162603
|
thinkback_default = thinkback;
|
|
162731
162604
|
});
|
|
@@ -162741,7 +162614,7 @@ var init_thinkback_play = __esm(() => {
|
|
|
162741
162614
|
isEnabled: () => checkStatsigFeatureGate_CACHED_MAY_BE_STALE("tengu_thinkback"),
|
|
162742
162615
|
isHidden: true,
|
|
162743
162616
|
supportsNonInteractive: false,
|
|
162744
|
-
load: () => import("./chunk-
|
|
162617
|
+
load: () => import("./chunk-rcmqhhx2.js")
|
|
162745
162618
|
};
|
|
162746
162619
|
thinkback_play_default = thinkbackPlay;
|
|
162747
162620
|
});
|
|
@@ -162754,7 +162627,7 @@ var init_permissions3 = __esm(() => {
|
|
|
162754
162627
|
name: "permissions",
|
|
162755
162628
|
aliases: ["allowed-tools"],
|
|
162756
162629
|
description: "Manage allow & deny tool permission rules",
|
|
162757
|
-
load: () => import("./chunk-
|
|
162630
|
+
load: () => import("./chunk-pwfc5vts.js")
|
|
162758
162631
|
};
|
|
162759
162632
|
permissions_default = permissions;
|
|
162760
162633
|
});
|
|
@@ -162767,7 +162640,7 @@ var init_plan = __esm(() => {
|
|
|
162767
162640
|
name: "plan",
|
|
162768
162641
|
description: "Enable plan mode or view the current session plan",
|
|
162769
162642
|
argumentHint: "[open|<description>]",
|
|
162770
|
-
load: () => import("./chunk-
|
|
162643
|
+
load: () => import("./chunk-jjxy0jze.js")
|
|
162771
162644
|
};
|
|
162772
162645
|
plan_default = plan;
|
|
162773
162646
|
});
|
|
@@ -162800,7 +162673,7 @@ var init_fast = __esm(() => {
|
|
|
162800
162673
|
get immediate() {
|
|
162801
162674
|
return shouldInferenceConfigCommandBeImmediate();
|
|
162802
162675
|
},
|
|
162803
|
-
load: () => import("./chunk-
|
|
162676
|
+
load: () => import("./chunk-m6jw7q5d.js")
|
|
162804
162677
|
};
|
|
162805
162678
|
fast_default = fast;
|
|
162806
162679
|
});
|
|
@@ -162823,10 +162696,22 @@ var init_passes = __esm(() => {
|
|
|
162823
162696
|
const { eligible, hasCache } = checkCachedPassesEligibility();
|
|
162824
162697
|
return !eligible || !hasCache;
|
|
162825
162698
|
},
|
|
162826
|
-
load: () => import("./chunk-
|
|
162699
|
+
load: () => import("./chunk-r8amcnbm.js")
|
|
162827
162700
|
};
|
|
162828
162701
|
});
|
|
162829
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")
|
|
162711
|
+
};
|
|
162712
|
+
permission_default = permission;
|
|
162713
|
+
});
|
|
162714
|
+
|
|
162830
162715
|
// src/commands/privacy-settings/index.ts
|
|
162831
162716
|
var privacySettings, privacy_settings_default;
|
|
162832
162717
|
var init_privacy_settings = __esm(() => {
|
|
@@ -162838,7 +162723,7 @@ var init_privacy_settings = __esm(() => {
|
|
|
162838
162723
|
isEnabled: () => {
|
|
162839
162724
|
return isConsumerSubscriber();
|
|
162840
162725
|
},
|
|
162841
|
-
load: () => import("./chunk-
|
|
162726
|
+
load: () => import("./chunk-4r4n63xq.js")
|
|
162842
162727
|
};
|
|
162843
162728
|
privacy_settings_default = privacySettings;
|
|
162844
162729
|
});
|
|
@@ -162851,7 +162736,7 @@ var init_hooks = __esm(() => {
|
|
|
162851
162736
|
name: "hooks",
|
|
162852
162737
|
description: "View hook configurations for tool events",
|
|
162853
162738
|
immediate: true,
|
|
162854
|
-
load: () => import("./chunk-
|
|
162739
|
+
load: () => import("./chunk-wqrtcbsj.js")
|
|
162855
162740
|
};
|
|
162856
162741
|
hooks_default = hooks;
|
|
162857
162742
|
});
|
|
@@ -162879,7 +162764,7 @@ var init_branch = __esm(() => {
|
|
|
162879
162764
|
aliases: ["fork"],
|
|
162880
162765
|
description: "Create a branch of the current conversation at this point",
|
|
162881
162766
|
argumentHint: "[name]",
|
|
162882
|
-
load: () => import("./chunk-
|
|
162767
|
+
load: () => import("./chunk-feeh737b.js")
|
|
162883
162768
|
};
|
|
162884
162769
|
branch_default = branch;
|
|
162885
162770
|
});
|
|
@@ -162891,7 +162776,7 @@ var init_agents = __esm(() => {
|
|
|
162891
162776
|
type: "local-jsx",
|
|
162892
162777
|
name: "agents",
|
|
162893
162778
|
description: "Manage agent configurations",
|
|
162894
|
-
load: () => import("./chunk-
|
|
162779
|
+
load: () => import("./chunk-ps9yvxr8.js")
|
|
162895
162780
|
};
|
|
162896
162781
|
agents_default = agents;
|
|
162897
162782
|
});
|
|
@@ -162905,7 +162790,7 @@ var init_plugin2 = __esm(() => {
|
|
|
162905
162790
|
aliases: ["plugins", "marketplace"],
|
|
162906
162791
|
description: "Manage Claude Code plugins",
|
|
162907
162792
|
immediate: true,
|
|
162908
|
-
load: () => import("./chunk-
|
|
162793
|
+
load: () => import("./chunk-nkhv534m.js")
|
|
162909
162794
|
};
|
|
162910
162795
|
plugin_default = plugin;
|
|
162911
162796
|
});
|
|
@@ -162918,7 +162803,7 @@ var init_reload_plugins = __esm(() => {
|
|
|
162918
162803
|
name: "reload-plugins",
|
|
162919
162804
|
description: "Activate pending plugin changes in the current session",
|
|
162920
162805
|
supportsNonInteractive: false,
|
|
162921
|
-
load: () => import("./chunk-
|
|
162806
|
+
load: () => import("./chunk-6dd4e918.js")
|
|
162922
162807
|
};
|
|
162923
162808
|
reload_plugins_default = reloadPlugins;
|
|
162924
162809
|
});
|
|
@@ -162947,7 +162832,7 @@ var init_heapdump = __esm(() => {
|
|
|
162947
162832
|
description: "Dump the JS heap to ~/Desktop",
|
|
162948
162833
|
isHidden: true,
|
|
162949
162834
|
supportsNonInteractive: true,
|
|
162950
|
-
load: () => import("./chunk-
|
|
162835
|
+
load: () => import("./chunk-54cefep6.js")
|
|
162951
162836
|
};
|
|
162952
162837
|
heapdump_default = heapDump;
|
|
162953
162838
|
});
|
|
@@ -162960,7 +162845,7 @@ var init_mock_limits = __esm(() => {
|
|
|
162960
162845
|
|
|
162961
162846
|
// src/bridge/types.ts
|
|
162962
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.";
|
|
162963
|
-
var
|
|
162848
|
+
var init_types12 = __esm(() => {
|
|
162964
162849
|
DEFAULT_SESSION_TIMEOUT_MS = 24 * 60 * 60 * 1000;
|
|
162965
162850
|
BRIDGE_LOGIN_ERROR = `Error: You must be logged in to use Remote Control.
|
|
162966
162851
|
|
|
@@ -163208,7 +163093,7 @@ var BETA_HEADER = "environments-2025-11-01", SAFE_ID_PATTERN, BridgeFatalError;
|
|
|
163208
163093
|
var init_bridgeApi = __esm(() => {
|
|
163209
163094
|
init_axios();
|
|
163210
163095
|
init_debugUtils();
|
|
163211
|
-
|
|
163096
|
+
init_types12();
|
|
163212
163097
|
SAFE_ID_PATTERN = /^[a-zA-Z0-9_-]+$/;
|
|
163213
163098
|
BridgeFatalError = class BridgeFatalError extends Error {
|
|
163214
163099
|
status;
|
|
@@ -163442,7 +163327,7 @@ var init_bridge_kick = __esm(() => {
|
|
|
163442
163327
|
var call3 = async () => {
|
|
163443
163328
|
return {
|
|
163444
163329
|
type: "text",
|
|
163445
|
-
value: `${"1.0.3-fork.
|
|
163330
|
+
value: `${"1.0.3-fork.e907883"} (built ${"2026-04-02T15:32:51.750Z"})`
|
|
163446
163331
|
};
|
|
163447
163332
|
}, version, version_default;
|
|
163448
163333
|
var init_version = __esm(() => {
|
|
@@ -163518,7 +163403,7 @@ var init_sandbox_toggle = __esm(() => {
|
|
|
163518
163403
|
},
|
|
163519
163404
|
immediate: true,
|
|
163520
163405
|
type: "local-jsx",
|
|
163521
|
-
load: () => import("./chunk-
|
|
163406
|
+
load: () => import("./chunk-tqg3vc07.js")
|
|
163522
163407
|
};
|
|
163523
163408
|
sandbox_toggle_default = command6;
|
|
163524
163409
|
});
|
|
@@ -163533,7 +163418,7 @@ var init_chrome = __esm(() => {
|
|
|
163533
163418
|
availability: ["claude-ai"],
|
|
163534
163419
|
isEnabled: () => !getIsNonInteractiveSession(),
|
|
163535
163420
|
type: "local-jsx",
|
|
163536
|
-
load: () => import("./chunk-
|
|
163421
|
+
load: () => import("./chunk-hp32j0y0.js")
|
|
163537
163422
|
};
|
|
163538
163423
|
chrome_default = command7;
|
|
163539
163424
|
});
|
|
@@ -163720,7 +163605,7 @@ async function writeSkillFiles(dir, files2) {
|
|
|
163720
163605
|
}
|
|
163721
163606
|
await Promise.all([...byParent].map(async ([parent, entries]) => {
|
|
163722
163607
|
await mkdir21(parent, { recursive: true, mode: 448 });
|
|
163723
|
-
await Promise.all(entries.map(([p,
|
|
163608
|
+
await Promise.all(entries.map(([p, c]) => safeWriteFile(p, c)));
|
|
163724
163609
|
}));
|
|
163725
163610
|
}
|
|
163726
163611
|
async function safeWriteFile(p, content) {
|
|
@@ -163774,7 +163659,7 @@ var init_exit = __esm(() => {
|
|
|
163774
163659
|
aliases: ["quit"],
|
|
163775
163660
|
description: "Exit the REPL",
|
|
163776
163661
|
immediate: true,
|
|
163777
|
-
load: () => import("./chunk-
|
|
163662
|
+
load: () => import("./chunk-y9sd7hzk.js")
|
|
163778
163663
|
};
|
|
163779
163664
|
exit_default = exit;
|
|
163780
163665
|
});
|
|
@@ -163787,7 +163672,7 @@ var init_export = __esm(() => {
|
|
|
163787
163672
|
name: "export",
|
|
163788
163673
|
description: "Export the current conversation to a file or clipboard",
|
|
163789
163674
|
argumentHint: "[filename]",
|
|
163790
|
-
load: () => import("./chunk-
|
|
163675
|
+
load: () => import("./chunk-vndc6hwb.js")
|
|
163791
163676
|
};
|
|
163792
163677
|
export_default = exportCommand;
|
|
163793
163678
|
});
|
|
@@ -163807,7 +163692,7 @@ var init_model2 = __esm(() => {
|
|
|
163807
163692
|
get immediate() {
|
|
163808
163693
|
return shouldInferenceConfigCommandBeImmediate();
|
|
163809
163694
|
},
|
|
163810
|
-
load: () => import("./chunk-
|
|
163695
|
+
load: () => import("./chunk-qawxwdx7.js")
|
|
163811
163696
|
};
|
|
163812
163697
|
});
|
|
163813
163698
|
|
|
@@ -163820,7 +163705,7 @@ var init_tag = __esm(() => {
|
|
|
163820
163705
|
description: "Toggle a searchable tag on the current session",
|
|
163821
163706
|
isEnabled: () => process.env.USER_TYPE === "ant",
|
|
163822
163707
|
argumentHint: "<tag-name>",
|
|
163823
|
-
load: () => import("./chunk-
|
|
163708
|
+
load: () => import("./chunk-30j08xb7.js")
|
|
163824
163709
|
};
|
|
163825
163710
|
tag_default = tag;
|
|
163826
163711
|
});
|
|
@@ -163851,7 +163736,7 @@ var init_remote_env = __esm(() => {
|
|
|
163851
163736
|
get isHidden() {
|
|
163852
163737
|
return !isClaudeAISubscriber() || !isPolicyAllowed("allow_remote_sessions");
|
|
163853
163738
|
},
|
|
163854
|
-
load: () => import("./chunk-
|
|
163739
|
+
load: () => import("./chunk-ndx5vged.js")
|
|
163855
163740
|
};
|
|
163856
163741
|
});
|
|
163857
163742
|
|
|
@@ -163866,7 +163751,7 @@ var init_upgrade = __esm(() => {
|
|
|
163866
163751
|
description: "Upgrade to Max for higher rate limits and more Opus",
|
|
163867
163752
|
availability: ["claude-ai"],
|
|
163868
163753
|
isEnabled: () => !isEnvTruthy(process.env.DISABLE_UPGRADE_COMMAND) && getSubscriptionType() !== "enterprise",
|
|
163869
|
-
load: () => import("./chunk-
|
|
163754
|
+
load: () => import("./chunk-pv5hyepe.js")
|
|
163870
163755
|
};
|
|
163871
163756
|
upgrade_default = upgrade;
|
|
163872
163757
|
});
|
|
@@ -163886,7 +163771,7 @@ var init_rate_limit_options = __esm(() => {
|
|
|
163886
163771
|
return true;
|
|
163887
163772
|
},
|
|
163888
163773
|
isHidden: true,
|
|
163889
|
-
load: () => import("./chunk-
|
|
163774
|
+
load: () => import("./chunk-35s627hz.js")
|
|
163890
163775
|
};
|
|
163891
163776
|
rate_limit_options_default = rateLimitOptions;
|
|
163892
163777
|
});
|
|
@@ -163928,7 +163813,7 @@ var init_effort2 = __esm(() => {
|
|
|
163928
163813
|
get immediate() {
|
|
163929
163814
|
return shouldInferenceConfigCommandBeImmediate();
|
|
163930
163815
|
},
|
|
163931
|
-
load: () => import("./chunk-
|
|
163816
|
+
load: () => import("./chunk-0k68rhv0.js")
|
|
163932
163817
|
};
|
|
163933
163818
|
});
|
|
163934
163819
|
|
|
@@ -163939,7 +163824,7 @@ var init_stats = __esm(() => {
|
|
|
163939
163824
|
type: "local-jsx",
|
|
163940
163825
|
name: "stats",
|
|
163941
163826
|
description: "Show your Claude Code usage statistics and activity",
|
|
163942
|
-
load: () => import("./chunk-
|
|
163827
|
+
load: () => import("./chunk-tqbt95fc.js")
|
|
163943
163828
|
};
|
|
163944
163829
|
stats_default = stats;
|
|
163945
163830
|
});
|
|
@@ -163975,6 +163860,23 @@ var init_agents_platform = __esm(() => {
|
|
|
163975
163860
|
agents_platform_default = { name: "agents-platform", type: "local", isEnabled: () => false };
|
|
163976
163861
|
});
|
|
163977
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
|
+
|
|
163978
163880
|
// src/commands.ts
|
|
163979
163881
|
async function getSkills(cwd) {
|
|
163980
163882
|
try {
|
|
@@ -164038,13 +163940,13 @@ async function getCommands(cwd) {
|
|
|
164038
163940
|
if (dynamicSkills2.length === 0) {
|
|
164039
163941
|
return baseCommands;
|
|
164040
163942
|
}
|
|
164041
|
-
const baseCommandNames = new Set(baseCommands.map((
|
|
163943
|
+
const baseCommandNames = new Set(baseCommands.map((c) => c.name));
|
|
164042
163944
|
const uniqueDynamicSkills = dynamicSkills2.filter((s) => !baseCommandNames.has(s.name) && meetsAvailabilityRequirement(s) && isCommandEnabled(s));
|
|
164043
163945
|
if (uniqueDynamicSkills.length === 0) {
|
|
164044
163946
|
return baseCommands;
|
|
164045
163947
|
}
|
|
164046
|
-
const builtInNames = new Set(COMMANDS().map((
|
|
164047
|
-
const insertIndex = baseCommands.findIndex((
|
|
163948
|
+
const builtInNames = new Set(COMMANDS().map((c) => c.name));
|
|
163949
|
+
const insertIndex = baseCommands.findIndex((c) => builtInNames.has(c.name));
|
|
164048
163950
|
if (insertIndex === -1) {
|
|
164049
163951
|
return [...baseCommands, ...uniqueDynamicSkills];
|
|
164050
163952
|
}
|
|
@@ -164118,7 +164020,7 @@ function formatDescriptionWithSource(cmd) {
|
|
|
164118
164020
|
}
|
|
164119
164021
|
return `${cmd.description} (${getSettingSourceName(cmd.source)})`;
|
|
164120
164022
|
}
|
|
164121
|
-
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;
|
|
164122
164024
|
var init_commands2 = __esm(() => {
|
|
164123
164025
|
init_add_dir();
|
|
164124
164026
|
init_autofix_pr();
|
|
@@ -164177,6 +164079,7 @@ var init_commands2 = __esm(() => {
|
|
|
164177
164079
|
init_plan();
|
|
164178
164080
|
init_fast();
|
|
164179
164081
|
init_passes();
|
|
164082
|
+
init_permission();
|
|
164180
164083
|
init_privacy_settings();
|
|
164181
164084
|
init_hooks();
|
|
164182
164085
|
init_files2();
|
|
@@ -164226,6 +164129,7 @@ var init_commands2 = __esm(() => {
|
|
|
164226
164129
|
init_command();
|
|
164227
164130
|
init_command();
|
|
164228
164131
|
agentsPlatform = process.env.USER_TYPE === "ant" ? (init_agents_platform(), __toCommonJS(exports_agents_platform)).default : null;
|
|
164132
|
+
buddy2 = (init_buddy(), __toCommonJS(exports_buddy)).default;
|
|
164229
164133
|
usageReport = {
|
|
164230
164134
|
type: "prompt",
|
|
164231
164135
|
name: "insights",
|
|
@@ -164234,7 +164138,7 @@ var init_commands2 = __esm(() => {
|
|
|
164234
164138
|
progressMessage: "analyzing your sessions",
|
|
164235
164139
|
source: "builtin",
|
|
164236
164140
|
async getPromptForCommand(args, context2) {
|
|
164237
|
-
const real = (await import("./chunk-
|
|
164141
|
+
const real = (await import("./chunk-cn2204je.js")).default;
|
|
164238
164142
|
if (real.type !== "prompt")
|
|
164239
164143
|
throw new Error("unreachable");
|
|
164240
164144
|
return real.getPromptForCommand(args, context2);
|
|
@@ -164334,7 +164238,7 @@ var init_commands2 = __esm(() => {
|
|
|
164334
164238
|
vim_default,
|
|
164335
164239
|
...webCmd ? [webCmd] : [],
|
|
164336
164240
|
...forkCmd ? [forkCmd] : [],
|
|
164337
|
-
...
|
|
164241
|
+
...buddy2 ? [buddy2] : [],
|
|
164338
164242
|
...proactive ? [proactive] : [],
|
|
164339
164243
|
...briefCommand ? [briefCommand] : [],
|
|
164340
164244
|
...assistantCommand ? [assistantCommand] : [],
|
|
@@ -164343,6 +164247,7 @@ var init_commands2 = __esm(() => {
|
|
|
164343
164247
|
...voiceCommand ? [voiceCommand] : [],
|
|
164344
164248
|
thinkback_default,
|
|
164345
164249
|
thinkback_play_default,
|
|
164250
|
+
permission_default,
|
|
164346
164251
|
permissions_default,
|
|
164347
164252
|
plan_default,
|
|
164348
164253
|
privacy_settings_default,
|
|
@@ -164418,7 +164323,7 @@ var init_commands2 = __esm(() => {
|
|
|
164418
164323
|
summary_default,
|
|
164419
164324
|
release_notes_default,
|
|
164420
164325
|
files_default
|
|
164421
|
-
].filter((
|
|
164326
|
+
].filter((c) => c !== null));
|
|
164422
164327
|
});
|
|
164423
164328
|
|
|
164424
164329
|
// src/utils/getWorktreePaths.ts
|
|
@@ -165938,7 +165843,7 @@ async function trackSessionBranchingAnalytics(logs) {
|
|
|
165938
165843
|
if (maxCount <= 1) {
|
|
165939
165844
|
return;
|
|
165940
165845
|
}
|
|
165941
|
-
const branchCounts = Array.from(sessionIdCounts.values()).filter((
|
|
165846
|
+
const branchCounts = Array.from(sessionIdCounts.values()).filter((c) => c > 1);
|
|
165942
165847
|
const sessionsWithBranches = branchCounts.length;
|
|
165943
165848
|
const totalBranches = branchCounts.reduce((sum, count3) => sum + count3, 0);
|
|
165944
165849
|
logEvent("tengu_session_forked_branches_fetched", {
|
|
@@ -167415,7 +167320,7 @@ var init_sessionStorage = __esm(() => {
|
|
|
167415
167320
|
init_settings2();
|
|
167416
167321
|
init_slowOperations();
|
|
167417
167322
|
init_uuid();
|
|
167418
|
-
VERSION = typeof MACRO !== "undefined" ? "1.0.3-fork.
|
|
167323
|
+
VERSION = typeof MACRO !== "undefined" ? "1.0.3-fork.e907883" : "unknown";
|
|
167419
167324
|
MAX_TOMBSTONE_REWRITE_BYTES = 50 * 1024 * 1024;
|
|
167420
167325
|
SKIP_FIRST_PROMPT_PATTERN = /^(?:\s*<[a-z][\w-]*[\s>]|\[Request interrupted by user[^\]]*\])/;
|
|
167421
167326
|
EPHEMERAL_PROGRESS_TYPES = new Set([
|
|
@@ -168622,7 +168527,7 @@ var init_filesystem = __esm(() => {
|
|
|
168622
168527
|
});
|
|
168623
168528
|
getBundledSkillsRoot = memoize_default(function getBundledSkillsRoot2() {
|
|
168624
168529
|
const nonce = randomBytes14(16).toString("hex");
|
|
168625
|
-
return join72(getClaudeTempDir(), "bundled-skills", "1.0.3-fork.
|
|
168530
|
+
return join72(getClaudeTempDir(), "bundled-skills", "1.0.3-fork.e907883", nonce);
|
|
168626
168531
|
});
|
|
168627
168532
|
getResolvedWorkingDirPaths = memoize_default(getPathsForPermissionCheck);
|
|
168628
168533
|
});
|
|
@@ -169903,7 +169808,7 @@ var init_ssrfGuard = () => {};
|
|
|
169903
169808
|
|
|
169904
169809
|
// src/utils/hooks/execHttpHook.ts
|
|
169905
169810
|
async function getSandboxProxyConfig() {
|
|
169906
|
-
const { SandboxManager: SandboxManager3 } = await import("./chunk-
|
|
169811
|
+
const { SandboxManager: SandboxManager3 } = await import("./chunk-6pj4v4qk.js");
|
|
169907
169812
|
if (!SandboxManager3.isSandboxingEnabled()) {
|
|
169908
169813
|
return;
|
|
169909
169814
|
}
|
|
@@ -170422,6 +170327,26 @@ async function execCommandHook(hook, hookEvent, hookName, jsonInput, signal, hoo
|
|
|
170422
170327
|
if (safeCwd !== hookCwd) {
|
|
170423
170328
|
logForDebugging(`Hooks: cwd ${hookCwd} not found, falling back to original cwd`, { level: "warn" });
|
|
170424
170329
|
}
|
|
170330
|
+
let sandboxedCommand = finalCommand;
|
|
170331
|
+
if (!isPowerShell && SandboxManager2.isSandboxingEnabled()) {
|
|
170332
|
+
try {
|
|
170333
|
+
sandboxedCommand = await SandboxManager2.wrapWithSandbox(finalCommand, undefined, {
|
|
170334
|
+
network: {
|
|
170335
|
+
allowedDomains: [],
|
|
170336
|
+
deniedDomains: []
|
|
170337
|
+
},
|
|
170338
|
+
filesystem: {
|
|
170339
|
+
allowWrite: ["/"],
|
|
170340
|
+
denyWrite: [],
|
|
170341
|
+
allowRead: [],
|
|
170342
|
+
denyRead: []
|
|
170343
|
+
}
|
|
170344
|
+
}, signal);
|
|
170345
|
+
logForDebugging(`Hook command sandboxed (network-only): ${hook.command}`, { level: "verbose" });
|
|
170346
|
+
} catch (sandboxError) {
|
|
170347
|
+
logForDebugging(`Failed to sandbox hook command, running unsandboxed: ${errorMessage(sandboxError)}`, { level: "warn" });
|
|
170348
|
+
}
|
|
170349
|
+
}
|
|
170425
170350
|
let child;
|
|
170426
170351
|
if (shellType === "powershell") {
|
|
170427
170352
|
const pwshPath = await getCachedPowerShellPath();
|
|
@@ -170435,7 +170360,7 @@ async function execCommandHook(hook, hookEvent, hookName, jsonInput, signal, hoo
|
|
|
170435
170360
|
});
|
|
170436
170361
|
} else {
|
|
170437
170362
|
const shell = isWindows ? findGitBashPath() : true;
|
|
170438
|
-
child = spawn8(
|
|
170363
|
+
child = spawn8(sandboxedCommand, [], {
|
|
170439
170364
|
env: envVars,
|
|
170440
170365
|
cwd: safeCwd,
|
|
170441
170366
|
shell,
|
|
@@ -170677,6 +170602,9 @@ async function execCommandHook(hook, hookEvent, hookName, jsonInput, signal, hoo
|
|
|
170677
170602
|
if (!shellCommandTransferred) {
|
|
170678
170603
|
shellCommand.cleanup();
|
|
170679
170604
|
}
|
|
170605
|
+
if (sandboxedCommand !== finalCommand) {
|
|
170606
|
+
SandboxManager2.cleanupAfterCommand();
|
|
170607
|
+
}
|
|
170680
170608
|
}
|
|
170681
170609
|
}
|
|
170682
170610
|
function matchesPattern(matchQuery, matcher) {
|
|
@@ -172833,6 +172761,7 @@ var init_hooks3 = __esm(() => {
|
|
|
172833
172761
|
init_stringUtils();
|
|
172834
172762
|
init_permissionRuleParser();
|
|
172835
172763
|
init_log();
|
|
172764
|
+
init_sandbox_adapter();
|
|
172836
172765
|
init_combinedAbortSignal();
|
|
172837
172766
|
init_AsyncHookRegistry();
|
|
172838
172767
|
init_messageQueueManager();
|
|
@@ -173608,4 +173537,4 @@ var init_sandbox_adapter = __esm(() => {
|
|
|
173608
173537
|
};
|
|
173609
173538
|
});
|
|
173610
173539
|
|
|
173611
|
-
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 };
|