@opencode/core 0.0.0-dev-20870 → 0.0.0-dev-20872
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 +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +77 -77
- package/dist/chunks/{models-dev-02a7j1yb.js → wellknown-02nrjc1r.js} +8 -8
- package/dist/chunks/{models-dev-mg1vppcc.js → wellknown-0ea8b062.js} +16 -16
- package/dist/chunks/{models-dev-4rqs6yce.js → wellknown-0r5qpn88.js} +8 -8
- package/dist/chunks/{models-dev-0vbcp93d.js → wellknown-0vbcp93d.js} +2 -2
- package/dist/chunks/{models-dev-m59ddcfm.js → wellknown-12h9p0wn.js} +40 -40
- package/dist/chunks/{models-dev-bs84j8rj.js → wellknown-12r6e903.js} +34 -34
- package/dist/chunks/{models-dev-f2n192rq.js → wellknown-1acjjqhc.js} +4 -4
- package/dist/chunks/{models-dev-51wasa6w.js → wellknown-1d5nnay3.js} +7 -7
- package/dist/chunks/{models-dev-ed2gf1xw.js → wellknown-1fb6z7fy.js} +22 -22
- package/dist/chunks/{models-dev-kj4d1zd2.js → wellknown-1rzeabtp.js} +9 -9
- package/dist/chunks/{models-dev-fxaymqdw.js → wellknown-1w2wqhfv.js} +4 -4
- package/dist/chunks/{models-dev-qgn6gcr1.js → wellknown-2k8khapm.js} +5 -5
- package/dist/chunks/{models-dev-rjgv6zv8.js → wellknown-2qfbznn4.js} +5 -5
- package/dist/chunks/{models-dev-jrshg6j8.js → wellknown-2t3pe3ay.js} +5 -5
- package/dist/chunks/{models-dev-8ebgmdnj.js → wellknown-2tvsdrfp.js} +11 -11
- package/dist/chunks/{models-dev-2vvh33eb.js → wellknown-2vvh33eb.js} +2 -2
- package/dist/chunks/{models-dev-h7s7r6s9.js → wellknown-31xfzrxg.js} +5 -5
- package/dist/chunks/{models-dev-qqaz4c32.js → wellknown-32skt9r7.js} +25 -25
- package/dist/chunks/{models-dev-yhqse85r.js → wellknown-3564f6e1.js} +18 -18
- package/dist/chunks/{models-dev-3fc6dm20.js → wellknown-3fc6dm20.js} +1 -1
- package/dist/chunks/{models-dev-3hepkmqq.js → wellknown-3hepkmqq.js} +1 -1
- package/dist/chunks/{models-dev-3hwn7j4h.js → wellknown-3hwn7j4h.js} +2 -2
- package/dist/chunks/{models-dev-3smtnn6g.js → wellknown-3smtnn6g.js} +1 -1
- package/dist/chunks/{models-dev-3tvqynh2.js → wellknown-3tvqynh2.js} +1 -1
- package/dist/chunks/{models-dev-3gaq1q4y.js → wellknown-3wjs679v.js} +9 -9
- package/dist/chunks/{models-dev-3zsf4n22.js → wellknown-3zsf4n22.js} +1 -1
- package/dist/chunks/{models-dev-t6zjq1qk.js → wellknown-406d5y7e.js} +7 -7
- package/dist/chunks/{models-dev-3g85zhep.js → wellknown-44dr8ap3.js} +8 -8
- package/dist/chunks/{models-dev-8qwzp8zc.js → wellknown-44ypcyhf.js} +1 -1
- package/dist/chunks/{models-dev-wg0ncn2a.js → wellknown-4a4brprq.js} +19 -19
- package/dist/chunks/{models-dev-nk5d3wwn.js → wellknown-4h43dkdc.js} +3 -3
- package/dist/chunks/{models-dev-2ccvkpx1.js → wellknown-4ts7tf6z.js} +2 -2
- package/dist/chunks/{models-dev-4s4a0pfs.js → wellknown-4v92t2pn.js} +5 -5
- package/dist/chunks/{models-dev-54ma36ye.js → wellknown-54ma36ye.js} +1 -1
- package/dist/chunks/{models-dev-rdp2zrnb.js → wellknown-5a6hjq36.js} +36 -36
- package/dist/chunks/{models-dev-jym709mx.js → wellknown-5bh0z814.js} +18 -18
- package/dist/chunks/{models-dev-886mzzjn.js → wellknown-5dvvye93.js} +9 -9
- package/dist/chunks/{models-dev-2zmc9g4q.js → wellknown-5jpxv3wq.js} +25 -25
- package/dist/chunks/{models-dev-bd94ff7m.js → wellknown-5m84d531.js} +8 -8
- package/dist/chunks/{models-dev-5m9w47nd.js → wellknown-5m9w47nd.js} +1 -1
- package/dist/chunks/{models-dev-e3qxr5gk.js → wellknown-5qd3pb7m.js} +2 -2
- package/dist/chunks/{models-dev-4pt1mcxg.js → wellknown-5sbjbr1z.js} +15 -15
- package/dist/chunks/{models-dev-57v25951.js → wellknown-5ywcvhgz.js} +1 -1
- package/dist/chunks/{models-dev-mb14aw74.js → wellknown-63db42yp.js} +2 -2
- package/dist/chunks/{models-dev-bt24bpkk.js → wellknown-68rkg0ha.js} +47 -47
- package/dist/chunks/{models-dev-dt3q8067.js → wellknown-6h75mtqq.js} +31 -31
- package/dist/chunks/{models-dev-w9v533qn.js → wellknown-6hjpjx9d.js} +23 -23
- package/dist/chunks/{models-dev-r6a2f23q.js → wellknown-6jes1v8p.js} +21 -21
- package/dist/chunks/{models-dev-kq6zdgch.js → wellknown-6nc1k023.js} +5 -5
- package/dist/chunks/{models-dev-rkprpv83.js → wellknown-6pc27hjz.js} +6 -6
- package/dist/chunks/{models-dev-hkaqgv9y.js → wellknown-6qw56swe.js} +12 -12
- package/dist/chunks/{models-dev-0v9exxnw.js → wellknown-6s2tmc11.js} +30 -30
- package/dist/chunks/{models-dev-21w4c8ct.js → wellknown-6smyg7me.js} +24 -24
- package/dist/chunks/{models-dev-6xb47vfp.js → wellknown-6xb47vfp.js} +1 -1
- package/dist/chunks/{models-dev-3gvw7rj8.js → wellknown-6yf3rgd4.js} +18 -18
- package/dist/chunks/{models-dev-jng9m6h9.js → wellknown-750nsdt5.js} +18 -18
- package/dist/chunks/{models-dev-ckv3nb2m.js → wellknown-77j65bfh.js} +34 -34
- package/dist/chunks/{models-dev-xc1d4vrn.js → wellknown-7b6r8ck4.js} +22 -22
- package/dist/chunks/{models-dev-7bmhse3q.js → wellknown-7bmhse3q.js} +1 -1
- package/dist/chunks/{models-dev-d51195b0.js → wellknown-7bv32vg5.js} +11 -11
- package/dist/chunks/{models-dev-wntqe9zb.js → wellknown-7eav30cb.js} +22 -22
- package/dist/chunks/{models-dev-09ya98b0.js → wellknown-7efppc7n.js} +32 -32
- package/dist/chunks/{models-dev-29pqcjbj.js → wellknown-7jdd4trd.js} +4 -4
- package/dist/chunks/{models-dev-62kspbwq.js → wellknown-7mmrfg78.js} +31 -31
- package/dist/chunks/{models-dev-svzs2hbr.js → wellknown-7vgpq361.js} +13 -13
- package/dist/chunks/{models-dev-e1v7z07n.js → wellknown-7zen39vj.js} +13 -13
- package/dist/chunks/{models-dev-w1eejvng.js → wellknown-84txncab.js} +5 -5
- package/dist/chunks/{models-dev-02xfryf1.js → wellknown-87a3742k.js} +10 -10
- package/dist/chunks/{models-dev-88dstv11.js → wellknown-88sfk2zz.js} +13 -13
- package/dist/chunks/{models-dev-knsa8f7j.js → wellknown-8fcpx6fd.js} +8 -8
- package/dist/chunks/{models-dev-edhc1jgp.js → wellknown-8jd55ga2.js} +10 -10
- package/dist/chunks/{models-dev-7pkwsdwd.js → wellknown-8jzpbyjn.js} +42 -42
- package/dist/chunks/{models-dev-nrnyx1y1.js → wellknown-8kdvsjhm.js} +31 -31
- package/dist/chunks/{models-dev-8m6m0r52.js → wellknown-8m6m0r52.js} +1 -1
- package/dist/chunks/{models-dev-7xzfe72n.js → wellknown-8pmdn921.js} +3 -3
- package/dist/chunks/{models-dev-g94xapmr.js → wellknown-8q14vt7q.js} +6 -6
- package/dist/chunks/{models-dev-8b7b9gz3.js → wellknown-8rf0kzav.js} +16 -16
- package/dist/chunks/{models-dev-20gwpwx7.js → wellknown-8wjq8j5g.js} +5 -5
- package/dist/chunks/{models-dev-qkx97xt7.js → wellknown-8xe6bs0v.js} +25 -25
- package/dist/chunks/{models-dev-j09zfasm.js → wellknown-91qna3x0.js} +3 -3
- package/dist/chunks/{models-dev-4dg124c5.js → wellknown-92azg307.js} +5 -5
- package/dist/chunks/{models-dev-d1mtykxg.js → wellknown-94jgxf6b.js} +6 -6
- package/dist/chunks/{models-dev-mgt8g71m.js → wellknown-977ek0nq.js} +8 -8
- package/dist/chunks/{models-dev-czkpeb0p.js → wellknown-98apdav4.js} +31 -31
- package/dist/chunks/{models-dev-wq3t9sx7.js → wellknown-9fnvw4me.js} +9 -9
- package/dist/chunks/{models-dev-ycxxqv5k.js → wellknown-9qa7tgq7.js} +5 -5
- package/dist/chunks/{models-dev-hfpd1xnt.js → wellknown-9qdnvnvk.js} +12 -12
- package/dist/chunks/{models-dev-3mxs1m5f.js → wellknown-9xymn140.js} +26 -26
- package/dist/chunks/{models-dev-yjn235g6.js → wellknown-a2e4j1v6.js} +4 -4
- package/dist/chunks/{models-dev-44ak30pa.js → wellknown-a2rpfkac.js} +4 -4
- package/dist/chunks/{models-dev-0sy5jk4t.js → wellknown-a7hgzxnm.js} +22 -22
- package/dist/chunks/{models-dev-4c7zee8w.js → wellknown-agns0eqw.js} +2 -2
- package/dist/chunks/{models-dev-mtqq3hfy.js → wellknown-aj69q5m7.js} +20 -20
- package/dist/chunks/{models-dev-0a1rye92.js → wellknown-aqrn4nva.js} +24 -24
- package/dist/chunks/{models-dev-0nbvmddn.js → wellknown-arsaz79s.js} +41 -41
- package/dist/chunks/{models-dev-7ca2c6y4.js → wellknown-b71vccdc.js} +23 -23
- package/dist/chunks/{models-dev-6h2htfwq.js → wellknown-bbj58qrh.js} +23 -23
- package/dist/chunks/{models-dev-t1324xhj.js → wellknown-bc3jdwdt.js} +24 -24
- package/dist/chunks/{models-dev-bkf7z7kb.js → wellknown-bp37m2rz.js} +11 -11
- package/dist/chunks/{models-dev-5xtgfte3.js → wellknown-br0tr5aq.js} +8 -8
- package/dist/chunks/{models-dev-z8h0ybrz.js → wellknown-bvt1dkk7.js} +30 -30
- package/dist/chunks/{models-dev-g8tk2qkc.js → wellknown-c0szj8mg.js} +9 -9
- package/dist/chunks/{models-dev-c1fqxshp.js → wellknown-c1fqxshp.js} +3 -3
- package/dist/chunks/{models-dev-2d17jkaf.js → wellknown-c6g25emx.js} +47 -47
- package/dist/chunks/{models-dev-6cqe4hkt.js → wellknown-c9dqxpa8.js} +17 -17
- package/dist/chunks/{models-dev-hsjabct9.js → wellknown-c9wbyant.js} +4 -4
- package/dist/chunks/{models-dev-nasac2a3.js → wellknown-cayvg8x6.js} +4 -4
- package/dist/chunks/{models-dev-cnj1sw1b.js → wellknown-cejwsrvv.js} +33 -33
- package/dist/chunks/{models-dev-3c5dzmp1.js → wellknown-ck9a2j6e.js} +11 -11
- package/dist/chunks/{models-dev-esps6wgd.js → wellknown-cwbr2z2s.js} +29 -29
- package/dist/chunks/wellknown-d6p37nrf.js +253 -0
- package/dist/chunks/{models-dev-ce1fh5qz.js → wellknown-d6wrpmsf.js} +69 -42
- package/dist/chunks/{models-dev-x661k3y3.js → wellknown-db2wf4at.js} +4 -4
- package/dist/chunks/{models-dev-j0thgm95.js → wellknown-dfqan8cb.js} +35 -35
- package/dist/chunks/{models-dev-4jfbys5e.js → wellknown-dfswbqxy.js} +5 -5
- package/dist/chunks/{models-dev-ev7n2kes.js → wellknown-dgpcwjyr.js} +9 -9
- package/dist/chunks/{models-dev-aegaywqw.js → wellknown-dmz80tty.js} +11 -11
- package/dist/chunks/{models-dev-j56e64zr.js → wellknown-dqxsqydv.js} +3 -1
- package/dist/chunks/{models-dev-drwq78ky.js → wellknown-drwq78ky.js} +1 -1
- package/dist/chunks/{models-dev-arp3khe5.js → wellknown-dv49h3ab.js} +16 -16
- package/dist/chunks/{models-dev-wk5z6jzv.js → wellknown-dxcm25gw.js} +9 -9
- package/dist/chunks/{models-dev-7m2fqqgt.js → wellknown-dxk0v5jy.js} +67 -67
- package/dist/chunks/{models-dev-5xn1ykzt.js → wellknown-dxkbh67h.js} +186 -186
- package/dist/chunks/{models-dev-jyh28qe0.js → wellknown-dzvamb5e.js} +34 -34
- package/dist/chunks/{models-dev-0mzv8h3q.js → wellknown-e0cy15x4.js} +19 -19
- package/dist/chunks/{models-dev-b8xrvnvm.js → wellknown-e1gs9x0e.js} +12 -12
- package/dist/chunks/{models-dev-5jbjx4bj.js → wellknown-e8vwfchq.js} +9 -9
- package/dist/chunks/{models-dev-hk5cp4gp.js → wellknown-ed5vbj39.js} +3 -3
- package/dist/chunks/{models-dev-vvar6fgm.js → wellknown-eebwej4h.js} +9 -9
- package/dist/chunks/{models-dev-eej6y6fw.js → wellknown-eej6y6fw.js} +2 -2
- package/dist/chunks/{models-dev-ef5x83kb.js → wellknown-ef5x83kb.js} +1 -1
- package/dist/chunks/{models-dev-4z3mx211.js → wellknown-en4xvc85.js} +11 -11
- package/dist/chunks/{models-dev-v6ym025c.js → wellknown-ephdpjpk.js} +11 -11
- package/dist/chunks/{models-dev-r2t962mj.js → wellknown-eq0qj5km.js} +15 -15
- package/dist/chunks/{models-dev-sm3x7yyx.js → wellknown-f0n7ca9n.js} +19 -19
- package/dist/chunks/{models-dev-cq0e7jrz.js → wellknown-f29mbr7f.js} +4 -4
- package/dist/chunks/wellknown-f5twkvtp.js +102 -0
- package/dist/chunks/{models-dev-m2k7ask4.js → wellknown-f6t8zy6q.js} +33 -33
- package/dist/chunks/{models-dev-ydw9zp1w.js → wellknown-f8afkh6h.js} +45 -45
- package/dist/chunks/{models-dev-fpmctw84.js → wellknown-fc1p3qhs.js} +8 -8
- package/dist/chunks/{models-dev-2pjadknn.js → wellknown-fcfgbxy0.js} +20 -20
- package/dist/chunks/{models-dev-h6g8pc5k.js → wellknown-fdq890yw.js} +19 -19
- package/dist/chunks/{models-dev-e1qyvkcg.js → wellknown-feandh7w.js} +11 -11
- package/dist/chunks/{models-dev-tg6qddtv.js → wellknown-fkz2hbrj.js} +12 -12
- package/dist/chunks/{models-dev-t7qve5aa.js → wellknown-fq2evrb4.js} +32 -32
- package/dist/chunks/{models-dev-kdfd6h8e.js → wellknown-fsfgp9zc.js} +4 -4
- package/dist/chunks/{models-dev-1r60zs0j.js → wellknown-g0bsnk2d.js} +22 -22
- package/dist/chunks/{models-dev-ft3hqk2c.js → wellknown-g6q9qykm.js} +9 -9
- package/dist/chunks/{models-dev-gd4qta3r.js → wellknown-gd4qta3r.js} +1 -1
- package/dist/chunks/{models-dev-kvb2kdjn.js → wellknown-ghpm9gw4.js} +23 -23
- package/dist/chunks/{models-dev-gj71zhbs.js → wellknown-gj71zhbs.js} +2 -2
- package/dist/chunks/{models-dev-c7czhrjs.js → wellknown-gxs5ae2m.js} +22 -22
- package/dist/chunks/{models-dev-382cchr8.js → wellknown-h63k1jxz.js} +30 -30
- package/dist/chunks/{models-dev-h6vf3j39.js → wellknown-h6vf3j39.js} +1 -1
- package/dist/chunks/{models-dev-q6h8xyyf.js → wellknown-h7y8yq7c.js} +18 -18
- package/dist/chunks/{models-dev-gyn0cezk.js → wellknown-hb15wvdc.js} +20 -20
- package/dist/chunks/{models-dev-hgz4x7wa.js → wellknown-hgz4x7wa.js} +1 -1
- package/dist/chunks/{models-dev-8f2as6r6.js → wellknown-hm9rg0cf.js} +9 -9
- package/dist/chunks/{models-dev-mjqwzk7n.js → wellknown-hne6wryx.js} +13 -13
- package/dist/chunks/{models-dev-0etcr0n7.js → wellknown-hntzpe8x.js} +48 -48
- package/dist/chunks/{models-dev-467kawmj.js → wellknown-hpprjz2x.js} +87 -87
- package/dist/chunks/wellknown-ht5y0zrb.js +18 -0
- package/dist/chunks/{models-dev-3d6k3wes.js → wellknown-j12d2378.js} +13 -13
- package/dist/chunks/{models-dev-4pgzjgba.js → wellknown-j6a8aq46.js} +28 -28
- package/dist/chunks/{models-dev-32k2pbd5.js → wellknown-j72j475b.js} +17 -17
- package/dist/chunks/wellknown-jrfynmv6.js +26 -0
- package/dist/chunks/{models-dev-y71avatq.js → wellknown-jwcy2c2z.js} +4 -4
- package/dist/chunks/{models-dev-c3e7qbh0.js → wellknown-jz3cw5kw.js} +10 -10
- package/dist/chunks/{models-dev-2egesr2p.js → wellknown-k0sbsg2j.js} +40 -40
- package/dist/chunks/{models-dev-yd4bzqjj.js → wellknown-k0w1apbg.js} +5 -5
- package/dist/chunks/{models-dev-w88gdm0z.js → wellknown-k0w6pc3q.js} +10 -10
- package/dist/chunks/{models-dev-q0kg8399.js → wellknown-k2enwv2b.js} +13 -13
- package/dist/chunks/{models-dev-at4e57ft.js → wellknown-k4f8qsde.js} +12 -12
- package/dist/chunks/{models-dev-c9fap7hq.js → wellknown-k6xe77vp.js} +26 -26
- package/dist/chunks/{models-dev-w9w378fs.js → wellknown-kj7bxxe6.js} +30 -30
- package/dist/chunks/{models-dev-22hda3w5.js → wellknown-kjyb9yg1.js} +18 -18
- package/dist/chunks/{models-dev-7pb5awq7.js → wellknown-kpyhj2m1.js} +51 -51
- package/dist/chunks/{models-dev-46d9zvww.js → wellknown-kwebw1f9.js} +23 -23
- package/dist/chunks/{models-dev-j4bm7a9s.js → wellknown-kzpcyh9m.js} +4 -4
- package/dist/chunks/{models-dev-69zjn7v3.js → wellknown-m1thq6y5.js} +36 -36
- package/dist/chunks/{models-dev-vmq3jh3w.js → wellknown-m270m2xy.js} +14 -14
- package/dist/chunks/{models-dev-ns359883.js → wellknown-m4xp7g9h.js} +14 -14
- package/dist/chunks/{models-dev-m9w0rfyh.js → wellknown-m9w0rfyh.js} +1 -1
- package/dist/chunks/{models-dev-maspj1v3.js → wellknown-maspj1v3.js} +1 -1
- package/dist/chunks/{models-dev-k4f7zm4r.js → wellknown-mcax4ssf.js} +88 -88
- package/dist/chunks/{models-dev-eafzmqzj.js → wellknown-me2jwsw7.js} +4 -4
- package/dist/chunks/{models-dev-0khhejdw.js → wellknown-nk2rh2kv.js} +25 -25
- package/dist/chunks/{models-dev-v7xdgyp2.js → wellknown-nkjfer5e.js} +1 -1
- package/dist/chunks/{models-dev-29zbz0jv.js → wellknown-nzpx1vcj.js} +18 -18
- package/dist/chunks/{models-dev-3qm04pf8.js → wellknown-pbr5vsn4.js} +12 -12
- package/dist/chunks/{models-dev-rypkwkwq.js → wellknown-pf22mz8r.js} +9 -9
- package/dist/chunks/{models-dev-yna2vr6d.js → wellknown-pf41e8d6.js} +18 -18
- package/dist/chunks/{models-dev-phz50fbd.js → wellknown-phz50fbd.js} +2 -2
- package/dist/chunks/{models-dev-pjvnvgmy.js → wellknown-pjvnvgmy.js} +1 -1
- package/dist/chunks/{models-dev-pknna89w.js → wellknown-pknna89w.js} +1 -1
- package/dist/chunks/{models-dev-xwenbvep.js → wellknown-pmqt8xvq.js} +15 -15
- package/dist/chunks/{models-dev-tmmm4zfp.js → wellknown-pth052ay.js} +9 -9
- package/dist/chunks/{models-dev-0j77ygfz.js → wellknown-q0xm7vwc.js} +6 -6
- package/dist/chunks/{models-dev-tpwgg6qw.js → wellknown-q1r88088.js} +21 -21
- package/dist/chunks/{models-dev-jjetjy4t.js → wellknown-q2s74pq3.js} +29 -29
- package/dist/chunks/{models-dev-kxseq8sh.js → wellknown-q41j192t.js} +44 -44
- package/dist/chunks/{models-dev-gcx85esw.js → wellknown-q5e7cmwt.js} +1 -1
- package/dist/chunks/{models-dev-zwq605bm.js → wellknown-qfhpm3qc.js} +25 -25
- package/dist/chunks/{models-dev-qnc92qwc.js → wellknown-qnc92qwc.js} +1 -1
- package/dist/chunks/{models-dev-jyfax2z2.js → wellknown-qr41fj7g.js} +24 -24
- package/dist/chunks/{models-dev-qsdy395h.js → wellknown-qsdy395h.js} +1 -1
- package/dist/chunks/{models-dev-q6p849e1.js → wellknown-r8p69s1c.js} +27 -27
- package/dist/chunks/{models-dev-rdw6cm16.js → wellknown-rdw6cm16.js} +1 -1
- package/dist/chunks/{models-dev-rert0e01.js → wellknown-rert0e01.js} +2 -2
- package/dist/chunks/{models-dev-2fqna6rb.js → wellknown-rf6cmkn1.js} +11 -11
- package/dist/chunks/{models-dev-rj3eygr5.js → wellknown-rj3eygr5.js} +2 -2
- package/dist/chunks/{models-dev-ypx73geg.js → wellknown-rpjgfq5s.js} +9 -9
- package/dist/chunks/{models-dev-ddt2bs9e.js → wellknown-rwm5vee1.js} +4 -4
- package/dist/chunks/{models-dev-ehy8mm5d.js → wellknown-ry7acwm0.js} +11 -11
- package/dist/chunks/{models-dev-5h7vwmhz.js → wellknown-rz2jrfe4.js} +36 -36
- package/dist/chunks/{models-dev-92dfjjnn.js → wellknown-s0v6p2yw.js} +32 -32
- package/dist/chunks/{models-dev-q0w2kfra.js → wellknown-s3whsmn8.js} +50 -50
- package/dist/chunks/{models-dev-ddhkvars.js → wellknown-sa65s65v.js} +38 -38
- package/dist/chunks/{models-dev-sa8ekw3f.js → wellknown-sa8ekw3f.js} +2 -2
- package/dist/chunks/{models-dev-r2c671yp.js → wellknown-sdcvfepd.js} +37 -37
- package/dist/chunks/{models-dev-9c8kpmyc.js → wellknown-sdh9qj8n.js} +22 -22
- package/dist/chunks/{models-dev-3p374m05.js → wellknown-sfnv3k5q.js} +25 -25
- package/dist/chunks/{models-dev-c2sed5cq.js → wellknown-ss358qx3.js} +3 -3
- package/dist/chunks/{models-dev-awmqpm04.js → wellknown-swbz5y4e.js} +13 -13
- package/dist/chunks/{models-dev-e80seqcp.js → wellknown-sxcaecc0.js} +3 -3
- package/dist/chunks/{models-dev-syv4x271.js → wellknown-syv4x271.js} +1 -1
- package/dist/chunks/{models-dev-045nn9pc.js → wellknown-sz15zhhw.js} +9 -9
- package/dist/chunks/{models-dev-10x3fwqm.js → wellknown-t03ww8yv.js} +8 -8
- package/dist/chunks/{models-dev-yqrbgmyt.js → wellknown-t48gjkh9.js} +10 -10
- package/dist/chunks/{models-dev-tazgh4e4.js → wellknown-tazgh4e4.js} +1 -1
- package/dist/chunks/{models-dev-ph842b28.js → wellknown-tbmac1c7.js} +4 -4
- package/dist/chunks/{models-dev-89znhe33.js → wellknown-tcezcvh9.js} +4 -4
- package/dist/chunks/{models-dev-a4v7cagr.js → wellknown-tdnbqpcs.js} +23 -23
- package/dist/chunks/{models-dev-tdstcens.js → wellknown-tdstcens.js} +1 -1
- package/dist/chunks/{models-dev-2hjbjm0q.js → wellknown-tjvac8q7.js} +20 -20
- package/dist/chunks/{models-dev-23zvew7z.js → wellknown-tkcrbpkc.js} +6 -6
- package/dist/chunks/{models-dev-tkmwgdpd.js → wellknown-tkmwgdpd.js} +1 -1
- package/dist/chunks/{models-dev-tm0kqsz3.js → wellknown-tm0kqsz3.js} +1 -1
- package/dist/chunks/{models-dev-tyytaxap.js → wellknown-tyytaxap.js} +1 -1
- package/dist/chunks/{models-dev-v0es1rhs.js → wellknown-v0es1rhs.js} +2 -2
- package/dist/chunks/{models-dev-5tzkd1fy.js → wellknown-v3r6gn43.js} +6 -6
- package/dist/chunks/{models-dev-v7p4zvkq.js → wellknown-v7p4zvkq.js} +2 -2
- package/dist/chunks/{models-dev-veqvce7d.js → wellknown-veqvce7d.js} +1 -1
- package/dist/chunks/{models-dev-5n9bvvdj.js → wellknown-vezvmmkc.js} +35 -35
- package/dist/chunks/{models-dev-ybnef321.js → wellknown-vjtqbry4.js} +35 -35
- package/dist/chunks/{models-dev-vzs5sf6e.js → wellknown-vzs5sf6e.js} +1 -1
- package/dist/chunks/{models-dev-bhad103s.js → wellknown-w07ceyf6.js} +9 -9
- package/dist/chunks/{models-dev-g6yfr6ja.js → wellknown-w39jehkq.js} +5 -5
- package/dist/chunks/{models-dev-w3wsvvr9.js → wellknown-w3wsvvr9.js} +1 -1
- package/dist/chunks/{models-dev-e5x4shnv.js → wellknown-w5nnqvt9.js} +11 -11
- package/dist/chunks/{models-dev-z8rw9kn4.js → wellknown-wby3r2te.js} +11 -11
- package/dist/chunks/{models-dev-qkttv2kq.js → wellknown-wc6jcbfj.js} +4 -4
- package/dist/chunks/{models-dev-wd87259q.js → wellknown-wd87259q.js} +1 -1
- package/dist/chunks/{models-dev-hbe1c2zn.js → wellknown-wmtzr228.js} +23 -23
- package/dist/chunks/{models-dev-jmzfr6ct.js → wellknown-wsz42k4c.js} +17 -17
- package/dist/chunks/{models-dev-rp26en60.js → wellknown-wy10hgka.js} +11 -11
- package/dist/chunks/{models-dev-drymhbxd.js → wellknown-wykmqqgk.js} +323 -323
- package/dist/chunks/{models-dev-ms93yq6r.js → wellknown-x8gz1y8e.js} +8 -8
- package/dist/chunks/{models-dev-kmx2hz6k.js → wellknown-x9f80hf5.js} +13 -13
- package/dist/chunks/{models-dev-3a55g1p6.js → wellknown-xpgrsy6s.js} +5 -5
- package/dist/chunks/{models-dev-1p4v0rya.js → wellknown-xs59c258.js} +18 -18
- package/dist/chunks/{models-dev-vhac2bjs.js → wellknown-xvc808r4.js} +5 -5
- package/dist/chunks/{models-dev-1664kews.js → wellknown-xvtj7wm9.js} +6 -6
- package/dist/chunks/{models-dev-s3p4hev1.js → wellknown-y09582g8.js} +32 -32
- package/dist/chunks/{models-dev-y1fvbwt7.js → wellknown-y1fvbwt7.js} +1 -1
- package/dist/chunks/{models-dev-frr120gk.js → wellknown-y29hd157.js} +6 -6
- package/dist/chunks/{models-dev-ac5jr05j.js → wellknown-y8bbj09g.js} +19 -19
- package/dist/chunks/{models-dev-ek7a384p.js → wellknown-ya8pshrk.js} +65 -65
- package/dist/chunks/{models-dev-ryh0a1m0.js → wellknown-yqkkz5be.js} +6 -6
- package/dist/chunks/{models-dev-jky8rjf3.js → wellknown-ywem5egc.js} +50 -50
- package/dist/chunks/{models-dev-bjx1sjef.js → wellknown-ywt8jp22.js} +9 -9
- package/dist/chunks/{models-dev-z0bkrqjs.js → wellknown-z0bkrqjs.js} +1 -1
- package/dist/chunks/{models-dev-v3b3kks5.js → wellknown-z34a3zms.js} +4 -4
- package/dist/chunks/{models-dev-axp4ehpq.js → wellknown-z9qyhhpt.js} +6 -6
- package/dist/chunks/{models-dev-m4rz64sx.js → wellknown-zj26n4p5.js} +14 -14
- package/dist/chunks/{models-dev-zr2ceqn5.js → wellknown-zr2ceqn5.js} +1 -1
- package/dist/chunks/{models-dev-zxq2ej10.js → wellknown-zxq2ej10.js} +1 -1
- package/dist/chunks/{models-dev-scgrse2b.js → wellknown-zyk1yjk8.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- 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 +92 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- 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 +87 -87
- package/dist/database/database.js +74 -74
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +81 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- 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 +95 -95
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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 +222 -222
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- 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 +101 -101
- 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 +359 -359
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +136 -136
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +121 -121
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- 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 +129 -129
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +127 -127
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- 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 +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- 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 +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +113 -113
- 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 +15 -15
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +95 -95
- 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 +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +118 -118
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +105 -105
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/config/discovery.d.ts +18 -0
- package/dist/types/config.d.ts +3 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +1 -1
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/models-dev-1x5yxq0t.js +0 -26
- package/dist/chunks/models-dev-99tthb6r.js +0 -59
- package/dist/chunks/models-dev-q509s3k3.js +0 -18
- package/dist/chunks/models-dev-rntxp1zy.js +0 -253
- /package/dist/chunks/{models-dev-0qkdqm5v.js → wellknown-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{models-dev-0zkw76rk.js → wellknown-0zkw76rk.js} +0 -0
- /package/dist/chunks/{models-dev-17cy0kzp.js → wellknown-17cy0kzp.js} +0 -0
- /package/dist/chunks/{models-dev-1cnp2v09.js → wellknown-1cnp2v09.js} +0 -0
- /package/dist/chunks/{models-dev-1kg9ymc8.js → wellknown-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{models-dev-24dcb14g.js → wellknown-24dcb14g.js} +0 -0
- /package/dist/chunks/{models-dev-2710q6r3.js → wellknown-2710q6r3.js} +0 -0
- /package/dist/chunks/{models-dev-2axfhc9x.js → wellknown-2axfhc9x.js} +0 -0
- /package/dist/chunks/{models-dev-2bv980vf.js → wellknown-2bv980vf.js} +0 -0
- /package/dist/chunks/{models-dev-2c3vjs8z.js → wellknown-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{models-dev-359p4xyc.js → wellknown-359p4xyc.js} +0 -0
- /package/dist/chunks/{models-dev-3asan66x.js → wellknown-3asan66x.js} +0 -0
- /package/dist/chunks/{models-dev-3t0ybcrp.js → wellknown-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{models-dev-3v8g72cx.js → wellknown-3v8g72cx.js} +0 -0
- /package/dist/chunks/{models-dev-3wcehsnq.js → wellknown-3wcehsnq.js} +0 -0
- /package/dist/chunks/{models-dev-43n2bw4t.js → wellknown-43n2bw4t.js} +0 -0
- /package/dist/chunks/{models-dev-4knz6hnm.js → wellknown-4knz6hnm.js} +0 -0
- /package/dist/chunks/{models-dev-4vcrnpx2.js → wellknown-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{models-dev-4y7fprxs.js → wellknown-4y7fprxs.js} +0 -0
- /package/dist/chunks/{models-dev-53557ph1.js → wellknown-53557ph1.js} +0 -0
- /package/dist/chunks/{models-dev-550bvhaj.js → wellknown-550bvhaj.js} +0 -0
- /package/dist/chunks/{models-dev-6prwharc.js → wellknown-6prwharc.js} +0 -0
- /package/dist/chunks/{models-dev-6q2bdcd1.js → wellknown-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{models-dev-7akdwqpd.js → wellknown-7akdwqpd.js} +0 -0
- /package/dist/chunks/{models-dev-7m9af43g.js → wellknown-7m9af43g.js} +0 -0
- /package/dist/chunks/{models-dev-822emrt2.js → wellknown-822emrt2.js} +0 -0
- /package/dist/chunks/{models-dev-84wd9syh.js → wellknown-84wd9syh.js} +0 -0
- /package/dist/chunks/{models-dev-88xbtdfr.js → wellknown-88xbtdfr.js} +0 -0
- /package/dist/chunks/{models-dev-8n3pysct.js → wellknown-8n3pysct.js} +0 -0
- /package/dist/chunks/{models-dev-8wj87zfr.js → wellknown-8wj87zfr.js} +0 -0
- /package/dist/chunks/{models-dev-9a4afbnw.js → wellknown-9a4afbnw.js} +0 -0
- /package/dist/chunks/{models-dev-9rqn6x4v.js → wellknown-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{models-dev-a6k6eb26.js → wellknown-a6k6eb26.js} +0 -0
- /package/dist/chunks/{models-dev-af5trqkr.js → wellknown-af5trqkr.js} +0 -0
- /package/dist/chunks/{models-dev-afrmfg78.js → wellknown-afrmfg78.js} +0 -0
- /package/dist/chunks/{models-dev-aqzs7mqg.js → wellknown-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{models-dev-atq7p7m5.js → wellknown-atq7p7m5.js} +0 -0
- /package/dist/chunks/{models-dev-bkyjaxrp.js → wellknown-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{models-dev-bmr6ed5q.js → wellknown-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{models-dev-cf4snx6d.js → wellknown-cf4snx6d.js} +0 -0
- /package/dist/chunks/{models-dev-cvy3z8tj.js → wellknown-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{models-dev-d9fn303g.js → wellknown-d9fn303g.js} +0 -0
- /package/dist/chunks/{models-dev-d9jj8t3e.js → wellknown-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{models-dev-dajrwvna.js → wellknown-dajrwvna.js} +0 -0
- /package/dist/chunks/{models-dev-dap0rakb.js → wellknown-dap0rakb.js} +0 -0
- /package/dist/chunks/{models-dev-df08tz66.js → wellknown-df08tz66.js} +0 -0
- /package/dist/chunks/{models-dev-dy18nga0.js → wellknown-dy18nga0.js} +0 -0
- /package/dist/chunks/{models-dev-e5kj55wp.js → wellknown-e5kj55wp.js} +0 -0
- /package/dist/chunks/{models-dev-e73j6tqm.js → wellknown-e73j6tqm.js} +0 -0
- /package/dist/chunks/{models-dev-ec1grn59.js → wellknown-ec1grn59.js} +0 -0
- /package/dist/chunks/{models-dev-eh3zwz77.js → wellknown-eh3zwz77.js} +0 -0
- /package/dist/chunks/{models-dev-emrn6kk6.js → wellknown-emrn6kk6.js} +0 -0
- /package/dist/chunks/{models-dev-f0mxakyp.js → wellknown-f0mxakyp.js} +0 -0
- /package/dist/chunks/{models-dev-f6n9ztr4.js → wellknown-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{models-dev-faypxj3z.js → wellknown-faypxj3z.js} +0 -0
- /package/dist/chunks/{models-dev-fd410y7t.js → wellknown-fd410y7t.js} +0 -0
- /package/dist/chunks/{models-dev-g4wezp1m.js → wellknown-g4wezp1m.js} +0 -0
- /package/dist/chunks/{models-dev-g86h250q.js → wellknown-g86h250q.js} +0 -0
- /package/dist/chunks/{models-dev-gebd4c9n.js → wellknown-gebd4c9n.js} +0 -0
- /package/dist/chunks/{models-dev-gftt206x.js → wellknown-gftt206x.js} +0 -0
- /package/dist/chunks/{models-dev-hcxmzztb.js → wellknown-hcxmzztb.js} +0 -0
- /package/dist/chunks/{models-dev-hk9envan.js → wellknown-hk9envan.js} +0 -0
- /package/dist/chunks/{models-dev-j2ntwpah.js → wellknown-j2ntwpah.js} +0 -0
- /package/dist/chunks/{models-dev-j5zkgpj8.js → wellknown-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{models-dev-jjkms2e6.js → wellknown-jjkms2e6.js} +0 -0
- /package/dist/chunks/{models-dev-jr7sbwjy.js → wellknown-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{models-dev-jwfs4k6c.js → wellknown-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{models-dev-jze0r7bz.js → wellknown-jze0r7bz.js} +0 -0
- /package/dist/chunks/{models-dev-jzg6c2d5.js → wellknown-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{models-dev-m18g726c.js → wellknown-m18g726c.js} +0 -0
- /package/dist/chunks/{models-dev-mp448xyj.js → wellknown-mp448xyj.js} +0 -0
- /package/dist/chunks/{models-dev-msx8hqn2.js → wellknown-msx8hqn2.js} +0 -0
- /package/dist/chunks/{models-dev-n05xt0ee.js → wellknown-n05xt0ee.js} +0 -0
- /package/dist/chunks/{models-dev-n3j8tn72.js → wellknown-n3j8tn72.js} +0 -0
- /package/dist/chunks/{models-dev-njntx4h6.js → wellknown-njntx4h6.js} +0 -0
- /package/dist/chunks/{models-dev-pkyv6v7h.js → wellknown-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{models-dev-pyv0edze.js → wellknown-pyv0edze.js} +0 -0
- /package/dist/chunks/{models-dev-q3sfg36h.js → wellknown-q3sfg36h.js} +0 -0
- /package/dist/chunks/{models-dev-q74kybfr.js → wellknown-q74kybfr.js} +0 -0
- /package/dist/chunks/{models-dev-qaymkmh1.js → wellknown-qaymkmh1.js} +0 -0
- /package/dist/chunks/{models-dev-qb87gjwd.js → wellknown-qb87gjwd.js} +0 -0
- /package/dist/chunks/{models-dev-qfa1cgps.js → wellknown-qfa1cgps.js} +0 -0
- /package/dist/chunks/{models-dev-qg3g05ea.js → wellknown-qg3g05ea.js} +0 -0
- /package/dist/chunks/{models-dev-qrg20bc0.js → wellknown-qrg20bc0.js} +0 -0
- /package/dist/chunks/{models-dev-rcb2kzg1.js → wellknown-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{models-dev-sdp7kfr6.js → wellknown-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{models-dev-ssg3fenm.js → wellknown-ssg3fenm.js} +0 -0
- /package/dist/chunks/{models-dev-ve7vex1e.js → wellknown-ve7vex1e.js} +0 -0
- /package/dist/chunks/{models-dev-w803qqfp.js → wellknown-w803qqfp.js} +0 -0
- /package/dist/chunks/{models-dev-wc3fc9cn.js → wellknown-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{models-dev-wer8tq1h.js → wellknown-wer8tq1h.js} +0 -0
- /package/dist/chunks/{models-dev-wjj7prxr.js → wellknown-wjj7prxr.js} +0 -0
- /package/dist/chunks/{models-dev-wtztk69x.js → wellknown-wtztk69x.js} +0 -0
- /package/dist/chunks/{models-dev-x0ckcb58.js → wellknown-x0ckcb58.js} +0 -0
- /package/dist/chunks/{models-dev-x61499pn.js → wellknown-x61499pn.js} +0 -0
- /package/dist/chunks/{models-dev-y44na4kk.js → wellknown-y44na4kk.js} +0 -0
- /package/dist/chunks/{models-dev-y8f7s663.js → wellknown-y8f7s663.js} +0 -0
- /package/dist/chunks/{models-dev-ygaqb7jw.js → wellknown-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{models-dev-ym463w8f.js → wellknown-ym463w8f.js} +0 -0
- /package/dist/chunks/{models-dev-z5v4ffb3.js → wellknown-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{models-dev-z9919s4g.js → wellknown-z9919s4g.js} +0 -0
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node88
|
|
4
|
+
} from "./wellknown-swbz5y4e.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service84,
|
|
7
|
+
node87
|
|
8
|
+
} from "./wellknown-xs59c258.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./wellknown-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./wellknown-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./wellknown-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: () => Event17,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
27
|
-
Key: () =>
|
|
25
|
+
ID: () => ID11,
|
|
26
|
+
Info: () => Info21,
|
|
27
|
+
Key: () => Key3,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service72,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node75
|
|
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 ID11 = Credential.ID;
|
|
39
39
|
var OAuth3 = Credential.OAuth;
|
|
40
|
-
var
|
|
40
|
+
var Key3 = Credential.Key;
|
|
41
41
|
var External2 = Credential.External;
|
|
42
42
|
var Value2 = Credential.Value;
|
|
43
|
-
var
|
|
43
|
+
var Event17 = Credential.Event;
|
|
44
44
|
|
|
45
|
-
class
|
|
46
|
-
id:
|
|
45
|
+
class Info21 extends Schema.Class("Credential.Info")({
|
|
46
|
+
id: ID11,
|
|
47
47
|
integrationID: Integration.ID,
|
|
48
48
|
label: Schema.String,
|
|
49
49
|
value: Value2
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service72 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(Service72, Effect.gen(function* () {
|
|
56
|
+
const db = (yield* Service85).db;
|
|
57
|
+
const bus = yield* Service84;
|
|
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 Info21({
|
|
63
63
|
id: row.id,
|
|
64
64
|
integrationID: row.integration_id,
|
|
65
65
|
label: row.label,
|
|
@@ -70,7 +70,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
70
70
|
const credential = stored(row);
|
|
71
71
|
return credential ? [credential] : [];
|
|
72
72
|
});
|
|
73
|
-
return
|
|
73
|
+
return Service72.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(Service73, 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 Info21({
|
|
82
|
+
id: input.id ?? ID11.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(Service73, Effect.gen(function* () {
|
|
|
110
110
|
type: credential.value.type,
|
|
111
111
|
active: activated
|
|
112
112
|
});
|
|
113
|
-
yield* bus.publish(
|
|
113
|
+
yield* bus.publish(Event17.Updated, {}, { global: true });
|
|
114
114
|
if (activated)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event17.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(Service73, 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(Event17.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(Service73, 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(Event17.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(Service73, 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(Event17.Updated, {}, { global: true });
|
|
201
201
|
if (removed.switched)
|
|
202
|
-
yield* bus.publish(
|
|
202
|
+
yield* bus.publish(Event17.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
203
203
|
})
|
|
204
204
|
});
|
|
205
205
|
}));
|
|
206
|
-
var
|
|
206
|
+
var node75 = makeGlobalNode({ service: Service72, layer, deps: [node88, node87] });
|
|
207
207
|
|
|
208
|
-
export {
|
|
208
|
+
export { ID11, OAuth3, Key3, External2, Value2, Event17, Info21, Service72, node75, exports_credential };
|
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service56
|
|
3
|
+
} from "./wellknown-6smyg7me.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service15,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./wellknown-88sfk2zz.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service49
|
|
11
|
+
} from "./wellknown-pmqt8xvq.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service76
|
|
14
|
+
} from "./wellknown-ya8pshrk.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service75
|
|
17
|
+
} from "./wellknown-kjyb9yg1.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./wellknown-6prwharc.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./wellknown-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
|
-
Input: () =>
|
|
29
|
-
Output: () =>
|
|
30
|
-
Plugin: () =>
|
|
28
|
+
Input: () => Input10,
|
|
29
|
+
Output: () => Output7,
|
|
30
|
+
Plugin: () => Plugin30,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
|
-
name: () =>
|
|
33
|
-
toModelContent: () =>
|
|
32
|
+
name: () => name10,
|
|
33
|
+
toModelContent: () => toModelContent5
|
|
34
34
|
});
|
|
35
35
|
import { ToolFailure } from "@opencode/ai";
|
|
36
36
|
import { Effect, Schema } from "effect";
|
|
37
37
|
import { Bom } from "@opencode/util/bom";
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var name10 = "write";
|
|
39
|
+
var Input10 = Schema.Struct({
|
|
40
40
|
path: Schema.String.annotate({
|
|
41
41
|
description: "Path to the file to write to"
|
|
42
42
|
}),
|
|
43
43
|
content: Schema.String.annotate({ description: "Content to write to the file" })
|
|
44
44
|
});
|
|
45
|
-
var
|
|
45
|
+
var Output7 = Schema.Struct({
|
|
46
46
|
operation: Schema.Literal("write"),
|
|
47
47
|
target: Schema.String,
|
|
48
48
|
resource: Schema.String,
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var toModelContent5 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
+
var Plugin30 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
58
|
-
const formatter = yield*
|
|
59
|
-
const permission = yield*
|
|
55
|
+
const access = yield* Service75;
|
|
56
|
+
const fileMutation = yield* Service15;
|
|
57
|
+
const environment = yield* Service56;
|
|
58
|
+
const formatter = yield* Service49;
|
|
59
|
+
const permission = yield* Service76;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
|
-
name:
|
|
61
|
+
name: name10,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
63
63
|
description: `Writes a file to the local filesystem, overwriting if one exists.
|
|
64
64
|
|
|
65
65
|
Missing parent directories are created automatically.
|
|
66
66
|
|
|
67
67
|
Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
|
|
68
|
-
input:
|
|
69
|
-
output:
|
|
68
|
+
input: Input10,
|
|
69
|
+
output: Output7,
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
const source = {
|
|
72
72
|
type: "tool",
|
|
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
93
93
|
yield* syncTextBom2(environment.files, target.absolute, bom);
|
|
94
94
|
}
|
|
95
95
|
return result;
|
|
96
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
96
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent5(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
97
97
|
})).pipe(Effect.orDie);
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { name10, Input10, Output7, toModelContent5, Plugin30, exports_write };
|
|
@@ -1,82 +1,82 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node88
|
|
4
|
+
} from "./wellknown-swbz5y4e.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service84,
|
|
7
|
+
node87
|
|
8
|
+
} from "./wellknown-xs59c258.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./wellknown-rdw6cm16.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
13
|
+
ID15,
|
|
14
|
+
Service79,
|
|
15
|
+
node82
|
|
16
|
+
} from "./wellknown-aqrn4nva.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./wellknown-2vvh33eb.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service69,
|
|
22
|
+
node72
|
|
23
|
+
} from "./wellknown-vezvmmkc.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./wellknown-h6vf3j39.js";
|
|
27
27
|
import {
|
|
28
28
|
SessionEvent2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./wellknown-ec1grn59.js";
|
|
30
30
|
import {
|
|
31
31
|
provenance2,
|
|
32
32
|
compatible2,
|
|
33
33
|
isCheckpoint2,
|
|
34
34
|
encode2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./wellknown-f29mbr7f.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
37
|
+
load5
|
|
38
|
+
} from "./wellknown-ry7acwm0.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./wellknown-q5e7cmwt.js";
|
|
42
42
|
import {
|
|
43
43
|
baseTranscript2,
|
|
44
44
|
unsupportedParts2,
|
|
45
45
|
boundImages2,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from "./
|
|
46
|
+
Service20,
|
|
47
|
+
node23
|
|
48
|
+
} from "./wellknown-7mmrfg78.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} from "./
|
|
50
|
+
Service62,
|
|
51
|
+
node65
|
|
52
|
+
} from "./wellknown-7vgpq361.js";
|
|
53
53
|
import {
|
|
54
54
|
isRetryable2,
|
|
55
55
|
policy2
|
|
56
|
-
} from "./
|
|
56
|
+
} from "./wellknown-zyk1yjk8.js";
|
|
57
57
|
import {
|
|
58
58
|
toSessionError2,
|
|
59
59
|
contentFilterError2
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./wellknown-9qa7tgq7.js";
|
|
61
61
|
import {
|
|
62
62
|
calculateCost2,
|
|
63
63
|
record2,
|
|
64
64
|
add2
|
|
65
|
-
} from "./
|
|
65
|
+
} from "./wellknown-tdstcens.js";
|
|
66
66
|
import {
|
|
67
67
|
__export
|
|
68
|
-
} from "./
|
|
68
|
+
} from "./wellknown-9rqn6x4v.js";
|
|
69
69
|
|
|
70
70
|
// src/session/compaction.ts
|
|
71
71
|
var exports_compaction2 = {};
|
|
72
72
|
__export(exports_compaction2, {
|
|
73
|
-
Service: () =>
|
|
73
|
+
Service: () => Service5,
|
|
74
74
|
SessionCompaction: () => exports_compaction2,
|
|
75
75
|
buildPrompt: () => buildPrompt2,
|
|
76
76
|
estimateContext: () => estimateContext2,
|
|
77
77
|
estimatePrompt: () => estimatePrompt2,
|
|
78
|
-
layer: () =>
|
|
79
|
-
node: () =>
|
|
78
|
+
layer: () => layer6,
|
|
79
|
+
node: () => node7,
|
|
80
80
|
recentUserMessages: () => recentUserMessages2
|
|
81
81
|
});
|
|
82
82
|
import {
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "@opencode/ai";
|
|
93
93
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
94
94
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
95
|
-
class
|
|
95
|
+
class Service5 extends Context.Service()("@opencode/SessionCompaction") {
|
|
96
96
|
}
|
|
97
97
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
98
98
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -171,14 +171,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
171
171
|
};
|
|
172
172
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
173
173
|
var LEGACY_HEADING = "## Additional Context";
|
|
174
|
-
var
|
|
175
|
-
const agents = yield*
|
|
176
|
-
const bus = yield*
|
|
174
|
+
var layer6 = Layer.effect(Service5, Effect.gen(function* () {
|
|
175
|
+
const agents = yield* Service79;
|
|
176
|
+
const bus = yield* Service84;
|
|
177
177
|
const llm = yield* LLMClient.Service;
|
|
178
|
-
const catalog = yield*
|
|
179
|
-
const models = yield*
|
|
180
|
-
const db = (yield*
|
|
181
|
-
const requests = yield*
|
|
178
|
+
const catalog = yield* Service69;
|
|
179
|
+
const models = yield* Service62;
|
|
180
|
+
const db = (yield* Service85).db;
|
|
181
|
+
const requests = yield* Service20;
|
|
182
182
|
const state = create3({
|
|
183
183
|
name: "session-compaction",
|
|
184
184
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -196,7 +196,7 @@ var layer8 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
196
196
|
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
|
|
197
197
|
return { status: "skipped" };
|
|
198
198
|
const native = context.model.compaction?.type === "native";
|
|
199
|
-
const agent = native ? undefined : yield* agents.get(
|
|
199
|
+
const agent = native ? undefined : yield* agents.get(ID15.make("compaction"));
|
|
200
200
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
201
201
|
return;
|
|
202
202
|
})))) ?? context.model;
|
|
@@ -272,7 +272,7 @@ var layer8 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
272
272
|
const send = (request) => {
|
|
273
273
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
274
274
|
return Effect.gen(function* () {
|
|
275
|
-
const history = yield*
|
|
275
|
+
const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
|
|
276
276
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
277
277
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
278
278
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -472,16 +472,16 @@ ${text}`;
|
|
|
472
472
|
}, { metadata: outcome.metadata });
|
|
473
473
|
return { status: "completed" };
|
|
474
474
|
});
|
|
475
|
-
return
|
|
475
|
+
return Service5.of({
|
|
476
476
|
transform: state.transform,
|
|
477
477
|
reload: state.reload,
|
|
478
478
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
479
479
|
});
|
|
480
480
|
}));
|
|
481
|
-
var
|
|
482
|
-
service:
|
|
483
|
-
layer:
|
|
484
|
-
deps: [
|
|
481
|
+
var node7 = makeLocationNode({
|
|
482
|
+
service: Service5,
|
|
483
|
+
layer: layer6,
|
|
484
|
+
deps: [node82, node87, node88, llmClient2, node72, node23, node65]
|
|
485
485
|
});
|
|
486
486
|
var previousCompaction = (messages) => {
|
|
487
487
|
const [first] = messages;
|
|
@@ -686,4 +686,4 @@ var estimateMedia = (mime) => {
|
|
|
686
686
|
return 0;
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
export {
|
|
689
|
+
export { Service5, buildPrompt2, layer6, node7, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./wellknown-db2wf4at.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service84
|
|
6
|
+
} from "./wellknown-xs59c258.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./wellknown-rz2jrfe4.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID10,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./wellknown-f6t8zy6q.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID9,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service70
|
|
20
|
+
} from "./wellknown-dfqan8cb.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID8
|
|
23
|
+
} from "./wellknown-vezvmmkc.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./wellknown-7b6r8ck4.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./wellknown-wby3r2te.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID15
|
|
33
|
+
} from "./wellknown-aqrn4nva.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./wellknown-54ma36ye.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -65,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
65
65
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
66
66
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
67
67
|
var oauth = (app) => ({
|
|
68
|
-
integrationID:
|
|
68
|
+
integrationID: ID10.make("github-copilot"),
|
|
69
69
|
method: {
|
|
70
70
|
id: methodID,
|
|
71
71
|
type: "oauth",
|
|
@@ -163,8 +163,8 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
167
|
-
const bus = yield*
|
|
166
|
+
const providers = yield* Service70;
|
|
167
|
+
const bus = yield* Service84;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
170
170
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -180,9 +180,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID9.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
|
-
try: () =>
|
|
185
|
+
try: () => load2(url, {
|
|
186
186
|
...provider?.headers,
|
|
187
187
|
Authorization: `Bearer ${credential.refresh}`,
|
|
188
188
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -202,13 +202,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
202
|
editor.method.update(oauth(ctx.app));
|
|
203
203
|
});
|
|
204
204
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID9.githubCopilot);
|
|
206
206
|
if (!item)
|
|
207
207
|
return;
|
|
208
208
|
if (loaded.models) {
|
|
209
209
|
evt.add({
|
|
210
210
|
info: item.provider,
|
|
211
|
-
models: Array.from(
|
|
211
|
+
models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
212
212
|
sourceConnection: loaded.connection
|
|
213
213
|
});
|
|
214
214
|
return;
|
|
@@ -230,17 +230,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
yield* ctx.model.transform((models) => {
|
|
233
|
-
if (models.get(
|
|
234
|
-
models.update(
|
|
233
|
+
if (models.get(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"))) {
|
|
234
|
+
models.update(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"), (model) => {
|
|
235
235
|
model.enabled = false;
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
240
|
-
yield* bus.subscribe(
|
|
240
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
241
241
|
yield* refresh().pipe(Effect.forkScoped);
|
|
242
242
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
243
|
-
if (evt.model.providerID !==
|
|
243
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
244
244
|
return;
|
|
245
245
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
246
246
|
return;
|
|
@@ -249,7 +249,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
249
249
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
250
250
|
}));
|
|
251
251
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
252
|
-
if (evt.model.providerID !==
|
|
252
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
253
253
|
return;
|
|
254
254
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
255
255
|
return;
|
|
@@ -259,13 +259,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
259
259
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
260
260
|
if (interaction !== "conversation-agent")
|
|
261
261
|
evt.headers["x-initiator"] = "agent";
|
|
262
|
-
}), { providerID:
|
|
262
|
+
}), { providerID: ID9.githubCopilot });
|
|
263
263
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
264
|
-
if (evt.model.providerID !==
|
|
264
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
265
265
|
return;
|
|
266
266
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
267
267
|
return;
|
|
268
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
268
|
+
const agent = yield* ctx.agent.get({ agentID: ID15.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
271
|
if (agent?.data.model)
|
|
@@ -276,9 +276,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
276
276
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
277
277
|
return;
|
|
278
278
|
}));
|
|
279
|
-
}), { providerID:
|
|
279
|
+
}), { providerID: ID9.githubCopilot });
|
|
280
280
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
281
|
-
if (evt.model.providerID !==
|
|
281
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
282
282
|
return;
|
|
283
283
|
const token = evt.request.headers.get("x-api-key");
|
|
284
284
|
if (!token)
|
|
@@ -286,9 +286,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
286
286
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
287
287
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
288
288
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
289
|
-
}), { providerID:
|
|
289
|
+
}), { providerID: ID9.githubCopilot });
|
|
290
290
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
291
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
292
292
|
return;
|
|
293
293
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
294
294
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./wellknown-qnc92qwc.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./wellknown-rj3eygr5.js";
|
|
7
7
|
|
|
8
8
|
// src/worktree/sql.ts
|
|
9
9
|
import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
|