@opencode/core 0.0.0-dev-19908 → 0.0.0-dev-19910
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/dist/account/sql.js +1 -1
- package/dist/agent.js +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{location-service-map-nx2c145c.js → git-0e4jjwrw.js} +24 -24
- package/dist/chunks/{location-service-map-0ft9cg2j.js → git-0ft9cg2j.js} +1 -1
- package/dist/chunks/{location-service-map-qgn6gcr1.js → git-0jwsre1p.js} +5 -5
- package/dist/chunks/git-0mesazry.js +4 -0
- package/dist/chunks/{location-service-map-0paq2nw3.js → git-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-service-map-0q0f95c6.js → git-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-service-map-5kfdkwnt.js → git-0vm7ymqn.js} +10 -10
- package/dist/chunks/{location-service-map-t9sq69f9.js → git-0vrxxr1a.js} +34 -34
- package/dist/chunks/{location-service-map-8r1shvjs.js → git-0xs9q83d.js} +4 -4
- package/dist/chunks/{location-service-map-8pxjqnah.js → git-16y6wkws.js} +11 -11
- package/dist/chunks/{location-service-map-p3mw2y19.js → git-17peyqa8.js} +23 -23
- package/dist/chunks/{location-service-map-1dazxqgg.js → git-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-service-map-4bhjphkk.js → git-1e3e3vry.js} +9 -9
- package/dist/chunks/{location-service-map-0mkceren.js → git-1hyh35hc.js} +15 -15
- package/dist/chunks/{location-service-map-z8z94c7r.js → git-1ns81jp7.js} +22 -22
- package/dist/chunks/{location-service-map-90zzpcmb.js → git-1p4vxbgh.js} +5 -5
- package/dist/chunks/{location-service-map-sd2d2cgh.js → git-1pp06av9.js} +37 -37
- package/dist/chunks/{location-service-map-a881zpfh.js → git-1rh4yqvv.js} +9 -9
- package/dist/chunks/{location-service-map-21r38tys.js → git-21r38tys.js} +1 -1
- package/dist/chunks/{location-service-map-6h73sxmp.js → git-2402vzrj.js} +5 -5
- package/dist/chunks/{location-service-map-eewwnnjm.js → git-2689451z.js} +4 -4
- package/dist/chunks/{location-service-map-ep7z2cty.js → git-288kk2p1.js} +7 -7
- package/dist/chunks/{location-service-map-2a5m3afh.js → git-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-service-map-0t9wd588.js → git-2aet7wja.js} +8 -8
- package/dist/chunks/{location-service-map-bxtw2qk2.js → git-2bxa57sj.js} +17 -17
- package/dist/chunks/{location-service-map-vk9pbctf.js → git-2nwjcwjm.js} +32 -32
- package/dist/chunks/{location-service-map-x6cf67we.js → git-3cjhgjje.js} +56 -56
- package/dist/chunks/{location-service-map-ph842b28.js → git-3ewed21c.js} +4 -4
- package/dist/chunks/{location-service-map-3fc6dm20.js → git-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-service-map-3hepkmqq.js → git-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-service-map-83bwd35t.js → git-3hj12f9s.js} +12 -12
- package/dist/chunks/{location-service-map-vq6a6twd.js → git-3hr1140z.js} +25 -25
- package/dist/chunks/{location-service-map-yqm635vm.js → git-3pe4e59h.js} +15 -15
- package/dist/chunks/{location-service-map-3smtnn6g.js → git-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-service-map-3tvqynh2.js → git-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-service-map-f6dgbcmr.js → git-43nsyqa5.js} +23 -23
- package/dist/chunks/{location-service-map-wkegjedf.js → git-43zf1p2c.js} +5 -5
- package/dist/chunks/{location-service-map-wpe4t8d6.js → git-4fp7hyfn.js} +13 -16
- package/dist/chunks/{location-service-map-1a5fqs30.js → git-4p5t2wp7.js} +13 -13
- package/dist/chunks/{location-service-map-662skhf0.js → git-4r2mk5j3.js} +18 -18
- package/dist/chunks/{location-service-map-whtzs7pp.js → git-4vxbjmaf.js} +29 -29
- package/dist/chunks/{location-service-map-98b0h016.js → git-4wja9c2w.js} +10 -10
- package/dist/chunks/{location-service-map-1ygqh575.js → git-56gdpj1q.js} +9 -9
- package/dist/chunks/{location-service-map-paegk39x.js → git-5c0f1prt.js} +4 -4
- package/dist/chunks/{location-service-map-5daktx2q.js → git-5daktx2q.js} +1 -1
- package/dist/chunks/{location-service-map-jqx27dm3.js → git-5hv86fpb.js} +14 -14
- package/dist/chunks/{location-service-map-92azg307.js → git-5hx7d1d6.js} +5 -5
- package/dist/chunks/{location-service-map-m6ry2d28.js → git-5s1mhvj6.js} +14 -14
- package/dist/chunks/{location-service-map-kp1afcxm.js → git-5scqd8ad.js} +26 -26
- package/dist/chunks/{location-service-map-5t3nmthw.js → git-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-service-map-s9zgft08.js → git-5y69b4r6.js} +11 -11
- package/dist/chunks/{location-service-map-r40g9bwm.js → git-618b53ja.js} +20 -20
- package/dist/chunks/{location-service-map-4cxhm7bv.js → git-63nbkngr.js} +24 -24
- package/dist/chunks/{location-service-map-v3vvdts4.js → git-64af36b2.js} +11 -11
- package/dist/chunks/{location-service-map-669tq793.js → git-669tq793.js} +1 -1
- package/dist/chunks/{location-service-map-6qn23cec.js → git-672beszh.js} +3 -3
- package/dist/chunks/{location-service-map-mv76532y.js → git-6dt9rsqm.js} +31 -31
- package/dist/chunks/{location-service-map-m012ar2z.js → git-6e6g2mqd.js} +3 -3
- package/dist/chunks/{location-service-map-xmhy1khr.js → git-6gykz65j.js} +5 -5
- package/dist/chunks/{location-service-map-3zjkz1b2.js → git-6j8cvwa1.js} +25 -25
- package/dist/chunks/{location-service-map-x1xcpfha.js → git-6jqkynh6.js} +12 -12
- package/dist/chunks/{location-service-map-6msgmcgs.js → git-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-service-map-pbw8g0bs.js → git-6sxa5bvt.js} +23 -23
- package/dist/chunks/{location-service-map-fmyban77.js → git-6ybsm94g.js} +16 -16
- package/dist/chunks/{location-service-map-dexmpbfg.js → git-6yv4qapz.js} +11 -11
- package/dist/chunks/{location-service-map-dn8dshff.js → git-74b6haq2.js} +31 -31
- package/dist/chunks/{location-service-map-9xvq3m7s.js → git-78v47nsk.js} +5 -5
- package/dist/chunks/git-7aqwnkq9.js +252 -0
- package/dist/chunks/{location-service-map-7bmhse3q.js → git-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-service-map-65m45y7f.js → git-7parea5t.js} +33 -33
- package/dist/chunks/{location-service-map-1w6r18a3.js → git-7qfnj7bd.js} +9 -9
- package/dist/chunks/{location-service-map-b6jkr1zz.js → git-7vr3dmr2.js} +13 -13
- package/dist/chunks/{location-service-map-qh9dpbry.js → git-7z7fdcae.js} +19 -19
- package/dist/chunks/{location-service-map-xp4st0zd.js → git-858mqmds.js} +8 -8
- package/dist/chunks/{location-service-map-tcezcvh9.js → git-89znhe33.js} +4 -4
- package/dist/chunks/{location-service-map-gkejymts.js → git-8cyahtjd.js} +4 -4
- package/dist/chunks/{location-service-map-8d7r5vzw.js → git-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-service-map-0fn2v7vk.js → git-8e1b1gzh.js} +6 -6
- package/dist/chunks/{location-service-map-rx6jh09a.js → git-8erct5rq.js} +5 -5
- package/dist/chunks/{location-service-map-9v0tnpfd.js → git-8g9s2qm2.js} +36 -36
- package/dist/chunks/{location-service-map-4xwtynpb.js → git-8hnmhdsn.js} +23 -23
- package/dist/chunks/{location-service-map-dj2t23y0.js → git-8p4f9s12.js} +2 -2
- package/dist/chunks/{location-service-map-hs63n349.js → git-8xy4ymhm.js} +46 -46
- package/dist/chunks/git-9a3eyg4n.js +26 -0
- package/dist/chunks/{location-service-map-a8efdyvq.js → git-9gz4yvws.js} +4 -4
- package/dist/chunks/{location-service-map-8hyye2v9.js → git-9nxfh24q.js} +16 -16
- package/dist/chunks/{location-service-map-y38r0g18.js → git-9zajbvzp.js} +3 -3
- package/dist/chunks/{location-service-map-fhk237js.js → git-9znc1w06.js} +41 -41
- package/dist/chunks/{location-service-map-5c4hm403.js → git-a1bz86dw.js} +3 -3
- package/dist/chunks/{location-service-map-hkagk5ex.js → git-a3r4dcrj.js} +2 -2
- package/dist/chunks/{location-service-map-aaet6srn.js → git-aaet6srn.js} +2 -2
- package/dist/chunks/{location-service-map-2fgn2we9.js → git-aamtrqep.js} +9 -9
- package/dist/chunks/{location-service-map-ddt2bs9e.js → git-afdssyjb.js} +4 -4
- package/dist/chunks/{location-service-map-4m7whkwr.js → git-ar15xcmb.js} +11 -11
- package/dist/chunks/{location-service-map-ddbqavaz.js → git-aze3g556.js} +7 -7
- package/dist/chunks/{location-service-map-9gn5b0q7.js → git-b4etar07.js} +32 -32
- package/dist/chunks/{location-service-map-v0nht15a.js → git-b4wh3kk3.js} +42 -42
- package/dist/chunks/{location-service-map-b6gygkdw.js → git-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-service-map-78tqsgcn.js → git-b8wnyzx7.js} +41 -41
- package/dist/chunks/{location-service-map-8s8mxddj.js → git-bjn91642.js} +4 -4
- package/dist/chunks/{location-service-map-3y1j0a2h.js → git-bm3dpr67.js} +4 -4
- package/dist/chunks/{location-service-map-qtq0xewc.js → git-bpjsqt6w.js} +15 -15
- package/dist/chunks/{location-service-map-htx28xdf.js → git-bqcxmntf.js} +12 -12
- package/dist/chunks/{location-service-map-dtcnxq3d.js → git-brvw573r.js} +10 -10
- package/dist/chunks/{location-service-map-fdwj3bfj.js → git-by82rxdc.js} +23 -23
- package/dist/chunks/{location-service-map-9vnf7qt0.js → git-c42wgx82.js} +35 -35
- package/dist/chunks/{location-service-map-hk3dpda4.js → git-c49neaws.js} +49 -49
- package/dist/chunks/{location-service-map-0m0tvs7x.js → git-c6ds0c94.js} +4 -4
- package/dist/chunks/{location-service-map-a90nz60e.js → git-c6z42dag.js} +31 -31
- package/dist/chunks/{location-service-map-wqc4f3p6.js → git-cdbm2jpq.js} +13 -13
- package/dist/chunks/{location-service-map-m0jqrx5p.js → git-cfpkc3c9.js} +2 -2
- package/dist/chunks/{location-service-map-gx2b53vf.js → git-cg9hks8v.js} +22 -22
- package/dist/chunks/{location-service-map-gxnxecbq.js → git-ckpezhnz.js} +28 -28
- package/dist/chunks/{location-service-map-9hn6k4tm.js → git-czfptnv9.js} +8 -8
- package/dist/chunks/{location-service-map-trhnmn1e.js → git-d3vp4tvv.js} +47 -47
- package/dist/chunks/{location-service-map-wawr6n1a.js → git-dfvnyc1p.js} +12 -12
- package/dist/chunks/{location-service-map-xt2qmbhx.js → git-dkgfs7qs.js} +41 -41
- package/dist/chunks/{location-service-map-jrxej8cd.js → git-drmrsq1a.js} +22 -22
- package/dist/chunks/{location-service-map-drwq78ky.js → git-drwq78ky.js} +1 -1
- package/dist/chunks/{location-service-map-n98zs5sd.js → git-dvn4kdj3.js} +15 -15
- package/dist/chunks/{location-service-map-5wrvcd50.js → git-dy3fdsce.js} +28 -28
- package/dist/chunks/{location-service-map-9180s51j.js → git-e1h2r55f.js} +8 -8
- package/dist/chunks/{location-service-map-r3fe1xjf.js → git-ebc9nwad.js} +7 -7
- package/dist/chunks/{location-service-map-ef5x83kb.js → git-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-service-map-r33kyee3.js → git-ehsj7wt5.js} +15 -15
- package/dist/chunks/{location-service-map-gp68ydnh.js → git-er2nv8wb.js} +8 -8
- package/dist/chunks/{location-service-map-wby7c117.js → git-er6g6738.js} +5 -5
- package/dist/chunks/{location-service-map-erw5rpbs.js → git-erw5rpbs.js} +2 -2
- package/dist/chunks/{location-service-map-etq0c3wd.js → git-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-service-map-d1x6gan2.js → git-eyqq4r43.js} +8 -8
- package/dist/chunks/{location-service-map-b4x0msg6.js → git-f5yy2vv1.js} +9 -9
- package/dist/chunks/{location-service-map-hdnk95c8.js → git-f828m53h.js} +2 -2
- package/dist/chunks/{location-service-map-zar9kkhf.js → git-fa0xf0qg.js} +25 -25
- package/dist/chunks/{location-service-map-fkjmw100.js → git-fkjmw100.js} +2 -2
- package/dist/chunks/{location-service-map-p7a39gy5.js → git-fpq9acqp.js} +6 -6
- package/dist/chunks/{location-service-map-0pvf7m16.js → git-ftt4q9pv.js} +10 -10
- package/dist/chunks/{location-service-map-2a4ngzra.js → git-fx8hh4f3.js} +11 -11
- package/dist/chunks/{location-service-map-fxbjtjnd.js → git-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-service-map-j7jx6nts.js → git-fzgke8tr.js} +11 -11
- package/dist/chunks/{location-service-map-166kng33.js → git-g1sxm558.js} +8 -8
- package/dist/chunks/{location-service-map-xpqdzpnq.js → git-g6kej4xb.js} +17 -17
- package/dist/chunks/{location-service-map-gd4qta3r.js → git-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-service-map-army0fs2.js → git-ggjkqpcf.js} +15 -15
- package/dist/chunks/{location-service-map-tt8pxjfh.js → git-gjcbrjt5.js} +1 -1
- package/dist/chunks/{location-service-map-nhnj3r8x.js → git-gqft2nrr.js} +6 -6
- package/dist/chunks/{location-service-map-gv6a8nnw.js → git-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-service-map-yt1n8wq9.js → git-h2aa9ksg.js} +44 -44
- package/dist/chunks/{location-service-map-9a1vbzsf.js → git-h6r3nrb9.js} +4 -4
- package/dist/chunks/{location-service-map-h6vf3j39.js → git-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-service-map-8a9xw8ry.js → git-ha8vn221.js} +13 -13
- package/dist/chunks/{location-service-map-mtq5sw6w.js → git-hf4whmtg.js} +1 -1
- package/dist/chunks/{location-service-map-2tfmgkzg.js → git-hfdr1yjj.js} +4 -4
- package/dist/chunks/{location-service-map-2b1sk39h.js → git-hka040n9.js} +17 -17
- package/dist/chunks/{location-service-map-vkt5fbj2.js → git-hz84tk5e.js} +8 -8
- package/dist/chunks/{location-service-map-mhkvc446.js → git-j028xdjb.js} +3 -3
- package/dist/chunks/{location-service-map-j56e64zr.js → git-j56e64zr.js} +1 -1
- package/dist/chunks/{location-service-map-1z27hz33.js → git-j63fa09p.js} +50 -50
- package/dist/chunks/{location-service-map-772npm7s.js → git-j8xg6mrm.js} +43 -43
- package/dist/chunks/{location-service-map-ndmv45hp.js → git-jexxy024.js} +3 -3
- package/dist/chunks/{location-service-map-5egg5sww.js → git-jf362r72.js} +3 -3
- package/dist/chunks/{location-service-map-6836s78k.js → git-jk15xws4.js} +11 -11
- package/dist/chunks/{location-service-map-vd14z2yv.js → git-jpd36d6c.js} +15 -15
- package/dist/chunks/{location-service-map-nzks3jc8.js → git-k3c624dm.js} +3 -3
- package/dist/chunks/{location-service-map-emrt4k6z.js → git-kczjb4tf.js} +20 -20
- package/dist/chunks/{location-service-map-gtsscnck.js → git-kh9xs558.js} +9 -9
- package/dist/chunks/{location-service-map-27npcnq6.js → git-krbhq476.js} +51 -51
- package/dist/chunks/{location-service-map-m3fdjcah.js → git-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-service-map-m9w0rfyh.js → git-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-service-map-ag26xfby.js → git-mp3jt1vp.js} +21 -21
- package/dist/chunks/{location-service-map-s7rj0mx9.js → git-mq533pjk.js} +27 -27
- package/dist/chunks/{location-service-map-y2f1nv48.js → git-nc19f9d4.js} +27 -27
- package/dist/chunks/{location-service-map-a5t0p1z6.js → git-nhny46wm.js} +17 -17
- package/dist/chunks/{location-service-map-r9w3djhf.js → git-njhqdk9p.js} +9 -9
- package/dist/chunks/{location-service-map-p5qkcp8b.js → git-njs7e820.js} +41 -41
- package/dist/chunks/{location-service-map-m4z85945.js → git-ntazb8er.js} +10 -10
- package/dist/chunks/{location-service-map-8jb42n3c.js → git-ntf7ng8w.js} +12 -12
- package/dist/chunks/{location-service-map-t847fcsw.js → git-p0j3v3px.js} +18 -18
- package/dist/chunks/{location-service-map-2f0ps26r.js → git-p2s4r87m.js} +3 -3
- package/dist/chunks/{location-service-map-dy5qaydb.js → git-p402qtyx.js} +17 -17
- package/dist/chunks/{location-service-map-hkfg6fzm.js → git-p44d8wdy.js} +5 -5
- package/dist/chunks/git-p6mzafbb.js +492 -0
- package/dist/chunks/{location-service-map-4q8wsteh.js → git-pce1006a.js} +21 -21
- package/dist/chunks/{location-service-map-gkxbbwdq.js → git-pecsbykn.js} +22 -22
- package/dist/chunks/{location-service-map-b9ez143t.js → git-pf4sg1bc.js} +52 -52
- package/dist/chunks/{location-service-map-51tvzc68.js → git-ph7261hm.js} +5 -5
- package/dist/chunks/{location-service-map-pjvnvgmy.js → git-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-service-map-4y1a8txt.js → git-pkn2k75h.js} +4 -4
- package/dist/chunks/{location-service-map-pknna89w.js → git-pknna89w.js} +1 -1
- package/dist/chunks/{location-service-map-t9zs3egg.js → git-pmr4s4kc.js} +4 -4
- package/dist/chunks/{location-service-map-1v655e7m.js → git-pqqx5r28.js} +28 -28
- package/dist/chunks/{location-service-map-8pen1rfb.js → git-pv119cyc.js} +9 -9
- package/dist/chunks/{location-service-map-r8z66xh6.js → git-q2k0k7gp.js} +29 -29
- package/dist/chunks/git-q509s3k3.js +18 -0
- package/dist/chunks/{location-service-map-ab8cnxkj.js → git-qrvxy8qx.js} +12 -12
- package/dist/chunks/{location-service-map-qsdy395h.js → git-qsdy395h.js} +1 -1
- package/dist/chunks/{location-service-map-0yxeee59.js → git-r04dhbzm.js} +20 -20
- package/dist/chunks/{location-service-map-djszqvmq.js → git-r2m716tb.js} +9 -9
- package/dist/chunks/{location-service-map-2e38sqrt.js → git-r40wg4tq.js} +30 -30
- package/dist/chunks/{location-service-map-yp2x3t23.js → git-r8xr0va3.js} +4 -4
- package/dist/chunks/{location-service-map-yxtrr34x.js → git-r9hg784z.js} +25 -25
- package/dist/chunks/{location-service-map-rew2pe94.js → git-ras1ee3t.js} +3 -3
- package/dist/chunks/{location-service-map-rdw6cm16.js → git-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-service-map-pnv527nz.js → git-rhafb4aa.js} +9 -9
- package/dist/chunks/{location-service-map-5bxs6rtb.js → git-rprjdt61.js} +2 -2
- package/dist/chunks/{location-service-map-2938t71n.js → git-rymrqawx.js} +85 -85
- package/dist/chunks/{location-service-map-bbfzv23w.js → git-s7fy4fw9.js} +71 -71
- package/dist/chunks/{location-service-map-eaj1djv9.js → git-s8d7rejh.js} +6 -6
- package/dist/chunks/{location-service-map-cavr175a.js → git-sez5jh81.js} +4 -4
- package/dist/chunks/{location-service-map-qwfgmsy8.js → git-sk9aqj88.js} +32 -32
- package/dist/chunks/{location-service-map-awxzb73g.js → git-sqsnjckg.js} +11 -11
- package/dist/chunks/{location-service-map-y6h6zkea.js → git-sx705cz4.js} +16 -16
- package/dist/chunks/{location-service-map-v3h1wcwh.js → git-sxpyths9.js} +6 -6
- package/dist/chunks/{location-service-map-7ph5r14r.js → git-tafcm9s2.js} +13 -13
- package/dist/chunks/{location-service-map-tazgh4e4.js → git-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-service-map-p28j5sbe.js → git-tbz0fdvh.js} +5 -5
- package/dist/chunks/{location-service-map-tdstcens.js → git-tdstcens.js} +1 -1
- package/dist/chunks/{location-service-map-hfeprhdn.js → git-te19744a.js} +17 -17
- package/dist/chunks/{location-service-map-wtf9a8xg.js → git-teypzqam.js} +14 -14
- package/dist/chunks/{location-service-map-z76vp15m.js → git-tjfg9936.js} +6 -6
- package/dist/chunks/{location-service-map-g8d3gcyj.js → git-tkmwgdpd.js} +4 -4
- package/dist/chunks/{location-service-map-hsvnfevx.js → git-tr4gpxdj.js} +10 -10
- package/dist/chunks/{location-service-map-tvtrv512.js → git-tvtrv512.js} +1 -1
- package/dist/chunks/{location-service-map-4ppc3h9w.js → git-tw48jm20.js} +12 -12
- package/dist/chunks/{location-service-map-ebs875ns.js → git-v2fn5cje.js} +4 -4
- package/dist/chunks/{location-service-map-fv22qhf7.js → git-v2fywz06.js} +11 -11
- package/dist/chunks/{location-service-map-fzb7pnb3.js → git-v8xjkfmf.js} +41 -41
- package/dist/chunks/{location-service-map-e4a7h3de.js → git-vayd41fe.js} +33 -33
- package/dist/chunks/{location-service-map-veqvce7d.js → git-veqvce7d.js} +1 -1
- package/dist/chunks/{location-service-map-pfca1pfz.js → git-vf09fb5w.js} +21 -21
- package/dist/chunks/{location-service-map-5xerxp25.js → git-vh4e3tf6.js} +8 -8
- package/dist/chunks/{location-service-map-y87t9fp6.js → git-vhzwz6jw.js} +22 -22
- package/dist/chunks/{location-service-map-5r3df9a0.js → git-vrqxrqyx.js} +6 -6
- package/dist/chunks/{location-service-map-f98t382m.js → git-vw95j725.js} +27 -27
- package/dist/chunks/{location-service-map-vzcthcp8.js → git-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-service-map-nn0rafdk.js → git-w072qfac.js} +27 -27
- package/dist/chunks/{location-service-map-ykw8m083.js → git-w2xq192h.js} +18 -18
- package/dist/chunks/{location-service-map-w3wsvvr9.js → git-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-service-map-1tm87m4q.js → git-wajqq34j.js} +35 -35
- package/dist/chunks/{location-service-map-9wtk3fb8.js → git-wb6nw9s2.js} +7 -7
- package/dist/chunks/{location-service-map-wd87259q.js → git-wd87259q.js} +1 -1
- package/dist/chunks/{location-service-map-k188wcvq.js → git-wejqvva8.js} +16 -16
- package/dist/chunks/{location-service-map-2km99av1.js → git-wwxvw6cz.js} +20 -20
- package/dist/chunks/{location-service-map-bypa996g.js → git-wx3m0z92.js} +11 -11
- package/dist/chunks/{location-service-map-5yeq06a0.js → git-wzg7zq6j.js} +6 -6
- package/dist/chunks/{location-service-map-y3a3cvm4.js → git-x039wt3r.js} +30 -30
- package/dist/chunks/{location-service-map-x1ezjp6w.js → git-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-service-map-wvgd2jmw.js → git-x2d9qy7d.js} +5 -5
- package/dist/chunks/{location-service-map-yfdxd69c.js → git-x5cyaybx.js} +5 -5
- package/dist/chunks/{location-service-map-d0g4z7q4.js → git-x6h9vts0.js} +5 -5
- package/dist/chunks/{location-service-map-ve8rn4r1.js → git-xchesy5b.js} +19 -19
- package/dist/chunks/{location-service-map-ckyt0zc1.js → git-xd2eepn7.js} +23 -23
- package/dist/chunks/{location-service-map-r6apnabc.js → git-xdd5m13n.js} +17 -17
- package/dist/chunks/{location-service-map-cnhy75xp.js → git-xffg26zj.js} +7 -7
- package/dist/chunks/{location-service-map-a4vpawzh.js → git-xgrh65hf.js} +187 -187
- package/dist/chunks/{location-service-map-y642n9b2.js → git-xkc5gz1n.js} +11 -11
- package/dist/chunks/{location-service-map-4jhxmthm.js → git-y0fr9ak9.js} +89 -89
- package/dist/chunks/{location-service-map-y1fvbwt7.js → git-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-service-map-dpkg50ah.js → git-y71avatq.js} +4 -4
- package/dist/chunks/{location-service-map-jemfgm91.js → git-ybhbtxjg.js} +3 -3
- package/dist/chunks/{location-service-map-67e2aj6a.js → git-ybzt69z9.js} +12 -12
- package/dist/chunks/{location-service-map-f5vqjzqv.js → git-yc72r6y6.js} +28 -28
- package/dist/chunks/{location-service-map-hzbz7kx4.js → git-yffsrks6.js} +34 -34
- package/dist/chunks/git-ygkrcpmw.js +65 -0
- package/dist/chunks/{location-service-map-eq23s0y6.js → git-yjptyezs.js} +5 -5
- package/dist/chunks/{location-service-map-m5xhdgb9.js → git-yjpwaj2n.js} +24 -24
- package/dist/chunks/{location-service-map-ztwwngdb.js → git-ym0qxjj8.js} +5 -5
- package/dist/chunks/{location-service-map-yrhqyw5v.js → git-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-service-map-yrznvahk.js → git-yrznvahk.js} +2 -2
- package/dist/chunks/{location-service-map-k9ab4ktd.js → git-yxssrz9b.js} +11 -11
- package/dist/chunks/{location-service-map-z0bkrqjs.js → git-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-service-map-bn6tr5ps.js → git-z1cbmdk8.js} +8 -8
- package/dist/chunks/{location-service-map-2n3788zq.js → git-z3t6faa9.js} +11 -11
- package/dist/chunks/{location-service-map-z63w68vq.js → git-z63w68vq.js} +2 -2
- package/dist/chunks/{location-service-map-7b4eysef.js → git-zbxcgkb3.js} +18 -18
- package/dist/chunks/{location-service-map-zeh9ct20.js → git-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-service-map-de260zrm.js → git-zh4jz90y.js} +34 -34
- package/dist/chunks/{location-service-map-tcg29b4q.js → git-zhq6vg7a.js} +1 -1
- package/dist/chunks/{location-service-map-xam4be5c.js → git-zm1kgnct.js} +26 -26
- package/dist/chunks/{location-service-map-zr2ceqn5.js → git-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-service-map-66px8fgb.js → git-zr3s38d1.js} +14 -14
- package/dist/chunks/{location-service-map-zxq2ej10.js → git-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-service-map-v74dqahz.js → git-zxv2zsm9.js} +9 -9
- package/dist/chunks/{location-service-map-ckp5ab6w.js → git-zyyrtepr.js} +24 -24
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +80 -80
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -366
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +73 -73
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +224 -224
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +107 -107
- package/dist/form.js +73 -73
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +104 -104
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +90 -90
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +356 -356
- package/dist/location.js +88 -88
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +101 -101
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/compaction.js +132 -132
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +119 -119
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -347
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +87 -87
- package/dist/provider.js +100 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -111
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +219 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +90 -90
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +124 -124
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- package/dist/tool/plugin/grep.js +121 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +100 -100
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +119 -119
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +12 -12
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +1 -1
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +77 -77
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/location-service-map-25wt5q19.js +0 -26
- package/dist/chunks/location-service-map-2v82530a.js +0 -65
- package/dist/chunks/location-service-map-6pjjxh9g.js +0 -492
- package/dist/chunks/location-service-map-pf31ssb9.js +0 -18
- package/dist/chunks/location-service-map-vj32h5cd.js +0 -252
- package/dist/chunks/location-service-map-xrsqh21y.js +0 -4
- /package/dist/chunks/{location-service-map-0qkdqm5v.js → git-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-service-map-0zkw76rk.js → git-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-service-map-17cy0kzp.js → git-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-service-map-1cnp2v09.js → git-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-service-map-1kg9ymc8.js → git-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-service-map-24dcb14g.js → git-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-service-map-2710q6r3.js → git-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-service-map-2axfhc9x.js → git-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-service-map-2c3vjs8z.js → git-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-service-map-359p4xyc.js → git-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-service-map-3asan66x.js → git-3asan66x.js} +0 -0
- /package/dist/chunks/{location-service-map-3v8g72cx.js → git-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-service-map-3w5fmr99.js → git-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-service-map-3wcehsnq.js → git-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-service-map-43n2bw4t.js → git-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-service-map-4knz6hnm.js → git-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-service-map-4vcrnpx2.js → git-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-service-map-4y7fprxs.js → git-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-service-map-53557ph1.js → git-53557ph1.js} +0 -0
- /package/dist/chunks/{location-service-map-550bvhaj.js → git-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-service-map-5qd3pb7m.js → git-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-service-map-6prwharc.js → git-6prwharc.js} +0 -0
- /package/dist/chunks/{location-service-map-7akdwqpd.js → git-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-service-map-7m9af43g.js → git-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-service-map-822emrt2.js → git-822emrt2.js} +0 -0
- /package/dist/chunks/{location-service-map-88xbtdfr.js → git-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-service-map-8n3pysct.js → git-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-service-map-922hggd3.js → git-922hggd3.js} +0 -0
- /package/dist/chunks/{location-service-map-9a4afbnw.js → git-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-service-map-9rqn6x4v.js → git-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-service-map-a6k6eb26.js → git-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-service-map-af5trqkr.js → git-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-service-map-afrmfg78.js → git-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-service-map-aqzs7mqg.js → git-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-service-map-atq7p7m5.js → git-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-service-map-bkyjaxrp.js → git-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-service-map-bmr6ed5q.js → git-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-service-map-cf4snx6d.js → git-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-service-map-cvy3z8tj.js → git-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-service-map-d9fn303g.js → git-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-service-map-d9jj8t3e.js → git-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-service-map-dajrwvna.js → git-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-service-map-dap0rakb.js → git-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-service-map-df08tz66.js → git-df08tz66.js} +0 -0
- /package/dist/chunks/{location-service-map-dy18nga0.js → git-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-service-map-e5kj55wp.js → git-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-service-map-e73j6tqm.js → git-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-service-map-ec1grn59.js → git-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-service-map-eh3zwz77.js → git-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-service-map-emrn6kk6.js → git-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-service-map-f0mxakyp.js → git-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-service-map-f6n9ztr4.js → git-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-service-map-faypxj3z.js → git-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-service-map-fd410y7t.js → git-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-service-map-fxgpk5d8.js → git-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-service-map-g4wezp1m.js → git-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-service-map-g86h250q.js → git-g86h250q.js} +0 -0
- /package/dist/chunks/{location-service-map-gebd4c9n.js → git-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-service-map-gftt206x.js → git-gftt206x.js} +0 -0
- /package/dist/chunks/{location-service-map-hjbc5kem.js → git-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-service-map-hk9envan.js → git-hk9envan.js} +0 -0
- /package/dist/chunks/{location-service-map-j2ntwpah.js → git-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-service-map-j5zkgpj8.js → git-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-service-map-jjkms2e6.js → git-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-service-map-jr7sbwjy.js → git-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-service-map-jwfs4k6c.js → git-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-service-map-jzg6c2d5.js → git-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-service-map-mp448xyj.js → git-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-service-map-msx8hqn2.js → git-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-service-map-n05xt0ee.js → git-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-service-map-n3j8tn72.js → git-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-service-map-njntx4h6.js → git-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-service-map-q3sfg36h.js → git-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-service-map-q74kybfr.js → git-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-service-map-qaymkmh1.js → git-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-service-map-qb87gjwd.js → git-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-service-map-qfa1cgps.js → git-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-service-map-qg3g05ea.js → git-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-service-map-qrg20bc0.js → git-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-service-map-rcb2kzg1.js → git-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-service-map-sdp7kfr6.js → git-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-service-map-sk3qaz4a.js → git-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-service-map-ssg3fenm.js → git-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-service-map-twg0f83k.js → git-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-service-map-w803qqfp.js → git-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-service-map-wc3fc9cn.js → git-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-service-map-wer8tq1h.js → git-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-service-map-wtztk69x.js → git-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-service-map-x0ckcb58.js → git-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-service-map-x61499pn.js → git-x61499pn.js} +0 -0
- /package/dist/chunks/{location-service-map-y44na4kk.js → git-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-service-map-y8cydn3q.js → git-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-service-map-y8f7s663.js → git-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-service-map-ygaqb7jw.js → git-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-service-map-ym463w8f.js → git-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-service-map-z9919s4g.js → git-z9919s4g.js} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID10,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./git-63nbkngr.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./git-j63fa09p.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./git-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/agent.ts
|
|
14
|
-
var
|
|
15
|
-
__export(
|
|
16
|
-
AgentPlugin: () =>
|
|
17
|
-
Plugin: () =>
|
|
14
|
+
var exports_agent2 = {};
|
|
15
|
+
__export(exports_agent2, {
|
|
16
|
+
AgentPlugin: () => exports_agent2,
|
|
17
|
+
Plugin: () => Plugin43
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin43 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin11 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID10.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID10.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin11 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID10.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID10.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID10.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin11 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin43, exports_agent2 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./git-bqcxmntf.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./git-922hggd3.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
Ref3,
|
|
11
|
+
Service74,
|
|
12
|
+
node78
|
|
13
|
+
} from "./git-p402qtyx.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./git-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service47,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node51
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service47 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,10 +39,10 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
43
|
-
const bus = yield*
|
|
44
|
-
const location = yield*
|
|
45
|
-
const ref =
|
|
42
|
+
var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
43
|
+
const bus = yield* Service81;
|
|
44
|
+
const location = yield* Service74;
|
|
45
|
+
const ref = Ref3.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
48
48
|
error: (type, message, data) => new DeclaredError(type, message, data)
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
82
82
|
const event = registered.event;
|
|
83
83
|
const data = yield* encode(event.schema, args[1]);
|
|
84
84
|
return yield* bus.publish(registered.definition, data, {
|
|
85
|
-
location:
|
|
85
|
+
location: Ref3.make({ directory: ref.directory, workspaceID: ref.workspaceID })
|
|
86
86
|
}).pipe(Effect.asVoid);
|
|
87
87
|
})
|
|
88
88
|
}
|
|
@@ -118,19 +118,19 @@ var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service74, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service47.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node51 = makeLocationNode({ service: Service47, layer, deps: [node85, node78] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
132
132
|
metadata: optional2(Schema.Record(Schema.String, Schema.Unknown)),
|
|
133
|
-
location: optional2(
|
|
133
|
+
location: optional2(Ref3)
|
|
134
134
|
};
|
|
135
135
|
var EventData = Schema.Record(Schema.String, Schema.Unknown);
|
|
136
136
|
var jsonSchemas = new WeakMap;
|
|
@@ -206,8 +206,8 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
206
206
|
...payload,
|
|
207
207
|
type: eventType(definition, name),
|
|
208
208
|
data,
|
|
209
|
-
location:
|
|
209
|
+
location: Ref3.make({ directory: ref.directory, workspaceID: ref.workspaceID })
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service47, node51, exports_rpc, define2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID16,
|
|
3
|
+
Service78
|
|
4
|
+
} from "./git-0vrxxr1a.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/provider/llmgateway.ts
|
|
7
7
|
import { Effect } from "effect";
|
|
@@ -9,7 +9,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
9
9
|
var LLMGatewayPlugin2 = define({
|
|
10
10
|
id: "opencode.provider.llmgateway",
|
|
11
11
|
effect: Effect.fn(function* (ctx) {
|
|
12
|
-
const integrations = yield*
|
|
12
|
+
const integrations = yield* Service78;
|
|
13
13
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
14
14
|
yield* ctx.provider.transform((evt) => {
|
|
15
15
|
for (const item of evt.list()) {
|
|
@@ -19,7 +19,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
19
19
|
continue;
|
|
20
20
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
21
21
|
continue;
|
|
22
|
-
if (!configured.has(
|
|
22
|
+
if (!configured.has(ID16.make(item.provider.id)))
|
|
23
23
|
continue;
|
|
24
24
|
evt.update(item.provider.id, (provider) => {
|
|
25
25
|
provider.headers = {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aisdk2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./git-c42wgx82.js";
|
|
4
4
|
import {
|
|
5
5
|
VariantID2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./git-wajqq34j.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./git-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/variant.ts
|
|
12
12
|
var exports_variant = {};
|
|
13
13
|
__export(exports_variant, {
|
|
14
14
|
Variant: () => exports_variant,
|
|
15
|
-
resolve: () =>
|
|
15
|
+
resolve: () => resolve4
|
|
16
16
|
});
|
|
17
|
-
function
|
|
17
|
+
function resolve4(model, supports = [{ type: "effort" }]) {
|
|
18
18
|
const protocol = model.package === undefined ? undefined : PROTOCOLS[model.package];
|
|
19
19
|
if (!protocol)
|
|
20
20
|
return [];
|
|
@@ -28,11 +28,12 @@ function resolve3(model, supports = [{ type: "effort" }]) {
|
|
|
28
28
|
var EFFORTS = ["low", "medium", "high"];
|
|
29
29
|
var ENCRYPTED_REASONING = ["reasoning.encrypted_content"];
|
|
30
30
|
var ADAPTIVE_THINKING = { type: "adaptive", display: "summarized" };
|
|
31
|
+
var ANTHROPIC_OUTPUT_TOKEN_MAX = 32000;
|
|
31
32
|
var variant = (id, overlay) => ({ id: VariantID2.make(id), ...overlay });
|
|
32
33
|
var efforts = (values, spell) => values.map((effort) => variant(effort, spell(effort)));
|
|
33
34
|
var toggle = (off, on) => [variant("none", off), variant("thinking", on)];
|
|
34
|
-
function budgets(model, support, spell) {
|
|
35
|
-
const maximum = Math.min(support.max ??
|
|
35
|
+
function budgets(model, support, spell, ceiling = model.limit.output) {
|
|
36
|
+
const maximum = Math.min(support.max ?? ceiling - 1, model.limit.output - 1, ceiling - 1);
|
|
36
37
|
if (maximum <= 0)
|
|
37
38
|
return [];
|
|
38
39
|
const high = Math.min(Math.max(support.min ?? 0, Math.floor((maximum + 1) / 2)), maximum);
|
|
@@ -257,9 +258,7 @@ var anthropicMessages = (model, support) => {
|
|
|
257
258
|
return toggle({ settings: { thinking: { type: "disabled" } } }, thinking);
|
|
258
259
|
}
|
|
259
260
|
case "budget_tokens":
|
|
260
|
-
return budgets(model, support, (tokens) => ({
|
|
261
|
-
settings: { thinking: { type: "enabled", budgetTokens: tokens } }
|
|
262
|
-
}));
|
|
261
|
+
return budgets(model, support, (tokens) => ({ settings: { thinking: { type: "enabled", budgetTokens: tokens } } }), ANTHROPIC_OUTPUT_TOKEN_MAX);
|
|
263
262
|
}
|
|
264
263
|
};
|
|
265
264
|
var minimaxMessages = (model, support) => {
|
|
@@ -357,7 +356,7 @@ var bedrockConverse = (model, support) => {
|
|
|
357
356
|
case "toggle":
|
|
358
357
|
return claude ? toggle(fields({ thinking: { type: "disabled" } }), fields({ thinking: ADAPTIVE_THINKING })) : toggle(fields({ reasoningConfig: { type: "disabled" } }), fields({ reasoningConfig: { type: "enabled" } }));
|
|
359
358
|
case "budget_tokens":
|
|
360
|
-
return budgets(model, support, (tokens) => claude ? fields({ thinking: { type: "enabled", budget_tokens: tokens } }) : fields({ reasoningConfig: { type: "enabled", budgetTokens: tokens } }));
|
|
359
|
+
return budgets(model, support, (tokens) => claude ? fields({ thinking: { type: "enabled", budget_tokens: tokens } }) : fields({ reasoningConfig: { type: "enabled", budgetTokens: tokens } }), claude ? ANTHROPIC_OUTPUT_TOKEN_MAX : model.limit.output);
|
|
361
360
|
}
|
|
362
361
|
};
|
|
363
362
|
var alibabaAISDK = (model, support) => {
|
|
@@ -395,9 +394,7 @@ var bedrockAISDK = (model, support) => {
|
|
|
395
394
|
case "toggle":
|
|
396
395
|
return claude ? toggle({ settings: { additionalModelRequestFields: { thinking: { type: "disabled" } } } }, { settings: { additionalModelRequestFields: { thinking: ADAPTIVE_THINKING } } }) : toggle({ settings: { additionalModelRequestFields: { reasoningConfig: { type: "disabled" } } } }, { settings: { additionalModelRequestFields: { reasoningConfig: { type: "enabled" } } } });
|
|
397
396
|
case "budget_tokens":
|
|
398
|
-
return budgets(model, support, (tokens) => ({
|
|
399
|
-
settings: { reasoningConfig: { type: "enabled", budgetTokens: tokens } }
|
|
400
|
-
}));
|
|
397
|
+
return budgets(model, support, (tokens) => ({ settings: { reasoningConfig: { type: "enabled", budgetTokens: tokens } } }), claude ? ANTHROPIC_OUTPUT_TOKEN_MAX : model.limit.output);
|
|
401
398
|
}
|
|
402
399
|
};
|
|
403
400
|
var vercelGateway = (model, support) => {
|
|
@@ -443,7 +440,7 @@ var sapAICore = (model, support) => {
|
|
|
443
440
|
return [];
|
|
444
441
|
case "budget_tokens":
|
|
445
442
|
if (id.includes("anthropic"))
|
|
446
|
-
return budgets(model, support, (tokens) => sap({ additionalModelRequestFields: { thinking: { type: "enabled", budget_tokens: tokens } } }));
|
|
443
|
+
return budgets(model, support, (tokens) => sap({ additionalModelRequestFields: { thinking: { type: "enabled", budget_tokens: tokens } } }), ANTHROPIC_OUTPUT_TOKEN_MAX);
|
|
447
444
|
if (id.includes("gemini"))
|
|
448
445
|
return budgets(model, support, (tokens) => sap({ thinkingConfig: { includeThoughts: true, thinkingBudget: tokens } }));
|
|
449
446
|
if (id.includes("cohere"))
|
|
@@ -497,4 +494,4 @@ var PROTOCOLS = {
|
|
|
497
494
|
[aisdk2("@ai-sdk/cohere")]: cohere
|
|
498
495
|
};
|
|
499
496
|
|
|
500
|
-
export {
|
|
497
|
+
export { resolve4, exports_variant };
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
ModelInitializationError3,
|
|
6
6
|
UnresolvedProviderVariablesError3,
|
|
7
7
|
UnsupportedCompactionError3,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service70,
|
|
9
|
+
node74
|
|
10
|
+
} from "./git-h2aa9ksg.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./git-jexxy024.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./git-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/runner/model.ts
|
|
19
19
|
var exports_model = {};
|
|
@@ -22,13 +22,13 @@ __export(exports_model, {
|
|
|
22
22
|
ModelInitializationError: () => ModelInitializationError2,
|
|
23
23
|
ModelNotSelectedError: () => ModelNotSelectedError2,
|
|
24
24
|
ModelUnavailableError: () => ModelUnavailableError2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service60,
|
|
26
26
|
SessionRunnerModel: () => exports_model,
|
|
27
27
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
28
28
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
29
29
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
30
30
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node64,
|
|
32
32
|
resolved: () => resolved2
|
|
33
33
|
});
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -57,7 +57,7 @@ var ModelInitializationError2 = ModelInitializationError3;
|
|
|
57
57
|
var UnresolvedProviderVariablesError2 = UnresolvedProviderVariablesError3;
|
|
58
58
|
var UnsupportedCompactionError2 = UnsupportedCompactionError3;
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service60 extends Context.Service()("@opencode/SessionRunnerModel") {
|
|
61
61
|
}
|
|
62
62
|
var resolved2 = (model, options) => ({
|
|
63
63
|
model,
|
|
@@ -72,9 +72,9 @@ var resolved2 = (model, options) => ({
|
|
|
72
72
|
compaction: options.compaction,
|
|
73
73
|
transport: options.transport
|
|
74
74
|
});
|
|
75
|
-
var layer = Layer.effect(
|
|
76
|
-
const resolver = yield*
|
|
77
|
-
return
|
|
75
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
76
|
+
const resolver = yield* Service70;
|
|
77
|
+
return Service60.of({
|
|
78
78
|
resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
|
|
79
79
|
if (!session.model) {
|
|
80
80
|
const resolved = yield* resolver.resolve();
|
|
@@ -92,6 +92,6 @@ var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
|
92
92
|
})
|
|
93
93
|
});
|
|
94
94
|
}));
|
|
95
|
-
var
|
|
95
|
+
var node64 = makeLocationNode({ service: Service60, layer, deps: [node74] });
|
|
96
96
|
|
|
97
|
-
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
97
|
+
export { ModelNotSelectedError2, ModelUnavailableError2, VariantUnavailableError2, UnsupportedPackageError2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service60, resolved2, node64, exports_model };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service34,
|
|
3
|
+
node37
|
|
4
|
+
} from "./git-6dt9rsqm.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key3,
|
|
7
7
|
removed2,
|
|
8
8
|
make21,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./git-s8d7rejh.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./git-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ReferenceInstructions: () =>
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
16
|
+
var exports_instructions4 = {};
|
|
17
|
+
__export(exports_instructions4, {
|
|
18
|
+
ReferenceInstructions: () => exports_instructions4,
|
|
19
|
+
Service: () => Service20,
|
|
20
|
+
node: () => node23
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -57,11 +57,11 @@ var update = (previous, current) => {
|
|
|
57
57
|
`);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service20 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const references = yield*
|
|
64
|
-
return
|
|
62
|
+
var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
63
|
+
const references = yield* Service34;
|
|
64
|
+
return Service20.of({
|
|
65
65
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
66
66
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
67
67
|
name: reference.name,
|
|
@@ -69,7 +69,7 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
69
69
|
description: reference.description
|
|
70
70
|
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
71
71
|
return make21({
|
|
72
|
-
key:
|
|
72
|
+
key: Key3.make("core/reference-guidance"),
|
|
73
73
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
74
74
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
75
75
|
render: {
|
|
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
var
|
|
84
|
+
var node23 = makeLocationNode({ service: Service20, layer, deps: [node37] });
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { Service20, node23, exports_instructions4 };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service80
|
|
3
|
+
} from "./git-tw48jm20.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service63
|
|
6
|
+
} from "./git-j63fa09p.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service15
|
|
14
|
+
} from "./git-3hr1140z.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./git-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch2 = {};
|
|
21
|
+
__export(exports_websearch2, {
|
|
22
|
+
Input: () => Input3,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin22,
|
|
25
|
+
WebSearchTool: () => exports_websearch2,
|
|
26
|
+
description: () => description2,
|
|
27
|
+
name: () => name3
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name3 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description2 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input3 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin22 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service63;
|
|
53
|
+
const forms = yield* Service80;
|
|
54
|
+
const websearch = yield* Service15;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name3,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description2,
|
|
59
|
+
input: Input3,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name3,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name3];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name3, NO_RESULTS2, description2, Input3, Plugin22, exports_websearch2 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./git-6e6g2mqd.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./git-3hepkmqq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./git-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/kv.ts
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service82,
|
|
17
|
+
node: () => node86
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service82 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
24
|
+
var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
25
25
|
const db = (yield* Service83).db;
|
|
26
|
-
return
|
|
26
|
+
return Service82.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node86 = makeGlobalNode({ service: Service82, layer, deps: [node87] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service82, node86, exports_kv };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./git-3v8g72cx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./git-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
MAX_RESPONSE_BYTES: () =>
|
|
12
|
-
WebSearchMcp: () =>
|
|
9
|
+
var exports_mcp2 = {};
|
|
10
|
+
__export(exports_mcp2, {
|
|
11
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
12
|
+
WebSearchMcp: () => exports_mcp2,
|
|
13
13
|
call: () => call2,
|
|
14
14
|
parseResponse: () => parseResponse2
|
|
15
15
|
});
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var MAX_RESPONSE_BYTES3 = 256 * 1024;
|
|
19
19
|
var parseResponse2 = (body, result) => {
|
|
20
20
|
const decode = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ result })));
|
|
21
21
|
const parse = (payload) => {
|
|
@@ -53,7 +53,7 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
53
53
|
}));
|
|
54
54
|
return yield* Effect.gen(function* () {
|
|
55
55
|
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request);
|
|
56
|
-
const body = yield* collectBoundedResponseBody2(response,
|
|
56
|
+
const body = yield* collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`${tool} response exceeded ${MAX_RESPONSE_BYTES3} bytes`));
|
|
57
57
|
return yield* parseResponse2(body.toString("utf8"), schema.output);
|
|
58
58
|
}).pipe(Effect.scoped, Effect.timeoutOrElse({
|
|
59
59
|
duration: Duration.seconds(25),
|
|
@@ -61,4 +61,4 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
61
61
|
}));
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
export {
|
|
64
|
+
export { MAX_RESPONSE_BYTES3, parseResponse2, call2, exports_mcp2 };
|