@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,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service6,
|
|
13
|
+
node: () => node8
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service6 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service6.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node8 = makeLocationNode({ service: Service6, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service6, node8, exports_location_watcher_policy };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./location-lifecycle-2xmwdb14.js";
|
|
5
|
+
import {
|
|
6
|
+
Key4,
|
|
2
7
|
Service82,
|
|
3
8
|
node86
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Key3,
|
|
7
|
-
Service74,
|
|
8
|
-
node78
|
|
9
|
-
} from "./model-resolver-1p1pjvaa.js";
|
|
9
|
+
} from "./location-lifecycle-hbp9e5gh.js";
|
|
10
10
|
import {
|
|
11
11
|
create3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-lifecycle-rdw6cm16.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-zw2hpfmh.js";
|
|
16
16
|
import {
|
|
17
17
|
validateAnswer2,
|
|
18
18
|
validateFields2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-lifecycle-3ex7axyr.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/integration.ts
|
|
25
25
|
var exports_integration = {};
|
|
@@ -34,17 +34,17 @@ __export(exports_integration, {
|
|
|
34
34
|
CommandAttemptStatus: () => CommandAttemptStatus2,
|
|
35
35
|
CommandMethod: () => CommandMethod2,
|
|
36
36
|
EnvMethod: () => EnvMethod2,
|
|
37
|
-
Event: () =>
|
|
38
|
-
ID: () =>
|
|
39
|
-
Info: () =>
|
|
37
|
+
Event: () => Event13,
|
|
38
|
+
ID: () => ID8,
|
|
39
|
+
Info: () => Info17,
|
|
40
40
|
Integration: () => exports_integration,
|
|
41
41
|
KeyMethod: () => KeyMethod2,
|
|
42
42
|
Method: () => Method2,
|
|
43
43
|
MethodID: () => MethodID2,
|
|
44
44
|
OAuthMethod: () => OAuthMethod2,
|
|
45
45
|
Ref: () => Ref3,
|
|
46
|
-
Service: () =>
|
|
47
|
-
node: () =>
|
|
46
|
+
Service: () => Service61,
|
|
47
|
+
node: () => node64
|
|
48
48
|
});
|
|
49
49
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
50
50
|
import {
|
|
@@ -66,8 +66,8 @@ import {
|
|
|
66
66
|
import { Integration } from "@opencode/schema/integration";
|
|
67
67
|
import { AppProcess } from "@opencode/util/process";
|
|
68
68
|
import { ChildProcess } from "effect/unstable/process";
|
|
69
|
-
import { Event as
|
|
70
|
-
var
|
|
69
|
+
import { Event as Event13 } from "@opencode/schema/integration";
|
|
70
|
+
var ID8 = Integration.ID;
|
|
71
71
|
var MethodID2 = Integration.MethodID;
|
|
72
72
|
var AttemptID2 = Integration.AttemptID;
|
|
73
73
|
var OAuthMethod2 = Integration.OAuthMethod;
|
|
@@ -75,7 +75,7 @@ var CommandMethod2 = Integration.CommandMethod;
|
|
|
75
75
|
var KeyMethod2 = Integration.KeyMethod;
|
|
76
76
|
var EnvMethod2 = Integration.EnvMethod;
|
|
77
77
|
var Method2 = Integration.Method;
|
|
78
|
-
var
|
|
78
|
+
var Info17 = Integration.Info;
|
|
79
79
|
var Attempt2 = Integration.Attempt;
|
|
80
80
|
var AttemptStatus2 = Integration.AttemptStatus;
|
|
81
81
|
var CommandAttempt2 = Integration.CommandAttempt;
|
|
@@ -98,20 +98,20 @@ class AuthorizationError2 extends Schema.TaggedError()("Integration.Authorizatio
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNotFound", {
|
|
101
|
-
integrationID:
|
|
101
|
+
integrationID: ID8,
|
|
102
102
|
attemptID: AttemptID2
|
|
103
103
|
}) {
|
|
104
104
|
}
|
|
105
105
|
var Ref3 = Integration.Ref;
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service61 extends Context.Service()("@opencode/Integration") {
|
|
108
108
|
}
|
|
109
109
|
var attemptLifetime = Duration.toMillis(Duration.minutes(10));
|
|
110
110
|
var terminalRetention = Duration.toMillis(Duration.minutes(1));
|
|
111
111
|
var scrubInterval = Duration.seconds(30);
|
|
112
|
-
var layer = Layer.effect(
|
|
113
|
-
const credentials = yield*
|
|
114
|
-
const bus = yield*
|
|
112
|
+
var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
113
|
+
const credentials = yield* Service82;
|
|
114
|
+
const bus = yield* Service83;
|
|
115
115
|
const processes = yield* AppProcess.Service;
|
|
116
116
|
const scope = yield* Scope.Scope;
|
|
117
117
|
const attempts = SynchronizedRef.makeUnsafe(new Map);
|
|
@@ -207,7 +207,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
207
207
|
const env = (entry?.methods ?? []).filter((method) => method.type === "env").flatMap((method) => method.names.filter((name) => process.env[name])).map((name) => ({ type: "env", name }));
|
|
208
208
|
return [...credentials, ...env];
|
|
209
209
|
};
|
|
210
|
-
const project = (entry, connections) =>
|
|
210
|
+
const project = (entry, connections) => Info17.make({
|
|
211
211
|
id: entry.ref.id,
|
|
212
212
|
name: entry.ref.name,
|
|
213
213
|
...entry.ref.metadata === undefined ? {} : { metadata: entry.ref.metadata },
|
|
@@ -294,7 +294,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
294
294
|
const persistence = yield* createCredential({
|
|
295
295
|
integrationID: attempt.integrationID,
|
|
296
296
|
label: attempt.label,
|
|
297
|
-
value:
|
|
297
|
+
value: Key4.make({ type: "key", key: exit.value })
|
|
298
298
|
}).pipe(Effect.asVoid, Effect.exit);
|
|
299
299
|
const settledAt = yield* Clock.currentTimeMillis;
|
|
300
300
|
const terminal = Exit.isSuccess(persistence) ? {
|
|
@@ -440,7 +440,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
440
440
|
}).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
|
|
441
441
|
return CommandAttempt2.make({ attemptID, time });
|
|
442
442
|
});
|
|
443
|
-
return
|
|
443
|
+
return Service61.of({
|
|
444
444
|
transform: state.transform,
|
|
445
445
|
reload: state.reload,
|
|
446
446
|
revision: state.revision,
|
|
@@ -462,7 +462,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
462
462
|
resolve: Effect.fn("Integration.connection.resolve")(function* (connection) {
|
|
463
463
|
if (connection.type === "env") {
|
|
464
464
|
const key = process.env[connection.name];
|
|
465
|
-
return key ?
|
|
465
|
+
return key ? Key4.make({ type: "key", key }) : undefined;
|
|
466
466
|
}
|
|
467
467
|
const credential = yield* credentials.get(connection.id);
|
|
468
468
|
if (!credential)
|
|
@@ -495,7 +495,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
495
495
|
yield* createCredential({
|
|
496
496
|
integrationID: input.integrationID,
|
|
497
497
|
label: input.label,
|
|
498
|
-
value:
|
|
498
|
+
value: Key4.make({
|
|
499
499
|
type: "key",
|
|
500
500
|
key: input.key,
|
|
501
501
|
...Object.keys(answer).length > 0 ? { configuration: answer } : {}
|
|
@@ -599,10 +599,10 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
}));
|
|
602
|
-
var
|
|
603
|
-
service:
|
|
602
|
+
var node64 = makeLocationNode({
|
|
603
|
+
service: Service61,
|
|
604
604
|
layer,
|
|
605
|
-
deps: [
|
|
605
|
+
deps: [node86, node87, AppProcess.node]
|
|
606
606
|
});
|
|
607
607
|
|
|
608
|
-
export {
|
|
608
|
+
export { ID8, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, EnvMethod2, Method2, Info17, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3, Service61, node64, exports_integration, Event13 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service10,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node12
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service10 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service10.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node12 = makeGlobalNode({ service: Service10, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service10, node12, exports_discovery };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/hooks.ts
|
|
6
6
|
var exports_hooks = {};
|
|
7
7
|
__export(exports_hooks, {
|
|
8
8
|
PluginHooks: () => exports_hooks,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service69,
|
|
10
|
+
node: () => node72
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service69 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service69.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var
|
|
59
|
+
var node72 = makeLocationNode({ service: Service69, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service69, node72, exports_hooks };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-sz15h4sp.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service83
|
|
6
|
+
} from "./location-lifecycle-2xmwdb14.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event21
|
|
10
|
+
} from "./location-lifecycle-hbp9e5gh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID8,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-gd6d6gzq.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
ID7
|
|
17
|
+
} from "./location-lifecycle-t95mj38p.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID6,
|
|
20
20
|
Family2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-lifecycle-78cd284a.js";
|
|
22
22
|
import {
|
|
23
23
|
bootstrap2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-lifecycle-pjvnvgmy.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin/provider/digitalocean.ts
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { Clock, Deferred, Effect, Option, Schedule, Schema, Semaphore, Stream } from "effect";
|
|
29
29
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
30
|
-
var providerID =
|
|
31
|
-
var integrationID =
|
|
30
|
+
var providerID = ID7.make("digitalocean");
|
|
31
|
+
var integrationID = ID8.make("digitalocean");
|
|
32
32
|
var methodID = MethodID2.make("browser");
|
|
33
33
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
34
34
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -116,7 +116,7 @@ var oauth = {
|
|
|
116
116
|
var DigitalOceanPlugin2 = define({
|
|
117
117
|
id: "opencode.provider.digitalocean",
|
|
118
118
|
effect: Effect.fn(function* (ctx) {
|
|
119
|
-
const bus = yield*
|
|
119
|
+
const bus = yield* Service83;
|
|
120
120
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
121
121
|
const loading = Semaphore.makeUnsafe(1);
|
|
122
122
|
const loaded = { routers: [] };
|
|
@@ -148,7 +148,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
148
148
|
return;
|
|
149
149
|
for (const router of loaded.routers) {
|
|
150
150
|
const id = `router:${router.name}`;
|
|
151
|
-
if (evt.get(providerID)?.models.has(
|
|
151
|
+
if (evt.get(providerID)?.models.has(ID6.make(id)))
|
|
152
152
|
continue;
|
|
153
153
|
evt.models.update(providerID, id, (draft) => {
|
|
154
154
|
draft.name = router.name;
|
|
@@ -159,7 +159,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
162
|
-
yield* bus.subscribe(
|
|
162
|
+
yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
163
163
|
yield* refresh().pipe(Effect.repeat(Schedule.spaced("5 minutes")), Effect.forkScoped);
|
|
164
164
|
})
|
|
165
165
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2,
|
|
3
3
|
absoluteArrayColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-qnc92qwc.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-qfa1cgps.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-nxm207yx.js";
|
|
8
8
|
import {
|
|
9
9
|
MAX_TOTAL_PATCH_BYTES2,
|
|
10
10
|
emptyPatch2,
|
|
11
11
|
chunksByFile2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-lifecycle-tazgh4e4.js";
|
|
13
13
|
import {
|
|
14
14
|
gitExecutable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-ef5x83kb.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/git.ts
|
|
21
21
|
var exports_git3 = {};
|
|
@@ -23,11 +23,11 @@ __export(exports_git3, {
|
|
|
23
23
|
Git: () => exports_git3,
|
|
24
24
|
OperationError: () => OperationError3,
|
|
25
25
|
Repository: () => Repository2,
|
|
26
|
-
Service: () =>
|
|
26
|
+
Service: () => Service81,
|
|
27
27
|
TreeID: () => TreeID2,
|
|
28
28
|
Worktree: () => Worktree2,
|
|
29
29
|
WorktreeError: () => WorktreeError2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node85
|
|
31
31
|
});
|
|
32
32
|
import path from "path";
|
|
33
33
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -93,9 +93,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
93
93
|
}) {
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
class
|
|
96
|
+
class Service81 extends Context.Service()("@opencode/Git") {
|
|
97
97
|
}
|
|
98
|
-
var layer = Layer.effect(
|
|
98
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
99
99
|
const fs = yield* FSUtil.Service;
|
|
100
100
|
const proc = yield* AppProcess.Service;
|
|
101
101
|
const locks = makeUnsafe2();
|
|
@@ -419,7 +419,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
419
419
|
kind: index === 0 ? "main" : "linked"
|
|
420
420
|
}));
|
|
421
421
|
});
|
|
422
|
-
return
|
|
422
|
+
return Service81.of({
|
|
423
423
|
repo: { discover, clone, create },
|
|
424
424
|
remote: { get: remote },
|
|
425
425
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -435,7 +435,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
}));
|
|
438
|
-
var
|
|
438
|
+
var node85 = makeGlobalNode({ service: Service81, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
439
439
|
function run(cwd, proc, args) {
|
|
440
440
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
441
441
|
}
|
|
@@ -463,4 +463,4 @@ function resolvePath(cwd, value) {
|
|
|
463
463
|
return path.resolve(cwd, normalized);
|
|
464
464
|
}
|
|
465
465
|
|
|
466
|
-
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2,
|
|
466
|
+
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service81, node85, exports_git3 };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./location-lifecycle-xj71rk50.js";
|
|
1
5
|
import {
|
|
2
6
|
Service83,
|
|
3
7
|
node87
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Service82,
|
|
7
|
-
node86
|
|
8
|
-
} from "./model-resolver-ssrgjt3e.js";
|
|
8
|
+
} from "./location-lifecycle-2xmwdb14.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-lifecycle-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event21,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
27
|
-
Key: () =>
|
|
25
|
+
ID: () => ID18,
|
|
26
|
+
Info: () => Info29,
|
|
27
|
+
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service82,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node86
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
35
35
|
import { Credential } from "@opencode/schema/credential";
|
|
36
36
|
import { Integration } from "@opencode/schema/integration";
|
|
37
37
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
38
|
-
var
|
|
38
|
+
var ID18 = Credential.ID;
|
|
39
39
|
var OAuth3 = Credential.OAuth;
|
|
40
|
-
var
|
|
40
|
+
var Key4 = Credential.Key;
|
|
41
41
|
var External2 = Credential.External;
|
|
42
42
|
var Value2 = Credential.Value;
|
|
43
|
-
var
|
|
43
|
+
var Event21 = Credential.Event;
|
|
44
44
|
|
|
45
|
-
class
|
|
46
|
-
id:
|
|
45
|
+
class Info29 extends Schema.Class("Credential.Info")({
|
|
46
|
+
id: ID18,
|
|
47
47
|
integrationID: Integration.ID,
|
|
48
48
|
label: Schema.String,
|
|
49
49
|
value: Value2
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service82 extends Context.Service()("@opencode/Credential") {
|
|
54
54
|
}
|
|
55
|
-
var layer = Layer.effect(
|
|
56
|
-
const db = (yield*
|
|
57
|
-
const bus = yield*
|
|
55
|
+
var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
56
|
+
const db = (yield* Service84).db;
|
|
57
|
+
const bus = yield* Service83;
|
|
58
58
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
59
59
|
const stored = (row) => {
|
|
60
60
|
if (!row.integration_id)
|
|
61
61
|
return;
|
|
62
|
-
return new
|
|
62
|
+
return new Info29({
|
|
63
63
|
id: row.id,
|
|
64
64
|
integrationID: row.integration_id,
|
|
65
65
|
label: row.label,
|
|
@@ -70,7 +70,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
70
70
|
const credential = stored(row);
|
|
71
71
|
return credential ? [credential] : [];
|
|
72
72
|
});
|
|
73
|
-
return
|
|
73
|
+
return Service82.of({
|
|
74
74
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
75
75
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
76
76
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -78,8 +78,8 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
78
78
|
return row ? stored(row) : undefined;
|
|
79
79
|
}),
|
|
80
80
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
81
|
-
const credential = new
|
|
82
|
-
id: input.id ??
|
|
81
|
+
const credential = new Info29({
|
|
82
|
+
id: input.id ?? ID18.create(),
|
|
83
83
|
integrationID: input.integrationID,
|
|
84
84
|
label: input.label ?? "default",
|
|
85
85
|
value: input.value
|
|
@@ -110,9 +110,9 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
110
110
|
type: credential.value.type,
|
|
111
111
|
active: activated
|
|
112
112
|
});
|
|
113
|
-
yield* bus.publish(
|
|
113
|
+
yield* bus.publish(Event21.Updated, {}, { global: true });
|
|
114
114
|
if (activated)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event21.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
116
116
|
return credential;
|
|
117
117
|
}),
|
|
118
118
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -132,7 +132,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
132
132
|
})), Effect.orDie);
|
|
133
133
|
if (integrationID) {
|
|
134
134
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
135
|
-
yield* bus.publish(
|
|
135
|
+
yield* bus.publish(Event21.Switched, { integrationID, credentialID: id }, { global: true });
|
|
136
136
|
}
|
|
137
137
|
}),
|
|
138
138
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -164,7 +164,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
164
164
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
165
165
|
});
|
|
166
166
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
167
|
-
yield* bus.publish(
|
|
167
|
+
yield* bus.publish(Event21.Updated, {}, { global: true });
|
|
168
168
|
}),
|
|
169
169
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
170
170
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -197,12 +197,12 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
197
197
|
active: removed.switched,
|
|
198
198
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
199
199
|
});
|
|
200
|
-
yield* bus.publish(
|
|
200
|
+
yield* bus.publish(Event21.Updated, {}, { global: true });
|
|
201
201
|
if (removed.switched)
|
|
202
|
-
yield* bus.publish(
|
|
202
|
+
yield* bus.publish(Event21.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
203
203
|
})
|
|
204
204
|
});
|
|
205
205
|
}));
|
|
206
|
-
var
|
|
206
|
+
var node86 = makeGlobalNode({ service: Service82, layer, deps: [node88, node87] });
|
|
207
207
|
|
|
208
|
-
export {
|
|
208
|
+
export { ID18, OAuth3, Key4, External2, Value2, Event21, Info29, Service82, node86, exports_credential };
|