@opencode/core 0.0.0-dev-21764 → 0.0.0-dev-21765
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 +92 -92
- package/dist/aisdk.js +98 -98
- package/dist/app.js +5 -5
- package/dist/bus.js +75 -75
- package/dist/chunks/{file-mutation-vprqjk3y.js → schema-00v1n14z.js} +4 -4
- package/dist/chunks/{file-mutation-q7rdkpep.js → schema-029wrt9s.js} +4 -4
- package/dist/chunks/{file-mutation-034tev2y.js → schema-034tev2y.js} +2 -2
- package/dist/chunks/{file-mutation-qxqh84zc.js → schema-07nbdp2k.js} +10 -10
- package/dist/chunks/{file-mutation-qvf9anv7.js → schema-0nhvm0pw.js} +22 -22
- package/dist/chunks/{file-mutation-pfq1ksym.js → schema-0t098hqn.js} +5 -5
- package/dist/chunks/{file-mutation-8fz9qv1y.js → schema-11e7b702.js} +7 -7
- package/dist/chunks/{file-mutation-v0tjffkk.js → schema-11j43tsy.js} +13 -13
- package/dist/chunks/{file-mutation-mtpeagzc.js → schema-143qq2q9.js} +3 -3
- package/dist/chunks/{file-mutation-xh0rg2ax.js → schema-154zyqc4.js} +7 -7
- package/dist/chunks/{file-mutation-kxjzb63p.js → schema-1616ycsj.js} +16 -16
- package/dist/chunks/{file-mutation-gcjdgkn2.js → schema-18g90bpv.js} +9 -9
- package/dist/chunks/{file-mutation-1ep2p91f.js → schema-1ep2p91f.js} +2 -2
- package/dist/chunks/{file-mutation-zgn0e7bm.js → schema-1hcmr4yw.js} +32 -32
- package/dist/chunks/{file-mutation-brp5t0mv.js → schema-1j2pc25j.js} +24 -24
- package/dist/chunks/{file-mutation-yq70x34n.js → schema-1m98x74e.js} +6 -6
- package/dist/chunks/{file-mutation-299v56h7.js → schema-1tjn92rn.js} +13 -13
- package/dist/chunks/{file-mutation-1x2knyw4.js → schema-1x2knyw4.js} +1 -1
- package/dist/chunks/{file-mutation-hnbfpcqv.js → schema-1zdtg2jw.js} +36 -36
- package/dist/chunks/{file-mutation-23yr3n9z.js → schema-1zn3aj1m.js} +1 -1
- package/dist/chunks/{file-mutation-v17rck64.js → schema-24tftcpc.js} +57 -57
- package/dist/chunks/{file-mutation-sndntm2r.js → schema-282ey04p.js} +24 -24
- package/dist/chunks/{file-mutation-q9p72tx2.js → schema-2862db0g.js} +71 -66
- package/dist/chunks/{file-mutation-sxeq46ve.js → schema-2f6bhtqc.js} +7 -7
- package/dist/chunks/{file-mutation-st6532p2.js → schema-2nbqrcwe.js} +11 -11
- package/dist/chunks/{file-mutation-8qe8mbnw.js → schema-2s3mabk8.js} +21 -21
- package/dist/chunks/{file-mutation-s1yg9hd2.js → schema-2wcgdjv5.js} +18 -18
- package/dist/chunks/{file-mutation-q2qa99s7.js → schema-2yrt0cx2.js} +11 -11
- package/dist/chunks/{file-mutation-2z1j29yd.js → schema-2z1j29yd.js} +1 -1
- package/dist/chunks/{file-mutation-nxwvdtkc.js → schema-30e1bg64.js} +5 -5
- package/dist/chunks/{file-mutation-atdxfxea.js → schema-329weprz.js} +30 -30
- package/dist/chunks/{file-mutation-8tbw44dq.js → schema-3a63316c.js} +4 -4
- package/dist/chunks/{file-mutation-3s5n2216.js → schema-3amvxph1.js} +13 -13
- package/dist/chunks/{file-mutation-kh1vw83k.js → schema-3fn32fyw.js} +2 -2
- package/dist/chunks/{file-mutation-b2n4kpg1.js → schema-3h9mmrds.js} +20 -20
- package/dist/chunks/{file-mutation-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-mutation-pdwvva8b.js → schema-3k4jc8v0.js} +5 -5
- package/dist/chunks/{file-mutation-tpm1qpxt.js → schema-3mgb105e.js} +9 -9
- package/dist/chunks/{file-mutation-qjgzc4b4.js → schema-3nfpgkj0.js} +4 -4
- package/dist/chunks/{file-mutation-3nnrz6f6.js → schema-3nnrz6f6.js} +1 -1
- package/dist/chunks/{file-mutation-5qv54f7z.js → schema-3p1ty9zs.js} +9 -9
- package/dist/chunks/{file-mutation-fzpdbh9r.js → schema-3vkndy7n.js} +30 -30
- package/dist/chunks/{file-mutation-p8mg4rnn.js → schema-4266znvz.js} +48 -48
- package/dist/chunks/{file-mutation-qe8qxr7j.js → schema-4aq7en99.js} +36 -36
- package/dist/chunks/{file-mutation-n1pz9w08.js → schema-4c4ax3zv.js} +4 -4
- package/dist/chunks/{file-mutation-y0r2nan2.js → schema-4d9qj03b.js} +19 -19
- package/dist/chunks/{file-mutation-pb0whgjq.js → schema-4dh6ns0s.js} +28 -28
- package/dist/chunks/{file-mutation-q0cbencw.js → schema-4f1nz0wt.js} +2 -2
- package/dist/chunks/{file-mutation-ctabavz2.js → schema-4qz42npy.js} +20 -20
- package/dist/chunks/{file-mutation-4v008n1t.js → schema-4v008n1t.js} +1 -1
- package/dist/chunks/{file-mutation-4xvmh7wp.js → schema-4xvmh7wp.js} +3 -3
- package/dist/chunks/{file-mutation-zeztr7cr.js → schema-520chd1c.js} +28 -28
- package/dist/chunks/{file-mutation-vjk8yab7.js → schema-524rwz3q.js} +195 -195
- package/dist/chunks/{file-mutation-dvbewn83.js → schema-59zf53qd.js} +4 -4
- package/dist/chunks/{file-mutation-xgyrt5mg.js → schema-5e3hd4xw.js} +11 -11
- package/dist/chunks/{file-mutation-r41sfy63.js → schema-5enarcya.js} +9 -9
- package/dist/chunks/{file-mutation-5m9w47nd.js → schema-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-mutation-v6bgn6xy.js → schema-5ryvfs0w.js} +26 -26
- package/dist/chunks/{file-mutation-cqcvpaa1.js → schema-5w8m9xv3.js} +11 -11
- package/dist/chunks/{file-mutation-qavs5vq9.js → schema-5xz4c498.js} +16 -16
- package/dist/chunks/{file-mutation-jgk1jw6b.js → schema-617kavm2.js} +14 -14
- package/dist/chunks/{file-mutation-vhn1km4s.js → schema-69akfaf3.js} +32 -32
- package/dist/chunks/schema-6cfsdsjt.js +26 -0
- package/dist/chunks/{file-mutation-d6a2g7hg.js → schema-6cz5w7zs.js} +29 -29
- package/dist/chunks/{file-mutation-6esdw8yj.js → schema-6esdw8yj.js} +1 -1
- package/dist/chunks/{file-mutation-c1vp62rn.js → schema-6m5m35mz.js} +12 -12
- package/dist/chunks/{file-mutation-6pjqjmy2.js → schema-6pjqjmy2.js} +1 -1
- package/dist/chunks/{file-mutation-z4qvj0p0.js → schema-6qzhxdk4.js} +42 -42
- package/dist/chunks/{file-mutation-3kcm3cr6.js → schema-6sdvvr9a.js} +10 -10
- package/dist/chunks/{file-mutation-2xk8pskj.js → schema-6twctan0.js} +8 -8
- package/dist/chunks/{file-mutation-w8qtt4th.js → schema-76cb1hcw.js} +4 -4
- package/dist/chunks/{file-mutation-db21j9qk.js → schema-787db2tc.js} +9 -9
- package/dist/chunks/{file-mutation-12a87htm.js → schema-7a1enj4j.js} +8 -8
- package/dist/chunks/{file-mutation-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-mutation-gspt6sck.js → schema-7df12zw2.js} +15 -15
- package/dist/chunks/{file-mutation-w6qwbe6w.js → schema-7dm1knrr.js} +25 -25
- package/dist/chunks/{file-mutation-1fz8ksxp.js → schema-7ejbfbtt.js} +50 -50
- package/dist/chunks/{file-mutation-r4tfxt3f.js → schema-7gf3pvgw.js} +46 -46
- package/dist/chunks/{file-mutation-t5xvwr0v.js → schema-7m47pp9z.js} +35 -35
- package/dist/chunks/{file-mutation-2x7k2tv7.js → schema-7pnkfavj.js} +45 -45
- package/dist/chunks/{file-mutation-7w2ypzdf.js → schema-7w2ypzdf.js} +1 -1
- package/dist/chunks/{file-mutation-x75whda2.js → schema-7werj5s1.js} +14 -14
- package/dist/chunks/{file-mutation-ybycavcp.js → schema-7wrq6vcn.js} +17 -17
- package/dist/chunks/{file-mutation-5yh6gtt2.js → schema-81vtq34g.js} +20 -20
- package/dist/chunks/{file-mutation-75d5grb6.js → schema-88118qy8.js} +31 -31
- package/dist/chunks/{file-mutation-033a0jkt.js → schema-8bc2ahr8.js} +3 -3
- package/dist/chunks/{file-mutation-4bccegnb.js → schema-8dbgzqh1.js} +13 -13
- package/dist/chunks/{file-mutation-wvn9agqa.js → schema-8jvj9h14.js} +11 -11
- package/dist/chunks/{file-mutation-tn37q2tj.js → schema-8mh45d2n.js} +10 -10
- package/dist/chunks/{file-mutation-ec5kptgt.js → schema-8nyb9b1r.js} +6 -6
- package/dist/chunks/{file-mutation-8wtp7s3z.js → schema-8wtp7s3z.js} +1 -1
- package/dist/chunks/{file-mutation-7987nrfd.js → schema-8x737kf8.js} +21 -21
- package/dist/chunks/{file-mutation-91rj84md.js → schema-91rj84md.js} +1 -1
- package/dist/chunks/{file-mutation-g484p7w5.js → schema-92fa10hr.js} +29 -29
- package/dist/chunks/{file-mutation-998yhzzq.js → schema-998yhzzq.js} +3 -3
- package/dist/chunks/{file-mutation-3s1mf836.js → schema-99g6fqdz.js} +14 -14
- package/dist/chunks/{file-mutation-g8ycf2ce.js → schema-9rc4as14.js} +83 -83
- package/dist/chunks/{file-mutation-tqpw8n9t.js → schema-9vnq5g15.js} +10 -10
- package/dist/chunks/{file-mutation-x96j0kvq.js → schema-9yy9tn8q.js} +8 -8
- package/dist/chunks/{file-mutation-8404fn9j.js → schema-a1y47zhx.js} +6 -6
- package/dist/chunks/{file-mutation-4qyttppm.js → schema-a3brrxmc.js} +5 -5
- package/dist/chunks/{file-mutation-zycxxtq8.js → schema-a422z98d.js} +19 -19
- package/dist/chunks/{file-mutation-w7akjha9.js → schema-a4bkh64k.js} +13 -13
- package/dist/chunks/{file-mutation-rb428vte.js → schema-a7p56gbj.js} +9 -9
- package/dist/chunks/{file-mutation-efr9f7w8.js → schema-acdmrrd1.js} +8 -8
- package/dist/chunks/{file-mutation-c3cfh5w6.js → schema-aktgv3ye.js} +9 -9
- package/dist/chunks/{file-mutation-sgzfv2ep.js → schema-aq1t7e1s.js} +7 -7
- package/dist/chunks/{file-mutation-r26ws53m.js → schema-aqhppgmk.js} +11 -11
- package/dist/chunks/{file-mutation-rwp901jg.js → schema-ar2j3j0f.js} +4 -4
- package/dist/chunks/{file-mutation-njq30gkr.js → schema-axrk0dbh.js} +1 -1
- package/dist/chunks/{file-mutation-ayjs7tqn.js → schema-ayjs7tqn.js} +2 -2
- package/dist/chunks/{file-mutation-b0mv4wxm.js → schema-b0mv4wxm.js} +2 -2
- package/dist/chunks/{file-mutation-9czp4gmt.js → schema-b6h084j4.js} +29 -29
- package/dist/chunks/{file-mutation-b6vsg801.js → schema-b6vsg801.js} +2 -2
- package/dist/chunks/{file-mutation-prd8gnhb.js → schema-c5kjsz6q.js} +4 -4
- package/dist/chunks/{file-mutation-65x6vsj8.js → schema-c99atrka.js} +22 -22
- package/dist/chunks/{file-mutation-xd4cchzg.js → schema-c9qwnmqv.js} +41 -41
- package/dist/chunks/{file-mutation-fbdaedg4.js → schema-cnpyaq5p.js} +14 -14
- package/dist/chunks/{file-mutation-ppd8r3bw.js → schema-cwz77rcy.js} +11 -11
- package/dist/chunks/{file-mutation-d4v9tmah.js → schema-d4v9tmah.js} +2 -2
- package/dist/chunks/{file-mutation-k0fwm03j.js → schema-d61b7cet.js} +5 -5
- package/dist/chunks/{file-mutation-hfs7ms8q.js → schema-dfay5gjp.js} +27 -27
- package/dist/chunks/{file-mutation-vn0431e0.js → schema-dtavj5d7.js} +17 -17
- package/dist/chunks/{file-mutation-ed4thbkn.js → schema-dtg24jm0.js} +92 -92
- package/dist/chunks/{file-mutation-8c5q3ptd.js → schema-e1crchvn.js} +9 -9
- package/dist/chunks/{file-mutation-e834z07m.js → schema-e834z07m.js} +1 -1
- package/dist/chunks/{file-mutation-k533psas.js → schema-e8gd4gpa.js} +9 -9
- package/dist/chunks/{file-mutation-0xwwrpjs.js → schema-eda149f3.js} +48 -48
- package/dist/chunks/{file-mutation-sncwygnk.js → schema-en8vfsd2.js} +6 -6
- package/dist/chunks/{file-mutation-953xbrr3.js → schema-eq3fc1qc.js} +5 -5
- package/dist/chunks/{file-mutation-m37sd98t.js → schema-eqmd2tfz.js} +7 -7
- package/dist/chunks/{file-mutation-bhymm4ka.js → schema-eqzmv0k0.js} +12 -12
- package/dist/chunks/{file-mutation-7dt954pf.js → schema-er4ejzeq.js} +24 -24
- package/dist/chunks/{file-mutation-rddakqqk.js → schema-f42znsbm.js} +18 -18
- package/dist/chunks/{file-mutation-nkr5r85d.js → schema-fc6c4hv8.js} +2 -2
- package/dist/chunks/{file-mutation-tc5ygtk7.js → schema-fe9r35x6.js} +14 -14
- package/dist/chunks/{file-mutation-fffv3p7h.js → schema-fffv3p7h.js} +1 -1
- package/dist/chunks/{file-mutation-eat1kxrx.js → schema-fkbdg6tg.js} +15 -15
- package/dist/chunks/{file-mutation-qraask58.js → schema-fp1f4q9g.js} +20 -20
- package/dist/chunks/{file-mutation-3fasazex.js → schema-fqvwz6ma.js} +23 -23
- package/dist/chunks/{file-mutation-38wt7cws.js → schema-fs3bfktd.js} +51 -51
- package/dist/chunks/{file-mutation-4x9m2bcx.js → schema-fv09tp7k.js} +19 -19
- package/dist/chunks/{file-mutation-9yn8het3.js → schema-fy3nfdcy.js} +4 -4
- package/dist/chunks/{file-mutation-pds8n59z.js → schema-fzkeq8f8.js} +19 -19
- package/dist/chunks/{file-mutation-evr6t6br.js → schema-g0wye5yh.js} +49 -49
- package/dist/chunks/{file-mutation-g5h9c0rr.js → schema-g5h9c0rr.js} +2 -2
- package/dist/chunks/{file-mutation-rdsfrh75.js → schema-g5m9rhne.js} +19 -19
- package/dist/chunks/schema-g6nq203h.js +257 -0
- package/dist/chunks/{file-mutation-pfm7dcjx.js → schema-g6t8g6yx.js} +11 -11
- package/dist/chunks/{file-mutation-jek6gdnj.js → schema-gkmddht3.js} +15 -15
- package/dist/chunks/{file-mutation-fzybaf5h.js → schema-gpnpzavh.js} +35 -35
- package/dist/chunks/{file-mutation-w4x1nz7y.js → schema-gsb3pfjx.js} +12 -12
- package/dist/chunks/{file-mutation-6c83wpy3.js → schema-gt2s4m1s.js} +5 -5
- package/dist/chunks/{file-mutation-nzs7qp78.js → schema-gvefjbhs.js} +6 -6
- package/dist/chunks/{file-mutation-ype8y937.js → schema-h0nnq31c.js} +12 -12
- package/dist/chunks/{file-mutation-d8qd4w10.js → schema-h5qan5zz.js} +8 -8
- package/dist/chunks/{file-mutation-818eymrz.js → schema-hfnfqmbj.js} +6 -6
- package/dist/chunks/{file-mutation-av31dtj6.js → schema-hjv5rhcs.js} +22 -22
- package/dist/chunks/{file-mutation-3ryazf7k.js → schema-hnnjehxc.js} +21 -21
- package/dist/chunks/{file-mutation-tasvem1v.js → schema-hskrfeat.js} +6 -6
- package/dist/chunks/{file-mutation-k3cw2t6y.js → schema-hvvf9qw8.js} +6 -6
- package/dist/chunks/{file-mutation-q1q5csf7.js → schema-hwf3rsyj.js} +27 -27
- package/dist/chunks/{file-mutation-dy6w43s9.js → schema-hxmh1k5n.js} +14 -14
- package/dist/chunks/{file-mutation-01hh241z.js → schema-hxrfbvam.js} +27 -27
- package/dist/chunks/{file-mutation-csg5pa84.js → schema-hzcppzhp.js} +16 -16
- package/dist/chunks/{file-mutation-j113cymg.js → schema-j113cymg.js} +1 -1
- package/dist/chunks/{file-mutation-e5y4b45j.js → schema-j1ehcwpj.js} +14 -14
- package/dist/chunks/{file-mutation-cs87y13h.js → schema-j77g158z.js} +8 -8
- package/dist/chunks/{file-mutation-8qvck1z4.js → schema-jc1zpzm6.js} +3 -3
- package/dist/chunks/{file-mutation-z5tx473w.js → schema-jck87qnb.js} +20 -20
- package/dist/chunks/{file-mutation-4yhdbwgv.js → schema-jgeyayk8.js} +11 -11
- package/dist/chunks/{file-mutation-epy9ft1b.js → schema-jtp66jv1.js} +15 -15
- package/dist/chunks/{file-mutation-4acjqbzf.js → schema-jwddjk3q.js} +3 -3
- package/dist/chunks/{file-mutation-dz8z5rmr.js → schema-jxqzyhg3.js} +5 -5
- package/dist/chunks/{file-mutation-0h3xmpcd.js → schema-jy6n1kda.js} +22 -22
- package/dist/chunks/{file-mutation-k814nvkf.js → schema-k814nvkf.js} +1 -1
- package/dist/chunks/{file-mutation-4e2qh63v.js → schema-khc0hv5f.js} +11 -11
- package/dist/chunks/{file-mutation-5wenzm93.js → schema-kn8m031n.js} +8 -8
- package/dist/chunks/{file-mutation-r2exrp63.js → schema-m0ddkrak.js} +14 -14
- package/dist/chunks/{file-mutation-m1714858.js → schema-m1714858.js} +1 -1
- package/dist/chunks/{file-mutation-fmqc0xxy.js → schema-m33z69w0.js} +16 -16
- package/dist/chunks/{file-mutation-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-mutation-maspj1v3.js → schema-maspj1v3.js} +1 -1
- package/dist/chunks/{file-mutation-0bpyqdcp.js → schema-mc6n2qdv.js} +11 -11
- package/dist/chunks/{file-mutation-rmpmkka0.js → schema-mhe28zdf.js} +18 -18
- package/dist/chunks/{file-mutation-53hqh508.js → schema-mmd0w5me.js} +19 -19
- package/dist/chunks/{file-mutation-s15vm27z.js → schema-mp5c1e99.js} +22 -22
- package/dist/chunks/{file-mutation-d2887f8n.js → schema-mtkfycnh.js} +4 -4
- package/dist/chunks/{file-mutation-sbsfx9rq.js → schema-mx1kx71f.js} +33 -33
- package/dist/chunks/{file-mutation-n0p0277s.js → schema-n0p0277s.js} +1 -1
- package/dist/chunks/{file-mutation-km0c355e.js → schema-n2c4zg0x.js} +36 -36
- package/dist/chunks/schema-n3r3rt18.js +18 -0
- package/dist/chunks/{file-mutation-770pw0s1.js → schema-nah043kf.js} +4 -4
- package/dist/chunks/{file-mutation-d3vz98ev.js → schema-ncctsns8.js} +9 -9
- package/dist/chunks/{file-mutation-kb1d5h98.js → schema-nck61317.js} +3 -3
- package/dist/chunks/{file-mutation-a45jdcy2.js → schema-ne1w8t8k.js} +35 -35
- package/dist/chunks/{file-mutation-z4mkj7zj.js → schema-npjxp3nk.js} +23 -23
- package/dist/chunks/{file-mutation-crzd7t9a.js → schema-nrxnrznw.js} +33 -33
- package/dist/chunks/{file-mutation-79x1vadv.js → schema-nveqws5b.js} +9 -9
- package/dist/chunks/{file-mutation-q6qy2ezf.js → schema-nxykchda.js} +33 -33
- package/dist/chunks/{file-mutation-p015t6z3.js → schema-p015t6z3.js} +2 -2
- package/dist/chunks/{file-mutation-mn76yzm5.js → schema-p3r0srm5.js} +16 -16
- package/dist/chunks/{file-mutation-bxt4wf11.js → schema-p76b1cdr.js} +11 -11
- package/dist/chunks/{file-mutation-5zrxpy3q.js → schema-p7vhpwh8.js} +5 -5
- package/dist/chunks/{file-mutation-m3hhjj3r.js → schema-pazpeg33.js} +36 -36
- package/dist/chunks/{file-mutation-r1yhsp9x.js → schema-pcgkddtj.js} +3 -3
- package/dist/chunks/{file-mutation-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{file-mutation-rt32ykrj.js → schema-q7qmtw9h.js} +8 -8
- package/dist/chunks/{file-mutation-46bhyqhg.js → schema-qq9hzn5s.js} +28 -28
- package/dist/chunks/{file-mutation-wwye013q.js → schema-qqg9c0kv.js} +7 -7
- package/dist/chunks/{file-mutation-d2dx6a7h.js → schema-qv7y9773.js} +4 -4
- package/dist/chunks/{file-mutation-hrg8f2pc.js → schema-qzvs526t.js} +12 -12
- package/dist/chunks/{file-mutation-r0yr0wbs.js → schema-r0yr0wbs.js} +1 -1
- package/dist/chunks/{file-mutation-wbtek7hf.js → schema-r5f8nyhj.js} +29 -29
- package/dist/chunks/{file-mutation-02wxth5p.js → schema-r70bhzar.js} +12 -12
- package/dist/chunks/{file-mutation-rb9dy4dg.js → schema-rb9dy4dg.js} +1 -1
- package/dist/chunks/{file-mutation-6xvk4rvf.js → schema-rbpahh6n.js} +40 -40
- package/dist/chunks/{file-mutation-exkeg691.js → schema-rhj80mra.js} +17 -17
- package/dist/chunks/{file-mutation-rc8s48yf.js → schema-rt1c7dae.js} +18 -18
- package/dist/chunks/{file-mutation-rt5dr6hb.js → schema-rt5dr6hb.js} +1 -1
- package/dist/chunks/{file-mutation-5y2ykpjn.js → schema-rv8h40hz.js} +35 -35
- package/dist/chunks/{file-mutation-s5d01prw.js → schema-rxgngg14.js} +5 -5
- package/dist/chunks/{file-mutation-hedmc2nt.js → schema-s2rkq84g.js} +18 -18
- package/dist/chunks/{file-mutation-jr209fpd.js → schema-s7r97j0a.js} +19 -19
- package/dist/chunks/{file-mutation-sa3fpqfw.js → schema-sa3fpqfw.js} +2 -2
- package/dist/chunks/{file-mutation-f62v42d5.js → schema-sdm20d6g.js} +38 -38
- package/dist/chunks/{file-mutation-sqjzf8x2.js → schema-sqjzf8x2.js} +1 -1
- package/dist/chunks/{file-mutation-sh7sp5ah.js → schema-st9narvh.js} +32 -32
- package/dist/chunks/{file-mutation-n6v2b7cw.js → schema-szcgc7h4.js} +5 -5
- package/dist/chunks/{file-mutation-tgkfec1y.js → schema-t1w3prdq.js} +53 -53
- package/dist/chunks/{file-mutation-ysqmn0dh.js → schema-t3ctqk3p.js} +38 -38
- package/dist/chunks/{file-mutation-5abcwat7.js → schema-t73qb0f8.js} +9 -9
- package/dist/chunks/{file-mutation-tczq8hjw.js → schema-tczq8hjw.js} +1 -1
- package/dist/chunks/{file-mutation-2a44g180.js → schema-tdtvh78f.js} +45 -45
- package/dist/chunks/{file-mutation-sga46wt1.js → schema-thszvhrd.js} +28 -28
- package/dist/chunks/{file-mutation-8d2bz6m6.js → schema-tqx9c315.js} +8 -8
- package/dist/chunks/{file-mutation-0xtm3epc.js → schema-tsdrbga6.js} +4 -4
- package/dist/chunks/{file-mutation-tw8zr1ps.js → schema-tw8zr1ps.js} +1 -1
- package/dist/chunks/{file-mutation-twv2r8f4.js → schema-twv2r8f4.js} +2 -2
- package/dist/chunks/{file-mutation-c1hp29t2.js → schema-tynj833s.js} +17 -17
- package/dist/chunks/{file-mutation-ejqqbn2a.js → schema-v13bak37.js} +20 -20
- package/dist/chunks/{file-mutation-v2r1d0zg.js → schema-v2r1d0zg.js} +1 -1
- package/dist/chunks/{file-mutation-y0kzaj5g.js → schema-v8mhp7pp.js} +3 -3
- package/dist/chunks/{file-mutation-q0xgbsd8.js → schema-va1ca6nr.js} +28 -28
- package/dist/chunks/{file-mutation-yfy7v86t.js → schema-vby0kevs.js} +16 -16
- package/dist/chunks/{file-mutation-vd3b3yk9.js → schema-vd3b3yk9.js} +1 -1
- package/dist/chunks/{file-mutation-veqvce7d.js → schema-veqvce7d.js} +1 -1
- package/dist/chunks/{file-mutation-6qfw85j3.js → schema-vg66cxah.js} +20 -20
- package/dist/chunks/{file-mutation-62kc5cbt.js → schema-w1y9pf93.js} +35 -35
- package/dist/chunks/{file-mutation-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-mutation-8emcj4mr.js → schema-w448494y.js} +43 -43
- package/dist/chunks/{file-mutation-agqd6nxz.js → schema-w67s4ywc.js} +8 -8
- package/dist/chunks/{file-mutation-pckbcfmj.js → schema-w6veeby1.js} +23 -23
- package/dist/chunks/{file-mutation-wakvkjy4.js → schema-wakvkjy4.js} +1 -1
- package/dist/chunks/{file-mutation-qdxj2zxm.js → schema-wb4h2peq.js} +27 -27
- package/dist/chunks/{file-mutation-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{file-mutation-ef9prmak.js → schema-wmn93bqx.js} +4 -4
- package/dist/chunks/{file-mutation-fznmdakp.js → schema-wr3re1en.js} +4 -4
- package/dist/chunks/{file-mutation-8sv36032.js → schema-x3t8twyd.js} +35 -35
- package/dist/chunks/{file-mutation-xy6nqvtr.js → schema-x9cacsyk.js} +19 -19
- package/dist/chunks/{file-mutation-a7r94pj9.js → schema-xccxprzd.js} +4 -4
- package/dist/chunks/{file-mutation-xd9cc171.js → schema-xd9cc171.js} +1 -1
- package/dist/chunks/{file-mutation-2c7jpr6s.js → schema-xhh0m2wy.js} +5 -5
- package/dist/chunks/{file-mutation-8xs8wyc8.js → schema-xsvq7cjt.js} +4 -4
- package/dist/chunks/{file-mutation-z52ffdcm.js → schema-y0e96tr8.js} +9 -9
- package/dist/chunks/{file-mutation-y2tacs4v.js → schema-y2tacs4v.js} +1 -1
- package/dist/chunks/{file-mutation-ww70jcze.js → schema-y71ps8e5.js} +11 -11
- package/dist/chunks/{file-mutation-yb20nhc3.js → schema-yb20nhc3.js} +1 -1
- package/dist/chunks/{file-mutation-rstnpv25.js → schema-ypv38js4.js} +21 -21
- package/dist/chunks/{file-mutation-wnbwervj.js → schema-ypw7dra2.js} +6 -6
- package/dist/chunks/{file-mutation-4x6w1zj9.js → schema-yqhw68ry.js} +24 -24
- package/dist/chunks/{file-mutation-an8jph8e.js → schema-ythty13s.js} +47 -47
- package/dist/chunks/{file-mutation-ads9zrhy.js → schema-yw3vvjb2.js} +4 -4
- package/dist/chunks/{file-mutation-5qykrmpj.js → schema-ywtc9m4k.js} +11 -11
- package/dist/chunks/{file-mutation-cm3rm329.js → schema-yx3vrw5p.js} +3 -3
- package/dist/chunks/{file-mutation-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-mutation-nv70q41g.js → schema-z0sad13k.js} +8 -8
- package/dist/chunks/{file-mutation-9e319wwh.js → schema-z28xy0wc.js} +24 -24
- package/dist/chunks/{file-mutation-z38nccrw.js → schema-z38nccrw.js} +1 -1
- package/dist/chunks/{file-mutation-zkg84ctx.js → schema-zkg84ctx.js} +1 -1
- package/dist/chunks/schema-ztkwxhgh.js +517 -0
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +87 -87
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +102 -102
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- 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 +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +105 -105
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- 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/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +95 -95
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- 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 +96 -96
- 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 +76 -76
- package/dist/file-access.js +107 -107
- package/dist/file-mutation.js +97 -97
- 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 +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +105 -105
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +90 -90
- package/dist/generate.js +110 -110
- package/dist/git.js +11 -11
- 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 +102 -102
- 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 +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +159 -159
- package/dist/location-lifecycle.js +110 -110
- package/dist/location-service-map.js +89 -89
- package/dist/location-services.js +358 -358
- package/dist/location.js +90 -90
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +94 -94
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +139 -139
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +93 -93
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +102 -102
- package/dist/model-resolver.js +102 -102
- package/dist/model-retry.js +1 -1
- package/dist/model.js +103 -103
- package/dist/models-dev.js +110 -110
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +110 -110
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +105 -105
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +99 -99
- package/dist/plugin/module.js +115 -115
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +105 -105
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +93 -93
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +96 -96
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +98 -98
- package/dist/plugin/provider/gitlab.js +96 -96
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +95 -95
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai-context-caps.js +93 -93
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +101 -101
- package/dist/plugin/provider/openrouter.js +94 -94
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +94 -94
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +93 -93
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +94 -94
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +76 -76
- 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 +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +89 -89
- package/dist/plugin/vcs/hg.js +87 -87
- package/dist/plugin/verbosity.js +96 -96
- 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 +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -93
- package/dist/provider.js +102 -102
- 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 +92 -92
- package/dist/reference.js +94 -94
- package/dist/repository-cache.js +84 -84
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +98 -98
- package/dist/rpc.js +89 -89
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +139 -139
- package/dist/session/context.js +165 -165
- package/dist/session/diff.js +91 -91
- 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 +224 -224
- package/dist/session/execution.js +131 -131
- package/dist/session/generate.js +167 -167
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +93 -93
- 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 +100 -100
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +123 -123
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +133 -133
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +108 -108
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +97 -97
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +229 -229
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +103 -103
- package/dist/session/runner/publish-llm-event.js +117 -117
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +106 -106
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +163 -163
- package/dist/session/to-session-error.js +115 -115
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +8 -8
- 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 +110 -110
- package/dist/skill.js +117 -117
- package/dist/snapshot.js +96 -96
- 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 +138 -138
- package/dist/tool/plugin/edit.js +123 -123
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +127 -127
- package/dist/tool/plugin/grep.js +127 -127
- package/dist/tool/plugin/mcp-resource.js +127 -127
- package/dist/tool/plugin/opencode.js +112 -112
- package/dist/tool/plugin/patch.js +125 -125
- package/dist/tool/plugin/question.js +108 -108
- package/dist/tool/plugin/read.js +128 -128
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +116 -116
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +116 -116
- package/dist/tool/plugin/websearch.js +117 -117
- package/dist/tool/plugin/write.js +125 -125
- package/dist/tool/read-filesystem.js +105 -105
- 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/git-executable.js +3 -3
- 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 +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +95 -95
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +94 -94
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +92 -92
- package/dist/voice.js +90 -90
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +92 -92
- package/dist/worktree.js +101 -101
- package/package.json +8 -8
- package/dist/chunks/file-mutation-33kxm06j.js +0 -26
- package/dist/chunks/file-mutation-6bgb0w8a.js +0 -257
- package/dist/chunks/file-mutation-nzgmgab6.js +0 -517
- package/dist/chunks/file-mutation-vdh3rgac.js +0 -18
- /package/dist/chunks/{file-mutation-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-mutation-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-mutation-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-mutation-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-mutation-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-mutation-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-mutation-2bv980vf.js → schema-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-mutation-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-mutation-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-mutation-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{file-mutation-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-mutation-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-mutation-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-mutation-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-mutation-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-mutation-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-mutation-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{file-mutation-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-mutation-5fjb7ams.js → schema-5fjb7ams.js} +0 -0
- /package/dist/chunks/{file-mutation-5qd3pb7m.js → schema-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-mutation-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{file-mutation-6q2bdcd1.js → schema-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-mutation-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-mutation-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-mutation-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{file-mutation-84wd9syh.js → schema-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-mutation-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-mutation-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-mutation-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-mutation-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-mutation-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-mutation-a058387c.js → schema-a058387c.js} +0 -0
- /package/dist/chunks/{file-mutation-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-mutation-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-mutation-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-mutation-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-mutation-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-mutation-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-mutation-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-mutation-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-mutation-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-mutation-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-mutation-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-mutation-dajrwvna.js → schema-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-mutation-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-mutation-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{file-mutation-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-mutation-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-mutation-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-mutation-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-mutation-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-mutation-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-mutation-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-mutation-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-mutation-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-mutation-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-mutation-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-mutation-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{file-mutation-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-mutation-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{file-mutation-hcxmzztb.js → schema-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-mutation-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{file-mutation-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-mutation-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-mutation-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-mutation-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-mutation-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-mutation-jze0r7bz.js → schema-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-mutation-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-mutation-m18g726c.js → schema-m18g726c.js} +0 -0
- /package/dist/chunks/{file-mutation-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-mutation-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-mutation-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-mutation-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-mutation-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-mutation-pkyv6v7h.js → schema-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{file-mutation-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-mutation-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-mutation-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-mutation-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-mutation-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-mutation-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-mutation-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-mutation-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-mutation-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-mutation-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-mutation-ve7vex1e.js → schema-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-mutation-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-mutation-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-mutation-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-mutation-wjj7prxr.js → schema-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-mutation-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-mutation-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-mutation-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{file-mutation-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-mutation-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-mutation-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-mutation-ym463w8f.js → schema-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-mutation-z5v4ffb3.js → schema-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-mutation-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./schema-jc1zpzm6.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service83,
|
|
8
|
+
node87
|
|
9
|
+
} from "./schema-eqzmv0k0.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./schema-p015t6z3.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./schema-154zyqc4.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service75,
|
|
21
|
+
node79
|
|
22
|
+
} from "./schema-6m5m35mz.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service18,
|
|
25
|
+
node22
|
|
26
|
+
} from "./schema-9rc4as14.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./schema-tw8zr1ps.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./schema-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/title.ts
|
|
36
36
|
var exports_title = {};
|
|
@@ -73,10 +73,10 @@ var isUntitled2 = (session) => isExactRootFallback({
|
|
|
73
73
|
time: { created: DateTime.toEpochMillis(session.time.created) }
|
|
74
74
|
});
|
|
75
75
|
var layer3 = Layer.effect(Service2, Effect.gen(function* () {
|
|
76
|
-
const bus = yield*
|
|
76
|
+
const bus = yield* Service83;
|
|
77
77
|
const llm = yield* LLMClient.Service;
|
|
78
|
-
const context = yield*
|
|
79
|
-
const store = yield*
|
|
78
|
+
const context = yield* Service18;
|
|
79
|
+
const store = yield* Service75;
|
|
80
80
|
const db = (yield* Service86).db;
|
|
81
81
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
82
82
|
const chunks = [];
|
|
@@ -165,7 +165,7 @@ Recent conversation:
|
|
|
165
165
|
var node3 = makeLocationNode({
|
|
166
166
|
service: Service2,
|
|
167
167
|
layer: layer3,
|
|
168
|
-
deps: [
|
|
168
|
+
deps: [node87, llmClient2, node22, node79, node90]
|
|
169
169
|
});
|
|
170
170
|
|
|
171
171
|
export { Service2, isUntitled2, layer3, node3, exports_title };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-jc1zpzm6.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service83,
|
|
10
|
+
node87
|
|
11
|
+
} from "./schema-eqzmv0k0.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service80,
|
|
14
|
+
node84
|
|
15
|
+
} from "./schema-qzvs526t.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID16,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info27,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event18,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./schema-aktgv3ye.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./schema-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./schema-ayjs7tqn.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./schema-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID15,
|
|
40
|
+
Info: () => Info26,
|
|
41
|
+
NotFoundError: () => NotFoundError12,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service79,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node83,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID15 = ID16;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info26 = Info27;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError12 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID15
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service79 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,11 +98,11 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service80;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
|
-
const bus = yield*
|
|
105
|
+
const bus = yield* Service83;
|
|
106
106
|
const db = (yield* Service86).db;
|
|
107
107
|
const announcing = new Set;
|
|
108
108
|
const persist = Effect.fnUntraced(function* (project) {
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event18.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID15.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
174
|
+
return yield* new NotFoundError12({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event18.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event18.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID15.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID15.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID15.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID15.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -247,7 +247,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
247
247
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
248
248
|
return {
|
|
249
249
|
previous,
|
|
250
|
-
id: id ??
|
|
250
|
+
id: id ?? ID15.global,
|
|
251
251
|
directory: worktree,
|
|
252
252
|
vcs: { type: "hg", store: dotHg }
|
|
253
253
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* save({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID15.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* save({
|
|
282
|
-
id:
|
|
282
|
+
id: ID15.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID15.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event18.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service79.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node83 = makeGlobalNode({
|
|
310
|
+
service: Service79,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [
|
|
312
|
+
deps: [node87, node90, FSUtil.node, node84, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service79;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node83]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID15, Vcs2, Current2, Info26, UpdateInput3, NotFoundError12, root2, Service79, node83, sweepNode2, exports_project };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound3,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./schema-zkg84ctx.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/exec-defaults.ts
|
|
11
11
|
var exports_exec_defaults = {};
|
|
@@ -2,27 +2,27 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./schema-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service58,
|
|
8
|
+
node61
|
|
9
|
+
} from "./schema-yqhw68ry.js";
|
|
10
10
|
import {
|
|
11
11
|
Content3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./schema-3vkndy7n.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-2z1j29yd.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./schema-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/read-filesystem.ts
|
|
21
21
|
var exports_read_filesystem = {};
|
|
22
22
|
__export(exports_read_filesystem, {
|
|
23
23
|
BinaryFileError: () => BinaryFileError2,
|
|
24
24
|
FileContent: () => FileContent2,
|
|
25
|
-
ListEntry: () =>
|
|
25
|
+
ListEntry: () => ListEntry2,
|
|
26
26
|
ListPage: () => ListPage2,
|
|
27
27
|
MAX_MEDIA_INGEST_BYTES: () => MAX_MEDIA_INGEST_BYTES2,
|
|
28
28
|
MAX_READ_BYTES: () => MAX_READ_BYTES2,
|
|
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
|
|
|
33
33
|
PageInput: () => PageInput2,
|
|
34
34
|
PathKindError: () => PathKindError2,
|
|
35
35
|
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service28,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node31,
|
|
39
39
|
read: () => read2
|
|
40
40
|
});
|
|
41
41
|
import path from "path";
|
|
@@ -101,20 +101,20 @@ class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
|
101
101
|
next: Schema.optionalKey(PositiveInt2)
|
|
102
102
|
}) {
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var ListEntry2 = Schema.Struct({
|
|
105
105
|
path: RelativePath2,
|
|
106
106
|
type: Schema.Literals(["file", "directory", "symlink"])
|
|
107
107
|
}).annotate({ identifier: "ReadTool.ListEntry" });
|
|
108
108
|
|
|
109
109
|
class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
110
110
|
type: Schema.Literal("list-page"),
|
|
111
|
-
entries: Schema.Array(
|
|
111
|
+
entries: Schema.Array(ListEntry2),
|
|
112
112
|
truncated: Schema.Boolean,
|
|
113
113
|
next: Schema.optionalKey(PositiveInt2)
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service28 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
118
118
|
}
|
|
119
119
|
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
120
120
|
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
@@ -227,7 +227,7 @@ var list = (items, page) => {
|
|
|
227
227
|
const offset = page.offset || 1;
|
|
228
228
|
const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
|
|
229
229
|
const visible = items.flatMap((item) => item.type === "other" ? [] : [
|
|
230
|
-
|
|
230
|
+
ListEntry2.make({
|
|
231
231
|
path: RelativePath2.make(item.name + (item.type === "directory" ? path.sep : "")),
|
|
232
232
|
type: item.type
|
|
233
233
|
})
|
|
@@ -330,13 +330,13 @@ var nthNewline = (bytes, count) => {
|
|
|
330
330
|
return index + 1;
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
var layer = Layer.effect(
|
|
334
|
-
const environment = yield*
|
|
335
|
-
return
|
|
333
|
+
var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
334
|
+
const environment = yield* Service58;
|
|
335
|
+
return Service28.of({
|
|
336
336
|
list: environment.files.list,
|
|
337
337
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
338
338
|
});
|
|
339
339
|
}));
|
|
340
|
-
var
|
|
340
|
+
var node31 = makeLocationNode({ service: Service28, layer, deps: [node61] });
|
|
341
341
|
|
|
342
|
-
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2,
|
|
342
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service28, read2, node31, exports_read_filesystem };
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import {
|
|
2
|
+
node85
|
|
3
|
+
} from "./schema-mp5c1e99.js";
|
|
4
|
+
import {
|
|
5
|
+
node75
|
|
6
|
+
} from "./schema-s2rkq84g.js";
|
|
7
|
+
import {
|
|
8
|
+
node69
|
|
9
|
+
} from "./schema-92fa10hr.js";
|
|
10
|
+
import {
|
|
11
|
+
node82,
|
|
12
|
+
boundNode2
|
|
13
|
+
} from "./schema-1616ycsj.js";
|
|
14
|
+
import {
|
|
15
|
+
node68
|
|
16
|
+
} from "./schema-mx1kx71f.js";
|
|
17
|
+
import {
|
|
18
|
+
node45
|
|
19
|
+
} from "./schema-gsb3pfjx.js";
|
|
20
|
+
import {
|
|
21
|
+
node67
|
|
22
|
+
} from "./schema-w1y9pf93.js";
|
|
23
|
+
import {
|
|
24
|
+
node55
|
|
25
|
+
} from "./schema-520chd1c.js";
|
|
26
|
+
import {
|
|
27
|
+
configured9,
|
|
28
|
+
node65
|
|
29
|
+
} from "./schema-t1w3prdq.js";
|
|
30
|
+
import {
|
|
31
|
+
node61
|
|
32
|
+
} from "./schema-yqhw68ry.js";
|
|
33
|
+
import {
|
|
34
|
+
node37
|
|
35
|
+
} from "./schema-8dbgzqh1.js";
|
|
36
|
+
import {
|
|
37
|
+
node15
|
|
38
|
+
} from "./schema-gkmddht3.js";
|
|
39
|
+
import {
|
|
40
|
+
node39
|
|
41
|
+
} from "./schema-qq9hzn5s.js";
|
|
42
|
+
import {
|
|
43
|
+
DirectoryNotFoundError2,
|
|
44
|
+
node38
|
|
45
|
+
} from "./schema-3vkndy7n.js";
|
|
46
|
+
import {
|
|
47
|
+
node44
|
|
48
|
+
} from "./schema-tdtvh78f.js";
|
|
49
|
+
import {
|
|
50
|
+
node17
|
|
51
|
+
} from "./schema-5ryvfs0w.js";
|
|
52
|
+
import {
|
|
53
|
+
node57
|
|
54
|
+
} from "./schema-er4ejzeq.js";
|
|
55
|
+
import {
|
|
56
|
+
node35
|
|
57
|
+
} from "./schema-nveqws5b.js";
|
|
58
|
+
import {
|
|
59
|
+
node30
|
|
60
|
+
} from "./schema-eda149f3.js";
|
|
61
|
+
import {
|
|
62
|
+
Service40,
|
|
63
|
+
node42
|
|
64
|
+
} from "./schema-hvvf9qw8.js";
|
|
65
|
+
import {
|
|
66
|
+
node23
|
|
67
|
+
} from "./schema-ywtc9m4k.js";
|
|
68
|
+
import {
|
|
69
|
+
node81
|
|
70
|
+
} from "./schema-j77g158z.js";
|
|
71
|
+
import {
|
|
72
|
+
node78
|
|
73
|
+
} from "./schema-7gf3pvgw.js";
|
|
74
|
+
import {
|
|
75
|
+
node43
|
|
76
|
+
} from "./schema-dtavj5d7.js";
|
|
77
|
+
import {
|
|
78
|
+
configured11,
|
|
79
|
+
node76
|
|
80
|
+
} from "./schema-7dm1knrr.js";
|
|
81
|
+
import {
|
|
82
|
+
node27
|
|
83
|
+
} from "./schema-e8gd4gpa.js";
|
|
84
|
+
import {
|
|
85
|
+
node34
|
|
86
|
+
} from "./schema-282ey04p.js";
|
|
87
|
+
import {
|
|
88
|
+
node60
|
|
89
|
+
} from "./schema-cwz77rcy.js";
|
|
90
|
+
import {
|
|
91
|
+
node31
|
|
92
|
+
} from "./schema-g5m9rhne.js";
|
|
93
|
+
import {
|
|
94
|
+
node29
|
|
95
|
+
} from "./schema-4aq7en99.js";
|
|
96
|
+
import {
|
|
97
|
+
node33
|
|
98
|
+
} from "./schema-r5f8nyhj.js";
|
|
99
|
+
import {
|
|
100
|
+
node32
|
|
101
|
+
} from "./schema-p3r0srm5.js";
|
|
102
|
+
import {
|
|
103
|
+
node77
|
|
104
|
+
} from "./schema-6cz5w7zs.js";
|
|
105
|
+
import {
|
|
106
|
+
node26
|
|
107
|
+
} from "./schema-v13bak37.js";
|
|
108
|
+
import {
|
|
109
|
+
node22
|
|
110
|
+
} from "./schema-9rc4as14.js";
|
|
111
|
+
import {
|
|
112
|
+
node36
|
|
113
|
+
} from "./schema-nrxnrznw.js";
|
|
114
|
+
import {
|
|
115
|
+
node64
|
|
116
|
+
} from "./schema-fv09tp7k.js";
|
|
117
|
+
import {
|
|
118
|
+
node58
|
|
119
|
+
} from "./schema-fs3bfktd.js";
|
|
120
|
+
import {
|
|
121
|
+
node72
|
|
122
|
+
} from "./schema-2wcgdjv5.js";
|
|
123
|
+
import {
|
|
124
|
+
node18
|
|
125
|
+
} from "./schema-z28xy0wc.js";
|
|
126
|
+
import {
|
|
127
|
+
node74
|
|
128
|
+
} from "./schema-wb4h2peq.js";
|
|
129
|
+
import {
|
|
130
|
+
node52
|
|
131
|
+
} from "./schema-2s3mabk8.js";
|
|
132
|
+
import {
|
|
133
|
+
node16
|
|
134
|
+
} from "./schema-vg66cxah.js";
|
|
135
|
+
import {
|
|
136
|
+
node4
|
|
137
|
+
} from "./schema-n2c4zg0x.js";
|
|
138
|
+
import {
|
|
139
|
+
Service67,
|
|
140
|
+
node71
|
|
141
|
+
} from "./schema-1zdtg2jw.js";
|
|
142
|
+
import {
|
|
143
|
+
node48
|
|
144
|
+
} from "./schema-rt1c7dae.js";
|
|
145
|
+
import {
|
|
146
|
+
node12,
|
|
147
|
+
bound2
|
|
148
|
+
} from "./schema-tqx9c315.js";
|
|
149
|
+
import {
|
|
150
|
+
node8
|
|
151
|
+
} from "./schema-7pnkfavj.js";
|
|
152
|
+
import {
|
|
153
|
+
node14
|
|
154
|
+
} from "./schema-c99atrka.js";
|
|
155
|
+
import {
|
|
156
|
+
node5
|
|
157
|
+
} from "./schema-6qzhxdk4.js";
|
|
158
|
+
import {
|
|
159
|
+
node56
|
|
160
|
+
} from "./schema-x3t8twyd.js";
|
|
161
|
+
import {
|
|
162
|
+
node3
|
|
163
|
+
} from "./schema-fzkeq8f8.js";
|
|
164
|
+
import {
|
|
165
|
+
node2
|
|
166
|
+
} from "./schema-2862db0g.js";
|
|
167
|
+
import {
|
|
168
|
+
__export
|
|
169
|
+
} from "./schema-9rqn6x4v.js";
|
|
170
|
+
|
|
171
|
+
// src/instance.ts
|
|
172
|
+
var exports_instance = {};
|
|
173
|
+
__export(exports_instance, {
|
|
174
|
+
Instance: () => exports_instance,
|
|
175
|
+
Service: () => Service40,
|
|
176
|
+
graph: () => graph2,
|
|
177
|
+
layer: () => layer2,
|
|
178
|
+
node: () => node42
|
|
179
|
+
});
|
|
180
|
+
import { Context, Effect, Layer } from "effect";
|
|
181
|
+
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
182
|
+
import { Node } from "@opencode/util/effect/app-node";
|
|
183
|
+
var nodes = [
|
|
184
|
+
node82,
|
|
185
|
+
node71,
|
|
186
|
+
node61,
|
|
187
|
+
node65,
|
|
188
|
+
node85,
|
|
189
|
+
node55,
|
|
190
|
+
node33,
|
|
191
|
+
node72,
|
|
192
|
+
node74,
|
|
193
|
+
node69,
|
|
194
|
+
node68,
|
|
195
|
+
node67,
|
|
196
|
+
node44,
|
|
197
|
+
node45,
|
|
198
|
+
node16,
|
|
199
|
+
node81,
|
|
200
|
+
node12,
|
|
201
|
+
node5,
|
|
202
|
+
node52,
|
|
203
|
+
node39,
|
|
204
|
+
node38,
|
|
205
|
+
node64,
|
|
206
|
+
node56,
|
|
207
|
+
node58,
|
|
208
|
+
node77,
|
|
209
|
+
node27,
|
|
210
|
+
node76,
|
|
211
|
+
node48,
|
|
212
|
+
node37,
|
|
213
|
+
node15,
|
|
214
|
+
node30,
|
|
215
|
+
node78,
|
|
216
|
+
node34,
|
|
217
|
+
node60,
|
|
218
|
+
node35,
|
|
219
|
+
node26,
|
|
220
|
+
node32,
|
|
221
|
+
node23,
|
|
222
|
+
node75,
|
|
223
|
+
node17,
|
|
224
|
+
node57,
|
|
225
|
+
node31,
|
|
226
|
+
node29,
|
|
227
|
+
node14,
|
|
228
|
+
node43,
|
|
229
|
+
node8,
|
|
230
|
+
node3,
|
|
231
|
+
node22,
|
|
232
|
+
node36,
|
|
233
|
+
node2,
|
|
234
|
+
node18,
|
|
235
|
+
node4
|
|
236
|
+
];
|
|
237
|
+
var graph2 = LayerNode.group(nodes);
|
|
238
|
+
var vanillaReplacements = [
|
|
239
|
+
node65.replace(configured9({ project: false, global: false })),
|
|
240
|
+
node76.replace(configured11({ project: false, global: false }))
|
|
241
|
+
];
|
|
242
|
+
function layer2(ref, options = {}) {
|
|
243
|
+
const startedAt = performance.now();
|
|
244
|
+
const replacements = [
|
|
245
|
+
...options.discovery === false ? vanillaReplacements : [],
|
|
246
|
+
...options.replacements ?? [],
|
|
247
|
+
node82.replace(boundNode2(ref)),
|
|
248
|
+
node12.replace(bound2(options.plugins ?? []))
|
|
249
|
+
];
|
|
250
|
+
return LayerNode.compile(graph2, { replacements, shared: Node.tags.values.global }).pipe(Layer.catchCause((cause) => Layer.unwrap(Effect.failCause(cause).pipe(Effect.catch((error) => error instanceof DirectoryNotFoundError2 ? Effect.fail(error) : Effect.die(error))))), Layer.tap((context) => Effect.addFinalizer(() => Context.get(context, Service67).shutdown)), Layer.tap(() => Effect.logInfo("location services booted", {
|
|
251
|
+
directory: ref.directory,
|
|
252
|
+
workspaceID: ref.workspaceID,
|
|
253
|
+
durationMs: Math.round(performance.now() - startedAt)
|
|
254
|
+
})));
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export { graph2, layer2, exports_instance };
|