@opencode/core 0.0.0-dev-20627 → 0.0.0-dev-20630
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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{model-resolver-8a2qp1g6.js → location-services-005ee9q8.js} +1 -1
- package/dist/chunks/{model-resolver-aza1t4dm.js → location-services-038ja56e.js} +11 -11
- package/dist/chunks/{model-resolver-0e548fcr.js → location-services-05cem0rr.js} +14 -14
- package/dist/chunks/{model-resolver-0paq2nw3.js → location-services-0paq2nw3.js} +1 -1
- package/dist/chunks/{model-resolver-0vbcp93d.js → location-services-0vbcp93d.js} +2 -2
- package/dist/chunks/{model-resolver-h8jjkhz6.js → location-services-0w7qtn2g.js} +9 -9
- package/dist/chunks/{model-resolver-7e5k1pv9.js → location-services-0wtqkc8g.js} +13 -13
- package/dist/chunks/{model-resolver-bcnp41r8.js → location-services-0xdh9cbn.js} +33 -33
- package/dist/chunks/{model-resolver-5rrq939p.js → location-services-0xqj4dty.js} +13 -13
- package/dist/chunks/{model-resolver-2q40b9s7.js → location-services-15akr5x4.js} +4 -4
- package/dist/chunks/{model-resolver-gnwrz8d7.js → location-services-1bksgmt8.js} +17 -17
- package/dist/chunks/{model-resolver-1dazxqgg.js → location-services-1dazxqgg.js} +2 -2
- package/dist/chunks/{model-resolver-84h8c373.js → location-services-1dvck2a7.js} +2 -2
- package/dist/chunks/{model-resolver-agng1s7m.js → location-services-1e7pvmz6.js} +21 -21
- package/dist/chunks/{model-resolver-1z18ck0n.js → location-services-1gpb38yh.js} +9 -9
- package/dist/chunks/{model-resolver-phqqhagd.js → location-services-1jmpqbc2.js} +82 -82
- package/dist/chunks/{model-resolver-m1k46kn2.js → location-services-1qq40k4k.js} +11 -11
- package/dist/chunks/{model-resolver-kt9b9xbd.js → location-services-1rt6b2ft.js} +24 -24
- package/dist/chunks/{model-resolver-vtctyt73.js → location-services-23tcjctt.js} +11 -11
- package/dist/chunks/{model-resolver-n3k0nq1g.js → location-services-28esxs91.js} +29 -29
- package/dist/chunks/{model-resolver-2a5m3afh.js → location-services-2a5m3afh.js} +1 -1
- package/dist/chunks/{model-resolver-bdadzv4m.js → location-services-2njm4q35.js} +27 -27
- package/dist/chunks/{model-resolver-3zfbdzwf.js → location-services-2t9d70tj.js} +3 -3
- package/dist/chunks/{model-resolver-akd9m88t.js → location-services-2vn9xece.js} +5 -5
- package/dist/chunks/{model-resolver-hqjmh7f4.js → location-services-2zg5m144.js} +10 -10
- package/dist/chunks/{model-resolver-2rxac3h6.js → location-services-386maghb.js} +32 -32
- package/dist/chunks/{model-resolver-3fc6dm20.js → location-services-3fc6dm20.js} +1 -1
- package/dist/chunks/{model-resolver-3hepkmqq.js → location-services-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-resolver-qs20wfnt.js → location-services-3hf7hgee.js} +1 -1
- package/dist/chunks/{model-resolver-3smtnn6g.js → location-services-3smtnn6g.js} +1 -1
- package/dist/chunks/{model-resolver-3tvqynh2.js → location-services-3tvqynh2.js} +1 -1
- package/dist/chunks/{model-resolver-mwyjgb1k.js → location-services-3wb7f3rk.js} +7 -7
- package/dist/chunks/{model-resolver-qtnjcq6r.js → location-services-3ye4f2yy.js} +1 -1
- package/dist/chunks/{model-resolver-3zsf4n22.js → location-services-3zsf4n22.js} +1 -1
- package/dist/chunks/{model-resolver-9h49evx0.js → location-services-4gt5053z.js} +11 -11
- package/dist/chunks/{model-resolver-gxx3asgj.js → location-services-4h4wqcm2.js} +13 -13
- package/dist/chunks/{model-resolver-19g7txy3.js → location-services-4kypyv15.js} +1 -1
- package/dist/chunks/{model-resolver-4rt0ga34.js → location-services-4nj4bn9q.js} +8 -8
- package/dist/chunks/{model-resolver-2ccvkpx1.js → location-services-4ts7tf6z.js} +2 -2
- package/dist/chunks/{model-resolver-gw7teh6q.js → location-services-53baf2sn.js} +9 -9
- package/dist/chunks/{model-resolver-0qfxg4jf.js → location-services-5402gscc.js} +8 -8
- package/dist/chunks/{model-resolver-54ma36ye.js → location-services-54ma36ye.js} +1 -1
- package/dist/chunks/{model-resolver-0achvhs2.js → location-services-57trkbe5.js} +17 -17
- package/dist/chunks/{model-resolver-5daktx2q.js → location-services-5daktx2q.js} +1 -1
- package/dist/chunks/{model-resolver-rymvvhbz.js → location-services-5m0j2dgq.js} +19 -19
- package/dist/chunks/{model-resolver-5m9w47nd.js → location-services-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-resolver-ntg9ycez.js → location-services-5qbpkkvq.js} +11 -11
- package/dist/chunks/{model-resolver-e3qxr5gk.js → location-services-5qd3pb7m.js} +2 -2
- package/dist/chunks/{model-resolver-5t3nmthw.js → location-services-5t3nmthw.js} +2 -2
- package/dist/chunks/{model-resolver-srq8z0b0.js → location-services-5tcm9639.js} +9 -9
- package/dist/chunks/{model-resolver-ajf1swqb.js → location-services-5xpjggmg.js} +3 -3
- package/dist/chunks/{model-resolver-3t341cpn.js → location-services-633ngz6x.js} +6 -6
- package/dist/chunks/{model-resolver-jvvc3tfq.js → location-services-63kpjth9.js} +9 -9
- package/dist/chunks/{model-resolver-7rwqf82v.js → location-services-69j91c1q.js} +8 -8
- package/dist/chunks/{model-resolver-4zkna7ps.js → location-services-6hz9gy1d.js} +10 -10
- package/dist/chunks/{model-resolver-wgdeym6z.js → location-services-6qvzvbch.js} +11 -11
- package/dist/chunks/{model-resolver-6xb47vfp.js → location-services-6xb47vfp.js} +1 -1
- package/dist/chunks/{model-resolver-10dw056s.js → location-services-6y3bxvxj.js} +9 -9
- package/dist/chunks/{model-resolver-g7nd96nr.js → location-services-702grjpm.js} +8 -8
- package/dist/chunks/{model-resolver-f75zav2x.js → location-services-71az546q.js} +2 -2
- package/dist/chunks/{model-resolver-y0nv8875.js → location-services-72926355.js} +4 -4
- package/dist/chunks/{model-resolver-33vwh78z.js → location-services-730e0d1f.js} +4 -4
- package/dist/chunks/{model-resolver-3k84j3p7.js → location-services-739rnbfk.js} +71 -71
- package/dist/chunks/{model-resolver-2d6yk1br.js → location-services-78mj5myg.js} +11 -11
- package/dist/chunks/{model-resolver-djszqvmq.js → location-services-79qaa2kf.js} +9 -9
- package/dist/chunks/{model-resolver-7bmhse3q.js → location-services-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-resolver-3v39vgvt.js → location-services-7h3jskqq.js} +12 -12
- package/dist/chunks/{model-resolver-nve815hd.js → location-services-7j203v3e.js} +44 -44
- package/dist/chunks/{model-resolver-gszfa6pv.js → location-services-7kjj2hf7.js} +6 -6
- package/dist/chunks/{model-resolver-vvpj8dts.js → location-services-7v3yr1bh.js} +3 -3
- package/dist/chunks/{model-resolver-bzh1f83h.js → location-services-7v5tk8rc.js} +27 -27
- package/dist/chunks/{model-resolver-x442ch9z.js → location-services-8078vm6x.js} +1 -1
- package/dist/chunks/{model-resolver-84txncab.js → location-services-84txncab.js} +1 -1
- package/dist/chunks/{model-resolver-h2kvjvwj.js → location-services-88zs0xv9.js} +5 -5
- package/dist/chunks/{model-resolver-tcezcvh9.js → location-services-89znhe33.js} +4 -4
- package/dist/chunks/{model-resolver-vv1mfds1.js → location-services-8chc4m14.js} +18 -18
- package/dist/chunks/{model-resolver-8d7r5vzw.js → location-services-8d7r5vzw.js} +1 -1
- package/dist/chunks/{model-resolver-bjgk06jq.js → location-services-8fg7kjkz.js} +28 -28
- package/dist/chunks/{model-resolver-tm9w2n2x.js → location-services-8s8y9gwq.js} +16 -16
- package/dist/chunks/{model-resolver-ts23464c.js → location-services-8sze2n9a.js} +8 -8
- package/dist/chunks/{model-resolver-wy2za45w.js → location-services-8v3c42p4.js} +7 -7
- package/dist/chunks/{model-resolver-6avxmd9t.js → location-services-924j3etv.js} +26 -26
- package/dist/chunks/{model-resolver-f6h44vt5.js → location-services-92k45pvj.js} +6 -6
- package/dist/chunks/{model-resolver-cmcef70t.js → location-services-94af2ma0.js} +20 -20
- package/dist/chunks/{model-resolver-he91xpgg.js → location-services-9cbydn38.js} +24 -24
- package/dist/chunks/{model-resolver-kb9j3d72.js → location-services-9e5bzkjp.js} +3 -3
- package/dist/chunks/{model-resolver-ch4t865s.js → location-services-9eq5kwq7.js} +8 -8
- package/dist/chunks/{model-resolver-mtqs55ae.js → location-services-9hd3r0x1.js} +30 -30
- package/dist/chunks/{model-resolver-s8d7rejh.js → location-services-9t7a50xb.js} +4 -4
- package/dist/chunks/{model-resolver-mnwggq08.js → location-services-9tadwx83.js} +18 -18
- package/dist/chunks/{model-resolver-8k1jb5xq.js → location-services-a686yqn2.js} +5 -5
- package/dist/chunks/{model-resolver-rbbkm0xv.js → location-services-a8et2yjv.js} +48 -48
- package/dist/chunks/{model-resolver-aaet6srn.js → location-services-aaet6srn.js} +2 -2
- package/dist/chunks/{model-resolver-addxnjmp.js → location-services-addxnjmp.js} +1 -1
- package/dist/chunks/{model-resolver-9z9g3t20.js → location-services-amznhvbk.js} +11 -11
- package/dist/chunks/{model-resolver-2r1mkbh7.js → location-services-av6x2y0p.js} +16 -16
- package/dist/chunks/{model-resolver-h42756k7.js → location-services-avdv9knz.js} +88 -88
- package/dist/chunks/{model-resolver-1macjqn3.js → location-services-aytgv1nz.js} +27 -27
- package/dist/chunks/{model-resolver-zyk1yjk8.js → location-services-b3f8fkhc.js} +5 -5
- package/dist/chunks/{model-resolver-n8vdnqrc.js → location-services-b674v2dg.js} +5 -5
- package/dist/chunks/{model-resolver-b6gygkdw.js → location-services-b6gygkdw.js} +2 -2
- package/dist/chunks/{model-resolver-7622hyrr.js → location-services-be57hyb1.js} +26 -26
- package/dist/chunks/{model-resolver-x2pzw901.js → location-services-bh4jt5aw.js} +11 -11
- package/dist/chunks/{model-resolver-5g7r9pjq.js → location-services-bh4tn4kr.js} +27 -27
- package/dist/chunks/{model-resolver-f20mjja6.js → location-services-bk6jsxdy.js} +27 -27
- package/dist/chunks/{model-resolver-fbensa43.js → location-services-bnx96qhh.js} +11 -11
- package/dist/chunks/{model-resolver-21j0a31s.js → location-services-bs1dfvba.js} +24 -24
- package/dist/chunks/{model-resolver-51f5btjf.js → location-services-bw9zjykr.js} +6 -6
- package/dist/chunks/{model-resolver-ddhg64z2.js → location-services-bzncxkya.js} +11 -11
- package/dist/chunks/{model-resolver-yn0v1xc3.js → location-services-c05hzb7f.js} +43 -43
- package/dist/chunks/{model-resolver-z9ad0njv.js → location-services-cbq4209p.js} +4 -4
- package/dist/chunks/{model-resolver-tsg6z73m.js → location-services-cg21mtef.js} +11 -11
- package/dist/chunks/{model-resolver-c74x8r32.js → location-services-d2za3d2a.js} +8 -8
- package/dist/chunks/{model-resolver-vemxbn5z.js → location-services-d46e2cta.js} +18 -18
- package/dist/chunks/{model-resolver-7fqhmbkd.js → location-services-dcfdtrv8.js} +14 -14
- package/dist/chunks/{model-resolver-hxh7ac88.js → location-services-dh6k37e9.js} +43 -43
- package/dist/chunks/{model-resolver-33zp7k1z.js → location-services-dhdnksaa.js} +24 -24
- package/dist/chunks/{model-resolver-xkntkrq7.js → location-services-dmqcgk4z.js} +5 -5
- package/dist/chunks/{model-resolver-nxm207yx.js → location-services-dpkg50ah.js} +4 -4
- package/dist/chunks/{model-resolver-5pyjqqve.js → location-services-drnf6xwf.js} +2 -2
- package/dist/chunks/{model-resolver-kw9jfdn1.js → location-services-ds7a504r.js} +24 -24
- package/dist/chunks/{model-resolver-ey1p32kd.js → location-services-dxr5t5mp.js} +16 -16
- package/dist/chunks/{model-resolver-ef5x83kb.js → location-services-ef5x83kb.js} +1 -1
- package/dist/chunks/{model-resolver-73f7s9bv.js → location-services-eqytyt2f.js} +119 -119
- package/dist/chunks/{model-resolver-etq0c3wd.js → location-services-etq0c3wd.js} +1 -1
- package/dist/chunks/{model-resolver-25x2259c.js → location-services-evdt0y4h.js} +9 -9
- package/dist/chunks/location-services-f50w6s0d.js +253 -0
- package/dist/chunks/{model-resolver-xm3p4qah.js → location-services-f84qkavr.js} +34 -34
- package/dist/chunks/{model-resolver-9917pxwy.js → location-services-f9yzkqzf.js} +9 -9
- package/dist/chunks/{model-resolver-rasec19h.js → location-services-ff7xhjp2.js} +9 -9
- package/dist/chunks/{model-resolver-a8kdrp5r.js → location-services-fssayyez.js} +2 -2
- package/dist/chunks/location-services-fwsqw8dw.js +507 -0
- package/dist/chunks/{model-resolver-w2h15q85.js → location-services-g6yfr6ja.js} +5 -5
- package/dist/chunks/{model-resolver-y47v6e3z.js → location-services-gac9ztx6.js} +3 -3
- package/dist/chunks/{model-resolver-gd4qta3r.js → location-services-gd4qta3r.js} +1 -1
- package/dist/chunks/{model-resolver-50fxpqbw.js → location-services-gfwkqpn3.js} +20 -20
- package/dist/chunks/{model-resolver-qw4rebp2.js → location-services-gknby1cz.js} +16 -16
- package/dist/chunks/{model-resolver-6mjz4eke.js → location-services-gm6bhgn2.js} +11 -11
- package/dist/chunks/{model-resolver-4nza2pr1.js → location-services-gq4d2z0j.js} +22 -22
- package/dist/chunks/location-services-gvcrjn4k.js +26 -0
- package/dist/chunks/{model-resolver-3dn2etmh.js → location-services-gyb4qk55.js} +16 -16
- package/dist/chunks/{model-resolver-3cegwx68.js → location-services-h2b79v29.js} +2 -2
- package/dist/chunks/{model-resolver-ekxvnan8.js → location-services-h6f8n6tj.js} +12 -12
- package/dist/chunks/{model-resolver-h6vf3j39.js → location-services-h6vf3j39.js} +1 -1
- package/dist/chunks/{model-resolver-tnmecr3d.js → location-services-h8cwnp0z.js} +8 -8
- package/dist/chunks/{model-resolver-hv0tq5xf.js → location-services-hkf7sqjk.js} +10 -10
- package/dist/chunks/{model-resolver-5krfhzfs.js → location-services-hm2a4yzt.js} +17 -17
- package/dist/chunks/{model-resolver-fy0vatp7.js → location-services-hpmarter.js} +10 -10
- package/dist/chunks/{model-resolver-gxzkmbg1.js → location-services-hve86swx.js} +8 -8
- package/dist/chunks/{model-resolver-vqfzmc84.js → location-services-j1jytm4y.js} +21 -6
- package/dist/chunks/{model-resolver-2wst3kmw.js → location-services-j3e6np1x.js} +12 -12
- package/dist/chunks/{model-resolver-j56e64zr.js → location-services-j56e64zr.js} +1 -1
- package/dist/chunks/{model-resolver-vxzh5eqq.js → location-services-j8afcsyc.js} +4 -4
- package/dist/chunks/{model-resolver-xv5xhpkb.js → location-services-j9hy8vp2.js} +4 -4
- package/dist/chunks/{model-resolver-kemx01z9.js → location-services-jahbehqx.js} +20 -20
- package/dist/chunks/{model-resolver-rcppyyty.js → location-services-jb2vrk6d.js} +15 -15
- package/dist/chunks/{model-resolver-nmbcsk2x.js → location-services-jda68ddm.js} +3 -3
- package/dist/chunks/{model-resolver-q4zf8z8q.js → location-services-jhyt1ch8.js} +6 -6
- package/dist/chunks/{model-resolver-r5mbew3j.js → location-services-jj72jhew.js} +6 -6
- package/dist/chunks/{model-resolver-ewgnpxzc.js → location-services-jjx8np3a.js} +43 -43
- package/dist/chunks/{model-resolver-pdyt6ga5.js → location-services-jrw3dmfp.js} +7 -7
- package/dist/chunks/{model-resolver-j1gz9man.js → location-services-jy04fj7c.js} +2 -2
- package/dist/chunks/{model-resolver-2ke6m4px.js → location-services-k73vhven.js} +18 -18
- package/dist/chunks/{model-resolver-4v9q68f5.js → location-services-kgwqt2v2.js} +18 -18
- package/dist/chunks/{model-resolver-r6xsx0m5.js → location-services-kk7eqmr5.js} +5 -5
- package/dist/chunks/{model-resolver-2zczfx75.js → location-services-kp82j6dq.js} +10 -10
- package/dist/chunks/{model-resolver-0vv5hmpp.js → location-services-kq5ydq1p.js} +5 -5
- package/dist/chunks/{model-resolver-3kcgjwbq.js → location-services-kwbjrwdw.js} +37 -37
- package/dist/chunks/{model-resolver-q0hq5tmn.js → location-services-m04va80j.js} +9 -9
- package/dist/chunks/{model-resolver-m3fdjcah.js → location-services-m3fdjcah.js} +1 -1
- package/dist/chunks/{model-resolver-m9w0rfyh.js → location-services-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-resolver-efgr2h9s.js → location-services-mbhdtkze.js} +11 -11
- package/dist/chunks/{model-resolver-h4psw8ba.js → location-services-mctxfbc8.js} +18 -18
- package/dist/chunks/{model-resolver-mfqp6xfm.js → location-services-mfqp6xfm.js} +2 -2
- package/dist/chunks/{model-resolver-nhnh187w.js → location-services-mh4e5wj0.js} +18 -18
- package/dist/chunks/{model-resolver-afttsgwn.js → location-services-mjqndqed.js} +5 -5
- package/dist/chunks/{model-resolver-a1gpj94z.js → location-services-mvfsc1pv.js} +3 -3
- package/dist/chunks/{model-resolver-azjxx5b8.js → location-services-mxrxbngv.js} +15 -15
- package/dist/chunks/{model-resolver-vx3jgdek.js → location-services-my4zabxr.js} +3 -3
- package/dist/chunks/{model-resolver-deeca9hw.js → location-services-n22hjq3j.js} +18 -18
- package/dist/chunks/{model-resolver-tfzngn12.js → location-services-nb9p6b26.js} +4 -4
- package/dist/chunks/{model-resolver-h5w29vws.js → location-services-ncnm8wen.js} +1 -1
- package/dist/chunks/{model-resolver-6jayb3ka.js → location-services-ndadfcaq.js} +1 -1
- package/dist/chunks/{model-resolver-d9bwshhj.js → location-services-nkzh8q5t.js} +3 -3
- package/dist/chunks/{model-resolver-y9dv21ph.js → location-services-nmw6gh4z.js} +52 -52
- package/dist/chunks/{model-resolver-6m42r3np.js → location-services-nrdmrqsx.js} +21 -21
- package/dist/chunks/{model-resolver-crw5xmpr.js → location-services-nw3j3z06.js} +10 -10
- package/dist/chunks/{model-resolver-pa8pe2x7.js → location-services-p37cw4rj.js} +8 -8
- package/dist/chunks/{model-resolver-z5rd9rww.js → location-services-p3rd9cb6.js} +8 -8
- package/dist/chunks/{model-resolver-rk0tqkaw.js → location-services-p7jevsnv.js} +8 -8
- package/dist/chunks/{model-resolver-78j8p2e7.js → location-services-p89rmmfc.js} +13 -13
- package/dist/chunks/{model-resolver-pg8nqq7p.js → location-services-p9gk8ytq.js} +19 -19
- package/dist/chunks/location-services-phz3h32g.js +18 -0
- package/dist/chunks/{model-resolver-7m50mqw6.js → location-services-pjmbafvv.js} +15 -15
- package/dist/chunks/{model-resolver-pjvnvgmy.js → location-services-pjvnvgmy.js} +1 -1
- package/dist/chunks/{model-resolver-pknna89w.js → location-services-pknna89w.js} +1 -1
- package/dist/chunks/{model-resolver-wtsvmxn1.js → location-services-pvfx3hsd.js} +41 -41
- package/dist/chunks/{model-resolver-0j77ygfz.js → location-services-q0xm7vwc.js} +6 -6
- package/dist/chunks/{model-resolver-z23z10f3.js → location-services-q25gd7gx.js} +9 -9
- package/dist/chunks/{model-resolver-gkcjs2dn.js → location-services-q8ejgrh7.js} +11 -11
- package/dist/chunks/{model-resolver-5fkw2g45.js → location-services-qa6kg5ce.js} +23 -23
- package/dist/chunks/{model-resolver-j0dhs27h.js → location-services-qb7w2a5v.js} +17 -17
- package/dist/chunks/{model-resolver-qpvdx65r.js → location-services-qcrsmb16.js} +24 -24
- package/dist/chunks/{model-resolver-40jdsgbk.js → location-services-qg8kd4bn.js} +15 -15
- package/dist/chunks/{model-resolver-fcrkznn8.js → location-services-qgn6gcr1.js} +5 -5
- package/dist/chunks/{model-resolver-6s9jgcw2.js → location-services-qgny21m5.js} +2 -2
- package/dist/chunks/{model-resolver-gjkc16r8.js → location-services-qhj49g1w.js} +34 -34
- package/dist/chunks/{model-resolver-dhks9x6r.js → location-services-qhptqkd3.js} +6 -6
- package/dist/chunks/{model-resolver-qnc92qwc.js → location-services-qnc92qwc.js} +1 -1
- package/dist/chunks/{model-resolver-zby7g0g2.js → location-services-qs0k33dy.js} +13 -13
- package/dist/chunks/{model-resolver-qsdy395h.js → location-services-qsdy395h.js} +1 -1
- package/dist/chunks/{model-resolver-at1kfnmk.js → location-services-qwjmgwmn.js} +8 -8
- package/dist/chunks/{model-resolver-qxjc9qry.js → location-services-qxjc9qry.js} +3 -3
- package/dist/chunks/{model-resolver-7d6sbd9q.js → location-services-r24mavdp.js} +6 -6
- package/dist/chunks/{model-resolver-41zh4vt3.js → location-services-rcw0hhe5.js} +11 -11
- package/dist/chunks/{model-resolver-gkezm8y4.js → location-services-rdjnfax5.js} +21 -21
- package/dist/chunks/{model-resolver-rdw6cm16.js → location-services-rdw6cm16.js} +1 -1
- package/dist/chunks/{model-resolver-nyqx1cb3.js → location-services-reg6q42h.js} +5 -5
- package/dist/chunks/{model-resolver-m64xvjj1.js → location-services-rf80fxgj.js} +5 -5
- package/dist/chunks/{model-resolver-fgprmwhj.js → location-services-rfjkawsf.js} +13 -13
- package/dist/chunks/{model-resolver-1acjjqhc.js → location-services-rhraev7y.js} +4 -4
- package/dist/chunks/{model-resolver-gg1f5j1z.js → location-services-rvqqqxyw.js} +43 -43
- package/dist/chunks/{model-resolver-zcrspsvn.js → location-services-rwm5vee1.js} +4 -4
- package/dist/chunks/{model-resolver-3rd28rcz.js → location-services-ryd2rdzb.js} +11 -11
- package/dist/chunks/{model-resolver-m119g2w7.js → location-services-s1pvsrc7.js} +18 -18
- package/dist/chunks/{model-resolver-5sc2jtah.js → location-services-s2kgz93z.js} +18 -18
- package/dist/chunks/{model-resolver-7zc8scxq.js → location-services-scja77nx.js} +1 -1
- package/dist/chunks/{model-resolver-tw918z4j.js → location-services-sf1gp2bm.js} +4 -4
- package/dist/chunks/{model-resolver-55hkn5jk.js → location-services-t2cngams.js} +6 -6
- package/dist/chunks/{model-resolver-qwbxvttr.js → location-services-t36z8tfp.js} +33 -33
- package/dist/chunks/{model-resolver-a2ew8a62.js → location-services-t6vsspdg.js} +7 -7
- package/dist/chunks/{model-resolver-tazgh4e4.js → location-services-tazgh4e4.js} +1 -1
- package/dist/chunks/{model-resolver-tdstcens.js → location-services-tdstcens.js} +1 -1
- package/dist/chunks/{model-resolver-6w7dcbvg.js → location-services-tfcxrh0e.js} +11 -11
- package/dist/chunks/{model-resolver-kr7egayj.js → location-services-twbbseq7.js} +31 -31
- package/dist/chunks/{model-resolver-srtfr38y.js → location-services-tx65gs5j.js} +8 -8
- package/dist/chunks/{model-resolver-mb4aw6zt.js → location-services-tx8az79h.js} +12 -12
- package/dist/chunks/{model-resolver-6y0r2svr.js → location-services-tyg7s7sx.js} +4 -4
- package/dist/chunks/{model-resolver-v0es1rhs.js → location-services-v0es1rhs.js} +2 -2
- package/dist/chunks/{model-resolver-kxdn0yjd.js → location-services-v2hrpsne.js} +8 -8
- package/dist/chunks/{model-resolver-1n5ak9y9.js → location-services-v2wwk919.js} +23 -23
- package/dist/chunks/{model-resolver-ynt8fh2a.js → location-services-v7e370vs.js} +7 -7
- package/dist/chunks/{model-resolver-jgvx6mxw.js → location-services-v83r3tms.js} +3 -3
- package/dist/chunks/{model-resolver-veqvce7d.js → location-services-veqvce7d.js} +1 -1
- package/dist/chunks/{model-resolver-wkveh0mg.js → location-services-vgj1g915.js} +9 -9
- package/dist/chunks/{model-resolver-hhr7ssgm.js → location-services-vgr2d9jf.js} +4 -4
- package/dist/chunks/{model-resolver-rx9ava5n.js → location-services-vn72gsba.js} +4 -4
- package/dist/chunks/{model-resolver-1jx1zfd7.js → location-services-vqt5kvc0.js} +9 -9
- package/dist/chunks/{model-resolver-vzs5sf6e.js → location-services-vzs5sf6e.js} +1 -1
- package/dist/chunks/{model-resolver-wbn4j0pn.js → location-services-w2g20c7m.js} +17 -17
- package/dist/chunks/{model-resolver-w3wsvvr9.js → location-services-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-resolver-c30g4xpt.js → location-services-w7487c8x.js} +11 -11
- package/dist/chunks/{model-resolver-xpqek6s2.js → location-services-w74wtxgt.js} +11 -11
- package/dist/chunks/{model-resolver-drj28cm1.js → location-services-w844490d.js} +12 -12
- package/dist/chunks/{model-resolver-vfjhn2wd.js → location-services-wa9g86nq.js} +4 -4
- package/dist/chunks/{model-resolver-wd87259q.js → location-services-wd87259q.js} +1 -1
- package/dist/chunks/{model-resolver-6swqs4pd.js → location-services-wgxg4mhz.js} +32 -32
- package/dist/chunks/{model-resolver-5gep5epd.js → location-services-x328e1v9.js} +16 -16
- package/dist/chunks/{model-resolver-0yjz6y37.js → location-services-x3eea197.js} +35 -35
- package/dist/chunks/{model-resolver-dvh6e8nq.js → location-services-xa8mwyge.js} +2 -2
- package/dist/chunks/{model-resolver-90hpmr2t.js → location-services-xabyxep3.js} +11 -11
- package/dist/chunks/{model-resolver-dpqp9b63.js → location-services-xcheye7x.js} +30 -30
- package/dist/chunks/{model-resolver-w19d8598.js → location-services-xfkkasph.js} +5 -5
- package/dist/chunks/{model-resolver-ap8vh77s.js → location-services-xmfmtq35.js} +24 -24
- package/dist/chunks/{model-resolver-y1fvbwt7.js → location-services-y1fvbwt7.js} +1 -1
- package/dist/chunks/{model-resolver-51ssmyqe.js → location-services-yat6tp29.js} +15 -15
- package/dist/chunks/{model-resolver-2m190rpy.js → location-services-ybt4avc4.js} +13 -13
- package/dist/chunks/{model-resolver-q3r2nqqw.js → location-services-ykm82t8q.js} +20 -20
- package/dist/chunks/{model-resolver-pj1jpnd1.js → location-services-yptt0kpa.js} +50 -50
- package/dist/chunks/{model-resolver-pypjajay.js → location-services-yt6jmjwe.js} +4 -4
- package/dist/chunks/{model-resolver-z0bkrqjs.js → location-services-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-resolver-ysm5qf9e.js → location-services-z165pzrq.js} +25 -25
- package/dist/chunks/{model-resolver-y5fgx7d2.js → location-services-z5ybckhn.js} +19 -19
- package/dist/chunks/{model-resolver-1cap5v9d.js → location-services-z7z1vh8h.js} +24 -24
- package/dist/chunks/{model-resolver-d9dg5wfk.js → location-services-zjdx658e.js} +9 -9
- package/dist/chunks/{model-resolver-zr2ceqn5.js → location-services-zr2ceqn5.js} +1 -1
- package/dist/chunks/{model-resolver-5dkn69vz.js → location-services-zsr4wwhv.js} +4 -4
- package/dist/chunks/{model-resolver-zxq2ej10.js → location-services-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- 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/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +93 -93
- 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 +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- 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 +91 -91
- 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/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -354
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +77 -77
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +90 -90
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +80 -80
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +89 -89
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +93 -93
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- 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 +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +207 -207
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- 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 +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +108 -108
- package/dist/snapshot.js +93 -93
- 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 +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +106 -106
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/model.d.ts +3 -0
- 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 +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- 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/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- 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 +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/model-resolver-7b7qypaz.js +0 -26
- package/dist/chunks/model-resolver-8b9njvyr.js +0 -253
- package/dist/chunks/model-resolver-9sh4wc5j.js +0 -18
- package/dist/chunks/model-resolver-mcn7m7vx.js +0 -507
- /package/dist/chunks/{model-resolver-0qkdqm5v.js → location-services-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-resolver-0zkw76rk.js → location-services-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-resolver-17cy0kzp.js → location-services-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-resolver-1cnp2v09.js → location-services-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-resolver-1kg9ymc8.js → location-services-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{model-resolver-24dcb14g.js → location-services-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-resolver-2710q6r3.js → location-services-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-resolver-2axfhc9x.js → location-services-2axfhc9x.js} +0 -0
- /package/dist/chunks/{model-resolver-2c3vjs8z.js → location-services-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-resolver-34c7v6d4.js → location-services-34c7v6d4.js} +0 -0
- /package/dist/chunks/{model-resolver-359p4xyc.js → location-services-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-resolver-3asan66x.js → location-services-3asan66x.js} +0 -0
- /package/dist/chunks/{model-resolver-3t0ybcrp.js → location-services-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{model-resolver-3v8g72cx.js → location-services-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-resolver-3w5fmr99.js → location-services-3w5fmr99.js} +0 -0
- /package/dist/chunks/{model-resolver-3wcehsnq.js → location-services-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-resolver-43n2bw4t.js → location-services-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-resolver-4knz6hnm.js → location-services-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-resolver-4vcrnpx2.js → location-services-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-resolver-4y7fprxs.js → location-services-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-resolver-53557ph1.js → location-services-53557ph1.js} +0 -0
- /package/dist/chunks/{model-resolver-550bvhaj.js → location-services-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-resolver-6prwharc.js → location-services-6prwharc.js} +0 -0
- /package/dist/chunks/{model-resolver-6q2bdcd1.js → location-services-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-resolver-7akdwqpd.js → location-services-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-resolver-7m9af43g.js → location-services-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-resolver-822emrt2.js → location-services-822emrt2.js} +0 -0
- /package/dist/chunks/{model-resolver-88xbtdfr.js → location-services-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-resolver-8n3pysct.js → location-services-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-resolver-8wj87zfr.js → location-services-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-resolver-9a4afbnw.js → location-services-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-resolver-9rqn6x4v.js → location-services-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-resolver-a6k6eb26.js → location-services-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-resolver-af5trqkr.js → location-services-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-resolver-afrmfg78.js → location-services-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-resolver-aqzs7mqg.js → location-services-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-resolver-atq7p7m5.js → location-services-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-resolver-bkyjaxrp.js → location-services-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-resolver-bmr6ed5q.js → location-services-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-resolver-cf4snx6d.js → location-services-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-resolver-cvy3z8tj.js → location-services-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-resolver-d9fn303g.js → location-services-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-resolver-d9jj8t3e.js → location-services-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-resolver-dajrwvna.js → location-services-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-resolver-dap0rakb.js → location-services-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-resolver-df08tz66.js → location-services-df08tz66.js} +0 -0
- /package/dist/chunks/{model-resolver-dy18nga0.js → location-services-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-resolver-e5kj55wp.js → location-services-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-resolver-e73j6tqm.js → location-services-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-resolver-ec1grn59.js → location-services-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-resolver-eh3zwz77.js → location-services-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-resolver-emrn6kk6.js → location-services-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-resolver-f0mxakyp.js → location-services-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-resolver-f6n9ztr4.js → location-services-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-resolver-faypxj3z.js → location-services-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-resolver-fd410y7t.js → location-services-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-resolver-fxgpk5d8.js → location-services-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{model-resolver-g4wezp1m.js → location-services-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-resolver-g86h250q.js → location-services-g86h250q.js} +0 -0
- /package/dist/chunks/{model-resolver-gebd4c9n.js → location-services-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-resolver-gftt206x.js → location-services-gftt206x.js} +0 -0
- /package/dist/chunks/{model-resolver-hk9envan.js → location-services-hk9envan.js} +0 -0
- /package/dist/chunks/{model-resolver-j2ntwpah.js → location-services-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-resolver-j5zkgpj8.js → location-services-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-resolver-jjkms2e6.js → location-services-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-resolver-jr7sbwjy.js → location-services-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-resolver-jwfs4k6c.js → location-services-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-resolver-jzg6c2d5.js → location-services-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-resolver-mp448xyj.js → location-services-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-resolver-msx8hqn2.js → location-services-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-resolver-n05xt0ee.js → location-services-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-resolver-n3j8tn72.js → location-services-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-resolver-njntx4h6.js → location-services-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-resolver-q3sfg36h.js → location-services-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-resolver-q74kybfr.js → location-services-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-resolver-qaymkmh1.js → location-services-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qb87gjwd.js → location-services-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-resolver-qfa1cgps.js → location-services-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-resolver-qg3g05ea.js → location-services-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-resolver-qrg20bc0.js → location-services-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-resolver-rcb2kzg1.js → location-services-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-resolver-sdp7kfr6.js → location-services-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-resolver-ssg3fenm.js → location-services-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-resolver-w803qqfp.js → location-services-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-resolver-wc3fc9cn.js → location-services-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-resolver-wer8tq1h.js → location-services-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-resolver-wtztk69x.js → location-services-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-resolver-x0ckcb58.js → location-services-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-resolver-x61499pn.js → location-services-x61499pn.js} +0 -0
- /package/dist/chunks/{model-resolver-y44na4kk.js → location-services-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-resolver-y8cydn3q.js → location-services-y8cydn3q.js} +0 -0
- /package/dist/chunks/{model-resolver-y8f7s663.js → location-services-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-resolver-ygaqb7jw.js → location-services-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-resolver-ym463w8f.js → location-services-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-resolver-z5v4ffb3.js → location-services-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-resolver-z9919s4g.js → location-services-z9919s4g.js} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-mbhdtkze.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-vgr2d9jf.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event20
|
|
10
|
+
} from "./location-services-8fg7kjkz.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-services-addxnjmp.js";
|
|
14
14
|
import {
|
|
15
15
|
ID14,
|
|
16
16
|
MethodID2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-services-6hz9gy1d.js";
|
|
18
18
|
import {
|
|
19
19
|
ID13,
|
|
20
20
|
aisdk2,
|
|
21
21
|
Service76
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./location-services-t2cngams.js";
|
|
23
23
|
import {
|
|
24
24
|
ID12,
|
|
25
25
|
Info21
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-services-a686yqn2.js";
|
|
27
27
|
import {
|
|
28
28
|
success2,
|
|
29
29
|
error2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-services-pjvnvgmy.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/gitlab.ts
|
|
33
33
|
import os from "os";
|
|
@@ -196,7 +196,7 @@ var GitLabPlugin2 = define({
|
|
|
196
196
|
});
|
|
197
197
|
});
|
|
198
198
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
199
|
-
yield* bus.subscribe(
|
|
199
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
200
200
|
yield* refresh().pipe(Effect.forkScoped);
|
|
201
201
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
202
202
|
if (evt.package !== "gitlab-ai-provider")
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/instance.ts
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service4,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node5
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service4 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node5 = makeLocationNode({
|
|
19
|
+
service: Service4,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service4, Service4.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service4, node5, bound2, exports_instance2 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/managed-policy.ts
|
|
6
6
|
var exports_managed_policy = {};
|
|
7
7
|
__export(exports_managed_policy, {
|
|
8
8
|
ManagedPolicy: () => exports_managed_policy,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service54,
|
|
10
|
+
node: () => node58
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service54 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service54, () => {
|
|
18
18
|
const state = { current: { statements: [] } };
|
|
19
|
-
return
|
|
19
|
+
return Service54.of({
|
|
20
20
|
current: () => state.current,
|
|
21
21
|
set: (next) => Effect.sync(() => {
|
|
22
22
|
state.current = next;
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
|
-
var
|
|
26
|
+
var node58 = makeGlobalNode({ service: Service54, layer, deps: [] });
|
|
27
27
|
|
|
28
|
-
export {
|
|
28
|
+
export { Service54, node58, exports_managed_policy };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-services-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-services-jy04fj7c.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-services-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/discovery.ts
|
|
12
12
|
var exports_discovery2 = {};
|
|
13
13
|
__export(exports_discovery2, {
|
|
14
14
|
ConfigDiscovery: () => exports_discovery2,
|
|
15
15
|
discover: () => discover3,
|
|
16
|
-
names: () =>
|
|
16
|
+
names: () => names3
|
|
17
17
|
});
|
|
18
18
|
import path from "path";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
20
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
21
21
|
import { Global } from "@opencode/util/global";
|
|
22
|
-
var
|
|
22
|
+
var names3 = ["opencode.json", "opencode.jsonc"];
|
|
23
23
|
var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
24
24
|
const fs = yield* FSUtil.Service;
|
|
25
25
|
const global = yield* Global.Service;
|
|
@@ -31,10 +31,10 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
31
31
|
const directories = (yield* fs.resolve(location.directory)) === globalRoots[0] || options?.project === false ? [] : yield* fs.up({ targets: ["."], start: location.directory }).pipe(Effect.orDie);
|
|
32
32
|
const discovered = yield* Effect.forEach(directories, (directory) => Effect.gen(function* () {
|
|
33
33
|
const parent = yield* fs.resolve(directory);
|
|
34
|
-
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...
|
|
34
|
+
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...names3.toReversed()], (name) => fs.resolve(path.join(parent, name)).pipe(Effect.map((resolved) => ({ item: AbsolutePath2.make(path.join(directory, name)), resolved }))));
|
|
35
35
|
})).pipe(Effect.map((items) => items.flat()), Effect.orDie);
|
|
36
36
|
const globalEnabled = options?.global !== false;
|
|
37
|
-
const globalFiles = yield* Effect.forEach(
|
|
37
|
+
const globalFiles = yield* Effect.forEach(names3, (name) => fs.resolve(path.join(globalDirectory, name)));
|
|
38
38
|
const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
|
|
39
39
|
return {
|
|
40
40
|
global: globalEnabled ? globalDirectory : undefined,
|
|
@@ -56,4 +56,4 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
56
56
|
};
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
export {
|
|
59
|
+
export { names3, discover3, exports_discovery2 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service66,
|
|
3
|
+
node70,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-services-zjdx658e.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service62,
|
|
8
|
+
node66
|
|
9
|
+
} from "./location-services-bw9zjykr.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service31
|
|
12
|
+
} from "./location-services-2njm4q35.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-services-f50w6s0d.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service66, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service31);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node66.replace(Layer.succeed(Service62, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node70.replace(Layer.succeed(Service66, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ID14,
|
|
3
3
|
Service77,
|
|
4
4
|
node81
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-services-6hz9gy1d.js";
|
|
6
6
|
import {
|
|
7
7
|
ID13,
|
|
8
8
|
isAISDK2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
mergeHeaders2,
|
|
17
17
|
Service76,
|
|
18
18
|
node80
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-services-t2cngams.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service73,
|
|
22
|
+
node77
|
|
23
|
+
} from "./location-services-ff7xhjp2.js";
|
|
24
24
|
import {
|
|
25
25
|
ID12,
|
|
26
26
|
VariantID2,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
Service75,
|
|
29
29
|
node79,
|
|
30
30
|
supportsText2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./location-services-a686yqn2.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./location-services-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/model-resolver.ts
|
|
37
37
|
var exports_model_resolver = {};
|
|
@@ -40,15 +40,15 @@ __export(exports_model_resolver, {
|
|
|
40
40
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
41
41
|
ModelInitializationError: () => ModelInitializationError2,
|
|
42
42
|
ModelResolver: () => exports_model_resolver,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service72,
|
|
44
44
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
45
45
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
46
46
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
47
47
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
48
48
|
fromCatalogModel: () => fromCatalogModel2,
|
|
49
49
|
hasPackage: () => hasPackage2,
|
|
50
|
-
layer: () =>
|
|
51
|
-
node: () =>
|
|
50
|
+
layer: () => layer24,
|
|
51
|
+
node: () => node76,
|
|
52
52
|
resolveModel: () => resolveModel2,
|
|
53
53
|
withVariant: () => withVariant2
|
|
54
54
|
});
|
|
@@ -121,7 +121,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
class
|
|
124
|
+
class Service72 extends Context.Service()("@opencode/ModelResolver") {
|
|
125
125
|
}
|
|
126
126
|
var withVariant2 = (model, variantID) => {
|
|
127
127
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -265,12 +265,12 @@ var causeMessage = (cause) => {
|
|
|
265
265
|
};
|
|
266
266
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
267
267
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
268
|
-
var
|
|
268
|
+
var layer24 = Layer.effect(Service72, Effect.gen(function* () {
|
|
269
269
|
const providers = yield* Service76;
|
|
270
270
|
const models = yield* Service75;
|
|
271
271
|
const integrations = yield* Service77;
|
|
272
272
|
const npm = yield* Npm.Service;
|
|
273
|
-
const aisdk = yield*
|
|
273
|
+
const aisdk = yield* Service73;
|
|
274
274
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
275
275
|
const provider = yield* providers.get(selected.providerID);
|
|
276
276
|
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
@@ -300,7 +300,7 @@ var layer21 = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
300
300
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
301
301
|
};
|
|
302
302
|
});
|
|
303
|
-
return
|
|
303
|
+
return Service72.of({
|
|
304
304
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
305
305
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
306
306
|
if (!selected)
|
|
@@ -317,10 +317,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
317
317
|
const name = packageName2(packageName);
|
|
318
318
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
service:
|
|
322
|
-
layer:
|
|
323
|
-
deps: [node80, node79, node81, Npm.node,
|
|
320
|
+
var node76 = makeLocationNode({
|
|
321
|
+
service: Service72,
|
|
322
|
+
layer: layer24,
|
|
323
|
+
deps: [node80, node79, node81, Npm.node, node77]
|
|
324
324
|
});
|
|
325
325
|
|
|
326
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
326
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service72, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer24, node76, exports_model_resolver };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./location-services-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service23,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service23 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service23.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service23, awaitActivation2, exports_service };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-jda68ddm.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make22,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-services-9t7a50xb.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-services-9e5bzkjp.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-services-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
20
20
|
__export(exports_instruction_entry, {
|
|
21
|
-
Info: () =>
|
|
21
|
+
Info: () => Info3,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service26,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node29,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -34,7 +34,7 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
34
34
|
import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
var Key2 = InstructionEntry.Key;
|
|
37
|
-
var
|
|
37
|
+
var Info3 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,12 +56,12 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service26 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
63
63
|
`);
|
|
64
|
-
var source = (entry) =>
|
|
64
|
+
var source = (entry) => make22({
|
|
65
65
|
key: Key3.make(`api/${entry.key}`),
|
|
66
66
|
codec: Schema.toCodecJson(Schema.Json),
|
|
67
67
|
read: Effect.succeed(entry.removed ? removed2 : entry.value),
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make21({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service84;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service26.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node29 = makeLocationNode({ service: Service26, layer, deps: [node88] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info3, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service26, node29, exports_instruction_entry };
|
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-services-jda68ddm.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-services-vgr2d9jf.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-services-rdw6cm16.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
13
|
+
ID11,
|
|
14
|
+
Service70,
|
|
15
|
+
node74
|
|
16
|
+
} from "./location-services-z7z1vh8h.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-services-5t3nmthw.js";
|
|
20
20
|
import {
|
|
21
21
|
Service75,
|
|
22
22
|
node79
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-services-a686yqn2.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-services-h6vf3j39.js";
|
|
27
27
|
import {
|
|
28
28
|
SessionEvent2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-services-ec1grn59.js";
|
|
30
30
|
import {
|
|
31
31
|
provenance2,
|
|
32
32
|
compatible2,
|
|
33
33
|
isCheckpoint2,
|
|
34
34
|
encode2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./location-services-zsr4wwhv.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
37
|
+
load5
|
|
38
|
+
} from "./location-services-w7487c8x.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./location-services-ncnm8wen.js";
|
|
42
42
|
import {
|
|
43
43
|
baseTranscript2,
|
|
44
44
|
unsupportedParts2,
|
|
45
45
|
boundImages2,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from "./
|
|
46
|
+
Service24,
|
|
47
|
+
node27
|
|
48
|
+
} from "./location-services-28esxs91.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} from "./
|
|
50
|
+
Service63,
|
|
51
|
+
node67
|
|
52
|
+
} from "./location-services-qs0k33dy.js";
|
|
53
53
|
import {
|
|
54
54
|
isRetryable2,
|
|
55
55
|
policy2
|
|
56
|
-
} from "./
|
|
56
|
+
} from "./location-services-b3f8fkhc.js";
|
|
57
57
|
import {
|
|
58
58
|
toSessionError2,
|
|
59
59
|
contentFilterError2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./location-services-kk7eqmr5.js";
|
|
61
61
|
import {
|
|
62
62
|
calculateCost2,
|
|
63
63
|
record2,
|
|
64
64
|
add2
|
|
65
|
-
} from "./
|
|
65
|
+
} from "./location-services-tdstcens.js";
|
|
66
66
|
import {
|
|
67
67
|
__export
|
|
68
|
-
} from "./
|
|
68
|
+
} from "./location-services-9rqn6x4v.js";
|
|
69
69
|
|
|
70
70
|
// src/session/compaction.ts
|
|
71
71
|
var exports_compaction2 = {};
|
|
72
72
|
__export(exports_compaction2, {
|
|
73
|
-
Service: () =>
|
|
73
|
+
Service: () => Service10,
|
|
74
74
|
SessionCompaction: () => exports_compaction2,
|
|
75
75
|
buildPrompt: () => buildPrompt2,
|
|
76
76
|
estimateContext: () => estimateContext2,
|
|
77
77
|
estimatePrompt: () => estimatePrompt2,
|
|
78
|
-
layer: () =>
|
|
79
|
-
node: () =>
|
|
78
|
+
layer: () => layer7,
|
|
79
|
+
node: () => node12,
|
|
80
80
|
recentUserMessages: () => recentUserMessages2
|
|
81
81
|
});
|
|
82
82
|
import {
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "@opencode/ai";
|
|
93
93
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
94
94
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
95
|
-
class
|
|
95
|
+
class Service10 extends Context.Service()("@opencode/SessionCompaction") {
|
|
96
96
|
}
|
|
97
97
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
98
98
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -171,14 +171,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
171
171
|
};
|
|
172
172
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
173
173
|
var LEGACY_HEADING = "## Additional Context";
|
|
174
|
-
var
|
|
175
|
-
const agents = yield*
|
|
174
|
+
var layer7 = Layer.effect(Service10, Effect.gen(function* () {
|
|
175
|
+
const agents = yield* Service70;
|
|
176
176
|
const bus = yield* Service83;
|
|
177
177
|
const llm = yield* LLMClient.Service;
|
|
178
178
|
const catalog = yield* Service75;
|
|
179
|
-
const models = yield*
|
|
179
|
+
const models = yield* Service63;
|
|
180
180
|
const db = (yield* Service84).db;
|
|
181
|
-
const requests = yield*
|
|
181
|
+
const requests = yield* Service24;
|
|
182
182
|
const state = create3({
|
|
183
183
|
name: "session-compaction",
|
|
184
184
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -196,7 +196,7 @@ var layer6 = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
196
196
|
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
|
|
197
197
|
return { status: "skipped" };
|
|
198
198
|
const native = context.model.compaction?.type === "native";
|
|
199
|
-
const agent = native ? undefined : yield* agents.get(
|
|
199
|
+
const agent = native ? undefined : yield* agents.get(ID11.make("compaction"));
|
|
200
200
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
201
201
|
return;
|
|
202
202
|
})))) ?? context.model;
|
|
@@ -272,7 +272,7 @@ var layer6 = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
272
272
|
const send = (request) => {
|
|
273
273
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
274
274
|
return Effect.gen(function* () {
|
|
275
|
-
const history = yield*
|
|
275
|
+
const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
|
|
276
276
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
277
277
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
278
278
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -472,16 +472,16 @@ ${text}`;
|
|
|
472
472
|
}, { metadata: outcome.metadata });
|
|
473
473
|
return { status: "completed" };
|
|
474
474
|
});
|
|
475
|
-
return
|
|
475
|
+
return Service10.of({
|
|
476
476
|
transform: state.transform,
|
|
477
477
|
reload: state.reload,
|
|
478
478
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
479
479
|
});
|
|
480
480
|
}));
|
|
481
|
-
var
|
|
482
|
-
service:
|
|
483
|
-
layer:
|
|
484
|
-
deps: [
|
|
481
|
+
var node12 = makeLocationNode({
|
|
482
|
+
service: Service10,
|
|
483
|
+
layer: layer7,
|
|
484
|
+
deps: [node74, node87, node88, llmClient2, node79, node27, node67]
|
|
485
485
|
});
|
|
486
486
|
var previousCompaction = (messages) => {
|
|
487
487
|
const [first] = messages;
|
|
@@ -686,4 +686,4 @@ var estimateMedia = (mime) => {
|
|
|
686
686
|
return 0;
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
export {
|
|
689
|
+
export { Service10, buildPrompt2, layer7, node12, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|