@opencode-ai/core 0.0.0-dev-19270 → 0.0.0-dev-19272
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 +79 -79
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/catalog.js +83 -83
- package/dist/chunks/{event-logger-7xhsmzca.js → file-00reg2c2.js} +27 -27
- package/dist/chunks/{event-logger-k1nec7fn.js → file-027zpkb9.js} +46 -46
- package/dist/chunks/{event-logger-qyb7zzb8.js → file-0cz8qjvn.js} +24 -24
- package/dist/chunks/{event-logger-0e0xafbb.js → file-0e0xafbb.js} +2 -2
- package/dist/chunks/{event-logger-0paq2nw3.js → file-0paq2nw3.js} +1 -1
- package/dist/chunks/{event-logger-0q0f95c6.js → file-0q0f95c6.js} +1 -1
- package/dist/chunks/{event-logger-0s9ayhjt.js → file-0s9ayhjt.js} +1 -1
- package/dist/chunks/{event-logger-veabk5tt.js → file-0xd2d7hb.js} +5 -5
- package/dist/chunks/{event-logger-hr77wr0b.js → file-10ac5mb1.js} +4 -4
- package/dist/chunks/{event-logger-2a1acymz.js → file-15q8ja5w.js} +8 -8
- package/dist/chunks/{event-logger-a2j7myrd.js → file-16067esn.js} +13 -13
- package/dist/chunks/{event-logger-8rw9y0s2.js → file-18y9d6e3.js} +8 -8
- package/dist/chunks/{event-logger-1ct4r87x.js → file-1ct4r87x.js} +1 -1
- package/dist/chunks/{event-logger-gst1f9je.js → file-1n6f46vg.js} +18 -18
- package/dist/chunks/{event-logger-gc58jpbv.js → file-1sh6j74x.js} +28 -28
- package/dist/chunks/{event-logger-v6xtkx9s.js → file-1twb386n.js} +19 -19
- package/dist/chunks/{event-logger-fs5fb795.js → file-1v2sb74s.js} +22 -22
- package/dist/chunks/{event-logger-57r6w3m4.js → file-1ywdb1gs.js} +14 -14
- package/dist/chunks/{event-logger-y8vkqrwp.js → file-1z0n5a5e.js} +1 -1
- package/dist/chunks/{event-logger-2qz6kd7g.js → file-1zmz9phy.js} +53 -53
- package/dist/chunks/{event-logger-tkqc8vjc.js → file-1zyg6qvf.js} +13 -13
- package/dist/chunks/{event-logger-8vb8v520.js → file-20gp0hkm.js} +5 -5
- package/dist/chunks/{event-logger-qa6veray.js → file-20m0c9gs.js} +39 -39
- package/dist/chunks/{event-logger-21r38tys.js → file-21r38tys.js} +1 -1
- package/dist/chunks/{event-logger-2a5m3afh.js → file-2a5m3afh.js} +1 -1
- package/dist/chunks/{event-logger-7t0f4jwm.js → file-2d967x0d.js} +8 -8
- package/dist/chunks/{event-logger-649hrv18.js → file-2e59x59w.js} +22 -22
- package/dist/chunks/{event-logger-f7688yv9.js → file-2f3p36qg.js} +61 -61
- package/dist/chunks/{event-logger-2ht70gj7.js → file-2ht70gj7.js} +1 -1
- package/dist/chunks/{event-logger-aqhd25s6.js → file-2hxs042s.js} +11 -11
- package/dist/chunks/{event-logger-90nbqzba.js → file-2j2hxhmw.js} +8 -8
- package/dist/chunks/{event-logger-76ad13z7.js → file-2mzaxh2c.js} +24 -24
- package/dist/chunks/{event-logger-s13wvnd8.js → file-31fepvhr.js} +23 -23
- package/dist/chunks/{event-logger-04z34cyb.js → file-3bm961pq.js} +32 -32
- package/dist/chunks/{event-logger-3hepkmqq.js → file-3hepkmqq.js} +1 -1
- package/dist/chunks/file-3jby5n97.js +247 -0
- package/dist/chunks/{event-logger-3qzbfqsy.js → file-3qzbfqsy.js} +2 -2
- package/dist/chunks/{event-logger-3smtnn6g.js → file-3smtnn6g.js} +1 -1
- package/dist/chunks/{event-logger-3tvqynh2.js → file-3tvqynh2.js} +1 -1
- package/dist/chunks/{event-logger-8h5aq4xt.js → file-3wqg4ya9.js} +9 -9
- package/dist/chunks/{event-logger-nw9wwv0v.js → file-41783rkf.js} +17 -17
- package/dist/chunks/{event-logger-xjde6dvc.js → file-42dkd7sx.js} +9 -9
- package/dist/chunks/{event-logger-6vmh5z3m.js → file-439v5pv6.js} +10 -10
- package/dist/chunks/{event-logger-454k5vzh.js → file-454k5vzh.js} +1 -1
- package/dist/chunks/{event-logger-e82z9tr0.js → file-47gsdddb.js} +4 -4
- package/dist/chunks/{event-logger-2pcfmef0.js → file-4b2p4jhk.js} +25 -25
- package/dist/chunks/{event-logger-2vaatpma.js → file-4meew9ge.js} +22 -22
- package/dist/chunks/{event-logger-qa8hzp96.js → file-4q810h8d.js} +15 -15
- package/dist/chunks/{event-logger-4r2nyarf.js → file-4r2nyarf.js} +1 -1
- package/dist/chunks/{event-logger-n38qs1ar.js → file-4x0nmcjx.js} +9 -9
- package/dist/chunks/{event-logger-zsaee4xm.js → file-4xq8pne6.js} +15 -15
- package/dist/chunks/{event-logger-651zrabc.js → file-4xzxjr5n.js} +4 -4
- package/dist/chunks/{event-logger-gcgemm0f.js → file-55n3z1fp.js} +25 -25
- package/dist/chunks/{event-logger-5daktx2q.js → file-5daktx2q.js} +1 -1
- package/dist/chunks/{event-logger-5fmxt4p5.js → file-5fmxt4p5.js} +1 -1
- package/dist/chunks/{event-logger-5jvc5tg2.js → file-5jvc5tg2.js} +1 -1
- package/dist/chunks/{event-logger-53aqztz0.js → file-5qw53pm7.js} +8 -8
- package/dist/chunks/{event-logger-tr5wmrcs.js → file-5raq1rfw.js} +2 -2
- package/dist/chunks/{event-logger-48dkwq03.js → file-5sz2f1pr.js} +3 -3
- package/dist/chunks/{event-logger-5a88k8qy.js → file-63qhkrdy.js} +6 -6
- package/dist/chunks/{event-logger-vv6k0gts.js → file-68fqgny1.js} +11 -11
- package/dist/chunks/{event-logger-e6dy5ms0.js → file-6cv54pwj.js} +13 -13
- package/dist/chunks/{event-logger-dh6cd1pj.js → file-6et5ytx9.js} +13 -13
- package/dist/chunks/{event-logger-2402vzrj.js → file-6h73sxmp.js} +5 -5
- package/dist/chunks/{event-logger-b27vhd2z.js → file-6hh8tjw2.js} +4 -4
- package/dist/chunks/{event-logger-mgnds49j.js → file-6jzsnms4.js} +10 -10
- package/dist/chunks/{event-logger-sbpbyj5x.js → file-6n4t6cts.js} +9 -9
- package/dist/chunks/{event-logger-9019yept.js → file-6qmx0jzx.js} +8 -8
- package/dist/chunks/{event-logger-77mw2pve.js → file-6s48shje.js} +3 -3
- package/dist/chunks/{event-logger-x69bxbzw.js → file-700rn1pz.js} +70 -70
- package/dist/chunks/{event-logger-711hfp6y.js → file-711hfp6y.js} +2 -2
- package/dist/chunks/{event-logger-jr5yayyw.js → file-714e9pdw.js} +23 -23
- package/dist/chunks/{event-logger-72nftnjy.js → file-72nftnjy.js} +2 -2
- package/dist/chunks/{event-logger-97f5v037.js → file-75yf2d83.js} +8 -8
- package/dist/chunks/{event-logger-7bmhse3q.js → file-7bmhse3q.js} +1 -1
- package/dist/chunks/{event-logger-vnheh1tn.js → file-7cd45grp.js} +5 -5
- package/dist/chunks/{event-logger-5p68f9j8.js → file-7dpy3wbt.js} +33 -33
- package/dist/chunks/{event-logger-4mxskjcf.js → file-7n0kdm8r.js} +24 -24
- package/dist/chunks/{event-logger-dxwyf2vj.js → file-7n49nt1a.js} +46 -46
- package/dist/chunks/{event-logger-ap16wxb8.js → file-7s38b6sy.js} +35 -35
- package/dist/chunks/{event-logger-ksr7895y.js → file-7t8zkc5k.js} +13 -13
- package/dist/chunks/{event-logger-71r7jc4s.js → file-7v18zwys.js} +5 -5
- package/dist/chunks/{event-logger-fjvydvzm.js → file-7w3s9kd0.js} +4 -4
- package/dist/chunks/file-7zk4hah4.js +4 -0
- package/dist/chunks/{event-logger-kp4k4qeh.js → file-80pk0g76.js} +51 -51
- package/dist/chunks/{event-logger-azc58fv1.js → file-86qb2ahz.js} +93 -93
- package/dist/chunks/{event-logger-1zkycv9w.js → file-8987rwtd.js} +16 -16
- package/dist/chunks/{event-logger-qykqfys3.js → file-89kcqtpa.js} +1 -1
- package/dist/chunks/{event-logger-y5yt17rr.js → file-8jfkartp.js} +7 -7
- package/dist/chunks/{event-logger-s5dw67k6.js → file-8mx8wt4z.js} +23 -23
- package/dist/chunks/{event-logger-fdc960w3.js → file-8xyq3q5x.js} +11 -11
- package/dist/chunks/{event-logger-y7w38hka.js → file-90hty9ag.js} +8 -8
- package/dist/chunks/{event-logger-y2cqme3r.js → file-93a8yfjt.js} +5 -5
- package/dist/chunks/{event-logger-t7nk3an2.js → file-96mf783c.js} +16 -16
- package/dist/chunks/{event-logger-2kpxjnwm.js → file-995kfgp5.js} +61 -61
- package/dist/chunks/{event-logger-r1cq807p.js → file-9eaw7gz6.js} +11 -11
- package/dist/chunks/{event-logger-pswbxvaq.js → file-9qj19fry.js} +20 -20
- package/dist/chunks/{event-logger-9mxqc105.js → file-9tdr4743.js} +11 -11
- package/dist/chunks/{event-logger-kqrs6ffg.js → file-9tjsbxxt.js} +4 -4
- package/dist/chunks/{event-logger-p7s9z1vk.js → file-a0tz1fcg.js} +8 -8
- package/dist/chunks/{event-logger-px8jrnt8.js → file-a2t3hdqf.js} +22 -22
- package/dist/chunks/{event-logger-n8z0dz7q.js → file-a3m9jqrh.js} +41 -41
- package/dist/chunks/{event-logger-b1f53xvx.js → file-a760ba0t.js} +40 -40
- package/dist/chunks/{event-logger-arkp87cx.js → file-aa4w0yyg.js} +9 -9
- package/dist/chunks/{event-logger-aaet6srn.js → file-aaet6srn.js} +2 -2
- package/dist/chunks/{event-logger-cx47s3kk.js → file-abx9dtfn.js} +15 -15
- package/dist/chunks/{event-logger-cfsc9srb.js → file-acd73yp7.js} +2 -2
- package/dist/chunks/{event-logger-gqv6n70q.js → file-avp4f6gq.js} +22 -22
- package/dist/chunks/{event-logger-n1160xf3.js → file-avr9ncqd.js} +3 -3
- package/dist/chunks/{event-logger-0n3157te.js → file-aw7atsc2.js} +30 -30
- package/dist/chunks/{event-logger-azbx08pf.js → file-azbx08pf.js} +2 -2
- package/dist/chunks/{event-logger-smw8fna6.js → file-azhj5vsd.js} +4 -4
- package/dist/chunks/{event-logger-h74nk91f.js → file-b2heckpg.js} +9 -9
- package/dist/chunks/{event-logger-b6gygkdw.js → file-b6gygkdw.js} +2 -2
- package/dist/chunks/{event-logger-b9wsbatv.js → file-b9wsbatv.js} +1 -1
- package/dist/chunks/{event-logger-8bz46mre.js → file-baqyzacq.js} +15 -15
- package/dist/chunks/{event-logger-g8tbs1mx.js → file-bd8895yt.js} +9 -9
- package/dist/chunks/{event-logger-02744596.js → file-bfqnwd64.js} +22 -22
- package/dist/chunks/{event-logger-m9pzte34.js → file-bvefb309.js} +29 -29
- package/dist/chunks/{event-logger-04ndcpas.js → file-c4j9y4rn.js} +6 -6
- package/dist/chunks/{event-logger-sag13hgn.js → file-c614c79v.js} +33 -33
- package/dist/chunks/{event-logger-xxm60j6r.js → file-ch51bjm6.js} +32 -32
- package/dist/chunks/{event-logger-eh0017dt.js → file-ch7tgcz2.js} +6 -6
- package/dist/chunks/{event-logger-qkdc4gh9.js → file-d01fwvvs.js} +32 -32
- package/dist/chunks/{event-logger-b49m8fgq.js → file-d1r6xp0s.js} +1 -1
- package/dist/chunks/{event-logger-y71avatq.js → file-dpkg50ah.js} +4 -4
- package/dist/chunks/file-dxj72tfx.js +18 -0
- package/dist/chunks/{event-logger-9356vnjg.js → file-ec12g7es.js} +10 -10
- package/dist/chunks/{event-logger-4ev3xkgk.js → file-edp744gf.js} +19 -19
- package/dist/chunks/{event-logger-bsxj805k.js → file-egdvntj9.js} +4 -4
- package/dist/chunks/{event-logger-2agsgd55.js → file-egvbpfah.js} +20 -20
- package/dist/chunks/{event-logger-5pmg8y2k.js → file-em4jqsae.js} +9 -9
- package/dist/chunks/{event-logger-pg0k6zd9.js → file-eqadegh7.js} +17 -17
- package/dist/chunks/{event-logger-04w48dza.js → file-es7k2nge.js} +18 -18
- package/dist/chunks/{event-logger-33a3999f.js → file-ev2rrb4j.js} +13 -13
- package/dist/chunks/{event-logger-qepd9qkj.js → file-f153bnw9.js} +32 -32
- package/dist/chunks/{event-logger-famd3pv6.js → file-famd3pv6.js} +2 -2
- package/dist/chunks/{event-logger-3egsw9h3.js → file-fhmwnx54.js} +16 -16
- package/dist/chunks/{event-logger-ny14xqs8.js → file-fqqeed3e.js} +3 -3
- package/dist/chunks/{event-logger-eh5astyw.js → file-fv5yxb1g.js} +15 -15
- package/dist/chunks/{event-logger-gaqvsmtp.js → file-fvkqsvkf.js} +13 -13
- package/dist/chunks/{event-logger-fxbjtjnd.js → file-fxbjtjnd.js} +1 -1
- package/dist/chunks/{event-logger-fxypknc8.js → file-fxypknc8.js} +1 -1
- package/dist/chunks/{event-logger-hrvm11jt.js → file-g2dy4bvs.js} +3 -3
- package/dist/chunks/{event-logger-d72308c8.js → file-g2gt0w0k.js} +2 -2
- package/dist/chunks/{event-logger-6410wk0j.js → file-g8e12k89.js} +28 -28
- package/dist/chunks/{event-logger-gd4qta3r.js → file-gd4qta3r.js} +1 -1
- package/dist/chunks/{event-logger-gdvy8fx6.js → file-gdvy8fx6.js} +1 -1
- package/dist/chunks/{event-logger-psmm2yth.js → file-genak0r7.js} +27 -27
- package/dist/chunks/{event-logger-n3jkd22a.js → file-gst7axd9.js} +4 -4
- package/dist/chunks/{event-logger-j6kh1gxc.js → file-gt6yvprt.js} +30 -30
- package/dist/chunks/{event-logger-ap61c4m7.js → file-gtx234ja.js} +11 -11
- package/dist/chunks/{event-logger-482fjgf8.js → file-h0epfjdv.js} +12 -12
- package/dist/chunks/{event-logger-zg8qpx08.js → file-h1jrq5re.js} +22 -22
- package/dist/chunks/{event-logger-h6vf3j39.js → file-h6vf3j39.js} +1 -1
- package/dist/chunks/{event-logger-q9qp0n80.js → file-hdm5hsgj.js} +11 -11
- package/dist/chunks/{event-logger-heyhwy2w.js → file-heyhwy2w.js} +1 -1
- package/dist/chunks/{event-logger-52ahense.js → file-hr8t3zyz.js} +26 -26
- package/dist/chunks/{event-logger-6d7py5pp.js → file-hs6n7c7c.js} +6 -6
- package/dist/chunks/{event-logger-6yqvxqw6.js → file-htgpf65e.js} +4 -4
- package/dist/chunks/{event-logger-kvsjn1dr.js → file-hw4pv20g.js} +2 -2
- package/dist/chunks/{event-logger-0nsz8vzd.js → file-ja84rtcf.js} +9 -9
- package/dist/chunks/{event-logger-crmsxg30.js → file-jpjp7rjs.js} +37 -37
- package/dist/chunks/{event-logger-8vmp5gpy.js → file-jq3nctfs.js} +1 -1
- package/dist/chunks/{event-logger-k4bwy1x5.js → file-k4bwy1x5.js} +1 -1
- package/dist/chunks/{event-logger-8cpspsbc.js → file-k7hkxkr1.js} +46 -46
- package/dist/chunks/{event-logger-emyx9er5.js → file-kb18vgps.js} +5 -5
- package/dist/chunks/{event-logger-z4j8hfk3.js → file-kdvt95pv.js} +1 -1
- package/dist/chunks/{event-logger-5pea024z.js → file-ke5ewz7h.js} +35 -35
- package/dist/chunks/{event-logger-wxdqhjpe.js → file-kejcdhme.js} +32 -32
- package/dist/chunks/{event-logger-kg06axw8.js → file-kg06axw8.js} +1 -1
- package/dist/chunks/{event-logger-c2c2v0dr.js → file-kg4h0fdk.js} +7 -7
- package/dist/chunks/{event-logger-epfc0kkn.js → file-kh7gnveq.js} +48 -48
- package/dist/chunks/{event-logger-ewakerm7.js → file-kkak2gjn.js} +35 -35
- package/dist/chunks/{event-logger-j56a44mc.js → file-kp5z882f.js} +12 -12
- package/dist/chunks/{event-logger-e18fk74z.js → file-ky9h9abj.js} +29 -29
- package/dist/chunks/{event-logger-me1tkt4h.js → file-m6vwhxae.js} +13 -13
- package/dist/chunks/{event-logger-r8cjn694.js → file-m7zcd501.js} +15 -15
- package/dist/chunks/{event-logger-m9w0rfyh.js → file-m9w0rfyh.js} +1 -1
- package/dist/chunks/{event-logger-kk00bynn.js → file-magykp64.js} +21 -21
- package/dist/chunks/{event-logger-jc1k2998.js → file-mfdhqe4j.js} +17 -17
- package/dist/chunks/{event-logger-33w4ejhs.js → file-mfqp6xfm.js} +9 -9
- package/dist/chunks/{event-logger-mn2bwfrj.js → file-mjypb2e5.js} +11 -11
- package/dist/chunks/{event-logger-nff8s0dr.js → file-mpxyhn9d.js} +9 -9
- package/dist/chunks/{event-logger-znjwsc62.js → file-mzfb76av.js} +4 -4
- package/dist/chunks/{event-logger-m7kk9p21.js → file-nj9fmwgy.js} +6 -6
- package/dist/chunks/{event-logger-ytej5dzn.js → file-nq9f4j49.js} +11 -11
- package/dist/chunks/{event-logger-hkymyjrq.js → file-nrewnjs6.js} +26 -26
- package/dist/chunks/{event-logger-95y1s46n.js → file-nsjxktg3.js} +32 -32
- package/dist/chunks/{event-logger-g0p24pj3.js → file-p3n0cezx.js} +4 -4
- package/dist/chunks/file-p46ta686.js +462 -0
- package/dist/chunks/{event-logger-9rx0ctva.js → file-p7g53rbe.js} +16 -16
- package/dist/chunks/{event-logger-wg9v2026.js → file-p7sv0kv1.js} +2 -2
- package/dist/chunks/{event-logger-j935v87r.js → file-paphc93g.js} +2 -2
- package/dist/chunks/{event-logger-qa3r735v.js → file-pawcwqnj.js} +25 -25
- package/dist/chunks/{event-logger-5ebw3s4g.js → file-pfq1ksym.js} +5 -5
- package/dist/chunks/{event-logger-pjvnvgmy.js → file-pjvnvgmy.js} +1 -1
- package/dist/chunks/{event-logger-pknna89w.js → file-pknna89w.js} +1 -1
- package/dist/chunks/{event-logger-1n116cmy.js → file-pt34y05q.js} +9 -9
- package/dist/chunks/{event-logger-ehbr65jm.js → file-q2qmez4x.js} +41 -41
- package/dist/chunks/{event-logger-7dqw4kz8.js → file-qgn6gcr1.js} +5 -5
- package/dist/chunks/{event-logger-f16f7hh4.js → file-qkckfa6e.js} +32 -32
- package/dist/chunks/{event-logger-hkgsrpyg.js → file-qq8am05g.js} +6 -6
- package/dist/chunks/{event-logger-z709tr9t.js → file-qqk5wyw8.js} +9 -9
- package/dist/chunks/{event-logger-yjfqme9d.js → file-qs32hcek.js} +1 -1
- package/dist/chunks/{event-logger-qsdy395h.js → file-qsdy395h.js} +1 -1
- package/dist/chunks/{event-logger-9qm9egsn.js → file-qvbcabdc.js} +2 -2
- package/dist/chunks/file-qzmfez1f.js +22 -0
- package/dist/chunks/{event-logger-7yqjxrmz.js → file-r33ff4dw.js} +4 -4
- package/dist/chunks/{event-logger-mhkvc446.js → file-r5x6zcsm.js} +3 -3
- package/dist/chunks/{event-logger-r8dhm0tv.js → file-r8dhm0tv.js} +1 -1
- package/dist/chunks/{event-logger-f2n192rq.js → file-r8xr0va3.js} +4 -4
- package/dist/chunks/{event-logger-r98e92ep.js → file-r98e92ep.js} +1 -1
- package/dist/chunks/{event-logger-fn21nrem.js → file-rbkeg46f.js} +18 -18
- package/dist/chunks/{event-logger-w803vjcr.js → file-rbnbtzf4.js} +21 -21
- package/dist/chunks/{event-logger-g6xkk4cs.js → file-rdqyyj99.js} +16 -16
- package/dist/chunks/{event-logger-dykj04b8.js → file-rg6ph823.js} +1 -1
- package/dist/chunks/{event-logger-8r3fgy27.js → file-rra91dx6.js} +5 -5
- package/dist/chunks/{event-logger-vgzs21vf.js → file-rx882sts.js} +10 -10
- package/dist/chunks/{event-logger-3dzkh6c7.js → file-rxez074z.js} +8 -8
- package/dist/chunks/{event-logger-c367n02b.js → file-s0611vc9.js} +21 -21
- package/dist/chunks/{event-logger-bt2q55qx.js → file-s8f0jrtd.js} +7 -7
- package/dist/chunks/{event-logger-sba4qhjf.js → file-sba4qhjf.js} +1 -1
- package/dist/chunks/{event-logger-qzmr9e0e.js → file-sbybs2v2.js} +10 -10
- package/dist/chunks/{event-logger-7z5zeem4.js → file-sc6hcnnz.js} +24 -24
- package/dist/chunks/{event-logger-avkcn1hw.js → file-sc8za2qh.js} +23 -23
- package/dist/chunks/{event-logger-mhpjr403.js → file-shn0ywqn.js} +37 -37
- package/dist/chunks/{event-logger-3wwadp1k.js → file-sjtsqb9r.js} +27 -27
- package/dist/chunks/{event-logger-3mqcfnym.js → file-sst1nn41.js} +6 -6
- package/dist/chunks/{event-logger-7zsp3549.js → file-t1qabjyn.js} +1 -1
- package/dist/chunks/{event-logger-1874dbcy.js → file-t7fxkjbz.js} +33 -33
- package/dist/chunks/{event-logger-tazgh4e4.js → file-tazgh4e4.js} +1 -1
- package/dist/chunks/{event-logger-xbqx2yay.js → file-tb8dpv5p.js} +26 -26
- package/dist/chunks/{event-logger-tcezcvh9.js → file-tcezcvh9.js} +1 -1
- package/dist/chunks/{event-logger-6exqp8n9.js → file-tdr9t4mh.js} +42 -42
- package/dist/chunks/{event-logger-dv0c27f7.js → file-thfztt2m.js} +46 -46
- package/dist/chunks/{event-logger-tjykrgmx.js → file-tjykrgmx.js} +1 -1
- package/dist/chunks/{event-logger-nvxrz732.js → file-tk2rvp0q.js} +9 -9
- package/dist/chunks/{event-logger-pj7ws487.js → file-v6y89d02.js} +10 -10
- package/dist/chunks/{event-logger-zc6sjq0c.js → file-v9zxr500.js} +17 -17
- package/dist/chunks/{event-logger-7z350t8f.js → file-vbj99q9w.js} +4 -4
- package/dist/chunks/{event-logger-rar2k6k0.js → file-vbr8k7xx.js} +17 -17
- package/dist/chunks/{event-logger-v108a9gw.js → file-vf86qhjs.js} +19 -19
- package/dist/chunks/{event-logger-00rs7zn3.js → file-vg48r056.js} +8 -8
- package/dist/chunks/{event-logger-wnk3h3cv.js → file-vhda22q0.js} +30 -30
- package/dist/chunks/{event-logger-9e01map7.js → file-vmw8ntz2.js} +15 -15
- package/dist/chunks/{event-logger-73jkfec7.js → file-vrffs025.js} +9 -9
- package/dist/chunks/{event-logger-0n6ygqf2.js → file-vtvdbtra.js} +29 -29
- package/dist/chunks/{event-logger-eex93kgw.js → file-vvxk4g51.js} +89 -89
- package/dist/chunks/{event-logger-w3wsvvr9.js → file-w3wsvvr9.js} +1 -1
- package/dist/chunks/{event-logger-wd87259q.js → file-wd87259q.js} +1 -1
- package/dist/chunks/{event-logger-z1ernczf.js → file-wgc2mr3y.js} +2 -2
- package/dist/chunks/{event-logger-73w840wv.js → file-wysnsbqm.js} +11 -11
- package/dist/chunks/{event-logger-78wbf0ts.js → file-x17e5jjd.js} +4 -4
- package/dist/chunks/{event-logger-x1ezjp6w.js → file-x1ezjp6w.js} +1 -1
- package/dist/chunks/{event-logger-zrj0g0v3.js → file-x42cedzz.js} +15 -15
- package/dist/chunks/{event-logger-jf1fjy84.js → file-xmqh3v6j.js} +36 -36
- package/dist/chunks/{event-logger-mhqhjkck.js → file-xt79nmzr.js} +11 -11
- package/dist/chunks/{event-logger-wce688xf.js → file-xzzxrhge.js} +6 -6
- package/dist/chunks/{event-logger-y1fvbwt7.js → file-y1fvbwt7.js} +1 -1
- package/dist/chunks/{event-logger-55xejxnm.js → file-y2jxh97m.js} +14 -14
- package/dist/chunks/{event-logger-bgf77dmf.js → file-y7f18nsc.js} +16 -16
- package/dist/chunks/{event-logger-er616wda.js → file-y9kct8vd.js} +8 -8
- package/dist/chunks/{event-logger-8hk1zmm4.js → file-yaamn39p.js} +11 -11
- package/dist/chunks/{event-logger-ajtjthsy.js → file-yg7sb877.js} +2 -2
- package/dist/chunks/{event-logger-473ehccc.js → file-yjagf5z6.js} +20 -20
- package/dist/chunks/{event-logger-tbyfaj9q.js → file-yjcamwv1.js} +11 -11
- package/dist/chunks/{event-logger-84er94dy.js → file-ytg3twhn.js} +14 -14
- package/dist/chunks/{event-logger-3883t5g1.js → file-yvfkj8fv.js} +5 -5
- package/dist/chunks/{event-logger-xp6539m8.js → file-yxptnz34.js} +33 -33
- package/dist/chunks/{event-logger-z1k01bn4.js → file-z1k01bn4.js} +2 -2
- package/dist/chunks/{event-logger-dv733n1z.js → file-z3ksxrt6.js} +11 -11
- package/dist/chunks/{event-logger-mf9n5a9p.js → file-z44vkrmb.js} +4 -4
- package/dist/chunks/{event-logger-29x78va6.js → file-z63w68vq.js} +6 -6
- package/dist/chunks/{event-logger-mq0j9q5v.js → file-zdenmwdn.js} +171 -171
- package/dist/chunks/{event-logger-3xk8ds7b.js → file-zk5c2nev.js} +22 -22
- package/dist/chunks/{event-logger-fgxghpax.js → file-zpfprgc4.js} +17 -17
- package/dist/chunks/{event-logger-gz6j7rd2.js → file-zqx2gt1x.js} +20 -20
- package/dist/chunks/{event-logger-wnn95480.js → file-zrqqs77b.js} +5 -5
- package/dist/chunks/{event-logger-qwn86fs0.js → file-zrt4f2sp.js} +12 -12
- package/dist/chunks/{event-logger-zxq2ej10.js → file-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +79 -79
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +115 -115
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +68 -68
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +77 -77
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -361
- 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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- 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 +72 -72
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +100 -100
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +89 -89
- package/dist/git.js +7 -7
- 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 +7 -7
- 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/id/id.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 +352 -352
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +133 -133
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +349 -349
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +120 -120
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +10 -10
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -112
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +323 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +2 -2
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +131 -131
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +338 -338
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +7 -7
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +94 -94
- package/dist/reference/instructions.js +82 -82
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -93
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +147 -147
- 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 +219 -219
- package/dist/session/execution.js +122 -122
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +86 -86
- 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 +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +119 -119
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +149 -149
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +86 -86
- 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 +121 -121
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +115 -115
- package/dist/tool/plugin/question.js +98 -98
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +100 -100
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +15 -15
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- 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 +2 -2
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +1 -1
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +78 -78
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +339 -339
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +91 -91
- package/package.json +8 -8
- package/dist/chunks/event-logger-f4j0pa50.js +0 -4
- package/dist/chunks/event-logger-jvadnytq.js +0 -462
- package/dist/chunks/event-logger-nn0r0h9n.js +0 -247
- package/dist/chunks/event-logger-p2h6zvwc.js +0 -18
- package/dist/chunks/event-logger-tr4emeve.js +0 -22
- /package/dist/chunks/{event-logger-0fabt78z.js → file-0fabt78z.js} +0 -0
- /package/dist/chunks/{event-logger-0qkdqm5v.js → file-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{event-logger-0zkw76rk.js → file-0zkw76rk.js} +0 -0
- /package/dist/chunks/{event-logger-17cy0kzp.js → file-17cy0kzp.js} +0 -0
- /package/dist/chunks/{event-logger-1cnp2v09.js → file-1cnp2v09.js} +0 -0
- /package/dist/chunks/{event-logger-1kg9ymc8.js → file-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{event-logger-2710q6r3.js → file-2710q6r3.js} +0 -0
- /package/dist/chunks/{event-logger-2axfhc9x.js → file-2axfhc9x.js} +0 -0
- /package/dist/chunks/{event-logger-2c3vjs8z.js → file-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{event-logger-359p4xyc.js → file-359p4xyc.js} +0 -0
- /package/dist/chunks/{event-logger-3asan66x.js → file-3asan66x.js} +0 -0
- /package/dist/chunks/{event-logger-3t738kvx.js → file-3t738kvx.js} +0 -0
- /package/dist/chunks/{event-logger-3v8g72cx.js → file-3v8g72cx.js} +0 -0
- /package/dist/chunks/{event-logger-3wcehsnq.js → file-3wcehsnq.js} +0 -0
- /package/dist/chunks/{event-logger-41nvscxy.js → file-41nvscxy.js} +0 -0
- /package/dist/chunks/{event-logger-43n2bw4t.js → file-43n2bw4t.js} +0 -0
- /package/dist/chunks/{event-logger-4knz6hnm.js → file-4knz6hnm.js} +0 -0
- /package/dist/chunks/{event-logger-4y7fprxs.js → file-4y7fprxs.js} +0 -0
- /package/dist/chunks/{event-logger-53557ph1.js → file-53557ph1.js} +0 -0
- /package/dist/chunks/{event-logger-550bvhaj.js → file-550bvhaj.js} +0 -0
- /package/dist/chunks/{event-logger-6prwharc.js → file-6prwharc.js} +0 -0
- /package/dist/chunks/{event-logger-7akdwqpd.js → file-7akdwqpd.js} +0 -0
- /package/dist/chunks/{event-logger-7m9af43g.js → file-7m9af43g.js} +0 -0
- /package/dist/chunks/{event-logger-822emrt2.js → file-822emrt2.js} +0 -0
- /package/dist/chunks/{event-logger-88xbtdfr.js → file-88xbtdfr.js} +0 -0
- /package/dist/chunks/{event-logger-8n3pysct.js → file-8n3pysct.js} +0 -0
- /package/dist/chunks/{event-logger-982e01ww.js → file-982e01ww.js} +0 -0
- /package/dist/chunks/{event-logger-9a4afbnw.js → file-9a4afbnw.js} +0 -0
- /package/dist/chunks/{event-logger-9rqn6x4v.js → file-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-logger-a1tpkmh4.js → file-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{event-logger-af5trqkr.js → file-af5trqkr.js} +0 -0
- /package/dist/chunks/{event-logger-afrmfg78.js → file-afrmfg78.js} +0 -0
- /package/dist/chunks/{event-logger-aqzs7mqg.js → file-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{event-logger-atq7p7m5.js → file-atq7p7m5.js} +0 -0
- /package/dist/chunks/{event-logger-bkyjaxrp.js → file-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{event-logger-bmr6ed5q.js → file-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{event-logger-cf4snx6d.js → file-cf4snx6d.js} +0 -0
- /package/dist/chunks/{event-logger-cvy3z8tj.js → file-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{event-logger-d9fn303g.js → file-d9fn303g.js} +0 -0
- /package/dist/chunks/{event-logger-d9jj8t3e.js → file-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{event-logger-dajrwvna.js → file-dajrwvna.js} +0 -0
- /package/dist/chunks/{event-logger-dap0rakb.js → file-dap0rakb.js} +0 -0
- /package/dist/chunks/{event-logger-df08tz66.js → file-df08tz66.js} +0 -0
- /package/dist/chunks/{event-logger-dy18nga0.js → file-dy18nga0.js} +0 -0
- /package/dist/chunks/{event-logger-e5kj55wp.js → file-e5kj55wp.js} +0 -0
- /package/dist/chunks/{event-logger-e73j6tqm.js → file-e73j6tqm.js} +0 -0
- /package/dist/chunks/{event-logger-eh3zwz77.js → file-eh3zwz77.js} +0 -0
- /package/dist/chunks/{event-logger-emrn6kk6.js → file-emrn6kk6.js} +0 -0
- /package/dist/chunks/{event-logger-f0mxakyp.js → file-f0mxakyp.js} +0 -0
- /package/dist/chunks/{event-logger-f6n9ztr4.js → file-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{event-logger-faypxj3z.js → file-faypxj3z.js} +0 -0
- /package/dist/chunks/{event-logger-fd410y7t.js → file-fd410y7t.js} +0 -0
- /package/dist/chunks/{event-logger-fxgpk5d8.js → file-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{event-logger-g4wezp1m.js → file-g4wezp1m.js} +0 -0
- /package/dist/chunks/{event-logger-g86h250q.js → file-g86h250q.js} +0 -0
- /package/dist/chunks/{event-logger-gebd4c9n.js → file-gebd4c9n.js} +0 -0
- /package/dist/chunks/{event-logger-hk9envan.js → file-hk9envan.js} +0 -0
- /package/dist/chunks/{event-logger-j2ntwpah.js → file-j2ntwpah.js} +0 -0
- /package/dist/chunks/{event-logger-j5zkgpj8.js → file-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{event-logger-jr7sbwjy.js → file-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{event-logger-jwfs4k6c.js → file-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{event-logger-jzg6c2d5.js → file-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{event-logger-mntxs535.js → file-mntxs535.js} +0 -0
- /package/dist/chunks/{event-logger-mp448xyj.js → file-mp448xyj.js} +0 -0
- /package/dist/chunks/{event-logger-msx8hqn2.js → file-msx8hqn2.js} +0 -0
- /package/dist/chunks/{event-logger-n05xt0ee.js → file-n05xt0ee.js} +0 -0
- /package/dist/chunks/{event-logger-n3j8tn72.js → file-n3j8tn72.js} +0 -0
- /package/dist/chunks/{event-logger-njntx4h6.js → file-njntx4h6.js} +0 -0
- /package/dist/chunks/{event-logger-p8qxwesx.js → file-p8qxwesx.js} +0 -0
- /package/dist/chunks/{event-logger-q3sfg36h.js → file-q3sfg36h.js} +0 -0
- /package/dist/chunks/{event-logger-q74kybfr.js → file-q74kybfr.js} +0 -0
- /package/dist/chunks/{event-logger-qaymkmh1.js → file-qaymkmh1.js} +0 -0
- /package/dist/chunks/{event-logger-qb87gjwd.js → file-qb87gjwd.js} +0 -0
- /package/dist/chunks/{event-logger-qfa1cgps.js → file-qfa1cgps.js} +0 -0
- /package/dist/chunks/{event-logger-qrg20bc0.js → file-qrg20bc0.js} +0 -0
- /package/dist/chunks/{event-logger-rcb2kzg1.js → file-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{event-logger-sdp7kfr6.js → file-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{event-logger-se0s1eqw.js → file-se0s1eqw.js} +0 -0
- /package/dist/chunks/{event-logger-sk3qaz4a.js → file-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{event-logger-ssg3fenm.js → file-ssg3fenm.js} +0 -0
- /package/dist/chunks/{event-logger-twg0f83k.js → file-twg0f83k.js} +0 -0
- /package/dist/chunks/{event-logger-w803qqfp.js → file-w803qqfp.js} +0 -0
- /package/dist/chunks/{event-logger-wer8tq1h.js → file-wer8tq1h.js} +0 -0
- /package/dist/chunks/{event-logger-wtztk69x.js → file-wtztk69x.js} +0 -0
- /package/dist/chunks/{event-logger-x0ckcb58.js → file-x0ckcb58.js} +0 -0
- /package/dist/chunks/{event-logger-x1b8g1yb.js → file-x1b8g1yb.js} +0 -0
- /package/dist/chunks/{event-logger-x61499pn.js → file-x61499pn.js} +0 -0
- /package/dist/chunks/{event-logger-y44na4kk.js → file-y44na4kk.js} +0 -0
- /package/dist/chunks/{event-logger-y8cydn3q.js → file-y8cydn3q.js} +0 -0
- /package/dist/chunks/{event-logger-ygaqb7jw.js → file-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{event-logger-z9919s4g.js → file-z9919s4g.js} +0 -0
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-p8qxwesx.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node85
|
|
7
|
+
} from "./file-ec12g7es.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
ID18
|
|
10
|
+
} from "./file-ja84rtcf.js";
|
|
11
11
|
import {
|
|
12
12
|
Slug2
|
|
13
|
-
} from "./
|
|
14
|
-
import {
|
|
15
|
-
Service80,
|
|
16
|
-
node85
|
|
17
|
-
} from "./event-logger-9mxqc105.js";
|
|
13
|
+
} from "./file-gebd4c9n.js";
|
|
18
14
|
import {
|
|
19
15
|
Service79,
|
|
20
16
|
node84
|
|
21
|
-
} from "./
|
|
17
|
+
} from "./file-9tdr4743.js";
|
|
18
|
+
import {
|
|
19
|
+
Service76,
|
|
20
|
+
node81
|
|
21
|
+
} from "./file-fhmwnx54.js";
|
|
22
22
|
import {
|
|
23
23
|
ProjectTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-qvbcabdc.js";
|
|
25
25
|
import {
|
|
26
26
|
WorktreeTable2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-yg7sb877.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service74,
|
|
30
|
+
node79
|
|
31
|
+
} from "./file-zpfprgc4.js";
|
|
32
32
|
import {
|
|
33
33
|
DirectoryUnavailableError2,
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
34
|
+
canonical2
|
|
35
|
+
} from "./file-93a8yfjt.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
37
|
+
make12
|
|
38
|
+
} from "./file-mjypb2e5.js";
|
|
39
39
|
import {
|
|
40
40
|
create3
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./file-kg06axw8.js";
|
|
42
42
|
import {
|
|
43
43
|
__export
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./file-9rqn6x4v.js";
|
|
45
45
|
|
|
46
46
|
// src/worktree.ts
|
|
47
47
|
var exports_worktree2 = {};
|
|
48
48
|
__export(exports_worktree2, {
|
|
49
|
-
CreateInput: () =>
|
|
49
|
+
CreateInput: () => CreateInput3,
|
|
50
50
|
DestinationExistsError: () => DestinationExistsError2,
|
|
51
51
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
52
|
-
Event: () =>
|
|
53
|
-
Info: () =>
|
|
52
|
+
Event: () => Event6,
|
|
53
|
+
Info: () => Info4,
|
|
54
54
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
55
55
|
List: () => List2,
|
|
56
56
|
ListEntry: () => ListEntry3,
|
|
57
57
|
OperationError: () => OperationError2,
|
|
58
58
|
RefreshResult: () => RefreshResult2,
|
|
59
59
|
RemoveInput: () => RemoveInput2,
|
|
60
|
-
Service: () =>
|
|
60
|
+
Service: () => Service19,
|
|
61
61
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
62
62
|
StrategyID: () => StrategyID2,
|
|
63
63
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
64
64
|
UnsupportedLocationError: () => UnsupportedLocationError2,
|
|
65
65
|
Worktree: () => exports_worktree2,
|
|
66
|
-
node: () =>
|
|
66
|
+
node: () => node23
|
|
67
67
|
});
|
|
68
68
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
69
69
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -76,17 +76,17 @@ import { AppProcess } from "@opencode-ai/util/process";
|
|
|
76
76
|
import { ChildProcess } from "effect/unstable/process";
|
|
77
77
|
import { OperationError as OperationError2 } from "@opencode-ai/schema/worktree";
|
|
78
78
|
var StrategyID2 = Worktree.StrategyID;
|
|
79
|
-
var
|
|
79
|
+
var CreateInput3 = Worktree.CreateInput;
|
|
80
80
|
var RemoveInput2 = Worktree.RemoveInput;
|
|
81
81
|
var RefreshResult2 = Schema.Struct({
|
|
82
82
|
updated: Schema.Array(AbsolutePath2),
|
|
83
83
|
removed: Schema.Array(AbsolutePath2)
|
|
84
84
|
}).annotate({ identifier: "Worktree.RefreshResult" });
|
|
85
|
-
var
|
|
85
|
+
var Info4 = Worktree.Info;
|
|
86
86
|
var List2 = Worktree.List;
|
|
87
87
|
var ListEntry3 = Worktree.ListEntry;
|
|
88
88
|
|
|
89
|
-
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID:
|
|
89
|
+
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID: ID18, directory: Schema.optional(AbsolutePath2) }) {
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
class DestinationExistsError2 extends Schema.TaggedError()("Worktree.DestinationExistsError", { directory: AbsolutePath2 }) {
|
|
@@ -100,21 +100,21 @@ class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyU
|
|
|
100
100
|
|
|
101
101
|
class UnsupportedLocationError2 extends Schema.TaggedError()("Worktree.UnsupportedLocationError", { directory: AbsolutePath2 }) {
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var Event6 = Worktree.Event;
|
|
104
104
|
|
|
105
|
-
class
|
|
105
|
+
class Service19 extends Context.Service()("@opencode/v2/Worktree") {
|
|
106
106
|
}
|
|
107
|
-
var layer = Layer.effect(
|
|
107
|
+
var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
108
108
|
const fs = yield* FSUtil.Service;
|
|
109
|
-
const database = yield*
|
|
109
|
+
const database = yield* Service79;
|
|
110
110
|
const db = database.db;
|
|
111
|
-
const bus = yield*
|
|
111
|
+
const bus = yield* Service76;
|
|
112
112
|
const processService = yield* AppProcess.Service;
|
|
113
|
-
const location = yield*
|
|
113
|
+
const location = yield* Service74;
|
|
114
114
|
const global = yield* Global.Service;
|
|
115
115
|
const projectID = location.project.id;
|
|
116
116
|
const local = location.workspaceID ? Effect.fail(new UnsupportedLocationError2({ directory: location.directory })) : Effect.void;
|
|
117
|
-
const gitStrategy = yield*
|
|
117
|
+
const gitStrategy = yield* make12;
|
|
118
118
|
const state = create3({
|
|
119
119
|
name: "worktree",
|
|
120
120
|
initial: () => ({
|
|
@@ -135,7 +135,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
const changed = Effect.fnUntraced(function* (update) {
|
|
137
137
|
if (update)
|
|
138
|
-
yield* bus.publish(
|
|
138
|
+
yield* bus.publish(Event6.Updated, { projectID });
|
|
139
139
|
});
|
|
140
140
|
const ops = {
|
|
141
141
|
list: Effect.fnUntraced(function* () {
|
|
@@ -161,7 +161,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
161
161
|
};
|
|
162
162
|
const source = Effect.fnUntraced(function* (input) {
|
|
163
163
|
const sourceDirectory = input ?? location.project.directory;
|
|
164
|
-
const resolved = yield*
|
|
164
|
+
const resolved = yield* canonical2(fs, sourceDirectory);
|
|
165
165
|
if ((yield* ops.find(resolved)) === undefined)
|
|
166
166
|
return yield* new SourceDirectoryNotFoundError2({ projectID, directory: resolved });
|
|
167
167
|
return resolved;
|
|
@@ -193,8 +193,8 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
193
193
|
sourceDirectory,
|
|
194
194
|
branch: input.branch
|
|
195
195
|
}).pipe(Effect.mapError((error) => operationError(selected.id, "create", error)));
|
|
196
|
-
const result = { directory: yield*
|
|
197
|
-
if (result.directory !== (yield*
|
|
196
|
+
const result = { directory: yield* canonical2(fs, created.directory) };
|
|
197
|
+
if (result.directory !== (yield* canonical2(fs, worktreeDirectory)))
|
|
198
198
|
return yield* new InvalidDirectoryError2({ directory: result.directory });
|
|
199
199
|
yield* changed(yield* ops.create({
|
|
200
200
|
directory: result.directory,
|
|
@@ -220,7 +220,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
220
220
|
});
|
|
221
221
|
const remove = Effect.fn("Worktree.remove")(function* (input) {
|
|
222
222
|
yield* local;
|
|
223
|
-
const worktreeDirectory = yield*
|
|
223
|
+
const worktreeDirectory = yield* canonical2(fs, input.directory);
|
|
224
224
|
const stored = yield* ops.find(worktreeDirectory);
|
|
225
225
|
if (!stored?.strategy)
|
|
226
226
|
return yield* new InvalidDirectoryError2({ directory: worktreeDirectory });
|
|
@@ -241,7 +241,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
241
241
|
for (const strategy of strategies) {
|
|
242
242
|
const entries = yield* strategy.list(location.project.directory).pipe(Effect.mapError((error) => operationError(strategy.id, "list", error)), Effect.catchTag("Worktree.DirectoryUnavailableError", () => Effect.succeed([])));
|
|
243
243
|
for (const entry of entries) {
|
|
244
|
-
const directory = yield*
|
|
244
|
+
const directory = yield* canonical2(fs, entry.directory).pipe(Effect.catchTag("Worktree.DirectoryUnavailableError", () => Effect.undefined));
|
|
245
245
|
if (!directory || discovered.has(directory))
|
|
246
246
|
continue;
|
|
247
247
|
discovered.set(directory, {
|
|
@@ -259,7 +259,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
259
259
|
yield* changed(changes.updated.length > 0 || changes.removed.length > 0);
|
|
260
260
|
return changes;
|
|
261
261
|
});
|
|
262
|
-
return
|
|
262
|
+
return Service19.of({
|
|
263
263
|
transform: state.transform,
|
|
264
264
|
reload: state.reload,
|
|
265
265
|
list: Effect.fn("Worktree.list")(function* () {
|
|
@@ -271,10 +271,10 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
271
271
|
refresh
|
|
272
272
|
});
|
|
273
273
|
}));
|
|
274
|
-
var
|
|
275
|
-
service:
|
|
274
|
+
var node23 = makeLocationNode({
|
|
275
|
+
service: Service19,
|
|
276
276
|
layer,
|
|
277
|
-
deps: [FSUtil.node,
|
|
277
|
+
deps: [FSUtil.node, node85, node81, node84, AppProcess.node, node79, Global.node]
|
|
278
278
|
});
|
|
279
279
|
function operationError(strategy, operation, error) {
|
|
280
280
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -284,4 +284,4 @@ function operationError(strategy, operation, error) {
|
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
export { StrategyID2,
|
|
287
|
+
export { StrategyID2, CreateInput3, RemoveInput2, RefreshResult2, Info4, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, UnsupportedLocationError2, Event6, Service19, node23, exports_worktree2, OperationError2 };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service80,
|
|
3
|
-
node85
|
|
4
|
-
} from "./event-logger-9mxqc105.js";
|
|
5
1
|
import {
|
|
6
2
|
Service79,
|
|
7
3
|
node84
|
|
8
|
-
} from "./
|
|
4
|
+
} from "./file-9tdr4743.js";
|
|
5
|
+
import {
|
|
6
|
+
Service76,
|
|
7
|
+
node81
|
|
8
|
+
} from "./file-fhmwnx54.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-0q0f95c6.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-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: () =>
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
Key: () =>
|
|
23
|
+
Event: () => Event16,
|
|
24
|
+
ID: () => ID9,
|
|
25
|
+
Info: () => Info24,
|
|
26
|
+
Key: () => Key3,
|
|
27
27
|
OAuth: () => OAuth3,
|
|
28
|
-
Service: () =>
|
|
28
|
+
Service: () => Service65,
|
|
29
29
|
Value: () => Value2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node70
|
|
31
31
|
});
|
|
32
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
33
33
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { Credential } from "@opencode-ai/schema/credential";
|
|
35
35
|
import { Integration } from "@opencode-ai/schema/integration";
|
|
36
36
|
import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
|
|
37
|
-
var
|
|
37
|
+
var ID9 = Credential.ID;
|
|
38
38
|
var OAuth3 = Credential.OAuth;
|
|
39
|
-
var
|
|
39
|
+
var Key3 = Credential.Key;
|
|
40
40
|
var Value2 = Credential.Value;
|
|
41
|
-
var
|
|
41
|
+
var Event16 = Credential.Event;
|
|
42
42
|
|
|
43
|
-
class
|
|
44
|
-
id:
|
|
43
|
+
class Info24 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID9,
|
|
45
45
|
integrationID: Integration.ID,
|
|
46
46
|
label: Schema.String,
|
|
47
47
|
value: Value2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service65 extends Context.Service()("@opencode/Credential") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
54
|
-
const db = (yield*
|
|
55
|
-
const bus = yield*
|
|
53
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
54
|
+
const db = (yield* Service79).db;
|
|
55
|
+
const bus = yield* Service76;
|
|
56
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
57
57
|
const stored = (row) => {
|
|
58
58
|
if (!row.integration_id)
|
|
59
59
|
return;
|
|
60
|
-
return new
|
|
60
|
+
return new Info24({
|
|
61
61
|
id: row.id,
|
|
62
62
|
integrationID: row.integration_id,
|
|
63
63
|
label: row.label,
|
|
@@ -68,7 +68,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
68
68
|
const credential = stored(row);
|
|
69
69
|
return credential ? [credential] : [];
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return Service65.of({
|
|
72
72
|
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))),
|
|
73
73
|
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))),
|
|
74
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -76,8 +76,8 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
76
76
|
return row ? stored(row) : undefined;
|
|
77
77
|
}),
|
|
78
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
79
|
-
const credential = new
|
|
80
|
-
id:
|
|
79
|
+
const credential = new Info24({
|
|
80
|
+
id: ID9.create(),
|
|
81
81
|
integrationID: input.integrationID,
|
|
82
82
|
label: input.label ?? "default",
|
|
83
83
|
value: input.value
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
101
101
|
integrationID: credential.integrationID,
|
|
102
102
|
type: credential.value.type
|
|
103
103
|
});
|
|
104
|
-
yield* bus.publish(
|
|
105
|
-
yield* bus.publish(
|
|
104
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event16.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
106
106
|
return credential;
|
|
107
107
|
}),
|
|
108
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
122
122
|
})), Effect.orDie);
|
|
123
123
|
if (integrationID) {
|
|
124
124
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
-
yield* bus.publish(
|
|
125
|
+
yield* bus.publish(Event16.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
126
|
}
|
|
127
127
|
}),
|
|
128
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -154,7 +154,7 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
154
154
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
155
|
});
|
|
156
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
158
158
|
}),
|
|
159
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
160
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -187,12 +187,12 @@ var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
|
187
187
|
active: removed.switched,
|
|
188
188
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
189
|
});
|
|
190
|
-
yield* bus.publish(
|
|
190
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
191
191
|
if (removed.switched)
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event16.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
193
193
|
})
|
|
194
194
|
});
|
|
195
195
|
}));
|
|
196
|
-
var
|
|
196
|
+
var node70 = makeGlobalNode({ service: Service65, layer, deps: [node84, node81] });
|
|
197
197
|
|
|
198
|
-
export {
|
|
198
|
+
export { ID9, OAuth3, Key3, Value2, Event16, Info24, Service65, node70, exports_credential };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
ascending2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-k4bwy1x5.js";
|
|
7
7
|
import {
|
|
8
8
|
create3
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-kg06axw8.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/tool-output.ts
|
|
15
15
|
var exports_tool_output2 = {};
|
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service58,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node62
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service58 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
122
122
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return Service58.of({
|
|
126
126
|
transform: state.transform,
|
|
127
127
|
reload: state.reload,
|
|
128
128
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node62 = makeLocationNode({
|
|
143
|
+
service: Service58,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service58, node62, exports_tool_output2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service76,
|
|
3
|
+
node81
|
|
4
|
+
} from "./file-fhmwnx54.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,40 +12,40 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event15,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID8,
|
|
20
|
+
Info: () => Info23,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
24
|
-
Reply: () =>
|
|
25
|
-
Service: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError7,
|
|
24
|
+
Reply: () => Reply2,
|
|
25
|
+
Service: () => Service64,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer24,
|
|
29
|
+
node: () => node69,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode-ai/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode-ai/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event15 } from "@opencode-ai/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID8 = Form.ID;
|
|
39
|
+
var Info23 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
|
-
var
|
|
45
|
+
var Reply2 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError7 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID8
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID8
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID8
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID8,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,17 +79,17 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service64 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer24 = Layer.effect(Service64, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service76;
|
|
86
86
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
87
87
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
88
88
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
89
89
|
});
|
|
90
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
90
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError7({ id })))));
|
|
91
91
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
92
|
-
const id = input.id ??
|
|
92
|
+
const id = input.id ?? ID8.create();
|
|
93
93
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
94
94
|
if (Option.isSome(existing))
|
|
95
95
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -153,9 +153,9 @@ var layer25 = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
153
153
|
yield* Deferred.succeed(entry.deferred, next);
|
|
154
154
|
})));
|
|
155
155
|
yield* Effect.addFinalizer(() => Cache.values(forms).pipe(Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true }))));
|
|
156
|
-
return
|
|
156
|
+
return Service64.of({ create, ask, get, list, state, reply, cancel });
|
|
157
157
|
}));
|
|
158
|
-
var
|
|
158
|
+
var node69 = makeLocationNode({ service: Service64, layer: layer24, deps: [node81] });
|
|
159
159
|
function validateAnswer2(form, answer) {
|
|
160
160
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
161
161
|
for (const key of Object.keys(answer)) {
|
|
@@ -307,4 +307,4 @@ function isDateTime(value) {
|
|
|
307
307
|
return !Number.isNaN(new Date(value).getTime());
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export {
|
|
310
|
+
export { ID8, Info23, Field2, Fields2, When2, State3, Answer2, Reply2, NotFoundError7, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service64, layer24, node69, validateAnswer2, validateFields2, exports_form, Event15 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service76
|
|
3
|
+
} from "./file-fhmwnx54.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Event16
|
|
7
|
+
} from "./file-kkak2gjn.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID7,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-t7fxkjbz.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID11,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-6qmx0jzx.js";
|
|
17
17
|
|
|
18
18
|
// src/plugin/provider/opencode.ts
|
|
19
19
|
import { Duration, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -43,7 +43,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
43
43
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
44
44
|
function oauth(http) {
|
|
45
45
|
return {
|
|
46
|
-
integrationID:
|
|
46
|
+
integrationID: ID7.make("opencode"),
|
|
47
47
|
method: {
|
|
48
48
|
id: methodID,
|
|
49
49
|
type: "oauth",
|
|
@@ -84,7 +84,7 @@ function oauth(http) {
|
|
|
84
84
|
var OpencodePlugin2 = define({
|
|
85
85
|
id: "opencode.provider.opencode",
|
|
86
86
|
effect: Effect.fn(function* (ctx) {
|
|
87
|
-
const bus = yield*
|
|
87
|
+
const bus = yield* Service76;
|
|
88
88
|
const http = yield* HttpClient.HttpClient;
|
|
89
89
|
const loading = Semaphore.makeUnsafe(1);
|
|
90
90
|
let connected = false;
|
|
@@ -111,7 +111,7 @@ var OpencodePlugin2 = define({
|
|
|
111
111
|
catalog.provider.update(providerID, (provider) => {
|
|
112
112
|
if (source && source.provider !== provider)
|
|
113
113
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
114
|
-
provider.integrationID =
|
|
114
|
+
provider.integrationID = ID7.make("opencode");
|
|
115
115
|
if (item.canonical !== undefined)
|
|
116
116
|
provider.canonical = item.canonical;
|
|
117
117
|
if (item.name !== undefined)
|
|
@@ -174,7 +174,7 @@ var OpencodePlugin2 = define({
|
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
const item = catalog.provider.get(
|
|
177
|
+
const item = catalog.provider.get(ID11.opencode);
|
|
178
178
|
if (!item)
|
|
179
179
|
return;
|
|
180
180
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || connected || item.provider.settings?.apiKey);
|
|
@@ -195,7 +195,7 @@ var OpencodePlugin2 = define({
|
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
198
|
-
yield* bus.subscribe(
|
|
198
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID7.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
201
|
function fetchProviders(http, value) {
|