@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
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OAuth3
|
|
3
|
+
} from "./websearch-dgksc2sd.js";
|
|
4
|
+
import {
|
|
5
|
+
ID6,
|
|
6
|
+
MethodID2
|
|
7
|
+
} from "./websearch-g00y01sj.js";
|
|
8
|
+
import {
|
|
9
|
+
success2,
|
|
10
|
+
error2
|
|
11
|
+
} from "./websearch-pjvnvgmy.js";
|
|
12
|
+
|
|
13
|
+
// src/plugin/provider/poe.ts
|
|
14
|
+
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
|
+
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
16
|
+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
17
|
+
var integrationID = ID6.make("poe");
|
|
18
|
+
var methodID = MethodID2.make("browser");
|
|
19
|
+
var clientID = "client_728290227fc048cc9262091a1ea197ea";
|
|
20
|
+
var issuer = "https://poe.com";
|
|
21
|
+
var maxExpiry = 8640000000000000;
|
|
22
|
+
var Token = Schema.Struct({
|
|
23
|
+
api_key: Schema.Trim.check(Schema.isNonEmpty(), Schema.isPattern(/^\S+$/)),
|
|
24
|
+
api_key_expires_in: Schema.optional(Schema.NullOr(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))))
|
|
25
|
+
});
|
|
26
|
+
var decodeError = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ error: Schema.optional(Schema.String), error_description: Schema.optional(Schema.String) })));
|
|
27
|
+
var PoePlugin2 = define({
|
|
28
|
+
id: "opencode.provider.poe",
|
|
29
|
+
effect: Effect.fn(function* (ctx) {
|
|
30
|
+
const http = yield* HttpClient.HttpClient;
|
|
31
|
+
yield* ctx.integration.transform((editor) => {
|
|
32
|
+
editor.method.update({
|
|
33
|
+
integrationID,
|
|
34
|
+
method: { id: methodID, type: "oauth", label: "Login with Poe (browser)" },
|
|
35
|
+
refresh: (value) => Clock.currentTimeMillis.pipe(Effect.flatMap((now) => value.expires > now ? Effect.succeed(value) : Effect.fail(new Error("Poe API key expired. Log in with Poe again.")))),
|
|
36
|
+
authorize: () => Effect.gen(function* () {
|
|
37
|
+
const verifier = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
|
|
38
|
+
const challenge = Buffer.from(yield* Effect.promise(() => crypto.subtle.digest("SHA-256", new TextEncoder().encode(verifier)))).toString("base64url");
|
|
39
|
+
const state = Buffer.from(crypto.getRandomValues(new Uint8Array(32))).toString("base64url");
|
|
40
|
+
const callback = yield* Deferred.make();
|
|
41
|
+
const { createServer } = yield* Effect.promise(() => import("node:http"));
|
|
42
|
+
const { EventEmitter } = yield* Effect.promise(() => import("node:events"));
|
|
43
|
+
const server = createServer((request, response) => {
|
|
44
|
+
const url = new URL(request.url ?? "/", "http://127.0.0.1");
|
|
45
|
+
if (request.method !== "GET" || url.pathname !== "/callback") {
|
|
46
|
+
response.writeHead(404).end();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const error = callbackError(url.searchParams, state);
|
|
50
|
+
if (error) {
|
|
51
|
+
response.writeHead(400, { "Content-Type": "text/html" }).end(error2(error, { provider: "Poe" }));
|
|
52
|
+
Effect.runSync(Deferred.fail(callback, new Error(error)));
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
if (!Effect.runSync(Deferred.succeed(callback, { code: url.searchParams.get("code") ?? "", response })))
|
|
56
|
+
response.writeHead(409).end("OAuth callback already received");
|
|
57
|
+
});
|
|
58
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
59
|
+
server.close();
|
|
60
|
+
server.closeAllConnections();
|
|
61
|
+
}));
|
|
62
|
+
yield* Effect.tryPromise(() => EventEmitter.once(server.listen(0, "127.0.0.1"), "listening"));
|
|
63
|
+
const address = server.address();
|
|
64
|
+
if (!address || typeof address === "string")
|
|
65
|
+
return yield* Effect.fail(new Error("Missing OAuth callback port"));
|
|
66
|
+
const redirect = `http://127.0.0.1:${address.port}/callback`;
|
|
67
|
+
return {
|
|
68
|
+
mode: "auto",
|
|
69
|
+
url: `${issuer}/oauth/authorize?${new URLSearchParams({
|
|
70
|
+
response_type: "code",
|
|
71
|
+
client_id: clientID,
|
|
72
|
+
redirect_uri: redirect,
|
|
73
|
+
scope: "apikey:create",
|
|
74
|
+
code_challenge: challenge,
|
|
75
|
+
code_challenge_method: "S256",
|
|
76
|
+
state
|
|
77
|
+
}).toString()}`,
|
|
78
|
+
instructions: "Complete authorization in your browser. This window will close automatically.",
|
|
79
|
+
callback: Effect.gen(function* () {
|
|
80
|
+
const request = yield* Deferred.await(callback);
|
|
81
|
+
const respond = (error) => Effect.sync(() => request.response.writeHead(error ? 400 : 200, { "Content-Type": "text/html" }).end(error ? error2(error, { provider: "Poe" }) : success2({ provider: "Poe" })));
|
|
82
|
+
return yield* exchangeCode(http, { code: request.code, redirect, verifier }).pipe(Effect.tap(() => respond()), Effect.tapError((error) => respond(error.message)), Effect.onInterrupt(() => Effect.sync(() => request.response.destroy())));
|
|
83
|
+
})
|
|
84
|
+
};
|
|
85
|
+
})
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
function callbackError(params, state) {
|
|
91
|
+
if (params.get("state") !== state)
|
|
92
|
+
return "Invalid OAuth state";
|
|
93
|
+
if (params.has("iss") && params.get("iss") !== issuer)
|
|
94
|
+
return "Invalid OAuth issuer";
|
|
95
|
+
if (params.has("error")) {
|
|
96
|
+
const detail = params.get("error_description") || params.get("error") || "Authorization denied";
|
|
97
|
+
return detail.includes(state) ? "Poe authorization failed" : detail;
|
|
98
|
+
}
|
|
99
|
+
return params.get("code")?.trim() ? undefined : "Missing authorization code";
|
|
100
|
+
}
|
|
101
|
+
function exchangeCode(http, input) {
|
|
102
|
+
return Effect.gen(function* () {
|
|
103
|
+
const response = yield* http.execute(HttpClientRequest.post("https://api.poe.com/token").pipe(HttpClientRequest.bodyUrlParams({
|
|
104
|
+
grant_type: "authorization_code",
|
|
105
|
+
client_id: clientID,
|
|
106
|
+
code: input.code,
|
|
107
|
+
redirect_uri: input.redirect,
|
|
108
|
+
code_verifier: input.verifier
|
|
109
|
+
}))).pipe(Effect.mapError(() => new Error("Poe token exchange request failed")));
|
|
110
|
+
if (response.status < 200 || response.status >= 300) {
|
|
111
|
+
const error = Option.getOrUndefined(decodeError(yield* response.text.pipe(Effect.orElseSucceed(() => ""))));
|
|
112
|
+
const detail = error?.error_description || error?.error;
|
|
113
|
+
return yield* Effect.fail(new Error(detail && ![input.code, input.verifier].some((secret) => detail.includes(secret)) ? `Poe token exchange failed: ${detail}` : `Poe token exchange failed (${response.status})`));
|
|
114
|
+
}
|
|
115
|
+
const token = yield* HttpClientResponse.schemaBodyJson(Token)(response).pipe(Effect.mapError(() => new Error("Invalid Poe token response")));
|
|
116
|
+
const expires = token.api_key_expires_in == null ? maxExpiry : (yield* Clock.currentTimeMillis) + token.api_key_expires_in * 1000;
|
|
117
|
+
if (!Number.isSafeInteger(expires) || expires > maxExpiry)
|
|
118
|
+
return yield* Effect.fail(new Error("Invalid Poe API key expiry"));
|
|
119
|
+
return OAuth3.make({ type: "oauth", methodID, access: token.api_key, refresh: "", expires });
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export { PoePlugin2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SQLiteEffectCountBuilder2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./websearch-f0mxakyp.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDeleteBase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./websearch-w3wsvvr9.js";
|
|
7
7
|
import {
|
|
8
8
|
SQLiteEffectInsertBuilder2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./websearch-7bmhse3q.js";
|
|
10
10
|
import {
|
|
11
11
|
SQLiteEffectRelationalQueryBuilder2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./websearch-cf4snx6d.js";
|
|
13
13
|
import {
|
|
14
14
|
SQLiteEffectRaw2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./websearch-822emrt2.js";
|
|
16
16
|
import {
|
|
17
17
|
SQLiteEffectSelectBuilder2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./websearch-wd87259q.js";
|
|
19
19
|
import {
|
|
20
20
|
SQLiteEffectUpdateBuilder2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./websearch-m9w0rfyh.js";
|
|
22
22
|
|
|
23
23
|
// src/database/drizzle/sqlite-core/effect/db.ts
|
|
24
24
|
import { Effect } from "effect";
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID8,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./websearch-942f7qpg.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
ID5
|
|
8
|
+
} from "./websearch-arvb0n3z.js";
|
|
9
9
|
import {
|
|
10
10
|
Service79
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./websearch-b14zgdmq.js";
|
|
12
12
|
import {
|
|
13
13
|
OAuth3,
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Event20
|
|
15
|
+
} from "./websearch-dgksc2sd.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID6,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./websearch-g00y01sj.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service57
|
|
22
|
+
} from "./websearch-begapzgx.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
get3
|
|
25
|
+
} from "./websearch-psq9ezjm.js";
|
|
26
26
|
import {
|
|
27
27
|
useragent2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./websearch-4zap2cj4.js";
|
|
29
29
|
|
|
30
30
|
// src/plugin/provider/github-copilot.ts
|
|
31
31
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -57,7 +57,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
57
57
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
58
58
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
59
59
|
var oauth = (app) => ({
|
|
60
|
-
integrationID:
|
|
60
|
+
integrationID: ID6.make("github-copilot"),
|
|
61
61
|
method: {
|
|
62
62
|
id: methodID,
|
|
63
63
|
type: "oauth",
|
|
@@ -155,7 +155,7 @@ var oauth = (app) => ({
|
|
|
155
155
|
var GithubCopilotPlugin2 = define({
|
|
156
156
|
id: "opencode.provider.github.copilot",
|
|
157
157
|
effect: Effect.fn(function* (ctx) {
|
|
158
|
-
const catalog = yield*
|
|
158
|
+
const catalog = yield* Service57;
|
|
159
159
|
const bus = yield* Service79;
|
|
160
160
|
const loading = Semaphore.makeUnsafe(1);
|
|
161
161
|
const loaded = {};
|
|
@@ -170,10 +170,10 @@ var GithubCopilotPlugin2 = define({
|
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
loaded.baseURL = copilotBaseURL2(credential.metadata);
|
|
173
|
-
const provider = yield* catalog.provider.get(
|
|
174
|
-
const existing = (yield* catalog.model.all()).filter((model) => model.providerID ===
|
|
173
|
+
const provider = yield* catalog.provider.get(ID8.githubCopilot);
|
|
174
|
+
const existing = (yield* catalog.model.all()).filter((model) => model.providerID === ID8.githubCopilot);
|
|
175
175
|
loaded.models = yield* Effect.tryPromise({
|
|
176
|
-
try: () =>
|
|
176
|
+
try: () => get3(loaded.baseURL ?? baseURL(), {
|
|
177
177
|
...provider?.headers,
|
|
178
178
|
Authorization: `Bearer ${credential.refresh}`,
|
|
179
179
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -187,12 +187,12 @@ var GithubCopilotPlugin2 = define({
|
|
|
187
187
|
editor.method.update(oauth(ctx.app));
|
|
188
188
|
});
|
|
189
189
|
yield* ctx.catalog.transform((evt) => {
|
|
190
|
-
const item = evt.provider.get(
|
|
190
|
+
const item = evt.provider.get(ID8.githubCopilot);
|
|
191
191
|
if (!item)
|
|
192
192
|
return;
|
|
193
193
|
if (loaded.models) {
|
|
194
194
|
for (const id of item.models.keys()) {
|
|
195
|
-
if (!loaded.models.has(
|
|
195
|
+
if (!loaded.models.has(ID5.make(id)))
|
|
196
196
|
evt.model.remove(item.provider.id, id);
|
|
197
197
|
}
|
|
198
198
|
for (const [id, model] of loaded.models) {
|
|
@@ -207,17 +207,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
if (item.models.has(
|
|
211
|
-
evt.model.update(item.provider.id,
|
|
210
|
+
if (item.models.has(ID5.make("gpt-5-chat-latest"))) {
|
|
211
|
+
evt.model.update(item.provider.id, ID5.make("gpt-5-chat-latest"), (model) => {
|
|
212
212
|
model.enabled = false;
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
217
|
-
yield* bus.subscribe(
|
|
217
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID6.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
218
218
|
yield* refresh().pipe(Effect.forkScoped);
|
|
219
219
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
220
|
-
if (evt.model.providerID !==
|
|
220
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
221
221
|
return;
|
|
222
222
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
223
223
|
return;
|
|
@@ -226,7 +226,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
226
226
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
227
227
|
}));
|
|
228
228
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
229
|
-
if (evt.model.providerID !==
|
|
229
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
230
230
|
return;
|
|
231
231
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
232
232
|
return;
|
|
@@ -236,9 +236,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
236
236
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
237
237
|
if (interaction !== "conversation-agent")
|
|
238
238
|
evt.headers["x-initiator"] = "agent";
|
|
239
|
-
}), { providerID:
|
|
239
|
+
}), { providerID: ID8.githubCopilot });
|
|
240
240
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
241
|
-
if (evt.model.providerID !==
|
|
241
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
242
242
|
return;
|
|
243
243
|
const token = evt.request.headers.get("x-api-key");
|
|
244
244
|
if (!token)
|
|
@@ -246,9 +246,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
246
246
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
247
247
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
248
248
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
249
|
-
}), { providerID:
|
|
249
|
+
}), { providerID: ID8.githubCopilot });
|
|
250
250
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
251
|
-
if (evt.model.providerID !==
|
|
251
|
+
if (evt.model.providerID !== ID8.githubCopilot)
|
|
252
252
|
return;
|
|
253
253
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
254
254
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./websearch-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./websearch-8p4f9s12.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isAISDK2,
|
|
3
3
|
packageName2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./websearch-942f7qpg.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
ID5
|
|
7
|
+
} from "./websearch-arvb0n3z.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/provider/openrouter.ts
|
|
10
10
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
|
|
|
21
21
|
evt.provider.update(item.provider.id, (provider) => {
|
|
22
22
|
provider.headers = { ...provider.headers, "HTTP-Referer": "https://opencode.ai/", "X-Title": "opencode" };
|
|
23
23
|
});
|
|
24
|
-
for (const modelID of [
|
|
24
|
+
for (const modelID of [ID5.make("gpt-5-chat-latest"), ID5.make("openai/gpt-5-chat")]) {
|
|
25
25
|
if (!item.models.has(modelID))
|
|
26
26
|
continue;
|
|
27
27
|
evt.model.update(item.provider.id, modelID, (model) => {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./websearch-91nhymbr.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./websearch-f828m53h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./websearch-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
ListInput: () =>
|
|
16
|
+
ID: () => ID13,
|
|
17
|
+
Info: () => Info26,
|
|
18
|
+
ListInput: () => ListInput4,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
20
|
Service: () => Service71,
|
|
21
21
|
node: () => node76
|
|
@@ -25,9 +25,9 @@ import { Context, Effect, Layer, Schema } from "effect";
|
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
28
|
+
var ID13 = PermissionSaved.ID;
|
|
29
|
+
var Info26 = PermissionSaved.Info;
|
|
30
|
+
var ListInput4 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
32
32
|
}).annotate({ identifier: "PermissionSaved.ListInput" });
|
|
33
33
|
var AddInput2 = Schema.Struct({
|
|
@@ -53,7 +53,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
53
53
|
if (!input.resources.length)
|
|
54
54
|
return;
|
|
55
55
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
56
|
-
id:
|
|
56
|
+
id: ID13.create(),
|
|
57
57
|
project_id: input.projectID,
|
|
58
58
|
action: input.action,
|
|
59
59
|
resource
|
|
@@ -66,4 +66,4 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
66
66
|
}));
|
|
67
67
|
var node76 = makeGlobalNode({ service: Service71, layer, deps: [node85] });
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { ID13, Info26, ListInput4, AddInput2, Service71, node76, exports_saved };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service75,
|
|
3
|
+
node80
|
|
4
|
+
} from "./websearch-wgwah134.js";
|
|
5
5
|
import {
|
|
6
6
|
Service24
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./websearch-v1faaxn9.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service21,
|
|
10
|
+
node25
|
|
11
|
+
} from "./websearch-fkazv5r1.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
node23
|
|
14
|
+
} from "./websearch-mqhpj7pr.js";
|
|
15
15
|
import {
|
|
16
16
|
node6
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./websearch-0s4fbnn3.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./websearch-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/worktree/refresh.ts
|
|
23
23
|
var exports_refresh = {};
|
|
@@ -28,9 +28,9 @@ __export(exports_refresh, {
|
|
|
28
28
|
import { Effect, Layer } from "effect";
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
30
30
|
var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
31
|
-
const location = yield*
|
|
31
|
+
const location = yield* Service75;
|
|
32
32
|
const plugins = yield* Service24;
|
|
33
|
-
const worktrees = yield*
|
|
33
|
+
const worktrees = yield* Service21;
|
|
34
34
|
if (location.workspaceID)
|
|
35
35
|
return;
|
|
36
36
|
yield* plugins.awaitActivation.pipe(Effect.andThen(worktrees.refresh()), Effect.catchCause((cause) => Effect.logWarning("worktree refresh failed", { cause })), Effect.forkScoped);
|
|
@@ -38,7 +38,7 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
38
38
|
var node5 = makeLocationNode({
|
|
39
39
|
name: "worktree-refresh",
|
|
40
40
|
layer,
|
|
41
|
-
deps: [
|
|
41
|
+
deps: [node25, node80, node23, node6]
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
export { node5, exports_refresh };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./websearch-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node82
|
|
7
|
+
} from "./websearch-nbddwgy7.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
ID17
|
|
10
|
+
} from "./websearch-9pv0dm11.js";
|
|
11
11
|
import {
|
|
12
12
|
Slug2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./websearch-gebd4c9n.js";
|
|
14
14
|
import {
|
|
15
15
|
Service80,
|
|
16
16
|
node85
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./websearch-91nhymbr.js";
|
|
18
18
|
import {
|
|
19
19
|
Service79,
|
|
20
20
|
node84
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./websearch-b14zgdmq.js";
|
|
22
22
|
import {
|
|
23
23
|
ProjectTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./websearch-8p4f9s12.js";
|
|
25
25
|
import {
|
|
26
26
|
WorktreeTable2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./websearch-cfpkc3c9.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service75,
|
|
30
|
+
node80
|
|
31
|
+
} from "./websearch-wgwah134.js";
|
|
32
32
|
import {
|
|
33
33
|
DirectoryUnavailableError2,
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
34
|
+
canonical2
|
|
35
|
+
} from "./websearch-gv6a8nnw.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
37
|
+
make12
|
|
38
|
+
} from "./websearch-fpv6qd1b.js";
|
|
39
39
|
import {
|
|
40
40
|
create3
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./websearch-kg06axw8.js";
|
|
42
42
|
import {
|
|
43
43
|
__export
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./websearch-9rqn6x4v.js";
|
|
45
45
|
|
|
46
46
|
// src/worktree.ts
|
|
47
47
|
var exports_worktree2 = {};
|
|
@@ -49,21 +49,21 @@ __export(exports_worktree2, {
|
|
|
49
49
|
CreateInput: () => CreateInput3,
|
|
50
50
|
DestinationExistsError: () => DestinationExistsError2,
|
|
51
51
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
52
|
-
Event: () =>
|
|
53
|
-
Info: () =>
|
|
52
|
+
Event: () => Event6,
|
|
53
|
+
Info: () => Info4,
|
|
54
54
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
55
55
|
List: () => List2,
|
|
56
56
|
ListEntry: () => ListEntry3,
|
|
57
57
|
OperationError: () => OperationError2,
|
|
58
58
|
RefreshResult: () => RefreshResult2,
|
|
59
59
|
RemoveInput: () => RemoveInput2,
|
|
60
|
-
Service: () =>
|
|
60
|
+
Service: () => Service21,
|
|
61
61
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
62
62
|
StrategyID: () => StrategyID2,
|
|
63
63
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
64
64
|
UnsupportedLocationError: () => UnsupportedLocationError2,
|
|
65
65
|
Worktree: () => exports_worktree2,
|
|
66
|
-
node: () =>
|
|
66
|
+
node: () => node25
|
|
67
67
|
});
|
|
68
68
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
69
69
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -82,11 +82,11 @@ var RefreshResult2 = Schema.Struct({
|
|
|
82
82
|
updated: Schema.Array(AbsolutePath2),
|
|
83
83
|
removed: Schema.Array(AbsolutePath2)
|
|
84
84
|
}).annotate({ identifier: "Worktree.RefreshResult" });
|
|
85
|
-
var
|
|
85
|
+
var Info4 = Worktree.Info;
|
|
86
86
|
var List2 = Worktree.List;
|
|
87
87
|
var ListEntry3 = Worktree.ListEntry;
|
|
88
88
|
|
|
89
|
-
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID:
|
|
89
|
+
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID: ID17, directory: Schema.optional(AbsolutePath2) }) {
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
class DestinationExistsError2 extends Schema.TaggedError()("Worktree.DestinationExistsError", { directory: AbsolutePath2 }) {
|
|
@@ -100,21 +100,21 @@ class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyU
|
|
|
100
100
|
|
|
101
101
|
class UnsupportedLocationError2 extends Schema.TaggedError()("Worktree.UnsupportedLocationError", { directory: AbsolutePath2 }) {
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var Event6 = Worktree.Event;
|
|
104
104
|
|
|
105
|
-
class
|
|
105
|
+
class Service21 extends Context.Service()("@opencode/v2/Worktree") {
|
|
106
106
|
}
|
|
107
|
-
var layer = Layer.effect(
|
|
107
|
+
var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
108
108
|
const fs = yield* FSUtil.Service;
|
|
109
109
|
const database = yield* Service80;
|
|
110
110
|
const db = database.db;
|
|
111
111
|
const bus = yield* Service79;
|
|
112
112
|
const processService = yield* AppProcess.Service;
|
|
113
|
-
const location = yield*
|
|
113
|
+
const location = yield* Service75;
|
|
114
114
|
const global = yield* Global.Service;
|
|
115
115
|
const projectID = location.project.id;
|
|
116
116
|
const local = location.workspaceID ? Effect.fail(new UnsupportedLocationError2({ directory: location.directory })) : Effect.void;
|
|
117
|
-
const gitStrategy = yield*
|
|
117
|
+
const gitStrategy = yield* make12;
|
|
118
118
|
const state = create3({
|
|
119
119
|
name: "worktree",
|
|
120
120
|
initial: () => ({
|
|
@@ -135,7 +135,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
const changed = Effect.fnUntraced(function* (update) {
|
|
137
137
|
if (update)
|
|
138
|
-
yield* bus.publish(
|
|
138
|
+
yield* bus.publish(Event6.Updated, { projectID });
|
|
139
139
|
});
|
|
140
140
|
const ops = {
|
|
141
141
|
list: Effect.fnUntraced(function* () {
|
|
@@ -161,7 +161,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
161
161
|
};
|
|
162
162
|
const source = Effect.fnUntraced(function* (input) {
|
|
163
163
|
const sourceDirectory = input ?? location.project.directory;
|
|
164
|
-
const resolved = yield*
|
|
164
|
+
const resolved = yield* canonical2(fs, sourceDirectory);
|
|
165
165
|
if ((yield* ops.find(resolved)) === undefined)
|
|
166
166
|
return yield* new SourceDirectoryNotFoundError2({ projectID, directory: resolved });
|
|
167
167
|
return resolved;
|
|
@@ -193,9 +193,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
193
193
|
sourceDirectory,
|
|
194
194
|
branch: input.branch
|
|
195
195
|
}).pipe(Effect.mapError((error) => operationError(selected.id, "create", error)));
|
|
196
|
-
const result = { directory: yield*
|
|
197
|
-
if (result.directory !== (yield* canonical3(fs, worktreeDirectory)))
|
|
198
|
-
return yield* new InvalidDirectoryError2({ directory: result.directory });
|
|
196
|
+
const result = { directory: yield* canonical2(fs, created.directory) };
|
|
199
197
|
yield* changed(yield* ops.create({
|
|
200
198
|
directory: result.directory,
|
|
201
199
|
strategy: selected.id,
|
|
@@ -220,7 +218,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
220
218
|
});
|
|
221
219
|
const remove = Effect.fn("Worktree.remove")(function* (input) {
|
|
222
220
|
yield* local;
|
|
223
|
-
const worktreeDirectory = yield*
|
|
221
|
+
const worktreeDirectory = yield* canonical2(fs, input.directory);
|
|
224
222
|
const stored = yield* ops.find(worktreeDirectory);
|
|
225
223
|
if (!stored?.strategy)
|
|
226
224
|
return yield* new InvalidDirectoryError2({ directory: worktreeDirectory });
|
|
@@ -241,7 +239,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
241
239
|
for (const strategy of strategies) {
|
|
242
240
|
const entries = yield* strategy.list(location.project.directory).pipe(Effect.mapError((error) => operationError(strategy.id, "list", error)), Effect.catchTag("Worktree.DirectoryUnavailableError", () => Effect.succeed([])));
|
|
243
241
|
for (const entry of entries) {
|
|
244
|
-
const directory = yield*
|
|
242
|
+
const directory = yield* canonical2(fs, entry.directory).pipe(Effect.catchTag("Worktree.DirectoryUnavailableError", () => Effect.undefined));
|
|
245
243
|
if (!directory || discovered.has(directory))
|
|
246
244
|
continue;
|
|
247
245
|
discovered.set(directory, {
|
|
@@ -259,7 +257,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
259
257
|
yield* changed(changes.updated.length > 0 || changes.removed.length > 0);
|
|
260
258
|
return changes;
|
|
261
259
|
});
|
|
262
|
-
return
|
|
260
|
+
return Service21.of({
|
|
263
261
|
transform: state.transform,
|
|
264
262
|
reload: state.reload,
|
|
265
263
|
list: Effect.fn("Worktree.list")(function* () {
|
|
@@ -271,10 +269,10 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
271
269
|
refresh
|
|
272
270
|
});
|
|
273
271
|
}));
|
|
274
|
-
var
|
|
275
|
-
service:
|
|
272
|
+
var node25 = makeLocationNode({
|
|
273
|
+
service: Service21,
|
|
276
274
|
layer,
|
|
277
|
-
deps: [FSUtil.node,
|
|
275
|
+
deps: [FSUtil.node, node82, node84, node85, AppProcess.node, node80, Global.node]
|
|
278
276
|
});
|
|
279
277
|
function operationError(strategy, operation, error) {
|
|
280
278
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -284,4 +282,4 @@ function operationError(strategy, operation, error) {
|
|
|
284
282
|
});
|
|
285
283
|
}
|
|
286
284
|
|
|
287
|
-
export { StrategyID2, CreateInput3, RemoveInput2, RefreshResult2,
|
|
285
|
+
export { StrategyID2, CreateInput3, RemoveInput2, RefreshResult2, Info4, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, UnsupportedLocationError2, Event6, Service21, node25, exports_worktree2, OperationError2 };
|