@opencode/core 0.0.0-dev-81 → 0.0.0-dev-85
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 +89 -89
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{generate-034tev2y.js → instruction-discovery-034tev2y.js} +2 -2
- package/dist/chunks/{generate-mvj3t52g.js → instruction-discovery-0cpsvkfc.js} +7 -7
- package/dist/chunks/{generate-3bpzsehq.js → instruction-discovery-0jq4q1p2.js} +15 -15
- package/dist/chunks/{generate-500djfy4.js → instruction-discovery-0nvskcjk.js} +25 -25
- package/dist/chunks/{generate-wfwbmxj9.js → instruction-discovery-0pk0a4bb.js} +21 -21
- package/dist/chunks/{generate-1yebjb7n.js → instruction-discovery-0qa86xwk.js} +23 -23
- package/dist/chunks/{generate-1w4xpz6a.js → instruction-discovery-0tnetv23.js} +29 -29
- package/dist/chunks/{generate-ne4tt1ep.js → instruction-discovery-0vp9s6f9.js} +9 -9
- package/dist/chunks/{generate-11hfp36g.js → instruction-discovery-11hfp36g.js} +1 -1
- package/dist/chunks/{generate-t1fs0nta.js → instruction-discovery-1aepsj9z.js} +8 -8
- package/dist/chunks/{generate-mfrr2svg.js → instruction-discovery-1dwvcqns.js} +25 -25
- package/dist/chunks/{generate-wresbwaf.js → instruction-discovery-1eeyyfsn.js} +3 -3
- package/dist/chunks/{generate-wncvwmyx.js → instruction-discovery-1emdzzkr.js} +70 -70
- package/dist/chunks/{generate-1ep2p91f.js → instruction-discovery-1ep2p91f.js} +2 -2
- package/dist/chunks/{generate-20ax9mvp.js → instruction-discovery-1hs61ayd.js} +17 -17
- package/dist/chunks/{generate-njamm2cm.js → instruction-discovery-1j1ma7kd.js} +10 -10
- package/dist/chunks/{generate-1x2knyw4.js → instruction-discovery-1x2knyw4.js} +1 -1
- package/dist/chunks/{generate-raxq219f.js → instruction-discovery-1ywsh6b9.js} +19 -19
- package/dist/chunks/{generate-204s3925.js → instruction-discovery-204s3925.js} +1 -1
- package/dist/chunks/{generate-p869v6ff.js → instruction-discovery-26x8chrq.js} +6 -6
- package/dist/chunks/{generate-x2jb7586.js → instruction-discovery-27h8nq2q.js} +10 -10
- package/dist/chunks/{generate-ez1g32xq.js → instruction-discovery-294jph37.js} +5 -5
- package/dist/chunks/{generate-x8kf0qe2.js → instruction-discovery-2jm5ms20.js} +32 -32
- package/dist/chunks/{generate-fvw7fpk2.js → instruction-discovery-2m0svkb3.js} +9 -9
- package/dist/chunks/{generate-vcvg2s1w.js → instruction-discovery-2wqj22kd.js} +9 -9
- package/dist/chunks/{generate-2gp0ejb3.js → instruction-discovery-2z2261gz.js} +15 -15
- package/dist/chunks/{generate-t2hws329.js → instruction-discovery-32hbtqx1.js} +4 -4
- package/dist/chunks/{generate-54x4knwr.js → instruction-discovery-38k6nkcd.js} +14 -14
- package/dist/chunks/{generate-2k5h4fp7.js → instruction-discovery-3an2h7zk.js} +1 -1
- package/dist/chunks/{generate-0yrgkn6z.js → instruction-discovery-3c7hxhsq.js} +15 -15
- package/dist/chunks/{generate-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{generate-0vpw1p67.js → instruction-discovery-3k4eq6ay.js} +19 -19
- package/dist/chunks/{generate-3nnrz6f6.js → instruction-discovery-3nnrz6f6.js} +1 -1
- package/dist/chunks/{generate-a5rsj065.js → instruction-discovery-3yy4cqsx.js} +24 -24
- package/dist/chunks/{generate-w2eysc6j.js → instruction-discovery-40za9wsf.js} +9 -9
- package/dist/chunks/{generate-gnef790b.js → instruction-discovery-41865php.js} +40 -40
- package/dist/chunks/{generate-aed20f0x.js → instruction-discovery-42cx4vra.js} +25 -25
- package/dist/chunks/{generate-gwx54z98.js → instruction-discovery-4kr7f4hz.js} +22 -22
- package/dist/chunks/{generate-cpnzy11t.js → instruction-discovery-4m39ffq2.js} +14 -14
- package/dist/chunks/{generate-4pyp9zr9.js → instruction-discovery-4pyp9zr9.js} +1 -1
- package/dist/chunks/{generate-4v008n1t.js → instruction-discovery-4v008n1t.js} +1 -1
- package/dist/chunks/{generate-6yfzf5e6.js → instruction-discovery-5b3jskfa.js} +4 -4
- package/dist/chunks/{generate-5h88a2js.js → instruction-discovery-5bgjyvxg.js} +27 -27
- package/dist/chunks/{generate-3n7cxz37.js → instruction-discovery-5ccfq05q.js} +24 -24
- package/dist/chunks/{generate-qaf4nrm9.js → instruction-discovery-5f43ww3k.js} +15 -15
- package/dist/chunks/{generate-4p3cqz3x.js → instruction-discovery-5jbhsptk.js} +11 -11
- package/dist/chunks/{generate-5m9w47nd.js → instruction-discovery-5m9w47nd.js} +1 -1
- package/dist/chunks/{generate-63mgg1rp.js → instruction-discovery-5nabnb12.js} +15 -15
- package/dist/chunks/{generate-1yq9hg58.js → instruction-discovery-5zrxpy3q.js} +5 -5
- package/dist/chunks/{generate-h2vbff59.js → instruction-discovery-613qqnzk.js} +11 -11
- package/dist/chunks/{generate-jh3ekwcy.js → instruction-discovery-680724q2.js} +14 -14
- package/dist/chunks/{generate-6esdw8yj.js → instruction-discovery-6esdw8yj.js} +1 -1
- package/dist/chunks/{generate-vdpapx9q.js → instruction-discovery-6mpwyd8c.js} +13 -13
- package/dist/chunks/{generate-w8qtt4th.js → instruction-discovery-76cb1hcw.js} +4 -4
- package/dist/chunks/{generate-72sg82ve.js → instruction-discovery-79brk8yc.js} +31 -31
- package/dist/chunks/{generate-e8gkemrs.js → instruction-discovery-7ba1kvb7.js} +18 -18
- package/dist/chunks/{generate-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{generate-nnt30w3v.js → instruction-discovery-7d154cfc.js} +10 -10
- package/dist/chunks/{generate-dfrvr67t.js → instruction-discovery-7hke258b.js} +4 -4
- package/dist/chunks/{generate-ntp0m708.js → instruction-discovery-7pcnyccf.js} +32 -32
- package/dist/chunks/{generate-xgh8r5md.js → instruction-discovery-7pstyfmd.js} +17 -17
- package/dist/chunks/{generate-a38kcqy6.js → instruction-discovery-7rjk5fac.js} +4 -4
- package/dist/chunks/{generate-7w2ypzdf.js → instruction-discovery-7w2ypzdf.js} +1 -1
- package/dist/chunks/{generate-5zch7wr3.js → instruction-discovery-7ymg3bcy.js} +28 -28
- package/dist/chunks/{generate-g9h88g1w.js → instruction-discovery-823phfb1.js} +9 -9
- package/dist/chunks/{generate-79nptycn.js → instruction-discovery-828jwtgn.js} +3 -3
- package/dist/chunks/{generate-my4zabxr.js → instruction-discovery-8n9x2wf6.js} +2 -2
- package/dist/chunks/{generate-71wjfbxa.js → instruction-discovery-8rbhtgaf.js} +30 -30
- package/dist/chunks/{generate-szcgc7h4.js → instruction-discovery-8wc2fpae.js} +5 -5
- package/dist/chunks/{generate-8wtp7s3z.js → instruction-discovery-8wtp7s3z.js} +1 -1
- package/dist/chunks/{generate-zh7bbm8x.js → instruction-discovery-8yhc7zrg.js} +9 -9
- package/dist/chunks/{generate-90zstvax.js → instruction-discovery-90zstvax.js} +1 -1
- package/dist/chunks/{generate-w43zhwmv.js → instruction-discovery-9fwsy5x7.js} +17 -17
- package/dist/chunks/{generate-09a8m3xd.js → instruction-discovery-9qcg53ez.js} +9 -9
- package/dist/chunks/{generate-spqbgcqv.js → instruction-discovery-9s3pg80w.js} +1 -1
- package/dist/chunks/{generate-v7bnf05s.js → instruction-discovery-9v36js8k.js} +20 -20
- package/dist/chunks/{generate-p1vte9h6.js → instruction-discovery-9zrz05pf.js} +11 -11
- package/dist/chunks/{generate-vgx7atgj.js → instruction-discovery-a1ctfybt.js} +40 -40
- package/dist/chunks/{generate-zmwx25fz.js → instruction-discovery-a5g15581.js} +2 -2
- package/dist/chunks/{generate-40smdzyz.js → instruction-discovery-a9cen3eq.js} +25 -25
- package/dist/chunks/{generate-zqy7k0qn.js → instruction-discovery-aaft7q2k.js} +7 -7
- package/dist/chunks/{generate-as0atjke.js → instruction-discovery-ac1m65en.js} +88 -88
- package/dist/chunks/{generate-hdfrs5mg.js → instruction-discovery-af0k6e03.js} +9 -9
- package/dist/chunks/{generate-qp6mrnfa.js → instruction-discovery-af79ean3.js} +7 -7
- package/dist/chunks/{generate-k0ysn4xj.js → instruction-discovery-aq6cyz91.js} +35 -35
- package/dist/chunks/{generate-53antfq0.js → instruction-discovery-arq1yqkc.js} +36 -36
- package/dist/chunks/{generate-ayjs7tqn.js → instruction-discovery-ayjs7tqn.js} +2 -2
- package/dist/chunks/instruction-discovery-azz85zj6.js +517 -0
- package/dist/chunks/{generate-fbbqkjna.js → instruction-discovery-b1tz3sp7.js} +16 -16
- package/dist/chunks/{generate-j3x9csx9.js → instruction-discovery-b34e6aj5.js} +17 -17
- package/dist/chunks/{generate-njwjh564.js → instruction-discovery-b3ysgcgm.js} +4 -4
- package/dist/chunks/{generate-b6vsg801.js → instruction-discovery-b6vsg801.js} +2 -2
- package/dist/chunks/{generate-9t2khtsw.js → instruction-discovery-b9fw4xdr.js} +11 -11
- package/dist/chunks/instruction-discovery-bgqvkj0f.js +257 -0
- package/dist/chunks/{generate-zskc75ww.js → instruction-discovery-bp2kawj6.js} +15 -15
- package/dist/chunks/{generate-1q5awywt.js → instruction-discovery-btec747f.js} +5 -5
- package/dist/chunks/{generate-9r6pmcfc.js → instruction-discovery-c33mp5kd.js} +34 -34
- package/dist/chunks/{generate-gbqwd2zm.js → instruction-discovery-c41kdn9j.js} +16 -16
- package/dist/chunks/{generate-rcbjwvze.js → instruction-discovery-c5kjsz6q.js} +4 -4
- package/dist/chunks/{generate-1ce0rtfx.js → instruction-discovery-cchmky4n.js} +4 -4
- package/dist/chunks/{generate-wr0x8q8w.js → instruction-discovery-cekdpe72.js} +13 -13
- package/dist/chunks/{generate-ksdhek8b.js → instruction-discovery-cjevvpkz.js} +22 -22
- package/dist/chunks/{generate-nvfej1dx.js → instruction-discovery-cspsqq65.js} +56 -56
- package/dist/chunks/{generate-03efvwc7.js → instruction-discovery-cv02ekq1.js} +12 -12
- package/dist/chunks/{generate-cwrgdav8.js → instruction-discovery-cwrgdav8.js} +2 -2
- package/dist/chunks/{generate-40ykd73j.js → instruction-discovery-czkk2md7.js} +5 -5
- package/dist/chunks/{generate-ssfehs1z.js → instruction-discovery-d2887f8n.js} +4 -4
- package/dist/chunks/{generate-zw4834mw.js → instruction-discovery-d4qkn5y3.js} +26 -26
- package/dist/chunks/{generate-d4v9tmah.js → instruction-discovery-d4v9tmah.js} +2 -2
- package/dist/chunks/{generate-yrxdp6ww.js → instruction-discovery-d84x41tm.js} +54 -54
- package/dist/chunks/{generate-crfddmzc.js → instruction-discovery-ddv2mw00.js} +8 -8
- package/dist/chunks/{generate-8ekhwd22.js → instruction-discovery-df15hqy6.js} +8 -8
- package/dist/chunks/{generate-q174ee3q.js → instruction-discovery-dhkm6j2g.js} +9 -9
- package/dist/chunks/{generate-m2th4j2b.js → instruction-discovery-dqcgys99.js} +7 -7
- package/dist/chunks/{generate-dt77769w.js → instruction-discovery-dt77769w.js} +1 -1
- package/dist/chunks/{generate-e38cwtn4.js → instruction-discovery-dtvrzahv.js} +14 -14
- package/dist/chunks/{generate-7w1eqnvf.js → instruction-discovery-dxmx8bx1.js} +32 -32
- package/dist/chunks/{generate-301e04c8.js → instruction-discovery-dzercy8j.js} +14 -14
- package/dist/chunks/{generate-h5j7qrbp.js → instruction-discovery-e4dhw3gc.js} +23 -23
- package/dist/chunks/{generate-e834z07m.js → instruction-discovery-e834z07m.js} +1 -1
- package/dist/chunks/{generate-s7jh2bt2.js → instruction-discovery-ey9q43yp.js} +10 -10
- package/dist/chunks/{generate-cr86k73f.js → instruction-discovery-f01y088k.js} +5 -5
- package/dist/chunks/{generate-1d6rqfwz.js → instruction-discovery-f7b3yq4m.js} +11 -11
- package/dist/chunks/{generate-fffv3p7h.js → instruction-discovery-fffv3p7h.js} +1 -1
- package/dist/chunks/{generate-fg9p65nk.js → instruction-discovery-fg9p65nk.js} +2 -2
- package/dist/chunks/{generate-2xh3b742.js → instruction-discovery-fk6vzymk.js} +6 -6
- package/dist/chunks/{generate-gbnxd7gn.js → instruction-discovery-fq2tdc7j.js} +10 -10
- package/dist/chunks/{generate-p7snmzw9.js → instruction-discovery-gbs8zdek.js} +2 -2
- package/dist/chunks/{generate-6twykydk.js → instruction-discovery-gcjdgkn2.js} +9 -9
- package/dist/chunks/{generate-gg8p9cgs.js → instruction-discovery-gg8p9cgs.js} +3 -3
- package/dist/chunks/{generate-zs3j1aq1.js → instruction-discovery-gp2wddyf.js} +11 -11
- package/dist/chunks/{generate-91p4ggbh.js → instruction-discovery-h04cnvmy.js} +20 -20
- package/dist/chunks/{generate-zavmbsdh.js → instruction-discovery-h0ppebc3.js} +8 -8
- package/dist/chunks/{generate-zbwtxs0r.js → instruction-discovery-h3vzy4ka.js} +20 -20
- package/dist/chunks/{generate-csmn30a6.js → instruction-discovery-h5ynnaae.js} +16 -16
- package/dist/chunks/{generate-8y4jps98.js → instruction-discovery-hfgk9wzg.js} +4 -4
- package/dist/chunks/{generate-mfxp7adw.js → instruction-discovery-hjtcgwwy.js} +11 -11
- package/dist/chunks/{generate-tgwbm25x.js → instruction-discovery-hmyvp2rk.js} +13 -13
- package/dist/chunks/{generate-gqvm7anc.js → instruction-discovery-hndccpk4.js} +22 -22
- package/dist/chunks/{generate-hpg1pkwy.js → instruction-discovery-hpg1pkwy.js} +1 -1
- package/dist/chunks/{generate-hfj3jdg6.js → instruction-discovery-hrtnmq5m.js} +20 -20
- package/dist/chunks/{generate-6ak84kja.js → instruction-discovery-htgck597.js} +3 -3
- package/dist/chunks/{generate-21gczqff.js → instruction-discovery-hvkp93rf.js} +12 -12
- package/dist/chunks/{generate-wa8k00xj.js → instruction-discovery-hvvf9qw8.js} +6 -6
- package/dist/chunks/{generate-2zp4fvvj.js → instruction-discovery-hwh6evq5.js} +34 -34
- package/dist/chunks/{generate-nmtbp73c.js → instruction-discovery-j0cz3t38.js} +2 -2
- package/dist/chunks/{generate-7wemp1j9.js → instruction-discovery-j769ea62.js} +3 -3
- package/dist/chunks/{generate-36639cz4.js → instruction-discovery-j7xe0krd.js} +19 -19
- package/dist/chunks/{generate-jfaecv01.js → instruction-discovery-jfaecv01.js} +1 -1
- package/dist/chunks/{generate-kn76f024.js → instruction-discovery-jfbasxex.js} +28 -28
- package/dist/chunks/{generate-aq5yna8t.js → instruction-discovery-jhpqsnsy.js} +21 -21
- package/dist/chunks/{generate-j9e1a4db.js → instruction-discovery-jkn3ed2k.js} +11 -11
- package/dist/chunks/{generate-jtnps1zs.js → instruction-discovery-jtnps1zs.js} +2 -2
- package/dist/chunks/{generate-m32vg8vz.js → instruction-discovery-jtxvztab.js} +17 -17
- package/dist/chunks/{generate-22b1x2mz.js → instruction-discovery-jwmzhdh0.js} +20 -20
- package/dist/chunks/{generate-b5kdkb71.js → instruction-discovery-k5nryg5q.js} +17 -17
- package/dist/chunks/instruction-discovery-k62y2wy8.js +18 -0
- package/dist/chunks/{generate-k814nvkf.js → instruction-discovery-k814nvkf.js} +1 -1
- package/dist/chunks/{generate-fhc9sedx.js → instruction-discovery-k8q25bjh.js} +8 -8
- package/dist/chunks/{generate-2r5swsc6.js → instruction-discovery-ka7t1p06.js} +13 -13
- package/dist/chunks/{generate-htfy1f57.js → instruction-discovery-kb55mmjg.js} +10 -10
- package/dist/chunks/{generate-25rhbghy.js → instruction-discovery-kffcn31a.js} +5 -5
- package/dist/chunks/{generate-ds023f62.js → instruction-discovery-kgk2rv7w.js} +47 -47
- package/dist/chunks/{generate-8hesv9dy.js → instruction-discovery-kh00rq9s.js} +14 -14
- package/dist/chunks/{generate-vyv0j8nn.js → instruction-discovery-khyy6kd5.js} +19 -19
- package/dist/chunks/{generate-160yv0cs.js → instruction-discovery-kmzgegqq.js} +8 -8
- package/dist/chunks/{generate-kt3bjfbg.js → instruction-discovery-kt3bjfbg.js} +1 -1
- package/dist/chunks/{generate-1p5r6cjt.js → instruction-discovery-ktczfv9w.js} +37 -37
- package/dist/chunks/{generate-y3pzht0c.js → instruction-discovery-ktj8frj4.js} +5 -5
- package/dist/chunks/{generate-m1714858.js → instruction-discovery-m1714858.js} +1 -1
- package/dist/chunks/{generate-kkdts8xr.js → instruction-discovery-m1epfjq1.js} +12 -12
- package/dist/chunks/{generate-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{generate-zs7h2624.js → instruction-discovery-mdgn3m5p.js} +28 -28
- package/dist/chunks/{generate-7h4tq4n1.js → instruction-discovery-mq4wmfyx.js} +11 -11
- package/dist/chunks/{generate-xt0z8zst.js → instruction-discovery-n01qhj0y.js} +4 -4
- package/dist/chunks/{generate-k0gkqvt1.js → instruction-discovery-n98387tj.js} +11 -11
- package/dist/chunks/{generate-770pw0s1.js → instruction-discovery-nah043kf.js} +4 -4
- package/dist/chunks/{generate-54vd48rk.js → instruction-discovery-nmn21yyg.js} +31 -31
- package/dist/chunks/{generate-bh1et42v.js → instruction-discovery-np7r7vht.js} +6 -6
- package/dist/chunks/{generate-8n33y3k3.js → instruction-discovery-npchzmkf.js} +32 -32
- package/dist/chunks/{generate-k3yt60zb.js → instruction-discovery-nrzgv5fb.js} +16 -16
- package/dist/chunks/{generate-f0wnzmyw.js → instruction-discovery-nvbva47a.js} +24 -24
- package/dist/chunks/{generate-khsakms0.js → instruction-discovery-nxgn2x81.js} +35 -35
- package/dist/chunks/{generate-vzd7w2ek.js → instruction-discovery-ny8111qj.js} +42 -42
- package/dist/chunks/{generate-pbbktnbz.js → instruction-discovery-nz7ydnky.js} +4 -4
- package/dist/chunks/{generate-tkcrbpkc.js → instruction-discovery-nzs7qp78.js} +6 -6
- package/dist/chunks/{generate-p015t6z3.js → instruction-discovery-p015t6z3.js} +2 -2
- package/dist/chunks/{generate-kd4chd64.js → instruction-discovery-p0tsr9h6.js} +7 -7
- package/dist/chunks/{generate-f62s2454.js → instruction-discovery-p1th5zhm.js} +19 -19
- package/dist/chunks/{generate-c5gtzg91.js → instruction-discovery-p3t7kmpe.js} +16 -16
- package/dist/chunks/{generate-9nzqwf7d.js → instruction-discovery-p4gyfc1r.js} +11 -11
- package/dist/chunks/{generate-njmvt0nj.js → instruction-discovery-p64tz3wb.js} +2 -2
- package/dist/chunks/{generate-2jrrfqe1.js → instruction-discovery-p7f9amnf.js} +6 -6
- package/dist/chunks/{generate-y0nfsw3x.js → instruction-discovery-pbm40fwr.js} +13 -13
- package/dist/chunks/{generate-9c8mgkwd.js → instruction-discovery-phn0t9kc.js} +21 -21
- package/dist/chunks/{generate-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{generate-apyew4sh.js → instruction-discovery-ppvk44vh.js} +17 -17
- package/dist/chunks/{generate-1hkqnyxs.js → instruction-discovery-pwzvsy7a.js} +5 -5
- package/dist/chunks/{generate-brk3g9gh.js → instruction-discovery-qc86dbtb.js} +21 -21
- package/dist/chunks/{generate-q18as39h.js → instruction-discovery-qeee0212.js} +28 -28
- package/dist/chunks/{generate-cy3hxfvf.js → instruction-discovery-qk1yqe57.js} +7 -7
- package/dist/chunks/{generate-mqe7nf5n.js → instruction-discovery-qkqjbc48.js} +3 -3
- package/dist/chunks/{generate-6712xt67.js → instruction-discovery-qmacqh3c.js} +8 -8
- package/dist/chunks/{generate-qp7r0hxv.js → instruction-discovery-qp7r0hxv.js} +1 -1
- package/dist/chunks/{generate-5n5cq6dk.js → instruction-discovery-qwn0xhwk.js} +5 -5
- package/dist/chunks/{generate-6f3v2fef.js → instruction-discovery-qzmmayfr.js} +46 -46
- package/dist/chunks/{generate-r0yr0wbs.js → instruction-discovery-r0yr0wbs.js} +1 -1
- package/dist/chunks/{generate-q9k672yb.js → instruction-discovery-r246dpnk.js} +11 -11
- package/dist/chunks/{generate-wdccw9aa.js → instruction-discovery-r3bafmem.js} +9 -9
- package/dist/chunks/{generate-0brwp79y.js → instruction-discovery-r3e3nyxn.js} +14 -14
- package/dist/chunks/{generate-r542h3bh.js → instruction-discovery-r542h3bh.js} +1 -1
- package/dist/chunks/{generate-9d7mqhyt.js → instruction-discovery-r5fjfn5p.js} +9 -9
- package/dist/chunks/{generate-9w44n7hp.js → instruction-discovery-r6fvgzn7.js} +43 -43
- package/dist/chunks/{generate-axp9e7dj.js → instruction-discovery-r7dh50dd.js} +17 -17
- package/dist/chunks/{generate-rb9dy4dg.js → instruction-discovery-rb9dy4dg.js} +1 -1
- package/dist/chunks/{generate-wfxkb6jf.js → instruction-discovery-rdywkxba.js} +10 -10
- package/dist/chunks/{generate-j08vsdds.js → instruction-discovery-re1vrb27.js} +11 -11
- package/dist/chunks/{generate-jsq7ewwj.js → instruction-discovery-rh9wspnh.js} +184 -184
- package/dist/chunks/{generate-qsh779tg.js → instruction-discovery-rra832zv.js} +4 -4
- package/dist/chunks/{generate-jhbdwcm4.js → instruction-discovery-rrzt70xg.js} +29 -29
- package/dist/chunks/{generate-rfy1qsv0.js → instruction-discovery-rt3m59k8.js} +5 -5
- package/dist/chunks/{generate-rt5dr6hb.js → instruction-discovery-rt5dr6hb.js} +1 -1
- package/dist/chunks/{generate-138apfz4.js → instruction-discovery-s53p457m.js} +36 -36
- package/dist/chunks/{generate-w35wzz9x.js → instruction-discovery-s7kyse9r.js} +4 -4
- package/dist/chunks/{generate-sa3fpqfw.js → instruction-discovery-sa3fpqfw.js} +2 -2
- package/dist/chunks/{generate-7x1s9yws.js → instruction-discovery-scdtkf7x.js} +24 -24
- package/dist/chunks/{generate-yw016jnw.js → instruction-discovery-sd49ss65.js} +24 -24
- package/dist/chunks/{generate-6dwbj699.js → instruction-discovery-sgnxyr26.js} +18 -18
- package/dist/chunks/{generate-pcty9z1k.js → instruction-discovery-snb901t2.js} +4 -4
- package/dist/chunks/{generate-g3t4yj1z.js → instruction-discovery-sqbd8axt.js} +11 -11
- package/dist/chunks/{generate-q526re3s.js → instruction-discovery-sqjqkxh5.js} +3 -3
- package/dist/chunks/{generate-sqjzf8x2.js → instruction-discovery-sqjzf8x2.js} +1 -1
- package/dist/chunks/{generate-svcy3p9a.js → instruction-discovery-svcy3p9a.js} +1 -1
- package/dist/chunks/{generate-wwpqwb19.js → instruction-discovery-sx9mwydm.js} +35 -35
- package/dist/chunks/{generate-be81zkxx.js → instruction-discovery-sxqn6tf9.js} +2 -2
- package/dist/chunks/{generate-qcxq8hjc.js → instruction-discovery-szhjew6d.js} +23 -23
- package/dist/chunks/instruction-discovery-t09xj51a.js +26 -0
- package/dist/chunks/{generate-8essger0.js → instruction-discovery-t11dbw9k.js} +9 -9
- package/dist/chunks/{generate-20yb03sy.js → instruction-discovery-t6sdddkm.js} +33 -33
- package/dist/chunks/{generate-251v4ac3.js → instruction-discovery-t73vrz80.js} +26 -26
- package/dist/chunks/{generate-v5ahc3ch.js → instruction-discovery-tb5zevkv.js} +15 -15
- package/dist/chunks/{generate-tczq8hjw.js → instruction-discovery-tczq8hjw.js} +1 -1
- package/dist/chunks/{generate-zcxysqg2.js → instruction-discovery-trddy46m.js} +10 -10
- package/dist/chunks/{generate-k0n1bgzs.js → instruction-discovery-tt9rt96j.js} +13 -13
- package/dist/chunks/{generate-twssxy5n.js → instruction-discovery-twssxy5n.js} +2 -2
- package/dist/chunks/{generate-4tqs0jzk.js → instruction-discovery-tx91wa5k.js} +4 -4
- package/dist/chunks/{generate-4x344z2c.js → instruction-discovery-tyxs0a4x.js} +2 -2
- package/dist/chunks/{generate-v2r1d0zg.js → instruction-discovery-v2r1d0zg.js} +1 -1
- package/dist/chunks/{generate-5p98y19k.js → instruction-discovery-v2wa3hm1.js} +88 -88
- package/dist/chunks/{generate-g7e5n1s9.js → instruction-discovery-v3bc0gzs.js} +23 -23
- package/dist/chunks/{generate-mr14th8x.js → instruction-discovery-v4wde3zy.js} +14 -14
- package/dist/chunks/{generate-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{generate-afb5aatv.js → instruction-discovery-vmzmvncy.js} +6 -6
- package/dist/chunks/{generate-3p1ghjfc.js → instruction-discovery-vssebgbw.js} +3 -3
- package/dist/chunks/{generate-9t0hde1r.js → instruction-discovery-vtnateyr.js} +3 -3
- package/dist/chunks/{generate-d5drkmka.js → instruction-discovery-w040xt49.js} +16 -16
- package/dist/chunks/{generate-j9krqxqk.js → instruction-discovery-w0kz34dd.js} +11 -11
- package/dist/chunks/{generate-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{generate-wakvkjy4.js → instruction-discovery-wakvkjy4.js} +1 -1
- package/dist/chunks/{generate-zxxmr6sq.js → instruction-discovery-wbst3c7q.js} +5 -5
- package/dist/chunks/{generate-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{generate-8g8pwsx1.js → instruction-discovery-wfrhkzrr.js} +15 -15
- package/dist/chunks/{generate-0j37w4ym.js → instruction-discovery-wmcrta7z.js} +1 -1
- package/dist/chunks/{generate-wnhgecwx.js → instruction-discovery-wnhgecwx.js} +1 -1
- package/dist/chunks/{generate-xjrcb2hz.js → instruction-discovery-wr0pphdg.js} +4 -4
- package/dist/chunks/{generate-wr3re1en.js → instruction-discovery-wr3re1en.js} +1 -1
- package/dist/chunks/{generate-kwvnq2ts.js → instruction-discovery-wsedqd4z.js} +18 -18
- package/dist/chunks/{generate-4gry5n0p.js → instruction-discovery-wth30mf5.js} +8 -8
- package/dist/chunks/{generate-z72vmst9.js → instruction-discovery-xd0qykp3.js} +18 -18
- package/dist/chunks/{generate-bstexjd6.js → instruction-discovery-xd9cc171.js} +5 -5
- package/dist/chunks/{generate-br8sx1gf.js → instruction-discovery-xt05dbmf.js} +27 -27
- package/dist/chunks/{generate-cnf0gdnp.js → instruction-discovery-xzxxp67t.js} +48 -48
- package/dist/chunks/{generate-dcqept39.js → instruction-discovery-y26daf22.js} +51 -51
- package/dist/chunks/{generate-67scqdth.js → instruction-discovery-y91k91d6.js} +14 -14
- package/dist/chunks/{generate-akqe8dt6.js → instruction-discovery-y94tr38g.js} +16 -16
- package/dist/chunks/{generate-yara3q77.js → instruction-discovery-yara3q77.js} +2 -2
- package/dist/chunks/{generate-yb20nhc3.js → instruction-discovery-yb20nhc3.js} +1 -1
- package/dist/chunks/{generate-w8gkdedy.js → instruction-discovery-yf10knd4.js} +11 -11
- package/dist/chunks/{generate-bbba65ws.js → instruction-discovery-yhcj1t3x.js} +24 -24
- package/dist/chunks/{generate-m3vm7evr.js → instruction-discovery-yjeyjw9f.js} +28 -28
- package/dist/chunks/{generate-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{generate-z38nccrw.js → instruction-discovery-z38nccrw.js} +1 -1
- package/dist/chunks/{generate-zcvy3frr.js → instruction-discovery-z4xn0qmv.js} +14 -14
- package/dist/chunks/{generate-c3e7yfrv.js → instruction-discovery-z6vs1tpd.js} +11 -11
- package/dist/chunks/{generate-zgkm4kzm.js → instruction-discovery-zgkm4kzm.js} +3 -3
- package/dist/chunks/{generate-pzgm482x.js → instruction-discovery-zhnqdeny.js} +48 -48
- package/dist/chunks/{generate-mqwrzhmg.js → instruction-discovery-zn56k3bg.js} +16 -16
- package/dist/chunks/{generate-1gpknkjr.js → instruction-discovery-zvtb8gc6.js} +1 -1
- package/dist/chunks/{generate-61ennm6n.js → instruction-discovery-zzdv5d93.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +91 -91
- package/dist/config/discovery.js +92 -92
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +120 -120
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -124
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +72 -72
- 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/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +100 -100
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +382 -382
- 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 +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +103 -103
- 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 +76 -76
- package/dist/file-access.js +148 -148
- package/dist/file-mutation.js +102 -102
- package/dist/file-retention.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/file-watch.js +83 -83
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +112 -112
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +115 -115
- package/dist/git.js +11 -11
- 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 +99 -99
- 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/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +373 -373
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +163 -163
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +370 -370
- package/dist/location.js +97 -97
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +166 -166
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +114 -114
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +145 -145
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +96 -96
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +225 -225
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -343
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +128 -128
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +123 -123
- package/dist/plugin/provider/opencode-legacy.js +108 -108
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +362 -362
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +236 -236
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +98 -98
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +98 -98
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +162 -162
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +228 -228
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +138 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +79 -79
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +215 -215
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +224 -224
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -223
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +141 -141
- package/dist/skill.js +144 -144
- package/dist/snapshot.js +97 -97
- 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 +165 -165
- package/dist/tool/plugin/edit.js +150 -150
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +154 -154
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +138 -138
- package/dist/tool/plugin/read.js +157 -157
- package/dist/tool/plugin/shell.js +224 -224
- package/dist/tool/plugin/skill.js +149 -149
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/todo.js +139 -139
- package/dist/tool/plugin/webfetch.js +149 -149
- package/dist/tool/plugin/websearch.js +141 -141
- package/dist/tool/plugin/write.js +158 -158
- package/dist/tool/read-filesystem.js +108 -108
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- 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/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +94 -94
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +106 -106
- package/package.json +8 -8
- package/dist/chunks/generate-47mgcevd.js +0 -18
- package/dist/chunks/generate-cwbxe8yb.js +0 -517
- package/dist/chunks/generate-f8t92yxe.js +0 -26
- package/dist/chunks/generate-q331f19b.js +0 -257
- /package/dist/chunks/{generate-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{generate-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{generate-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{generate-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{generate-1jakw16s.js → instruction-discovery-1jakw16s.js} +0 -0
- /package/dist/chunks/{generate-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{generate-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{generate-2bv980vf.js → instruction-discovery-2bv980vf.js} +0 -0
- /package/dist/chunks/{generate-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{generate-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{generate-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{generate-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{generate-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{generate-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{generate-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{generate-4m86bj6y.js → instruction-discovery-4m86bj6y.js} +0 -0
- /package/dist/chunks/{generate-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{generate-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{generate-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{generate-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{generate-5w3e23ze.js → instruction-discovery-5w3e23ze.js} +0 -0
- /package/dist/chunks/{generate-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{generate-6q2bdcd1.js → instruction-discovery-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{generate-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{generate-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{generate-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{generate-84wd9syh.js → instruction-discovery-84wd9syh.js} +0 -0
- /package/dist/chunks/{generate-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{generate-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{generate-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
- /package/dist/chunks/{generate-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{generate-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{generate-a058387c.js → instruction-discovery-a058387c.js} +0 -0
- /package/dist/chunks/{generate-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{generate-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{generate-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{generate-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{generate-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{generate-beh6qq61.js → instruction-discovery-beh6qq61.js} +0 -0
- /package/dist/chunks/{generate-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{generate-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{generate-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{generate-cqv5kn06.js → instruction-discovery-cqv5kn06.js} +0 -0
- /package/dist/chunks/{generate-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{generate-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{generate-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{generate-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{generate-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{generate-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{generate-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{generate-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{generate-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{generate-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{generate-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{generate-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{generate-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{generate-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{generate-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{generate-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{generate-fkpq3x5p.js → instruction-discovery-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{generate-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{generate-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{generate-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{generate-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{generate-hcxmzztb.js → instruction-discovery-hcxmzztb.js} +0 -0
- /package/dist/chunks/{generate-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{generate-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{generate-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{generate-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{generate-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{generate-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{generate-jwr30sdr.js → instruction-discovery-jwr30sdr.js} +0 -0
- /package/dist/chunks/{generate-jze0r7bz.js → instruction-discovery-jze0r7bz.js} +0 -0
- /package/dist/chunks/{generate-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{generate-m18g726c.js → instruction-discovery-m18g726c.js} +0 -0
- /package/dist/chunks/{generate-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{generate-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{generate-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{generate-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{generate-ncqqe42p.js → instruction-discovery-ncqqe42p.js} +0 -0
- /package/dist/chunks/{generate-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{generate-p71gwv9c.js → instruction-discovery-p71gwv9c.js} +0 -0
- /package/dist/chunks/{generate-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{generate-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{generate-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{generate-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{generate-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{generate-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{generate-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{generate-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{generate-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{generate-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{generate-ve7vex1e.js → instruction-discovery-ve7vex1e.js} +0 -0
- /package/dist/chunks/{generate-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{generate-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{generate-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{generate-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{generate-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{generate-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{generate-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{generate-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{generate-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{generate-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{generate-z5v4ffb3.js → instruction-discovery-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{generate-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -2,28 +2,28 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service86,
|
|
4
4
|
node90
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instruction-discovery-rra832zv.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service76,
|
|
8
|
+
node80
|
|
9
|
+
} from "./instruction-discovery-ey9q43yp.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event14,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service71,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node74,
|
|
26
|
+
resolve: () => resolve3
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service71 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event14 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -57,7 +57,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
57
57
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
58
58
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.timeout(requestTimeout), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
59
59
|
});
|
|
60
|
-
var
|
|
60
|
+
var resolve3 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
61
61
|
const manifest = yield* inspect2(input.origin);
|
|
62
62
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
63
63
|
});
|
|
@@ -79,9 +79,9 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
84
|
+
const kv = yield* Service76;
|
|
85
85
|
const bus = yield* Service86;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event14.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service71.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event14.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event14.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node74 = makeGlobalNode({ service: Service71, layer, deps: [httpClient, node80, node90] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service71, Event14, inspect2, resolve3, node74, exports_wellknown };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-qk1yqe57.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-zvtb8gc6.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-e4dhw3gc.js";
|
|
5
5
|
import {
|
|
6
6
|
mergeCapabilities2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-mdgn3m5p.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service67
|
|
11
|
+
} from "./instruction-discovery-qzmmayfr.js";
|
|
12
12
|
import {
|
|
13
13
|
supports2,
|
|
14
14
|
resolve2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-vtnateyr.js";
|
|
16
16
|
import {
|
|
17
17
|
Document2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-snb901t2.js";
|
|
19
19
|
import {
|
|
20
20
|
observe2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./instruction-discovery-hpg1pkwy.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/config/plugin/provider.ts
|
|
27
27
|
var exports_provider = {};
|
|
28
28
|
__export(exports_provider, {
|
|
29
29
|
ConfigProviderPlugin: () => exports_provider,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin25,
|
|
31
31
|
integrate: () => integrate2
|
|
32
32
|
});
|
|
33
33
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
34
34
|
import { Money } from "@opencode/schema/money";
|
|
35
35
|
import { Effect } from "effect";
|
|
36
|
-
var
|
|
36
|
+
var Plugin25 = define({
|
|
37
37
|
id: "opencode.config.provider",
|
|
38
38
|
effect: Effect.fn(function* (ctx) {
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service67;
|
|
40
40
|
const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload())));
|
|
41
41
|
yield* ctx.integration.transform((integrations) => {
|
|
42
42
|
for (const [id, provider] of configuredProviders(loaded.entries)) {
|
|
@@ -249,4 +249,4 @@ function overlay(models, providerPackage, item, providerID, id, config, inherit)
|
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
export {
|
|
252
|
+
export { Plugin25, integrate2, exports_provider };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instance/service.ts
|
|
6
6
|
var exports_service2 = {};
|
|
7
7
|
__export(exports_service2, {
|
|
8
8
|
Instance: () => exports_service2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service40,
|
|
10
|
+
node: () => node42
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
import { Node } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service40 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node42 = LayerNode.unbound(Service40, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service40, node42, exports_service2 };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9zrz05pf.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-rra832zv.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID18,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Event20
|
|
11
|
+
} from "./instruction-discovery-7ymg3bcy.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-zzdv5d93.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID16,
|
|
17
17
|
MethodID2,
|
|
18
18
|
AuthorizationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./instruction-discovery-qeee0212.js";
|
|
20
20
|
import {
|
|
21
21
|
ID13
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./instruction-discovery-e4dhw3gc.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service67
|
|
25
|
+
} from "./instruction-discovery-qzmmayfr.js";
|
|
26
26
|
import {
|
|
27
27
|
Remote2,
|
|
28
28
|
Document2,
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
make21
|
|
30
|
+
} from "./instruction-discovery-snb901t2.js";
|
|
31
31
|
import {
|
|
32
32
|
integrate2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./instruction-discovery-hvkp93rf.js";
|
|
34
34
|
import {
|
|
35
35
|
defaultServer2,
|
|
36
36
|
server2,
|
|
37
37
|
headers2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./instruction-discovery-kt3bjfbg.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./
|
|
40
|
+
Service57
|
|
41
|
+
} from "./instruction-discovery-re1vrb27.js";
|
|
42
42
|
import {
|
|
43
43
|
ID4,
|
|
44
|
-
|
|
44
|
+
Input15,
|
|
45
45
|
Response3
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./instruction-discovery-h04cnvmy.js";
|
|
47
47
|
import {
|
|
48
48
|
Response2,
|
|
49
|
-
|
|
49
|
+
make4,
|
|
50
50
|
statements2,
|
|
51
51
|
providerIDs2,
|
|
52
|
-
|
|
53
|
-
} from "./
|
|
52
|
+
register2
|
|
53
|
+
} from "./instruction-discovery-dzercy8j.js";
|
|
54
54
|
|
|
55
55
|
// src/plugin/provider/opencode.ts
|
|
56
56
|
import {
|
|
@@ -113,7 +113,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
113
113
|
}
|
|
114
114
|
function oauth(http) {
|
|
115
115
|
return {
|
|
116
|
-
integrationID:
|
|
116
|
+
integrationID: ID16.make("opencode"),
|
|
117
117
|
method: {
|
|
118
118
|
id: methodID,
|
|
119
119
|
type: "oauth",
|
|
@@ -181,8 +181,8 @@ var OpencodePlugin2 = define({
|
|
|
181
181
|
const bus = yield* Service86;
|
|
182
182
|
const client = yield* HttpClient.HttpClient;
|
|
183
183
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
184
|
-
const managed = yield*
|
|
185
|
-
const config = yield*
|
|
184
|
+
const managed = yield* Service57;
|
|
185
|
+
const config = yield* Service67;
|
|
186
186
|
const scope = yield* Scope.Scope;
|
|
187
187
|
const loading = Semaphore.makeUnsafe(1);
|
|
188
188
|
let snapshot = { remote: undefined, connection: undefined, organization: undefined };
|
|
@@ -204,7 +204,7 @@ var OpencodePlugin2 = define({
|
|
|
204
204
|
if (!credential || credential.type === "external")
|
|
205
205
|
return Effect.succeed({ remote: undefined, connection, organization: undefined });
|
|
206
206
|
return fetchConfig(http, credential).pipe(Effect.map((remote) => ({
|
|
207
|
-
remote: remote?.type === "legacy" ?
|
|
207
|
+
remote: remote?.type === "legacy" ? make4(remote.response, headers2(credential)) : remote,
|
|
208
208
|
connection,
|
|
209
209
|
organization: organizationName(credential)
|
|
210
210
|
})));
|
|
@@ -218,16 +218,16 @@ var OpencodePlugin2 = define({
|
|
|
218
218
|
});
|
|
219
219
|
let integrated;
|
|
220
220
|
const integrate = Effect.fnUntraced(function* (document) {
|
|
221
|
-
yield* config.integration?.(
|
|
222
|
-
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID ===
|
|
221
|
+
yield* config.integration?.(ID16.make("opencode"), document) ?? Effect.void;
|
|
222
|
+
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID === ID16.make("opencode"));
|
|
223
223
|
});
|
|
224
224
|
const publish = Effect.fnUntraced(function* (next) {
|
|
225
225
|
switch (next.remote?.type) {
|
|
226
226
|
case "config":
|
|
227
227
|
yield* managed.set({ statements: [], organization: next.organization });
|
|
228
|
-
return yield* integrate(next.connection &&
|
|
229
|
-
integrationID:
|
|
230
|
-
connection: next.connection.type === "credential" ? { ...next.connection, id:
|
|
228
|
+
return yield* integrate(next.connection && make21({
|
|
229
|
+
integrationID: ID16.make("opencode"),
|
|
230
|
+
connection: next.connection.type === "credential" ? { ...next.connection, id: ID18.make(next.connection.id) } : next.connection,
|
|
231
231
|
organization: next.organization,
|
|
232
232
|
info: next.remote.info
|
|
233
233
|
}));
|
|
@@ -254,7 +254,7 @@ var OpencodePlugin2 = define({
|
|
|
254
254
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
255
255
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
256
256
|
const server = yield* normalizeServer(server2(credential));
|
|
257
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
257
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input15)({
|
|
258
258
|
query: input.query,
|
|
259
259
|
providerID
|
|
260
260
|
}));
|
|
@@ -277,7 +277,7 @@ var OpencodePlugin2 = define({
|
|
|
277
277
|
});
|
|
278
278
|
snapshot = yield* load();
|
|
279
279
|
yield* publish(snapshot);
|
|
280
|
-
yield*
|
|
280
|
+
yield* register2(ctx, () => snapshot, search);
|
|
281
281
|
yield* ctx.provider.transform((providers) => {
|
|
282
282
|
if (integrated)
|
|
283
283
|
integrate2(providers, integrated);
|
|
@@ -361,7 +361,7 @@ var OpencodePlugin2 = define({
|
|
|
361
361
|
onlyIfMissing: true
|
|
362
362
|
});
|
|
363
363
|
});
|
|
364
|
-
yield* bus.subscribe(
|
|
364
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
365
365
|
yield* poll();
|
|
366
366
|
})
|
|
367
367
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID13
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-e4dhw3gc.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-6q2bdcd1.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID12
|
|
3
|
+
} from "./instruction-discovery-mdgn3m5p.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/openrouter.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
|
|
|
21
21
|
for (const item of models.provider.list()) {
|
|
22
22
|
if (item.provider.package !== "@opencode/ai/providers/openrouter")
|
|
23
23
|
continue;
|
|
24
|
-
for (const modelID of [
|
|
24
|
+
for (const modelID of [ID12.make("gpt-5-chat-latest"), ID12.make("openai/gpt-5-chat")]) {
|
|
25
25
|
if (!models.get(item.provider.id, modelID))
|
|
26
26
|
continue;
|
|
27
27
|
models.update(item.provider.id, modelID, (model) => {
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9zrz05pf.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-rra832zv.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event20,
|
|
10
|
+
Service83
|
|
11
|
+
} from "./instruction-discovery-7ymg3bcy.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID16,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-qeee0212.js";
|
|
16
16
|
import {
|
|
17
17
|
ID13,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./instruction-discovery-e4dhw3gc.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID12,
|
|
22
22
|
VariantID2,
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info22
|
|
24
|
+
} from "./instruction-discovery-mdgn3m5p.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./instruction-discovery-yb20nhc3.js";
|
|
29
29
|
import {
|
|
30
30
|
get5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./instruction-discovery-3nnrz6f6.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./instruction-discovery-fk6vzymk.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -44,7 +44,7 @@ var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
46
|
var providerID = ID13.openai;
|
|
47
|
-
var integrationID =
|
|
47
|
+
var integrationID = ID16.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -182,7 +182,7 @@ var ChatGPTPlugin2 = define({
|
|
|
182
182
|
id: "opencode.provider.chatgpt",
|
|
183
183
|
effect: Effect.fn(function* (ctx) {
|
|
184
184
|
const bus = yield* Service86;
|
|
185
|
-
const credentials = yield*
|
|
185
|
+
const credentials = yield* Service83;
|
|
186
186
|
const loading = Semaphore.makeUnsafe(1);
|
|
187
187
|
let chatgpt;
|
|
188
188
|
let source;
|
|
@@ -197,7 +197,7 @@ var ChatGPTPlugin2 = define({
|
|
|
197
197
|
yield* ctx.integration.transform((editor) => {
|
|
198
198
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
199
199
|
});
|
|
200
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
200
|
+
yield* Effect.forEach(yield* credentials.list(ID16.make("openai")), (entry) => {
|
|
201
201
|
const value = entry.value;
|
|
202
202
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
203
203
|
return Effect.void;
|
|
@@ -270,7 +270,7 @@ var ChatGPTPlugin2 = define({
|
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
273
|
-
yield* bus.subscribe(
|
|
273
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
274
274
|
})
|
|
275
275
|
});
|
|
276
276
|
function headers(app) {
|
|
@@ -327,7 +327,7 @@ function deriveModels2(remote, existing) {
|
|
|
327
327
|
const found = byID.get(model.modelID);
|
|
328
328
|
return found ? [deriveModel(found, model)] : [];
|
|
329
329
|
}),
|
|
330
|
-
...remote.filter((model) => !known.has(
|
|
330
|
+
...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info22.default(ID13.openai, ID12.make(model.slug))))
|
|
331
331
|
];
|
|
332
332
|
}
|
|
333
333
|
function deriveModel(remote, previous) {
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-rra832zv.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
parse5,
|
|
7
7
|
parseRemote2,
|
|
8
8
|
validateBranch3,
|
|
9
9
|
isRemote2,
|
|
10
10
|
cachePath2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-xd9cc171.js";
|
|
12
12
|
import {
|
|
13
13
|
AbsolutePath2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-z5v4ffb3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
Service75,
|
|
17
|
+
node79
|
|
18
|
+
} from "./instruction-discovery-v3bc0gzs.js";
|
|
19
19
|
import {
|
|
20
20
|
changes2,
|
|
21
21
|
create3
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./instruction-discovery-204s3925.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
26
26
|
|
|
27
27
|
// src/reference.ts
|
|
28
28
|
var exports_reference2 = {};
|
|
29
29
|
__export(exports_reference2, {
|
|
30
|
-
Event: () =>
|
|
30
|
+
Event: () => Event10,
|
|
31
31
|
GitSource: () => GitSource2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info12,
|
|
33
33
|
LocalSource: () => LocalSource2,
|
|
34
34
|
Reference: () => exports_reference2,
|
|
35
|
-
Service: () =>
|
|
36
|
-
Source: () =>
|
|
37
|
-
node: () =>
|
|
35
|
+
Service: () => Service56,
|
|
36
|
+
Source: () => Source4,
|
|
37
|
+
node: () => node59
|
|
38
38
|
});
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
41
41
|
import { Reference } from "@opencode/schema/reference";
|
|
42
42
|
import { Global } from "@opencode/util/global";
|
|
43
|
-
import { Event as
|
|
43
|
+
import { Event as Event10 } from "@opencode/schema/reference";
|
|
44
44
|
var LocalSource2 = Reference.LocalSource;
|
|
45
45
|
var GitSource2 = Reference.GitSource;
|
|
46
|
-
var
|
|
47
|
-
var
|
|
46
|
+
var Source4 = Reference.Source;
|
|
47
|
+
var Info12 = Reference.Info;
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service56 extends Context.Service()("@opencode/Reference") {
|
|
50
50
|
}
|
|
51
|
-
var layer = Layer.effect(
|
|
51
|
+
var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
53
|
const bus = yield* Service86;
|
|
54
|
-
const cache = yield*
|
|
54
|
+
const cache = yield* Service75;
|
|
55
55
|
const scope = yield* Scope.Scope;
|
|
56
56
|
const list = (data = state.get()) => Array.from(data.sources).flatMap(([name, source]) => {
|
|
57
57
|
const info = {
|
|
@@ -61,8 +61,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
61
61
|
...source.hidden === undefined ? {} : { hidden: source.hidden }
|
|
62
62
|
};
|
|
63
63
|
if (source.type === "local")
|
|
64
|
-
return [
|
|
65
|
-
const repository =
|
|
64
|
+
return [Info12.make({ ...info, path: source.path })];
|
|
65
|
+
const repository = parse5(source.repository);
|
|
66
66
|
if (!repository || !isRemote2(repository))
|
|
67
67
|
return [];
|
|
68
68
|
if (source.branch) {
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return [
|
|
76
|
-
|
|
76
|
+
Info12.make({
|
|
77
77
|
...info,
|
|
78
78
|
path: AbsolutePath2.make(cachePath2(global.repos, repository, source.branch))
|
|
79
79
|
})
|
|
@@ -105,7 +105,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
107
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
108
|
-
return
|
|
108
|
+
return Service56.of({
|
|
109
109
|
transform: state.transform,
|
|
110
110
|
reload: state.reload,
|
|
111
111
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
113
113
|
})
|
|
114
114
|
});
|
|
115
115
|
}));
|
|
116
|
-
var
|
|
117
|
-
service:
|
|
116
|
+
var node59 = makeLocationNode({
|
|
117
|
+
service: Service56,
|
|
118
118
|
layer,
|
|
119
|
-
deps: [Global.node, node90,
|
|
119
|
+
deps: [Global.node, node90, node79]
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
export { LocalSource2, GitSource2,
|
|
122
|
+
export { LocalSource2, GitSource2, Source4, Info12, Service56, node59, exports_reference2, Event10 };
|