@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
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
Service92,
|
|
6
6
|
node96
|
|
7
|
-
} from "./form-
|
|
7
|
+
} from "./form-7ypjkqw5.js";
|
|
8
8
|
import {
|
|
9
9
|
Service91,
|
|
10
10
|
node95
|
|
11
|
-
} from "./form-
|
|
11
|
+
} from "./form-k1ngrrvr.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./form-
|
|
13
|
+
Service90,
|
|
14
|
+
node94
|
|
15
|
+
} from "./form-hzvjaebq.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID22,
|
|
18
18
|
Current3,
|
|
19
19
|
Info32,
|
|
20
20
|
UpdateInput5,
|
|
21
|
-
|
|
21
|
+
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./form-
|
|
23
|
+
} from "./form-963hk181.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
@@ -40,15 +40,15 @@ var exports_project = {};
|
|
|
40
40
|
__export(exports_project, {
|
|
41
41
|
ACTIVATE_INTERVAL: () => ACTIVATE_INTERVAL2,
|
|
42
42
|
Current: () => Current2,
|
|
43
|
-
ID: () =>
|
|
43
|
+
ID: () => ID21,
|
|
44
44
|
Info: () => Info31,
|
|
45
45
|
NotFoundError: () => NotFoundError14,
|
|
46
46
|
Project: () => exports_project,
|
|
47
|
-
Service: () =>
|
|
47
|
+
Service: () => Service89,
|
|
48
48
|
UpdateInput: () => UpdateInput4,
|
|
49
49
|
Vcs: () => Vcs2,
|
|
50
50
|
configured: () => configured13,
|
|
51
|
-
node: () =>
|
|
51
|
+
node: () => node93,
|
|
52
52
|
root: () => root2,
|
|
53
53
|
sweepNode: () => sweepNode2
|
|
54
54
|
});
|
|
@@ -61,14 +61,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
61
61
|
import { AppProcess } from "@opencode/util/process";
|
|
62
62
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
63
63
|
import { Hash } from "@opencode/util/hash";
|
|
64
|
-
var
|
|
64
|
+
var ID21 = ID22;
|
|
65
65
|
var Vcs2 = Vcs3;
|
|
66
66
|
var Current2 = Current3;
|
|
67
67
|
var Info31 = Info32;
|
|
68
68
|
var UpdateInput4 = UpdateInput5;
|
|
69
69
|
|
|
70
70
|
class NotFoundError14 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
71
|
-
projectID:
|
|
71
|
+
projectID: ID21
|
|
72
72
|
}) {
|
|
73
73
|
}
|
|
74
74
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -87,7 +87,7 @@ var ACTIVATE_INTERVAL2 = 60000;
|
|
|
87
87
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
88
88
|
var Now = Context.Reference("@opencode/Project/Now", { defaultValue: () => Date.now });
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class Service89 extends Context.Service()("@opencode/Project") {
|
|
91
91
|
}
|
|
92
92
|
function fromRow(row) {
|
|
93
93
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -111,10 +111,10 @@ function fromRow(row) {
|
|
|
111
111
|
sandboxes: row.sandboxes
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
var layer = Layer.effect(
|
|
114
|
+
var layer = Layer.effect(Service89, Effect.gen(function* () {
|
|
115
115
|
const now = yield* Now;
|
|
116
116
|
const fs = yield* FSUtil.Service;
|
|
117
|
-
const git = yield*
|
|
117
|
+
const git = yield* Service90;
|
|
118
118
|
const proc = yield* AppProcess.Service;
|
|
119
119
|
const bus = yield* Service91;
|
|
120
120
|
const db = (yield* Service92).db;
|
|
@@ -127,8 +127,8 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
127
127
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
128
128
|
const changed = replaced ?? unarchived;
|
|
129
129
|
if (changed)
|
|
130
|
-
yield* bus.publish(
|
|
131
|
-
yield* refresh2(fs, db, project.id).pipe(Effect.flatMap((row) => row ? bus.publish(
|
|
130
|
+
yield* bus.publish(Event21.Updated, fromRow(changed));
|
|
131
|
+
yield* refresh2(fs, db, project.id).pipe(Effect.flatMap((row) => row ? bus.publish(Event21.Updated, fromRow(row)) : Effect.void), Effect.ignoreCause, Effect.forkIn(scope));
|
|
132
132
|
if (!project.vcs)
|
|
133
133
|
return project;
|
|
134
134
|
const directories = [
|
|
@@ -164,7 +164,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
164
164
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
165
165
|
projectID: item.projectID,
|
|
166
166
|
directory: item.directory,
|
|
167
|
-
previous: project.previous ??
|
|
167
|
+
previous: project.previous ?? ID21.global,
|
|
168
168
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
169
169
|
}, {
|
|
170
170
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -189,14 +189,14 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
189
189
|
if (!row)
|
|
190
190
|
return yield* new NotFoundError14({ projectID: input.projectID });
|
|
191
191
|
const project = fromRow(row);
|
|
192
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event21.Updated, project);
|
|
193
193
|
return project;
|
|
194
194
|
});
|
|
195
195
|
const activated = new Map;
|
|
196
196
|
const persistActivate = Effect.fn("Project.activate")(function* (projectID, timestamp) {
|
|
197
197
|
const row = yield* db.update(ProjectTable2).set({ time_active: timestamp, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
198
198
|
if (row)
|
|
199
|
-
yield* bus.publish(
|
|
199
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
200
200
|
});
|
|
201
201
|
const activate = (projectID, options) => Effect.suspend(() => {
|
|
202
202
|
const timestamp = now();
|
|
@@ -208,7 +208,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
208
208
|
return options?.forkIn ? write.pipe(Effect.forkIn(options.forkIn), Effect.asVoid) : write;
|
|
209
209
|
});
|
|
210
210
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
211
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
211
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID21.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
212
212
|
return;
|
|
213
213
|
}));
|
|
214
214
|
});
|
|
@@ -219,7 +219,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
219
219
|
const normalized = url(origin);
|
|
220
220
|
if (!normalized)
|
|
221
221
|
return;
|
|
222
|
-
return
|
|
222
|
+
return ID21.make(Hash.fast(`git-remote:${normalized}`));
|
|
223
223
|
});
|
|
224
224
|
function url(input) {
|
|
225
225
|
const value = input.trim();
|
|
@@ -244,7 +244,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
244
244
|
}
|
|
245
245
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
246
246
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
247
|
-
return root ?
|
|
247
|
+
return root ? ID21.make(root) : undefined;
|
|
248
248
|
});
|
|
249
249
|
const gitDiscover = Effect.fnUntraced(function* (dotGit) {
|
|
250
250
|
const repo = yield* git.repo.discover(AbsolutePath2.make(path.dirname(dotGit)));
|
|
@@ -260,7 +260,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
260
260
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), fallback(repo.worktree));
|
|
261
261
|
const resolved = {
|
|
262
262
|
previous,
|
|
263
|
-
id: id ??
|
|
263
|
+
id: id ?? ID21.global,
|
|
264
264
|
directory: repo.worktree,
|
|
265
265
|
canonical,
|
|
266
266
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -285,7 +285,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
285
285
|
return;
|
|
286
286
|
const node = result.stdout.toString("utf8").split(`
|
|
287
287
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
288
|
-
return node ?
|
|
288
|
+
return node ? ID21.make(node) : undefined;
|
|
289
289
|
});
|
|
290
290
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
291
291
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -293,7 +293,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
293
293
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
294
294
|
return {
|
|
295
295
|
previous,
|
|
296
|
-
id: id ??
|
|
296
|
+
id: id ?? ID21.global,
|
|
297
297
|
directory: worktree,
|
|
298
298
|
vcs: { type: "hg", store: dotHg }
|
|
299
299
|
};
|
|
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
return yield* save({
|
|
323
|
-
id:
|
|
323
|
+
id: ID21.make(Hash.fast(`directory:${directory}`)),
|
|
324
324
|
directory,
|
|
325
325
|
canonical: directory,
|
|
326
326
|
vcs: undefined
|
|
@@ -329,7 +329,7 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
329
329
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
330
330
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
331
331
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
332
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
332
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID21.global))).all().pipe(Effect.orDie);
|
|
333
333
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
334
334
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
335
335
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -342,26 +342,26 @@ var layer = Layer.effect(Service87, Effect.gen(function* () {
|
|
|
342
342
|
return;
|
|
343
343
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
344
344
|
if (row)
|
|
345
|
-
yield* bus.publish(
|
|
345
|
+
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
346
346
|
}), { concurrency: 8, discard: true });
|
|
347
347
|
});
|
|
348
|
-
return
|
|
348
|
+
return Service89.of({ list, update, activate, resolve, sweep });
|
|
349
349
|
}));
|
|
350
350
|
function configured13(options) {
|
|
351
351
|
return makeGlobalNode({
|
|
352
|
-
service:
|
|
352
|
+
service: Service89,
|
|
353
353
|
layer: options?.now ? layer.pipe(Layer.provide(Layer.succeed(Now, options.now))) : layer,
|
|
354
|
-
deps: [node95, node96, FSUtil.node,
|
|
354
|
+
deps: [node95, node96, FSUtil.node, node94, AppProcess.node]
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
var
|
|
357
|
+
var node93 = configured13();
|
|
358
358
|
var sweepNode2 = makeGlobalNode({
|
|
359
359
|
name: "project-archive-sweep",
|
|
360
360
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
361
|
-
const project = yield*
|
|
361
|
+
const project = yield* Service89;
|
|
362
362
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
363
363
|
})),
|
|
364
|
-
deps: [
|
|
364
|
+
deps: [node93]
|
|
365
365
|
});
|
|
366
366
|
|
|
367
|
-
export {
|
|
367
|
+
export { ID21, Vcs2, Current2, Info31, UpdateInput4, NotFoundError14, root2, ACTIVATE_INTERVAL2, Service89, configured13, node93, sweepNode2, exports_project };
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
Service92,
|
|
9
9
|
node96
|
|
10
|
-
} from "./form-
|
|
10
|
+
} from "./form-7ypjkqw5.js";
|
|
11
11
|
import {
|
|
12
12
|
makeUnsafe2
|
|
13
|
-
} from "./form-
|
|
13
|
+
} from "./form-5whx36p1.js";
|
|
14
14
|
import {
|
|
15
15
|
Binding2,
|
|
16
16
|
RegistryService2,
|
|
17
|
-
|
|
18
|
-
} from "./form-
|
|
17
|
+
node79
|
|
18
|
+
} from "./form-fqg2m573.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkspaceTable2
|
|
21
21
|
} from "./form-faypxj3z.js";
|
|
@@ -27,13 +27,13 @@ import {
|
|
|
27
27
|
var exports_workspace = {};
|
|
28
28
|
__export(exports_workspace, {
|
|
29
29
|
CreateConflict: () => CreateConflict2,
|
|
30
|
-
ID: () =>
|
|
31
|
-
Info: () =>
|
|
30
|
+
ID: () => ID14,
|
|
31
|
+
Info: () => Info17,
|
|
32
32
|
NotFound: () => NotFound2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service75,
|
|
34
34
|
Workspace: () => exports_workspace,
|
|
35
|
-
configured: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
configured: () => configured9,
|
|
36
|
+
node: () => node78
|
|
37
37
|
});
|
|
38
38
|
import { Workspace } from "@opencode/schema/workspace";
|
|
39
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,10 +41,10 @@ import { eq } from "drizzle-orm";
|
|
|
41
41
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
42
42
|
import { systemError } from "effect/PlatformError";
|
|
43
43
|
import { make } from "effect/process/ChildProcessSpawner";
|
|
44
|
-
var
|
|
44
|
+
var ID14 = Workspace.ID;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info17 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID14,
|
|
48
48
|
provider: Schema.String,
|
|
49
49
|
binding: Binding2,
|
|
50
50
|
createdAt: Schema.Number,
|
|
@@ -52,24 +52,24 @@ class Info14 extends Schema.Class("Workspace.Info")({
|
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
55
|
+
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID14 }) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
59
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID14,
|
|
60
60
|
provider: Schema.String,
|
|
61
61
|
existingProvider: Schema.String
|
|
62
62
|
}) {
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service75 extends Context.Service()("@opencode/Workspace") {
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
67
|
+
var configured9 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service75,
|
|
69
69
|
layer: layer(options),
|
|
70
|
-
deps: [node96,
|
|
70
|
+
deps: [node96, node79]
|
|
71
71
|
});
|
|
72
|
-
var layer = (options) => Layer.effect(
|
|
72
|
+
var layer = (options) => Layer.effect(Service75, Effect.gen(function* () {
|
|
73
73
|
const db = (yield* Service92).db;
|
|
74
74
|
const registry = yield* RegistryService2;
|
|
75
75
|
const lifetime = yield* Scope.Scope;
|
|
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service60, Effect.gen(function* () {
|
|
|
86
86
|
return row;
|
|
87
87
|
});
|
|
88
88
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
89
|
-
const info = (row, binding) => new
|
|
89
|
+
const info = (row, binding) => new Info17({
|
|
90
90
|
id: row.id,
|
|
91
91
|
provider: row.provider,
|
|
92
92
|
binding,
|
|
@@ -161,9 +161,9 @@ var layer = (options) => Layer.effect(Service60, Effect.gen(function* () {
|
|
|
161
161
|
yield* Scope.close(connection.scope, Exit.void);
|
|
162
162
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
163
163
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
164
|
-
return
|
|
164
|
+
return Service75.of({
|
|
165
165
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
166
|
-
const workspaceID = input.id ??
|
|
166
|
+
const workspaceID = input.id ?? ID14.create();
|
|
167
167
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
168
168
|
if (existing) {
|
|
169
169
|
if (existing.provider === input.provider)
|
|
@@ -239,6 +239,6 @@ var layer = (options) => Layer.effect(Service60, Effect.gen(function* () {
|
|
|
239
239
|
})
|
|
240
240
|
});
|
|
241
241
|
}));
|
|
242
|
-
var
|
|
242
|
+
var node78 = configured9();
|
|
243
243
|
|
|
244
|
-
export {
|
|
244
|
+
export { ID14, Info17, NotFound2, CreateConflict2, Service75, configured9, node78, exports_workspace };
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
var exports_instructions4 = {};
|
|
18
18
|
__export(exports_instructions4, {
|
|
19
19
|
CodeModeInstructions: () => exports_instructions4,
|
|
20
|
-
make: () =>
|
|
20
|
+
make: () => make24,
|
|
21
21
|
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
@@ -111,7 +111,7 @@ ${render2(current)}`;
|
|
|
111
111
|
}
|
|
112
112
|
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make24 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize3(inventory);
|
|
116
116
|
return make31({
|
|
117
117
|
key,
|
|
@@ -125,4 +125,4 @@ var make23 = (inventory) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { render2, update3,
|
|
128
|
+
export { render2, update3, make24, exports_instructions4 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-9v17a1m3.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/ollama.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -34,7 +34,7 @@ var ShowResponse = Schema.Struct({
|
|
|
34
34
|
model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
|
|
35
35
|
});
|
|
36
36
|
var shows = new Map;
|
|
37
|
-
var
|
|
37
|
+
var make16 = createLocalProviderPlugin2({
|
|
38
38
|
id: "opencode.provider.ollama",
|
|
39
39
|
providerID: "ollama",
|
|
40
40
|
name: "Ollama",
|
|
@@ -67,6 +67,6 @@ var make19 = createLocalProviderPlugin2({
|
|
|
67
67
|
context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0]
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
var OllamaPlugin2 =
|
|
70
|
+
var OllamaPlugin2 = make16();
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { make16, OllamaPlugin2 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service92,
|
|
3
3
|
node96
|
|
4
|
-
} from "./form-
|
|
4
|
+
} from "./form-7ypjkqw5.js";
|
|
5
5
|
import {
|
|
6
6
|
Service91,
|
|
7
7
|
node95
|
|
8
|
-
} from "./form-
|
|
8
|
+
} from "./form-k1ngrrvr.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./form-
|
|
10
|
+
Service88,
|
|
11
|
+
node92
|
|
12
|
+
} from "./form-xcg3rj9z.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
15
|
} from "./form-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
synthetics2
|
|
18
|
-
} from "./form-
|
|
18
|
+
} from "./form-a9vajmgg.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
21
|
} from "./form-9rqn6x4v.js";
|
|
22
22
|
|
|
23
23
|
// src/session/instructions.ts
|
|
24
|
-
var
|
|
25
|
-
__export(
|
|
26
|
-
Service: () =>
|
|
27
|
-
SessionInstructions: () =>
|
|
28
|
-
node: () =>
|
|
24
|
+
var exports_instructions2 = {};
|
|
25
|
+
__export(exports_instructions2, {
|
|
26
|
+
Service: () => Service6,
|
|
27
|
+
SessionInstructions: () => exports_instructions2,
|
|
28
|
+
node: () => node8
|
|
29
29
|
});
|
|
30
30
|
import { relative } from "path";
|
|
31
31
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -35,13 +35,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
35
35
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service6 extends Context.Service()("@opencode/SessionInstructions") {
|
|
39
39
|
}
|
|
40
|
-
var layer = Layer.effect(
|
|
40
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
41
41
|
const bus = yield* Service91;
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const db = (yield* Service92).db;
|
|
44
|
-
const location = yield*
|
|
44
|
+
const location = yield* Service88;
|
|
45
45
|
const root = yield* fs.resolve(location.project.directory);
|
|
46
46
|
const inFlight = yield* Ref.make(new Map);
|
|
47
47
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -87,7 +87,7 @@ ${file.content}`).join(`
|
|
|
87
87
|
return next;
|
|
88
88
|
})));
|
|
89
89
|
});
|
|
90
|
-
return
|
|
90
|
+
return Service6.of({ load });
|
|
91
91
|
}));
|
|
92
92
|
function previouslyInjected(db, sessionID) {
|
|
93
93
|
return Effect.gen(function* () {
|
|
@@ -98,10 +98,10 @@ function previouslyInjected(db, sessionID) {
|
|
|
98
98
|
function describePath(root, path) {
|
|
99
99
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
100
100
|
}
|
|
101
|
-
var
|
|
101
|
+
var node8 = makeLocationNode({
|
|
102
102
|
name: "session-instructions",
|
|
103
103
|
layer,
|
|
104
|
-
deps: [node95, node96, FSUtil.node,
|
|
104
|
+
deps: [node95, node96, FSUtil.node, node92]
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
export {
|
|
107
|
+
export { Service6, node8, exports_instructions2 };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-8d70nmw5.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
6
|
Service76
|
|
7
|
-
} from "./form-
|
|
7
|
+
} from "./form-dszjwkzq.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./form-9rqn6x4v.js";
|
|
@@ -16,7 +16,7 @@ __export(exports_flag, {
|
|
|
16
16
|
Overrides: () => Overrides2,
|
|
17
17
|
all: () => all2,
|
|
18
18
|
enabled: () => enabled3,
|
|
19
|
-
resolve: () =>
|
|
19
|
+
resolve: () => resolve3,
|
|
20
20
|
resolver: () => resolver2
|
|
21
21
|
});
|
|
22
22
|
import { Context, Effect, Option, Record } from "effect";
|
|
@@ -25,7 +25,7 @@ var Overrides2 = Context.Reference("@opencode/Flag/Overrides", {
|
|
|
25
25
|
defaultValue: () => process.env.OPENCODE_FLAGS
|
|
26
26
|
});
|
|
27
27
|
var onByDefault = (channel) => channel === "local" || channel === "dev";
|
|
28
|
-
function
|
|
28
|
+
function resolve3(input) {
|
|
29
29
|
const env = new Map((input.overrides ?? "").split(",").map((item) => item.trim()).filter(Boolean).map((item) => item.startsWith("-") ? [item.slice(1), false] : [item, true]));
|
|
30
30
|
const all = env.get(ConfigFlag.wildcard) === true;
|
|
31
31
|
const experimental = latest2(input.entries, "experimental");
|
|
@@ -40,7 +40,7 @@ function resolve4(input) {
|
|
|
40
40
|
var resolver2 = Effect.gen(function* () {
|
|
41
41
|
const app = yield* Metadata2;
|
|
42
42
|
const overrides = yield* Overrides2;
|
|
43
|
-
return (entries) =>
|
|
43
|
+
return (entries) => resolve3({ entries, channel: app.channel, overrides });
|
|
44
44
|
});
|
|
45
45
|
var all2 = Effect.gen(function* () {
|
|
46
46
|
const config = yield* Effect.serviceOption(Service76);
|
|
@@ -50,4 +50,4 @@ var all2 = Effect.gen(function* () {
|
|
|
50
50
|
});
|
|
51
51
|
var enabled3 = (key) => all2.pipe(Effect.map((flags) => flags[key].enabled));
|
|
52
52
|
|
|
53
|
-
export { Overrides2,
|
|
53
|
+
export { Overrides2, resolve3, resolver2, all2, enabled3, exports_flag };
|
|
@@ -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
|
+
Service87
|
|
7
|
+
} from "./form-qmet73b8.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./form-mm06edep.js";
|
|
@@ -13,18 +13,18 @@ import {
|
|
|
13
13
|
} from "./form-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ConfigShellPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_shell2 = {};
|
|
17
|
+
__export(exports_shell2, {
|
|
18
|
+
ConfigShellPlugin: () => exports_shell2,
|
|
19
|
+
Plugin: () => Plugin49
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin49 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
26
|
const config = yield* Service76;
|
|
27
|
-
const shell = yield*
|
|
27
|
+
const shell = yield* Service87;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin9 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin49, exports_shell2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./form-
|
|
3
|
+
} from "./form-5whx36p1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./form-
|
|
5
|
+
Service68
|
|
6
|
+
} from "./form-7hqvmvs7.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./form-9rqn6x4v.js";
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
var exports_connection = {};
|
|
13
13
|
__export(exports_connection, {
|
|
14
14
|
McpConnection: () => exports_connection,
|
|
15
|
-
make: () =>
|
|
15
|
+
make: () => make26
|
|
16
16
|
});
|
|
17
17
|
import { Cause, Effect, Exit, Scope } from "effect";
|
|
18
18
|
import { FetchHttpClient } from "effect/http";
|
|
19
19
|
var endpointLoads = makeUnsafe2();
|
|
20
|
-
function
|
|
20
|
+
function make26(input) {
|
|
21
21
|
const state = {};
|
|
22
22
|
const whenLive = (client) => (effect) => input.callbacks(Effect.suspend(() => state.client === client ? effect : Effect.void).pipe(input.lock, Effect.ignore));
|
|
23
23
|
const refreshTools = (client) => client.tools().pipe(Effect.map((tools) => {
|
|
@@ -59,7 +59,7 @@ function make24(input) {
|
|
|
59
59
|
elicitation: input.elicitation,
|
|
60
60
|
clientInfo: input.clientInfo,
|
|
61
61
|
roots: !input.shared
|
|
62
|
-
}).pipe(Effect.flatMap((client) => input.shared && !client.modern ? Effect.succeed({ client }) : client.tools().pipe(Effect.map((tools) => ({ client, tools })))), Effect.provideService(
|
|
62
|
+
}).pipe(Effect.flatMap((client) => input.shared && !client.modern ? Effect.succeed({ client }) : client.tools().pipe(Effect.map((tools) => ({ client, tools })))), Effect.provideService(Service68, input.environment), Effect.provideService(FetchHttpClient.Fetch, input.fetch), Scope.provide(scope), (effect) => config.type === "remote" && !input.shared ? endpointLoads.withLock(config.url)(effect) : effect, Effect.exit);
|
|
63
63
|
if (Exit.isSuccess(result) && !result.value.tools) {
|
|
64
64
|
yield* Scope.close(scope, Exit.void);
|
|
65
65
|
state.scope = undefined;
|
|
@@ -112,4 +112,4 @@ function make24(input) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
export {
|
|
115
|
+
export { make26, exports_connection };
|