@opencode/core 0.0.0-dev-787 → 0.0.0-dev-791
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/agent.js +71 -71
- package/dist/aisdk-native.js +72 -72
- package/dist/aisdk.js +77 -77
- package/dist/app.js +9 -9
- package/dist/artifact.js +194 -194
- package/dist/bus.js +60 -60
- package/dist/chunks/{form-whb2nay0.js → form-01rpw1qv.js} +22 -22
- package/dist/chunks/{form-r0j6xsz8.js → form-05d441b2.js} +22 -22
- package/dist/chunks/{form-3bgf9gas.js → form-0c7bpw4e.js} +3 -3
- package/dist/chunks/{form-4m2hvhqe.js → form-0pzjnp4k.js} +4 -4
- package/dist/chunks/{form-w81j1vy6.js → form-10c0p7z3.js} +7 -7
- package/dist/chunks/{form-w557k37g.js → form-139nhzzp.js} +26 -26
- package/dist/chunks/{form-2swc61r8.js → form-19b2ztj7.js} +8 -8
- package/dist/chunks/{form-zmgx6wkw.js → form-19v0kb1w.js} +7 -7
- package/dist/chunks/{form-afm6xdv3.js → form-1d86nf37.js} +1 -1
- package/dist/chunks/{form-d91gx192.js → form-1p6cc7cx.js} +15 -15
- package/dist/chunks/{form-1p9n8pqr.js → form-1qs0jgz8.js} +8 -8
- package/dist/chunks/{form-bdhd9h6e.js → form-1yq9hg58.js} +4 -4
- package/dist/chunks/{form-w9g24b4r.js → form-2149gj6c.js} +26 -26
- package/dist/chunks/{form-d8jxt81g.js → form-24papxa4.js} +28 -28
- package/dist/chunks/{form-kbtcw8xz.js → form-26wfx3k0.js} +6 -6
- package/dist/chunks/{form-nzzdn40q.js → form-2jmys8k9.js} +32 -32
- package/dist/chunks/{form-k58mk6kn.js → form-2ymbxe2a.js} +15 -15
- package/dist/chunks/{form-t9rqwped.js → form-39n7peaz.js} +17 -17
- package/dist/chunks/{form-c4xned13.js → form-3h6x4vk4.js} +11 -11
- package/dist/chunks/{form-r17fbvme.js → form-3qgwywyc.js} +3 -3
- package/dist/chunks/{form-k2b9ebj4.js → form-3sj1dac3.js} +7 -7
- package/dist/chunks/{form-crrcr980.js → form-495vdj1c.js} +7 -7
- package/dist/chunks/{form-0q0tresn.js → form-49d4rty4.js} +17 -17
- package/dist/chunks/{form-r542h3bh.js → form-4f25tdd0.js} +4 -4
- package/dist/chunks/{form-r71dghqg.js → form-4jenwqe1.js} +27 -27
- package/dist/chunks/{form-r3wrm2s0.js → form-4wzmybmb.js} +13 -13
- package/dist/chunks/{form-v9vs06em.js → form-55g2q5p5.js} +1 -1
- package/dist/chunks/{form-85vwxjmf.js → form-5870dma9.js} +7 -7
- package/dist/chunks/{form-w1ph6wdf.js → form-5czt8ehm.js} +8 -8
- package/dist/chunks/{form-cdamb71v.js → form-5hrkd4hp.js} +6 -6
- package/dist/chunks/{form-m2bzqjs9.js → form-5j8ph1qd.js} +29 -29
- package/dist/chunks/{form-8cg7mtm3.js → form-5whx36p1.js} +3 -3
- package/dist/chunks/{form-sf9ycpb4.js → form-5wmmx33t.js} +6 -6
- package/dist/chunks/{form-1ydwk751.js → form-665akccg.js} +15 -15
- package/dist/chunks/{form-yts2a8qm.js → form-67wwskyb.js} +3 -3
- package/dist/chunks/{form-etrnj9s7.js → form-6f6jm3cp.js} +3 -3
- package/dist/chunks/{form-6w6fvajz.js → form-6qmwk56z.js} +39 -39
- package/dist/chunks/{form-fv0gq29x.js → form-6qsc8bte.js} +14 -14
- package/dist/chunks/{form-1p8n4tg7.js → form-6t6n7z4g.js} +7 -7
- package/dist/chunks/{form-qsrm9yq9.js → form-6y38v4f2.js} +5 -5
- package/dist/chunks/{form-whnhdn7f.js → form-6z00g8bn.js} +4 -4
- package/dist/chunks/{form-zhw1z1kb.js → form-75nzay9j.js} +22 -22
- package/dist/chunks/{form-0gth4b5d.js → form-785kt1nq.js} +30 -30
- package/dist/chunks/{form-nqj08935.js → form-79tfqp9f.js} +1 -1
- package/dist/chunks/{form-bz2rmm6x.js → form-7agpffk8.js} +4 -4
- package/dist/chunks/{form-za7m4eht.js → form-7b6h81bb.js} +4 -4
- package/dist/chunks/{form-y88x6xtw.js → form-7cwm169k.js} +28 -28
- package/dist/chunks/{form-ng5g1vyn.js → form-7hfrmca8.js} +1 -1
- package/dist/chunks/{form-534cnr7j.js → form-7hqvmvs7.js} +17 -17
- package/dist/chunks/{form-a5fx33f2.js → form-7nqkf5r1.js} +4 -4
- package/dist/chunks/{form-jk7vbzey.js → form-7rr5h0zr.js} +8 -8
- package/dist/chunks/{form-s45770bx.js → form-7rv4jjk5.js} +37 -37
- package/dist/chunks/{form-1h7wn8wb.js → form-7stykpj4.js} +33 -33
- package/dist/chunks/{form-pv1fqqkg.js → form-7ypjkqw5.js} +3 -3
- package/dist/chunks/{form-08sxv5h9.js → form-81zmd5dp.js} +16 -16
- package/dist/chunks/{form-kas838dp.js → form-82p7ywwd.js} +1 -1
- package/dist/chunks/{form-e76qcsfg.js → form-88pbdasn.js} +4 -4
- package/dist/chunks/{form-ysme3vfm.js → form-8cnjhhhz.js} +16 -16
- package/dist/chunks/{form-08v1fe0d.js → form-8d70nmw5.js} +10 -10
- package/dist/chunks/{form-qpc8m78k.js → form-8h5tjk24.js} +2 -2
- package/dist/chunks/{form-3bqg2k1d.js → form-8m9dyvqe.js} +7 -7
- package/dist/chunks/{form-5az55tk0.js → form-8rg9h9rf.js} +14 -14
- package/dist/chunks/{form-2qz9vgxk.js → form-90wkhppp.js} +7 -7
- package/dist/chunks/{form-spz5sz38.js → form-963hk181.js} +5 -5
- package/dist/chunks/{form-h2pdg52j.js → form-97efk2he.js} +19 -19
- package/dist/chunks/{form-077tkhm1.js → form-9dd5622s.js} +19 -19
- package/dist/chunks/{form-nd2vd1g9.js → form-9fjscgt9.js} +50 -50
- package/dist/chunks/{form-8mrh1q34.js → form-9me36f2x.js} +7 -7
- package/dist/chunks/{form-p0wr151k.js → form-9n50p2fd.js} +12 -12
- package/dist/chunks/{form-ygcy7kze.js → form-9v17a1m3.js} +10 -10
- package/dist/chunks/{form-strh6rv4.js → form-9x63vb7q.js} +18 -18
- package/dist/chunks/{form-f72sdcfm.js → form-9zt6fxcw.js} +28 -28
- package/dist/chunks/{form-wtnh9baf.js → form-a2ppfby6.js} +18 -18
- package/dist/chunks/{form-eyrz4ycd.js → form-a5shfyb2.js} +7 -7
- package/dist/chunks/{form-msj4mgeb.js → form-a8c6f01y.js} +7 -7
- package/dist/chunks/{form-zmjnchdd.js → form-a9vajmgg.js} +3 -3
- package/dist/chunks/{form-4q7drmzz.js → form-ac3czqys.js} +16 -16
- package/dist/chunks/{form-cdpxzsw5.js → form-amt3fy1y.js} +30 -30
- package/dist/chunks/{form-sf9y72b7.js → form-anvcme1c.js} +3 -3
- package/dist/chunks/{form-7m5j0kb4.js → form-b14sh48k.js} +8 -8
- package/dist/chunks/{form-6mjm7zxm.js → form-b7rebrt2.js} +41 -41
- package/dist/chunks/{form-74t29akg.js → form-bbmj4mnh.js} +134 -134
- package/dist/chunks/{form-brv4jfaf.js → form-bexj7x6s.js} +4 -4
- package/dist/chunks/{form-jkdcm5hg.js → form-bhfd478d.js} +3 -3
- package/dist/chunks/{form-3fy85vkh.js → form-bpkxevtq.js} +4 -4
- package/dist/chunks/{form-5aktsc5z.js → form-bpn4bk7k.js} +16 -16
- package/dist/chunks/{form-4jtdakfj.js → form-c09y0a8j.js} +9 -9
- package/dist/chunks/{form-d4vxj6mz.js → form-c5chrm98.js} +36 -36
- package/dist/chunks/{form-m5e6dbbg.js → form-c8pp1k19.js} +16 -16
- package/dist/chunks/{form-m5vks3yv.js → form-ccxyytbx.js} +5 -5
- package/dist/chunks/{form-rcfczq6v.js → form-ch7k79dh.js} +5 -5
- package/dist/chunks/{form-4jgac5zt.js → form-cjhteg90.js} +5 -5
- package/dist/chunks/{form-5asgddgx.js → form-ckn0kvtp.js} +3 -3
- package/dist/chunks/{form-bg1rqwjw.js → form-cqfxst5x.js} +23 -23
- package/dist/chunks/{form-d8asytdz.js → form-csytqz48.js} +11 -11
- package/dist/chunks/{form-1vz1ns2k.js → form-cvb39fh3.js} +8 -8
- package/dist/chunks/{form-4tqs0jzk.js → form-d8p3t516.js} +3 -3
- package/dist/chunks/{form-4qeh9rjn.js → form-dc1wkmnt.js} +7 -7
- package/dist/chunks/{form-y88ea6bf.js → form-dcqztyc0.js} +14 -14
- package/dist/chunks/{form-6x59me16.js → form-de87a3dm.js} +4 -4
- package/dist/chunks/{form-h7cs4frj.js → form-dee54pyj.js} +18 -18
- package/dist/chunks/{form-zsjmk57r.js → form-dj2nvf49.js} +5 -5
- package/dist/chunks/{form-kdnw01cx.js → form-djtzg767.js} +22 -22
- package/dist/chunks/{form-8tntncgh.js → form-dkpjsqx5.js} +4 -4
- package/dist/chunks/{form-hj956mk8.js → form-dnk8746q.js} +82 -82
- package/dist/chunks/{form-7r8an6fe.js → form-dq8yjqh8.js} +11 -11
- package/dist/chunks/{form-jtxc186n.js → form-dszjwkzq.js} +22 -22
- package/dist/chunks/{form-s7ff7xj8.js → form-dx7w2ywp.js} +17 -17
- package/dist/chunks/{form-dkzzyy3p.js → form-e0nv7jq6.js} +2 -2
- package/dist/chunks/{form-emfjbeb6.js → form-e1gzcs88.js} +14 -14
- package/dist/chunks/{form-25drhth7.js → form-e1x810h0.js} +7 -7
- package/dist/chunks/{form-ftjkm5sx.js → form-e35tjqxj.js} +352 -352
- package/dist/chunks/{form-hk1bjgns.js → form-e4ah3ejq.js} +17 -17
- package/dist/chunks/{form-jmsbq57h.js → form-e8d4rb7h.js} +14 -14
- package/dist/chunks/{form-p1k8q8dm.js → form-egvq556q.js} +1 -1
- package/dist/chunks/{form-1e963z14.js → form-eh2pqcde.js} +11 -11
- package/dist/chunks/{form-62wce9zg.js → form-er2n76ej.js} +10 -10
- package/dist/chunks/{form-vhgc00n4.js → form-erfxr3zn.js} +13 -13
- package/dist/chunks/{form-tvcjrze5.js → form-erppfcw0.js} +13 -13
- package/dist/chunks/{form-w6yaejhr.js → form-f26b0hvj.js} +5 -5
- package/dist/chunks/{form-2bswbpgz.js → form-f4krjp8e.js} +3 -3
- package/dist/chunks/{form-mjsyx3br.js → form-f7295des.js} +8 -8
- package/dist/chunks/{form-zkw232et.js → form-f8vchc90.js} +17 -17
- package/dist/chunks/{form-kzwff88q.js → form-feknp5zt.js} +7 -7
- package/dist/chunks/{form-pyc3gczw.js → form-fnm34e0k.js} +3 -3
- package/dist/chunks/{form-cwp201bk.js → form-fqg2m573.js} +5 -5
- package/dist/chunks/{form-qhaaa42p.js → form-fqms6rvt.js} +11 -11
- package/dist/chunks/{form-zdx72ve0.js → form-fs4enjx7.js} +4 -4
- package/dist/chunks/{form-n9y0drfj.js → form-fyh94gg6.js} +4 -4
- package/dist/chunks/{form-ck4ctv5s.js → form-g3zv75fm.js} +72 -72
- package/dist/chunks/{form-bcpk48rq.js → form-g63xhc1v.js} +25 -25
- package/dist/chunks/{form-7nw90t2b.js → form-gatjdcn9.js} +11 -11
- package/dist/chunks/{form-4z6ejq83.js → form-gm32q8m8.js} +8 -8
- package/dist/chunks/{form-ev846520.js → form-gtr6916j.js} +17 -17
- package/dist/chunks/form-gv6z28ma.js +265 -0
- package/dist/chunks/{form-eam9ngfz.js → form-gvrjngtk.js} +3 -3
- package/dist/chunks/{form-qb4ptby6.js → form-h9xvjfqn.js} +9 -9
- package/dist/chunks/{form-gqmpcfh7.js → form-hdc2a5xz.js} +29 -29
- package/dist/chunks/{form-h71885tz.js → form-hfcy1fgt.js} +2 -2
- package/dist/chunks/{form-4m4g3ztp.js → form-hpj67xa1.js} +1 -1
- package/dist/chunks/{form-ftnnxnk0.js → form-htpmzgt8.js} +18 -18
- package/dist/chunks/{form-w6brw106.js → form-hzvjaebq.js} +8 -8
- package/dist/chunks/{form-yctgsgmg.js → form-jbygarch.js} +8 -8
- package/dist/chunks/form-jexvg71v.js +26 -0
- package/dist/chunks/{form-8ynnnc9x.js → form-jfk5jv3z.js} +11 -11
- package/dist/chunks/{form-g0md4990.js → form-jgkp38kk.js} +11 -11
- package/dist/chunks/{form-20bfbk4x.js → form-jp4e3d39.js} +29 -29
- package/dist/chunks/{form-f159ec1q.js → form-jv5cg5jm.js} +1 -1
- package/dist/chunks/{form-69emmher.js → form-jwj3xwfh.js} +16 -16
- package/dist/chunks/{form-hak3spcr.js → form-jz77ka2x.js} +39 -39
- package/dist/chunks/{form-etbjc7bm.js → form-k1fk9gak.js} +1 -1
- package/dist/chunks/{form-e5v1smj8.js → form-k1ngrrvr.js} +2 -2
- package/dist/chunks/{form-b9my7n24.js → form-k4efmry4.js} +12 -12
- package/dist/chunks/{form-r4wk1s47.js → form-k5daehwd.js} +5 -5
- package/dist/chunks/{form-kkb7zeg6.js → form-k732j073.js} +7 -7
- package/dist/chunks/{form-vt4gvjnz.js → form-kht0bw8h.js} +9 -9
- package/dist/chunks/{form-ryeap3sb.js → form-kmgb3tdh.js} +19 -19
- package/dist/chunks/{form-tprfp288.js → form-kmrmenc1.js} +33 -33
- package/dist/chunks/{form-94e33dpz.js → form-kn4zqwcq.js} +1 -1
- package/dist/chunks/{form-jsc3kmd1.js → form-ktvb9mw0.js} +4 -4
- package/dist/chunks/{form-dw25s8w6.js → form-kyd5p4kc.js} +6 -6
- package/dist/chunks/{form-xfp7ht4r.js → form-m96ddqb0.js} +4 -4
- package/dist/chunks/{form-qmh7vbk2.js → form-me0dhgxs.js} +4 -4
- package/dist/chunks/{form-0tazdck3.js → form-mmdz7z9c.js} +16 -16
- package/dist/chunks/{form-gyjcgtja.js → form-mmynath4.js} +11 -11
- package/dist/chunks/{form-7rem6gay.js → form-mvd4m6v7.js} +24 -24
- package/dist/chunks/{form-d05tpv5s.js → form-my4fcshq.js} +6 -6
- package/dist/chunks/{form-859wtsez.js → form-n1qp63sd.js} +11 -11
- package/dist/chunks/{form-3p5bwpjr.js → form-n3jp0npr.js} +1 -1
- package/dist/chunks/{form-pebd3fx8.js → form-n9fe6bxj.js} +14 -14
- package/dist/chunks/{form-w87f5jj8.js → form-na8r46wf.js} +8 -8
- package/dist/chunks/{form-bgvmpsbb.js → form-nc4w622v.js} +3 -3
- package/dist/chunks/{form-76t83kqq.js → form-nctbn4kr.js} +10 -10
- package/dist/chunks/{form-z0b3rp99.js → form-nrk34cdy.js} +7 -7
- package/dist/chunks/{form-zcmv5xke.js → form-nryt75sa.js} +12 -12
- package/dist/chunks/{form-kw6k3grm.js → form-nt927v07.js} +8 -8
- package/dist/chunks/{form-a4ww6fpm.js → form-nv9tsjma.js} +5 -5
- package/dist/chunks/{form-5g90fmrv.js → form-nw5eecxx.js} +1 -1
- package/dist/chunks/{form-g93tcs9e.js → form-nyerw5g8.js} +9 -9
- package/dist/chunks/{form-jr2msrb8.js → form-nzfywte0.js} +7 -7
- package/dist/chunks/{form-q52thbbg.js → form-p095z00d.js} +12 -12
- package/dist/chunks/{form-yqveydy6.js → form-p76me67c.js} +3 -3
- package/dist/chunks/{form-jz12c36j.js → form-p8pjvayg.js} +1 -1
- package/dist/chunks/{form-venxc8x9.js → form-pb9fhdan.js} +40 -40
- package/dist/chunks/{form-pg93aazs.js → form-pmxqycbb.js} +21 -21
- package/dist/chunks/{form-fg9p65nk.js → form-prq7xxp2.js} +4 -4
- package/dist/chunks/{form-229tvxdn.js → form-px7qpgcn.js} +3 -3
- package/dist/chunks/{form-xa63j88h.js → form-q26nxxn1.js} +3 -3
- package/dist/chunks/{form-0kwy0x33.js → form-q7y3b9g0.js} +3 -3
- package/dist/chunks/{form-t521gf9q.js → form-qa8wq1bx.js} +8 -8
- package/dist/chunks/{form-c0am625a.js → form-qf4h7f4y.js} +17 -17
- package/dist/chunks/{form-cv6amnmh.js → form-qfz6bxfd.js} +3 -3
- package/dist/chunks/{form-35rvwrkz.js → form-qmet73b8.js} +16 -16
- package/dist/chunks/{form-zh4pxxzd.js → form-qn3nex76.js} +10 -10
- package/dist/chunks/{form-njjkp6y7.js → form-qtcppqdt.js} +2 -2
- package/dist/chunks/{form-9ewsxdwp.js → form-qwcxdf4f.js} +31 -31
- package/dist/chunks/{form-jptpdyy1.js → form-r00x6xar.js} +17 -17
- package/dist/chunks/{form-cf3f13z6.js → form-r2jsee34.js} +7 -7
- package/dist/chunks/{form-w2eysc6j.js → form-r41sfy63.js} +4 -4
- package/dist/chunks/{form-v0kt3d5p.js → form-r6dpxxw1.js} +34 -34
- package/dist/chunks/{form-3adw4bt5.js → form-rp6t20zc.js} +7 -7
- package/dist/chunks/{form-vzxj76h2.js → form-s7a9cbah.js} +1 -1
- package/dist/chunks/{form-t9a5srby.js → form-s974wghs.js} +17 -17
- package/dist/chunks/{form-m7e4wn3x.js → form-sbmqae13.js} +37 -37
- package/dist/chunks/{form-2bsf0ydr.js → form-sjta0jj4.js} +24 -24
- package/dist/chunks/{form-vq89e0ys.js → form-sm06k54w.js} +3 -3
- package/dist/chunks/{form-nrkkswm5.js → form-spjexxm5.js} +4 -4
- package/dist/chunks/{form-watd9xyc.js → form-sqmtsnc0.js} +18 -18
- package/dist/chunks/{form-v5n206yn.js → form-sre2qj4k.js} +1 -1
- package/dist/chunks/{form-0xn3qqfa.js → form-srrmv808.js} +6 -6
- package/dist/chunks/{form-3n7gb103.js → form-sx2yhfq6.js} +2 -2
- package/dist/chunks/{form-557a5d2x.js → form-sx5cm6q5.js} +10 -10
- package/dist/chunks/{form-c6w2rarq.js → form-t1dy5emn.js} +7 -7
- package/dist/chunks/{form-0cfnayfa.js → form-t1pcdn2a.js} +12 -12
- package/dist/chunks/{form-nq1mg43n.js → form-t48jrnqq.js} +2 -2
- package/dist/chunks/{form-k1er6ch8.js → form-t5fmgy39.js} +8 -8
- package/dist/chunks/{form-a6a793ff.js → form-t7pxmh1n.js} +5 -5
- package/dist/chunks/{form-hqfcqev6.js → form-t7zcy0tw.js} +4 -4
- package/dist/chunks/{form-9c85yqf9.js → form-tb44hknz.js} +15 -15
- package/dist/chunks/{form-86n7trx6.js → form-tf9vm30n.js} +6 -6
- package/dist/chunks/{form-160yv0cs.js → form-tg1vr1qt.js} +7 -7
- package/dist/chunks/{form-z3x6r1x7.js → form-thtgp2wh.js} +43 -43
- package/dist/chunks/{form-mfnmbggz.js → form-trsw7mcc.js} +30 -30
- package/dist/chunks/{form-xngxe0eg.js → form-twm7m2ma.js} +15 -15
- package/dist/chunks/{form-04g95qft.js → form-v2abt96x.js} +13 -13
- package/dist/chunks/{form-rwpydztv.js → form-v8nw92bz.js} +42 -42
- package/dist/chunks/{form-p4ymwxb0.js → form-vbngttk8.js} +28 -28
- package/dist/chunks/{form-jtq42j1x.js → form-vedxzeza.js} +10 -10
- package/dist/chunks/{form-t4qpp180.js → form-vg4q9z25.js} +5 -5
- package/dist/chunks/{form-qh5g3qaw.js → form-vq0qa3sh.js} +7 -7
- package/dist/chunks/{form-v2x06h94.js → form-vrw307mm.js} +6 -6
- package/dist/chunks/{form-facq85rr.js → form-w5sfctq3.js} +5 -5
- package/dist/chunks/{form-wr3re1en.js → form-w687dnns.js} +3 -3
- package/dist/chunks/{form-za1h6cmh.js → form-w7jfwa7t.js} +3 -3
- package/dist/chunks/{form-ta8ftn0r.js → form-w99myxkr.js} +3 -3
- package/dist/chunks/{form-gz1tw812.js → form-w9gbtwvg.js} +13 -13
- package/dist/chunks/{form-qt3tdkb6.js → form-wd2p9ady.js} +10 -10
- package/dist/chunks/{form-5k4n6v37.js → form-weqc7sb9.js} +3 -3
- package/dist/chunks/{form-k3cx6fhe.js → form-wfdx5ztx.js} +3 -3
- package/dist/chunks/{form-055bjmn7.js → form-wm4c88gv.js} +11 -11
- package/dist/chunks/{form-kfb05gh2.js → form-xa7agtm7.js} +22 -22
- package/dist/chunks/{form-cnf1d5bk.js → form-xaynk9n5.js} +11 -11
- package/dist/chunks/{form-xz2tvs09.js → form-xbknznh5.js} +5 -5
- package/dist/chunks/{form-4pgz2acm.js → form-xcg3rj9z.js} +13 -13
- package/dist/chunks/{form-pc4htsrk.js → form-xdnd5bjh.js} +4 -4
- package/dist/chunks/{form-agbyznsk.js → form-xhkbh2m4.js} +13 -13
- package/dist/chunks/{form-xxschbft.js → form-xjr6c8m4.js} +3 -3
- package/dist/chunks/{form-63xym3gh.js → form-xmx7xj34.js} +3 -3
- package/dist/chunks/{form-9b6aqs4r.js → form-xt638z52.js} +27 -27
- package/dist/chunks/{form-n320gsn2.js → form-xvn8mnch.js} +3 -3
- package/dist/chunks/{form-br5fknxr.js → form-xypxsy7p.js} +10 -10
- package/dist/chunks/{form-19t5ypyb.js → form-y1knm9fe.js} +31 -31
- package/dist/chunks/{form-301m5qae.js → form-y3wh9epp.js} +26 -26
- package/dist/chunks/{form-zz290ktj.js → form-yes8byrk.js} +28 -28
- package/dist/chunks/{form-pw67yfsm.js → form-ygjw22g4.js} +7 -7
- package/dist/chunks/{form-fs8wbmmk.js → form-yhmtfygm.js} +3 -3
- package/dist/chunks/{form-v33b7p49.js → form-yje62p5e.js} +6 -6
- package/dist/chunks/{form-hv52nxmr.js → form-yse1kzrm.js} +77 -77
- package/dist/chunks/{form-hm5bfe36.js → form-ytj9msyr.js} +25 -25
- package/dist/chunks/{form-brwzaxyz.js → form-z36g0r9d.js} +9 -9
- package/dist/chunks/{form-ccj5vgdx.js → form-z7yksqyp.js} +39 -39
- package/dist/chunks/{form-25q2essn.js → form-zdewxzj9.js} +33 -33
- package/dist/chunks/{form-v7k8qgpv.js → form-zgq5ynfz.js} +6 -6
- package/dist/chunks/{form-0db0r454.js → form-zkf772vp.js} +19 -19
- package/dist/chunks/{form-by8ty0bx.js → form-zpdbqgja.js} +3 -3
- package/dist/codemode/fetch.js +106 -106
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +112 -112
- package/dist/command.js +71 -71
- package/dist/config/discovery.js +66 -66
- package/dist/config/integration.js +3 -3
- package/dist/config/normalize.js +80 -80
- package/dist/config/plugin/agent.js +95 -95
- package/dist/config/plugin/command.js +185 -185
- package/dist/config/plugin/compaction.js +127 -127
- package/dist/config/plugin/compatibility.js +110 -110
- package/dist/config/plugin/formatter.js +94 -94
- package/dist/config/plugin/image.js +93 -93
- package/dist/config/plugin/instruction.js +93 -93
- package/dist/config/plugin/location-watcher.js +93 -93
- package/dist/config/plugin/mcp.js +105 -105
- package/dist/config/plugin/policy.js +93 -93
- package/dist/config/plugin/provider.js +93 -93
- package/dist/config/plugin/reference.js +94 -94
- package/dist/config/plugin/shell.js +95 -95
- package/dist/config/plugin/skill-file.js +107 -107
- package/dist/config/plugin/skill.js +113 -113
- package/dist/config/plugin/snapshot.js +93 -93
- package/dist/config/plugin/source.js +96 -96
- package/dist/config/plugin/tool-output.js +93 -93
- package/dist/config/plugin/websearch.js +94 -94
- package/dist/config/plugin/worktree.js +94 -94
- package/dist/config.js +93 -93
- package/dist/console-access.js +3 -3
- package/dist/credential.js +64 -64
- package/dist/database/database.js +58 -58
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +57 -57
- package/dist/database/v1-migration.bun.js +21 -21
- package/dist/effect/app-node-builder.js +278 -278
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +73 -73
- package/dist/environment/index.js +74 -74
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +117 -117
- package/dist/file-mutation.js +75 -75
- package/dist/file-write.js +120 -120
- package/dist/filesystem/file-watch.js +13 -13
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +199 -199
- package/dist/filesystem/search.js +78 -78
- package/dist/filesystem/watcher.js +3 -3
- package/dist/filesystem.js +79 -79
- package/dist/flag.js +93 -93
- package/dist/form.js +65 -65
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +71 -71
- package/dist/generate.js +88 -88
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +74 -74
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +362 -362
- package/dist/instruction-discovery.js +75 -75
- package/dist/instructions/builtins.js +70 -70
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +68 -68
- package/dist/job/list.js +3 -3
- package/dist/job/recovery.js +2 -2
- package/dist/job.js +68 -68
- package/dist/kv.js +63 -63
- package/dist/location-activity.js +76 -76
- package/dist/location-lifecycle.js +112 -112
- package/dist/location-service-map.js +70 -70
- package/dist/location-services.js +360 -360
- package/dist/location.js +69 -69
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +52 -52
- package/dist/mcp/connection.js +73 -73
- package/dist/mcp/index.js +86 -86
- package/dist/mcp/instructions.js +141 -141
- package/dist/mcp/oauth.js +11 -11
- package/dist/mcp/pool.js +75 -75
- package/dist/mcp/stdio.js +114 -114
- package/dist/modal/models.js +74 -74
- package/dist/model-resolver.js +79 -79
- package/dist/model.js +79 -79
- package/dist/models-dev.js +90 -90
- package/dist/permission/saved.js +69 -69
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/index.js +78 -78
- package/dist/persistent-pty.js +62 -62
- package/dist/plugin/agent.js +66 -66
- package/dist/plugin/command.js +85 -85
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +192 -192
- package/dist/plugin/identity.js +4 -4
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +339 -339
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +79 -79
- package/dist/plugin/module.js +92 -92
- package/dist/plugin/optimize.js +3 -3
- package/dist/plugin/plan.js +108 -108
- package/dist/plugin/provider/amazon-bedrock.js +76 -76
- package/dist/plugin/provider/azure.js +97 -97
- package/dist/plugin/provider/chatgpt.js +95 -95
- package/dist/plugin/provider/claude-agent/aisdk.js +85 -85
- package/dist/plugin/provider/claude-agent/claude/query-options.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/sessions.js +10 -10
- package/dist/plugin/provider/claude-agent/claude/status.js +6 -6
- package/dist/plugin/provider/claude-agent/index.js +106 -106
- package/dist/plugin/provider/claude-agent/instructions.js +81 -81
- package/dist/plugin/provider/claude-agent/integration.js +82 -82
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +5 -5
- package/dist/plugin/provider/claude-agent/provider.js +79 -79
- package/dist/plugin/provider/claude-agent/session.js +80 -80
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +2 -2
- package/dist/plugin/provider/claude-agent/tools/server.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +94 -94
- package/dist/plugin/provider/cloudflare-workers-ai.js +94 -94
- package/dist/plugin/provider/configured.js +90 -90
- package/dist/plugin/provider/credential-settings.js +66 -66
- package/dist/plugin/provider/digitalocean.js +78 -78
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +78 -78
- package/dist/plugin/provider/google-vertex.js +91 -91
- package/dist/plugin/provider/llmgateway.js +67 -67
- package/dist/plugin/provider/lmstudio.js +100 -100
- package/dist/plugin/provider/local.js +97 -97
- package/dist/plugin/provider/modal.js +78 -78
- package/dist/plugin/provider/ollama.js +100 -100
- package/dist/plugin/provider/openai-context-caps.js +76 -76
- package/dist/plugin/provider/openai.js +97 -97
- package/dist/plugin/provider/opencode.js +116 -116
- package/dist/plugin/provider/openrouter.js +74 -74
- package/dist/plugin/provider/poe.js +67 -67
- package/dist/plugin/provider/refresh.js +65 -65
- package/dist/plugin/provider/sap-ai-core.js +73 -73
- package/dist/plugin/provider/snowflake-cortex.js +94 -94
- package/dist/plugin/provider/vllm.js +100 -100
- package/dist/plugin/provider/xai.js +74 -74
- package/dist/plugin/provider.js +180 -180
- package/dist/plugin/sdk.js +67 -67
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +111 -111
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +70 -70
- package/dist/plugin/vcs/hg.js +70 -70
- package/dist/plugin/verbosity.js +76 -76
- package/dist/plugin/warming.js +93 -93
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/provider.js +3 -3
- package/dist/plugin/websearch/tavily.js +5 -5
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +201 -201
- package/dist/project/schema.js +5 -5
- package/dist/project.js +70 -70
- package/dist/provider.js +78 -78
- package/dist/pty.js +84 -84
- package/dist/reference/instructions.js +74 -74
- package/dist/reference.js +73 -73
- package/dist/repository-cache.js +68 -68
- package/dist/ripgrep.js +77 -77
- package/dist/rpc.js +70 -70
- package/dist/schedule/check.js +196 -196
- package/dist/schedule.js +209 -209
- package/dist/session/background.js +3 -3
- package/dist/session/blob.js +93 -93
- package/dist/session/command.js +64 -64
- package/dist/session/compaction.js +130 -130
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +70 -70
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +122 -122
- package/dist/session/execution.js +124 -124
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +99 -99
- package/dist/session/inbox.js +106 -106
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +63 -63
- package/dist/session/instructions.js +106 -106
- package/dist/session/model-request.js +127 -127
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +127 -127
- package/dist/session/projector.js +104 -104
- package/dist/session/prompt.js +109 -109
- package/dist/session/revert.js +102 -102
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +204 -204
- package/dist/session/runner/model.js +82 -82
- package/dist/session/runner/publish-llm-event.js +111 -111
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +122 -122
- package/dist/session/runner/to-llm-message.js +100 -100
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +142 -142
- package/dist/session/shell.js +103 -103
- package/dist/session/skill.js +109 -109
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +105 -105
- package/dist/session/stored.js +3 -3
- package/dist/session/subagent-job.js +184 -184
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +122 -122
- package/dist/session/usage.js +3 -3
- package/dist/session.js +190 -190
- package/dist/shared-cache.js +5 -5
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +104 -104
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +113 -113
- package/dist/skill.js +116 -116
- package/dist/snapshot.js +75 -75
- package/dist/tool/mcp.js +140 -140
- package/dist/tool/plugin/artifact.js +183 -183
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/glob.js +127 -127
- package/dist/tool/plugin/grep.js +128 -128
- package/dist/tool/plugin/image-generate.js +193 -193
- package/dist/tool/plugin/mcp-resource.js +123 -123
- package/dist/tool/plugin/opencode.js +123 -123
- package/dist/tool/plugin/patch.js +127 -127
- package/dist/tool/plugin/question.js +110 -110
- package/dist/tool/plugin/read.js +129 -129
- package/dist/tool/plugin/schedule.js +200 -200
- package/dist/tool/plugin/shell.js +190 -190
- package/dist/tool/plugin/skill.js +117 -117
- package/dist/tool/plugin/subagent.js +191 -191
- package/dist/tool/plugin/todo.js +114 -114
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +117 -117
- package/dist/tool/plugin/write.js +127 -127
- package/dist/tool/read-filesystem.js +80 -80
- package/dist/tool/search.js +74 -74
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +114 -114
- package/dist/usage-limits.js +76 -76
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/migrate.js +74 -74
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +76 -76
- package/dist/vcs.js +71 -71
- package/dist/voice.js +77 -77
- package/dist/websearch.js +79 -79
- package/dist/wellknown/plugin.js +65 -65
- package/dist/wellknown.js +66 -66
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +72 -72
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/strategies.js +72 -72
- package/dist/worktree.js +82 -82
- package/package.json +9 -9
- package/dist/chunks/form-0pnkskv6.js +0 -26
- package/dist/chunks/form-k4zrb1y4.js +0 -265
- /package/dist/chunks/{form-y3rv9zjk.js → form-0aqjddd3.js} +0 -0
- /package/dist/chunks/{form-xd9kb7g5.js → form-22bgjs7d.js} +0 -0
- /package/dist/chunks/{form-n9st2s08.js → form-2mf0etys.js} +0 -0
- /package/dist/chunks/{form-80mg3ag8.js → form-775hqbnd.js} +0 -0
- /package/dist/chunks/{form-gveczaxv.js → form-8jrrxtbx.js} +0 -0
- /package/dist/chunks/{form-ze75qvmd.js → form-j9nxzz3g.js} +0 -0
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
RelativePath2
|
|
3
3
|
} from "./form-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./form-
|
|
5
|
+
Service88,
|
|
6
|
+
node92
|
|
7
|
+
} from "./form-xcg3rj9z.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./form-
|
|
9
|
+
Service47,
|
|
10
|
+
node50
|
|
11
|
+
} from "./form-tb44hknz.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
var exports_search2 = {};
|
|
22
22
|
__export(exports_search2, {
|
|
23
23
|
FileSystemSearch: () => exports_search2,
|
|
24
|
-
Service: () =>
|
|
25
|
-
configured: () =>
|
|
24
|
+
Service: () => Service46,
|
|
25
|
+
configured: () => configured6,
|
|
26
26
|
fffLayer: () => fffLayer2,
|
|
27
27
|
makeFffLayer: () => makeFffLayer2,
|
|
28
|
-
node: () =>
|
|
28
|
+
node: () => node49
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
31
31
|
import path from "path";
|
|
@@ -33,7 +33,7 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Scope } from "effect
|
|
|
33
33
|
import { Fff } from "#fff";
|
|
34
34
|
import fuzzysort from "fuzzysort";
|
|
35
35
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
36
|
-
class
|
|
36
|
+
class Service46 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
37
37
|
}
|
|
38
38
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
39
39
|
function emptyIndex() {
|
|
@@ -52,9 +52,9 @@ function search(index, input) {
|
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
var ripgrepLayer = Layer.effect(
|
|
56
|
-
const location = yield*
|
|
57
|
-
const ripgrep = yield*
|
|
55
|
+
var ripgrepLayer = Layer.effect(Service46, Effect.gen(function* () {
|
|
56
|
+
const location = yield* Service88;
|
|
57
|
+
const ripgrep = yield* Service47;
|
|
58
58
|
const scope = yield* Scope.Scope;
|
|
59
59
|
const clock = yield* Clock.Clock;
|
|
60
60
|
const home = isHome2(location.directory);
|
|
@@ -99,7 +99,7 @@ var ripgrepLayer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
99
99
|
Deferred.doneUnsafe(attempt, exit);
|
|
100
100
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
101
101
|
});
|
|
102
|
-
return
|
|
102
|
+
return Service46.of({
|
|
103
103
|
find: (input) => Effect.gen(function* () {
|
|
104
104
|
yield* refresh;
|
|
105
105
|
return search(index, input);
|
|
@@ -119,8 +119,8 @@ function createPicker(create, directory) {
|
|
|
119
119
|
return { ok: false, error };
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
var makeFffLayer2 = (create) => Layer.effect(
|
|
123
|
-
const location = yield*
|
|
122
|
+
var makeFffLayer2 = (create) => Layer.effect(Service46, Effect.gen(function* () {
|
|
123
|
+
const location = yield* Service88;
|
|
124
124
|
let state;
|
|
125
125
|
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
126
126
|
if (typeof state === "object" && state.result.ok)
|
|
@@ -152,7 +152,7 @@ var makeFffLayer2 = (create) => Layer.effect(Service53, Effect.gen(function* ()
|
|
|
152
152
|
}
|
|
153
153
|
return current.result.value;
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service46.of({
|
|
156
156
|
find: (input) => Effect.gen(function* () {
|
|
157
157
|
const finder = yield* picker;
|
|
158
158
|
if (!finder)
|
|
@@ -200,16 +200,16 @@ var makeFffLayer2 = (create) => Layer.effect(Service53, Effect.gen(function* ()
|
|
|
200
200
|
}));
|
|
201
201
|
var fffLayer2 = makeFffLayer2(Fff.create);
|
|
202
202
|
var layer = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
203
|
-
const location = yield*
|
|
203
|
+
const location = yield* Service88;
|
|
204
204
|
if (location.workspaceID)
|
|
205
205
|
return ripgrepLayer;
|
|
206
206
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
207
207
|
return ripgrepLayer;
|
|
208
208
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer;
|
|
209
209
|
}));
|
|
210
|
-
function
|
|
211
|
-
return makeLocationNode({ service:
|
|
210
|
+
function configured6(options) {
|
|
211
|
+
return makeLocationNode({ service: Service46, layer: layer(options), deps: [node92, node50] });
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var node49 = configured6();
|
|
214
214
|
|
|
215
|
-
export {
|
|
215
|
+
export { Service46, makeFffLayer2, fffLayer2, configured6, node49, exports_search2 };
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
ID17,
|
|
3
3
|
Service83,
|
|
4
4
|
node87
|
|
5
|
-
} from "./form-
|
|
5
|
+
} from "./form-nt927v07.js";
|
|
6
6
|
import {
|
|
7
7
|
ID16,
|
|
8
8
|
isAISDK2,
|
|
@@ -15,21 +15,21 @@ import {
|
|
|
15
15
|
encoding2,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./form-
|
|
18
|
+
Service81,
|
|
19
|
+
node85
|
|
20
|
+
} from "./form-s974wghs.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./form-
|
|
22
|
+
Service60,
|
|
23
|
+
node62
|
|
24
|
+
} from "./form-5czt8ehm.js";
|
|
25
25
|
import {
|
|
26
26
|
ID15,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref3,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Service80,
|
|
30
|
+
node84,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./form-
|
|
32
|
+
} from "./form-kmgb3tdh.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
35
|
} from "./form-9rqn6x4v.js";
|
|
@@ -41,7 +41,7 @@ __export(exports_model_resolver, {
|
|
|
41
41
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
42
42
|
ModelInitializationError: () => ModelInitializationError2,
|
|
43
43
|
ModelResolver: () => exports_model_resolver,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service59,
|
|
45
45
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
46
46
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
47
47
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
@@ -49,7 +49,7 @@ __export(exports_model_resolver, {
|
|
|
49
49
|
fromCatalogModel: () => fromCatalogModel2,
|
|
50
50
|
hasPackage: () => hasPackage2,
|
|
51
51
|
layer: () => layer22,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node61,
|
|
53
53
|
resolveModel: () => resolveModel3,
|
|
54
54
|
withVariant: () => withVariant2
|
|
55
55
|
});
|
|
@@ -129,7 +129,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
class
|
|
132
|
+
class Service59 extends Context.Service()("@opencode/ModelResolver") {
|
|
133
133
|
}
|
|
134
134
|
var withVariant2 = (model, variantID) => {
|
|
135
135
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -300,12 +300,12 @@ var causeMessage = (cause) => {
|
|
|
300
300
|
};
|
|
301
301
|
var resolveModel3 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
302
302
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
303
|
-
var layer22 = Layer.effect(
|
|
304
|
-
const providers = yield*
|
|
305
|
-
const models = yield*
|
|
303
|
+
var layer22 = Layer.effect(Service59, Effect.gen(function* () {
|
|
304
|
+
const providers = yield* Service81;
|
|
305
|
+
const models = yield* Service80;
|
|
306
306
|
const integrations = yield* Service83;
|
|
307
307
|
const npm = yield* Npm.Service;
|
|
308
|
-
const aisdk = yield*
|
|
308
|
+
const aisdk = yield* Service60;
|
|
309
309
|
const dependencies = {
|
|
310
310
|
loadPackage: (specifier) => loadPackage2(specifier, npm),
|
|
311
311
|
loadAISDK: (model) => aisdk.model(model)
|
|
@@ -348,7 +348,7 @@ var layer22 = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
348
348
|
const { credential, runtimeInfo } = yield* prepare(info, ref.variant);
|
|
349
349
|
return yield* fromCatalogMedia(runtimeInfo, is, credential, dependencies);
|
|
350
350
|
});
|
|
351
|
-
return
|
|
351
|
+
return Service59.of({
|
|
352
352
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
353
353
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
354
354
|
if (!selected)
|
|
@@ -407,10 +407,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
407
407
|
return false;
|
|
408
408
|
return API_KEY_AUTH_PACKAGES.has(name) || name.startsWith("@opencode/ai/providers/openai/") || name.startsWith("@opencode/ai/providers/azure/");
|
|
409
409
|
}
|
|
410
|
-
var
|
|
411
|
-
service:
|
|
410
|
+
var node61 = makeLocationNode({
|
|
411
|
+
service: Service59,
|
|
412
412
|
layer: layer22,
|
|
413
|
-
deps: [
|
|
413
|
+
deps: [node85, node84, node87, Npm.node, node62]
|
|
414
414
|
});
|
|
415
415
|
|
|
416
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
416
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service59, withVariant2, fromCatalogModel2, resolveModel3, hasPackage2, layer22, node61, exports_model_resolver };
|
|
@@ -9,7 +9,7 @@ __export(exports_goal, {
|
|
|
9
9
|
MAX_OBJECTIVE: () => MAX_OBJECTIVE2,
|
|
10
10
|
MAX_ROUNDS: () => MAX_ROUNDS2,
|
|
11
11
|
MAX_STALLS: () => MAX_STALLS2,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin30,
|
|
13
13
|
WAIT_LIMIT: () => WAIT_LIMIT2
|
|
14
14
|
});
|
|
15
15
|
import { isContextOverflowFailure, Message } from "@opencode/ai/effect";
|
|
@@ -102,7 +102,7 @@ var Verdict = Schema.Struct({
|
|
|
102
102
|
});
|
|
103
103
|
var decodeVerdict = Schema.decodeUnknownOption(Schema.fromJsonString(Verdict));
|
|
104
104
|
var USAGE = "Usage: /goal <objective> | pause | resume | clear";
|
|
105
|
-
var
|
|
105
|
+
var Plugin30 = define({
|
|
106
106
|
id: "opencode.goal",
|
|
107
107
|
effect: Effect.fn(function* (ctx) {
|
|
108
108
|
const read = Effect.fn("GoalPlugin.read")(function* (sessionID) {
|
|
@@ -407,4 +407,4 @@ function escape(text) {
|
|
|
407
407
|
return text.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">");
|
|
408
408
|
}
|
|
409
409
|
|
|
410
|
-
export { MAX_OBJECTIVE2, MAX_ROUNDS2, MAX_STALLS2, WAIT_LIMIT2,
|
|
410
|
+
export { MAX_OBJECTIVE2, MAX_ROUNDS2, MAX_STALLS2, WAIT_LIMIT2, Plugin30, exports_goal };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveModel2
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-7nqkf5r1.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./form-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_identity = {};
|
|
10
10
|
__export(exports_identity, {
|
|
11
11
|
IdentityPlugin: () => exports_identity,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin33,
|
|
13
13
|
identity: () => identity2
|
|
14
14
|
});
|
|
15
15
|
import { SystemPart } from "@opencode/ai/effect";
|
|
@@ -24,7 +24,7 @@ function identity2(model) {
|
|
|
24
24
|
].join(`
|
|
25
25
|
`);
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var Plugin33 = define({
|
|
28
28
|
id: "opencode.prompt.identity",
|
|
29
29
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
30
30
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -37,4 +37,4 @@ var Plugin49 = define({
|
|
|
37
37
|
})
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
export { identity2,
|
|
40
|
+
export { identity2, Plugin33, exports_identity };
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service41,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node44
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service41 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service41, Effect.gen(function* () {
|
|
48
48
|
const state = create4({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service41.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node44 = makeLocationNode({ service: Service41, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service41, node44, exports_image2 };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
+
Service90,
|
|
9
|
+
node94
|
|
10
|
+
} from "./form-hzvjaebq.js";
|
|
11
|
+
import {
|
|
8
12
|
Service88,
|
|
9
13
|
node92
|
|
10
|
-
} from "./form-
|
|
11
|
-
import {
|
|
12
|
-
Service86,
|
|
13
|
-
node90
|
|
14
|
-
} from "./form-4pgz2acm.js";
|
|
14
|
+
} from "./form-xcg3rj9z.js";
|
|
15
15
|
import {
|
|
16
16
|
create4
|
|
17
17
|
} from "./form-40y6dtc2.js";
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
26
|
ID: () => ID9,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service44,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node47,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
@@ -36,20 +36,20 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
37
|
import { ID as ID9 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service44 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service90;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service88;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create4({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const directory = yield* fs.realPath(location.directory).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
75
75
|
if (!FSUtil.contains(worktree, directory))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(path.relative(worktree, directory).replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -142,25 +142,25 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
142
142
|
for (const [file, snapshot] of input.files) {
|
|
143
143
|
const absolute = path.resolve(worktree, file);
|
|
144
144
|
if (!FSUtil.contains(worktree, absolute))
|
|
145
|
-
return yield* new
|
|
145
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
146
146
|
files.set(file, TreeID2.make(snapshot));
|
|
147
147
|
}
|
|
148
148
|
return files;
|
|
149
149
|
});
|
|
150
150
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
151
151
|
if (!enabled())
|
|
152
|
-
return yield* new
|
|
152
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
153
153
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
155
155
|
});
|
|
156
|
-
return
|
|
156
|
+
return Service44.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
157
157
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
158
|
-
var
|
|
159
|
-
service:
|
|
158
|
+
var node47 = makeLocationNode({
|
|
159
|
+
service: Service44,
|
|
160
160
|
layer,
|
|
161
|
-
deps: [FSUtil.node,
|
|
161
|
+
deps: [FSUtil.node, node94, Global.node, node92]
|
|
162
162
|
});
|
|
163
|
-
var
|
|
163
|
+
var noopLayer2 = Layer.succeed(Service44, Service44.of({
|
|
164
164
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
165
165
|
reload: () => Effect.void,
|
|
166
166
|
capture: () => Effect.undefined,
|
|
@@ -169,13 +169,13 @@ var noopLayer3 = Layer.succeed(Service55, Service55.of({
|
|
|
169
169
|
restore: () => Effect.void
|
|
170
170
|
}));
|
|
171
171
|
function failure(operation, cause) {
|
|
172
|
-
if (cause instanceof
|
|
172
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
173
173
|
return cause;
|
|
174
|
-
return new
|
|
174
|
+
return new Error3({
|
|
175
175
|
operation,
|
|
176
176
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
177
177
|
cause
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
export { ID9,
|
|
181
|
+
export { ID9, Error3, Service44, node47, noopLayer2, exports_snapshot2 };
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service57,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node59
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service57 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -121,7 +121,7 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
121
121
|
yield* fs.writeWithDirs(file, bytes).pipe(Effect.orDie);
|
|
122
122
|
return file;
|
|
123
123
|
});
|
|
124
|
-
return
|
|
124
|
+
return Service57.of({
|
|
125
125
|
transform: state.transform,
|
|
126
126
|
reload: state.reload,
|
|
127
127
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node59 = makeLocationNode({
|
|
143
|
+
service: Service57,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service57, node59, exports_tool_output2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
3
|
Service76
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-dszjwkzq.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./form-
|
|
6
|
+
Service44
|
|
7
|
+
} from "./form-139nhzzp.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./form-mm06edep.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin41
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin41 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
26
|
const config = yield* Service76;
|
|
27
|
-
const snapshot = yield*
|
|
27
|
+
const snapshot = yield* Service44;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin8 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin41, exports_snapshot };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service91,
|
|
3
3
|
node95
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-k1ngrrvr.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./form-rb9dy4dg.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./form-
|
|
12
|
+
} from "./form-sbmqae13.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./form-
|
|
14
|
+
Service88,
|
|
15
|
+
node92
|
|
16
|
+
} from "./form-xcg3rj9z.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create4
|
|
@@ -32,10 +32,10 @@ __export(exports_vcs, {
|
|
|
32
32
|
Info: () => Info7,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service19,
|
|
36
36
|
Untracked: () => Untracked2,
|
|
37
37
|
Vcs: () => exports_vcs,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node23
|
|
39
39
|
});
|
|
40
40
|
import path from "path";
|
|
41
41
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
@@ -55,11 +55,11 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
55
55
|
}) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
class
|
|
58
|
+
class Service19 extends Context.Service()("@opencode/Vcs") {
|
|
59
59
|
}
|
|
60
|
-
var layer = Layer.effect(
|
|
60
|
+
var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
61
61
|
const fs = yield* FSUtil.Service;
|
|
62
|
-
const location = yield*
|
|
62
|
+
const location = yield* Service88;
|
|
63
63
|
const bus = yield* Service91;
|
|
64
64
|
const root = yield* Effect.scope;
|
|
65
65
|
const fork = yield* FiberSet.makeRuntime();
|
|
@@ -130,7 +130,7 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
130
130
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
131
131
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return Service19.of({
|
|
134
134
|
transform: state.transform,
|
|
135
135
|
reload: state.reload,
|
|
136
136
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -189,10 +189,10 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}));
|
|
192
|
-
var
|
|
193
|
-
service:
|
|
192
|
+
var node23 = makeLocationNode({
|
|
193
|
+
service: Service19,
|
|
194
194
|
layer,
|
|
195
|
-
deps: [FSUtil.node,
|
|
195
|
+
deps: [FSUtil.node, node92, node95]
|
|
196
196
|
});
|
|
197
197
|
|
|
198
|
-
export { Base2, BranchList2, FileStatus2, Info7, Mode2, Untracked2, DiffError2, InitializeError2,
|
|
198
|
+
export { Base2, BranchList2, FileStatus2, Info7, Mode2, Untracked2, DiffError2, InitializeError2, Service19, node23, exports_vcs };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID16,
|
|
3
3
|
aisdk2
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-s974wghs.js";
|
|
5
5
|
import {
|
|
6
6
|
ID15,
|
|
7
7
|
VariantID2,
|
|
8
8
|
Family2,
|
|
9
|
-
|
|
10
|
-
} from "./form-
|
|
9
|
+
Info23
|
|
10
|
+
} from "./form-kmgb3tdh.js";
|
|
11
11
|
import {
|
|
12
12
|
connectionEnv2
|
|
13
|
-
} from "./form-
|
|
13
|
+
} from "./form-vrw307mm.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./form-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ __export(exports_provider2, {
|
|
|
22
22
|
ID: () => ID3,
|
|
23
23
|
PACKAGE: () => PACKAGE2,
|
|
24
24
|
connection: () => connection2,
|
|
25
|
-
register: () =>
|
|
25
|
+
register: () => register7
|
|
26
26
|
});
|
|
27
27
|
import { Effect, Option, Schema, Stream, SubscriptionRef } from "effect";
|
|
28
28
|
var ID3 = ID16.claudeAgent;
|
|
@@ -48,7 +48,7 @@ var PRICE_SOURCES = {
|
|
|
48
48
|
vertex: ID16.googleVertex,
|
|
49
49
|
foundry: ID16.azure
|
|
50
50
|
};
|
|
51
|
-
var
|
|
51
|
+
var register7 = Effect.fn("ClaudeProvider.register")(function* (ctx, status, io) {
|
|
52
52
|
const saved = Schema.decodeUnknownOption(Catalog)(yield* ctx.storage.get(CATALOG_KEY));
|
|
53
53
|
const current = { catalog: Option.getOrElse(saved, () => ({ models: [] })) };
|
|
54
54
|
yield* ctx.provider.transform((editor) => {
|
|
@@ -117,7 +117,7 @@ function priceSource(account, baseURL) {
|
|
|
117
117
|
return PRICE_SOURCES[account.apiProvider];
|
|
118
118
|
}
|
|
119
119
|
function toModel(model, prices) {
|
|
120
|
-
const defaults =
|
|
120
|
+
const defaults = Info23.default(ID3, ID15.make(model.id));
|
|
121
121
|
const id = (model.resolvedModel ?? model.id).replace(/\[1m\]$/, "");
|
|
122
122
|
const priced = prices?.get(id) ?? prices?.get(id.replace(/^anthropic\./, "")) ?? prices?.get(`${id}@default`);
|
|
123
123
|
return {
|
|
@@ -131,4 +131,4 @@ function toModel(model, prices) {
|
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export { ID3, PACKAGE2,
|
|
134
|
+
export { ID3, PACKAGE2, register7, connection2, exports_provider2 };
|