@opencode/core 2.0.6 → 2.0.8
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 +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/{persistent-pty-byea612g.js → provider-01gts7tv.js} +24 -15
- package/dist/chunks/{persistent-pty-em6q0j7w.js → provider-09nc05e3.js} +11 -11
- package/dist/chunks/{persistent-pty-v85t9p8e.js → provider-0b3fz7z6.js} +18 -18
- package/dist/chunks/{persistent-pty-g3v3qf95.js → provider-0esb4psk.js} +5 -5
- package/dist/chunks/{persistent-pty-xh49vxj8.js → provider-0gapa1rm.js} +5 -5
- package/dist/chunks/provider-0mesazry.js +4 -0
- package/dist/chunks/{persistent-pty-dhwr7h25.js → provider-0ne02q5f.js} +8 -8
- package/dist/chunks/{persistent-pty-ry98d82p.js → provider-0p838j47.js} +20 -20
- package/dist/chunks/{persistent-pty-0paq2nw3.js → provider-0paq2nw3.js} +1 -1
- package/dist/chunks/{persistent-pty-0q0f95c6.js → provider-0q0f95c6.js} +1 -1
- package/dist/chunks/{persistent-pty-23mp22r0.js → provider-0qwa4caw.js} +17 -17
- package/dist/chunks/{persistent-pty-06dd7vd0.js → provider-0t0bcxwx.js} +15 -15
- package/dist/chunks/{persistent-pty-tbpqatpq.js → provider-0t25cr4h.js} +9 -9
- package/dist/chunks/{persistent-pty-px9mqhce.js → provider-0xrq8eqy.js} +27 -27
- package/dist/chunks/{persistent-pty-2qke6n7n.js → provider-11psvd52.js} +15 -15
- package/dist/chunks/{persistent-pty-mns2zg1r.js → provider-15r2v9gh.js} +43 -43
- package/dist/chunks/{persistent-pty-a2ew8a62.js → provider-19vf66h0.js} +4 -4
- package/dist/chunks/provider-1admmex6.js +252 -0
- package/dist/chunks/{persistent-pty-r0185wf8.js → provider-1d5f8fmh.js} +21 -21
- package/dist/chunks/{persistent-pty-1dazxqgg.js → provider-1dazxqgg.js} +2 -2
- package/dist/chunks/{persistent-pty-hz2whg8s.js → provider-1f8ext69.js} +6 -6
- package/dist/chunks/{persistent-pty-t1dawjzh.js → provider-1gfgk62c.js} +8 -8
- package/dist/chunks/{persistent-pty-5cyty3r2.js → provider-1kc6bgj5.js} +297 -297
- package/dist/chunks/{persistent-pty-d3yjsxey.js → provider-1npfg0xs.js} +7 -7
- package/dist/chunks/{persistent-pty-svvemcs6.js → provider-1p7te6jw.js} +6 -6
- package/dist/chunks/{persistent-pty-wp9pt51y.js → provider-1qjdpwr6.js} +9 -9
- package/dist/chunks/{persistent-pty-axsc7vaz.js → provider-1rcq3xh2.js} +1 -1
- package/dist/chunks/{persistent-pty-ge476xvj.js → provider-1wbt76dk.js} +174 -174
- package/dist/chunks/{persistent-pty-21r38tys.js → provider-21r38tys.js} +1 -1
- package/dist/chunks/{persistent-pty-2402vzrj.js → provider-2402vzrj.js} +1 -1
- package/dist/chunks/{persistent-pty-29x78va6.js → provider-29x78va6.js} +2 -2
- package/dist/chunks/{persistent-pty-2a5m3afh.js → provider-2a5m3afh.js} +1 -1
- package/dist/chunks/{persistent-pty-w21bzq9q.js → provider-2a6rn6yr.js} +5 -5
- package/dist/chunks/{persistent-pty-9rbga6h0.js → provider-2hd5d5xt.js} +32 -32
- package/dist/chunks/{persistent-pty-hfwabszm.js → provider-2p6av61j.js} +12 -12
- package/dist/chunks/{persistent-pty-hes1j7ga.js → provider-2q8c0gm7.js} +9 -9
- package/dist/chunks/{persistent-pty-gfkdt5qx.js → provider-2sfvcfsn.js} +6 -6
- package/dist/chunks/{persistent-pty-x3h8tes1.js → provider-2sraqb63.js} +2 -2
- package/dist/chunks/{persistent-pty-pxnvhszz.js → provider-2tw8fa6w.js} +4 -4
- package/dist/chunks/{persistent-pty-55wk8xf1.js → provider-34v9mh2z.js} +16 -16
- package/dist/chunks/{persistent-pty-4aps5ycz.js → provider-351g3160.js} +5 -5
- package/dist/chunks/{persistent-pty-gbwj81ez.js → provider-37y816cy.js} +23 -23
- package/dist/chunks/{persistent-pty-kesv6def.js → provider-38kvz03f.js} +20 -20
- package/dist/chunks/{persistent-pty-j10zwm3w.js → provider-3ck6fvg6.js} +23 -23
- package/dist/chunks/{persistent-pty-3fc6dm20.js → provider-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-1t0nfscf.js → provider-3gdftj2q.js} +67 -67
- package/dist/chunks/{persistent-pty-3hepkmqq.js → provider-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-3smtnn6g.js → provider-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → provider-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-ze07024f.js → provider-3y2ngnym.js} +4 -4
- package/dist/chunks/{persistent-pty-zbxvfzam.js → provider-4c30dr7a.js} +3 -3
- package/dist/chunks/{persistent-pty-h6r3nrb9.js → provider-4dgbcxzg.js} +4 -4
- package/dist/chunks/{persistent-pty-0f5egwty.js → provider-4g86yzmg.js} +26 -26
- package/dist/chunks/{persistent-pty-gek3hqmr.js → provider-4m1f7c2g.js} +26 -26
- package/dist/chunks/{persistent-pty-4ka5ffeb.js → provider-4z99h2j9.js} +31 -31
- package/dist/chunks/{persistent-pty-51a2ymsf.js → provider-54ttrj93.js} +42 -42
- package/dist/chunks/{persistent-pty-5c4hm403.js → provider-5c4hm403.js} +3 -3
- package/dist/chunks/{persistent-pty-5daktx2q.js → provider-5daktx2q.js} +1 -1
- package/dist/chunks/{persistent-pty-axg0gedx.js → provider-5npzb8nr.js} +25 -25
- package/dist/chunks/{persistent-pty-5we05nd2.js → provider-5sf0enm2.js} +12 -12
- package/dist/chunks/{persistent-pty-5t3nmthw.js → provider-5t3nmthw.js} +2 -2
- package/dist/chunks/{persistent-pty-xyxzmjjm.js → provider-5vcg79ee.js} +5 -5
- package/dist/chunks/{persistent-pty-hcf1qdgt.js → provider-5yqhmvcr.js} +44 -44
- package/dist/chunks/{persistent-pty-mhhfs06f.js → provider-5zwdrvn4.js} +82 -82
- package/dist/chunks/{persistent-pty-d9tmdxxh.js → provider-667yc4c2.js} +46 -46
- package/dist/chunks/{persistent-pty-669tq793.js → provider-669tq793.js} +1 -1
- package/dist/chunks/{persistent-pty-8szzmgce.js → provider-67dmnq4v.js} +7 -7
- package/dist/chunks/{persistent-pty-pqkcmren.js → provider-6cdpcxhv.js} +2 -2
- package/dist/chunks/{persistent-pty-m2xyr0c9.js → provider-6e4qnhr8.js} +11 -11
- package/dist/chunks/{persistent-pty-6msgmcgs.js → provider-6msgmcgs.js} +1 -1
- package/dist/chunks/{persistent-pty-qydamkj6.js → provider-6pwmqge3.js} +9 -9
- package/dist/chunks/{persistent-pty-tqf3jwg0.js → provider-72376wrz.js} +6 -6
- package/dist/chunks/{persistent-pty-zdd5h57h.js → provider-729zp0dx.js} +18 -18
- package/dist/chunks/{persistent-pty-74rrnwt7.js → provider-76p4c97e.js} +5 -5
- package/dist/chunks/{persistent-pty-7bmhse3q.js → provider-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-ag9w8cw1.js → provider-7bmx80wk.js} +5 -5
- package/dist/chunks/{persistent-pty-7dqw4kz8.js → provider-7dqw4kz8.js} +1 -1
- package/dist/chunks/{persistent-pty-mvf3rv83.js → provider-7k1xech5.js} +12 -12
- package/dist/chunks/{persistent-pty-k4vvbs8q.js → provider-7mhwkgkf.js} +8 -8
- package/dist/chunks/{persistent-pty-fjqrscp2.js → provider-7q56wrxt.js} +4 -4
- package/dist/chunks/{persistent-pty-z5dnp9d4.js → provider-7qkw4ngt.js} +25 -25
- package/dist/chunks/{persistent-pty-b1a1n7cj.js → provider-7w99qc9d.js} +3 -3
- package/dist/chunks/{persistent-pty-q5rhn9x0.js → provider-80nc4spm.js} +13 -13
- package/dist/chunks/{persistent-pty-qe3x1bke.js → provider-81zyrma5.js} +31 -31
- package/dist/chunks/{persistent-pty-5r49kz0e.js → provider-887z4k6m.js} +23 -23
- package/dist/chunks/{persistent-pty-y99sa8tk.js → provider-88r4h6e3.js} +21 -21
- package/dist/chunks/{persistent-pty-cpxfwkbg.js → provider-8a7sh5jm.js} +10 -10
- package/dist/chunks/{persistent-pty-sd29ckz9.js → provider-8b2r4c2a.js} +11 -11
- package/dist/chunks/{persistent-pty-8d7r5vzw.js → provider-8d7r5vzw.js} +1 -1
- package/dist/chunks/{persistent-pty-crxeq1ff.js → provider-8ke5vzqq.js} +3 -3
- package/dist/chunks/{persistent-pty-95t0hkjg.js → provider-8m9ckcb3.js} +5 -5
- package/dist/chunks/{persistent-pty-hdb7f41y.js → provider-8r5fzj69.js} +15 -15
- package/dist/chunks/{persistent-pty-z84pa76x.js → provider-8xvmqg79.js} +5 -5
- package/dist/chunks/{persistent-pty-frk1q65v.js → provider-91g84dh8.js} +34 -34
- package/dist/chunks/{persistent-pty-kkpc3vmh.js → provider-9a3rawad.js} +15 -15
- package/dist/chunks/{persistent-pty-z1zwcfv4.js → provider-9sbrwvac.js} +10 -10
- package/dist/chunks/{persistent-pty-p23m4hfg.js → provider-9vsnydsb.js} +8 -8
- package/dist/chunks/{persistent-pty-fhs97t90.js → provider-9wpgsbre.js} +9 -9
- package/dist/chunks/{persistent-pty-aaet6srn.js → provider-aaet6srn.js} +2 -2
- package/dist/chunks/{persistent-pty-wx6gfcwp.js → provider-actjby0x.js} +16 -16
- package/dist/chunks/{persistent-pty-nrby4tch.js → provider-aj1d5q5j.js} +5 -5
- package/dist/chunks/{persistent-pty-zjqwybhk.js → provider-awdcnpvv.js} +18 -18
- package/dist/chunks/{persistent-pty-zvh69c5a.js → provider-b5x7220n.js} +8 -8
- package/dist/chunks/{persistent-pty-b6gygkdw.js → provider-b6gygkdw.js} +2 -2
- package/dist/chunks/{persistent-pty-dfe8djrf.js → provider-bct739vz.js} +4 -4
- package/dist/chunks/{persistent-pty-ayxtpegw.js → provider-bmwcfc8x.js} +30 -30
- package/dist/chunks/{persistent-pty-gwk30na0.js → provider-bnyd0tae.js} +24 -24
- package/dist/chunks/{persistent-pty-azqw3jb1.js → provider-brwwdzr5.js} +3 -3
- package/dist/chunks/{persistent-pty-22k63xb0.js → provider-byyezdhj.js} +11 -11
- package/dist/chunks/{persistent-pty-tamw7e85.js → provider-cg1g2n28.js} +14 -14
- package/dist/chunks/{persistent-pty-45ke46p8.js → provider-cm7tjn9h.js} +11 -11
- package/dist/chunks/{persistent-pty-ene4sphv.js → provider-cnkj3bkk.js} +6 -6
- package/dist/chunks/{persistent-pty-csf2jhsg.js → provider-csf2jhsg.js} +1 -1
- package/dist/chunks/{persistent-pty-wn0nt2j8.js → provider-cxvz4c6f.js} +24 -24
- package/dist/chunks/{persistent-pty-mvpt2jq4.js → provider-cynhgza1.js} +4 -4
- package/dist/chunks/{persistent-pty-4st9gtz8.js → provider-d683g0r8.js} +11 -11
- package/dist/chunks/{persistent-pty-8y1sr6jq.js → provider-d8rms5sb.js} +7 -7
- package/dist/chunks/{persistent-pty-57ez7d0k.js → provider-d9s573fh.js} +2 -2
- package/dist/chunks/{persistent-pty-5dwyakjy.js → provider-dcykxfvx.js} +22 -22
- package/dist/chunks/{persistent-pty-dj2t23y0.js → provider-dj2t23y0.js} +2 -2
- package/dist/chunks/{persistent-pty-f2pnfy76.js → provider-dj316k4n.js} +15 -15
- package/dist/chunks/{persistent-pty-j542mbwn.js → provider-drdkww6h.js} +10 -10
- package/dist/chunks/{persistent-pty-krracc70.js → provider-ds9fva7f.js} +24 -24
- package/dist/chunks/{persistent-pty-amys79f3.js → provider-dwn3ee68.js} +13 -13
- package/dist/chunks/{persistent-pty-bjyddaxd.js → provider-e2v82dka.js} +15 -15
- package/dist/chunks/{persistent-pty-2ptmrvab.js → provider-e38px6ch.js} +7 -7
- package/dist/chunks/{persistent-pty-0n9t5jdb.js → provider-e9a3e76h.js} +22 -22
- package/dist/chunks/{persistent-pty-ef5x83kb.js → provider-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-mg0hvqns.js → provider-eg8s060n.js} +20 -20
- package/dist/chunks/{persistent-pty-vnzr5dgv.js → provider-ejmhj0m2.js} +13 -13
- package/dist/chunks/{persistent-pty-t6xg0e00.js → provider-enbew5pp.js} +20 -20
- package/dist/chunks/{persistent-pty-4m8jz26w.js → provider-ep4ghje0.js} +10 -10
- package/dist/chunks/{persistent-pty-h03wrkyp.js → provider-erw5rpbs.js} +4 -3
- package/dist/chunks/{persistent-pty-etq0c3wd.js → provider-etq0c3wd.js} +1 -1
- package/dist/chunks/{persistent-pty-qk51h78h.js → provider-eymf4g3t.js} +9 -9
- package/dist/chunks/{persistent-pty-1z7bxdr8.js → provider-f3n8kt47.js} +23 -22
- package/dist/chunks/{persistent-pty-8649vrz9.js → provider-f466az3m.js} +4 -4
- package/dist/chunks/{persistent-pty-am60j996.js → provider-f9y7tnx7.js} +5 -5
- package/dist/chunks/{persistent-pty-ngp9tqdp.js → provider-fd13sxf6.js} +12 -12
- package/dist/chunks/{persistent-pty-yz26c8tn.js → provider-fkdcvybx.js} +46 -46
- package/dist/chunks/{persistent-pty-sgwh5nyn.js → provider-fqj9nv8j.js} +5 -5
- package/dist/chunks/{persistent-pty-p4dwv8bm.js → provider-ftrz1f8n.js} +10 -10
- package/dist/chunks/{persistent-pty-53vt59dk.js → provider-fva1abr5.js} +7 -7
- package/dist/chunks/{persistent-pty-fxbjtjnd.js → provider-fxbjtjnd.js} +1 -1
- package/dist/chunks/{persistent-pty-sx06aacx.js → provider-fy6z0q13.js} +6 -6
- package/dist/chunks/{persistent-pty-gjvcn921.js → provider-fygkmg88.js} +26 -26
- package/dist/chunks/{persistent-pty-cmwkp3r5.js → provider-g0445xdp.js} +4 -4
- package/dist/chunks/{persistent-pty-awsncmv7.js → provider-ga5vg9fv.js} +3 -3
- package/dist/chunks/{persistent-pty-63mn2t91.js → provider-gagp2ybg.js} +21 -21
- package/dist/chunks/{persistent-pty-gd4qta3r.js → provider-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-3esknjh8.js → provider-gs0zj1fa.js} +43 -43
- package/dist/chunks/{persistent-pty-y10wk092.js → provider-gzbkpp9m.js} +9 -9
- package/dist/chunks/{persistent-pty-mzwaw4s1.js → provider-h4v1hw2f.js} +13 -13
- package/dist/chunks/{persistent-pty-h6vf3j39.js → provider-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-vkwmxz0p.js → provider-h7j2c3yy.js} +8 -8
- package/dist/chunks/{persistent-pty-a89e0tac.js → provider-h90v2x9d.js} +4 -4
- package/dist/chunks/{persistent-pty-cs048tcd.js → provider-hafdg6x7.js} +33 -33
- package/dist/chunks/{persistent-pty-hdnk95c8.js → provider-hdnk95c8.js} +2 -2
- package/dist/chunks/{persistent-pty-hzhe0gvd.js → provider-hhbk8mpt.js} +17 -17
- package/dist/chunks/{persistent-pty-1hfd6v93.js → provider-hyybwahv.js} +22 -22
- package/dist/chunks/{persistent-pty-73tb2d7t.js → provider-j028xdjb.js} +3 -3
- package/dist/chunks/{persistent-pty-5kte75t4.js → provider-j14a3kcd.js} +11 -11
- package/dist/chunks/{persistent-pty-axebf1a4.js → provider-j22bfhxa.js} +8 -8
- package/dist/chunks/{persistent-pty-tk9ew89t.js → provider-j4g63x3f.js} +8 -8
- package/dist/chunks/{persistent-pty-j56e64zr.js → provider-j56e64zr.js} +1 -1
- package/dist/chunks/{persistent-pty-3cz8rj72.js → provider-jwbqhvyy.js} +5 -5
- package/dist/chunks/{persistent-pty-k3c624dm.js → provider-k3c624dm.js} +3 -3
- package/dist/chunks/{persistent-pty-5dp7vyn0.js → provider-k3kkjkzr.js} +10 -10
- package/dist/chunks/{persistent-pty-masp7ejj.js → provider-kb20yxx5.js} +8 -8
- package/dist/chunks/{persistent-pty-0kraehyv.js → provider-kdqk7nms.js} +11 -11
- package/dist/chunks/{persistent-pty-sj90gq8y.js → provider-kj5jsdb7.js} +47 -47
- package/dist/chunks/{persistent-pty-4ygxkg3r.js → provider-knkst9z5.js} +25 -25
- package/dist/chunks/{persistent-pty-fwwk8vbp.js → provider-kp8q1t60.js} +5 -5
- package/dist/chunks/{persistent-pty-ca0tf0b7.js → provider-kpt0jdz6.js} +21 -21
- package/dist/chunks/{persistent-pty-m0jqrx5p.js → provider-m0jqrx5p.js} +2 -2
- package/dist/chunks/{persistent-pty-m3fdjcah.js → provider-m3fdjcah.js} +1 -1
- package/dist/chunks/{persistent-pty-wsmhkxds.js → provider-m4t7fw5x.js} +11 -11
- package/dist/chunks/{persistent-pty-p2860678.js → provider-m7nn889r.js} +36 -36
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → provider-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-k859smhz.js → provider-mdyjdwxf.js} +37 -37
- package/dist/chunks/{persistent-pty-mfqp6xfm.js → provider-mfqp6xfm.js} +2 -2
- package/dist/chunks/{persistent-pty-xvrfmkdb.js → provider-mh1qkymb.js} +4 -4
- package/dist/chunks/{persistent-pty-nd83aj77.js → provider-mh5wyt4r.js} +19 -19
- package/dist/chunks/{persistent-pty-44ke2mar.js → provider-mmr7bq34.js} +8 -8
- package/dist/chunks/{persistent-pty-6vxbcxjn.js → provider-mpvph0fb.js} +13 -13
- package/dist/chunks/{persistent-pty-1ft1n4nv.js → provider-mr9xcrcq.js} +1 -1
- package/dist/chunks/{persistent-pty-e0rr02qg.js → provider-mt181yvh.js} +3 -3
- package/dist/chunks/{persistent-pty-w47dka18.js → provider-mwp3erwx.js} +23 -23
- package/dist/chunks/{persistent-pty-7knfbc9g.js → provider-mz9p79zm.js} +18 -18
- package/dist/chunks/{persistent-pty-6nppgqk8.js → provider-n69ejct9.js} +9 -9
- package/dist/chunks/{persistent-pty-nmv4qf5f.js → provider-nctzvp07.js} +6 -6
- package/dist/chunks/{persistent-pty-81jqfy1y.js → provider-nn8rne3z.js} +20 -20
- package/dist/chunks/{persistent-pty-4vq28sgd.js → provider-nng2ktcm.js} +2 -2
- package/dist/chunks/{persistent-pty-61d6m9y9.js → provider-nsk5ek41.js} +6 -6
- package/dist/chunks/{persistent-pty-r8b3me2j.js → provider-nwsdknbg.js} +13 -13
- package/dist/chunks/{persistent-pty-2jmaghvr.js → provider-p0b4ytnr.js} +6 -6
- package/dist/chunks/{persistent-pty-jppvw2tx.js → provider-p28j5sbe.js} +4 -3
- package/dist/chunks/{persistent-pty-xz3t98gq.js → provider-p8qz4fmk.js} +3 -3
- package/dist/chunks/{persistent-pty-j6sjxh3t.js → provider-phh6jpcy.js} +9 -9
- package/dist/chunks/{persistent-pty-gaezwqx6.js → provider-pjbk54rp.js} +17 -17
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → provider-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → provider-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-fvsyg6qk.js → provider-psbrwbtd.js} +5 -5
- package/dist/chunks/provider-q43a4jj4.js +49 -0
- package/dist/chunks/{persistent-pty-5esmf8a0.js → provider-qahhm8db.js} +33 -33
- package/dist/chunks/{persistent-pty-95z2c9pc.js → provider-qh2stzd9.js} +16 -16
- package/dist/chunks/{persistent-pty-1kvb0kat.js → provider-qq9garkb.js} +36 -36
- package/dist/chunks/{persistent-pty-xfkkasph.js → provider-qqeeq2t9.js} +7 -7
- package/dist/chunks/{persistent-pty-qsdy395h.js → provider-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-07z5tzwy.js → provider-qwd61y7s.js} +5 -5
- package/dist/chunks/{persistent-pty-9x1fwner.js → provider-r4xt06hn.js} +11 -11
- package/dist/chunks/{persistent-pty-cppz10m7.js → provider-r963ve15.js} +12 -12
- package/dist/chunks/{persistent-pty-qcjne9p2.js → provider-rdkgddmz.js} +25 -25
- package/dist/chunks/{persistent-pty-rdw6cm16.js → provider-rdw6cm16.js} +1 -1
- package/dist/chunks/{persistent-pty-cwa6csj7.js → provider-rey5gbxv.js} +9 -9
- package/dist/chunks/{persistent-pty-jp86qn4x.js → provider-rj0ypf2k.js} +17 -17
- package/dist/chunks/{persistent-pty-yzdcysfh.js → provider-rjcfzdhg.js} +23 -23
- package/dist/chunks/{persistent-pty-h3jkmnye.js → provider-rmbwqpd3.js} +18 -18
- package/dist/chunks/{persistent-pty-zeh9ct20.js → provider-rq775frq.js} +2 -2
- package/dist/chunks/{persistent-pty-zmtxzyyy.js → provider-rsc2j7te.js} +17 -17
- package/dist/chunks/{persistent-pty-6yaq8bgj.js → provider-rscy38nb.js} +16 -16
- package/dist/chunks/{persistent-pty-49e0ywga.js → provider-rvm9em84.js} +3 -3
- package/dist/chunks/{persistent-pty-sej7e0cf.js → provider-s0hza5ac.js} +4 -4
- package/dist/chunks/{persistent-pty-s4enseaf.js → provider-s4enseaf.js} +2 -2
- package/dist/chunks/{persistent-pty-5smkf6vr.js → provider-s6cyt6ak.js} +14 -14
- package/dist/chunks/{persistent-pty-7ac170kv.js → provider-sdbkfcvv.js} +4 -4
- package/dist/chunks/{persistent-pty-vsp1fds9.js → provider-t51qk8jz.js} +4 -4
- package/dist/chunks/{persistent-pty-s8d7rejh.js → provider-t550f9t1.js} +4 -4
- package/dist/chunks/{persistent-pty-g2er3606.js → provider-t5a1ectr.js} +31 -31
- package/dist/chunks/{persistent-pty-gbe3t543.js → provider-t5kkkbc4.js} +16 -16
- package/dist/chunks/{persistent-pty-kne8f3cn.js → provider-t7n9q6bq.js} +4 -4
- package/dist/chunks/{persistent-pty-tazgh4e4.js → provider-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-tcezcvh9.js → provider-tcezcvh9.js} +1 -1
- package/dist/chunks/{persistent-pty-tdstcens.js → provider-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-mpz2f9hn.js → provider-tfyty9ze.js} +11 -11
- package/dist/chunks/{persistent-pty-35v1kxn5.js → provider-tgv2tnbf.js} +30 -30
- package/dist/chunks/{persistent-pty-94pybxf5.js → provider-tjqem147.js} +11 -11
- package/dist/chunks/{persistent-pty-nga2x94v.js → provider-tq1x5cnr.js} +7 -7
- package/dist/chunks/{persistent-pty-ts2x07a1.js → provider-ts2x07a1.js} +1 -1
- package/dist/chunks/{persistent-pty-tvtrv512.js → provider-tvtrv512.js} +1 -1
- package/dist/chunks/{persistent-pty-768y9nds.js → provider-txcxdz33.js} +20 -20
- package/dist/chunks/{persistent-pty-v1faaxn9.js → provider-v1faaxn9.js} +1 -1
- package/dist/chunks/{persistent-pty-t3qbpr1w.js → provider-v1q7vfww.js} +3 -3
- package/dist/chunks/{persistent-pty-89x64swv.js → provider-v4x1eedp.js} +23 -23
- package/dist/chunks/{persistent-pty-q4v54bpb.js → provider-v5fds5j5.js} +34 -34
- package/dist/chunks/{persistent-pty-f3r3b7qx.js → provider-vakcje41.js} +12 -12
- package/dist/chunks/{persistent-pty-veqvce7d.js → provider-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-4c1zt1be.js → provider-vhmx8meg.js} +82 -82
- package/dist/chunks/{persistent-pty-d2z8n5gq.js → provider-vsd9rkc3.js} +8 -8
- package/dist/chunks/{persistent-pty-gkq5qcyg.js → provider-vxx6ayt4.js} +15 -15
- package/dist/chunks/{persistent-pty-vzcthcp8.js → provider-vzcthcp8.js} +1 -1
- package/dist/chunks/{persistent-pty-anj84gah.js → provider-w1f0rjtr.js} +18 -18
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → provider-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-8g5k0jjx.js → provider-w4axh9wz.js} +8 -8
- package/dist/chunks/{persistent-pty-7adxfadd.js → provider-w4qe0sa0.js} +4 -4
- package/dist/chunks/{persistent-pty-a4v39hfy.js → provider-w8jt0a6r.js} +11 -11
- package/dist/chunks/{persistent-pty-wd87259q.js → provider-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-vcntgk60.js → provider-wsdt1w6c.js} +26 -22
- package/dist/chunks/{persistent-pty-8558z9wf.js → provider-wtkpzfnv.js} +5 -5
- package/dist/chunks/{persistent-pty-4yerfa2a.js → provider-wvf0gkq1.js} +16 -16
- package/dist/chunks/{persistent-pty-pbjanjg3.js → provider-x1az8410.js} +44 -44
- package/dist/chunks/{persistent-pty-x1ezjp6w.js → provider-x1ezjp6w.js} +1 -1
- package/dist/chunks/{persistent-pty-2kg3amvy.js → provider-xc59sqye.js} +27 -27
- package/dist/chunks/{persistent-pty-k5z6kse8.js → provider-xc81b6ma.js} +22 -22
- package/dist/chunks/{persistent-pty-yyz8jpkn.js → provider-xm667kcd.js} +9 -9
- package/dist/chunks/{persistent-pty-jn5zp6kq.js → provider-xpyadjc6.js} +7 -7
- package/dist/chunks/{persistent-pty-0eqr15n0.js → provider-xsrj88ys.js} +24 -24
- package/dist/chunks/{persistent-pty-z880hw7s.js → provider-xth1q62c.js} +25 -25
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → provider-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-0wnsc2cx.js → provider-y35pc762.js} +11 -11
- package/dist/chunks/{persistent-pty-dpkg50ah.js → provider-y71avatq.js} +4 -4
- package/dist/chunks/{persistent-pty-r8xr0va3.js → provider-yp2x3t23.js} +4 -4
- package/dist/chunks/{persistent-pty-yrhqyw5v.js → provider-yrhqyw5v.js} +1 -1
- package/dist/chunks/{persistent-pty-gv6a8nnw.js → provider-yyb7tjpc.js} +2 -2
- package/dist/chunks/{persistent-pty-eh332ggn.js → provider-yymhtj63.js} +4 -4
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → provider-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-h39be83b.js → provider-zjv98bwp.js} +35 -35
- package/dist/chunks/{persistent-pty-q00hqmww.js → provider-zpx63w9z.js} +13 -13
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → provider-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-zxq2ej10.js → provider-zxq2ej10.js} +1 -1
- package/dist/chunks/{persistent-pty-txckpkgb.js → provider-zzdnm867.js} +25 -25
- 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 +82 -82
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +124 -124
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +141 -141
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +123 -123
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +80 -80
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- 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 +16 -16
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- 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 +6 -6
- package/dist/filesystem/location-watcher.js +226 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +105 -105
- package/dist/form.js +77 -77
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +102 -102
- package/dist/git.js +6 -6
- 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 +90 -90
- 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 +355 -355
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +83 -83
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +354 -354
- package/dist/location.js +80 -80
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +97 -97
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +75 -75
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +104 -104
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +328 -328
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- 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 +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +119 -119
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +138 -138
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -347
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- 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 +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +226 -226
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +79 -79
- package/dist/provider.js +96 -96
- 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 +97 -97
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +88 -88
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- 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 +220 -220
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +85 -85
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +116 -116
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +13 -13
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +90 -90
- 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 +124 -124
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +115 -115
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +100 -100
- package/dist/tool/plugin/read.js +122 -122
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +107 -107
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/types/form.d.ts +15 -0
- package/dist/types/integration.d.ts +60 -0
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -0
- package/dist/types/v1/config/migrate.d.ts +3 -3
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- 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 +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- 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 +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-7m245gq7.js +0 -38
- package/dist/chunks/persistent-pty-gxrgn0ds.js +0 -252
- package/dist/chunks/persistent-pty-hr9dp009.js +0 -4
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → provider-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → provider-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → provider-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → provider-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → provider-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → provider-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → provider-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → provider-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → provider-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → provider-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → provider-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → provider-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w5fmr99.js → provider-3w5fmr99.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → provider-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → provider-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → provider-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → provider-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → provider-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → provider-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → provider-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → provider-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → provider-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → provider-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → provider-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → provider-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → provider-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-922hggd3.js → provider-922hggd3.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → provider-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → provider-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → provider-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → provider-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → provider-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → provider-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → provider-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → provider-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → provider-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → provider-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → provider-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → provider-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → provider-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → provider-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → provider-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → provider-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → provider-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e3qxr5gk.js → provider-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → provider-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → provider-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → provider-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → provider-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → provider-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → provider-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → provider-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → provider-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → provider-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-fxgpk5d8.js → provider-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → provider-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → provider-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → provider-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → provider-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hjbc5kem.js → provider-hjbc5kem.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → provider-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → provider-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → provider-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → provider-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → provider-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → provider-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → provider-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → provider-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → provider-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → provider-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → provider-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → provider-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → provider-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → provider-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → provider-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → provider-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → provider-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → provider-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → provider-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → provider-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → provider-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-sk3qaz4a.js → provider-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → provider-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-twg0f83k.js → provider-twg0f83k.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → provider-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → provider-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → provider-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → provider-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → provider-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → provider-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → provider-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8cydn3q.js → provider-y8cydn3q.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → provider-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → provider-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → provider-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → provider-z9919s4g.js} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ID14,
|
|
3
|
-
Service75,
|
|
4
|
-
node79
|
|
5
|
-
} from "./persistent-pty-gbwj81ez.js";
|
|
6
1
|
import {
|
|
7
2
|
ID13,
|
|
3
|
+
Service73,
|
|
4
|
+
node76
|
|
5
|
+
} from "./provider-37y816cy.js";
|
|
6
|
+
import {
|
|
7
|
+
ID12,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
11
11
|
nativeSettings2,
|
|
12
12
|
mergeOverlay2,
|
|
13
13
|
mergeHeaders2,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service72,
|
|
15
|
+
node75
|
|
16
|
+
} from "./provider-3ck6fvg6.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service69,
|
|
19
|
+
node71
|
|
20
|
+
} from "./provider-d683g0r8.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
22
|
+
ID11,
|
|
23
23
|
VariantID2,
|
|
24
24
|
Ref2,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service71,
|
|
26
|
+
node74
|
|
27
|
+
} from "./provider-mwp3erwx.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./provider-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/model-resolver.ts
|
|
33
33
|
var exports_model_resolver = {};
|
|
@@ -36,15 +36,15 @@ __export(exports_model_resolver, {
|
|
|
36
36
|
ModelConfigurationError: () => ModelConfigurationError3,
|
|
37
37
|
ModelInitializationError: () => ModelInitializationError3,
|
|
38
38
|
ModelResolver: () => exports_model_resolver,
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service68,
|
|
40
40
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
41
41
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
42
42
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
43
43
|
VariantUnavailableError: () => VariantUnavailableError3,
|
|
44
44
|
fromCatalogModel: () => fromCatalogModel2,
|
|
45
45
|
hasPackage: () => hasPackage2,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
46
|
+
layer: () => layer23,
|
|
47
|
+
node: () => node70,
|
|
48
48
|
resolveModel: () => resolveModel2,
|
|
49
49
|
withVariant: () => withVariant2
|
|
50
50
|
});
|
|
@@ -54,8 +54,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
54
54
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
55
55
|
import { Npm } from "@opencode/util/npm";
|
|
56
56
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
57
|
-
providerID:
|
|
58
|
-
modelID:
|
|
57
|
+
providerID: ID12,
|
|
58
|
+
modelID: ID11,
|
|
59
59
|
variant: VariantID2
|
|
60
60
|
}) {
|
|
61
61
|
get message() {
|
|
@@ -64,8 +64,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
67
|
-
providerID:
|
|
68
|
-
modelID:
|
|
67
|
+
providerID: ID12,
|
|
68
|
+
modelID: ID11,
|
|
69
69
|
package: Schema.String
|
|
70
70
|
}) {
|
|
71
71
|
get message() {
|
|
@@ -75,8 +75,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
75
75
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
76
76
|
|
|
77
77
|
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
78
|
-
providerID:
|
|
79
|
-
modelID:
|
|
78
|
+
providerID: ID12,
|
|
79
|
+
modelID: ID11,
|
|
80
80
|
package: Schema.String,
|
|
81
81
|
detail: Schema.String
|
|
82
82
|
}) {
|
|
@@ -86,8 +86,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
89
|
-
providerID:
|
|
90
|
-
modelID:
|
|
89
|
+
providerID: ID12,
|
|
90
|
+
modelID: ID11,
|
|
91
91
|
package: Schema.String,
|
|
92
92
|
phase: InitializationPhase2,
|
|
93
93
|
detail: Schema.String
|
|
@@ -98,8 +98,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
101
|
-
providerID:
|
|
102
|
-
modelID:
|
|
101
|
+
providerID: ID12,
|
|
102
|
+
modelID: ID11,
|
|
103
103
|
variables: Schema.Array(Schema.String)
|
|
104
104
|
}) {
|
|
105
105
|
get message() {
|
|
@@ -108,8 +108,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
111
|
-
providerID:
|
|
112
|
-
modelID:
|
|
111
|
+
providerID: ID12,
|
|
112
|
+
modelID: ID11,
|
|
113
113
|
route: Schema.String
|
|
114
114
|
}) {
|
|
115
115
|
get message() {
|
|
@@ -117,7 +117,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
class
|
|
120
|
+
class Service68 extends Context.Service()("@opencode/ModelResolver") {
|
|
121
121
|
}
|
|
122
122
|
var withVariant2 = (model, variantID) => {
|
|
123
123
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -257,15 +257,15 @@ var causeMessage = (cause) => {
|
|
|
257
257
|
};
|
|
258
258
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
259
259
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
260
|
-
var
|
|
261
|
-
const providers = yield*
|
|
262
|
-
const models = yield*
|
|
263
|
-
const integrations = yield*
|
|
260
|
+
var layer23 = Layer.effect(Service68, Effect.gen(function* () {
|
|
261
|
+
const providers = yield* Service72;
|
|
262
|
+
const models = yield* Service71;
|
|
263
|
+
const integrations = yield* Service73;
|
|
264
264
|
const npm = yield* Npm.Service;
|
|
265
|
-
const aisdk = yield*
|
|
265
|
+
const aisdk = yield* Service69;
|
|
266
266
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
267
267
|
const provider = yield* providers.get(selected.providerID);
|
|
268
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
268
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID13.make(selected.providerID));
|
|
269
269
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
270
270
|
const runtimeInfo = yield* withVariant2(selected, variant);
|
|
271
271
|
const model = yield* fromCatalogModel2(runtimeInfo, credential, {
|
|
@@ -287,7 +287,7 @@ var layer19 = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
287
287
|
transport: selected.transport
|
|
288
288
|
};
|
|
289
289
|
});
|
|
290
|
-
return
|
|
290
|
+
return Service68.of({
|
|
291
291
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
292
292
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
|
|
293
293
|
if (!selected)
|
|
@@ -304,10 +304,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
304
304
|
const name = packageName2(packageName);
|
|
305
305
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
306
306
|
}
|
|
307
|
-
var
|
|
308
|
-
service:
|
|
309
|
-
layer:
|
|
310
|
-
deps: [
|
|
307
|
+
var node70 = makeLocationNode({
|
|
308
|
+
service: Service68,
|
|
309
|
+
layer: layer23,
|
|
310
|
+
deps: [node75, node74, node76, Npm.node, node71]
|
|
311
311
|
});
|
|
312
312
|
|
|
313
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
313
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service68, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer23, node70, exports_model_resolver };
|
|
@@ -2,40 +2,40 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./provider-922hggd3.js";
|
|
6
6
|
import {
|
|
7
7
|
Service79,
|
|
8
8
|
node83
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./provider-6cdpcxhv.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service19,
|
|
12
|
+
node21
|
|
13
|
+
} from "./provider-7qkw4ngt.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./provider-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
20
20
|
__export(exports_filesystem, {
|
|
21
|
-
Content: () =>
|
|
21
|
+
Content: () => Content2,
|
|
22
22
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
23
23
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
24
24
|
Entry: () => Entry2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event3,
|
|
26
26
|
FileSystem: () => exports_filesystem,
|
|
27
27
|
FindInput: () => FindInput2,
|
|
28
28
|
GlobInput: () => GlobInput2,
|
|
29
29
|
GrepInput: () => GrepInput2,
|
|
30
|
-
ListInput: () =>
|
|
30
|
+
ListInput: () => ListInput2,
|
|
31
31
|
Match: () => Match2,
|
|
32
|
-
NotFoundError: () =>
|
|
32
|
+
NotFoundError: () => NotFoundError2,
|
|
33
33
|
ReadInput: () => ReadInput2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service18,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
37
|
WriteInput: () => WriteInput2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node20
|
|
39
39
|
});
|
|
40
40
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
41
41
|
import path from "path";
|
|
@@ -51,18 +51,18 @@ var WriteInput2 = Schema.Struct({
|
|
|
51
51
|
data: Schema.Uint8Array
|
|
52
52
|
});
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class NotFoundError2 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
55
55
|
path: RelativePath2
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var Content2 = Schema.Struct({
|
|
59
59
|
uri: Schema.String,
|
|
60
60
|
name: Schema.String.pipe(Schema.optional),
|
|
61
61
|
content: Schema.String,
|
|
62
62
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
63
63
|
mime: Schema.String
|
|
64
64
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
65
|
-
var
|
|
65
|
+
var ListInput2 = Schema.Struct({
|
|
66
66
|
path: Schema.String.pipe(Schema.optional)
|
|
67
67
|
});
|
|
68
68
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -85,14 +85,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
85
85
|
limit: Schema.optionalKey(PositiveInt2)
|
|
86
86
|
}) {
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var Event3 = FileSystem.Event;
|
|
89
89
|
|
|
90
|
-
class
|
|
90
|
+
class Service18 extends Context.Service()("@opencode/FileSystem") {
|
|
91
91
|
}
|
|
92
|
-
var baseLayer = Layer.effect(
|
|
92
|
+
var baseLayer = Layer.effect(Service18, Effect.gen(function* () {
|
|
93
93
|
const fs = yield* FSUtil.Service;
|
|
94
94
|
const location = yield* Service79;
|
|
95
|
-
const search = yield*
|
|
95
|
+
const search = yield* Service19;
|
|
96
96
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
97
97
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
98
98
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -103,15 +103,15 @@ var baseLayer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
103
103
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
104
104
|
return { absolute, real, directory: location.directory };
|
|
105
105
|
});
|
|
106
|
-
return
|
|
106
|
+
return Service18.of({
|
|
107
107
|
find: search.find,
|
|
108
108
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
109
|
-
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
110
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
109
|
+
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error)));
|
|
110
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error)));
|
|
111
111
|
if (info.type !== "File")
|
|
112
112
|
return yield* Effect.die(new Error("Path is not a file"));
|
|
113
113
|
return {
|
|
114
|
-
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
114
|
+
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError2({ path: input.path })), (_, error) => Effect.die(error))),
|
|
115
115
|
mime: FSUtil.mimeType(target.real)
|
|
116
116
|
};
|
|
117
117
|
}),
|
|
@@ -140,10 +140,10 @@ var baseLayer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
}));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node20 = makeLocationNode({
|
|
144
|
+
service: Service18,
|
|
145
145
|
layer: baseLayer,
|
|
146
|
-
deps: [FSUtil.node, node83,
|
|
146
|
+
deps: [FSUtil.node, node83, node21]
|
|
147
147
|
});
|
|
148
148
|
|
|
149
|
-
export { FindInput2, Write2, ReadInput2, WriteInput2,
|
|
149
|
+
export { FindInput2, Write2, ReadInput2, WriteInput2, NotFoundError2, Content2, ListInput2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event3, Service18, node20, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./provider-mt181yvh.js";
|
|
5
5
|
import {
|
|
6
6
|
Service82,
|
|
7
7
|
node86
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./provider-3y2ngnym.js";
|
|
9
9
|
import {
|
|
10
10
|
llmClient2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./provider-5t3nmthw.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./provider-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
provenance2,
|
|
17
17
|
compatible2,
|
|
18
18
|
isCheckpoint2,
|
|
19
19
|
encode2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./provider-csf2jhsg.js";
|
|
21
21
|
import {
|
|
22
22
|
load4
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./provider-kb20yxx5.js";
|
|
24
24
|
import {
|
|
25
25
|
create3
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./provider-rdw6cm16.js";
|
|
27
27
|
import {
|
|
28
28
|
toLLMMessages2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./provider-ts2x07a1.js";
|
|
30
30
|
import {
|
|
31
31
|
baseTranscript2,
|
|
32
32
|
unsupportedParts2,
|
|
33
33
|
boundImages2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./provider-bmwcfc8x.js";
|
|
35
35
|
import {
|
|
36
36
|
toSessionError2
|
|
37
|
-
} from "./
|
|
37
|
+
} from "./provider-f466az3m.js";
|
|
38
38
|
import {
|
|
39
39
|
policy2,
|
|
40
40
|
transient2
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./provider-nctzvp07.js";
|
|
42
42
|
import {
|
|
43
43
|
estimate2
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./provider-h6vf3j39.js";
|
|
45
45
|
import {
|
|
46
46
|
calculateCost2,
|
|
47
47
|
record2,
|
|
48
48
|
add2
|
|
49
|
-
} from "./
|
|
49
|
+
} from "./provider-tdstcens.js";
|
|
50
50
|
import {
|
|
51
51
|
__export
|
|
52
|
-
} from "./
|
|
52
|
+
} from "./provider-9rqn6x4v.js";
|
|
53
53
|
|
|
54
54
|
// src/session/compaction.ts
|
|
55
55
|
var exports_compaction2 = {};
|
|
56
56
|
__export(exports_compaction2, {
|
|
57
|
-
Service: () =>
|
|
57
|
+
Service: () => Service9,
|
|
58
58
|
SessionCompaction: () => exports_compaction2,
|
|
59
59
|
buildPrompt: () => buildPrompt2,
|
|
60
60
|
estimateTokens: () => estimateTokens2,
|
|
61
61
|
layer: () => layer7,
|
|
62
|
-
node: () =>
|
|
62
|
+
node: () => node11,
|
|
63
63
|
retainUsers: () => retainUsers2,
|
|
64
64
|
serializeToolContent: () => serializeToolContent2,
|
|
65
65
|
truncateToolOutput: () => truncateToolOutput2
|
|
@@ -125,7 +125,7 @@ var SUMMARY_HEADINGS = SUMMARY_TEMPLATE.split(`
|
|
|
125
125
|
`).filter((line) => line.startsWith("##"));
|
|
126
126
|
var LEGACY_HEADING = "## Additional Context";
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service9 extends Context.Service()("@opencode/SessionCompaction") {
|
|
129
129
|
}
|
|
130
130
|
var hasInputUsage = (message) => message.type === "assistant" && !message.error && message.tokens !== undefined && message.tokens.input + message.tokens.cache.read + message.tokens.cache.write > 0;
|
|
131
131
|
var estimateTokens2 = (input) => {
|
|
@@ -298,7 +298,7 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
298
298
|
};
|
|
299
299
|
var hasSummarySection = (summary) => summary.split(`
|
|
300
300
|
`).some((line) => SUMMARY_HEADINGS.includes(line.trim()));
|
|
301
|
-
var layer7 = Layer.effect(
|
|
301
|
+
var layer7 = Layer.effect(Service9, Effect.gen(function* () {
|
|
302
302
|
const bus = yield* Service82;
|
|
303
303
|
const llm = yield* LLMClient.Service;
|
|
304
304
|
const db = (yield* Service83).db;
|
|
@@ -607,7 +607,7 @@ var layer7 = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
607
607
|
}
|
|
608
608
|
}));
|
|
609
609
|
});
|
|
610
|
-
return
|
|
610
|
+
return Service9.of({
|
|
611
611
|
transform: state.transform,
|
|
612
612
|
reload: state.reload,
|
|
613
613
|
enabled: () => state.get().auto,
|
|
@@ -616,10 +616,10 @@ var layer7 = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
616
616
|
compactManual
|
|
617
617
|
});
|
|
618
618
|
}));
|
|
619
|
-
var
|
|
620
|
-
service:
|
|
619
|
+
var node11 = makeLocationNode({
|
|
620
|
+
service: Service9,
|
|
621
621
|
layer: layer7,
|
|
622
622
|
deps: [node86, node87, llmClient2]
|
|
623
623
|
});
|
|
624
624
|
|
|
625
|
-
export {
|
|
625
|
+
export { Service9, estimateTokens2, retainUsers2, truncateToolOutput2, serializeToolContent2, buildPrompt2, layer7, node11, exports_compaction2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./provider-5t3nmthw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./provider-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service30,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
13
|
layer: () => layer11,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node33
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service30 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service30, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -360,11 +360,11 @@ var makeLayer2 = (connector) => Layer.effect(Service23, Effect.gen(function* ()
|
|
|
360
360
|
}, { discard: true });
|
|
361
361
|
});
|
|
362
362
|
yield* Effect.addFinalizer(() => closeAll);
|
|
363
|
-
return
|
|
363
|
+
return Service30.of({ bind, close, closeAll });
|
|
364
364
|
}));
|
|
365
365
|
var layer11 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
366
366
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
367
367
|
})));
|
|
368
|
-
var
|
|
368
|
+
var node33 = makeGlobalNode({ service: Service30, layer: layer11, deps: [webSocketConstructor2] });
|
|
369
369
|
|
|
370
|
-
export {
|
|
370
|
+
export { Service30, makeLayer2, layer11, node33, exports_model_transport };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID11,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./provider-mwp3erwx.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service64
|
|
7
|
+
} from "./provider-qq9garkb.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./provider-2sfvcfsn.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/lmstudio.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -36,7 +36,7 @@ function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
36
36
|
id: "opencode.provider.lmstudio",
|
|
37
37
|
effect: Effect.fn(function* (ctx) {
|
|
38
38
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service64;
|
|
40
40
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
41
41
|
const loaded = { models: [], hash: "[]" };
|
|
42
42
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -63,7 +63,7 @@ function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
63
63
|
});
|
|
64
64
|
for (const item of loaded.models) {
|
|
65
65
|
providers.models.update(providerID, item.key, (model) => {
|
|
66
|
-
model.modelID =
|
|
66
|
+
model.modelID = ID11.make(item.key);
|
|
67
67
|
model.name = item.display_name || item.key;
|
|
68
68
|
model.family = item.architecture ? Family2.make(item.architecture) : undefined;
|
|
69
69
|
model.capabilities = {
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
3
|
node86
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./provider-3y2ngnym.js";
|
|
5
5
|
import {
|
|
6
6
|
parse4,
|
|
7
7
|
parseRemote2,
|
|
8
8
|
validateBranch3,
|
|
9
9
|
isRemote2,
|
|
10
10
|
cachePath2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./provider-2402vzrj.js";
|
|
12
12
|
import {
|
|
13
13
|
AbsolutePath2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./provider-922hggd3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
Service53,
|
|
17
|
+
node55
|
|
18
|
+
} from "./provider-pjbk54rp.js";
|
|
19
19
|
import {
|
|
20
20
|
create3
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./provider-rdw6cm16.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./provider-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/reference.ts
|
|
27
27
|
var exports_reference2 = {};
|
|
28
28
|
__export(exports_reference2, {
|
|
29
|
-
Event: () =>
|
|
29
|
+
Event: () => Event9,
|
|
30
30
|
GitSource: () => GitSource2,
|
|
31
|
-
Info: () =>
|
|
31
|
+
Info: () => Info8,
|
|
32
32
|
LocalSource: () => LocalSource2,
|
|
33
33
|
Reference: () => exports_reference2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service52,
|
|
35
35
|
Source: () => Source3,
|
|
36
|
-
node: () =>
|
|
36
|
+
node: () => node54
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
40
40
|
import { Reference } from "@opencode/schema/reference";
|
|
41
41
|
import { Global } from "@opencode/util/global";
|
|
42
|
-
import { Event as
|
|
42
|
+
import { Event as Event9 } from "@opencode/schema/reference";
|
|
43
43
|
var LocalSource2 = Reference.LocalSource;
|
|
44
44
|
var GitSource2 = Reference.GitSource;
|
|
45
45
|
var Source3 = Reference.Source;
|
|
46
|
-
var
|
|
46
|
+
var Info8 = Reference.Info;
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service52 extends Context.Service()("@opencode/Reference") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
52
|
const bus = yield* Service82;
|
|
53
|
-
const cache = yield*
|
|
53
|
+
const cache = yield* Service53;
|
|
54
54
|
const scope = yield* Scope.Scope;
|
|
55
55
|
const list = () => Array.from(state.get().sources).flatMap(([name, source]) => {
|
|
56
56
|
const info = {
|
|
@@ -60,7 +60,7 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
60
60
|
...source.hidden === undefined ? {} : { hidden: source.hidden }
|
|
61
61
|
};
|
|
62
62
|
if (source.type === "local")
|
|
63
|
-
return [
|
|
63
|
+
return [Info8.make({ ...info, path: source.path })];
|
|
64
64
|
const repository = parse4(source.repository);
|
|
65
65
|
if (!repository || !isRemote2(repository))
|
|
66
66
|
return [];
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return [
|
|
75
|
-
|
|
75
|
+
Info8.make({
|
|
76
76
|
...info,
|
|
77
77
|
path: AbsolutePath2.make(cachePath2(global.repos, repository, source.branch))
|
|
78
78
|
})
|
|
@@ -104,7 +104,7 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
107
|
-
return
|
|
107
|
+
return Service52.of({
|
|
108
108
|
transform: state.transform,
|
|
109
109
|
reload: state.reload,
|
|
110
110
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -112,10 +112,10 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var
|
|
116
|
-
service:
|
|
115
|
+
var node54 = makeLocationNode({
|
|
116
|
+
service: Service52,
|
|
117
117
|
layer,
|
|
118
|
-
deps: [Global.node, node86,
|
|
118
|
+
deps: [Global.node, node86, node55]
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
export { LocalSource2, GitSource2, Source3,
|
|
121
|
+
export { LocalSource2, GitSource2, Source3, Info8, Service52, node54, exports_reference2, Event9 };
|