@opencode/core 0.0.0-dev-20682 → 0.0.0-dev-20684
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{model-resolver-a7bcxdzj.js → location-lifecycle-02khppbe.js} +9 -9
- package/dist/chunks/{model-resolver-10c97xc6.js → location-lifecycle-05gsqr97.js} +9 -9
- package/dist/chunks/{model-resolver-zf19209g.js → location-lifecycle-063h6gxx.js} +5 -5
- package/dist/chunks/{model-resolver-rp6bd9wq.js → location-lifecycle-06r90ppk.js} +11 -11
- package/dist/chunks/{model-resolver-gd0tnyjc.js → location-lifecycle-075nkgpd.js} +1 -1
- package/dist/chunks/{model-resolver-qgn6gcr1.js → location-lifecycle-0jwsre1p.js} +5 -5
- package/dist/chunks/{model-resolver-0paq2nw3.js → location-lifecycle-0paq2nw3.js} +1 -1
- package/dist/chunks/{model-resolver-0vbcp93d.js → location-lifecycle-0vbcp93d.js} +2 -2
- package/dist/chunks/{model-resolver-wbtjy708.js → location-lifecycle-0vmmsz07.js} +44 -44
- package/dist/chunks/{model-resolver-r01t9b5y.js → location-lifecycle-0w1gqsy8.js} +6 -6
- package/dist/chunks/{model-resolver-8kddseeh.js → location-lifecycle-0wpwzxxn.js} +10 -10
- package/dist/chunks/{model-resolver-38g0pyy9.js → location-lifecycle-0yac1820.js} +4 -4
- package/dist/chunks/{model-resolver-11hct9f4.js → location-lifecycle-0zkygwfx.js} +36 -36
- package/dist/chunks/{model-resolver-8htghz5d.js → location-lifecycle-10cxwvde.js} +14 -14
- package/dist/chunks/{model-resolver-1acjjqhc.js → location-lifecycle-1acjjqhc.js} +1 -1
- package/dist/chunks/{model-resolver-g0445xdp.js → location-lifecycle-1ajx6rf5.js} +8 -8
- package/dist/chunks/{model-resolver-1dazxqgg.js → location-lifecycle-1dazxqgg.js} +2 -2
- package/dist/chunks/{model-resolver-84h8c373.js → location-lifecycle-1dvck2a7.js} +2 -2
- package/dist/chunks/{model-resolver-69fj14ep.js → location-lifecycle-1jnd0kpw.js} +24 -24
- package/dist/chunks/{model-resolver-tk14y25j.js → location-lifecycle-1pxz8ven.js} +5 -5
- package/dist/chunks/{model-resolver-dxqyj49f.js → location-lifecycle-1tkxjym4.js} +3 -3
- package/dist/chunks/{model-resolver-gpnd5mkj.js → location-lifecycle-1w4qtqrn.js} +9 -9
- package/dist/chunks/{model-resolver-qhf50je4.js → location-lifecycle-20h11dtt.js} +24 -24
- package/dist/chunks/{model-resolver-wzmhb02r.js → location-lifecycle-226eh3y5.js} +22 -22
- package/dist/chunks/{model-resolver-mw9atry4.js → location-lifecycle-26a57194.js} +12 -12
- package/dist/chunks/{model-resolver-h4a7s26t.js → location-lifecycle-26ye3vwj.js} +5 -5
- package/dist/chunks/{model-resolver-2a5m3afh.js → location-lifecycle-2a5m3afh.js} +1 -1
- package/dist/chunks/{model-resolver-ep06henm.js → location-lifecycle-2ahzvgw1.js} +18 -18
- package/dist/chunks/{model-resolver-jrqb24zm.js → location-lifecycle-2bfa9kaw.js} +11 -11
- package/dist/chunks/{model-resolver-t32zyhfe.js → location-lifecycle-2hvzr5ar.js} +7 -7
- package/dist/chunks/{model-resolver-2txn9rvg.js → location-lifecycle-2rvp7s7b.js} +3 -3
- package/dist/chunks/{model-resolver-t29swve2.js → location-lifecycle-2s7ybbgh.js} +3 -3
- package/dist/chunks/{model-resolver-0tpcnmcw.js → location-lifecycle-2vbg8t8g.js} +6 -6
- package/dist/chunks/{model-resolver-ssrgjt3e.js → location-lifecycle-2xmwdb14.js} +16 -16
- package/dist/chunks/{model-resolver-kax3gvj5.js → location-lifecycle-2zk65mq5.js} +19 -19
- package/dist/chunks/{model-resolver-hh65bbrn.js → location-lifecycle-32psh0q2.js} +21 -21
- package/dist/chunks/{model-resolver-dm21k72n.js → location-lifecycle-337zht14.js} +9 -9
- package/dist/chunks/{model-resolver-d8tgnve2.js → location-lifecycle-35ec284s.js} +13 -13
- package/dist/chunks/{model-resolver-hnyhndd0.js → location-lifecycle-3a2m6res.js} +5 -5
- package/dist/chunks/{model-resolver-66hc15ng.js → location-lifecycle-3b8j6ss7.js} +33 -33
- package/dist/chunks/{model-resolver-8bgdgvzg.js → location-lifecycle-3egv5ypg.js} +19 -19
- package/dist/chunks/{model-resolver-wgrcm666.js → location-lifecycle-3ex7axyr.js} +27 -27
- package/dist/chunks/{model-resolver-tg3ranp2.js → location-lifecycle-3f1961x7.js} +23 -23
- package/dist/chunks/{model-resolver-y0qr5jf7.js → location-lifecycle-3f8vzngw.js} +5 -5
- package/dist/chunks/{model-resolver-3fc6dm20.js → location-lifecycle-3fc6dm20.js} +1 -1
- package/dist/chunks/{model-resolver-3hepkmqq.js → location-lifecycle-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-resolver-ypnjcb15.js → location-lifecycle-3p8ay4bf.js} +37 -37
- package/dist/chunks/{model-resolver-3smtnn6g.js → location-lifecycle-3smtnn6g.js} +1 -1
- package/dist/chunks/{model-resolver-3tvqynh2.js → location-lifecycle-3tvqynh2.js} +1 -1
- package/dist/chunks/{model-resolver-3zsf4n22.js → location-lifecycle-3zsf4n22.js} +1 -1
- package/dist/chunks/{model-resolver-ds811dtb.js → location-lifecycle-41pxaskz.js} +5 -5
- package/dist/chunks/{model-resolver-bth1fran.js → location-lifecycle-48hq3w28.js} +11 -11
- package/dist/chunks/{model-resolver-bmd39q5q.js → location-lifecycle-4c5kx5jf.js} +15 -15
- package/dist/chunks/{model-resolver-fd7cqx9x.js → location-lifecycle-4ckeh75z.js} +13 -13
- package/dist/chunks/{model-resolver-yyk24bey.js → location-lifecycle-4hkjffgj.js} +17 -17
- package/dist/chunks/{model-resolver-z0r25cb3.js → location-lifecycle-4qjpxqqa.js} +14 -14
- package/dist/chunks/{model-resolver-ngghfn62.js → location-lifecycle-4sa8jbrs.js} +5 -5
- package/dist/chunks/{model-resolver-2ccvkpx1.js → location-lifecycle-4ts7tf6z.js} +2 -2
- package/dist/chunks/{model-resolver-6m42r3np.js → location-lifecycle-50mzsvk4.js} +21 -21
- package/dist/chunks/{model-resolver-31xw4se4.js → location-lifecycle-51g1atb3.js} +1 -1
- package/dist/chunks/{model-resolver-dwyev0pn.js → location-lifecycle-531cyra5.js} +33 -33
- package/dist/chunks/{model-resolver-r94pvvab.js → location-lifecycle-54ma36ye.js} +4 -4
- package/dist/chunks/location-lifecycle-55bz3zr2.js +253 -0
- package/dist/chunks/{model-resolver-p5qcrc4c.js → location-lifecycle-5bcb55yf.js} +6 -6
- package/dist/chunks/{model-resolver-5daktx2q.js → location-lifecycle-5daktx2q.js} +1 -1
- package/dist/chunks/location-lifecycle-5fxk43wy.js +507 -0
- package/dist/chunks/{model-resolver-8y31xnqm.js → location-lifecycle-5hx7d1d6.js} +5 -5
- package/dist/chunks/{model-resolver-g3g4kd0v.js → location-lifecycle-5jvwydpq.js} +17 -17
- package/dist/chunks/{model-resolver-5m9w47nd.js → location-lifecycle-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-resolver-f00eh3k7.js → location-lifecycle-5ngaw42y.js} +14 -14
- package/dist/chunks/{model-resolver-vepq4dqg.js → location-lifecycle-5pjp1k1g.js} +60 -60
- package/dist/chunks/{model-resolver-e3qxr5gk.js → location-lifecycle-5qd3pb7m.js} +2 -2
- package/dist/chunks/{model-resolver-vsn506cm.js → location-lifecycle-5qnej2js.js} +18 -18
- package/dist/chunks/{model-resolver-5t3nmthw.js → location-lifecycle-5t3nmthw.js} +2 -2
- package/dist/chunks/{model-resolver-g7rd8z26.js → location-lifecycle-60jf5vcr.js} +4 -4
- package/dist/chunks/{model-resolver-8nn1yj6z.js → location-lifecycle-6b1rhtd5.js} +11 -11
- package/dist/chunks/{model-resolver-km7an3ep.js → location-lifecycle-6bvm89f4.js} +24 -24
- package/dist/chunks/{model-resolver-5kp4xrh9.js → location-lifecycle-6d8pmp5n.js} +9 -9
- package/dist/chunks/{model-resolver-3rd28rcz.js → location-lifecycle-6kgskxtw.js} +11 -11
- package/dist/chunks/{model-resolver-btak5zqv.js → location-lifecycle-6svbk6pm.js} +10 -10
- package/dist/chunks/{model-resolver-6xb47vfp.js → location-lifecycle-6xb47vfp.js} +1 -1
- package/dist/chunks/{model-resolver-33dajdt0.js → location-lifecycle-6xcdvqxh.js} +98 -98
- package/dist/chunks/{model-resolver-4dfbsgcw.js → location-lifecycle-6y9gnpfg.js} +19 -19
- package/dist/chunks/{model-resolver-f75zav2x.js → location-lifecycle-71az546q.js} +2 -2
- package/dist/chunks/{model-resolver-83009cjb.js → location-lifecycle-78cd284a.js} +35 -35
- package/dist/chunks/{model-resolver-7bmhse3q.js → location-lifecycle-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-resolver-gz16832s.js → location-lifecycle-7hdckppd.js} +24 -24
- package/dist/chunks/{model-resolver-tttwfjc6.js → location-lifecycle-86a9aqm7.js} +5 -5
- package/dist/chunks/{model-resolver-2becn8wt.js → location-lifecycle-87af0jnx.js} +7 -7
- package/dist/chunks/{model-resolver-tcezcvh9.js → location-lifecycle-89znhe33.js} +4 -4
- package/dist/chunks/{model-resolver-8d7r5vzw.js → location-lifecycle-8d7r5vzw.js} +1 -1
- package/dist/chunks/{model-resolver-9g5xkymg.js → location-lifecycle-8dqzgcf3.js} +2 -2
- package/dist/chunks/{model-resolver-yfa68f7n.js → location-lifecycle-8f67g1dm.js} +43 -43
- package/dist/chunks/{model-resolver-x38qdzk1.js → location-lifecycle-8g3g94ah.js} +48 -48
- package/dist/chunks/{model-resolver-rwegcfpf.js → location-lifecycle-8jkabng0.js} +16 -16
- package/dist/chunks/{model-resolver-wdr7g53b.js → location-lifecycle-8jsp840a.js} +30 -30
- package/dist/chunks/{model-resolver-m6f3t844.js → location-lifecycle-8paq7gnc.js} +8 -8
- package/dist/chunks/{model-resolver-kb9j3d72.js → location-lifecycle-9e5bzkjp.js} +3 -3
- package/dist/chunks/{model-resolver-4twwj3gr.js → location-lifecycle-9ng1f03y.js} +16 -16
- package/dist/chunks/{model-resolver-yp8tn9p0.js → location-lifecycle-9r2jpf9t.js} +20 -20
- package/dist/chunks/{model-resolver-vbwbd6d7.js → location-lifecycle-9sgp6b5z.js} +9 -9
- package/dist/chunks/{model-resolver-9n8a201b.js → location-lifecycle-9vbq82tv.js} +78 -78
- package/dist/chunks/{model-resolver-e8sy2har.js → location-lifecycle-9xdh3x8b.js} +35 -35
- package/dist/chunks/{model-resolver-ge7bq23y.js → location-lifecycle-9xssfh81.js} +32 -32
- package/dist/chunks/{model-resolver-6qcr098f.js → location-lifecycle-9y5b0gtx.js} +5 -5
- package/dist/chunks/{model-resolver-dmghp31x.js → location-lifecycle-9yb256cm.js} +27 -27
- package/dist/chunks/location-lifecycle-9zdhvgqs.js +18 -0
- package/dist/chunks/{model-resolver-j028xdjb.js → location-lifecycle-a1gpj94z.js} +3 -3
- package/dist/chunks/{model-resolver-wj76ss2k.js → location-lifecycle-a89e0tac.js} +4 -4
- package/dist/chunks/{model-resolver-aaet6srn.js → location-lifecycle-aaet6srn.js} +2 -2
- package/dist/chunks/{model-resolver-h14zrqyq.js → location-lifecycle-apzzd3ax.js} +23 -23
- package/dist/chunks/{model-resolver-jjwtv0ah.js → location-lifecycle-aw1j1f4r.js} +11 -11
- package/dist/chunks/{model-resolver-vbdkyqz4.js → location-lifecycle-b0dt9z8w.js} +4 -4
- package/dist/chunks/{model-resolver-8sze2n9a.js → location-lifecycle-b4twkq7r.js} +2 -2
- package/dist/chunks/{model-resolver-n8vdnqrc.js → location-lifecycle-b674v2dg.js} +5 -5
- package/dist/chunks/{model-resolver-b6gygkdw.js → location-lifecycle-b6gygkdw.js} +2 -2
- package/dist/chunks/{model-resolver-dafg2r43.js → location-lifecycle-b8agvgd6.js} +38 -38
- package/dist/chunks/{model-resolver-7s2tn799.js → location-lifecycle-bh0zzf2s.js} +8 -8
- package/dist/chunks/{model-resolver-e5s5dhnn.js → location-lifecycle-bm7qbsac.js} +11 -11
- package/dist/chunks/{model-resolver-63db42yp.js → location-lifecycle-brk5xemp.js} +2 -2
- package/dist/chunks/{model-resolver-fd65jbzw.js → location-lifecycle-bspqpb0c.js} +11 -11
- package/dist/chunks/{model-resolver-pbwe4c5d.js → location-lifecycle-bvydwcnj.js} +91 -91
- package/dist/chunks/{model-resolver-19y7fb49.js → location-lifecycle-bw3ab5h2.js} +15 -15
- package/dist/chunks/{model-resolver-v3n49zdf.js → location-lifecycle-by37hsaf.js} +17 -17
- package/dist/chunks/{model-resolver-4z58m4b4.js → location-lifecycle-c35597j6.js} +4 -4
- package/dist/chunks/{model-resolver-grwyepjm.js → location-lifecycle-c9n2nen5.js} +35 -35
- package/dist/chunks/{model-resolver-110b8ek2.js → location-lifecycle-cbcehkva.js} +32 -32
- package/dist/chunks/{model-resolver-mtf9y83c.js → location-lifecycle-ccaf0804.js} +11 -11
- package/dist/chunks/{model-resolver-909p1r3q.js → location-lifecycle-d1mtykxg.js} +6 -6
- package/dist/chunks/{model-resolver-fm2qvscf.js → location-lifecycle-d216944b.js} +7 -7
- package/dist/chunks/{model-resolver-cxsfdq8a.js → location-lifecycle-d94vkxnx.js} +26 -26
- package/dist/chunks/{model-resolver-afjydgk3.js → location-lifecycle-d9sgy5v4.js} +4 -4
- package/dist/chunks/{model-resolver-kne8f3cn.js → location-lifecycle-ddt2bs9e.js} +4 -4
- package/dist/chunks/{model-resolver-ss358qx3.js → location-lifecycle-dgma0v0g.js} +3 -3
- package/dist/chunks/{model-resolver-azd5zvnq.js → location-lifecycle-djdtsz5x.js} +20 -20
- package/dist/chunks/{model-resolver-6c6jf3me.js → location-lifecycle-dkbtsjnq.js} +24 -24
- package/dist/chunks/{model-resolver-xkntkrq7.js → location-lifecycle-dmqcgk4z.js} +5 -5
- package/dist/chunks/{model-resolver-11nrpngx.js → location-lifecycle-dnezdd38.js} +11 -11
- package/dist/chunks/{model-resolver-08d6azjt.js → location-lifecycle-e6cvegzg.js} +9 -9
- package/dist/chunks/{model-resolver-tptdvtpk.js → location-lifecycle-edm9s4jn.js} +20 -20
- package/dist/chunks/{model-resolver-ef5x83kb.js → location-lifecycle-ef5x83kb.js} +1 -1
- package/dist/chunks/{model-resolver-sgksxw7g.js → location-lifecycle-ej6h7vq7.js} +3 -3
- package/dist/chunks/{model-resolver-14p1364x.js → location-lifecycle-et3fks45.js} +32 -32
- package/dist/chunks/{model-resolver-etq0c3wd.js → location-lifecycle-etq0c3wd.js} +1 -1
- package/dist/chunks/{model-resolver-c9kv66wf.js → location-lifecycle-etyaes4m.js} +25 -25
- package/dist/chunks/{model-resolver-211z80cq.js → location-lifecycle-ex7zhkfb.js} +7 -7
- package/dist/chunks/{model-resolver-e53gjx43.js → location-lifecycle-ezqzpjms.js} +48 -48
- package/dist/chunks/{model-resolver-av7v7zb0.js → location-lifecycle-eztpkhjq.js} +23 -23
- package/dist/chunks/{model-resolver-0bg0bx69.js → location-lifecycle-fpecnkgp.js} +7 -7
- package/dist/chunks/{model-resolver-z4ztj7g0.js → location-lifecycle-ftjf86m5.js} +8 -8
- package/dist/chunks/{model-resolver-tjscfx4m.js → location-lifecycle-fz63517n.js} +30 -30
- package/dist/chunks/{model-resolver-xfkkasph.js → location-lifecycle-g5w8qwbj.js} +4 -4
- package/dist/chunks/{model-resolver-cwa6csj7.js → location-lifecycle-g6q9qykm.js} +9 -9
- package/dist/chunks/{model-resolver-gd4qta3r.js → location-lifecycle-gd4qta3r.js} +1 -1
- package/dist/chunks/{model-resolver-2ex9v4dz.js → location-lifecycle-gd6d6gzq.js} +32 -32
- package/dist/chunks/{model-resolver-nqc2a42y.js → location-lifecycle-gh5z95q3.js} +9 -9
- package/dist/chunks/{model-resolver-pnaxc6j9.js → location-lifecycle-gs3s1a1g.js} +8 -8
- package/dist/chunks/{model-resolver-rs7zj18r.js → location-lifecycle-gtbprh07.js} +17 -17
- package/dist/chunks/{model-resolver-3cegwx68.js → location-lifecycle-h2b79v29.js} +2 -2
- package/dist/chunks/{model-resolver-h6vf3j39.js → location-lifecycle-h6vf3j39.js} +1 -1
- package/dist/chunks/{model-resolver-eatejewc.js → location-lifecycle-hafepx0m.js} +12 -12
- package/dist/chunks/{model-resolver-1p1pjvaa.js → location-lifecycle-hbp9e5gh.js} +35 -35
- package/dist/chunks/{model-resolver-dmkm46ch.js → location-lifecycle-hdr6pzp4.js} +13 -13
- package/dist/chunks/{model-resolver-nvkjfv9x.js → location-lifecycle-hhqxc54w.js} +18 -18
- package/dist/chunks/{model-resolver-b3pet2zg.js → location-lifecycle-hjdfbhvj.js} +4 -4
- package/dist/chunks/{model-resolver-eyxk1qnq.js → location-lifecycle-hpp5kapg.js} +35 -35
- package/dist/chunks/{model-resolver-hv8xeme1.js → location-lifecycle-hvvc8a2w.js} +9 -9
- package/dist/chunks/{model-resolver-2vecpzew.js → location-lifecycle-hz5tq5t5.js} +18 -18
- package/dist/chunks/{model-resolver-wbprqre7.js → location-lifecycle-j0957gea.js} +13 -13
- package/dist/chunks/{model-resolver-j56e64zr.js → location-lifecycle-j56e64zr.js} +1 -1
- package/dist/chunks/{model-resolver-2f659e5x.js → location-lifecycle-jmcmn6kx.js} +11 -11
- package/dist/chunks/{model-resolver-8z06avg2.js → location-lifecycle-jnzzg47p.js} +15 -15
- package/dist/chunks/location-lifecycle-js13ey7k.js +26 -0
- package/dist/chunks/{model-resolver-zwcyw4cb.js → location-lifecycle-k7wh6m2v.js} +4 -4
- package/dist/chunks/{model-resolver-kx9rc79n.js → location-lifecycle-k9hdpf1d.js} +23 -23
- package/dist/chunks/{model-resolver-k4asghnp.js → location-lifecycle-kcbhgjfd.js} +16 -16
- package/dist/chunks/{model-resolver-qqbg84xg.js → location-lifecycle-kdp23qt0.js} +17 -17
- package/dist/chunks/{model-resolver-77jv0j1h.js → location-lifecycle-kwsqnjcj.js} +11 -11
- package/dist/chunks/{model-resolver-0364ndsb.js → location-lifecycle-m1edx7vx.js} +49 -49
- package/dist/chunks/{model-resolver-m3fdjcah.js → location-lifecycle-m3fdjcah.js} +1 -1
- package/dist/chunks/{model-resolver-m9w0rfyh.js → location-lifecycle-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-resolver-xbmhsw7f.js → location-lifecycle-mc094nv4.js} +31 -31
- package/dist/chunks/{model-resolver-amehwh5s.js → location-lifecycle-mfgthqa8.js} +9 -9
- package/dist/chunks/{model-resolver-56gdpj1q.js → location-lifecycle-mfqp6xfm.js} +6 -6
- package/dist/chunks/{model-resolver-txqvqyew.js → location-lifecycle-mhd024zz.js} +45 -45
- package/dist/chunks/{model-resolver-40fy2d9q.js → location-lifecycle-mmtzy2cx.js} +1 -1
- package/dist/chunks/{model-resolver-8nwvde6v.js → location-lifecycle-mx2aqj59.js} +8 -8
- package/dist/chunks/{model-resolver-m9wbq610.js → location-lifecycle-mxbg3ygs.js} +40 -40
- package/dist/chunks/{model-resolver-ypjnx83w.js → location-lifecycle-mxw8m4vv.js} +185 -185
- package/dist/chunks/{model-resolver-pj9tg3xc.js → location-lifecycle-mz0r50hh.js} +29 -29
- package/dist/chunks/{model-resolver-zny3dpd0.js → location-lifecycle-n0yjf684.js} +8 -8
- package/dist/chunks/{model-resolver-h76ep6gq.js → location-lifecycle-n7nkg0mk.js} +11 -11
- package/dist/chunks/{model-resolver-3jbr2x8z.js → location-lifecycle-nm0wvxtq.js} +15 -15
- package/dist/chunks/{model-resolver-xjd9n2sp.js → location-lifecycle-nm2f9wrr.js} +32 -32
- package/dist/chunks/{model-resolver-x2d9qy7d.js → location-lifecycle-npwy0cf6.js} +5 -5
- package/dist/chunks/{model-resolver-dy92ps29.js → location-lifecycle-nraamc83.js} +6 -6
- package/dist/chunks/{model-resolver-dpkg50ah.js → location-lifecycle-nxm207yx.js} +4 -4
- package/dist/chunks/{model-resolver-wyy60m0y.js → location-lifecycle-pf32sebb.js} +3 -3
- package/dist/chunks/{model-resolver-pjvnvgmy.js → location-lifecycle-pjvnvgmy.js} +1 -1
- package/dist/chunks/{model-resolver-pknna89w.js → location-lifecycle-pknna89w.js} +1 -1
- package/dist/chunks/{model-resolver-7y628me3.js → location-lifecycle-pngk9xk6.js} +36 -36
- package/dist/chunks/{model-resolver-je7fg4hd.js → location-lifecycle-pyjrn7r3.js} +20 -20
- package/dist/chunks/{model-resolver-0j77ygfz.js → location-lifecycle-q0xm7vwc.js} +6 -6
- package/dist/chunks/{model-resolver-1y9c9szs.js → location-lifecycle-q1h3h95e.js} +24 -24
- package/dist/chunks/{model-resolver-3dygqxay.js → location-lifecycle-qb5a6frm.js} +11 -11
- package/dist/chunks/{model-resolver-7ecay89j.js → location-lifecycle-qgc4rrcj.js} +18 -18
- package/dist/chunks/{model-resolver-qnc92qwc.js → location-lifecycle-qnc92qwc.js} +1 -1
- package/dist/chunks/{model-resolver-nv85q5yc.js → location-lifecycle-qqqy3pvs.js} +13 -13
- package/dist/chunks/{model-resolver-qsdy395h.js → location-lifecycle-qsdy395h.js} +1 -1
- package/dist/chunks/{model-resolver-qxjc9qry.js → location-lifecycle-qxjc9qry.js} +3 -3
- package/dist/chunks/{model-resolver-r54yw92w.js → location-lifecycle-qyt1w9k6.js} +11 -11
- package/dist/chunks/{model-resolver-rdw6cm16.js → location-lifecycle-rdw6cm16.js} +1 -1
- package/dist/chunks/{model-resolver-meahagrb.js → location-lifecycle-rk51z9mh.js} +43 -43
- package/dist/chunks/{model-resolver-q8nwznbs.js → location-lifecycle-rt1b0z2g.js} +4 -4
- package/dist/chunks/{model-resolver-yvehv8j4.js → location-lifecycle-rykbmd5h.js} +22 -22
- package/dist/chunks/{model-resolver-0ybx6e4j.js → location-lifecycle-s08b3w1e.js} +19 -19
- package/dist/chunks/{model-resolver-4warvet6.js → location-lifecycle-s19wcxkc.js} +25 -25
- package/dist/chunks/{model-resolver-es92z2hg.js → location-lifecycle-s612q12g.js} +6 -6
- package/dist/chunks/{model-resolver-fvp47qe4.js → location-lifecycle-s8b189qv.js} +22 -22
- package/dist/chunks/{model-resolver-wv396vej.js → location-lifecycle-s8d7rejh.js} +8 -8
- package/dist/chunks/{model-resolver-yc5k47t6.js → location-lifecycle-sahbbq5s.js} +21 -21
- package/dist/chunks/{model-resolver-fzz3hcr3.js → location-lifecycle-sfn58asn.js} +28 -28
- package/dist/chunks/{model-resolver-0q2fecvk.js → location-lifecycle-sj78244k.js} +15 -15
- package/dist/chunks/{model-resolver-ht2a8fky.js → location-lifecycle-spbjn7pa.js} +11 -11
- package/dist/chunks/{model-resolver-evbj9t57.js → location-lifecycle-swntjeps.js} +47 -47
- package/dist/chunks/{model-resolver-y6v1v83p.js → location-lifecycle-sz15h4sp.js} +11 -11
- package/dist/chunks/{model-resolver-s6v33hhs.js → location-lifecycle-sza4v6bf.js} +8 -8
- package/dist/chunks/{model-resolver-ymr5aw12.js → location-lifecycle-t62pw5c1.js} +18 -18
- package/dist/chunks/{model-resolver-6x448rs9.js → location-lifecycle-t95mj38p.js} +35 -35
- package/dist/chunks/{model-resolver-tazgh4e4.js → location-lifecycle-tazgh4e4.js} +1 -1
- package/dist/chunks/{model-resolver-hhxvcfmq.js → location-lifecycle-tbmkjjbj.js} +4 -4
- package/dist/chunks/{model-resolver-2weqyc98.js → location-lifecycle-tcth2cmk.js} +24 -24
- package/dist/chunks/{model-resolver-tdstcens.js → location-lifecycle-tdstcens.js} +1 -1
- package/dist/chunks/{model-resolver-a4jzv6pb.js → location-lifecycle-txk44qj0.js} +27 -27
- package/dist/chunks/{model-resolver-zf4p7bms.js → location-lifecycle-v5m63bep.js} +24 -24
- package/dist/chunks/{model-resolver-24kyvzj3.js → location-lifecycle-v6vkzzt1.js} +60 -60
- package/dist/chunks/{model-resolver-veqvce7d.js → location-lifecycle-veqvce7d.js} +1 -1
- package/dist/chunks/{model-resolver-nw91k3fh.js → location-lifecycle-vfjhn2wd.js} +4 -4
- package/dist/chunks/{model-resolver-5120j63r.js → location-lifecycle-vjm1nyv7.js} +10 -10
- package/dist/chunks/{model-resolver-gaav3xfc.js → location-lifecycle-vtkehqnv.js} +13 -13
- package/dist/chunks/{model-resolver-vzs5sf6e.js → location-lifecycle-vzs5sf6e.js} +1 -1
- package/dist/chunks/{model-resolver-84txncab.js → location-lifecycle-w1eejvng.js} +5 -5
- package/dist/chunks/{model-resolver-w3wsvvr9.js → location-lifecycle-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-resolver-x623mxjj.js → location-lifecycle-w4zz6nd0.js} +17 -17
- package/dist/chunks/{model-resolver-2mn1ra9m.js → location-lifecycle-w98pcy5g.js} +38 -38
- package/dist/chunks/{model-resolver-f5en7f74.js → location-lifecycle-wa0hznzt.js} +5 -5
- package/dist/chunks/{model-resolver-ynx1sbyb.js → location-lifecycle-wa80y0bh.js} +8 -8
- package/dist/chunks/{model-resolver-wd87259q.js → location-lifecycle-wd87259q.js} +1 -1
- package/dist/chunks/{model-resolver-b3f8fkhc.js → location-lifecycle-wecqtg5s.js} +5 -5
- package/dist/chunks/{model-resolver-h182e1ya.js → location-lifecycle-ws6ndszr.js} +12 -12
- package/dist/chunks/{model-resolver-4yxeygct.js → location-lifecycle-wxc0khkc.js} +9 -9
- package/dist/chunks/{model-resolver-4x518902.js → location-lifecycle-wye7nvcy.js} +35 -35
- package/dist/chunks/{model-resolver-h5eb1stf.js → location-lifecycle-wysxdp34.js} +51 -51
- package/dist/chunks/{model-resolver-w7zyscj3.js → location-lifecycle-xc20pkzj.js} +11 -11
- package/dist/chunks/{model-resolver-yg62bcth.js → location-lifecycle-xcmk6yw7.js} +11 -11
- package/dist/chunks/{model-resolver-94mn3p3s.js → location-lifecycle-xj71rk50.js} +11 -11
- package/dist/chunks/{model-resolver-ctzssw83.js → location-lifecycle-xs12am9p.js} +8 -8
- package/dist/chunks/{model-resolver-vb454w7p.js → location-lifecycle-y0c4c2h5.js} +3 -3
- package/dist/chunks/{model-resolver-y1fvbwt7.js → location-lifecycle-y1fvbwt7.js} +1 -1
- package/dist/chunks/{model-resolver-16zkvp84.js → location-lifecycle-y3c20489.js} +37 -37
- package/dist/chunks/{model-resolver-d355hkrp.js → location-lifecycle-y4a37d1e.js} +44 -44
- package/dist/chunks/{model-resolver-jmskrp9g.js → location-lifecycle-yez4jscq.js} +27 -27
- package/dist/chunks/{model-resolver-g2qj6ddr.js → location-lifecycle-yme16cyz.js} +25 -25
- package/dist/chunks/{model-resolver-f53vpfqg.js → location-lifecycle-yrx1a3r0.js} +21 -21
- package/dist/chunks/{model-resolver-e6vcv3sh.js → location-lifecycle-ys0rdjsq.js} +36 -36
- package/dist/chunks/{model-resolver-8cv9sccg.js → location-lifecycle-ytr85qwh.js} +28 -28
- package/dist/chunks/{model-resolver-bd819fhp.js → location-lifecycle-yv3x7tkh.js} +8 -8
- package/dist/chunks/{model-resolver-z0bkrqjs.js → location-lifecycle-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-resolver-h0wm3sd5.js → location-lifecycle-z7rvg8nx.js} +4 -4
- package/dist/chunks/{model-resolver-5vs2d7gx.js → location-lifecycle-ze9cz0xh.js} +21 -21
- package/dist/chunks/{model-resolver-0me0fk48.js → location-lifecycle-zfs8ae4p.js} +4 -4
- package/dist/chunks/{model-resolver-55vcwskv.js → location-lifecycle-zfsa101a.js} +10 -10
- package/dist/chunks/{model-resolver-3qnt817w.js → location-lifecycle-zmc286va.js} +12 -12
- package/dist/chunks/{model-resolver-zr2ceqn5.js → location-lifecycle-zr2ceqn5.js} +1 -1
- package/dist/chunks/{model-resolver-sgg17eyk.js → location-lifecycle-ztne98yc.js} +22 -22
- package/dist/chunks/{model-resolver-x661k3y3.js → location-lifecycle-zw2hpfmh.js} +4 -4
- package/dist/chunks/{model-resolver-zxq2ej10.js → location-lifecycle-zxq2ej10.js} +1 -1
- package/dist/chunks/{model-resolver-8wf1bn9q.js → location-lifecycle-zzk5q109.js} +13 -13
- 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 +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +70 -70
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- 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 +91 -91
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -354
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +74 -74
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +115 -115
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +85 -85
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +82 -82
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +89 -89
- 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 +128 -128
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +94 -94
- package/package.json +8 -8
- package/dist/chunks/model-resolver-7mcy0e9k.js +0 -26
- package/dist/chunks/model-resolver-ctefx7dc.js +0 -18
- package/dist/chunks/model-resolver-n66nyqav.js +0 -253
- package/dist/chunks/model-resolver-yvv17s0z.js +0 -507
- /package/dist/chunks/{model-resolver-0qkdqm5v.js → location-lifecycle-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-resolver-0zkw76rk.js → location-lifecycle-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-resolver-17cy0kzp.js → location-lifecycle-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-resolver-1cnp2v09.js → location-lifecycle-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-resolver-1kg9ymc8.js → location-lifecycle-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{model-resolver-24dcb14g.js → location-lifecycle-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-resolver-2710q6r3.js → location-lifecycle-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-resolver-2axfhc9x.js → location-lifecycle-2axfhc9x.js} +0 -0
- /package/dist/chunks/{model-resolver-2c3vjs8z.js → location-lifecycle-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-resolver-34c7v6d4.js → location-lifecycle-34c7v6d4.js} +0 -0
- /package/dist/chunks/{model-resolver-359p4xyc.js → location-lifecycle-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-resolver-3asan66x.js → location-lifecycle-3asan66x.js} +0 -0
- /package/dist/chunks/{model-resolver-3t0ybcrp.js → location-lifecycle-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{model-resolver-3v8g72cx.js → location-lifecycle-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-resolver-3w5fmr99.js → location-lifecycle-3w5fmr99.js} +0 -0
- /package/dist/chunks/{model-resolver-3wcehsnq.js → location-lifecycle-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-resolver-43n2bw4t.js → location-lifecycle-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-resolver-4knz6hnm.js → location-lifecycle-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-resolver-4vcrnpx2.js → location-lifecycle-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-resolver-4y7fprxs.js → location-lifecycle-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-resolver-53557ph1.js → location-lifecycle-53557ph1.js} +0 -0
- /package/dist/chunks/{model-resolver-550bvhaj.js → location-lifecycle-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-resolver-6prwharc.js → location-lifecycle-6prwharc.js} +0 -0
- /package/dist/chunks/{model-resolver-6q2bdcd1.js → location-lifecycle-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-resolver-7akdwqpd.js → location-lifecycle-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-resolver-7m9af43g.js → location-lifecycle-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-resolver-822emrt2.js → location-lifecycle-822emrt2.js} +0 -0
- /package/dist/chunks/{model-resolver-88xbtdfr.js → location-lifecycle-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-resolver-8n3pysct.js → location-lifecycle-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-resolver-8wj87zfr.js → location-lifecycle-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-resolver-9a4afbnw.js → location-lifecycle-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-resolver-9rqn6x4v.js → location-lifecycle-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-resolver-a6k6eb26.js → location-lifecycle-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-resolver-af5trqkr.js → location-lifecycle-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-resolver-afrmfg78.js → location-lifecycle-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-resolver-aqzs7mqg.js → location-lifecycle-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-resolver-atq7p7m5.js → location-lifecycle-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-resolver-bkyjaxrp.js → location-lifecycle-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-resolver-bmr6ed5q.js → location-lifecycle-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-resolver-cf4snx6d.js → location-lifecycle-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-resolver-cvy3z8tj.js → location-lifecycle-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-resolver-d9fn303g.js → location-lifecycle-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-resolver-d9jj8t3e.js → location-lifecycle-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-resolver-dajrwvna.js → location-lifecycle-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-resolver-dap0rakb.js → location-lifecycle-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-resolver-df08tz66.js → location-lifecycle-df08tz66.js} +0 -0
- /package/dist/chunks/{model-resolver-dy18nga0.js → location-lifecycle-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-resolver-e5kj55wp.js → location-lifecycle-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-resolver-e73j6tqm.js → location-lifecycle-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-resolver-ec1grn59.js → location-lifecycle-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-resolver-eh3zwz77.js → location-lifecycle-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-resolver-emrn6kk6.js → location-lifecycle-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-resolver-f0mxakyp.js → location-lifecycle-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-resolver-f6n9ztr4.js → location-lifecycle-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-resolver-faypxj3z.js → location-lifecycle-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-resolver-fd410y7t.js → location-lifecycle-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-resolver-fxgpk5d8.js → location-lifecycle-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{model-resolver-g4wezp1m.js → location-lifecycle-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-resolver-g86h250q.js → location-lifecycle-g86h250q.js} +0 -0
- /package/dist/chunks/{model-resolver-gebd4c9n.js → location-lifecycle-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-resolver-gftt206x.js → location-lifecycle-gftt206x.js} +0 -0
- /package/dist/chunks/{model-resolver-hk9envan.js → location-lifecycle-hk9envan.js} +0 -0
- /package/dist/chunks/{model-resolver-j2ntwpah.js → location-lifecycle-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-resolver-j5zkgpj8.js → location-lifecycle-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-resolver-jjkms2e6.js → location-lifecycle-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-resolver-jr7sbwjy.js → location-lifecycle-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-resolver-jwfs4k6c.js → location-lifecycle-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-resolver-jzg6c2d5.js → location-lifecycle-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-resolver-mp448xyj.js → location-lifecycle-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-resolver-msx8hqn2.js → location-lifecycle-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-resolver-n05xt0ee.js → location-lifecycle-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-resolver-n3j8tn72.js → location-lifecycle-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-resolver-njntx4h6.js → location-lifecycle-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-resolver-q3sfg36h.js → location-lifecycle-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-resolver-q74kybfr.js → location-lifecycle-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-resolver-qaymkmh1.js → location-lifecycle-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qb87gjwd.js → location-lifecycle-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-resolver-qfa1cgps.js → location-lifecycle-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-resolver-qg3g05ea.js → location-lifecycle-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-resolver-qrg20bc0.js → location-lifecycle-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-resolver-rcb2kzg1.js → location-lifecycle-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-resolver-sdp7kfr6.js → location-lifecycle-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-resolver-ssg3fenm.js → location-lifecycle-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-resolver-w803qqfp.js → location-lifecycle-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-resolver-wc3fc9cn.js → location-lifecycle-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-resolver-wer8tq1h.js → location-lifecycle-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-resolver-wtztk69x.js → location-lifecycle-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-resolver-x0ckcb58.js → location-lifecycle-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-resolver-x61499pn.js → location-lifecycle-x61499pn.js} +0 -0
- /package/dist/chunks/{model-resolver-y44na4kk.js → location-lifecycle-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-resolver-y8cydn3q.js → location-lifecycle-y8cydn3q.js} +0 -0
- /package/dist/chunks/{model-resolver-y8f7s663.js → location-lifecycle-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-resolver-ygaqb7jw.js → location-lifecycle-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-resolver-ym463w8f.js → location-lifecycle-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-resolver-z5v4ffb3.js → location-lifecycle-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-resolver-z9919s4g.js → location-lifecycle-z9919s4g.js} +0 -0
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeWithDefaults2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-5bcb55yf.js";
|
|
4
4
|
import {
|
|
5
5
|
apply3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-y0c4c2h5.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/database.ts
|
|
12
12
|
var exports_database = {};
|
|
13
13
|
__export(exports_database, {
|
|
14
14
|
Database: () => exports_database,
|
|
15
15
|
Options: () => Options11,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service84,
|
|
17
17
|
configured: () => configured13,
|
|
18
18
|
configuredClient: () => configuredClient2,
|
|
19
19
|
layer: () => layer26,
|
|
20
20
|
layerFromClient: () => layerFromClient2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node88
|
|
22
22
|
});
|
|
23
23
|
import { sqliteLayer, supportsForeignKeyToggle, supportsTuningPragmas } from "#sqlite";
|
|
24
24
|
import { Context, Effect, Layer, Schema, Semaphore } from "effect";
|
|
@@ -32,9 +32,9 @@ var Options11 = Schema.Struct({
|
|
|
32
32
|
path: Schema.optional(Schema.String)
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service84 extends Context.Service()("@opencode/storage/Database") {
|
|
36
36
|
}
|
|
37
|
-
var databaseLayer = (lock) => Layer.effect(
|
|
37
|
+
var databaseLayer = (lock) => Layer.effect(Service84, Effect.gen(function* () {
|
|
38
38
|
const db = yield* makeDatabase;
|
|
39
39
|
if (supportsTuningPragmas) {
|
|
40
40
|
yield* db.run("PRAGMA journal_mode = WAL");
|
|
@@ -82,15 +82,15 @@ async function restrictToOwner(filename) {
|
|
|
82
82
|
}
|
|
83
83
|
var layerFromClient2 = databaseLayer(Semaphore.make(1));
|
|
84
84
|
function configured13(options) {
|
|
85
|
-
return makeGlobalNode({ service:
|
|
85
|
+
return makeGlobalNode({ service: Service84, layer: layer26(options), deps: [Global.node] });
|
|
86
86
|
}
|
|
87
87
|
function configuredClient2(client) {
|
|
88
88
|
return makeGlobalNode({
|
|
89
|
-
service:
|
|
89
|
+
service: Service84,
|
|
90
90
|
layer: layerFromClient2.pipe(Layer.provide(client)),
|
|
91
91
|
deps: [Global.node]
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var node88 = configured13({ path: ":memory:" });
|
|
95
95
|
|
|
96
|
-
export { Options11,
|
|
96
|
+
export { Options11, Service84, layer26, layerFromClient2, configured13, configuredClient2, node88, exports_database };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-mfqp6xfm.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin22,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint2
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint2 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin22 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin37 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint2);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint2, Plugin22, exports_exa };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrations2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-8g3g94ah.js";
|
|
4
4
|
import {
|
|
5
5
|
schema_gen_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-34c7v6d4.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-hafepx0m.js";
|
|
7
7
|
import {
|
|
8
8
|
Slug2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-gebd4c9n.js";
|
|
10
|
+
import {
|
|
11
|
+
Service84,
|
|
12
|
+
node88
|
|
13
|
+
} from "./location-lifecycle-xj71rk50.js";
|
|
10
14
|
import {
|
|
11
15
|
Service83,
|
|
12
16
|
node87
|
|
13
|
-
} from "./
|
|
14
|
-
import {
|
|
15
|
-
Service82,
|
|
16
|
-
node86
|
|
17
|
-
} from "./model-resolver-ssrgjt3e.js";
|
|
17
|
+
} from "./location-lifecycle-2xmwdb14.js";
|
|
18
18
|
import {
|
|
19
19
|
ProjectTable2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-lifecycle-h2b79v29.js";
|
|
21
21
|
import {
|
|
22
22
|
WorktreeTable2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-lifecycle-1dvck2a7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID16,
|
|
26
26
|
NotFoundError11
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-lifecycle-mxbg3ygs.js";
|
|
28
28
|
import {
|
|
29
29
|
Ref4
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-lifecycle-kcbhgjfd.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
32
|
+
Service64,
|
|
33
|
+
node67
|
|
34
|
+
} from "./location-lifecycle-e6cvegzg.js";
|
|
35
35
|
import {
|
|
36
36
|
DirectoryUnavailableError2,
|
|
37
37
|
canonical2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./location-lifecycle-0vbcp93d.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./
|
|
40
|
+
Service21
|
|
41
|
+
} from "./location-lifecycle-3egv5ypg.js";
|
|
42
42
|
import {
|
|
43
43
|
__export
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
45
45
|
|
|
46
46
|
// src/worktree.ts
|
|
47
47
|
var exports_worktree2 = {};
|
|
@@ -49,19 +49,19 @@ __export(exports_worktree2, {
|
|
|
49
49
|
CreateInput: () => CreateInput3,
|
|
50
50
|
DestinationExistsError: () => DestinationExistsError2,
|
|
51
51
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
52
|
-
Event: () =>
|
|
52
|
+
Event: () => Event6,
|
|
53
53
|
Info: () => Info5,
|
|
54
54
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
55
55
|
List: () => List2,
|
|
56
56
|
ListEntry: () => ListEntry3,
|
|
57
57
|
OperationError: () => OperationError2,
|
|
58
58
|
RemoveInput: () => RemoveInput2,
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service20,
|
|
60
60
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
61
61
|
StrategyID: () => StrategyID2,
|
|
62
62
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
63
63
|
Worktree: () => exports_worktree2,
|
|
64
|
-
node: () =>
|
|
64
|
+
node: () => node23
|
|
65
65
|
});
|
|
66
66
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
67
67
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -79,7 +79,7 @@ var Info5 = Worktree.Info;
|
|
|
79
79
|
var List2 = Worktree.List;
|
|
80
80
|
var ListEntry3 = Worktree.ListEntry;
|
|
81
81
|
|
|
82
|
-
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID:
|
|
82
|
+
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID: ID16, directory: Schema.optional(AbsolutePath2) }) {
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
class DestinationExistsError2 extends Schema.TaggedError()("Worktree.DestinationExistsError", { directory: AbsolutePath2 }) {
|
|
@@ -90,17 +90,17 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
|
|
|
90
90
|
|
|
91
91
|
class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var Event6 = Worktree.Event;
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service20 extends Context.Service()("@opencode/Worktree") {
|
|
96
96
|
}
|
|
97
|
-
var layer = Layer.effect(
|
|
97
|
+
var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
98
98
|
const fs = yield* FSUtil.Service;
|
|
99
|
-
const database = yield*
|
|
99
|
+
const database = yield* Service84;
|
|
100
100
|
const db = database.db;
|
|
101
|
-
const bus = yield*
|
|
101
|
+
const bus = yield* Service83;
|
|
102
102
|
const processService = yield* AppProcess.Service;
|
|
103
|
-
const locations = yield*
|
|
103
|
+
const locations = yield* Service64;
|
|
104
104
|
const project = Effect.fnUntraced(function* (projectID) {
|
|
105
105
|
const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
|
|
106
106
|
if (!row)
|
|
@@ -115,11 +115,11 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
115
115
|
const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
|
|
116
116
|
const context = yield* locations.contextEffect(Ref4.make({ directory }));
|
|
117
117
|
yield* Context.get(context, Plugin.Service).awaitActivation;
|
|
118
|
-
return Context.get(context,
|
|
118
|
+
return Context.get(context, Service21).get();
|
|
119
119
|
});
|
|
120
120
|
const changed = Effect.fnUntraced(function* (projectID, update) {
|
|
121
121
|
if (update)
|
|
122
|
-
yield* bus.publish(
|
|
122
|
+
yield* bus.publish(Event6.Updated, { projectID });
|
|
123
123
|
});
|
|
124
124
|
const ops = {
|
|
125
125
|
list: Effect.fnUntraced(function* (projectID) {
|
|
@@ -246,7 +246,7 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
246
246
|
})).pipe(Effect.orDie);
|
|
247
247
|
yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
|
|
248
248
|
}, Effect.scoped);
|
|
249
|
-
return
|
|
249
|
+
return Service20.of({
|
|
250
250
|
list: Effect.fn("Worktree.list")(function* (input) {
|
|
251
251
|
yield* project(input.projectID);
|
|
252
252
|
return yield* ops.list(input.projectID);
|
|
@@ -256,10 +256,10 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
256
256
|
refresh
|
|
257
257
|
});
|
|
258
258
|
}));
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
259
|
+
var node23 = Node.makeGlobalNode({
|
|
260
|
+
service: Service20,
|
|
261
261
|
layer,
|
|
262
|
-
deps: [FSUtil.node,
|
|
262
|
+
deps: [FSUtil.node, node87, node88, AppProcess.node, node67]
|
|
263
263
|
});
|
|
264
264
|
function operationError(strategy, operation, error) {
|
|
265
265
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -269,4 +269,4 @@ function operationError(strategy, operation, error) {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
export { StrategyID2, CreateInput3, RemoveInput2, Info5, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2,
|
|
272
|
+
export { StrategyID2, CreateInput3, RemoveInput2, Info5, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event6, Service20, node23, exports_worktree2, OperationError2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID8,
|
|
3
|
+
Service61,
|
|
4
|
+
node64
|
|
5
|
+
} from "./location-lifecycle-gd6d6gzq.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID7,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -14,24 +14,24 @@ import {
|
|
|
14
14
|
timeouts2,
|
|
15
15
|
mergeOverlay2,
|
|
16
16
|
mergeHeaders2,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service60,
|
|
18
|
+
node63
|
|
19
|
+
} from "./location-lifecycle-t95mj38p.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service44,
|
|
22
|
+
node46
|
|
23
|
+
} from "./location-lifecycle-spbjn7pa.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID6,
|
|
26
26
|
VariantID2,
|
|
27
27
|
Ref2,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
Service54,
|
|
29
|
+
node57,
|
|
30
30
|
supportsText2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./location-lifecycle-78cd284a.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/model-resolver.ts
|
|
37
37
|
var exports_model_resolver = {};
|
|
@@ -40,15 +40,15 @@ __export(exports_model_resolver, {
|
|
|
40
40
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
41
41
|
ModelInitializationError: () => ModelInitializationError2,
|
|
42
42
|
ModelResolver: () => exports_model_resolver,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service43,
|
|
44
44
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
45
45
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
46
46
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
47
47
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
48
48
|
fromCatalogModel: () => fromCatalogModel2,
|
|
49
49
|
hasPackage: () => hasPackage2,
|
|
50
|
-
layer: () =>
|
|
51
|
-
node: () =>
|
|
50
|
+
layer: () => layer18,
|
|
51
|
+
node: () => node45,
|
|
52
52
|
resolveModel: () => resolveModel2,
|
|
53
53
|
withVariant: () => withVariant2
|
|
54
54
|
});
|
|
@@ -58,8 +58,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
58
58
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
59
59
|
import { Npm } from "@opencode/util/npm";
|
|
60
60
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
61
|
-
providerID:
|
|
62
|
-
modelID:
|
|
61
|
+
providerID: ID7,
|
|
62
|
+
modelID: ID6,
|
|
63
63
|
variant: VariantID2
|
|
64
64
|
}) {
|
|
65
65
|
get message() {
|
|
@@ -68,8 +68,8 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
71
|
-
providerID:
|
|
72
|
-
modelID:
|
|
71
|
+
providerID: ID7,
|
|
72
|
+
modelID: ID6,
|
|
73
73
|
package: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
get message() {
|
|
@@ -79,8 +79,8 @@ class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
79
79
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
80
80
|
|
|
81
81
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
82
|
-
providerID:
|
|
83
|
-
modelID:
|
|
82
|
+
providerID: ID7,
|
|
83
|
+
modelID: ID6,
|
|
84
84
|
package: Schema.String,
|
|
85
85
|
detail: Schema.String
|
|
86
86
|
}) {
|
|
@@ -90,8 +90,8 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
93
|
-
providerID:
|
|
94
|
-
modelID:
|
|
93
|
+
providerID: ID7,
|
|
94
|
+
modelID: ID6,
|
|
95
95
|
package: Schema.String,
|
|
96
96
|
phase: InitializationPhase2,
|
|
97
97
|
detail: Schema.String
|
|
@@ -102,8 +102,8 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
105
|
-
providerID:
|
|
106
|
-
modelID:
|
|
105
|
+
providerID: ID7,
|
|
106
|
+
modelID: ID6,
|
|
107
107
|
variables: Schema.Array(Schema.String)
|
|
108
108
|
}) {
|
|
109
109
|
get message() {
|
|
@@ -112,8 +112,8 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
115
|
-
providerID:
|
|
116
|
-
modelID:
|
|
115
|
+
providerID: ID7,
|
|
116
|
+
modelID: ID6,
|
|
117
117
|
route: Schema.String
|
|
118
118
|
}) {
|
|
119
119
|
get message() {
|
|
@@ -121,7 +121,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
class
|
|
124
|
+
class Service43 extends Context.Service()("@opencode/ModelResolver") {
|
|
125
125
|
}
|
|
126
126
|
var withVariant2 = (model, variantID) => {
|
|
127
127
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -261,15 +261,15 @@ var causeMessage = (cause) => {
|
|
|
261
261
|
};
|
|
262
262
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
263
263
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
264
|
-
var
|
|
265
|
-
const providers = yield*
|
|
266
|
-
const models = yield*
|
|
267
|
-
const integrations = yield*
|
|
264
|
+
var layer18 = Layer.effect(Service43, Effect.gen(function* () {
|
|
265
|
+
const providers = yield* Service60;
|
|
266
|
+
const models = yield* Service54;
|
|
267
|
+
const integrations = yield* Service61;
|
|
268
268
|
const npm = yield* Npm.Service;
|
|
269
|
-
const aisdk = yield*
|
|
269
|
+
const aisdk = yield* Service44;
|
|
270
270
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
271
271
|
const provider = yield* providers.get(selected.providerID);
|
|
272
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
272
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID8.make(selected.providerID));
|
|
273
273
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
274
274
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
275
275
|
const runtimeInfo = {
|
|
@@ -296,7 +296,7 @@ var layer21 = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
296
296
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
297
297
|
};
|
|
298
298
|
});
|
|
299
|
-
return
|
|
299
|
+
return Service43.of({
|
|
300
300
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
301
301
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
302
302
|
if (!selected)
|
|
@@ -313,10 +313,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
313
313
|
const name = packageName2(packageName);
|
|
314
314
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
315
315
|
}
|
|
316
|
-
var
|
|
317
|
-
service:
|
|
318
|
-
layer:
|
|
319
|
-
deps: [
|
|
316
|
+
var node45 = makeLocationNode({
|
|
317
|
+
service: Service43,
|
|
318
|
+
layer: layer18,
|
|
319
|
+
deps: [node63, node57, node64, Npm.node, node46]
|
|
320
320
|
});
|
|
321
321
|
|
|
322
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
322
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service43, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer18, node45, exports_model_resolver };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./location-lifecycle-2xmwdb14.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Agent: () =>
|
|
13
|
+
var exports_agent4 = {};
|
|
14
|
+
__export(exports_agent4, {
|
|
15
|
+
Agent: () => exports_agent4,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
18
|
-
ID: () =>
|
|
19
|
-
Info: () =>
|
|
17
|
+
Event: () => Event15,
|
|
18
|
+
ID: () => ID11,
|
|
19
|
+
Info: () => Info21,
|
|
20
20
|
Name: () => Name3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service68,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node71
|
|
24
24
|
});
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Array, Context, Effect, Layer } from "effect";
|
|
27
27
|
import { Agent } from "@opencode/schema/agent";
|
|
28
|
-
import { Event as
|
|
29
|
-
var
|
|
28
|
+
import { Event as Event15 } from "@opencode/schema/agent";
|
|
29
|
+
var ID11 = Agent.ID;
|
|
30
30
|
var Name3 = Agent.Name;
|
|
31
|
-
var defaultID2 =
|
|
31
|
+
var defaultID2 = ID11.make("build");
|
|
32
32
|
var Color2 = Agent.Color;
|
|
33
|
-
var
|
|
33
|
+
var Info21 = Agent.Info;
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service68 extends Context.Service()("@opencode/Agent") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const bus = yield*
|
|
37
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
38
|
+
const bus = yield* Service83;
|
|
39
39
|
const state = create3({
|
|
40
40
|
name: "agent",
|
|
41
41
|
initial: () => ({ agents: new Map }),
|
|
@@ -46,7 +46,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
46
46
|
editor.default = id;
|
|
47
47
|
},
|
|
48
48
|
update: (id, fn) => {
|
|
49
|
-
const current = editor.agents.get(id) ??
|
|
49
|
+
const current = editor.agents.get(id) ?? Info21.default(id);
|
|
50
50
|
if (!editor.agents.has(id))
|
|
51
51
|
editor.agents.set(id, current);
|
|
52
52
|
fn(current);
|
|
@@ -64,7 +64,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
64
64
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
65
65
|
if (configured)
|
|
66
66
|
return configured;
|
|
67
|
-
const build = selectable(data.agents.get(
|
|
67
|
+
const build = selectable(data.agents.get(ID11.make("build")));
|
|
68
68
|
if (build)
|
|
69
69
|
return build;
|
|
70
70
|
for (const agent of data.agents.values()) {
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
73
73
|
return fallback;
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
-
return
|
|
76
|
+
return Service68.of({
|
|
77
77
|
transform: state.transform,
|
|
78
78
|
reload: state.reload,
|
|
79
79
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -81,12 +81,12 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
81
81
|
}),
|
|
82
82
|
resolve: Effect.fnUntraced(function* (id) {
|
|
83
83
|
if (id !== undefined)
|
|
84
|
-
return state.get().agents.get(
|
|
84
|
+
return state.get().agents.get(ID11.make(id));
|
|
85
85
|
return selectedDefault();
|
|
86
86
|
}),
|
|
87
87
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
88
88
|
if (id !== undefined) {
|
|
89
|
-
const selected =
|
|
89
|
+
const selected = ID11.make(id);
|
|
90
90
|
return { id: selected, info: state.get().agents.get(selected) };
|
|
91
91
|
}
|
|
92
92
|
const info = selectedDefault();
|
|
@@ -101,6 +101,6 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
101
101
|
})
|
|
102
102
|
});
|
|
103
103
|
}));
|
|
104
|
-
var
|
|
104
|
+
var node71 = makeLocationNode({ service: Service68, layer, deps: [node87] });
|
|
105
105
|
|
|
106
|
-
export {
|
|
106
|
+
export { ID11, Name3, defaultID2, Color2, Info21, Service68, node71, exports_agent4, Event15 };
|