@opencode/core 0.0.0-dev-19323 → 0.0.0-dev-19329
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +77 -77
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +67 -67
- package/dist/catalog.js +83 -83
- package/dist/chunks/{formatter-2re99ccz.js → websearch-05teyaep.js} +15 -15
- package/dist/chunks/{formatter-9aw1sd75.js → websearch-06mrgcsv.js} +27 -27
- package/dist/chunks/{formatter-nxm2phx8.js → websearch-0a2dwfaw.js} +11 -11
- package/dist/chunks/{formatter-9ph45b3w.js → websearch-0g3br09g.js} +4 -4
- package/dist/chunks/websearch-0mesazry.js +4 -0
- package/dist/chunks/{formatter-0paq2nw3.js → websearch-0paq2nw3.js} +1 -1
- package/dist/chunks/{formatter-0q0f95c6.js → websearch-0q0f95c6.js} +1 -1
- package/dist/chunks/{formatter-8zt8zdpt.js → websearch-0s4fbnn3.js} +31 -31
- package/dist/chunks/{formatter-wf7cxbta.js → websearch-0tcdq60f.js} +84 -84
- package/dist/chunks/{formatter-aatmr98r.js → websearch-0xepr98t.js} +43 -43
- package/dist/chunks/{formatter-4wxgrd29.js → websearch-15sfvttd.js} +6 -6
- package/dist/chunks/{formatter-x0511brf.js → websearch-18e56dsp.js} +4 -4
- package/dist/chunks/{formatter-1dazxqgg.js → websearch-1dazxqgg.js} +2 -2
- package/dist/chunks/{formatter-1dfhrqqs.js → websearch-1dfhrqqs.js} +2 -2
- package/dist/chunks/{formatter-nwd5g3n7.js → websearch-1rr79kmz.js} +12 -12
- package/dist/chunks/{formatter-nvwrp1re.js → websearch-1ry9mraq.js} +6 -6
- package/dist/chunks/{formatter-yzxhg32c.js → websearch-1wyvekfz.js} +11 -11
- package/dist/chunks/{formatter-21r38tys.js → websearch-21r38tys.js} +1 -1
- package/dist/chunks/{formatter-pj6fq5pb.js → websearch-285x9q22.js} +18 -18
- package/dist/chunks/{formatter-2a5m3afh.js → websearch-2a5m3afh.js} +1 -1
- package/dist/chunks/{formatter-x6erhwpm.js → websearch-2h9na2de.js} +28 -28
- package/dist/chunks/{formatter-4vbphvac.js → websearch-2jeyz3kj.js} +24 -24
- package/dist/chunks/{formatter-j6mvre0g.js → websearch-2k3rbpfn.js} +21 -21
- package/dist/chunks/{formatter-5zrbqe2b.js → websearch-2mn4c47k.js} +16 -16
- package/dist/chunks/{formatter-xsdh20fb.js → websearch-2pxk13gr.js} +5 -5
- package/dist/chunks/{formatter-0zmbch9c.js → websearch-2za57jae.js} +26 -26
- package/dist/chunks/{formatter-vykq01h1.js → websearch-334rw752.js} +24 -24
- package/dist/chunks/{formatter-7czvajng.js → websearch-378w8nm6.js} +26 -26
- package/dist/chunks/{formatter-2f0bjgcj.js → websearch-37s12vcn.js} +5 -5
- package/dist/chunks/{formatter-4gaxfmfs.js → websearch-387ejgms.js} +13 -13
- package/dist/chunks/{formatter-rstnkd3y.js → websearch-38c819ax.js} +1 -1
- package/dist/chunks/{formatter-mqh1m71v.js → websearch-3afex4r4.js} +6 -6
- package/dist/chunks/{formatter-d9mhv265.js → websearch-3btp5q3h.js} +7 -7
- package/dist/chunks/{formatter-kzd68pqg.js → websearch-3c1tgrea.js} +5 -5
- package/dist/chunks/{formatter-3hepkmqq.js → websearch-3hepkmqq.js} +1 -1
- package/dist/chunks/{formatter-3smtnn6g.js → websearch-3smtnn6g.js} +1 -1
- package/dist/chunks/{formatter-3tvqynh2.js → websearch-3tvqynh2.js} +1 -1
- package/dist/chunks/{formatter-rdz329w6.js → websearch-3ykjgsne.js} +15 -15
- package/dist/chunks/{formatter-6s6gjz7c.js → websearch-44rs3ysg.js} +10 -10
- package/dist/chunks/{formatter-5hzqjfjf.js → websearch-4819gndr.js} +14 -14
- package/dist/chunks/{formatter-b7c0s4y2.js → websearch-48hhwy5w.js} +36 -36
- package/dist/chunks/{formatter-ax3qyspe.js → websearch-4crvm9b8.js} +10 -10
- package/dist/chunks/{formatter-qkcr7fg6.js → websearch-4f3vmzpw.js} +20 -20
- package/dist/chunks/{formatter-gv6qs0q8.js → websearch-4g5898cq.js} +6 -6
- package/dist/chunks/{formatter-hmq6fc40.js → websearch-4zap2cj4.js} +11 -11
- package/dist/chunks/{formatter-yjhz1ss9.js → websearch-55w4pjk1.js} +8 -8
- package/dist/chunks/{formatter-1ygqh575.js → websearch-56gdpj1q.js} +9 -9
- package/dist/chunks/{formatter-svnm6nqs.js → websearch-5771e8zs.js} +37 -33
- package/dist/chunks/{formatter-24yrwg43.js → websearch-57b6xfzc.js} +19 -19
- package/dist/chunks/{formatter-sxtajyff.js → websearch-59ksr2n4.js} +9 -9
- package/dist/chunks/{formatter-dkp9jbyh.js → websearch-5c083vn1.js} +16 -16
- package/dist/chunks/{formatter-5daktx2q.js → websearch-5daktx2q.js} +1 -1
- package/dist/chunks/{formatter-bn7csmb0.js → websearch-5k7yj39d.js} +47 -47
- package/dist/chunks/{formatter-s2vccmkj.js → websearch-5pfbsr5q.js} +28 -28
- package/dist/chunks/{formatter-5t3nmthw.js → websearch-5t3nmthw.js} +2 -2
- package/dist/chunks/{formatter-507eqkq3.js → websearch-6311qrfs.js} +11 -11
- package/dist/chunks/{formatter-h2r7bbkd.js → websearch-63zbbs1j.js} +8 -8
- package/dist/chunks/{formatter-669tq793.js → websearch-669tq793.js} +1 -1
- package/dist/chunks/{formatter-w1fjdxqa.js → websearch-690jvt19.js} +16 -16
- package/dist/chunks/{formatter-2z1344gj.js → websearch-6cstqhfs.js} +3 -3
- package/dist/chunks/{formatter-2402vzrj.js → websearch-6h73sxmp.js} +5 -5
- package/dist/chunks/{formatter-6jnybvqn.js → websearch-6jnybvqn.js} +2 -2
- package/dist/chunks/{formatter-6msgmcgs.js → websearch-6msgmcgs.js} +1 -1
- package/dist/chunks/{formatter-7eze2gq5.js → websearch-6xfhf4kq.js} +30 -30
- package/dist/chunks/{formatter-71q4at8m.js → websearch-71q4at8m.js} +1 -1
- package/dist/chunks/{formatter-4b6bntqd.js → websearch-74x46t3v.js} +1 -1
- package/dist/chunks/{formatter-7bmhse3q.js → websearch-7bmhse3q.js} +1 -1
- package/dist/chunks/{formatter-6ef2pfss.js → websearch-7c2n2wee.js} +15 -15
- package/dist/chunks/{formatter-jg7bke4g.js → websearch-7ced988x.js} +20 -20
- package/dist/chunks/websearch-7cjemnxc.js +247 -0
- package/dist/chunks/{formatter-fcrkznn8.js → websearch-7dqw4kz8.js} +5 -5
- package/dist/chunks/{formatter-vjdqq2ps.js → websearch-7fdaqwq5.js} +11 -11
- package/dist/chunks/{formatter-00832hy7.js → websearch-7j2qha59.js} +8 -8
- package/dist/chunks/{formatter-fewmpqq2.js → websearch-7qs6vq0e.js} +33 -33
- package/dist/chunks/{formatter-a2rjx51z.js → websearch-7rj90sty.js} +13 -13
- package/dist/chunks/{formatter-2kahp3dy.js → websearch-7y65vrff.js} +15 -15
- package/dist/chunks/{formatter-8d7r5vzw.js → websearch-8d7r5vzw.js} +1 -1
- package/dist/chunks/{formatter-sa2p75cm.js → websearch-8kbbh0w1.js} +9 -9
- package/dist/chunks/{formatter-q3m0pvtr.js → websearch-8m2ckye2.js} +23 -23
- package/dist/chunks/{formatter-8p4f9s12.js → websearch-8p4f9s12.js} +2 -2
- package/dist/chunks/{formatter-t8bhz2vr.js → websearch-8sghyhzw.js} +8 -8
- package/dist/chunks/{formatter-y7sdqeac.js → websearch-91nhymbr.js} +3 -3
- package/dist/chunks/{formatter-tnt0rc0p.js → websearch-93xwxhm0.js} +18 -18
- package/dist/chunks/{formatter-jtp7wgq3.js → websearch-942f7qpg.js} +6 -6
- package/dist/chunks/{formatter-ydmx1k2a.js → websearch-97hvk7xq.js} +24 -24
- package/dist/chunks/{formatter-bkb79wpa.js → websearch-99etmp5d.js} +5 -5
- package/dist/chunks/{formatter-pjmw00w1.js → websearch-9pv0dm11.js} +7 -7
- package/dist/chunks/{formatter-4999spj6.js → websearch-a0gcm80g.js} +26 -26
- package/dist/chunks/{formatter-a1bz86dw.js → websearch-a1bz86dw.js} +3 -3
- package/dist/chunks/{formatter-swg097y1.js → websearch-a26eawhe.js} +14 -14
- package/dist/chunks/{formatter-sdewe3f0.js → websearch-a55gzx1a.js} +20 -20
- package/dist/chunks/{formatter-67kygeqd.js → websearch-a5wtfydr.js} +4 -4
- package/dist/chunks/{formatter-3sv4a4je.js → websearch-a81kw550.js} +25 -25
- package/dist/chunks/{formatter-jw80jp6b.js → websearch-a8bn8zg0.js} +4 -4
- package/dist/chunks/{formatter-aaet6srn.js → websearch-aaet6srn.js} +2 -2
- package/dist/chunks/{formatter-v13qk5h6.js → websearch-ab2dwfas.js} +35 -35
- package/dist/chunks/{formatter-2ymxn29j.js → websearch-afe7vqbt.js} +22 -22
- package/dist/chunks/{formatter-3swc72ss.js → websearch-afsmvzt6.js} +25 -25
- package/dist/chunks/{formatter-jz0y62hq.js → websearch-arebr1bt.js} +57 -57
- package/dist/chunks/{formatter-54r2pn5z.js → websearch-arm85r5x.js} +4 -4
- package/dist/chunks/{formatter-15v2jbpx.js → websearch-arvb0n3z.js} +14 -14
- package/dist/chunks/{formatter-p5reg5b3.js → websearch-asgy4dhx.js} +20 -20
- package/dist/chunks/{formatter-w8bn9h5m.js → websearch-atr43f13.js} +28 -28
- package/dist/chunks/{formatter-snkd7br7.js → websearch-b0g171hr.js} +27 -27
- package/dist/chunks/{formatter-8fawk0wq.js → websearch-b14zgdmq.js} +4 -4
- package/dist/chunks/{formatter-6xkfsm7b.js → websearch-b5bq914g.js} +11 -11
- package/dist/chunks/{formatter-b6gygkdw.js → websearch-b6gygkdw.js} +2 -2
- package/dist/chunks/{formatter-b0stxe20.js → websearch-b6msbg5e.js} +9 -9
- package/dist/chunks/{formatter-5zx2pz03.js → websearch-b7y488fd.js} +5 -5
- package/dist/chunks/{formatter-pm66mswd.js → websearch-bdpr0v97.js} +20 -20
- package/dist/chunks/{formatter-x77360f3.js → websearch-begapzgx.js} +25 -25
- package/dist/chunks/{formatter-dep21bfz.js → websearch-bv56xrks.js} +4 -4
- package/dist/chunks/{formatter-j08z5txv.js → websearch-bvxtbtxk.js} +17 -17
- package/dist/chunks/{formatter-cmaetz9z.js → websearch-byj39j9m.js} +11 -11
- package/dist/chunks/{formatter-jakejc1k.js → websearch-bzad7s1k.js} +35 -35
- package/dist/chunks/{formatter-km6tcm3q.js → websearch-c3a448g7.js} +43 -43
- package/dist/chunks/{formatter-cfpkc3c9.js → websearch-cfpkc3c9.js} +2 -2
- package/dist/chunks/{formatter-gkammdw2.js → websearch-cg8jeepg.js} +78 -78
- package/dist/chunks/{formatter-05dy3mmw.js → websearch-cgkzk7v5.js} +32 -32
- package/dist/chunks/{formatter-e93dqa41.js → websearch-cw1zpsft.js} +44 -44
- package/dist/chunks/{formatter-jqb8tpfq.js → websearch-d0arqfyn.js} +2 -2
- package/dist/chunks/{formatter-d0b9w6zn.js → websearch-d39vvv45.js} +14 -14
- package/dist/chunks/{formatter-p72z5xx6.js → websearch-d9sn21bc.js} +2 -2
- package/dist/chunks/{formatter-spqcpneg.js → websearch-dcse214k.js} +6 -6
- package/dist/chunks/{formatter-0rz3ymjm.js → websearch-dgksc2sd.js} +30 -30
- package/dist/chunks/{formatter-tfkarycn.js → websearch-dq0shdwz.js} +10 -10
- package/dist/chunks/{formatter-hz7rxrk4.js → websearch-dqvx4yr7.js} +15 -15
- package/dist/chunks/{formatter-6ppv86n3.js → websearch-e1e4502e.js} +24 -24
- package/dist/chunks/{formatter-58gq70n5.js → websearch-e5xzc49q.js} +9 -9
- package/dist/chunks/websearch-e7cwfed2.js +22 -0
- package/dist/chunks/{formatter-mhkvc446.js → websearch-eq1pz5kg.js} +3 -3
- package/dist/chunks/{formatter-9zyah8pv.js → websearch-eshaqmyj.js} +29 -29
- package/dist/chunks/{formatter-etq0c3wd.js → websearch-etq0c3wd.js} +1 -1
- package/dist/chunks/websearch-evbegrn7.js +123 -0
- package/dist/chunks/{formatter-yyaa3q2x.js → websearch-ez5ddhv1.js} +7 -7
- package/dist/chunks/{formatter-85tfjvz5.js → websearch-f5w8syvq.js} +30 -30
- package/dist/chunks/{formatter-f828m53h.js → websearch-f828m53h.js} +2 -2
- package/dist/chunks/{formatter-78hqr335.js → websearch-f9tgbxqd.js} +4 -4
- package/dist/chunks/{formatter-y4zwryx6.js → websearch-ffypkg10.js} +11 -11
- package/dist/chunks/{formatter-kfpqrvxm.js → websearch-fj63e0d3.js} +14 -14
- package/dist/chunks/{formatter-3vq9ncec.js → websearch-fkazv5r1.js} +40 -42
- package/dist/chunks/{formatter-608425eb.js → websearch-fmayke6d.js} +10 -10
- package/dist/chunks/{formatter-2q8hwwwc.js → websearch-fpv6qd1b.js} +11 -11
- package/dist/chunks/{formatter-t8r3ep1g.js → websearch-fqvj2kck.js} +5 -5
- package/dist/chunks/{formatter-2g93c721.js → websearch-fsk7wvm8.js} +16 -16
- package/dist/chunks/{formatter-dsxwnv8x.js → websearch-fve1bw57.js} +24 -24
- package/dist/chunks/{formatter-fxbjtjnd.js → websearch-fxbjtjnd.js} +1 -1
- package/dist/chunks/{formatter-jy5b41x9.js → websearch-g00y01sj.js} +30 -30
- package/dist/chunks/{formatter-1s5bbqd2.js → websearch-g82gzaec.js} +5 -5
- package/dist/chunks/{formatter-aasq3zsm.js → websearch-gc8yf83v.js} +13 -13
- package/dist/chunks/{formatter-hden6f01.js → websearch-gcd0ehtm.js} +24 -24
- package/dist/chunks/{formatter-gd4qta3r.js → websearch-gd4qta3r.js} +1 -1
- package/dist/chunks/{formatter-gdvy8fx6.js → websearch-gdvy8fx6.js} +1 -1
- package/dist/chunks/{formatter-d481hhja.js → websearch-gh7c7re6.js} +27 -27
- package/dist/chunks/{formatter-dkg5h5h7.js → websearch-gm67693k.js} +38 -38
- package/dist/chunks/{formatter-th5km1p3.js → websearch-gv6a8nnw.js} +5 -5
- package/dist/chunks/{formatter-h03wrkyp.js → websearch-h03wrkyp.js} +2 -2
- package/dist/chunks/{formatter-xnqgmrgw.js → websearch-h1v3nefe.js} +18 -18
- package/dist/chunks/{formatter-h6vf3j39.js → websearch-h6vf3j39.js} +1 -1
- package/dist/chunks/{formatter-bha4atvq.js → websearch-hfdr1yjj.js} +4 -4
- package/dist/chunks/{formatter-e82z9tr0.js → websearch-hjt4xg1x.js} +7 -7
- package/dist/chunks/{formatter-hn57h045.js → websearch-hn57h045.js} +1 -1
- package/dist/chunks/{formatter-qte5z7bc.js → websearch-hnr5yq9h.js} +5 -5
- package/dist/chunks/{formatter-z817eph2.js → websearch-hqnfm370.js} +11 -11
- package/dist/chunks/{formatter-ss0awb04.js → websearch-j15mfg1p.js} +4 -4
- package/dist/chunks/{formatter-wzz0kxab.js → websearch-j311gd59.js} +4 -4
- package/dist/chunks/{formatter-f464wbzp.js → websearch-j4ddpc5s.js} +11 -11
- package/dist/chunks/{formatter-j56e64zr.js → websearch-j56e64zr.js} +1 -1
- package/dist/chunks/{formatter-2f04pwep.js → websearch-j7wq2tw5.js} +3 -3
- package/dist/chunks/{formatter-g1qe0q0d.js → websearch-ja84z3n9.js} +32 -32
- package/dist/chunks/{formatter-9tv941ec.js → websearch-jj6bfmkc.js} +35 -35
- package/dist/chunks/{formatter-8stavsj4.js → websearch-jvd3y3k4.js} +20 -20
- package/dist/chunks/{formatter-k52252t7.js → websearch-jwjk52g2.js} +4 -4
- package/dist/chunks/{formatter-7t5cqd0r.js → websearch-jx8g4evx.js} +9 -9
- package/dist/chunks/{formatter-z2g5x8r4.js → websearch-k6kbb44b.js} +13 -13
- package/dist/chunks/{formatter-kg06axw8.js → websearch-kg06axw8.js} +1 -1
- package/dist/chunks/{formatter-fmwg5sj2.js → websearch-kj5sb4b2.js} +12 -12
- package/dist/chunks/{formatter-9zswys26.js → websearch-kpvyk30t.js} +9 -9
- package/dist/chunks/{formatter-b2jx7zxs.js → websearch-kqddbhjm.js} +1 -1
- package/dist/chunks/{formatter-380vjcmd.js → websearch-ktbdk3tc.js} +1 -1
- package/dist/chunks/{formatter-2m5q4n8f.js → websearch-kwb21ekm.js} +46 -46
- package/dist/chunks/{formatter-d1kz70d9.js → websearch-kww9schw.js} +10 -10
- package/dist/chunks/{formatter-m5gt6gr4.js → websearch-m5mdrn9p.js} +21 -21
- package/dist/chunks/{formatter-m9w0rfyh.js → websearch-m9w0rfyh.js} +1 -1
- package/dist/chunks/{formatter-3mea1sze.js → websearch-mj2kz0jy.js} +11 -11
- package/dist/chunks/{formatter-mkcjrzeh.js → websearch-mkcjrzeh.js} +1 -1
- package/dist/chunks/{formatter-ezkasqsa.js → websearch-mqhpj7pr.js} +15 -15
- package/dist/chunks/{formatter-2nbt55tc.js → websearch-mvdg3mfe.js} +8 -8
- package/dist/chunks/{formatter-zbgrd7e9.js → websearch-n5vnxzpd.js} +1 -1
- package/dist/chunks/{formatter-63bt3mag.js → websearch-n6qqmqgy.js} +2 -2
- package/dist/chunks/{formatter-77tatc9x.js → websearch-n8msvv3r.js} +10 -10
- package/dist/chunks/{formatter-7zdm33ac.js → websearch-nbddwgy7.js} +10 -10
- package/dist/chunks/{formatter-xgwcrf73.js → websearch-nq6mme1h.js} +6 -6
- package/dist/chunks/{formatter-zy6n9aja.js → websearch-nsgtnfv3.js} +22 -22
- package/dist/chunks/{formatter-p1wf2k30.js → websearch-p1wf2k30.js} +2 -2
- package/dist/chunks/{formatter-ke5bg3pe.js → websearch-p41181a2.js} +10 -10
- package/dist/chunks/{formatter-paegk39x.js → websearch-paegk39x.js} +1 -1
- package/dist/chunks/{formatter-nek9n16k.js → websearch-pfqqfqdz.js} +4 -4
- package/dist/chunks/{formatter-rndh4q5e.js → websearch-pgqwvc05.js} +32 -32
- package/dist/chunks/{formatter-pjvnvgmy.js → websearch-pjvnvgmy.js} +1 -1
- package/dist/chunks/{formatter-pknna89w.js → websearch-pknna89w.js} +1 -1
- package/dist/chunks/{formatter-reydm93y.js → websearch-pmc9emny.js} +41 -41
- package/dist/chunks/{formatter-pmr4s4kc.js → websearch-pmr4s4kc.js} +1 -1
- package/dist/chunks/{formatter-at0srrj9.js → websearch-psq9ezjm.js} +17 -17
- package/dist/chunks/{formatter-pbxc810x.js → websearch-pwhfzjn6.js} +4 -4
- package/dist/chunks/{formatter-44c3xn2h.js → websearch-px4zejfa.js} +9 -9
- package/dist/chunks/{formatter-2cmv458r.js → websearch-q4fmv0xv.js} +5 -5
- package/dist/chunks/{formatter-h1n238ac.js → websearch-q4jfn25e.js} +4 -4
- package/dist/chunks/{formatter-mhj2gpj9.js → websearch-qc9721hg.js} +3 -3
- package/dist/chunks/{formatter-jbfk6qbe.js → websearch-qhf0djj0.js} +8 -8
- package/dist/chunks/{formatter-v5dkyp31.js → websearch-qm0v3jhh.js} +7 -7
- package/dist/chunks/{formatter-mmtbb532.js → websearch-qnpzwfyv.js} +37 -37
- package/dist/chunks/{formatter-fbv7gz6y.js → websearch-qpw72wst.js} +32 -32
- package/dist/chunks/{formatter-qsdy395h.js → websearch-qsdy395h.js} +1 -1
- package/dist/chunks/{formatter-apjqksq4.js → websearch-rgz11k33.js} +3 -3
- package/dist/chunks/{formatter-mvb3ydwb.js → websearch-s0z04k8w.js} +11 -11
- package/dist/chunks/{formatter-5fs2kqn8.js → websearch-s3bcnxj7.js} +15 -15
- package/dist/chunks/{formatter-eaj1djv9.js → websearch-s8d7rejh.js} +6 -6
- package/dist/chunks/{formatter-p44d8wdy.js → websearch-s8zy8myc.js} +5 -5
- package/dist/chunks/{formatter-cap7pekz.js → websearch-snnskafs.js} +5 -5
- package/dist/chunks/{formatter-tazgh4e4.js → websearch-tazgh4e4.js} +1 -1
- package/dist/chunks/{formatter-tcezcvh9.js → websearch-tcezcvh9.js} +1 -1
- package/dist/chunks/{formatter-tdstcens.js → websearch-tdstcens.js} +1 -1
- package/dist/chunks/{formatter-fcmtdmz7.js → websearch-texzms63.js} +9 -9
- package/dist/chunks/{formatter-dyjcz8ay.js → websearch-thbkm2hy.js} +38 -38
- package/dist/chunks/{formatter-v2e5xjra.js → websearch-tm3xsw7s.js} +24 -24
- package/dist/chunks/{formatter-y1jmkgm7.js → websearch-tmhsdwgv.js} +72 -25
- package/dist/chunks/{formatter-56n5z1rw.js → websearch-tnrgf8qg.js} +24 -24
- package/dist/chunks/{formatter-rbbz2e5e.js → websearch-ts0zqzjb.js} +169 -169
- package/dist/chunks/{formatter-tvtrv512.js → websearch-tvtrv512.js} +1 -1
- package/dist/chunks/{formatter-1dxndaps.js → websearch-tw3swqcv.js} +6 -6
- package/dist/chunks/{formatter-v1faaxn9.js → websearch-v1faaxn9.js} +1 -1
- package/dist/chunks/{formatter-k6f2n2fy.js → websearch-v2mmqvh7.js} +5 -5
- package/dist/chunks/{formatter-ptdz73pj.js → websearch-v3m4c232.js} +14 -14
- package/dist/chunks/{formatter-844ef7ks.js → websearch-v4hmzr0r.js} +8 -8
- package/dist/chunks/{formatter-85w66kng.js → websearch-vbdsxtwt.js} +9 -9
- package/dist/chunks/{formatter-h11qs7jk.js → websearch-vdkcs6ev.js} +17 -17
- package/dist/chunks/{formatter-veqvce7d.js → websearch-veqvce7d.js} +1 -1
- package/dist/chunks/{formatter-69vs0mm5.js → websearch-vk8krtfx.js} +6 -6
- package/dist/chunks/{formatter-7ybwwvvx.js → websearch-vnk6y1a3.js} +3 -3
- package/dist/chunks/{formatter-6cybjkxz.js → websearch-vt76p1zz.js} +15 -15
- package/dist/chunks/{formatter-15cfnja2.js → websearch-vv1rytwg.js} +23 -23
- package/dist/chunks/{formatter-vzcthcp8.js → websearch-vzcthcp8.js} +1 -1
- package/dist/chunks/{formatter-k7d0894y.js → websearch-w12rp218.js} +3 -3
- package/dist/chunks/{formatter-w3wsvvr9.js → websearch-w3wsvvr9.js} +1 -1
- package/dist/chunks/{formatter-w79zsp0s.js → websearch-w79zsp0s.js} +1 -1
- package/dist/chunks/{formatter-ft2ydrms.js → websearch-w7ec13p8.js} +8 -8
- package/dist/chunks/{formatter-456sctqq.js → websearch-wcjyc11q.js} +8 -8
- package/dist/chunks/{formatter-wd87259q.js → websearch-wd87259q.js} +1 -1
- package/dist/chunks/{formatter-as2ntxq9.js → websearch-wgwah134.js} +16 -16
- package/dist/chunks/{formatter-q1c4k7jk.js → websearch-wpmdzrrb.js} +1 -1
- package/dist/chunks/{formatter-90wxkfyp.js → websearch-wpmye8b7.js} +292 -292
- package/dist/chunks/{formatter-4bajp7bm.js → websearch-wqjxxe4w.js} +17 -17
- package/dist/chunks/{formatter-v219cx7c.js → websearch-wrfwz8fz.js} +15 -15
- package/dist/chunks/{formatter-bjkwvj0b.js → websearch-wsm6apwn.js} +19 -19
- package/dist/chunks/{formatter-feyq9nz9.js → websearch-wvrt9hy9.js} +18 -18
- package/dist/chunks/{formatter-dmec30x4.js → websearch-wx5m0ks4.js} +27 -27
- package/dist/chunks/{formatter-x1ezjp6w.js → websearch-x1ezjp6w.js} +1 -1
- package/dist/chunks/{formatter-x43y2vfs.js → websearch-x43y2vfs.js} +2 -2
- package/dist/chunks/{formatter-kcwf74x3.js → websearch-xkjyxwdt.js} +1 -1
- package/dist/chunks/{formatter-y1fvbwt7.js → websearch-y1fvbwt7.js} +1 -1
- package/dist/chunks/{formatter-wpdn7j4k.js → websearch-y1p6v3bq.js} +13 -13
- package/dist/chunks/{formatter-c2p1vz36.js → websearch-y3tv5ajv.js} +18 -18
- package/dist/chunks/{formatter-1djm1bap.js → websearch-y5ydn9hy.js} +14 -14
- package/dist/chunks/{formatter-y71avatq.js → websearch-y71avatq.js} +1 -1
- package/dist/chunks/{formatter-fythdanz.js → websearch-ynatkf7q.js} +9 -9
- package/dist/chunks/{formatter-yp2x3t23.js → websearch-yp2x3t23.js} +1 -1
- package/dist/chunks/{formatter-j3xb24h1.js → websearch-yqp1h1jz.js} +18 -18
- package/dist/chunks/{formatter-yrhqyw5v.js → websearch-yrhqyw5v.js} +1 -1
- package/dist/chunks/{formatter-yrznvahk.js → websearch-yrznvahk.js} +2 -2
- package/dist/chunks/{formatter-eesadx08.js → websearch-yv5eknx8.js} +50 -50
- package/dist/chunks/{formatter-c23pbdtg.js → websearch-yw0264dm.js} +13 -13
- package/dist/chunks/{formatter-6nm7gc1x.js → websearch-z0b94crh.js} +17 -17
- package/dist/chunks/{formatter-z0bkrqjs.js → websearch-z0bkrqjs.js} +1 -1
- package/dist/chunks/{formatter-x0sgqvmj.js → websearch-z63466qb.js} +14 -14
- package/dist/chunks/{formatter-z63w68vq.js → websearch-z63w68vq.js} +2 -2
- package/dist/chunks/{formatter-x1vyefq1.js → websearch-zebjdrv3.js} +7 -7
- package/dist/chunks/{formatter-zeh9ct20.js → websearch-zeh9ct20.js} +2 -2
- package/dist/chunks/{formatter-kr779903.js → websearch-zg18cws0.js} +31 -31
- package/dist/chunks/{formatter-zr2ceqn5.js → websearch-zr2ceqn5.js} +1 -1
- package/dist/chunks/{formatter-zxq2ej10.js → websearch-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +115 -115
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +113 -113
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +64 -64
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +360 -359
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +68 -68
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +96 -96
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +91 -91
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +7 -7
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +3 -3
- package/dist/instance.js +351 -350
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +128 -128
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +350 -349
- package/dist/location.js +82 -82
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +84 -84
- package/dist/model.js +10 -10
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +76 -76
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +100 -100
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -97
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +80 -80
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +79 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -0
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -156
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +339 -338
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +83 -83
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -92
- package/dist/reference/instructions.js +82 -82
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +147 -147
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +120 -120
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +82 -82
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +1 -1
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +119 -119
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +149 -149
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +86 -86
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +121 -121
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -117
- package/dist/tool/plugin/question.js +100 -100
- package/dist/tool/plugin/read.js +117 -117
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +105 -105
- package/dist/tool/plugin/websearch.js +107 -107
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/plugin/provider/poe.d.ts +2 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +1 -1
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +340 -339
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +8 -8
- package/dist/chunks/formatter-gbadjzag.js +0 -4
- package/dist/chunks/formatter-xyxwga5q.js +0 -22
- package/dist/chunks/formatter-y4zsdjyj.js +0 -247
- /package/dist/chunks/{formatter-0qkdqm5v.js → websearch-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{formatter-0zkw76rk.js → websearch-0zkw76rk.js} +0 -0
- /package/dist/chunks/{formatter-17cy0kzp.js → websearch-17cy0kzp.js} +0 -0
- /package/dist/chunks/{formatter-1cnp2v09.js → websearch-1cnp2v09.js} +0 -0
- /package/dist/chunks/{formatter-1kg9ymc8.js → websearch-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{formatter-2710q6r3.js → websearch-2710q6r3.js} +0 -0
- /package/dist/chunks/{formatter-2axfhc9x.js → websearch-2axfhc9x.js} +0 -0
- /package/dist/chunks/{formatter-2c3vjs8z.js → websearch-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{formatter-359p4xyc.js → websearch-359p4xyc.js} +0 -0
- /package/dist/chunks/{formatter-3asan66x.js → websearch-3asan66x.js} +0 -0
- /package/dist/chunks/{formatter-3v8g72cx.js → websearch-3v8g72cx.js} +0 -0
- /package/dist/chunks/{formatter-3w5fmr99.js → websearch-3w5fmr99.js} +0 -0
- /package/dist/chunks/{formatter-3wcehsnq.js → websearch-3wcehsnq.js} +0 -0
- /package/dist/chunks/{formatter-43n2bw4t.js → websearch-43n2bw4t.js} +0 -0
- /package/dist/chunks/{formatter-4knz6hnm.js → websearch-4knz6hnm.js} +0 -0
- /package/dist/chunks/{formatter-4y7fprxs.js → websearch-4y7fprxs.js} +0 -0
- /package/dist/chunks/{formatter-53557ph1.js → websearch-53557ph1.js} +0 -0
- /package/dist/chunks/{formatter-550bvhaj.js → websearch-550bvhaj.js} +0 -0
- /package/dist/chunks/{formatter-6prwharc.js → websearch-6prwharc.js} +0 -0
- /package/dist/chunks/{formatter-7akdwqpd.js → websearch-7akdwqpd.js} +0 -0
- /package/dist/chunks/{formatter-7m9af43g.js → websearch-7m9af43g.js} +0 -0
- /package/dist/chunks/{formatter-822emrt2.js → websearch-822emrt2.js} +0 -0
- /package/dist/chunks/{formatter-88xbtdfr.js → websearch-88xbtdfr.js} +0 -0
- /package/dist/chunks/{formatter-8n3pysct.js → websearch-8n3pysct.js} +0 -0
- /package/dist/chunks/{formatter-922hggd3.js → websearch-922hggd3.js} +0 -0
- /package/dist/chunks/{formatter-9a4afbnw.js → websearch-9a4afbnw.js} +0 -0
- /package/dist/chunks/{formatter-9rqn6x4v.js → websearch-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{formatter-a1tpkmh4.js → websearch-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{formatter-a6k6eb26.js → websearch-a6k6eb26.js} +0 -0
- /package/dist/chunks/{formatter-af5trqkr.js → websearch-af5trqkr.js} +0 -0
- /package/dist/chunks/{formatter-afrmfg78.js → websearch-afrmfg78.js} +0 -0
- /package/dist/chunks/{formatter-aqzs7mqg.js → websearch-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{formatter-atq7p7m5.js → websearch-atq7p7m5.js} +0 -0
- /package/dist/chunks/{formatter-bkyjaxrp.js → websearch-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{formatter-bmr6ed5q.js → websearch-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{formatter-cf4snx6d.js → websearch-cf4snx6d.js} +0 -0
- /package/dist/chunks/{formatter-cvy3z8tj.js → websearch-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{formatter-d9fn303g.js → websearch-d9fn303g.js} +0 -0
- /package/dist/chunks/{formatter-d9jj8t3e.js → websearch-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{formatter-dajrwvna.js → websearch-dajrwvna.js} +0 -0
- /package/dist/chunks/{formatter-dap0rakb.js → websearch-dap0rakb.js} +0 -0
- /package/dist/chunks/{formatter-df08tz66.js → websearch-df08tz66.js} +0 -0
- /package/dist/chunks/{formatter-dy18nga0.js → websearch-dy18nga0.js} +0 -0
- /package/dist/chunks/{formatter-e5kj55wp.js → websearch-e5kj55wp.js} +0 -0
- /package/dist/chunks/{formatter-e73j6tqm.js → websearch-e73j6tqm.js} +0 -0
- /package/dist/chunks/{formatter-ec1grn59.js → websearch-ec1grn59.js} +0 -0
- /package/dist/chunks/{formatter-eh3zwz77.js → websearch-eh3zwz77.js} +0 -0
- /package/dist/chunks/{formatter-emrn6kk6.js → websearch-emrn6kk6.js} +0 -0
- /package/dist/chunks/{formatter-f0mxakyp.js → websearch-f0mxakyp.js} +0 -0
- /package/dist/chunks/{formatter-f6n9ztr4.js → websearch-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{formatter-faypxj3z.js → websearch-faypxj3z.js} +0 -0
- /package/dist/chunks/{formatter-fd410y7t.js → websearch-fd410y7t.js} +0 -0
- /package/dist/chunks/{formatter-fxgpk5d8.js → websearch-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{formatter-g4wezp1m.js → websearch-g4wezp1m.js} +0 -0
- /package/dist/chunks/{formatter-g86h250q.js → websearch-g86h250q.js} +0 -0
- /package/dist/chunks/{formatter-gebd4c9n.js → websearch-gebd4c9n.js} +0 -0
- /package/dist/chunks/{formatter-gftt206x.js → websearch-gftt206x.js} +0 -0
- /package/dist/chunks/{formatter-hjbc5kem.js → websearch-hjbc5kem.js} +0 -0
- /package/dist/chunks/{formatter-hk9envan.js → websearch-hk9envan.js} +0 -0
- /package/dist/chunks/{formatter-hrnqkpcd.js → websearch-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{formatter-j2ntwpah.js → websearch-j2ntwpah.js} +0 -0
- /package/dist/chunks/{formatter-j5zkgpj8.js → websearch-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{formatter-jr7sbwjy.js → websearch-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{formatter-jwfs4k6c.js → websearch-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{formatter-jzg6c2d5.js → websearch-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{formatter-mp448xyj.js → websearch-mp448xyj.js} +0 -0
- /package/dist/chunks/{formatter-msx8hqn2.js → websearch-msx8hqn2.js} +0 -0
- /package/dist/chunks/{formatter-n05xt0ee.js → websearch-n05xt0ee.js} +0 -0
- /package/dist/chunks/{formatter-n3j8tn72.js → websearch-n3j8tn72.js} +0 -0
- /package/dist/chunks/{formatter-njntx4h6.js → websearch-njntx4h6.js} +0 -0
- /package/dist/chunks/{formatter-paphc93g.js → websearch-paphc93g.js} +0 -0
- /package/dist/chunks/{formatter-q3sfg36h.js → websearch-q3sfg36h.js} +0 -0
- /package/dist/chunks/{formatter-q74kybfr.js → websearch-q74kybfr.js} +0 -0
- /package/dist/chunks/{formatter-qaymkmh1.js → websearch-qaymkmh1.js} +0 -0
- /package/dist/chunks/{formatter-qb87gjwd.js → websearch-qb87gjwd.js} +0 -0
- /package/dist/chunks/{formatter-qfa1cgps.js → websearch-qfa1cgps.js} +0 -0
- /package/dist/chunks/{formatter-qrg20bc0.js → websearch-qrg20bc0.js} +0 -0
- /package/dist/chunks/{formatter-rcb2kzg1.js → websearch-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{formatter-sdp7kfr6.js → websearch-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{formatter-sk3qaz4a.js → websearch-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{formatter-ssg3fenm.js → websearch-ssg3fenm.js} +0 -0
- /package/dist/chunks/{formatter-twg0f83k.js → websearch-twg0f83k.js} +0 -0
- /package/dist/chunks/{formatter-w803qqfp.js → websearch-w803qqfp.js} +0 -0
- /package/dist/chunks/{formatter-wer8tq1h.js → websearch-wer8tq1h.js} +0 -0
- /package/dist/chunks/{formatter-wtztk69x.js → websearch-wtztk69x.js} +0 -0
- /package/dist/chunks/{formatter-x0ckcb58.js → websearch-x0ckcb58.js} +0 -0
- /package/dist/chunks/{formatter-x61499pn.js → websearch-x61499pn.js} +0 -0
- /package/dist/chunks/{formatter-y44na4kk.js → websearch-y44na4kk.js} +0 -0
- /package/dist/chunks/{formatter-y8cydn3q.js → websearch-y8cydn3q.js} +0 -0
- /package/dist/chunks/{formatter-ygaqb7jw.js → websearch-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{formatter-ym463w8f.js → websearch-ym463w8f.js} +0 -0
- /package/dist/chunks/{formatter-z9919s4g.js → websearch-z9919s4g.js} +0 -0
|
@@ -3,34 +3,34 @@ import {
|
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2,
|
|
5
5
|
typeFollowing2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./websearch-2a5m3afh.js";
|
|
7
7
|
import {
|
|
8
8
|
execDefaults2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./websearch-1dazxqgg.js";
|
|
10
10
|
import {
|
|
11
11
|
makeLocalDriver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./websearch-b6gygkdw.js";
|
|
13
13
|
import {
|
|
14
14
|
makeMemoryDriver2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./websearch-aaet6srn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service75,
|
|
18
|
+
node80
|
|
19
|
+
} from "./websearch-wgwah134.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service61,
|
|
22
|
+
node65
|
|
23
|
+
} from "./websearch-378w8nm6.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./websearch-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/environment/environment.ts
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service48,
|
|
33
|
+
node: () => node51
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service48,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node51,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service48 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
|
-
const location = yield*
|
|
66
|
-
const workspace = yield*
|
|
65
|
+
const location = yield* Service75;
|
|
66
|
+
const workspace = yield* Service61;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service48.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node51 = makeLocationNode({
|
|
71
|
+
service: Service48,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node80, node65]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service48, node51, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,30 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./websearch-b14zgdmq.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Event20
|
|
7
|
+
} from "./websearch-dgksc2sd.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID6,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./websearch-g00y01sj.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID8,
|
|
14
14
|
mergeOverlay2,
|
|
15
15
|
mergeHeaders2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./websearch-942f7qpg.js";
|
|
17
|
+
import {
|
|
18
|
+
ID11,
|
|
19
|
+
Input14,
|
|
20
|
+
Response2
|
|
21
|
+
} from "./websearch-afsmvzt6.js";
|
|
17
22
|
|
|
18
23
|
// src/plugin/provider/opencode.ts
|
|
19
24
|
import { Duration, Effect, Equal, Schema, Semaphore, Stream } from "effect";
|
|
20
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
|
-
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
26
|
+
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
22
27
|
import { ConfigProvider } from "@opencode/schema/config/provider";
|
|
23
28
|
import { Money } from "@opencode/schema/money";
|
|
24
29
|
var defaultServer = "https://opencode.ai/console";
|
|
25
30
|
var clientID = "opencode-cli";
|
|
26
31
|
var methodID = MethodID2.make("device");
|
|
27
|
-
var RemoteResponse = Schema.Struct({
|
|
32
|
+
var RemoteResponse = Schema.Struct({
|
|
33
|
+
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
34
|
+
websearch: Schema.Struct({
|
|
35
|
+
providerID: ID11
|
|
36
|
+
}).pipe(Schema.optional)
|
|
37
|
+
});
|
|
28
38
|
var Device = Schema.Struct({
|
|
29
39
|
device_code: Schema.String,
|
|
30
40
|
user_code: Schema.String,
|
|
@@ -43,7 +53,7 @@ var User = Schema.Struct({ id: Schema.String, email: Schema.String });
|
|
|
43
53
|
var Org = Schema.Struct({ id: Schema.String, name: Schema.String });
|
|
44
54
|
function oauth(http) {
|
|
45
55
|
return {
|
|
46
|
-
integrationID:
|
|
56
|
+
integrationID: ID6.make("opencode"),
|
|
47
57
|
method: {
|
|
48
58
|
id: methodID,
|
|
49
59
|
type: "oauth",
|
|
@@ -69,8 +79,7 @@ function oauth(http) {
|
|
|
69
79
|
};
|
|
70
80
|
}),
|
|
71
81
|
refresh: (credential) => Effect.gen(function* () {
|
|
72
|
-
const
|
|
73
|
-
const token = yield* post(http, `${server}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
|
|
82
|
+
const token = yield* post(http, `${serverUrl(credential)}/auth/device/token`, { grant_type: "refresh_token", refresh_token: credential.refresh, client_id: clientID }, Token);
|
|
74
83
|
return {
|
|
75
84
|
...credential,
|
|
76
85
|
access: token.access_token,
|
|
@@ -87,14 +96,14 @@ var OpencodePlugin2 = define({
|
|
|
87
96
|
const bus = yield* Service79;
|
|
88
97
|
const http = yield* HttpClient.HttpClient;
|
|
89
98
|
const loading = Semaphore.makeUnsafe(1);
|
|
90
|
-
let snapshot = {
|
|
99
|
+
let snapshot = { config: undefined, connection: undefined };
|
|
91
100
|
const load = Effect.fn("OpencodePlugin.load")(function* () {
|
|
92
101
|
const connection = yield* ctx.integration.connection.active("opencode");
|
|
93
102
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
94
103
|
return;
|
|
95
104
|
})) : undefined;
|
|
96
|
-
const
|
|
97
|
-
return {
|
|
105
|
+
const config = credential ? yield* fetchConfig(http, credential).pipe(Effect.catch((cause) => Effect.logWarning("failed to load OpenCode provider config", { cause }).pipe(Effect.as(undefined)))) : undefined;
|
|
106
|
+
return { config, connection };
|
|
98
107
|
});
|
|
99
108
|
yield* ctx.integration.transform((editor) => {
|
|
100
109
|
editor.update("opencode", (integration) => {
|
|
@@ -105,12 +114,12 @@ var OpencodePlugin2 = define({
|
|
|
105
114
|
});
|
|
106
115
|
snapshot = yield* load();
|
|
107
116
|
yield* ctx.catalog.transform((catalog) => {
|
|
108
|
-
for (const [providerID, item] of Object.entries(snapshot.providers ?? {})) {
|
|
117
|
+
for (const [providerID, item] of Object.entries(snapshot.config?.providers ?? {})) {
|
|
109
118
|
const source = catalog.provider.get(item.canonical ?? providerID);
|
|
110
119
|
catalog.provider.update(providerID, (provider) => {
|
|
111
120
|
if (source && source.provider !== provider)
|
|
112
121
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
113
|
-
provider.integrationID =
|
|
122
|
+
provider.integrationID = ID6.make("opencode");
|
|
114
123
|
if (item.canonical !== undefined)
|
|
115
124
|
provider.canonical = item.canonical;
|
|
116
125
|
if (item.name !== undefined)
|
|
@@ -173,10 +182,10 @@ var OpencodePlugin2 = define({
|
|
|
173
182
|
});
|
|
174
183
|
}
|
|
175
184
|
}
|
|
176
|
-
const item = catalog.provider.get(
|
|
185
|
+
const item = catalog.provider.get(ID8.opencode);
|
|
177
186
|
if (!item)
|
|
178
187
|
return;
|
|
179
|
-
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.
|
|
188
|
+
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
180
189
|
catalog.provider.update(item.provider.id, (provider) => {
|
|
181
190
|
if (!hasKey) {
|
|
182
191
|
provider.activation = "enabled";
|
|
@@ -193,26 +202,64 @@ var OpencodePlugin2 = define({
|
|
|
193
202
|
});
|
|
194
203
|
}
|
|
195
204
|
});
|
|
205
|
+
yield* ctx.websearch.transform((editor) => {
|
|
206
|
+
const descriptor = snapshot.config?.websearch;
|
|
207
|
+
const connection = snapshot.connection;
|
|
208
|
+
if (!descriptor || !connection)
|
|
209
|
+
return;
|
|
210
|
+
editor.add({
|
|
211
|
+
id: descriptor.providerID,
|
|
212
|
+
name: "OpenCode",
|
|
213
|
+
execute: (input) => Effect.gen(function* () {
|
|
214
|
+
const active = yield* ctx.integration.connection.active("opencode");
|
|
215
|
+
if (!active || (connection.type === "credential" ? active.type !== "credential" || active.id !== connection.id : active.type !== "env" || active.name !== connection.name)) {
|
|
216
|
+
return yield* Effect.fail(new Error("OpenCode Console connection changed"));
|
|
217
|
+
}
|
|
218
|
+
const credential = yield* ctx.integration.connection.resolve(active);
|
|
219
|
+
if (!credential)
|
|
220
|
+
return yield* Effect.fail(new Error("OpenCode Console is not connected"));
|
|
221
|
+
const metadata = credential.metadata;
|
|
222
|
+
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
223
|
+
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
224
|
+
const server = yield* normalizeServer(serverUrl(credential));
|
|
225
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
226
|
+
query: input.query,
|
|
227
|
+
providerID: descriptor.providerID
|
|
228
|
+
}));
|
|
229
|
+
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "error" }), Effect.flatMap(HttpClientResponse.schemaBodyJson(Response2)), Effect.scoped, Effect.timeoutOrElse({
|
|
230
|
+
duration: Duration.seconds(25),
|
|
231
|
+
orElse: () => Effect.fail(new Error("OpenCode web search request timed out"))
|
|
232
|
+
}));
|
|
233
|
+
if (response.providerID !== descriptor.providerID) {
|
|
234
|
+
return yield* Effect.fail(new Error(`OpenCode web search returned provider ${response.providerID} instead of ${descriptor.providerID}`));
|
|
235
|
+
}
|
|
236
|
+
return response.results;
|
|
237
|
+
})
|
|
238
|
+
});
|
|
239
|
+
editor.default.set(descriptor.providerID);
|
|
240
|
+
});
|
|
196
241
|
const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
|
|
197
242
|
snapshot = next;
|
|
198
|
-
yield* ctx.catalog.reload();
|
|
243
|
+
yield* Effect.all([ctx.catalog.reload(), ctx.websearch.reload()], { concurrency: 2, discard: true });
|
|
199
244
|
});
|
|
200
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(apply)));
|
|
201
|
-
yield* bus.subscribe(
|
|
246
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID6.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
202
247
|
yield* Effect.sleep(Duration.minutes(10)).pipe(Effect.andThen(loading.withPermit(load().pipe(Effect.flatMap((next) => Equal.equals(snapshot, next) ? Effect.void : apply(next))))), Effect.forever, Effect.forkScoped);
|
|
203
248
|
})
|
|
204
249
|
});
|
|
205
|
-
function
|
|
250
|
+
function fetchConfig(http, value) {
|
|
206
251
|
const metadata = value.metadata;
|
|
207
|
-
const server = typeof metadata?.server === "string" ? metadata.server : defaultServer;
|
|
208
252
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
209
253
|
const token = value.type === "oauth" ? value.access : value.key;
|
|
210
|
-
return http.execute(HttpClientRequest.get(`${
|
|
254
|
+
return http.execute(HttpClientRequest.get(`${serverUrl(value)}/api/v2/config`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}))).pipe(Effect.flatMap((response) => {
|
|
211
255
|
if (response.status === 404)
|
|
212
256
|
return Effect.undefined;
|
|
213
|
-
return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse))
|
|
257
|
+
return HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(RemoteResponse)));
|
|
214
258
|
}));
|
|
215
259
|
}
|
|
260
|
+
function serverUrl(value) {
|
|
261
|
+
return typeof value.metadata?.server === "string" ? value.metadata.server : defaultServer;
|
|
262
|
+
}
|
|
216
263
|
function withoutCredentials(body) {
|
|
217
264
|
return body && Object.fromEntries(Object.entries(body).filter(([key]) => !["apiKey", "authToken", "accessToken"].includes(key)));
|
|
218
265
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./websearch-b14zgdmq.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./websearch-kg06axw8.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./websearch-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/command.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Command: () =>
|
|
16
|
-
Event: () =>
|
|
13
|
+
var exports_command5 = {};
|
|
14
|
+
__export(exports_command5, {
|
|
15
|
+
Command: () => exports_command5,
|
|
16
|
+
Event: () => Event10,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info18,
|
|
19
|
+
NotFoundError: () => NotFoundError6,
|
|
20
|
+
Service: () => Service52,
|
|
21
|
+
layer: () => layer23,
|
|
22
|
+
node: () => node55
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event10 } from "@opencode/schema/command";
|
|
28
|
+
var Info18 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError6 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,9 +39,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service52 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var layer23 = Layer.effect(Service52, Effect.gen(function* () {
|
|
45
45
|
const bus = yield* Service79;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
@@ -51,11 +51,11 @@ var layer18 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info18.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service52.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,14 +66,14 @@ var layer18 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError6({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
74
|
+
var node55 = makeLocationNode({
|
|
75
|
+
service: Service52,
|
|
76
|
+
layer: layer23,
|
|
77
77
|
deps: [node84]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info18, NotFoundError6, ExecutionError2, Service52, layer23, node55, exports_command5, Event10 };
|