@opencode/core 0.0.0-dev-20840 → 0.0.0-dev-20841
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 +65 -65
- package/dist/aisdk-native.js +65 -65
- package/dist/aisdk.js +70 -70
- package/dist/app.js +9 -9
- package/dist/bus.js +55 -55
- package/dist/chunks/{instruction-discovery-hvzsqqsx.js → instruction-discovery-048wpaqz.js} +2 -2
- package/dist/chunks/{instruction-discovery-px7pepp5.js → instruction-discovery-0bs9zzzx.js} +10 -10
- package/dist/chunks/{instruction-discovery-6j2hn9e4.js → instruction-discovery-0cz3jc0p.js} +7 -7
- package/dist/chunks/instruction-discovery-0ef80a9n.js +513 -0
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → instruction-discovery-0j77ygfz.js} +4 -4
- package/dist/chunks/{instruction-discovery-dnk2bync.js → instruction-discovery-0qwsa8cf.js} +20 -20
- package/dist/chunks/{instruction-discovery-8ef3w3za.js → instruction-discovery-171zjyze.js} +22 -22
- package/dist/chunks/{instruction-discovery-6d646j32.js → instruction-discovery-18tb8vc6.js} +21 -21
- package/dist/chunks/{instruction-discovery-waskdk5r.js → instruction-discovery-1j6m29mr.js} +8 -8
- package/dist/chunks/{instruction-discovery-0eyn26b9.js → instruction-discovery-1j9vsfxy.js} +16 -16
- package/dist/chunks/{instruction-discovery-jws6fkes.js → instruction-discovery-1p07q0wb.js} +5 -5
- package/dist/chunks/{instruction-discovery-d15x96cv.js → instruction-discovery-1qs5jxd8.js} +10 -10
- package/dist/chunks/{instruction-discovery-8mk801n2.js → instruction-discovery-1sc6p60b.js} +6 -6
- package/dist/chunks/{instruction-discovery-tn7xc115.js → instruction-discovery-1th27d95.js} +15 -15
- package/dist/chunks/{instruction-discovery-rvs6eq9b.js → instruction-discovery-204e7tx6.js} +10 -10
- package/dist/chunks/{instruction-discovery-cdrvmw9m.js → instruction-discovery-26n2nh92.js} +1 -1
- package/dist/chunks/{instruction-discovery-m2tcdgpb.js → instruction-discovery-2c7hjkzv.js} +3 -3
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → instruction-discovery-2ccvkpx1.js} +1 -1
- package/dist/chunks/{instruction-discovery-40x1fydz.js → instruction-discovery-2ewrd21j.js} +9 -9
- package/dist/chunks/{instruction-discovery-b9yx8y6b.js → instruction-discovery-2hqksm5k.js} +1 -1
- package/dist/chunks/{instruction-discovery-nfakef9v.js → instruction-discovery-2j1vbg91.js} +30 -30
- package/dist/chunks/{instruction-discovery-weg71117.js → instruction-discovery-2jb6nwe1.js} +3 -3
- package/dist/chunks/{instruction-discovery-9z5x99zr.js → instruction-discovery-2jtaszgg.js} +6 -6
- package/dist/chunks/{instruction-discovery-7dqw4kz8.js → instruction-discovery-2k8khapm.js} +4 -4
- package/dist/chunks/{instruction-discovery-kqx1b4hy.js → instruction-discovery-2ryng5r3.js} +1 -1
- package/dist/chunks/{instruction-discovery-dbz40acx.js → instruction-discovery-2san2fa0.js} +17 -17
- package/dist/chunks/{instruction-discovery-76tqa8kn.js → instruction-discovery-2vr7dket.js} +4 -4
- package/dist/chunks/{instruction-discovery-gc5gqqes.js → instruction-discovery-350x23wf.js} +7 -7
- package/dist/chunks/{instruction-discovery-rn9rfv4g.js → instruction-discovery-38mem431.js} +27 -27
- package/dist/chunks/{instruction-discovery-f14emht6.js → instruction-discovery-3dytr8s2.js} +14 -14
- package/dist/chunks/{instruction-discovery-4e8vs6eh.js → instruction-discovery-4a0nv7mx.js} +7 -7
- package/dist/chunks/{instruction-discovery-kq88brb5.js → instruction-discovery-4r59zyn6.js} +19 -19
- package/dist/chunks/{instruction-discovery-r01m64ez.js → instruction-discovery-4swz1dz7.js} +8 -8
- package/dist/chunks/{instruction-discovery-javgrsyd.js → instruction-discovery-4w7gm2tt.js} +15 -15
- package/dist/chunks/{instruction-discovery-g6yfr6ja.js → instruction-discovery-4xpgt2w9.js} +3 -3
- package/dist/chunks/{instruction-discovery-5p9mjmqe.js → instruction-discovery-548fqp7q.js} +2 -2
- package/dist/chunks/{instruction-discovery-qqeeq2t9.js → instruction-discovery-57b9ws8p.js} +3 -3
- package/dist/chunks/{instruction-discovery-gn0vxyvw.js → instruction-discovery-58ytqwj2.js} +5 -5
- package/dist/chunks/{instruction-discovery-9mbzrdn5.js → instruction-discovery-5a9zf81m.js} +14 -14
- package/dist/chunks/{instruction-discovery-zsr4wwhv.js → instruction-discovery-5dkn69vz.js} +3 -3
- package/dist/chunks/{instruction-discovery-ht8z247h.js → instruction-discovery-5fa8zajf.js} +13 -13
- package/dist/chunks/{instruction-discovery-bgc7kbh3.js → instruction-discovery-5hj7q0js.js} +7 -7
- package/dist/chunks/{instruction-discovery-j3r6gmvc.js → instruction-discovery-5pbz2dd0.js} +1 -1
- package/dist/chunks/{instruction-discovery-e9f6ytk7.js → instruction-discovery-5qec7rge.js} +4 -4
- package/dist/chunks/{instruction-discovery-pf4f628p.js → instruction-discovery-5r4v0xwy.js} +9 -9
- package/dist/chunks/{instruction-discovery-2a9d0cmc.js → instruction-discovery-69enf89f.js} +21 -21
- package/dist/chunks/instruction-discovery-6xgwma86.js +26 -0
- package/dist/chunks/{instruction-discovery-dgkbzrr7.js → instruction-discovery-71dzwqxr.js} +38 -38
- package/dist/chunks/{instruction-discovery-nsqqdt6j.js → instruction-discovery-7dpqhkm4.js} +70 -70
- package/dist/chunks/{instruction-discovery-hrjwe8en.js → instruction-discovery-7nazv9sg.js} +12 -12
- package/dist/chunks/{instruction-discovery-8h6eptrw.js → instruction-discovery-7np5bmja.js} +40 -40
- package/dist/chunks/{instruction-discovery-j7znaxe9.js → instruction-discovery-7vsab7jg.js} +4 -4
- package/dist/chunks/{instruction-discovery-hkefcp24.js → instruction-discovery-7yw2sx3r.js} +5 -5
- package/dist/chunks/{instruction-discovery-s0gd8x5j.js → instruction-discovery-81gd8ewx.js} +19 -19
- package/dist/chunks/{instruction-discovery-pa87kxkp.js → instruction-discovery-85z0h67f.js} +14 -14
- package/dist/chunks/{instruction-discovery-pbj47z9e.js → instruction-discovery-88qvqy1e.js} +9 -9
- package/dist/chunks/{instruction-discovery-44gc5k7t.js → instruction-discovery-8evda89h.js} +25 -25
- package/dist/chunks/{instruction-discovery-gst7axd9.js → instruction-discovery-8gxqpgph.js} +3 -3
- package/dist/chunks/{instruction-discovery-c2mkhj0z.js → instruction-discovery-8tzwp5sx.js} +13 -13
- package/dist/chunks/{instruction-discovery-3z1qk93f.js → instruction-discovery-97y7hxer.js} +2 -2
- package/dist/chunks/{instruction-discovery-njjwfdf0.js → instruction-discovery-988cxgr8.js} +8 -8
- package/dist/chunks/{instruction-discovery-aa5pp8gg.js → instruction-discovery-99rzeaw0.js} +10 -10
- package/dist/chunks/{instruction-discovery-gbztcfes.js → instruction-discovery-9jcxats4.js} +39 -39
- package/dist/chunks/{instruction-discovery-ca87hkff.js → instruction-discovery-9w9w77gc.js} +26 -26
- package/dist/chunks/{instruction-discovery-0pzz74xs.js → instruction-discovery-aahhmcvt.js} +23 -23
- package/dist/chunks/{instruction-discovery-x661k3y3.js → instruction-discovery-addxnjmp.js} +3 -3
- package/dist/chunks/{instruction-discovery-vf1yw645.js → instruction-discovery-adejxgct.js} +13 -13
- package/dist/chunks/{instruction-discovery-5en5x0kf.js → instruction-discovery-afz809yg.js} +14 -14
- package/dist/chunks/{instruction-discovery-mkdntajj.js → instruction-discovery-arz7hw7x.js} +3 -3
- package/dist/chunks/{instruction-discovery-0jq9fyba.js → instruction-discovery-b4s8ej7r.js} +8 -8
- package/dist/chunks/{instruction-discovery-0cs4zv4k.js → instruction-discovery-b6qa6035.js} +31 -31
- package/dist/chunks/{instruction-discovery-fqhbsnr5.js → instruction-discovery-b6syrwy2.js} +7 -7
- package/dist/chunks/{instruction-discovery-vhsntnef.js → instruction-discovery-b9srm8rz.js} +8 -8
- package/dist/chunks/instruction-discovery-bmqnjeh2.js +253 -0
- package/dist/chunks/{instruction-discovery-qcv6amq6.js → instruction-discovery-bt2dtkh7.js} +29 -29
- package/dist/chunks/{instruction-discovery-5y8sveg1.js → instruction-discovery-byr661vw.js} +9 -9
- package/dist/chunks/{instruction-discovery-07x6hd07.js → instruction-discovery-c5w8pbd1.js} +10 -10
- package/dist/chunks/{instruction-discovery-sa8ekw3f.js → instruction-discovery-c8ax2afj.js} +1 -1
- package/dist/chunks/{instruction-discovery-8q2jmg2k.js → instruction-discovery-c8ses4bc.js} +11 -11
- package/dist/chunks/{instruction-discovery-1f58yghe.js → instruction-discovery-ch67yd34.js} +9 -9
- package/dist/chunks/{instruction-discovery-g0445xdp.js → instruction-discovery-cmwkp3r5.js} +3 -3
- package/dist/chunks/{instruction-discovery-djkfg51f.js → instruction-discovery-d0ak8zy9.js} +6 -6
- package/dist/chunks/{instruction-discovery-2xdnazbr.js → instruction-discovery-d15wnv4q.js} +14 -14
- package/dist/chunks/{instruction-discovery-ax9d17m8.js → instruction-discovery-d3sk2mbt.js} +6 -6
- package/dist/chunks/{instruction-discovery-etpda0sw.js → instruction-discovery-d5fxhgcy.js} +9 -9
- package/dist/chunks/{instruction-discovery-c57mtz3s.js → instruction-discovery-d9kdwp41.js} +5 -5
- package/dist/chunks/{instruction-discovery-rjxw408s.js → instruction-discovery-dhhqcq64.js} +9 -9
- package/dist/chunks/{instruction-discovery-79qaa2kf.js → instruction-discovery-djszqvmq.js} +7 -7
- package/dist/chunks/{instruction-discovery-kpkbsjrk.js → instruction-discovery-dx2h6xhc.js} +22 -22
- package/dist/chunks/{instruction-discovery-1ss6y7et.js → instruction-discovery-dzdcg5g9.js} +9 -9
- package/dist/chunks/{instruction-discovery-7rdq5agd.js → instruction-discovery-e0pxcnmw.js} +7 -7
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → instruction-discovery-e3qxr5gk.js} +2 -2
- package/dist/chunks/{instruction-discovery-nma959mg.js → instruction-discovery-e80seqcp.js} +2 -2
- package/dist/chunks/{instruction-discovery-4pcdpmjs.js → instruction-discovery-eefd4g5w.js} +4 -4
- package/dist/chunks/{instruction-discovery-6cc608et.js → instruction-discovery-eq08xn2q.js} +13 -13
- package/dist/chunks/{instruction-discovery-fa9zq5gx.js → instruction-discovery-ereph1h9.js} +14 -14
- package/dist/chunks/{instruction-discovery-c1fqxshp.js → instruction-discovery-es1vcfrp.js} +1 -1
- package/dist/chunks/{instruction-discovery-skh2fhmy.js → instruction-discovery-ewk422xx.js} +12 -12
- package/dist/chunks/{instruction-discovery-wscexn1p.js → instruction-discovery-ezzmrcry.js} +25 -25
- package/dist/chunks/{instruction-discovery-x2kh2bfd.js → instruction-discovery-fng9jkm1.js} +7 -7
- package/dist/chunks/{instruction-discovery-hycye272.js → instruction-discovery-fqp3mcfq.js} +1 -1
- package/dist/chunks/{instruction-discovery-349j9p8a.js → instruction-discovery-fykx5zb5.js} +38 -38
- package/dist/chunks/{instruction-discovery-be9647t4.js → instruction-discovery-fz79ktw5.js} +5 -5
- package/dist/chunks/{instruction-discovery-9137mpr7.js → instruction-discovery-g0z1em0w.js} +4 -4
- package/dist/chunks/{instruction-discovery-pn6tb00z.js → instruction-discovery-g6187q27.js} +28 -28
- package/dist/chunks/{instruction-discovery-mdjjyzh0.js → instruction-discovery-g678yp76.js} +28 -28
- package/dist/chunks/{instruction-discovery-t2fpy6a4.js → instruction-discovery-gcqzh3f4.js} +25 -25
- package/dist/chunks/{instruction-discovery-5fg11txv.js → instruction-discovery-ge2q9s3y.js} +8 -8
- package/dist/chunks/{instruction-discovery-tjgs01qf.js → instruction-discovery-ggsp0fny.js} +9 -9
- package/dist/chunks/{instruction-discovery-qdanfvrz.js → instruction-discovery-gjqhxvm8.js} +15 -15
- package/dist/chunks/{instruction-discovery-5cfzjc8s.js → instruction-discovery-gq58s3m0.js} +23 -23
- package/dist/chunks/{instruction-discovery-y54hr7f3.js → instruction-discovery-h04zhhvt.js} +7 -7
- package/dist/chunks/{instruction-discovery-bzh65nen.js → instruction-discovery-h11z96pq.js} +10 -10
- package/dist/chunks/{instruction-discovery-4b6qjr7h.js → instruction-discovery-h4ps1sgr.js} +3 -3
- package/dist/chunks/{instruction-discovery-6285nte3.js → instruction-discovery-h4y0jjzh.js} +15 -15
- package/dist/chunks/{instruction-discovery-1pasrz8p.js → instruction-discovery-hw2yy5aw.js} +9 -9
- package/dist/chunks/{instruction-discovery-h9pnpq88.js → instruction-discovery-j34bs4nz.js} +3 -3
- package/dist/chunks/{instruction-discovery-maccertz.js → instruction-discovery-j47qf441.js} +11 -11
- package/dist/chunks/{instruction-discovery-yec7xxa8.js → instruction-discovery-j4c2xja6.js} +11 -11
- package/dist/chunks/{instruction-discovery-aw71ddvx.js → instruction-discovery-j6a2evck.js} +16 -16
- package/dist/chunks/{instruction-discovery-72c3g3zh.js → instruction-discovery-j9ysnh0t.js} +14 -14
- package/dist/chunks/{instruction-discovery-9h13qr2j.js → instruction-discovery-janq1scx.js} +4 -4
- package/dist/chunks/{instruction-discovery-y5n9ymtk.js → instruction-discovery-jgbvdr9r.js} +3 -3
- package/dist/chunks/{instruction-discovery-he27pt63.js → instruction-discovery-jhdf29st.js} +1 -1
- package/dist/chunks/{instruction-discovery-45xt7wxm.js → instruction-discovery-jpen4qdf.js} +2 -2
- package/dist/chunks/{instruction-discovery-phz3h32g.js → instruction-discovery-jqh9b0xq.js} +4 -4
- package/dist/chunks/{instruction-discovery-f1e3sab5.js → instruction-discovery-jvx148y3.js} +9 -9
- package/dist/chunks/{instruction-discovery-y71avatq.js → instruction-discovery-jwcy2c2z.js} +3 -3
- package/dist/chunks/{instruction-discovery-dpemy54c.js → instruction-discovery-k2xcv0kf.js} +11 -11
- package/dist/chunks/{instruction-discovery-5bpa657r.js → instruction-discovery-ketq9gmb.js} +9 -9
- package/dist/chunks/{instruction-discovery-cs8e4cmc.js → instruction-discovery-kppw7hr6.js} +24 -24
- package/dist/chunks/{instruction-discovery-ctzqq1qd.js → instruction-discovery-ksek9mqj.js} +34 -34
- package/dist/chunks/{instruction-discovery-ya0wjwqz.js → instruction-discovery-ksqr7yfe.js} +6 -6
- package/dist/chunks/{instruction-discovery-jmhkjwrc.js → instruction-discovery-ky9vbweg.js} +21 -21
- package/dist/chunks/{instruction-discovery-xb5zqdrm.js → instruction-discovery-mbkrq27a.js} +5 -5
- package/dist/chunks/{instruction-discovery-bpm1eh2k.js → instruction-discovery-mf2nfva2.js} +17 -17
- package/dist/chunks/{instruction-discovery-a7p2x4hn.js → instruction-discovery-mkkx2xvk.js} +27 -27
- package/dist/chunks/{instruction-discovery-fvkvqbbt.js → instruction-discovery-mnv9vkrs.js} +1 -1
- package/dist/chunks/{instruction-discovery-wst2njc5.js → instruction-discovery-myrhaa8e.js} +7 -7
- package/dist/chunks/{instruction-discovery-s4801m28.js → instruction-discovery-n3aya5hh.js} +15 -15
- package/dist/chunks/{instruction-discovery-h0vrang6.js → instruction-discovery-n3jw88fx.js} +7 -7
- package/dist/chunks/{instruction-discovery-00v13zp4.js → instruction-discovery-na4dcjrg.js} +24 -24
- package/dist/chunks/{instruction-discovery-6rkk3bmg.js → instruction-discovery-nbyj5sqq.js} +85 -85
- package/dist/chunks/{instruction-discovery-mytfezrn.js → instruction-discovery-ne89875c.js} +14 -14
- package/dist/chunks/{instruction-discovery-6p2pmyag.js → instruction-discovery-njm3x30h.js} +88 -88
- package/dist/chunks/{instruction-discovery-adq9f0f4.js → instruction-discovery-nqxj0yn4.js} +1 -1
- package/dist/chunks/{instruction-discovery-7pk5n3s1.js → instruction-discovery-nvakrpsp.js} +10 -10
- package/dist/chunks/{instruction-discovery-nann43hw.js → instruction-discovery-nzbbc5k0.js} +9 -9
- package/dist/chunks/{instruction-discovery-0p635tx0.js → instruction-discovery-p097c2sx.js} +12 -12
- package/dist/chunks/{instruction-discovery-2k71kv7p.js → instruction-discovery-ph842b28.js} +3 -3
- package/dist/chunks/{instruction-discovery-r46dytrv.js → instruction-discovery-prhrtzb1.js} +51 -51
- package/dist/chunks/{instruction-discovery-mjk9grpt.js → instruction-discovery-pw6jj9n3.js} +12 -12
- package/dist/chunks/{instruction-discovery-ehrv9c33.js → instruction-discovery-pwpq1fb6.js} +16 -16
- package/dist/chunks/{instruction-discovery-ffam7gj8.js → instruction-discovery-pznx5chc.js} +16 -16
- package/dist/chunks/{instruction-discovery-wkx576x1.js → instruction-discovery-q17sgkmf.js} +14 -14
- package/dist/chunks/{instruction-discovery-s2ydx70g.js → instruction-discovery-q78nszrx.js} +29 -29
- package/dist/chunks/{instruction-discovery-v5dkyp31.js → instruction-discovery-qa3qhgw8.js} +3 -3
- package/dist/chunks/{instruction-discovery-7ffadgyk.js → instruction-discovery-qgezrw5d.js} +23 -23
- package/dist/chunks/{instruction-discovery-qafgrsyw.js → instruction-discovery-qms70dv9.js} +3 -3
- package/dist/chunks/{instruction-discovery-z1cyx7dz.js → instruction-discovery-qyjj4w9t.js} +10 -10
- package/dist/chunks/{instruction-discovery-jf7mfsg7.js → instruction-discovery-r2a2vjc6.js} +43 -43
- package/dist/chunks/{instruction-discovery-nd4tfyg0.js → instruction-discovery-r70na3yp.js} +7 -7
- package/dist/chunks/{instruction-discovery-fmyc3a1p.js → instruction-discovery-r75v65gt.js} +3 -3
- package/dist/chunks/{instruction-discovery-3tmkt29g.js → instruction-discovery-rb0m5pb6.js} +17 -17
- package/dist/chunks/{instruction-discovery-qh4qnmhp.js → instruction-discovery-rtbh45rc.js} +12 -12
- package/dist/chunks/{instruction-discovery-013q7qyk.js → instruction-discovery-rwbpmje9.js} +16 -16
- package/dist/chunks/{instruction-discovery-z45psjsg.js → instruction-discovery-s9bfrye6.js} +54 -54
- package/dist/chunks/{instruction-discovery-b3f8fkhc.js → instruction-discovery-scgrse2b.js} +3 -3
- package/dist/chunks/{instruction-discovery-pd63a6br.js → instruction-discovery-sddgd5f8.js} +15 -15
- package/dist/chunks/{instruction-discovery-qbkt1j42.js → instruction-discovery-sm4j4wt5.js} +15 -15
- package/dist/chunks/{instruction-discovery-z66qdbeq.js → instruction-discovery-sp61bypy.js} +14 -14
- package/dist/chunks/{instruction-discovery-86pav6my.js → instruction-discovery-ssgq4v3h.js} +18 -18
- package/dist/chunks/{instruction-discovery-xbebwte6.js → instruction-discovery-svysebdv.js} +149 -149
- package/dist/chunks/{instruction-discovery-re32j193.js → instruction-discovery-terdh6tz.js} +44 -44
- package/dist/chunks/{instruction-discovery-rert0e01.js → instruction-discovery-tkb22qbm.js} +1 -1
- package/dist/chunks/{instruction-discovery-03v1g770.js → instruction-discovery-tppqj79j.js} +9 -9
- package/dist/chunks/{instruction-discovery-gfzqzyz0.js → instruction-discovery-tqenhx9q.js} +4 -4
- package/dist/chunks/{instruction-discovery-xnq97b3q.js → instruction-discovery-ts8qfj50.js} +1 -1
- package/dist/chunks/{instruction-discovery-zyc3n123.js → instruction-discovery-tvmrjeqd.js} +8 -8
- package/dist/chunks/{instruction-discovery-7sxtqf2f.js → instruction-discovery-tym1zfxs.js} +8 -8
- package/dist/chunks/{instruction-discovery-2jj4c4zt.js → instruction-discovery-v8pa3zp8.js} +16 -16
- package/dist/chunks/{instruction-discovery-vjawha9d.js → instruction-discovery-vezvtjyv.js} +8 -8
- package/dist/chunks/{instruction-discovery-azwhd2tc.js → instruction-discovery-vhjwdtv8.js} +42 -42
- package/dist/chunks/{instruction-discovery-g21pftbj.js → instruction-discovery-vky023fh.js} +4 -4
- package/dist/chunks/{instruction-discovery-w1ba7bfx.js → instruction-discovery-vrzt526f.js} +3 -3
- package/dist/chunks/{instruction-discovery-z8f4xtsn.js → instruction-discovery-vt28d6rb.js} +30 -30
- package/dist/chunks/{instruction-discovery-gatvvfrq.js → instruction-discovery-vw6bdczd.js} +4 -4
- package/dist/chunks/{instruction-discovery-7bgbbv4d.js → instruction-discovery-vz2yvhh5.js} +13 -13
- package/dist/chunks/{instruction-discovery-dqn19q2m.js → instruction-discovery-w96a8yrh.js} +17 -17
- package/dist/chunks/{instruction-discovery-affjwcb5.js → instruction-discovery-wby3r2te.js} +10 -10
- package/dist/chunks/{instruction-discovery-vzzm1fs5.js → instruction-discovery-wf98qgyv.js} +10 -10
- package/dist/chunks/{instruction-discovery-re585wd9.js → instruction-discovery-wnk72qpq.js} +6 -6
- package/dist/chunks/{instruction-discovery-krzm7rgx.js → instruction-discovery-wp8sj255.js} +22 -22
- package/dist/chunks/{instruction-discovery-wj1r1ebq.js → instruction-discovery-wpemy600.js} +3 -3
- package/dist/chunks/{instruction-discovery-q8xpgn7z.js → instruction-discovery-wr0v3f2s.js} +33 -33
- package/dist/chunks/{instruction-discovery-k0dbnswt.js → instruction-discovery-wt4s349c.js} +17 -17
- package/dist/chunks/{instruction-discovery-z2qvtray.js → instruction-discovery-wvej1134.js} +5 -5
- package/dist/chunks/{instruction-discovery-7zgemx1q.js → instruction-discovery-wwyp4jt6.js} +14 -14
- package/dist/chunks/{instruction-discovery-dys7k0s0.js → instruction-discovery-x5wrmng7.js} +9 -9
- package/dist/chunks/{instruction-discovery-fh0k82d9.js → instruction-discovery-x7bx6zs0.js} +9 -9
- package/dist/chunks/{instruction-discovery-2r93mh4x.js → instruction-discovery-xacpwdh9.js} +4 -4
- package/dist/chunks/{instruction-discovery-3ppptnan.js → instruction-discovery-xcd0eash.js} +5 -5
- package/dist/chunks/{instruction-discovery-npyjj4rp.js → instruction-discovery-xk3qqngr.js} +9 -9
- package/dist/chunks/{instruction-discovery-a6ty58hg.js → instruction-discovery-xkfm5vcm.js} +1 -1
- package/dist/chunks/{instruction-discovery-36k4rsrb.js → instruction-discovery-xqt608y9.js} +29 -29
- package/dist/chunks/{instruction-discovery-s70zranf.js → instruction-discovery-xyc3y5xg.js} +12 -12
- package/dist/chunks/{instruction-discovery-y9sjh7nr.js → instruction-discovery-xz5716ww.js} +31 -31
- package/dist/chunks/{instruction-discovery-5zsyzc28.js → instruction-discovery-xzdfrpe2.js} +16 -16
- package/dist/chunks/{instruction-discovery-hcd6s0vj.js → instruction-discovery-y147vcw1.js} +17 -17
- package/dist/chunks/{instruction-discovery-rajdm094.js → instruction-discovery-y1qj9qp6.js} +28 -28
- package/dist/chunks/{instruction-discovery-9m0vp2wg.js → instruction-discovery-y8ptd9jv.js} +28 -28
- package/dist/chunks/{instruction-discovery-0gbd5s62.js → instruction-discovery-yc7106p4.js} +17 -17
- package/dist/chunks/{instruction-discovery-mbsb5skb.js → instruction-discovery-yeyrdzm0.js} +21 -21
- package/dist/chunks/{instruction-discovery-at0j0jj5.js → instruction-discovery-yh9g6p3v.js} +37 -37
- package/dist/chunks/{instruction-discovery-v4htay49.js → instruction-discovery-ykmz0d95.js} +5 -5
- package/dist/chunks/{instruction-discovery-zpmxq5w8.js → instruction-discovery-yng1p9nw.js} +8 -8
- package/dist/chunks/{instruction-discovery-354f5h3z.js → instruction-discovery-yztevfhp.js} +17 -17
- package/dist/chunks/{instruction-discovery-q5heszs0.js → instruction-discovery-z2qawcf3.js} +22 -22
- package/dist/chunks/{instruction-discovery-29ry0jec.js → instruction-discovery-z4dcjezs.js} +10 -10
- package/dist/chunks/{instruction-discovery-c4317cpf.js → instruction-discovery-zamq423t.js} +1 -1
- package/dist/chunks/{instruction-discovery-w8cfkb27.js → instruction-discovery-zest4r3s.js} +24 -24
- package/dist/chunks/{instruction-discovery-vyq7c4ep.js → instruction-discovery-zkskjjqs.js} +18 -18
- package/dist/chunks/{instruction-discovery-zq8zhbxc.js → instruction-discovery-zmbx7t07.js} +44 -44
- package/dist/chunks/{instruction-discovery-h21ghyap.js → instruction-discovery-zp551mt7.js} +25 -25
- package/dist/codemode/instructions.js +3 -3
- package/dist/command.js +63 -63
- package/dist/config/discovery.js +59 -59
- package/dist/config/normalize.js +73 -73
- package/dist/config/plugin/agent.js +87 -87
- package/dist/config/plugin/command.js +165 -165
- package/dist/config/plugin/compaction.js +119 -119
- package/dist/config/plugin/compatibility.js +104 -104
- package/dist/config/plugin/formatter.js +88 -88
- package/dist/config/plugin/image.js +87 -87
- package/dist/config/plugin/instruction.js +65 -65
- package/dist/config/plugin/location-watcher.js +89 -89
- package/dist/config/plugin/mcp.js +94 -94
- package/dist/config/plugin/policy.js +88 -88
- package/dist/config/plugin/provider.js +87 -87
- package/dist/config/plugin/reference.js +88 -88
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +75 -75
- package/dist/config/plugin/skill.js +105 -105
- package/dist/config/plugin/snapshot.js +87 -87
- package/dist/config/plugin/source.js +88 -88
- package/dist/config/plugin/tool-output.js +87 -87
- package/dist/config/plugin/websearch.js +86 -86
- package/dist/config/plugin/worktree.js +89 -89
- package/dist/config/variable.js +2 -2
- package/dist/config.js +91 -91
- package/dist/credential.js +61 -61
- package/dist/database/database.js +55 -55
- 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 +39 -39
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +236 -236
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +66 -66
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +12 -12
- package/dist/file-access.js +78 -78
- package/dist/file-mutation.js +67 -67
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +182 -182
- package/dist/filesystem/search.js +68 -68
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +69 -69
- package/dist/form.js +62 -62
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +64 -64
- package/dist/generate.js +79 -79
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +75 -75
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- 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 +306 -306
- package/dist/instruction-discovery.js +61 -61
- package/dist/instructions/builtins.js +63 -63
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +65 -65
- package/dist/job.js +59 -59
- package/dist/kv.js +54 -54
- package/dist/location-activity.js +56 -56
- package/dist/location-lifecycle.js +81 -81
- package/dist/location-service-map.js +63 -63
- package/dist/location-services.js +304 -304
- package/dist/location.js +60 -60
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +94 -94
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +63 -63
- package/dist/modal/models.js +75 -75
- package/dist/model-resolver.js +74 -74
- package/dist/model.js +76 -76
- package/dist/models-dev.js +70 -70
- package/dist/permission/saved.js +61 -61
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +54 -54
- package/dist/plugin/agent.js +56 -56
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +173 -173
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +278 -278
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +71 -71
- package/dist/plugin/module.js +88 -88
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +76 -76
- package/dist/plugin/provider/amazon-bedrock.js +66 -66
- package/dist/plugin/provider/azure.js +86 -86
- package/dist/plugin/provider/chatgpt.js +68 -68
- package/dist/plugin/provider/cloudflare-ai-gateway.js +85 -85
- package/dist/plugin/provider/cloudflare-workers-ai.js +85 -85
- package/dist/plugin/provider/configured.js +84 -84
- package/dist/plugin/provider/digitalocean.js +68 -68
- package/dist/plugin/provider/github-copilot.js +70 -70
- package/dist/plugin/provider/gitlab.js +68 -68
- package/dist/plugin/provider/google-vertex.js +85 -85
- package/dist/plugin/provider/llmgateway.js +58 -58
- package/dist/plugin/provider/lmstudio.js +95 -95
- package/dist/plugin/provider/local.js +92 -92
- package/dist/plugin/provider/modal.js +68 -68
- package/dist/plugin/provider/ollama.js +95 -95
- package/dist/plugin/provider/openai.js +69 -69
- package/dist/plugin/provider/opencode.js +72 -72
- package/dist/plugin/provider/openrouter.js +67 -67
- package/dist/plugin/provider/poe.js +58 -58
- package/dist/plugin/provider/prompt-cache-key.js +66 -66
- package/dist/plugin/provider/sap-ai-core.js +66 -66
- package/dist/plugin/provider/snowflake-cortex.js +86 -86
- package/dist/plugin/provider/vercel.js +66 -66
- package/dist/plugin/provider/vllm.js +95 -95
- package/dist/plugin/provider/xai.js +67 -67
- package/dist/plugin/provider.js +131 -131
- package/dist/plugin/sdk.js +56 -56
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +103 -103
- package/dist/plugin/supervisor.js +296 -296
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +61 -61
- package/dist/plugin/vcs/hg.js +63 -63
- package/dist/plugin/verbosity.js +69 -69
- package/dist/plugin/warming.js +86 -86
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +178 -178
- package/dist/project/sql.js +2 -2
- package/dist/project.js +59 -59
- package/dist/provider.js +77 -77
- package/dist/pty.js +65 -65
- package/dist/reference/instructions.js +63 -63
- package/dist/reference.js +64 -64
- package/dist/repository-cache.js +59 -59
- package/dist/ripgrep.js +63 -63
- package/dist/rpc.js +63 -63
- package/dist/session/command.js +56 -56
- package/dist/session/compaction.js +103 -103
- package/dist/session/context.js +117 -117
- package/dist/session/diff.js +64 -64
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +115 -115
- package/dist/session/execution.js +99 -99
- package/dist/session/generate.js +118 -118
- package/dist/session/history.js +10 -10
- package/dist/session/inbox.js +64 -64
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +57 -57
- package/dist/session/instruction-state.js +4 -4
- package/dist/session/instructions.js +71 -71
- package/dist/session/model-request.js +90 -90
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +100 -100
- package/dist/session/projector.js +62 -62
- package/dist/session/prompt.js +78 -78
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +65 -65
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +184 -184
- package/dist/session/runner/model.js +74 -74
- package/dist/session/runner/publish-llm-event.js +85 -85
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +94 -94
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +131 -131
- package/dist/session/shell.js +99 -99
- package/dist/session/skill.js +77 -77
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +166 -166
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +120 -120
- package/dist/session/to-session-error.js +84 -84
- package/dist/session/transfer.js +111 -111
- package/dist/session.js +174 -174
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +8 -8
- package/dist/shell.js +102 -102
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +84 -84
- package/dist/snapshot.js +70 -70
- package/dist/tool/mcp.js +93 -93
- package/dist/tool/plugin/edit.js +90 -90
- package/dist/tool/plugin/glob.js +93 -93
- package/dist/tool/plugin/grep.js +93 -93
- package/dist/tool/plugin/mcp-resource.js +87 -87
- package/dist/tool/plugin/opencode.js +83 -83
- package/dist/tool/plugin/patch.js +92 -92
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +93 -93
- package/dist/tool/plugin/shell.js +170 -170
- package/dist/tool/plugin/skill.js +85 -85
- package/dist/tool/plugin/subagent.js +173 -173
- package/dist/tool/plugin/webfetch.js +83 -83
- package/dist/tool/plugin/websearch.js +86 -86
- package/dist/tool/plugin/write.js +92 -92
- package/dist/tool/read-filesystem.js +66 -66
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +67 -67
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/variant.js +67 -67
- package/dist/vcs.js +66 -66
- package/dist/websearch.js +64 -64
- package/dist/wellknown/plugin.js +56 -56
- package/dist/wellknown.js +59 -59
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +63 -63
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +65 -65
- package/dist/worktree.js +71 -71
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-14fj7mdh.js +0 -26
- package/dist/chunks/instruction-discovery-bsemgcs3.js +0 -253
- package/dist/chunks/instruction-discovery-e37mevwb.js +0 -513
- /package/dist/chunks/{instruction-discovery-vgbe0hx2.js → instruction-discovery-0n8a0ffz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rj3eygr5.js → instruction-discovery-c41wscbt.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2cmv458r.js → instruction-discovery-dtqg9ce1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-abyq9s79.js → instruction-discovery-hay4m1s6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0vvktwqa.js → instruction-discovery-z5hqtv59.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
node87
|
|
4
|
+
} from "./instruction-discovery-5r4v0xwy.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./instruction-discovery-
|
|
7
|
+
} from "./instruction-discovery-1qs5jxd8.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
10
|
} from "./instruction-discovery-3t0ybcrp.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError4,
|
|
20
|
+
Options: () => Options4,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
available: () =>
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
22
|
+
Service: () => Service26,
|
|
23
|
+
UnavailableError: () => UnavailableError2,
|
|
24
|
+
available: () => available2,
|
|
25
|
+
configured: () => configured4,
|
|
26
|
+
layer: () => layer12,
|
|
27
|
+
node: () => node29
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -35,25 +35,25 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
import { available as
|
|
39
|
-
var
|
|
38
|
+
import { available as available2 } from "#persistent-pty-binary";
|
|
39
|
+
var Options4 = Schema.Struct({
|
|
40
40
|
handoff: Schema.optional(Handoff),
|
|
41
41
|
root: Schema.optional(Schema.String)
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
class
|
|
44
|
+
class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
45
45
|
message: Schema.String
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class NotFoundError4 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
50
50
|
ptyID: Pty.ID
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service26 extends Context.Service()("@opencode/PersistentPty") {
|
|
55
55
|
}
|
|
56
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
56
|
+
var makeLayer = (options = {}) => Layer.effect(Service26, Effect.gen(function* () {
|
|
57
57
|
const bus = yield* Service84;
|
|
58
58
|
const global = yield* Global.Service;
|
|
59
59
|
const context = yield* Effect.context();
|
|
@@ -76,7 +76,7 @@ var makeLayer = (options = {}) => Layer.effect(Service57, Effect.gen(function* (
|
|
|
76
76
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
77
77
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
78
78
|
if (!found)
|
|
79
|
-
return yield* new
|
|
79
|
+
return yield* new NotFoundError4({ ptyID: id });
|
|
80
80
|
return found;
|
|
81
81
|
});
|
|
82
82
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -166,7 +166,7 @@ var makeLayer = (options = {}) => Layer.effect(Service57, Effect.gen(function* (
|
|
|
166
166
|
});
|
|
167
167
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
168
168
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
169
|
-
return yield* new
|
|
169
|
+
return yield* new UnavailableError2({ message: "lines must be an integer between 1 and 65535" });
|
|
170
170
|
const id = current.get(sessionID);
|
|
171
171
|
if (!id)
|
|
172
172
|
return null;
|
|
@@ -243,7 +243,7 @@ var makeLayer = (options = {}) => Layer.effect(Service57, Effect.gen(function* (
|
|
|
243
243
|
detach: attachment.detach
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
return
|
|
246
|
+
return Service26.of({
|
|
247
247
|
list,
|
|
248
248
|
get,
|
|
249
249
|
create,
|
|
@@ -259,17 +259,17 @@ var makeLayer = (options = {}) => Layer.effect(Service57, Effect.gen(function* (
|
|
|
259
259
|
attach
|
|
260
260
|
});
|
|
261
261
|
}));
|
|
262
|
-
var
|
|
263
|
-
var
|
|
264
|
-
service:
|
|
265
|
-
layer: options === undefined ?
|
|
266
|
-
deps: [
|
|
262
|
+
var layer12 = makeLayer();
|
|
263
|
+
var configured4 = (options) => makeGlobalNode({
|
|
264
|
+
service: Service26,
|
|
265
|
+
layer: options === undefined ? layer12 : makeLayer(options),
|
|
266
|
+
deps: [node87, Global.node]
|
|
267
267
|
});
|
|
268
|
-
var
|
|
268
|
+
var node29 = configured4();
|
|
269
269
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
270
270
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
271
|
-
var unexpected = (response) => Effect.fail(new
|
|
272
|
-
var unavailable = (error) => new
|
|
271
|
+
var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
272
|
+
var unavailable = (error) => new UnavailableError2({ message: error instanceof Error ? error.message : String(error) });
|
|
273
273
|
function toInfo(value) {
|
|
274
274
|
const status = value.lifecycle.status;
|
|
275
275
|
return {
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options4, UnavailableError2, NotFoundError4, Service26, layer12, configured4, node29, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./instruction-discovery-
|
|
2
|
+
Service63
|
|
3
|
+
} from "./instruction-discovery-yh9g6p3v.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instruction-discovery-
|
|
5
|
+
Service42
|
|
6
|
+
} from "./instruction-discovery-terdh6tz.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -12,20 +12,20 @@ import {
|
|
|
12
12
|
var exports_mcp2 = {};
|
|
13
13
|
__export(exports_mcp2, {
|
|
14
14
|
ConfigMcpPlugin: () => exports_mcp2,
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin31,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin31 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service63;
|
|
28
|
+
const mcp = yield* Service42;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin31, register2, exports_mcp2 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID9,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./instruction-discovery-
|
|
5
|
+
} from "./instruction-discovery-gq58s3m0.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
8
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
var exports_agent = {};
|
|
12
12
|
__export(exports_agent, {
|
|
13
13
|
AgentPlugin: () => exports_agent,
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin14
|
|
15
15
|
});
|
|
16
16
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
17
17
|
import { Effect } from "effect";
|
|
@@ -81,7 +81,7 @@ Rules:
|
|
|
81
81
|
- Never ask questions or add new questions
|
|
82
82
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
83
83
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
84
|
-
var
|
|
84
|
+
var Plugin14 = define({
|
|
85
85
|
id: "opencode.agent",
|
|
86
86
|
effect: Effect.fn(function* (ctx) {
|
|
87
87
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -91,32 +91,32 @@ var Plugin17 = define({
|
|
|
91
91
|
item.mode = "primary";
|
|
92
92
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
93
93
|
});
|
|
94
|
-
editor.update(
|
|
94
|
+
editor.update(ID9.make("general"), (item) => {
|
|
95
95
|
item.name = Name3.make("General");
|
|
96
96
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
97
97
|
item.mode = "subagent";
|
|
98
98
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
99
99
|
});
|
|
100
|
-
editor.update(
|
|
100
|
+
editor.update(ID9.make("explore"), (item) => {
|
|
101
101
|
item.name = Name3.make("Explore");
|
|
102
102
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
103
103
|
item.system = PROMPT_EXPLORE;
|
|
104
104
|
item.mode = "subagent";
|
|
105
105
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" }, { action: "shell", resource: "*", effect: "allow" }, { action: "grep", resource: "*", effect: "allow" }, { action: "glob", resource: "*", effect: "allow" }, { action: "webfetch", resource: "*", effect: "allow" }, { action: "websearch", resource: "*", effect: "allow" }, { action: "read", resource: "*", effect: "allow" }, { action: "read", resource: "*.env", effect: "ask" }, { action: "read", resource: "*.env.*", effect: "ask" }, { action: "read", resource: "*.env.example", effect: "allow" }, { action: "subagent", resource: "*", effect: "deny" }, { action: "external_directory", resource: "*", effect: "allow" });
|
|
106
106
|
});
|
|
107
|
-
editor.update(
|
|
107
|
+
editor.update(ID9.make("compaction"), (item) => {
|
|
108
108
|
item.name = Name3.make("Compaction");
|
|
109
109
|
item.mode = "primary";
|
|
110
110
|
item.hidden = true;
|
|
111
111
|
});
|
|
112
|
-
editor.update(
|
|
112
|
+
editor.update(ID9.make("title"), (item) => {
|
|
113
113
|
item.name = Name3.make("Title");
|
|
114
114
|
item.mode = "primary";
|
|
115
115
|
item.hidden = true;
|
|
116
116
|
item.system = PROMPT_TITLE;
|
|
117
117
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
118
118
|
});
|
|
119
|
-
editor.update(
|
|
119
|
+
editor.update(ID9.make("summary"), (item) => {
|
|
120
120
|
item.name = Name3.make("Summary");
|
|
121
121
|
item.mode = "primary";
|
|
122
122
|
item.hidden = true;
|
|
@@ -127,4 +127,4 @@ var Plugin17 = define({
|
|
|
127
127
|
})
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
export {
|
|
130
|
+
export { Plugin14, exports_agent };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./instruction-discovery-qnc92qwc.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./instruction-discovery-
|
|
6
|
+
} from "./instruction-discovery-c41wscbt.js";
|
|
7
7
|
|
|
8
8
|
// src/worktree/sql.ts
|
|
9
9
|
import { integer, primaryKey, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
node87
|
|
4
|
+
} from "./instruction-discovery-5r4v0xwy.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
Ref4,
|
|
11
11
|
Service81,
|
|
12
|
-
|
|
13
|
-
} from "./instruction-discovery-
|
|
12
|
+
node84
|
|
13
|
+
} from "./instruction-discovery-ksqr7yfe.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
16
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service29,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node32
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service29 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,7 +39,7 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service84;
|
|
44
44
|
const location = yield* Service81;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
@@ -123,9 +123,9 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service29.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node32 = makeLocationNode({ service: Service29, layer, deps: [node87, node84] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service29, node32, exports_rpc, define2 };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
3
|
} from "./instruction-discovery-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./instruction-discovery-
|
|
5
|
+
ID5,
|
|
6
|
+
Service46
|
|
7
|
+
} from "./instruction-discovery-9w9w77gc.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./instruction-discovery-
|
|
10
|
+
} from "./instruction-discovery-arz7hw7x.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./instruction-discovery-
|
|
13
|
+
} from "./instruction-discovery-5hj7q0js.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./instruction-discovery-
|
|
16
|
+
} from "./instruction-discovery-es1vcfrp.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service46;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID5.make(from),
|
|
91
|
+
to: ID5.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -8,14 +8,14 @@ __export(exports_instance2, {
|
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
9
|
Service: () => Service5,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node7
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
16
|
class Service5 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node7 = makeLocationNode({
|
|
19
19
|
service: Service5,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
@@ -29,4 +29,4 @@ function bound2(plugins) {
|
|
|
29
29
|
return Layer.succeed(Service5, Service5.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export { Service5,
|
|
32
|
+
export { Service5, node7, bound2, exports_instance2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
Service63
|
|
4
|
+
} from "./instruction-discovery-yh9g6p3v.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
// src/plugin/warming.ts
|
|
10
10
|
var exports_warming = {};
|
|
11
11
|
__export(exports_warming, {
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin17,
|
|
13
13
|
WarmingPlugin: () => exports_warming
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -19,10 +19,10 @@ var defaults = {
|
|
|
19
19
|
interval: Duration.minutes(4),
|
|
20
20
|
duration: Duration.minutes(30)
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Plugin17 = define({
|
|
23
23
|
id: "opencode.warming",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
25
|
+
const config = yield* Service63;
|
|
26
26
|
const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
|
|
27
27
|
const warming = latest2(yield* config.entries(), "warming");
|
|
28
28
|
if (!warming)
|
|
@@ -96,4 +96,4 @@ var Plugin15 = define({
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin17, exports_warming };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
2
|
+
Service70,
|
|
3
|
+
node73
|
|
4
|
+
} from "./instruction-discovery-dhhqcq64.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionMessage2
|
|
7
7
|
} from "./instruction-discovery-gftt206x.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./instruction-discovery-
|
|
10
|
+
} from "./instruction-discovery-arz7hw7x.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -16,9 +16,9 @@ import {
|
|
|
16
16
|
var exports_job = {};
|
|
17
17
|
__export(exports_job, {
|
|
18
18
|
Job: () => exports_job,
|
|
19
|
-
Service: () =>
|
|
20
|
-
make: () =>
|
|
21
|
-
node: () =>
|
|
19
|
+
Service: () => Service69,
|
|
20
|
+
make: () => make19,
|
|
21
|
+
node: () => node72
|
|
22
22
|
});
|
|
23
23
|
import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
|
|
24
24
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -48,7 +48,7 @@ var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
|
48
48
|
var backgroundPrefix = "job.background/";
|
|
49
49
|
var COMPLETED_LIMIT = 25;
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service69 extends Context.Service()("@opencode/Job") {
|
|
52
52
|
}
|
|
53
53
|
function snapshot(job) {
|
|
54
54
|
return {
|
|
@@ -83,8 +83,8 @@ function decrementSession(input, sessionID) {
|
|
|
83
83
|
next.set(sessionID, count - 1);
|
|
84
84
|
return next;
|
|
85
85
|
}
|
|
86
|
-
var
|
|
87
|
-
const kv = yield*
|
|
86
|
+
var make19 = Effect.gen(function* () {
|
|
87
|
+
const kv = yield* Service70;
|
|
88
88
|
const state = {
|
|
89
89
|
jobs: yield* SynchronizedRef.make(new Map),
|
|
90
90
|
scope: yield* Scope.Scope
|
|
@@ -342,7 +342,7 @@ var make17 = Effect.gen(function* () {
|
|
|
342
342
|
next.delete(entry[0]);
|
|
343
343
|
return next;
|
|
344
344
|
})));
|
|
345
|
-
return
|
|
345
|
+
return Service69.of({
|
|
346
346
|
get,
|
|
347
347
|
start,
|
|
348
348
|
wait,
|
|
@@ -354,7 +354,7 @@ var make17 = Effect.gen(function* () {
|
|
|
354
354
|
completeBackground
|
|
355
355
|
});
|
|
356
356
|
});
|
|
357
|
-
var layer = Layer.effect(
|
|
358
|
-
var
|
|
357
|
+
var layer = Layer.effect(Service69, make19);
|
|
358
|
+
var node72 = makeGlobalNode({ service: Service69, layer, deps: [node73] });
|
|
359
359
|
|
|
360
|
-
export {
|
|
360
|
+
export { Service69, make19, node72, exports_job };
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./instruction-discovery-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./instruction-discovery-
|
|
7
|
+
Service66,
|
|
8
|
+
node68
|
|
9
|
+
} from "./instruction-discovery-wt4s349c.js";
|
|
10
10
|
import {
|
|
11
11
|
Content2
|
|
12
|
-
} from "./instruction-discovery-
|
|
12
|
+
} from "./instruction-discovery-n3aya5hh.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
15
|
} from "./instruction-discovery-3smtnn6g.js";
|
|
@@ -331,12 +331,12 @@ var nthNewline = (bytes, count) => {
|
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
333
|
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
334
|
-
const environment = yield*
|
|
334
|
+
const environment = yield* Service66;
|
|
335
335
|
return Service13.of({
|
|
336
336
|
list: environment.files.list,
|
|
337
337
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
338
338
|
});
|
|
339
339
|
}));
|
|
340
|
-
var node15 = makeLocationNode({ service: Service13, layer, deps: [
|
|
340
|
+
var node15 = makeLocationNode({ service: Service13, layer, deps: [node68] });
|
|
341
341
|
|
|
342
342
|
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service13, read2, node15, exports_read_filesystem };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
Service63
|
|
4
|
+
} from "./instruction-discovery-yh9g6p3v.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./instruction-discovery-
|
|
6
|
+
Service61
|
|
7
|
+
} from "./instruction-discovery-1qs5jxd8.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
10
|
} from "./instruction-discovery-qsdy395h.js";
|
|
@@ -16,15 +16,15 @@ import {
|
|
|
16
16
|
var exports_shell = {};
|
|
17
17
|
__export(exports_shell, {
|
|
18
18
|
ConfigShellPlugin: () => exports_shell,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin34
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin34 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service63;
|
|
27
|
+
const shell = yield* Service61;
|
|
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 Plugin22 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin34, exports_shell };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./instruction-discovery-
|
|
3
|
+
} from "./instruction-discovery-wby3r2te.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./instruction-discovery-9rqn6x4v.js";
|
|
@@ -10,12 +10,12 @@ var exports_tavily = {};
|
|
|
10
10
|
__export(exports_tavily, {
|
|
11
11
|
Plugin: () => Plugin4,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint3
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint3 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -51,7 +51,7 @@ var Plugin4 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint3).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin4 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint3, Plugin4, exports_tavily };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
|
-
|
|
4
|
-
} from "./instruction-discovery-
|
|
3
|
+
node88
|
|
4
|
+
} from "./instruction-discovery-z4dcjezs.js";
|
|
5
5
|
import {
|
|
6
6
|
KVTable2
|
|
7
7
|
} from "./instruction-discovery-3hepkmqq.js";
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
var exports_kv = {};
|
|
14
14
|
__export(exports_kv, {
|
|
15
15
|
KV: () => exports_kv,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service70,
|
|
17
|
+
node: () => node73
|
|
18
18
|
});
|
|
19
19
|
import { and, asc, eq, gt, gte, lt } from "drizzle-orm";
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
22
|
-
class
|
|
22
|
+
class Service70 extends Context.Service()("@opencode/KV") {
|
|
23
23
|
}
|
|
24
|
-
var layer = Layer.effect(
|
|
24
|
+
var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
25
25
|
const db = (yield* Service85).db;
|
|
26
|
-
return
|
|
26
|
+
return Service70.of({
|
|
27
27
|
get: Effect.fn("KV.get")(function* (key) {
|
|
28
28
|
return (yield* db.select({ value: KVTable2.value }).from(KVTable2).where(eq(KVTable2.key, key)).get().pipe(Effect.orDie))?.value;
|
|
29
29
|
}),
|
|
@@ -51,6 +51,6 @@ function prefixEnd(prefix) {
|
|
|
51
51
|
return;
|
|
52
52
|
return `${points.slice(0, index).join("")}${String.fromCodePoint(points[index].codePointAt(0) + 1)}`;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
54
|
+
var node73 = makeGlobalNode({ service: Service70, layer, deps: [node88] });
|
|
55
55
|
|
|
56
|
-
export {
|
|
56
|
+
export { Service70, node73, exports_kv };
|