@opencode/core 0.0.0-dev-20806 → 0.0.0-dev-20810
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 +82 -82
- package/dist/aisdk-native.js +90 -90
- package/dist/aisdk.js +95 -95
- package/dist/app.js +9 -9
- package/dist/bus.js +74 -74
- package/dist/chunks/{location-lifecycle-n0fgdapb.js → schema-01tebjt2.js} +1 -1
- package/dist/chunks/{location-lifecycle-3y3gwpwa.js → schema-0cpa7f6c.js} +14 -14
- package/dist/chunks/{location-lifecycle-jbs8hkge.js → schema-0h1mm7qe.js} +5 -5
- package/dist/chunks/{location-lifecycle-hb66tvvt.js → schema-0hsd46jk.js} +42 -42
- package/dist/chunks/{location-lifecycle-drw66kyn.js → schema-0p1vh52y.js} +2 -2
- package/dist/chunks/{location-lifecycle-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-lifecycle-xte6kcyc.js → schema-0r1cr89s.js} +15 -15
- package/dist/chunks/{location-lifecycle-gj71zhbs.js → schema-0r3c1bmw.js} +5 -5
- package/dist/chunks/{location-lifecycle-0vbcp93d.js → schema-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-lifecycle-dshybgh0.js → schema-0yttm9vb.js} +14 -14
- package/dist/chunks/{location-lifecycle-bywta2qc.js → schema-12ve6aey.js} +30 -30
- package/dist/chunks/{location-lifecycle-x6741p5x.js → schema-16dqk34s.js} +4 -4
- package/dist/chunks/{location-lifecycle-73mdynaf.js → schema-1ajmp50w.js} +23 -23
- package/dist/chunks/{location-lifecycle-ywt8jp22.js → schema-1ffvrpkg.js} +6 -6
- package/dist/chunks/{location-lifecycle-rxes2kd3.js → schema-1gqdmt0p.js} +17 -17
- package/dist/chunks/{location-lifecycle-vrrq7v3g.js → schema-1pxz8ven.js} +5 -5
- package/dist/chunks/{location-lifecycle-tmamyrcv.js → schema-1te6z1br.js} +8 -8
- package/dist/chunks/{location-lifecycle-28sbwtwg.js → schema-1z7pb0k6.js} +8 -8
- package/dist/chunks/{location-lifecycle-ybg0vk9q.js → schema-1zf0w0mf.js} +3 -3
- package/dist/chunks/{location-lifecycle-6mjrghw9.js → schema-24f8gbsn.js} +21 -21
- package/dist/chunks/{location-lifecycle-y54x7rf9.js → schema-24kngg5a.js} +14 -14
- package/dist/chunks/{location-lifecycle-h137t1tm.js → schema-25tm57nk.js} +16 -16
- package/dist/chunks/{location-lifecycle-c9rcqwb5.js → schema-29bfqbba.js} +7 -7
- package/dist/chunks/{location-lifecycle-hm9706ak.js → schema-2c3mwd6h.js} +33 -33
- package/dist/chunks/{location-lifecycle-rx0sdv06.js → schema-2jbq5rvd.js} +22 -22
- package/dist/chunks/{location-lifecycle-c6fmn8wk.js → schema-2s1tt141.js} +32 -32
- package/dist/chunks/{location-lifecycle-2vvh33eb.js → schema-2vvh33eb.js} +2 -2
- package/dist/chunks/{location-lifecycle-5y386vat.js → schema-31b2zrgz.js} +14 -14
- package/dist/chunks/{location-lifecycle-h7s7r6s9.js → schema-31xfzrxg.js} +5 -5
- package/dist/chunks/{location-lifecycle-3cegwx68.js → schema-3cegwx68.js} +2 -2
- package/dist/chunks/{location-lifecycle-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-lifecycle-5z1cva2g.js → schema-3g5be3ey.js} +13 -13
- package/dist/chunks/{location-lifecycle-7zt5x37y.js → schema-3g8j9he4.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hwn7j4h.js → schema-3hwn7j4h.js} +2 -2
- package/dist/chunks/{location-lifecycle-2xm3p96n.js → schema-3n0nfbrk.js} +20 -20
- package/dist/chunks/{location-lifecycle-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-lifecycle-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-lifecycle-34c0wdet.js → schema-3xessxdn.js} +30 -30
- package/dist/chunks/{location-lifecycle-p77ec4pm.js → schema-3xw42s60.js} +21 -21
- package/dist/chunks/{location-lifecycle-3zsf4n22.js → schema-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-lifecycle-jrs0eswh.js → schema-41j8cbkr.js} +17 -17
- package/dist/chunks/{location-lifecycle-cc0pwjz5.js → schema-4p5m0t87.js} +75 -75
- package/dist/chunks/{location-lifecycle-4ts7tf6z.js → schema-4ts7tf6z.js} +2 -2
- package/dist/chunks/{location-lifecycle-zd5177c5.js → schema-4vf6p7z8.js} +19 -19
- package/dist/chunks/{location-lifecycle-bn65hgva.js → schema-52jn4qxr.js} +25 -25
- package/dist/chunks/{location-lifecycle-6qn3eqbv.js → schema-52vty0jw.js} +6 -6
- package/dist/chunks/{location-lifecycle-54ma36ye.js → schema-54ma36ye.js} +1 -1
- package/dist/chunks/{location-lifecycle-6fc5fpn8.js → schema-5en7z6zr.js} +9 -9
- package/dist/chunks/{location-lifecycle-vya2br83.js → schema-5gbr5t7g.js} +8 -8
- package/dist/chunks/{location-lifecycle-5m9w47nd.js → schema-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-lifecycle-60x674wm.js → schema-5mw5s2rh.js} +18 -18
- package/dist/chunks/{location-lifecycle-46wg8v1y.js → schema-5s0vrszx.js} +32 -32
- package/dist/chunks/{location-lifecycle-zvepxsaq.js → schema-5sbkfk9m.js} +36 -36
- package/dist/chunks/{location-lifecycle-7ah18n8m.js → schema-5t3z26v9.js} +32 -32
- package/dist/chunks/{location-lifecycle-2c7vrg4p.js → schema-5x6dv44x.js} +11 -11
- package/dist/chunks/{location-lifecycle-x4xev0pa.js → schema-616sprd3.js} +10 -10
- package/dist/chunks/schema-619r8v3y.js +18 -0
- package/dist/chunks/{location-lifecycle-26q3ce80.js → schema-63gxtxwv.js} +31 -31
- package/dist/chunks/{location-lifecycle-bmbr1qe9.js → schema-6ehx317m.js} +8 -8
- package/dist/chunks/{location-lifecycle-gdek2aqx.js → schema-6nd16mgq.js} +1 -1
- package/dist/chunks/{location-lifecycle-rrg348nn.js → schema-6wrgwmsx.js} +8 -8
- package/dist/chunks/{location-lifecycle-6xb47vfp.js → schema-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-lifecycle-q9yaa1j3.js → schema-6y44ky4y.js} +13 -13
- package/dist/chunks/{location-lifecycle-5zt1sg8e.js → schema-70p67exa.js} +56 -56
- package/dist/chunks/{location-lifecycle-emzwemy2.js → schema-751h4z3b.js} +7 -7
- package/dist/chunks/{location-lifecycle-0r015vqz.js → schema-7951xmcm.js} +32 -32
- package/dist/chunks/{location-lifecycle-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-lifecycle-d93whzxd.js → schema-7d29djek.js} +8 -8
- package/dist/chunks/{location-lifecycle-e8vwfchq.js → schema-7dy85ahw.js} +6 -6
- package/dist/chunks/{location-lifecycle-r49y4ggg.js → schema-7fbbp2qf.js} +10 -10
- package/dist/chunks/{location-lifecycle-pm7mfnvc.js → schema-7wy9ttat.js} +33 -33
- package/dist/chunks/{location-lifecycle-72sxpf59.js → schema-82v73sw7.js} +3 -3
- package/dist/chunks/{location-lifecycle-whem3n1c.js → schema-84045amf.js} +5 -5
- package/dist/chunks/{location-lifecycle-ta4gdrp4.js → schema-842tzcmm.js} +13 -13
- package/dist/chunks/{location-lifecycle-84h8c373.js → schema-84h8c373.js} +2 -2
- package/dist/chunks/{location-lifecycle-w1eejvng.js → schema-84txncab.js} +5 -5
- package/dist/chunks/{location-lifecycle-catjr96x.js → schema-8hh8rms7.js} +6 -6
- package/dist/chunks/{location-lifecycle-wnd97rm8.js → schema-8hk55ja4.js} +32 -32
- package/dist/chunks/{location-lifecycle-8m6m0r52.js → schema-8m6m0r52.js} +1 -1
- package/dist/chunks/{location-lifecycle-wfsh46a4.js → schema-8paj7kd6.js} +17 -17
- package/dist/chunks/{location-lifecycle-v2q4wbta.js → schema-8rt53k6z.js} +3 -3
- package/dist/chunks/{location-lifecycle-jws6fkes.js → schema-8sze2n9a.js} +4 -4
- package/dist/chunks/{location-lifecycle-7cn6hban.js → schema-8w4cj8nh.js} +7 -7
- package/dist/chunks/{location-lifecycle-ncg1811x.js → schema-91efdwy5.js} +3 -3
- package/dist/chunks/{location-lifecycle-sp6kk48v.js → schema-94kgfjtq.js} +45 -45
- package/dist/chunks/{location-lifecycle-k6ht319t.js → schema-9eq4r153.js} +19 -19
- package/dist/chunks/{location-lifecycle-tthyfpcc.js → schema-9n19sj5j.js} +24 -24
- package/dist/chunks/{location-lifecycle-52vd1vrk.js → schema-9wjarjqh.js} +29 -29
- package/dist/chunks/{location-lifecycle-mt61c86x.js → schema-9z48nynt.js} +25 -25
- package/dist/chunks/{location-lifecycle-gqtdsdt7.js → schema-addxnjmp.js} +4 -4
- package/dist/chunks/{location-lifecycle-czvw4m05.js → schema-ajdwry64.js} +11 -11
- package/dist/chunks/schema-anxvsj3j.js +26 -0
- package/dist/chunks/{location-lifecycle-nczxqmbc.js → schema-asbbxgy3.js} +9 -9
- package/dist/chunks/{location-lifecycle-3d4ymmg4.js → schema-avae2qkj.js} +20 -20
- package/dist/chunks/{location-lifecycle-mkxbd7ag.js → schema-avk0gjvb.js} +25 -25
- package/dist/chunks/{location-lifecycle-g50v604x.js → schema-b07tzjw9.js} +8 -8
- package/dist/chunks/{location-lifecycle-sbpte7ah.js → schema-b0agzzj4.js} +19 -19
- package/dist/chunks/{location-lifecycle-ts17hsqe.js → schema-b476brms.js} +27 -27
- package/dist/chunks/{location-lifecycle-ztjz61gh.js → schema-b5111p8f.js} +5 -5
- package/dist/chunks/{location-lifecycle-zf3t7jts.js → schema-b5763n3s.js} +14 -14
- package/dist/chunks/{location-lifecycle-jyvkym62.js → schema-b5kphdjs.js} +13 -13
- package/dist/chunks/{location-lifecycle-5dbh8v4y.js → schema-b6nnf8m3.js} +6 -6
- package/dist/chunks/{location-lifecycle-hv6vc6rn.js → schema-b7bdwx76.js} +11 -11
- package/dist/chunks/{location-lifecycle-2zcp66xy.js → schema-b8k8fdv1.js} +29 -29
- package/dist/chunks/{location-lifecycle-se51mkp6.js → schema-b9fnkeff.js} +13 -13
- package/dist/chunks/{location-lifecycle-kspgfatx.js → schema-bbnjbm8a.js} +11 -11
- package/dist/chunks/{location-lifecycle-mk5vzntt.js → schema-bc1esb7h.js} +45 -45
- package/dist/chunks/{location-lifecycle-bvygydr0.js → schema-bcw02e1j.js} +46 -46
- package/dist/chunks/{location-lifecycle-z3w7gkpk.js → schema-bj3d59b5.js} +23 -23
- package/dist/chunks/{location-lifecycle-6tvzbcgz.js → schema-bqxzme6r.js} +12 -12
- package/dist/chunks/{location-lifecycle-j58c5xyq.js → schema-bydnjh3t.js} +9 -9
- package/dist/chunks/{location-lifecycle-jz0442he.js → schema-c23p4ys2.js} +23 -23
- package/dist/chunks/{location-lifecycle-1b14bx28.js → schema-c3pxc7te.js} +24 -24
- package/dist/chunks/{location-lifecycle-a2pw2g3y.js → schema-cbwad64w.js} +33 -33
- package/dist/chunks/{location-lifecycle-ysjryspn.js → schema-d7tt0p63.js} +4 -4
- package/dist/chunks/{location-lifecycle-nzd6vn8m.js → schema-dhr2qr8g.js} +48 -48
- package/dist/chunks/{location-lifecycle-ft3hqk2c.js → schema-djszqvmq.js} +9 -9
- package/dist/chunks/{location-lifecycle-24tete3f.js → schema-dnk41676.js} +46 -46
- package/dist/chunks/{location-lifecycle-dpkg50ah.js → schema-dpkg50ah.js} +1 -1
- package/dist/chunks/{location-lifecycle-63db42yp.js → schema-drnf6xwf.js} +2 -2
- package/dist/chunks/{location-lifecycle-4cj4m838.js → schema-dsaykm6h.js} +13 -13
- package/dist/chunks/{location-lifecycle-66y13w5e.js → schema-dsm6mk11.js} +11 -11
- package/dist/chunks/schema-e2vgrz0c.js +513 -0
- package/dist/chunks/{location-lifecycle-5rzwp8tz.js → schema-e80seqcp.js} +3 -3
- package/dist/chunks/{location-lifecycle-eej6y6fw.js → schema-eej6y6fw.js} +2 -2
- package/dist/chunks/{location-lifecycle-ef5x83kb.js → schema-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-lifecycle-cyf6zbv4.js → schema-enmwmtrr.js} +20 -20
- package/dist/chunks/{location-lifecycle-z6379rrx.js → schema-etmbekfa.js} +3 -3
- package/dist/chunks/{location-lifecycle-fgtd082p.js → schema-even8thr.js} +29 -29
- package/dist/chunks/{location-lifecycle-9tq0xg7p.js → schema-exvgxj6x.js} +9 -9
- package/dist/chunks/{location-lifecycle-racqape9.js → schema-f0q60j9h.js} +18 -18
- package/dist/chunks/{location-lifecycle-q4mwdy11.js → schema-f1t98d39.js} +13 -13
- package/dist/chunks/{location-lifecycle-xr0gz6fs.js → schema-f2kjzyx7.js} +16 -16
- package/dist/chunks/{location-lifecycle-f75zav2x.js → schema-f75zav2x.js} +2 -2
- package/dist/chunks/{location-lifecycle-br1t7y1q.js → schema-fj06szgc.js} +18 -18
- package/dist/chunks/{location-lifecycle-nc8mrn0c.js → schema-fmcjp1ve.js} +16 -16
- package/dist/chunks/{location-lifecycle-n88mnmzv.js → schema-fnkxn25c.js} +5 -5
- package/dist/chunks/{location-lifecycle-xh8062qc.js → schema-fqq9xsk7.js} +17 -17
- package/dist/chunks/{location-lifecycle-khmqacep.js → schema-fxaymqdw.js} +4 -4
- package/dist/chunks/{location-lifecycle-xqvh8cyz.js → schema-fxrw3q79.js} +26 -26
- package/dist/chunks/{location-lifecycle-qf29a4yj.js → schema-fz27cwe3.js} +28 -28
- package/dist/chunks/{location-lifecycle-nj0txakw.js → schema-g0ktjft2.js} +18 -18
- package/dist/chunks/{location-lifecycle-e20nvahg.js → schema-g3gkqvbz.js} +22 -22
- package/dist/chunks/{location-lifecycle-9rrnqe3f.js → schema-g441sed7.js} +11 -11
- package/dist/chunks/{location-lifecycle-wbnahgca.js → schema-g4njwx0b.js} +2 -2
- package/dist/chunks/{location-lifecycle-nd4tfyg0.js → schema-g686f6pq.js} +9 -9
- package/dist/chunks/{location-lifecycle-jkdevf2b.js → schema-gbgdjg8y.js} +37 -37
- package/dist/chunks/{location-lifecycle-q17z9dx8.js → schema-gcavn3wx.js} +5 -5
- package/dist/chunks/{location-lifecycle-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-lifecycle-xs85nqyr.js → schema-gh19h2nq.js} +1 -1
- package/dist/chunks/{location-lifecycle-728sb2n0.js → schema-ghyrxap0.js} +30 -30
- package/dist/chunks/{location-lifecycle-gk8qb678.js → schema-gk8qb678.js} +1 -1
- package/dist/chunks/{location-lifecycle-188e5gmh.js → schema-gw62fr37.js} +26 -26
- package/dist/chunks/{location-lifecycle-dpev6apn.js → schema-gzpc0ern.js} +35 -35
- package/dist/chunks/{location-lifecycle-7n72tp4h.js → schema-h3kn1xt9.js} +4 -4
- package/dist/chunks/{location-lifecycle-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-lifecycle-3xbma361.js → schema-hc5b8hrn.js} +11 -11
- package/dist/chunks/{location-lifecycle-58hq3knj.js → schema-hdta74m5.js} +16 -16
- package/dist/chunks/{location-lifecycle-hgz4x7wa.js → schema-hgz4x7wa.js} +1 -1
- package/dist/chunks/{location-lifecycle-28dbn1rd.js → schema-hmb281w1.js} +5 -5
- package/dist/chunks/{location-lifecycle-fypwfj2h.js → schema-hnbkedn6.js} +11 -11
- package/dist/chunks/{location-lifecycle-mcaxn7jw.js → schema-hrvqnyz4.js} +15 -15
- package/dist/chunks/{location-lifecycle-ntg2j34t.js → schema-htjw9qza.js} +6 -6
- package/dist/chunks/{location-lifecycle-n0bdd1ta.js → schema-hweb1ns6.js} +9 -9
- package/dist/chunks/{location-lifecycle-aw4axk0j.js → schema-j0gzcsx3.js} +11 -11
- package/dist/chunks/{location-lifecycle-j56e64zr.js → schema-j56e64zr.js} +1 -1
- package/dist/chunks/{location-lifecycle-htx223fd.js → schema-j92nemg4.js} +23 -23
- package/dist/chunks/{location-lifecycle-vm49ar1m.js → schema-j9jte45y.js} +181 -181
- package/dist/chunks/{location-lifecycle-baevpaj5.js → schema-jab3hz16.js} +51 -51
- package/dist/chunks/{location-lifecycle-zb153t9f.js → schema-jy9tvk3y.js} +22 -22
- package/dist/chunks/{location-lifecycle-3a2tvshw.js → schema-k0r7s5gk.js} +25 -25
- package/dist/chunks/{location-lifecycle-1t0smfc2.js → schema-k5qw4hft.js} +8 -8
- package/dist/chunks/{location-lifecycle-kb9j3d72.js → schema-kb9j3d72.js} +3 -3
- package/dist/chunks/{location-lifecycle-d7ww3xqa.js → schema-kc6mcnvt.js} +17 -17
- package/dist/chunks/{location-lifecycle-0cg871e2.js → schema-kecqjjhm.js} +5 -5
- package/dist/chunks/{location-lifecycle-cfb0x8fw.js → schema-kjap7t58.js} +88 -88
- package/dist/chunks/{location-lifecycle-a8zjhymg.js → schema-kn9hkvj3.js} +4 -4
- package/dist/chunks/{location-lifecycle-tmadjkjx.js → schema-kxx577b5.js} +9 -9
- package/dist/chunks/{location-lifecycle-ra4gh194.js → schema-kzqm322s.js} +32 -32
- package/dist/chunks/{location-lifecycle-jewzahs7.js → schema-m0r31qfn.js} +4 -4
- package/dist/chunks/{location-lifecycle-js8269pr.js → schema-m1vt9403.js} +11 -11
- package/dist/chunks/{location-lifecycle-m3fdjcah.js → schema-m3fdjcah.js} +1 -1
- package/dist/chunks/{location-lifecycle-r5dp6wge.js → schema-m4crda45.js} +6 -6
- package/dist/chunks/{location-lifecycle-kve97cj3.js → schema-m95zc4xf.js} +15 -15
- package/dist/chunks/{location-lifecycle-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-lifecycle-qvee2413.js → schema-mdjyr85s.js} +21 -21
- package/dist/chunks/{location-lifecycle-qtm129c6.js → schema-mf82c6q7.js} +11 -11
- package/dist/chunks/{location-lifecycle-3fmt7znb.js → schema-mgn9s9vj.js} +55 -55
- package/dist/chunks/{location-lifecycle-qcbftmw3.js → schema-mh4sfpe3.js} +30 -30
- package/dist/chunks/{location-lifecycle-ss358qx3.js → schema-my4zabxr.js} +3 -3
- package/dist/chunks/{location-lifecycle-wv0rwt0n.js → schema-mz7kcatz.js} +29 -29
- package/dist/chunks/{location-lifecycle-gw7cjrad.js → schema-n1n192bv.js} +4 -4
- package/dist/chunks/{location-lifecycle-cxmh4q5b.js → schema-n4r3xatb.js} +4 -4
- package/dist/chunks/{location-lifecycle-4r1h5y3t.js → schema-npz2prbw.js} +37 -37
- package/dist/chunks/{location-lifecycle-z6vc72fy.js → schema-p253t8me.js} +11 -11
- package/dist/chunks/{location-lifecycle-wt09af1m.js → schema-p7jqzqxf.js} +15 -15
- package/dist/chunks/{location-lifecycle-52r27r3y.js → schema-page4y1m.js} +34 -34
- package/dist/chunks/{location-lifecycle-fn8ks8sk.js → schema-pe5zqv13.js} +4 -4
- package/dist/chunks/{location-lifecycle-y5rf7nzv.js → schema-pgp1nwjn.js} +4 -4
- package/dist/chunks/{location-lifecycle-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-lifecycle-vgt9wjat.js → schema-pkb9436j.js} +45 -45
- package/dist/chunks/{location-lifecycle-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{location-lifecycle-2eegacq4.js → schema-pnaxc6j9.js} +8 -8
- package/dist/chunks/{location-lifecycle-970wqp6j.js → schema-ppm6d4hz.js} +5 -5
- package/dist/chunks/{location-lifecycle-ez3n2czz.js → schema-pthxb9ry.js} +30 -30
- package/dist/chunks/{location-lifecycle-q0xm7vwc.js → schema-q0xm7vwc.js} +2 -2
- package/dist/chunks/{location-lifecycle-6th8kdq1.js → schema-q84ymcsc.js} +49 -49
- package/dist/chunks/{location-lifecycle-qgn6gcr1.js → schema-qgn6gcr1.js} +1 -1
- package/dist/chunks/{location-lifecycle-dq5qb3f8.js → schema-qjbhc1am.js} +15 -15
- package/dist/chunks/{location-lifecycle-7x1rct0n.js → schema-qmdebz4g.js} +6 -6
- package/dist/chunks/{location-lifecycle-bajdcy3s.js → schema-qmmh0qgx.js} +5 -5
- package/dist/chunks/{location-lifecycle-qnc92qwc.js → schema-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-lifecycle-7e8cyqab.js → schema-qqqyvqxz.js} +26 -26
- package/dist/chunks/{location-lifecycle-qsdy395h.js → schema-qsdy395h.js} +1 -1
- package/dist/chunks/{location-lifecycle-jj8j6kw2.js → schema-r4e3mj9w.js} +18 -18
- package/dist/chunks/{location-lifecycle-y27q8fpd.js → schema-r6d930kt.js} +11 -11
- package/dist/chunks/{location-lifecycle-f2n192rq.js → schema-r8xr0va3.js} +4 -4
- package/dist/chunks/{location-lifecycle-rdw6cm16.js → schema-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-lifecycle-tx4y1ez1.js → schema-re5apsaa.js} +14 -14
- package/dist/chunks/{location-lifecycle-qt2jh699.js → schema-rfrb0sty.js} +19 -19
- package/dist/chunks/{location-lifecycle-0ntvdsg8.js → schema-rx9ava5n.js} +4 -4
- package/dist/chunks/{location-lifecycle-k76krqzs.js → schema-ryr25ayn.js} +4 -4
- package/dist/chunks/schema-s0y99pez.js +253 -0
- package/dist/chunks/{location-lifecycle-02nrjc1r.js → schema-s8d7rejh.js} +8 -8
- package/dist/chunks/{location-lifecycle-dq53jhb3.js → schema-s9z3c30a.js} +12 -12
- package/dist/chunks/{location-lifecycle-zyk1yjk8.js → schema-scgrse2b.js} +5 -5
- package/dist/chunks/{location-lifecycle-204gxy34.js → schema-scrwg3hs.js} +16 -16
- package/dist/chunks/{location-lifecycle-r39mgnjv.js → schema-sjvzs7k3.js} +33 -33
- package/dist/chunks/{location-lifecycle-xh57mx9e.js → schema-skv1cymz.js} +19 -19
- package/dist/chunks/{location-lifecycle-58aztvgj.js → schema-spj5hr4x.js} +13 -13
- package/dist/chunks/{location-lifecycle-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-lifecycle-89znhe33.js → schema-tcezcvh9.js} +4 -4
- package/dist/chunks/{location-lifecycle-tdstcens.js → schema-tdstcens.js} +1 -1
- package/dist/chunks/{location-lifecycle-mnq1hty6.js → schema-tjy0w605.js} +37 -37
- package/dist/chunks/{location-lifecycle-xwaapbcw.js → schema-tpje4fnv.js} +20 -20
- package/dist/chunks/{location-lifecycle-5xtgfte3.js → schema-tpw6cwsb.js} +8 -8
- package/dist/chunks/{location-lifecycle-n1e733pt.js → schema-ttmwvqbw.js} +9 -9
- package/dist/chunks/{location-lifecycle-38dyq0cw.js → schema-txfbykqs.js} +24 -24
- package/dist/chunks/{location-lifecycle-mv3hx7wz.js → schema-txm3e8qz.js} +4 -4
- package/dist/chunks/{location-lifecycle-tyytaxap.js → schema-tyytaxap.js} +1 -1
- package/dist/chunks/{location-lifecycle-v0es1rhs.js → schema-v0es1rhs.js} +2 -2
- package/dist/chunks/{location-lifecycle-v7p4zvkq.js → schema-v7p4zvkq.js} +2 -2
- package/dist/chunks/{location-lifecycle-veqvce7d.js → schema-veqvce7d.js} +1 -1
- package/dist/chunks/{location-lifecycle-zjhy6y3h.js → schema-vhjvf1ns.js} +21 -21
- package/dist/chunks/{location-lifecycle-fykfh85q.js → schema-vmecfj1a.js} +48 -40
- package/dist/chunks/{location-lifecycle-j9p6vyxb.js → schema-vr8megq1.js} +26 -26
- package/dist/chunks/{location-lifecycle-vzs5sf6e.js → schema-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-lifecycle-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-lifecycle-q8r22k9v.js → schema-w3x9v1nk.js} +8 -8
- package/dist/chunks/{location-lifecycle-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{location-lifecycle-qc13nv8d.js → schema-we4ydj7w.js} +28 -28
- package/dist/chunks/{location-lifecycle-ntjv7s1m.js → schema-wx6xjdmh.js} +3 -3
- package/dist/chunks/{location-lifecycle-av3carq6.js → schema-x651es2g.js} +4 -4
- package/dist/chunks/{location-lifecycle-ytvhpjjh.js → schema-x8181hqt.js} +11 -11
- package/dist/chunks/{location-lifecycle-w0nwb4bd.js → schema-xcmk6yw7.js} +11 -11
- package/dist/chunks/{location-lifecycle-qqeeq2t9.js → schema-xfkkasph.js} +7 -7
- package/dist/chunks/{location-lifecycle-rs2vby53.js → schema-xptvtjnp.js} +11 -11
- package/dist/chunks/{location-lifecycle-ta4z4kqm.js → schema-xxg2cwm3.js} +22 -22
- package/dist/chunks/{location-lifecycle-8fbjyakg.js → schema-y1346aqr.js} +25 -25
- package/dist/chunks/{location-lifecycle-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-lifecycle-q3mz62de.js → schema-y2seww6j.js} +13 -13
- package/dist/chunks/{location-lifecycle-gffqj91w.js → schema-y54hr7f3.js} +9 -9
- package/dist/chunks/{location-lifecycle-2myva995.js → schema-ycjb11n5.js} +6 -6
- package/dist/chunks/{location-lifecycle-wzdsgtqx.js → schema-ye6fgm33.js} +94 -94
- package/dist/chunks/{location-lifecycle-65z6vshz.js → schema-yekg5bww.js} +9 -9
- package/dist/chunks/{location-lifecycle-97t4ar9r.js → schema-ygbc3xn1.js} +19 -19
- package/dist/chunks/{location-lifecycle-n6n3gpt4.js → schema-ykk7pmdn.js} +4 -4
- package/dist/chunks/{location-lifecycle-pw2w1cay.js → schema-ymg8axns.js} +3 -3
- package/dist/chunks/{location-lifecycle-05pgskzd.js → schema-yt1db69f.js} +20 -20
- package/dist/chunks/{location-lifecycle-8663xt68.js → schema-yy8c48ah.js} +24 -24
- package/dist/chunks/{location-lifecycle-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-lifecycle-649whvfn.js → schema-zczs6yb2.js} +21 -21
- package/dist/chunks/{location-lifecycle-vapvv5jn.js → schema-zp79rdht.js} +13 -13
- package/dist/chunks/{location-lifecycle-1bmjn0qh.js → schema-zq01xz8r.js} +8 -8
- package/dist/chunks/{location-lifecycle-zr2ceqn5.js → schema-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-lifecycle-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
- package/dist/chunks/{location-lifecycle-4eve0svh.js → schema-zy4v1d78.js} +32 -32
- 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 +84 -84
- package/dist/config/discovery.js +85 -85
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +100 -100
- package/dist/config/plugin/agent.js +119 -119
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +119 -119
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +119 -119
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +120 -120
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +118 -118
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +122 -122
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +86 -86
- package/dist/database/database.js +71 -71
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration.gen.js +50 -50
- package/dist/database/migration.js +52 -52
- 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 +80 -80
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +367 -367
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +94 -94
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +96 -96
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +75 -75
- package/dist/file-access.js +105 -105
- package/dist/file-mutation.js +95 -95
- 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 +221 -221
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +104 -104
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +105 -105
- package/dist/form.js +85 -85
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +106 -106
- 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 +100 -100
- 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 +358 -358
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +88 -88
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +74 -74
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +108 -108
- package/dist/location-service-map.js +87 -87
- package/dist/location-services.js +355 -355
- package/dist/location.js +82 -82
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +110 -110
- package/dist/mcp/instructions.js +130 -130
- package/dist/mcp/oauth.js +79 -79
- package/dist/mcp/stdio.js +91 -91
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +100 -100
- package/dist/model-resolver.js +99 -99
- package/dist/model.js +103 -103
- package/dist/models-dev.js +104 -104
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +114 -114
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +91 -91
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -76
- package/dist/plugin/agent.js +77 -77
- package/dist/plugin/command.js +103 -103
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- 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-defaults.js +3 -3
- package/dist/plugin/models-dev.js +97 -97
- package/dist/plugin/module.js +116 -116
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +103 -103
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +91 -91
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +95 -95
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -113
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +94 -94
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +96 -96
- package/dist/plugin/provider/gitlab.js +94 -94
- package/dist/plugin/provider/google-vertex.js +114 -114
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +79 -79
- package/dist/plugin/provider/lmstudio.js +124 -124
- package/dist/plugin/provider/local.js +123 -123
- package/dist/plugin/provider/modal.js +93 -93
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +126 -126
- package/dist/plugin/provider/openai.js +94 -94
- package/dist/plugin/provider/opencode.js +98 -98
- package/dist/plugin/provider/openrouter.js +92 -92
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +80 -80
- package/dist/plugin/provider/prompt-cache-key.js +91 -91
- package/dist/plugin/provider/sap-ai-core.js +92 -92
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -116
- package/dist/plugin/provider/vercel.js +91 -91
- package/dist/plugin/provider/vllm.js +126 -126
- package/dist/plugin/provider/xai.js +92 -92
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +77 -77
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -135
- 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 +87 -87
- package/dist/plugin/vcs/hg.js +87 -87
- package/dist/plugin/verbosity.js +94 -94
- package/dist/plugin/warming.js +115 -115
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +221 -221
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -81
- package/dist/provider.js +102 -102
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +98 -98
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +92 -92
- package/dist/repository-cache.js +82 -82
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +98 -98
- package/dist/rpc.js +87 -87
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +75 -75
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +154 -154
- package/dist/session/diff.js +89 -89
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +155 -155
- 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 +80 -80
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +121 -121
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +87 -87
- package/dist/session/prompt.js +106 -106
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +91 -91
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +99 -99
- package/dist/session/runner/publish-llm-event.js +114 -114
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +104 -104
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +76 -76
- package/dist/session/store.js +88 -88
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +214 -214
- 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 +11 -11
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +115 -115
- package/dist/snapshot.js +94 -94
- 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 +129 -129
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +119 -119
- package/dist/tool/plugin/grep.js +125 -125
- package/dist/tool/plugin/mcp-resource.js +118 -118
- package/dist/tool/plugin/opencode.js +110 -110
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +106 -106
- package/dist/tool/plugin/read.js +120 -120
- package/dist/tool/plugin/shell.js +207 -207
- package/dist/tool/plugin/skill.js +114 -114
- package/dist/tool/plugin/subagent.js +205 -205
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +115 -115
- package/dist/tool/plugin/write.js +123 -123
- package/dist/tool/read-filesystem.js +101 -101
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- 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/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +93 -93
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +94 -94
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +90 -90
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +82 -82
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +81 -81
- 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 +90 -90
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/location-lifecycle-1x5ztp1j.js +0 -253
- package/dist/chunks/location-lifecycle-8gkr3zdc.js +0 -513
- package/dist/chunks/location-lifecycle-ant6xbdj.js +0 -26
- package/dist/chunks/location-lifecycle-phz3h32g.js +0 -18
- /package/dist/chunks/{location-lifecycle-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2bv980vf.js → schema-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-34c7v6d4.js → schema-34c7v6d4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3t0ybcrp.js → schema-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-lifecycle-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-lifecycle-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-5qd3pb7m.js → schema-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6q2bdcd1.js → schema-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-84wd9syh.js → schema-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-lifecycle-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-lifecycle-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-lifecycle-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-lifecycle-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bw78ga2c.js → schema-bw78ga2c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dajrwvna.js → schema-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-lifecycle-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-lifecycle-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jze0r7bz.js → schema-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-lifecycle-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-pyv0edze.js → schema-pyv0edze.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ve7vex1e.js → schema-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ym463w8f.js → schema-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z5v4ffb3.js → schema-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./schema-b7bdwx76.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./schema-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./schema-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
18
18
|
__export(exports_bus, {
|
|
19
19
|
Bus: () => exports_bus,
|
|
20
20
|
InvalidDurableEventError: () => InvalidDurableEventError2,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service84,
|
|
22
22
|
configured: () => configured12,
|
|
23
23
|
durable: () => durable2,
|
|
24
24
|
ephemeral: () => ephemeral2,
|
|
25
25
|
isSynced: () => isSynced2,
|
|
26
26
|
latestSequence: () => latestSequence2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node88,
|
|
28
28
|
reserveSequence: () => reserveSequence2,
|
|
29
29
|
versionedType: () => versionedType2
|
|
30
30
|
});
|
|
@@ -76,13 +76,13 @@ var ephemeral2 = Event.ephemeral;
|
|
|
76
76
|
var isSynced2 = (item) => item.type === "log.synced";
|
|
77
77
|
var isDefinition = (input) => !Array.isArray(input);
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service84 extends Context.Service()("@opencode/Bus") {
|
|
80
80
|
}
|
|
81
81
|
function configured12(options) {
|
|
82
82
|
return makeGlobalNode({
|
|
83
|
-
service:
|
|
84
|
-
deps: [
|
|
85
|
-
layer: Layer.effect(
|
|
83
|
+
service: Service84,
|
|
84
|
+
deps: [node89],
|
|
85
|
+
layer: Layer.effect(Service84, Effect.gen(function* () {
|
|
86
86
|
const { Location } = yield* Effect.promise(() => import("../location.js"));
|
|
87
87
|
const { SessionTable } = yield* Effect.promise(() => import("../session/sql.js"));
|
|
88
88
|
const pubsub = {
|
|
@@ -93,7 +93,7 @@ function configured12(options) {
|
|
|
93
93
|
const projectors = new Map;
|
|
94
94
|
const listeners = new Array;
|
|
95
95
|
const durableLocks = makeUnsafe2();
|
|
96
|
-
const { db } = yield*
|
|
96
|
+
const { db } = yield* Service85;
|
|
97
97
|
const logReadPageSize = options?.logReadPageSize ?? 512;
|
|
98
98
|
const persist = options?.persist ?? false;
|
|
99
99
|
const sessions = new Map;
|
|
@@ -525,7 +525,7 @@ function configured12(options) {
|
|
|
525
525
|
list.push((event) => projector(event));
|
|
526
526
|
projectors.set(key, list);
|
|
527
527
|
});
|
|
528
|
-
return
|
|
528
|
+
return Service84.of({
|
|
529
529
|
publish,
|
|
530
530
|
publishAll,
|
|
531
531
|
subscribe,
|
|
@@ -539,6 +539,6 @@ function configured12(options) {
|
|
|
539
539
|
}))
|
|
540
540
|
});
|
|
541
541
|
}
|
|
542
|
-
var
|
|
542
|
+
var node88 = configured12();
|
|
543
543
|
|
|
544
|
-
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2,
|
|
544
|
+
export { latestSequence2, reserveSequence2, InvalidDurableEventError2, versionedType2, durable2, ephemeral2, isSynced2, Service84, configured12, node88, exports_bus };
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
deletePatch2,
|
|
8
8
|
countPatch2,
|
|
9
9
|
chunksByFile2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./schema-tazgh4e4.js";
|
|
11
11
|
import {
|
|
12
12
|
Service81
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./schema-g4njwx0b.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./schema-vhjvf1ns.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./schema-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin/vcs/hg.ts
|
|
22
22
|
var exports_hg = {};
|
|
23
23
|
__export(exports_hg, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin16,
|
|
25
25
|
VcsHgPlugin: () => exports_hg
|
|
26
26
|
});
|
|
27
27
|
import path from "path";
|
|
@@ -30,7 +30,7 @@ import { ChildProcess } from "effect/process";
|
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
32
32
|
import { AppProcess } from "@opencode/util/process";
|
|
33
|
-
var
|
|
33
|
+
var Plugin16 = define({
|
|
34
34
|
id: "opencode.vcs.hg",
|
|
35
35
|
effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
|
|
36
36
|
const location = yield* Service81;
|
|
@@ -198,4 +198,4 @@ function makeHg(proc, worktree) {
|
|
|
198
198
|
return { status, diff, branch, ancestor, cat };
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
export {
|
|
201
|
+
export { Plugin16, exports_hg };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
4
|
+
node56
|
|
5
|
+
} from "./schema-hnbkedn6.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-n1n192bv.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service70,
|
|
12
|
+
node74
|
|
13
|
+
} from "./schema-pnaxc6j9.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./schema-mgn9s9vj.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./schema-b5763n3s.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Error4
|
|
22
|
+
} from "./schema-c3pxc7te.js";
|
|
23
23
|
import {
|
|
24
24
|
get5
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./schema-54ma36ye.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
27
|
+
Service41,
|
|
28
|
+
node44
|
|
29
|
+
} from "./schema-x8181hqt.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
} from "./
|
|
31
|
+
make15
|
|
32
|
+
} from "./schema-xfkkasph.js";
|
|
33
33
|
import {
|
|
34
34
|
toLLMMessages2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./schema-3g8j9he4.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./schema-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/session/model-request.ts
|
|
41
41
|
var exports_model_request = {};
|
|
42
42
|
__export(exports_model_request, {
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service40,
|
|
44
44
|
SessionModelRequest: () => exports_model_request,
|
|
45
45
|
baseTranscript: () => baseTranscript2,
|
|
46
46
|
boundImages: () => boundImages2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer16,
|
|
48
|
+
node: () => node43,
|
|
49
49
|
unsupportedParts: () => unsupportedParts2
|
|
50
50
|
});
|
|
51
51
|
import {
|
|
@@ -82,7 +82,7 @@ var baseTranscript2 = (input) => {
|
|
|
82
82
|
return {
|
|
83
83
|
providerMetadataKey,
|
|
84
84
|
system: [
|
|
85
|
-
input.agent.system ? input.agent.system :
|
|
85
|
+
input.agent.system ? input.agent.system : make15(input.tools.definitions.map((tool) => tool.name)),
|
|
86
86
|
input.initial
|
|
87
87
|
].filter((part) => part.length > 0).map(SystemPart.make),
|
|
88
88
|
messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
|
|
@@ -155,11 +155,11 @@ var boundImages2 = (messages) => {
|
|
|
155
155
|
});
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
-
class
|
|
158
|
+
class Service40 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
159
159
|
}
|
|
160
|
-
var
|
|
161
|
-
const hooks = yield*
|
|
162
|
-
const transport = yield*
|
|
160
|
+
var layer16 = Layer.effect(Service40, Effect.gen(function* () {
|
|
161
|
+
const hooks = yield* Service70;
|
|
162
|
+
const transport = yield* Service41;
|
|
163
163
|
const app = yield* Metadata2;
|
|
164
164
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
165
165
|
const session = input.session;
|
|
@@ -167,7 +167,7 @@ var layer10 = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
167
167
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
168
168
|
const tools = input.tools ?? {
|
|
169
169
|
definitions: [],
|
|
170
|
-
execute: () => new
|
|
170
|
+
execute: () => new Error4({ message: "Tools are not available for this request" })
|
|
171
171
|
};
|
|
172
172
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
173
173
|
const shaped = yield* shape({
|
|
@@ -264,17 +264,17 @@ var layer10 = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
264
264
|
};
|
|
265
265
|
});
|
|
266
266
|
const agentHook = (name, agent) => (draft, tools) => hooks.trigger("session", name, { ...draft, agent, tools });
|
|
267
|
-
return
|
|
267
|
+
return Service40.of({
|
|
268
268
|
primary: (input) => prepare("primary", input, agentHook("context", input.agent)),
|
|
269
269
|
compaction: (input) => prepare("compaction", input, agentHook("compaction", input.agent)),
|
|
270
270
|
generate: (input) => prepare("generate", input, agentHook("generate", input.agent)),
|
|
271
271
|
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
272
272
|
});
|
|
273
273
|
}));
|
|
274
|
-
var
|
|
275
|
-
service:
|
|
276
|
-
layer:
|
|
277
|
-
deps: [
|
|
274
|
+
var node43 = makeLocationNode({
|
|
275
|
+
service: Service40,
|
|
276
|
+
layer: layer16,
|
|
277
|
+
deps: [node74, node44, node56]
|
|
278
278
|
});
|
|
279
279
|
|
|
280
|
-
export { baseTranscript2, unsupportedParts2, boundImages2,
|
|
280
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service40, layer16, node43, exports_model_request };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
load4
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-5qd3pb7m.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event10,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options6,
|
|
17
|
+
Service: () => Service48,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured6,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer20,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node51,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,7 +33,7 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event10 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
39
|
return createWrapper(load4());
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options6 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service48 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer20 = (options) => Layer.effect(Service48, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service48.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer22 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service48.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer20().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service48).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service48, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured6(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service48, layer: layer20(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node51 = configured6();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event10, hasNativeBinding2, Native3, Options6, Service48, Test3, layer20, testLayer3, nativeLayer2, nativeNode2, configured6, node51, exports_watcher };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./schema-25tm57nk.js";
|
|
1
5
|
import {
|
|
2
6
|
Service83,
|
|
3
7
|
node87
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Service85,
|
|
7
|
-
node89
|
|
8
|
-
} from "./location-lifecycle-6tvzbcgz.js";
|
|
8
|
+
} from "./schema-bqxzme6r.js";
|
|
9
9
|
import {
|
|
10
10
|
Service81,
|
|
11
11
|
node85
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./schema-g4njwx0b.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-619r8v3y.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service48,
|
|
18
|
+
node51
|
|
19
|
+
} from "./schema-2jbq5rvd.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
node20
|
|
22
|
+
} from "./schema-zczs6yb2.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service10,
|
|
25
|
+
node12
|
|
26
|
+
} from "./schema-djszqvmq.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./schema-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/filesystem/location-watcher.ts
|
|
32
|
-
var
|
|
33
|
-
__export(
|
|
34
|
-
LocationWatcher: () =>
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
32
|
+
var exports_location_watcher = {};
|
|
33
|
+
__export(exports_location_watcher, {
|
|
34
|
+
LocationWatcher: () => exports_location_watcher,
|
|
35
|
+
Service: () => Service2,
|
|
36
|
+
node: () => node2
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service2 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
46
46
|
const location = yield* Service81;
|
|
47
|
-
const watcher = yield*
|
|
48
|
-
const bus = yield*
|
|
47
|
+
const watcher = yield* Service48;
|
|
48
|
+
const bus = yield* Service84;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service83;
|
|
51
|
+
const policy = yield* Service10;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service2.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node2 = makeLocationNode({
|
|
106
|
+
service: Service2,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node51, FSUtil.node, node85, node87, node88, node20, node12]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service2, node2, exports_location_watcher };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-jze0r7bz.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service84
|
|
3
|
+
} from "./schema-25tm57nk.js";
|
|
4
4
|
import {
|
|
5
5
|
Service81
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-g4njwx0b.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service39
|
|
10
|
+
} from "./schema-jab3hz16.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./schema-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
CommandPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_command = {};
|
|
17
|
+
__export(exports_command, {
|
|
18
|
+
CommandPlugin: () => exports_command,
|
|
19
|
+
Plugin: () => Plugin26
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,12 +193,12 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin26 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
199
|
const location = yield* Service81;
|
|
200
|
-
const mcp = yield*
|
|
201
|
-
const bus = yield*
|
|
200
|
+
const mcp = yield* Service39;
|
|
201
|
+
const bus = yield* Service84;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
204
204
|
loaded.prompts = yield* mcp.prompts();
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin26, exports_command };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
10
10
|
__export(exports_message_updater, {
|
|
11
11
|
SessionMessageUpdater: () => exports_message_updater,
|
|
12
|
-
update: () =>
|
|
12
|
+
update: () => update3
|
|
13
13
|
});
|
|
14
14
|
import { castDraft, produce } from "immer";
|
|
15
15
|
import { DateTime, Effect, Match, pipe, Schema } from "effect";
|
|
@@ -21,7 +21,7 @@ var projectTerminalSnapshot = (draft, event) => {
|
|
|
21
21
|
files: event.data.files ? Array.from(event.data.files) : undefined
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function update3(adapter, event) {
|
|
25
25
|
const created = DateTime.makeUnsafe(event.created);
|
|
26
26
|
const latestTool = (assistant, id) => assistant.content.findLast((item) => item.type === "tool" && item.id === id);
|
|
27
27
|
const latestText = (assistant) => assistant.content.findLast((item) => item.type === "text");
|
|
@@ -403,4 +403,4 @@ function update2(adapter, event) {
|
|
|
403
403
|
return project(event);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
export {
|
|
406
|
+
export { update3, exports_message_updater };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2,
|
|
3
3
|
absoluteArrayColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./schema-qnc92qwc.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-qfa1cgps.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service54,
|
|
6
|
+
node58
|
|
7
|
+
} from "./schema-24f8gbsn.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./schema-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service17,
|
|
17
|
+
node: () => node19,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service17 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service54;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service17.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node19 = makeLocationNode({ service: Service17, layer, deps: [node58] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service17, readText2, syncTextBom2, node19, exports_file_mutation };
|