@opencode/core 0.0.0-dev-21207 → 0.0.0-dev-21212
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{persistent-pty-t550f9t1.js → config-0gdmqesm.js} +4 -4
- package/dist/chunks/{persistent-pty-pjnrv22w.js → config-0jpgft5k.js} +11 -11
- package/dist/chunks/{persistent-pty-xf8yqmad.js → config-0jq9fyba.js} +9 -9
- package/dist/chunks/{persistent-pty-0vbcp93d.js → config-0vbcp93d.js} +2 -2
- package/dist/chunks/{persistent-pty-1jge3f37.js → config-16q9tp4m.js} +34 -34
- package/dist/chunks/{persistent-pty-s4e55a1y.js → config-1807h4mh.js} +5 -5
- package/dist/chunks/{persistent-pty-3dedrcqz.js → config-1aykj8gn.js} +3 -3
- package/dist/chunks/{persistent-pty-bzeyqsqd.js → config-1ep4rre3.js} +4 -4
- package/dist/chunks/{persistent-pty-avyh4w4k.js → config-1gtmny4k.js} +15 -15
- package/dist/chunks/{persistent-pty-ww7z4zes.js → config-1gx5mjve.js} +20 -20
- package/dist/chunks/{persistent-pty-nxe4pcap.js → config-1rn5pcm9.js} +4 -4
- package/dist/chunks/{persistent-pty-he0cfhpc.js → config-1vf4sagb.js} +42 -42
- package/dist/chunks/{persistent-pty-wjr337jx.js → config-1vy4979m.js} +37 -37
- package/dist/chunks/{persistent-pty-68g6xwqn.js → config-1w99e8rb.js} +25 -25
- package/dist/chunks/{persistent-pty-ak0n8wqr.js → config-29x2kfwx.js} +3 -3
- package/dist/chunks/{persistent-pty-vxttbewe.js → config-2f7exg7q.js} +7 -7
- package/dist/chunks/{persistent-pty-h26kdy9n.js → config-2gmw2dpq.js} +24 -24
- package/dist/chunks/{persistent-pty-wak88xg7.js → config-2pe0fb9w.js} +16 -16
- package/dist/chunks/{persistent-pty-ay5c0bv3.js → config-2q5tx0yx.js} +22 -22
- package/dist/chunks/{persistent-pty-mswjsdq2.js → config-2syaeb1n.js} +18 -18
- package/dist/chunks/{persistent-pty-hkajtpqc.js → config-33syv8f0.js} +2 -2
- package/dist/chunks/{persistent-pty-vk73as10.js → config-34qg6jmz.js} +20 -20
- package/dist/chunks/{persistent-pty-d216944b.js → config-34rkz0x9.js} +4 -4
- package/dist/chunks/{persistent-pty-57ws9skg.js → config-36hcm0df.js} +28 -28
- package/dist/chunks/{persistent-pty-vvgahrge.js → config-39gpxs7w.js} +28 -28
- package/dist/chunks/{persistent-pty-6qx5ffhj.js → config-3ecnqg46.js} +3 -3
- package/dist/chunks/{persistent-pty-3fc6dm20.js → config-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-3hepkmqq.js → config-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-3hwn7j4h.js → config-3hwn7j4h.js} +2 -2
- package/dist/chunks/{persistent-pty-3smtnn6g.js → config-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → config-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-a0z8gye3.js → config-3vj4c1tg.js} +13 -13
- package/dist/chunks/{persistent-pty-54f956qq.js → config-3wrt3kr7.js} +13 -13
- package/dist/chunks/{persistent-pty-3zsf4n22.js → config-3zsf4n22.js} +1 -1
- package/dist/chunks/{persistent-pty-zd0masta.js → config-3zxf4b9k.js} +48 -48
- package/dist/chunks/{persistent-pty-dcsvv0a8.js → config-41pm01ak.js} +5 -5
- package/dist/chunks/{persistent-pty-nq3qw2vm.js → config-45fvvkjk.js} +4 -4
- package/dist/chunks/{persistent-pty-b2df57q2.js → config-45gkgs7n.js} +1 -1
- package/dist/chunks/{persistent-pty-bx0gyb4h.js → config-47jkzegy.js} +5 -5
- package/dist/chunks/{persistent-pty-fwbmh39w.js → config-48xwm2jn.js} +7 -7
- package/dist/chunks/{persistent-pty-23hfca39.js → config-4sw6mv0s.js} +4 -4
- package/dist/chunks/{persistent-pty-xacqwv33.js → config-4tszw8z9.js} +14 -14
- package/dist/chunks/{persistent-pty-5x0spf49.js → config-51tppabq.js} +45 -45
- package/dist/chunks/{persistent-pty-1msrarhd.js → config-53ev7e15.js} +15 -15
- package/dist/chunks/{persistent-pty-54ma36ye.js → config-54ma36ye.js} +1 -1
- package/dist/chunks/{persistent-pty-m87p00k5.js → config-57qzdvhg.js} +11 -11
- package/dist/chunks/{persistent-pty-gm31ynds.js → config-58hng72m.js} +5 -5
- package/dist/chunks/{persistent-pty-3a83a0n4.js → config-5eer2xf9.js} +8 -8
- package/dist/chunks/{persistent-pty-97aeaand.js → config-5fec3t3w.js} +9 -9
- package/dist/chunks/{persistent-pty-7y5ptgp2.js → config-5g88gadq.js} +11 -11
- package/dist/chunks/{persistent-pty-dy0tp0j6.js → config-5k8cr4k1.js} +10 -10
- package/dist/chunks/{persistent-pty-5m9w47nd.js → config-5m9w47nd.js} +1 -1
- package/dist/chunks/{persistent-pty-41mnrj5z.js → config-5yn9h0hb.js} +12 -12
- package/dist/chunks/{persistent-pty-1ajx6rf5.js → config-5yzzbxa7.js} +8 -8
- package/dist/chunks/{persistent-pty-qs13swd0.js → config-60hsndd1.js} +44 -44
- package/dist/chunks/{persistent-pty-0m15zpmn.js → config-63c46mej.js} +18 -18
- package/dist/chunks/{persistent-pty-6827pfxn.js → config-6827pfxn.js} +1 -1
- package/dist/chunks/{persistent-pty-6xcvt31d.js → config-68wqtz75.js} +1 -1
- package/dist/chunks/{persistent-pty-a4xxkpja.js → config-6cfz2rqh.js} +13 -13
- package/dist/chunks/{persistent-pty-76nj6dhf.js → config-6vk863qd.js} +7 -7
- package/dist/chunks/{persistent-pty-cdqe3acw.js → config-6wg7wrda.js} +8 -8
- package/dist/chunks/{persistent-pty-6xb47vfp.js → config-6xb47vfp.js} +1 -1
- package/dist/chunks/{persistent-pty-t0tz8gfx.js → config-6yrrv51r.js} +14 -14
- package/dist/chunks/{persistent-pty-6hcchj7j.js → config-74jjd7nh.js} +70 -70
- package/dist/chunks/{persistent-pty-775gj3j1.js → config-775gj3j1.js} +2 -2
- package/dist/chunks/{persistent-pty-7bmhse3q.js → config-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-3fkmq7pq.js → config-7dhmem7g.js} +9 -9
- package/dist/chunks/{persistent-pty-2sf5w7c0.js → config-7djdy79w.js} +8 -8
- package/dist/chunks/{persistent-pty-7fkffz83.js → config-7fkffz83.js} +2 -2
- package/dist/chunks/{persistent-pty-7b0e7y4m.js → config-7gbhzbmk.js} +6 -6
- package/dist/chunks/{persistent-pty-bgfh09k4.js → config-7gx306sf.js} +19 -19
- package/dist/chunks/{persistent-pty-19m9vfay.js → config-7hdhrm3j.js} +16 -16
- package/dist/chunks/{persistent-pty-7gvejd0q.js → config-7nzfzz9n.js} +16 -16
- package/dist/chunks/{persistent-pty-39z47dss.js → config-7rzjtvmt.js} +5 -5
- package/dist/chunks/{persistent-pty-3sv35849.js → config-7t7x805f.js} +27 -27
- package/dist/chunks/{persistent-pty-gshnfpyh.js → config-7ys1e3fp.js} +17 -17
- package/dist/chunks/{persistent-pty-84txncab.js → config-84txncab.js} +1 -1
- package/dist/chunks/{persistent-pty-ts10gvyd.js → config-86z5smpq.js} +14 -14
- package/dist/chunks/config-8a8mjsy9.js +26 -0
- package/dist/chunks/{persistent-pty-8nqwyyrr.js → config-8k3b0agb.js} +23 -23
- package/dist/chunks/{persistent-pty-8m6m0r52.js → config-8m6m0r52.js} +1 -1
- package/dist/chunks/{persistent-pty-0a4xt203.js → config-8teas5ch.js} +16 -16
- package/dist/chunks/{persistent-pty-4p1cenkk.js → config-8ybx4ept.js} +41 -41
- package/dist/chunks/{persistent-pty-6m2evtbw.js → config-931tckg1.js} +15 -15
- package/dist/chunks/{persistent-pty-4rv9xmb7.js → config-96w79gab.js} +11 -11
- package/dist/chunks/{persistent-pty-gzqd72by.js → config-99swe9qt.js} +15 -15
- package/dist/chunks/{persistent-pty-e0pc35xj.js → config-9bv4pdph.js} +32 -32
- package/dist/chunks/{persistent-pty-w9qdmkss.js → config-9h1mdt7j.js} +23 -23
- package/dist/chunks/{persistent-pty-sj31pcmn.js → config-9hfk5z5c.js} +28 -28
- package/dist/chunks/{persistent-pty-7g7x9kjy.js → config-9jphx3mb.js} +6 -6
- package/dist/chunks/{persistent-pty-1nwxscpy.js → config-9pkkzrmj.js} +5 -5
- package/dist/chunks/{persistent-pty-v2rhndg3.js → config-a0krqfnt.js} +32 -32
- package/dist/chunks/{persistent-pty-bcxm7vqe.js → config-a0qszzgx.js} +12 -12
- package/dist/chunks/{persistent-pty-nt017e08.js → config-a1xx1res.js} +11 -11
- package/dist/chunks/{persistent-pty-3j7kj2y8.js → config-a628wd46.js} +13 -13
- package/dist/chunks/{persistent-pty-rx905nvw.js → config-a8nkje97.js} +11 -11
- package/dist/chunks/{persistent-pty-fgg1h6tp.js → config-a8rz590j.js} +18 -18
- package/dist/chunks/{persistent-pty-znznz47e.js → config-agcqgxwh.js} +11 -11
- package/dist/chunks/{persistent-pty-hdfxv9rf.js → config-av7bwmdd.js} +13 -13
- package/dist/chunks/{persistent-pty-v9ncrnjw.js → config-b08a962v.js} +9 -9
- package/dist/chunks/{persistent-pty-c75t29hq.js → config-b1ba29dw.js} +7 -7
- package/dist/chunks/{persistent-pty-18g55aa2.js → config-b28mnwwt.js} +6 -6
- package/dist/chunks/{persistent-pty-k8xwrkek.js → config-b2bf46k7.js} +43 -43
- package/dist/chunks/{persistent-pty-0kq1vnt2.js → config-b2yyweyd.js} +14 -14
- package/dist/chunks/{persistent-pty-v9t8k6fh.js → config-b7j4btd3.js} +16 -16
- package/dist/chunks/{persistent-pty-wjr9rjd7.js → config-bjx1sjef.js} +6 -6
- package/dist/chunks/{persistent-pty-4d3befan.js → config-by2pg9y4.js} +8 -8
- package/dist/chunks/{persistent-pty-c1fqxshp.js → config-c1fqxshp.js} +3 -3
- package/dist/chunks/{persistent-pty-aacha31a.js → config-c5ggqzvz.js} +5 -5
- package/dist/chunks/{persistent-pty-hyry98jx.js → config-cf643m85.js} +20 -20
- package/dist/chunks/{persistent-pty-d1a28jh7.js → config-d1a28jh7.js} +2 -2
- package/dist/chunks/{persistent-pty-07hm112z.js → config-db5d95d0.js} +34 -34
- package/dist/chunks/{persistent-pty-0vs1brv3.js → config-de3bt2ha.js} +11 -11
- package/dist/chunks/{persistent-pty-0e4dr41z.js → config-dea3gwp3.js} +37 -37
- package/dist/chunks/{persistent-pty-8m4ndff2.js → config-dm0ynmtk.js} +24 -24
- package/dist/chunks/{persistent-pty-45yxkxq5.js → config-dsxjqpma.js} +4 -4
- package/dist/chunks/config-dxj72tfx.js +18 -0
- package/dist/chunks/{persistent-pty-36rq9ymx.js → config-e234cyn1.js} +6 -6
- package/dist/chunks/{persistent-pty-0qfx4vg1.js → config-e31gmyyr.js} +5 -5
- package/dist/chunks/{persistent-pty-5qd3pb7m.js → config-e3qxr5gk.js} +2 -2
- package/dist/chunks/{persistent-pty-368fk4db.js → config-e55bvh8p.js} +2 -2
- package/dist/chunks/{persistent-pty-argqn24j.js → config-e62qcj7p.js} +20 -20
- package/dist/chunks/{persistent-pty-sxcaecc0.js → config-e80seqcp.js} +3 -3
- package/dist/chunks/{persistent-pty-eej6y6fw.js → config-eej6y6fw.js} +2 -2
- package/dist/chunks/{persistent-pty-vhekmsjv.js → config-eeys6jp4.js} +5 -5
- package/dist/chunks/{persistent-pty-ef5x83kb.js → config-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-zvkna10r.js → config-ehqfapa0.js} +25 -25
- package/dist/chunks/{persistent-pty-kee9eehy.js → config-ervrf9b2.js} +8 -8
- package/dist/chunks/{persistent-pty-gakes9sg.js → config-ex4mby49.js} +9 -9
- package/dist/chunks/{persistent-pty-f2n192rq.js → config-f2n192rq.js} +1 -1
- package/dist/chunks/{persistent-pty-zswavtpb.js → config-f73e5hh7.js} +5 -5
- package/dist/chunks/{persistent-pty-607tc6va.js → config-fcrkznn8.js} +5 -5
- package/dist/chunks/{persistent-pty-fcy631f0.js → config-fcy631f0.js} +1 -1
- package/dist/chunks/{persistent-pty-k3bwfq85.js → config-fd1t11rg.js} +4 -4
- package/dist/chunks/{persistent-pty-qgccrhvw.js → config-fdqhxf37.js} +8 -8
- package/dist/chunks/{persistent-pty-md3yr6xj.js → config-fgk3vbyw.js} +7 -7
- package/dist/chunks/{persistent-pty-0tz9w1hv.js → config-fmzqg2fz.js} +42 -42
- package/dist/chunks/{persistent-pty-fv4sm444.js → config-fnanefbj.js} +31 -31
- package/dist/chunks/{persistent-pty-287dc9gj.js → config-fnhjbz4x.js} +14 -14
- package/dist/chunks/{persistent-pty-c0nr5bpp.js → config-fpak32sp.js} +20 -20
- package/dist/chunks/{persistent-pty-jj579w2g.js → config-fpzpr3k4.js} +26 -26
- package/dist/chunks/{persistent-pty-2mq1h16s.js → config-ft3hqk2c.js} +9 -9
- package/dist/chunks/{persistent-pty-hv3fvgxa.js → config-ftr9njzs.js} +4 -4
- package/dist/chunks/{persistent-pty-yfcvgves.js → config-fy0smdn8.js} +20 -20
- package/dist/chunks/{persistent-pty-0b5g1ynf.js → config-gbh65n66.js} +4 -4
- package/dist/chunks/{persistent-pty-gd4qta3r.js → config-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-h5h55k1t.js → config-gkj3y0k0.js} +4 -4
- package/dist/chunks/{persistent-pty-9nmz2bca.js → config-h27dsna5.js} +9 -9
- package/dist/chunks/{persistent-pty-7eqp7xtn.js → config-h3h6w07a.js} +170 -170
- package/dist/chunks/{persistent-pty-cp937pt4.js → config-h6310vsd.js} +4 -4
- package/dist/chunks/{persistent-pty-h6vf3j39.js → config-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-dq407baf.js → config-hbb7npd7.js} +6 -6
- package/dist/chunks/{persistent-pty-hgz4x7wa.js → config-hgz4x7wa.js} +1 -1
- package/dist/chunks/{persistent-pty-9n49pgr6.js → config-hzrdp0cp.js} +24 -24
- package/dist/chunks/{persistent-pty-91qna3x0.js → config-j09zfasm.js} +3 -3
- package/dist/chunks/{persistent-pty-rtvdsvz0.js → config-j19as0a3.js} +10 -10
- package/dist/chunks/{persistent-pty-cne5fydz.js → config-j7y9krvb.js} +15 -15
- package/dist/chunks/{persistent-pty-b3kbpvds.js → config-jfdnkmkt.js} +50 -50
- package/dist/chunks/{persistent-pty-7k8y39tb.js → config-jsma32sr.js} +45 -45
- package/dist/chunks/{persistent-pty-ca7w653e.js → config-jvf3yq6v.js} +4 -4
- package/dist/chunks/{persistent-pty-pwxqqvpq.js → config-k2j5a9gy.js} +27 -27
- package/dist/chunks/{persistent-pty-ryt5ycva.js → config-k96aks8v.js} +17 -17
- package/dist/chunks/{persistent-pty-0jmz7zhd.js → config-ka56qf9d.js} +10 -10
- package/dist/chunks/{persistent-pty-xpyhv29g.js → config-kahzxndq.js} +14 -14
- package/dist/chunks/{persistent-pty-e87gf2rh.js → config-kdfdhpw1.js} +10 -10
- package/dist/chunks/{persistent-pty-38phfjcn.js → config-kgen349b.js} +9 -9
- package/dist/chunks/{persistent-pty-2xt21v74.js → config-kh1y9y9d.js} +12 -12
- package/dist/chunks/{persistent-pty-m1skjvb8.js → config-kqky9vda.js} +1 -1
- package/dist/chunks/{persistent-pty-kwb1v3vj.js → config-kwb1v3vj.js} +1 -1
- package/dist/chunks/{persistent-pty-mswsvpz6.js → config-ky4qq4w5.js} +4 -4
- package/dist/chunks/{persistent-pty-98kr54cv.js → config-m2e0vr92.js} +28 -28
- package/dist/chunks/{persistent-pty-tpbvzr1y.js → config-m5asysjq.js} +15 -15
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → config-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-maspj1v3.js → config-maspj1v3.js} +1 -1
- package/dist/chunks/{persistent-pty-q4d4j6bt.js → config-mek58htc.js} +13 -13
- package/dist/chunks/{persistent-pty-se3cmajw.js → config-mgw2gs0s.js} +18 -18
- package/dist/chunks/{persistent-pty-8mxaw1fa.js → config-mnfvax3m.js} +46 -46
- package/dist/chunks/{persistent-pty-0ehmmcyw.js → config-mrrz5y04.js} +15 -15
- package/dist/chunks/{persistent-pty-pkm7e8th.js → config-mtxqk8cw.js} +4 -4
- package/dist/chunks/{persistent-pty-9ae44cfy.js → config-mx9vqzsb.js} +6 -6
- package/dist/chunks/{persistent-pty-mxvxcxwy.js → config-mxvxcxwy.js} +1 -1
- package/dist/chunks/{persistent-pty-68spmrpe.js → config-n37454w0.js} +5 -5
- package/dist/chunks/{persistent-pty-pxmy34vh.js → config-nawhhaaq.js} +13 -13
- package/dist/chunks/{persistent-pty-bfc3jzxx.js → config-nd6sw2xa.js} +14 -14
- package/dist/chunks/{persistent-pty-0hvxqb6d.js → config-njnqnmx7.js} +33 -33
- package/dist/chunks/{persistent-pty-29jpnasx.js → config-nrf0g0fb.js} +7 -7
- package/dist/chunks/{persistent-pty-dcvyzbc9.js → config-nsvyg4h4.js} +22 -22
- package/dist/chunks/{persistent-pty-1w2wqhfv.js → config-ny8edt06.js} +4 -4
- package/dist/chunks/{persistent-pty-gs0drmb7.js → config-p608aa5p.js} +3 -3
- package/dist/chunks/{persistent-pty-t6dt94yt.js → config-p79dk7q2.js} +11 -11
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → config-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → config-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-df3a40xp.js → config-pktdb32c.js} +18 -18
- package/dist/chunks/{persistent-pty-296pqcyw.js → config-pm4xaw36.js} +4 -4
- package/dist/chunks/{persistent-pty-7j2qrq70.js → config-psvv3ym1.js} +31 -31
- package/dist/chunks/{persistent-pty-vzm2s9ff.js → config-pvj66q6s.js} +6 -6
- package/dist/chunks/{persistent-pty-pb1esjts.js → config-q0nrsbdj.js} +10 -10
- package/dist/chunks/{persistent-pty-ybt6a39d.js → config-q1jx9m76.js} +3 -3
- package/dist/chunks/{persistent-pty-pes8a9te.js → config-qe7wnvmc.js} +35 -35
- package/dist/chunks/{persistent-pty-z5tkq5nc.js → config-qff65cax.js} +29 -29
- package/dist/chunks/{persistent-pty-qnc92qwc.js → config-qnc92qwc.js} +1 -1
- package/dist/chunks/{persistent-pty-qqeeq2t9.js → config-qqeeq2t9.js} +1 -1
- package/dist/chunks/{persistent-pty-bq3rfpty.js → config-qqv6zatd.js} +24 -24
- package/dist/chunks/{persistent-pty-vxb9f0te.js → config-qr19ny83.js} +7 -7
- package/dist/chunks/{persistent-pty-qsdy395h.js → config-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-9qjz7egn.js → config-qtezqvee.js} +21 -21
- package/dist/chunks/{persistent-pty-2b974e2a.js → config-qy7aswph.js} +17 -17
- package/dist/chunks/{persistent-pty-tcxp8tq6.js → config-r0wdf4xp.js} +3 -3
- package/dist/chunks/{persistent-pty-2pvdeqne.js → config-r324nhbh.js} +83 -83
- package/dist/chunks/{persistent-pty-546wh2b3.js → config-r3r9m3qp.js} +13 -13
- package/dist/chunks/{persistent-pty-3126pgvt.js → config-r3vc3gvd.js} +27 -27
- package/dist/chunks/{persistent-pty-nmhvfjt2.js → config-r41sfqm3.js} +20 -20
- package/dist/chunks/{persistent-pty-vnvv926v.js → config-r51s5bd8.js} +11 -11
- package/dist/chunks/{persistent-pty-kjd40bgk.js → config-r70na3yp.js} +9 -9
- package/dist/chunks/{persistent-pty-rdw6cm16.js → config-rdw6cm16.js} +1 -1
- package/dist/chunks/config-refhawet.js +513 -0
- package/dist/chunks/{persistent-pty-rert0e01.js → config-rert0e01.js} +2 -2
- package/dist/chunks/{persistent-pty-rj3eygr5.js → config-rj3eygr5.js} +2 -2
- package/dist/chunks/{persistent-pty-q5rwhrtr.js → config-rmnevc7d.js} +32 -32
- package/dist/chunks/{persistent-pty-9nv551d5.js → config-rtjghg3d.js} +11 -11
- package/dist/chunks/{persistent-pty-hk8s4rpe.js → config-rwpsx4ze.js} +18 -18
- package/dist/chunks/{persistent-pty-g1kxasap.js → config-s8tqqwqt.js} +17 -17
- package/dist/chunks/{persistent-pty-sa8ekw3f.js → config-sa8ekw3f.js} +2 -2
- package/dist/chunks/{persistent-pty-1qpcq0yb.js → config-sdwaewz7.js} +11 -11
- package/dist/chunks/{persistent-pty-m05fbbj0.js → config-sjtacrxe.js} +80 -80
- package/dist/chunks/{persistent-pty-sxgg5vg7.js → config-sv0tx6r5.js} +15 -15
- package/dist/chunks/{persistent-pty-syv4x271.js → config-syv4x271.js} +1 -1
- package/dist/chunks/{persistent-pty-h2955e8q.js → config-t5scbgyn.js} +17 -17
- package/dist/chunks/{persistent-pty-tazgh4e4.js → config-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-89znhe33.js → config-tcezcvh9.js} +4 -4
- package/dist/chunks/{persistent-pty-tdstcens.js → config-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-h90v2x9d.js → config-tjedn1bk.js} +4 -4
- package/dist/chunks/{persistent-pty-5fykfdj7.js → config-tk14y25j.js} +5 -5
- package/dist/chunks/{persistent-pty-tm0kqsz3.js → config-tm0kqsz3.js} +1 -1
- package/dist/chunks/{persistent-pty-8qw7ce1p.js → config-tm49e194.js} +21 -21
- package/dist/chunks/{persistent-pty-p1dnjvcc.js → config-tnfencz9.js} +5 -5
- package/dist/chunks/{persistent-pty-qgzg94dt.js → config-tqev4rw4.js} +6 -6
- package/dist/chunks/{persistent-pty-7s8vtvkc.js → config-trya7axm.js} +8 -8
- package/dist/chunks/{persistent-pty-26pvtrrv.js → config-tx3r04g2.js} +33 -33
- package/dist/chunks/{persistent-pty-tyytaxap.js → config-tyytaxap.js} +1 -1
- package/dist/chunks/{persistent-pty-v210v162.js → config-v210v162.js} +2 -2
- package/dist/chunks/{persistent-pty-v7p4zvkq.js → config-v7p4zvkq.js} +2 -2
- package/dist/chunks/{persistent-pty-s1rzx2rx.js → config-v9y3ks20.js} +16 -16
- package/dist/chunks/{persistent-pty-5cdwp8x1.js → config-vazjkyfy.js} +11 -11
- package/dist/chunks/{persistent-pty-6v03kn10.js → config-vbmkcdq8.js} +30 -30
- package/dist/chunks/{persistent-pty-veqvce7d.js → config-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-1gzh7x8v.js → config-vfycf9ng.js} +15 -15
- package/dist/chunks/config-vjt5wmnj.js +257 -0
- package/dist/chunks/{persistent-pty-53wmdg2z.js → config-vz6mmxyf.js} +26 -26
- package/dist/chunks/{persistent-pty-vzs5sf6e.js → config-vzs5sf6e.js} +1 -1
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → config-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-x5hm6bvw.js → config-w43s46za.js} +14 -14
- package/dist/chunks/{persistent-pty-j4yfb354.js → config-w5yrvevg.js} +11 -11
- package/dist/chunks/{persistent-pty-catab2z7.js → config-w7vwr9tt.js} +3 -3
- package/dist/chunks/{persistent-pty-wd87259q.js → config-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-khzq4x05.js → config-wwttcv73.js} +27 -27
- package/dist/chunks/{persistent-pty-g7fa7svs.js → config-wxzk78h0.js} +27 -27
- package/dist/chunks/{persistent-pty-vtbat0ks.js → config-wybtwzt1.js} +20 -20
- package/dist/chunks/{persistent-pty-nt2cm5g7.js → config-x3ekcye2.js} +2 -2
- package/dist/chunks/{persistent-pty-4rmh7taa.js → config-x9h2q0x2.js} +8 -8
- package/dist/chunks/{persistent-pty-39vged4c.js → config-xcdbt95f.js} +15 -15
- package/dist/chunks/{persistent-pty-1mgnj47k.js → config-xefpasch.js} +6 -6
- package/dist/chunks/{persistent-pty-fawagqxt.js → config-xkt244va.js} +28 -28
- package/dist/chunks/{persistent-pty-374251z8.js → config-xw82k8ba.js} +16 -16
- package/dist/chunks/{persistent-pty-tea6mbfw.js → config-y16m4k0n.js} +13 -13
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → config-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-zdhjww4c.js → config-y1wtyber.js} +9 -9
- package/dist/chunks/{persistent-pty-1pav5ndx.js → config-y4crs1v2.js} +20 -20
- package/dist/chunks/{persistent-pty-dpkg50ah.js → config-y71avatq.js} +4 -4
- package/dist/chunks/{persistent-pty-v293qw80.js → config-yjvgsn5p.js} +20 -20
- package/dist/chunks/{persistent-pty-n61013np.js → config-ynmknp8q.js} +11 -11
- package/dist/chunks/{persistent-pty-0bamrq62.js → config-ypt21gan.js} +20 -20
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → config-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-cw4vxgxd.js → config-z3nfqyak.js} +22 -22
- package/dist/chunks/{persistent-pty-t0pyhqcw.js → config-z4ev155g.js} +11 -11
- package/dist/chunks/{persistent-pty-fqyjd71p.js → config-z58scvjt.js} +26 -26
- package/dist/chunks/{persistent-pty-mbjmp2z7.js → config-z9bv8bpa.js} +40 -40
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → config-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-fqhbsnr5.js → config-zvjhkatg.js} +8 -8
- package/dist/chunks/{persistent-pty-zxq2ej10.js → config-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- 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 +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- 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 +72 -72
- 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 +221 -221
- 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 +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +106 -106
- package/dist/git.js +6 -6
- 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 +360 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +83 -83
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +129 -129
- 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-retry.js +1 -1
- package/dist/model.js +96 -96
- 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 +111 -111
- 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 +212 -212
- 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 +117 -117
- package/dist/plugin/optimize.js +2 -2
- 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 +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +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 +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +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 +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- 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 +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- 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 +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +219 -219
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +95 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- 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 +138 -138
- 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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- 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 +2 -2
- 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 +131 -131
- package/dist/session/projector.js +88 -88
- 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 +1 -1
- 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 +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +202 -202
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +208 -208
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -210
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +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 +130 -130
- 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 +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- 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/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- 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 +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/voice.js +86 -86
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- 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 +98 -98
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-7n7aetrn.js +0 -513
- package/dist/chunks/persistent-pty-9zy3g968.js +0 -26
- package/dist/chunks/persistent-pty-ht5y0zrb.js +0 -18
- package/dist/chunks/persistent-pty-kt23qymt.js +0 -257
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → config-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → config-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → config-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → config-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → config-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → config-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → config-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → config-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2bv980vf.js → config-2bv980vf.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → config-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → config-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → config-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3t0ybcrp.js → config-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → config-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → config-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → config-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → config-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → config-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → config-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → config-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → config-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → config-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-6q2bdcd1.js → config-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → config-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → config-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → config-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-84wd9syh.js → config-84wd9syh.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → config-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → config-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → config-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → config-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → config-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → config-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → config-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → config-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → config-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → config-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → config-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → config-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → config-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → config-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → config-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → config-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → config-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → config-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → config-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → config-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → config-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → config-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → config-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → config-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → config-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → config-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → config-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → config-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → config-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → config-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → config-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → config-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → config-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hcxmzztb.js → config-hcxmzztb.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → config-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → config-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → config-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → config-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → config-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → config-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jze0r7bz.js → config-jze0r7bz.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → config-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-m18g726c.js → config-m18g726c.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → config-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → config-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → config-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → config-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → config-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-pkyv6v7h.js → config-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{persistent-pty-pyv0edze.js → config-pyv0edze.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → config-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → config-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → config-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → config-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → config-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → config-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → config-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → config-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → config-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → config-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ve7vex1e.js → config-ve7vex1e.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → config-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → config-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → config-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wjj7prxr.js → config-wjj7prxr.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → config-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → config-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → config-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → config-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → config-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → config-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → config-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z5v4ffb3.js → config-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → config-z9919s4g.js} +0 -0
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service72
|
|
3
|
+
} from "./config-hzrdp0cp.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./config-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
8
|
Service82
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./config-33syv8f0.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service71
|
|
12
|
+
} from "./config-jsma32sr.js";
|
|
13
13
|
import {
|
|
14
14
|
DirectorySource2,
|
|
15
15
|
UrlSource2,
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Source3
|
|
17
|
+
} from "./config-dm0ynmtk.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service8
|
|
20
|
+
} from "./config-r70na3yp.js";
|
|
21
21
|
import {
|
|
22
22
|
parse2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./config-7gbhzbmk.js";
|
|
24
24
|
import {
|
|
25
25
|
ignore2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
scan3
|
|
27
|
+
} from "./config-1ep4rre3.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./config-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/config/plugin/skill.ts
|
|
33
|
-
var
|
|
34
|
-
__export(
|
|
35
|
-
ConfigSkillPlugin: () =>
|
|
36
|
-
Plugin: () =>
|
|
33
|
+
var exports_skill3 = {};
|
|
34
|
+
__export(exports_skill3, {
|
|
35
|
+
ConfigSkillPlugin: () => exports_skill3,
|
|
36
|
+
Plugin: () => Plugin35
|
|
37
37
|
});
|
|
38
38
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
39
39
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
40
40
|
import { Global } from "@opencode/util/global";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
43
|
-
var
|
|
43
|
+
var Plugin35 = define({
|
|
44
44
|
id: "opencode.config.skill",
|
|
45
45
|
effect: Effect.fn(function* (ctx) {
|
|
46
|
-
const config = yield*
|
|
47
|
-
const discovery = yield*
|
|
46
|
+
const config = yield* Service71;
|
|
47
|
+
const discovery = yield* Service8;
|
|
48
48
|
const fs = yield* FSUtil.Service;
|
|
49
49
|
const global = yield* Global.Service;
|
|
50
50
|
const location = yield* Service82;
|
|
51
|
-
const watcher = yield*
|
|
51
|
+
const watcher = yield* Service72;
|
|
52
52
|
const loaded = {
|
|
53
53
|
entries: yield* config.entries(),
|
|
54
54
|
skills: []
|
|
@@ -91,7 +91,7 @@ var Plugin8 = define({
|
|
|
91
91
|
const sources = () => {
|
|
92
92
|
const result = [];
|
|
93
93
|
const add = (source) => {
|
|
94
|
-
if (result.some((item) =>
|
|
94
|
+
if (result.some((item) => Source3.equals(item, source)))
|
|
95
95
|
return;
|
|
96
96
|
result.push(source);
|
|
97
97
|
};
|
|
@@ -116,13 +116,13 @@ var Plugin8 = define({
|
|
|
116
116
|
};
|
|
117
117
|
const load = Effect.fn("ConfigSkillPlugin.load")(function* (source) {
|
|
118
118
|
const directories = source.type === "directory" ? [source.path] : yield* discovery.pull(source.url).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to load skill source", {
|
|
119
|
-
source:
|
|
119
|
+
source: Source3.key(source),
|
|
120
120
|
cause
|
|
121
121
|
}).pipe(Effect.as([]))));
|
|
122
122
|
const roots = (yield* Effect.forEach(directories, watchDirectory)).flat();
|
|
123
123
|
const skills = [];
|
|
124
124
|
for (const directory of directories) {
|
|
125
|
-
for (const filepath of yield*
|
|
125
|
+
for (const filepath of yield* scan3(directory)) {
|
|
126
126
|
const resolved = yield* fs.realPath(filepath).pipe(Effect.orElseSucceed(() => filepath));
|
|
127
127
|
if (!roots.some((root) => FSUtil.contains(root, resolved)))
|
|
128
128
|
yield* watch(resolved, "file");
|
|
@@ -144,7 +144,7 @@ var Plugin8 = define({
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
yield* Effect.logDebug("skill source loaded", {
|
|
147
|
-
source:
|
|
147
|
+
source: Source3.key(source),
|
|
148
148
|
type: source.type,
|
|
149
149
|
directories,
|
|
150
150
|
skills: skills.map((skill) => skill.id)
|
|
@@ -163,7 +163,7 @@ var Plugin8 = define({
|
|
|
163
163
|
if (file) {
|
|
164
164
|
yield* Effect.logInfo("skills rescanned", {
|
|
165
165
|
file,
|
|
166
|
-
sources: current.map(
|
|
166
|
+
sources: current.map(Source3.key),
|
|
167
167
|
skills: loaded.skills.map((skill) => skill.id)
|
|
168
168
|
});
|
|
169
169
|
}
|
|
@@ -179,4 +179,4 @@ var Plugin8 = define({
|
|
|
179
179
|
})
|
|
180
180
|
});
|
|
181
181
|
|
|
182
|
-
export {
|
|
182
|
+
export { Plugin35, exports_skill3 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service58
|
|
3
|
+
} from "./config-kgen349b.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service45
|
|
6
|
+
} from "./config-mx9vqzsb.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./config-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./config-dxj72tfx.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service66
|
|
15
|
+
} from "./config-5eer2xf9.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./config-q1jx9m76.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Service38
|
|
23
|
+
} from "./config-dm0ynmtk.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./config-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/session/prompt.ts
|
|
29
29
|
var exports_prompt = {};
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service45;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service66;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service38;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -126,7 +126,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
126
126
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
127
127
|
if (!mime.startsWith("image/"))
|
|
128
128
|
return { data: Base64.make(data), mime };
|
|
129
|
-
const image = yield*
|
|
129
|
+
const image = yield* Service58;
|
|
130
130
|
const label = attachmentLabel(input);
|
|
131
131
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
132
132
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service71
|
|
3
|
+
} from "./config-jsma32sr.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service36
|
|
6
|
+
} from "./config-60hsndd1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./config-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
15
|
-
Plugin: () =>
|
|
12
|
+
var exports_mcp2 = {};
|
|
13
|
+
__export(exports_mcp2, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp2,
|
|
15
|
+
Plugin: () => Plugin48,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin48 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service71;
|
|
28
|
+
const mcp = yield* Service36;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin48, register2, exports_mcp2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service45
|
|
3
|
+
} from "./config-mx9vqzsb.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./config-dxj72tfx.js";
|
|
7
7
|
import {
|
|
8
8
|
SkillNotFoundError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./config-q1jx9m76.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service38
|
|
12
|
+
} from "./config-dm0ynmtk.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./config-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/skill.ts
|
|
18
18
|
var exports_skill4 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_skill4, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var get4 = Effect.fn("SessionSkill.get")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const skills = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service45;
|
|
26
|
+
const skills = yield* awaitActivation2.pipe(Effect.andThen(Service38), instances.provide(input.session));
|
|
27
27
|
const skill = yield* skills.get(input.skill);
|
|
28
28
|
if (!skill)
|
|
29
29
|
return yield* new SkillNotFoundError2({ skill: input.skill });
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service53
|
|
3
|
+
} from "./config-51tppabq.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./config-4vcrnpx2.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./config-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./config-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
19
|
+
Input: () => Input3,
|
|
20
20
|
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin20,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description2,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name3
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
33
|
+
var name3 = "webfetch";
|
|
34
34
|
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description2 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input3 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input10 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input3.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin20 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service53;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name3,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description2,
|
|
104
|
+
input: Input3,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin47 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name3,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name3, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description2, Input3, Plugin20, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./config-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/effect/keyed-mutex.ts
|
|
6
6
|
var exports_keyed_mutex = {};
|
|
7
7
|
__export(exports_keyed_mutex, {
|
|
8
8
|
KeyedMutex: () => exports_keyed_mutex,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make22,
|
|
10
10
|
makeUnsafe: () => makeUnsafe2
|
|
11
11
|
});
|
|
12
12
|
import { Effect, Semaphore } from "effect";
|
|
@@ -26,6 +26,6 @@ var makeUnsafe2 = () => {
|
|
|
26
26
|
});
|
|
27
27
|
return { size: Effect.sync(() => locks.size), withLock };
|
|
28
28
|
};
|
|
29
|
-
var
|
|
29
|
+
var make22 = () => Effect.sync(makeUnsafe2);
|
|
30
30
|
|
|
31
|
-
export { makeUnsafe2,
|
|
31
|
+
export { makeUnsafe2, make22, exports_keyed_mutex };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./config-29x2kfwx.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./config-rert0e01.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./config-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
16
|
ConflictError: () => ConflictError2,
|
|
17
|
-
ID: () =>
|
|
18
|
-
Info: () =>
|
|
19
|
-
ListInput: () =>
|
|
17
|
+
ID: () => ID8,
|
|
18
|
+
Info: () => Info10,
|
|
19
|
+
ListInput: () => ListInput5,
|
|
20
20
|
NotFoundError: () => NotFoundError8,
|
|
21
21
|
PermissionSaved: () => exports_saved,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service55,
|
|
23
23
|
UpdateInput: () => UpdateInput3,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node57
|
|
25
25
|
});
|
|
26
26
|
import { eq } from "drizzle-orm";
|
|
27
27
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
@@ -29,9 +29,9 @@ import { isSqlError } from "effect/sql/SqlError";
|
|
|
29
29
|
import { Project } from "@opencode/schema/project";
|
|
30
30
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
31
31
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
var
|
|
32
|
+
var ID8 = PermissionSaved.ID;
|
|
33
|
+
var Info10 = PermissionSaved.Info;
|
|
34
|
+
var ListInput5 = Schema.Struct({
|
|
35
35
|
projectID: Project.ID.pipe(Schema.optional)
|
|
36
36
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
37
37
|
var AddInput2 = Schema.Struct({
|
|
@@ -40,26 +40,26 @@ var AddInput2 = Schema.Struct({
|
|
|
40
40
|
resources: Schema.Array(Schema.String)
|
|
41
41
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
42
42
|
var UpdateInput3 = Schema.Struct({
|
|
43
|
-
id:
|
|
43
|
+
id: ID8,
|
|
44
44
|
action: Schema.String.pipe(Schema.optional),
|
|
45
45
|
resource: Schema.String.pipe(Schema.optional)
|
|
46
46
|
}).annotate({ identifier: "PermissionSaved.UpdateInput" });
|
|
47
47
|
|
|
48
48
|
class NotFoundError8 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
49
|
-
id:
|
|
49
|
+
id: ID8
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError", {
|
|
54
|
-
id:
|
|
54
|
+
id: ID8,
|
|
55
55
|
action: Schema.String,
|
|
56
56
|
resource: Schema.String
|
|
57
57
|
}) {
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service55 extends Context.Service()("@opencode/PermissionSaved") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
62
|
+
var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
63
63
|
const db = (yield* Service86).db;
|
|
64
64
|
const list = Effect.fnUntraced(function* (input) {
|
|
65
65
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -69,7 +69,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
69
69
|
if (!input.resources.length)
|
|
70
70
|
return;
|
|
71
71
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
72
|
-
id:
|
|
72
|
+
id: ID8.create(),
|
|
73
73
|
project_id: input.projectID,
|
|
74
74
|
action: input.action,
|
|
75
75
|
resource
|
|
@@ -89,7 +89,7 @@ var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
89
89
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
90
90
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
91
91
|
});
|
|
92
|
-
return
|
|
92
|
+
return Service55.of({ list, add, update, remove });
|
|
93
93
|
}));
|
|
94
94
|
var isUniqueViolation = (error) => {
|
|
95
95
|
const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
|
|
@@ -107,6 +107,6 @@ var info = (row) => ({
|
|
|
107
107
|
updated: DateTime.makeUnsafe(row.time_updated)
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
|
-
var
|
|
110
|
+
var node57 = makeGlobalNode({ service: Service55, layer, deps: [node90] });
|
|
111
111
|
|
|
112
|
-
export {
|
|
112
|
+
export { ID8, Info10, ListInput5, AddInput2, UpdateInput3, NotFoundError8, ConflictError2, Service55, node57, exports_saved };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./config-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Entries2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Info16
|
|
7
|
+
} from "./config-5fec3t3w.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./config-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/v1/config/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ConfigAgentV1: () =>
|
|
16
|
-
Info: () =>
|
|
13
|
+
var exports_agent4 = {};
|
|
14
|
+
__export(exports_agent4, {
|
|
15
|
+
ConfigAgentV1: () => exports_agent4,
|
|
16
|
+
Info: () => Info15
|
|
17
17
|
});
|
|
18
18
|
import { Schema, SchemaGetter } from "effect";
|
|
19
19
|
var Color = Schema.Union([
|
|
@@ -45,7 +45,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
45
45
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
46
46
|
}),
|
|
47
47
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
48
|
-
permission: Schema.optional(
|
|
48
|
+
permission: Schema.optional(Info16)
|
|
49
49
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
50
50
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
51
51
|
var normalize = (agent) => {
|
|
@@ -64,9 +64,9 @@ var normalize = (agent) => {
|
|
|
64
64
|
const steps = agent.steps ?? agent.maxSteps;
|
|
65
65
|
return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
|
|
66
66
|
};
|
|
67
|
-
var
|
|
67
|
+
var Info15 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
|
|
68
68
|
decode: SchemaGetter.transform(normalize),
|
|
69
69
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
70
70
|
})).annotate({ identifier: "AgentConfig" });
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { Info15, exports_agent4 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./config-kahzxndq.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID12,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
10
|
Info19
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./config-53ev7e15.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./config-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CopilotModels: () =>
|
|
20
|
-
derive: () =>
|
|
21
|
-
get: () =>
|
|
22
|
-
load: () =>
|
|
17
|
+
var exports_models = {};
|
|
18
|
+
__export(exports_models, {
|
|
19
|
+
CopilotModels: () => exports_models,
|
|
20
|
+
derive: () => derive2,
|
|
21
|
+
get: () => get2,
|
|
22
|
+
load: () => load2
|
|
23
23
|
});
|
|
24
24
|
import { Money } from "@opencode/schema/money";
|
|
25
25
|
import { Option, Schema } from "effect";
|
|
@@ -68,10 +68,10 @@ var RemoteModel = Schema.Struct({
|
|
|
68
68
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
69
69
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
70
70
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
71
|
-
async function
|
|
72
|
-
return
|
|
71
|
+
async function get2(baseURL, headers, existing) {
|
|
72
|
+
return derive2(baseURL, await load2(baseURL, headers), existing);
|
|
73
73
|
}
|
|
74
|
-
async function
|
|
74
|
+
async function load2(baseURL, headers) {
|
|
75
75
|
const response = await fetch(`${baseURL}/models`, {
|
|
76
76
|
headers,
|
|
77
77
|
signal: AbortSignal.timeout(5000)
|
|
@@ -83,7 +83,7 @@ async function load3(baseURL, headers) {
|
|
|
83
83
|
return model && usable(model) ? [[model.id, model]] : [];
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function derive2(baseURL, remote, existing) {
|
|
87
87
|
const result = new Map(existing.map((model) => [model.id, model]));
|
|
88
88
|
for (const [id, model] of result) {
|
|
89
89
|
const current = remote.get(model.modelID);
|
|
@@ -94,7 +94,7 @@ function derive3(baseURL, remote, existing) {
|
|
|
94
94
|
result.set(id, build(id, current, baseURL, model));
|
|
95
95
|
}
|
|
96
96
|
for (const [id, model] of remote) {
|
|
97
|
-
const key =
|
|
97
|
+
const key = ID12.make(id);
|
|
98
98
|
if (result.has(key))
|
|
99
99
|
continue;
|
|
100
100
|
result.set(key, build(key, model, baseURL));
|
|
@@ -119,10 +119,10 @@ function build(id, remote, baseURL, previous) {
|
|
|
119
119
|
const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
|
|
120
120
|
const released = previous?.time.released || Date.parse(version);
|
|
121
121
|
return Info19.make({
|
|
122
|
-
...Info19.default(
|
|
122
|
+
...Info19.default(ID13.githubCopilot, id),
|
|
123
123
|
id,
|
|
124
|
-
modelID:
|
|
125
|
-
providerID:
|
|
124
|
+
modelID: ID12.make(remote.id),
|
|
125
|
+
providerID: ID13.githubCopilot,
|
|
126
126
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
127
127
|
name: previous?.name ?? remote.name,
|
|
128
128
|
package: messages ? "@opencode/ai/providers/anthropic" : aisdk2("@ai-sdk/github-copilot"),
|
|
@@ -197,4 +197,4 @@ function variants(remote, messages) {
|
|
|
197
197
|
];
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export {
|
|
200
|
+
export { get2, load2, derive2, exports_models };
|