@opencode/core 2.0.22 → 2.0.23
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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{instruction-discovery-wwsveqr1.js → generate-01s90evy.js} +21 -21
- package/dist/chunks/{instruction-discovery-g2b38xbr.js → generate-01vz176c.js} +17 -17
- package/dist/chunks/{instruction-discovery-s0ptdndk.js → generate-02hj8zpc.js} +1 -1
- package/dist/chunks/{instruction-discovery-fagw50gs.js → generate-067vzkwc.js} +16 -16
- package/dist/chunks/{instruction-discovery-4gksvbnk.js → generate-06wny47j.js} +187 -187
- package/dist/chunks/{instruction-discovery-qdyk8phn.js → generate-0at0q6bk.js} +6 -6
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → generate-0j77ygfz.js} +6 -6
- package/dist/chunks/{instruction-discovery-ab44fxfx.js → generate-0n25afzx.js} +5 -5
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → generate-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-7ws0qf92.js → generate-0q2zy8rk.js} +34 -34
- package/dist/chunks/{instruction-discovery-0vbcp93d.js → generate-0vbcp93d.js} +2 -2
- package/dist/chunks/{instruction-discovery-8sesv03m.js → generate-0z57cqh9.js} +7 -7
- package/dist/chunks/{instruction-discovery-7fx6jza6.js → generate-14qr745v.js} +15 -15
- package/dist/chunks/{instruction-discovery-4tgz421y.js → generate-14vr5qa8.js} +28 -17
- package/dist/chunks/{instruction-discovery-gt8knnyb.js → generate-1ader487.js} +11 -11
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → generate-1dazxqgg.js} +2 -2
- package/dist/chunks/{instruction-discovery-1dvck2a7.js → generate-1dvck2a7.js} +2 -2
- package/dist/chunks/{instruction-discovery-h9zw7x04.js → generate-1fs3aa3n.js} +11 -11
- package/dist/chunks/{instruction-discovery-bbx3sj05.js → generate-1vsafbzv.js} +10 -10
- package/dist/chunks/{instruction-discovery-33w4ejhs.js → generate-1ygqh575.js} +6 -6
- package/dist/chunks/{instruction-discovery-kn7rctz9.js → generate-1z18ck0n.js} +9 -9
- package/dist/chunks/{instruction-discovery-3gc4y8jw.js → generate-21tjqxxf.js} +20 -20
- package/dist/chunks/{instruction-discovery-zk4rm6sg.js → generate-29x9jy0f.js} +34 -34
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → generate-2a5m3afh.js} +1 -1
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → generate-2ccvkpx1.js} +2 -2
- package/dist/chunks/{instruction-discovery-geswxttb.js → generate-2pcsyv91.js} +48 -48
- package/dist/chunks/{instruction-discovery-p813dxyq.js → generate-330q9b0x.js} +31 -35
- package/dist/chunks/{instruction-discovery-chamsvbn.js → generate-34bnvpfh.js} +33 -33
- package/dist/chunks/{instruction-discovery-br0fskr5.js → generate-34manr0f.js} +23 -23
- package/dist/chunks/{instruction-discovery-vj991bdt.js → generate-39k0hmda.js} +2 -2
- package/dist/chunks/{instruction-discovery-rz6t0wqc.js → generate-3dgfh0cr.js} +46 -46
- package/dist/chunks/{instruction-discovery-5sv8fqdt.js → generate-3edgjjmd.js} +40 -33
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → generate-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-5ch8te7e.js → generate-3j10s7ay.js} +9 -9
- package/dist/chunks/{instruction-discovery-caxch348.js → generate-3q48ekr2.js} +16 -16
- package/dist/chunks/{instruction-discovery-87bs7bte.js → generate-3rd28rcz.js} +11 -11
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → generate-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-sk3qaz4a.js → generate-3t0ybcrp.js} +58 -20
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → generate-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-01wcheh0.js → generate-3x5f6s31.js} +62 -83
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → generate-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-3bss0zm1.js → generate-435eggbz.js} +20 -20
- package/dist/chunks/{instruction-discovery-m58kmhef.js → generate-4eax54pa.js} +6 -9
- package/dist/chunks/{instruction-discovery-th1qq6gc.js → generate-4kfhygng.js} +37 -37
- package/dist/chunks/{instruction-discovery-gv15az23.js → generate-4ntq7m4z.js} +17 -17
- package/dist/chunks/{instruction-discovery-772hnq51.js → generate-529vcnym.js} +11 -11
- package/dist/chunks/{instruction-discovery-54ma36ye.js → generate-54ma36ye.js} +1 -1
- package/dist/chunks/{instruction-discovery-g5w8qwbj.js → generate-57b9ws8p.js} +7 -7
- package/dist/chunks/{instruction-discovery-5daktx2q.js → generate-5daktx2q.js} +1 -1
- package/dist/chunks/{instruction-discovery-xjbrwz9c.js → generate-5kp03ppx.js} +12 -12
- package/dist/chunks/{instruction-discovery-53eqz1v2.js → generate-5pyjqqve.js} +2 -2
- package/dist/chunks/{instruction-discovery-b2nc1zae.js → generate-5swqfww9.js} +28 -28
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → generate-5t3nmthw.js} +2 -2
- package/dist/chunks/{instruction-discovery-nnxtdpka.js → generate-5txw87z1.js} +8 -8
- package/dist/chunks/{instruction-discovery-axmmtzpw.js → generate-5tznt6k3.js} +19 -19
- package/dist/chunks/{instruction-discovery-6wqmdryt.js → generate-5v5aasd4.js} +24 -24
- package/dist/chunks/{instruction-discovery-1q5zb881.js → generate-5yzz6hd1.js} +24 -132
- package/dist/chunks/{instruction-discovery-j4q93wg3.js → generate-61fzh3cq.js} +8 -8
- package/dist/chunks/{instruction-discovery-669tq793.js → generate-669tq793.js} +1 -1
- package/dist/chunks/{instruction-discovery-kgxgq8c4.js → generate-6cjqe6sy.js} +24 -24
- package/dist/chunks/{instruction-discovery-qj8eh1ht.js → generate-6m42r3np.js} +21 -21
- package/dist/chunks/{instruction-discovery-exnynncn.js → generate-6nv25w3f.js} +33 -33
- package/dist/chunks/{instruction-discovery-ved7ma53.js → generate-6p2526mp.js} +11 -11
- package/dist/chunks/{instruction-discovery-g259vpc3.js → generate-6ywhdf6k.js} +26 -26
- package/dist/chunks/{instruction-discovery-ksgw4q3t.js → generate-6zp854ra.js} +3 -3
- package/dist/chunks/{instruction-discovery-71az546q.js → generate-71az546q.js} +2 -2
- package/dist/chunks/{instruction-discovery-73tb2d7t.js → generate-73tb2d7t.js} +1 -1
- package/dist/chunks/{instruction-discovery-wbx60fzd.js → generate-782xyd0k.js} +5 -5
- package/dist/chunks/{instruction-discovery-cr59q9qa.js → generate-7bftgs18.js} +4 -4
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-7dqw4kz8.js → generate-7dqw4kz8.js} +1 -1
- package/dist/chunks/{instruction-discovery-nxq54803.js → generate-7keeseff.js} +11 -11
- package/dist/chunks/{instruction-discovery-90gx0j5y.js → generate-7naq09xc.js} +27 -27
- package/dist/chunks/{instruction-discovery-7j2qha59.js → generate-7s2tn799.js} +8 -8
- package/dist/chunks/{instruction-discovery-8r9kvmb6.js → generate-7xf5yptx.js} +26 -26
- package/dist/chunks/{instruction-discovery-24x7sj2v.js → generate-81f48a1k.js} +10 -10
- package/dist/chunks/{instruction-discovery-jvy07h1s.js → generate-823qfcak.js} +1 -1
- package/dist/chunks/{instruction-discovery-fah0stq9.js → generate-82czg0r8.js} +9 -9
- package/dist/chunks/{instruction-discovery-84txncab.js → generate-84txncab.js} +1 -1
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → generate-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instruction-discovery-fwq9htr3.js → generate-8f9gr54c.js} +11 -11
- package/dist/chunks/{instruction-discovery-a90g57x6.js → generate-8mnpn7jw.js} +57 -57
- package/dist/chunks/{instruction-discovery-21201d4m.js → generate-8zvk0rgz.js} +25 -25
- package/dist/chunks/{instruction-discovery-17z9v3bw.js → generate-94jj38jg.js} +27 -27
- package/dist/chunks/{instruction-discovery-9e5bzkjp.js → generate-9e5bzkjp.js} +3 -3
- package/dist/chunks/{instruction-discovery-fqzyqcjh.js → generate-9pvxkkw3.js} +20 -20
- package/dist/chunks/{instruction-discovery-jpcc9kth.js → generate-9pwf6adz.js} +30 -30
- package/dist/chunks/{instruction-discovery-cc4mqy7q.js → generate-9sy6gwjh.js} +12 -6
- package/dist/chunks/{instruction-discovery-aaet6srn.js → generate-aaet6srn.js} +2 -2
- package/dist/chunks/{instruction-discovery-068serwz.js → generate-addxnjmp.js} +4 -4
- package/dist/chunks/{instruction-discovery-y9e73xa5.js → generate-aer73x3z.js} +18 -18
- package/dist/chunks/{instruction-discovery-4d8yn3gb.js → generate-afv7vh30.js} +20 -20
- package/dist/chunks/{instruction-discovery-yzzqahvy.js → generate-ajmxk7z2.js} +22 -22
- package/dist/chunks/{instruction-discovery-fajwdt4h.js → generate-an75rhmh.js} +18 -18
- package/dist/chunks/{instruction-discovery-aszn3zwx.js → generate-aqdbyk8h.js} +5 -5
- package/dist/chunks/{instruction-discovery-mqw81mrh.js → generate-arb3wnqs.js} +2 -2
- package/dist/chunks/{instruction-discovery-b0t1fydp.js → generate-atz6g77g.js} +23 -23
- package/dist/chunks/{instruction-discovery-6hh8tjw2.js → generate-b27vhd2z.js} +4 -4
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → generate-b6gygkdw.js} +2 -2
- package/dist/chunks/{instruction-discovery-3j0eccra.js → generate-b9rmm35c.js} +10 -10
- package/dist/chunks/{instruction-discovery-xw25vat5.js → generate-bepbq8jj.js} +15 -15
- package/dist/chunks/{instruction-discovery-609c7rjf.js → generate-bh5cssh3.js} +8 -8
- package/dist/chunks/{instruction-discovery-gb65a7a1.js → generate-bkrwt1n9.js} +20 -20
- package/dist/chunks/{instruction-discovery-fp86hj50.js → generate-bp27thah.js} +10 -10
- package/dist/chunks/{instruction-discovery-cyk1kg6z.js → generate-bq4mvesw.js} +33 -33
- package/dist/chunks/{instruction-discovery-y56ehv6b.js → generate-bydnjh3t.js} +9 -9
- package/dist/chunks/{instruction-discovery-x74ax8b2.js → generate-bzqyrf6j.js} +25 -25
- package/dist/chunks/{instruction-discovery-eqkxs06z.js → generate-cdm0dq9n.js} +6 -6
- package/dist/chunks/{instruction-discovery-r4akt23v.js → generate-cj02erkw.js} +3 -3
- package/dist/chunks/{instruction-discovery-dv1qgsyq.js → generate-cmwkp3r5.js} +8 -8
- package/dist/chunks/{instruction-discovery-7pw8dncw.js → generate-d2eqb18p.js} +4 -4
- package/dist/chunks/{instruction-discovery-75p81wsx.js → generate-dfc208d8.js} +32 -32
- package/dist/chunks/{instruction-discovery-dpkg50ah.js → generate-dpkg50ah.js} +1 -1
- package/dist/chunks/{instruction-discovery-k6hcwg2z.js → generate-dwxaxj0c.js} +9 -9
- package/dist/chunks/{instruction-discovery-c9qfs3nh.js → generate-e0ne0z26.js} +90 -90
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → generate-e3qxr5gk.js} +2 -2
- package/dist/chunks/generate-ee09rdq3.js +507 -0
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → generate-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-ntngab6e.js → generate-ejbv3g31.js} +20 -10
- package/dist/chunks/{instruction-discovery-wvmj1et3.js → generate-ejg73w2g.js} +9 -9
- package/dist/chunks/{instruction-discovery-3z218dsj.js → generate-eqfn0pk5.js} +41 -46
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → generate-etq0c3wd.js} +1 -1
- package/dist/chunks/{instruction-discovery-hn87b5yq.js → generate-evhyysd2.js} +35 -35
- package/dist/chunks/{instruction-discovery-yydx669n.js → generate-exjwxjfq.js} +15 -15
- package/dist/chunks/{instruction-discovery-4rr4p9ms.js → generate-f5k9xycy.js} +24 -24
- package/dist/chunks/{instruction-discovery-t9r88hzk.js → generate-fep41vc5.js} +24 -24
- package/dist/chunks/{instruction-discovery-38p5t189.js → generate-ffxkc1dx.js} +11 -11
- package/dist/chunks/{instruction-discovery-034ce5nj.js → generate-fjh44twp.js} +4 -4
- package/dist/chunks/{instruction-discovery-2daza0p7.js → generate-g2xfdbz5.js} +16 -16
- package/dist/chunks/{instruction-discovery-eq8x7ha8.js → generate-g9c3k2sz.js} +30 -38
- package/dist/chunks/{instruction-discovery-fxt23bak.js → generate-gcxxm8yg.js} +11 -11
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → generate-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-pzxge5ds.js → generate-gej6rn0s.js} +30 -30
- package/dist/chunks/{instruction-discovery-srq8z0b0.js → generate-gh5z95q3.js} +9 -9
- package/dist/chunks/{instruction-discovery-nwb3b15q.js → generate-gjv38h0k.js} +20 -24
- package/dist/chunks/{instruction-discovery-nrjg26ec.js → generate-gk28ph79.js} +11 -11
- package/dist/chunks/{instruction-discovery-arxkpe44.js → generate-gknnw9w7.js} +60 -40
- package/dist/chunks/{instruction-discovery-6a5ag3jq.js → generate-gra2jmjd.js} +5 -5
- package/dist/chunks/{instruction-discovery-x5k8pkz3.js → generate-gtvea8z9.js} +3 -3
- package/dist/chunks/{instruction-discovery-dn5164wf.js → generate-gya1c0vy.js} +3 -3
- package/dist/chunks/{instruction-discovery-h2b79v29.js → generate-h2b79v29.js} +2 -2
- package/dist/chunks/{instruction-discovery-ywxndyv1.js → generate-h6310vsd.js} +4 -4
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → generate-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-1vnjqps3.js → generate-h7aewrw9.js} +56 -56
- package/dist/chunks/{instruction-discovery-gd7r64mz.js → generate-h9jzhyk0.js} +11 -11
- package/dist/chunks/{instruction-discovery-gw7cjrad.js → generate-h9wp8z5w.js} +4 -4
- package/dist/chunks/{instruction-discovery-3bc8czyk.js → generate-hbyhqfhs.js} +5 -5
- package/dist/chunks/{instruction-discovery-70f73jf1.js → generate-hn4yapt1.js} +45 -45
- package/dist/chunks/{instruction-discovery-96c14hr5.js → generate-hrs38e71.js} +24 -24
- package/dist/chunks/{instruction-discovery-0n82x6dt.js → generate-hyxvh71r.js} +46 -46
- package/dist/chunks/{instruction-discovery-j56e64zr.js → generate-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-7wtms9gt.js → generate-j7vp94m4.js} +33 -33
- package/dist/chunks/{instruction-discovery-vc32h82s.js → generate-jb9mn43j.js} +22 -22
- package/dist/chunks/{instruction-discovery-na0cega3.js → generate-jjw1xd6n.js} +10 -10
- package/dist/chunks/{instruction-discovery-6644et9y.js → generate-jmdp6qyf.js} +35 -35
- package/dist/chunks/{instruction-discovery-098a7yv1.js → generate-jpep6vf5.js} +3 -3
- package/dist/chunks/{instruction-discovery-0yrmzdme.js → generate-jrw39j1g.js} +16 -11
- package/dist/chunks/{instruction-discovery-hz0q9sdq.js → generate-k1qrnqst.js} +8 -8
- package/dist/chunks/{instruction-discovery-hjxrfacw.js → generate-k5tx4xwh.js} +18 -18
- package/dist/chunks/{instruction-discovery-hehaxqkv.js → generate-kb6gw2zp.js} +4 -4
- package/dist/chunks/{instruction-discovery-c8g8cdht.js → generate-kkndcpqr.js} +4 -4
- package/dist/chunks/{instruction-discovery-b0xx1bw1.js → generate-kygz6673.js} +5 -5
- package/dist/chunks/{instruction-discovery-42h9518d.js → generate-m26jacn4.js} +11 -11
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → generate-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-36cgxzxf.js → generate-m4b4ezfy.js} +16 -16
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-rttzrg3r.js → generate-mjqndqed.js} +12 -12
- package/dist/chunks/{instruction-discovery-7je2rhvj.js → generate-mmy17vwk.js} +11 -11
- package/dist/chunks/{instruction-discovery-h53acpwd.js → generate-mt68kget.js} +24 -24
- package/dist/chunks/generate-mzmyqq3a.js +253 -0
- package/dist/chunks/{instruction-discovery-bh3q4eyg.js → generate-n5gzjg8d.js} +13 -13
- package/dist/chunks/{instruction-discovery-kjcere04.js → generate-n7fmmpds.js} +11 -11
- package/dist/chunks/{instruction-discovery-rqkavtkg.js → generate-n92tnbgp.js} +3 -3
- package/dist/chunks/{instruction-discovery-x8pk0y4v.js → generate-ntev6yqw.js} +42 -42
- package/dist/chunks/{instruction-discovery-s225zym4.js → generate-ntmn2n27.js} +17 -17
- package/dist/chunks/{instruction-discovery-wszd5dmy.js → generate-nwgjszw0.js} +15 -15
- package/dist/chunks/{instruction-discovery-s4r1cmp3.js → generate-nyhzf7s9.js} +17 -17
- package/dist/chunks/{instruction-discovery-yphk03p8.js → generate-nz1ptcx7.js} +20 -20
- package/dist/chunks/{instruction-discovery-kgr5617j.js → generate-p5cm9qbj.js} +15 -6
- package/dist/chunks/{instruction-discovery-e2jmw6zx.js → generate-pd0d3v86.js} +11 -11
- package/dist/chunks/{instruction-discovery-9prspse7.js → generate-peckcdzj.js} +13 -13
- package/dist/chunks/{instruction-discovery-xmh85kzb.js → generate-pfh2gawv.js} +11 -11
- package/dist/chunks/generate-phz3h32g.js +18 -0
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → generate-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-p5pxx3ht.js → generate-ppcxd43r.js} +15 -15
- package/dist/chunks/{instruction-discovery-b65pgdb7.js → generate-pvkpwa2b.js} +16 -9
- package/dist/chunks/{instruction-discovery-79wzcjsa.js → generate-pxhak851.js} +6 -6
- package/dist/chunks/{instruction-discovery-8faykdbn.js → generate-q0808tka.js} +5 -5
- package/dist/chunks/{instruction-discovery-bc819vt5.js → generate-q0jhbe3n.js} +11 -11
- package/dist/chunks/{instruction-discovery-d737nyfv.js → generate-q0raz0xt.js} +9 -9
- package/dist/chunks/{instruction-discovery-r01t9b5y.js → generate-q3ersh05.js} +6 -6
- package/dist/chunks/{instruction-discovery-ccwzr35z.js → generate-qb7y9a6p.js} +13 -13
- package/dist/chunks/{instruction-discovery-qnet8f1y.js → generate-qbyggmx7.js} +7 -7
- package/dist/chunks/{instruction-discovery-qs2rp835.js → generate-qgatrawj.js} +11 -11
- package/dist/chunks/{instruction-discovery-cwa6csj7.js → generate-qmqgtz8f.js} +9 -9
- package/dist/chunks/{instruction-discovery-qnc92qwc.js → generate-qnc92qwc.js} +1 -1
- package/dist/chunks/{instruction-discovery-txp0vmzz.js → generate-qq54afgs.js} +15 -15
- package/dist/chunks/{instruction-discovery-4a973s6x.js → generate-qs9jyzer.js} +5 -5
- package/dist/chunks/{instruction-discovery-qsdy395h.js → generate-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-fqtvmpfq.js → generate-qwjmgwmn.js} +8 -8
- package/dist/chunks/{instruction-discovery-k3c624dm.js → generate-qxjc9qry.js} +4 -4
- package/dist/chunks/{instruction-discovery-768hztz0.js → generate-r7pm0y1x.js} +28 -28
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → generate-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-z468zaec.js → generate-rh2b0agp.js} +17 -17
- package/dist/chunks/{instruction-discovery-67mhc6gs.js → generate-rpztatg6.js} +21 -21
- package/dist/chunks/{instruction-discovery-qgr4tws1.js → generate-rv4s02rg.js} +15 -15
- package/dist/chunks/{instruction-discovery-vk0h33mx.js → generate-s3pcx2b8.js} +10 -10
- package/dist/chunks/{instruction-discovery-9t7a50xb.js → generate-s8d7rejh.js} +4 -4
- package/dist/chunks/{instruction-discovery-qygbw77c.js → generate-scgrse2b.js} +5 -5
- package/dist/chunks/{instruction-discovery-yppg54y4.js → generate-sgpy7nbp.js} +16 -16
- package/dist/chunks/{instruction-discovery-93pbq578.js → generate-spja3q52.js} +28 -28
- package/dist/chunks/{instruction-discovery-qg6jkzae.js → generate-stnmwbvn.js} +45 -45
- package/dist/chunks/{instruction-discovery-c5c0bz0t.js → generate-t0sqncza.js} +5 -5
- package/dist/chunks/{instruction-discovery-ckf8nxjz.js → generate-t2az9yje.js} +4 -4
- package/dist/chunks/{instruction-discovery-s48x4bgh.js → generate-t3cgces8.js} +39 -39
- package/dist/chunks/{instruction-discovery-r57kss4c.js → generate-t55xhmjx.js} +36 -36
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → generate-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-vpw3bjrj.js → generate-tbp0qxg2.js} +25 -25
- package/dist/chunks/generate-tc5sgnzb.js +26 -0
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → generate-tcezcvh9.js} +1 -1
- package/dist/chunks/{instruction-discovery-tdstcens.js → generate-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-5mxct2xg.js → generate-te8w5cgp.js} +10 -10
- package/dist/chunks/{instruction-discovery-386stjsv.js → generate-thtzhryg.js} +13 -13
- package/dist/chunks/{instruction-discovery-6ehccv3h.js → generate-trc3n3qb.js} +12 -12
- package/dist/chunks/{instruction-discovery-adrzke39.js → generate-v0es1rhs.js} +9 -9
- package/dist/chunks/{instruction-discovery-qyc0y5ej.js → generate-v1rqtb9w.js} +23 -23
- package/dist/chunks/{instruction-discovery-80t7gq44.js → generate-v1v20ddn.js} +4 -4
- package/dist/chunks/{instruction-discovery-m0r31qfn.js → generate-vbfgae2j.js} +4 -4
- package/dist/chunks/{instruction-discovery-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-w9p1c293.js → generate-vnh00gv4.js} +22 -22
- package/dist/chunks/{instruction-discovery-h3rm5wyc.js → generate-vswtd384.js} +20 -20
- package/dist/chunks/{instruction-discovery-93hpb89x.js → generate-vx3jgdek.js} +3 -3
- package/dist/chunks/{instruction-discovery-vzcthcp8.js → generate-vzcthcp8.js} +1 -1
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → generate-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-gqawmzqm.js → generate-w1ad28wa.js} +8 -8
- package/dist/chunks/{instruction-discovery-w2h15q85.js → generate-w2h15q85.js} +2 -2
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-7e0zw79e.js → generate-w8vdqaq3.js} +27 -27
- package/dist/chunks/{instruction-discovery-b4twkq7r.js → generate-w92k2e0p.js} +4 -4
- package/dist/chunks/{instruction-discovery-4g11qfmx.js → generate-wc2m80g2.js} +34 -34
- package/dist/chunks/{instruction-discovery-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-fxvwdnb4.js → generate-wdshzat6.js} +44 -21
- package/dist/chunks/{instruction-discovery-jw34hpx6.js → generate-wg7dvnk1.js} +86 -86
- package/dist/chunks/{instruction-discovery-fnwnhbfk.js → generate-wj2bx7an.js} +13 -13
- package/dist/chunks/{instruction-discovery-9vjnmhkc.js → generate-wrp5ry2f.js} +15 -15
- package/dist/chunks/{instruction-discovery-2yez9773.js → generate-x0y04rr6.js} +18 -18
- package/dist/chunks/{instruction-discovery-x1ezjp6w.js → generate-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instruction-discovery-e709npfq.js → generate-x4csn5yb.js} +17 -17
- package/dist/chunks/{instruction-discovery-7fvn2yaq.js → generate-xer3snnb.js} +8 -8
- package/dist/chunks/{instruction-discovery-vm2gnf4v.js → generate-xf4rrgwy.js} +24 -24
- package/dist/chunks/{instruction-discovery-an4n7p46.js → generate-xgaq9ax1.js} +20 -21
- package/dist/chunks/{instruction-discovery-xkntkrq7.js → generate-xkntkrq7.js} +2 -2
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → generate-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-a56fhhr2.js → generate-y5pnfqkr.js} +21 -21
- package/dist/chunks/{instruction-discovery-qxmvdacm.js → generate-y8zbdhhn.js} +36 -36
- package/dist/chunks/{instruction-discovery-d4k4eg4n.js → generate-yfxkm5w6.js} +49 -49
- package/dist/chunks/{instruction-discovery-g6pt2ykv.js → generate-yhecr6n4.js} +17 -17
- package/dist/chunks/{instruction-discovery-rhraev7y.js → generate-yp2x3t23.js} +4 -4
- package/dist/chunks/{instruction-discovery-qtkea077.js → generate-ywacswhv.js} +11 -11
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-62s7jehk.js → generate-z15fp2pm.js} +5 -5
- package/dist/chunks/{instruction-discovery-b1f75b2t.js → generate-z32f8zps.js} +9 -9
- package/dist/chunks/{instruction-discovery-76jv6ta8.js → generate-z3507kbh.js} +15 -15
- package/dist/chunks/{instruction-discovery-0xcdhwc5.js → generate-z3ra53tp.js} +3 -3
- package/dist/chunks/{instruction-discovery-ysyp8d4a.js → generate-z872cvkj.js} +21 -21
- package/dist/chunks/{instruction-discovery-mjv4tm51.js → generate-z8hrkqzq.js} +4 -4
- package/dist/chunks/{instruction-discovery-e3bkmxas.js → generate-ze7rj9cq.js} +14 -14
- package/dist/chunks/{instruction-discovery-vn72gsba.js → generate-zfs8ae4p.js} +4 -4
- package/dist/chunks/{instruction-discovery-n8vdnqrc.js → generate-zmr78fwr.js} +5 -5
- package/dist/chunks/{instruction-discovery-wxyynt4w.js → generate-znsx74x0.js} +1 -1
- package/dist/chunks/{instruction-discovery-hjryqbzv.js → generate-zp2fsh7c.js} +45 -45
- package/dist/chunks/{instruction-discovery-hzktwm2m.js → generate-zpzjyv2k.js} +19 -19
- package/dist/chunks/{instruction-discovery-5mmejq10.js → generate-zq24ypn2.js} +32 -32
- package/dist/chunks/{instruction-discovery-1ajc00mn.js → generate-zqkxpfgh.js} +68 -68
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → generate-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-a5jrrkeg.js → generate-zwhxpsnh.js} +20 -20
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → generate-zxq2ej10.js} +1 -1
- 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 +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -106
- package/dist/config/plugin/agent.js +116 -123
- package/dist/config/plugin/command.js +205 -213
- package/dist/config/plugin/compaction.js +154 -161
- package/dist/config/plugin/compatibility.js +134 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -124
- package/dist/config/plugin/image.js +116 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -123
- package/dist/config/plugin/mcp.js +123 -130
- package/dist/config/plugin/policy.js +117 -124
- package/dist/config/plugin/provider.js +116 -123
- package/dist/config/plugin/reference.js +118 -125
- package/dist/config/plugin/shell.js +118 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -144
- package/dist/config/plugin/snapshot.js +116 -123
- package/dist/config/plugin/source.js +117 -124
- package/dist/config/plugin/tool-output.js +117 -125
- package/dist/config/plugin/websearch.js +117 -124
- package/dist/config/plugin/worktree.js +118 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +117 -124
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -372
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +93 -93
- 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 +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +218 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +104 -104
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- 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.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -363
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +78 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -360
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +105 -101
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +105 -105
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +3 -1
- package/dist/persistent-pty/binary.node.js +2 -0
- package/dist/persistent-pty/binary.workerd.js +2 -0
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +91 -89
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- 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 +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -122
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -163
- package/dist/plugin/sdk.js +70 -70
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- 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 +222 -230
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -222
- package/dist/session/execution.js +127 -128
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -93
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -232
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +123 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -172
- package/dist/session/shell.js +130 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -211
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +114 -112
- package/dist/session/transfer.js +210 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -221
- 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 +15 -15
- package/dist/shell.js +132 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- 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 +126 -126
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +210 -218
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -220
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +108 -108
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +9 -8
- package/dist/tool.js +12 -12
- package/dist/types/instance/service.d.ts +2 -2
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/job.d.ts +1 -1
- package/dist/types/location-service-map.d.ts +3 -3
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -0
- package/dist/types/persistent-pty/binary.node.d.ts +1 -0
- package/dist/types/persistent-pty/binary.workerd.d.ts +1 -0
- package/dist/types/persistent-pty/daemon.d.ts +4 -4
- package/dist/types/persistent-pty/index.d.ts +3 -0
- package/dist/types/session/command.d.ts +1 -1
- package/dist/types/session/compaction.d.ts +4 -1
- package/dist/types/session/diff.d.ts +2 -2
- package/dist/types/session/generate.d.ts +3 -2
- package/dist/types/session/prompt.d.ts +1 -1
- package/dist/types/session/revert.d.ts +2 -3
- package/dist/types/session/runner/index.d.ts +2 -1
- package/dist/types/session/session.d.ts +5 -5
- package/dist/types/session/shell.d.ts +1 -1
- package/dist/types/session/skill.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +2 -0
- package/dist/types/session/transfer.d.ts +2 -3
- package/dist/types/session.d.ts +5 -4
- package/dist/types/tool-output.d.ts +1 -0
- package/dist/types/v1/config/migrate.d.ts +15 -319
- package/dist/types/vcs.d.ts +6 -0
- package/dist/types/worktree.d.ts +2 -1
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +96 -96
- package/dist/v1/config/permission.js +7 -7
- 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/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- 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 +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +10 -11
- package/dist/chunks/instruction-discovery-21r38tys.js +0 -14
- package/dist/chunks/instruction-discovery-bscb95cy.js +0 -21
- package/dist/chunks/instruction-discovery-c49890bn.js +0 -194
- package/dist/chunks/instruction-discovery-j15mfg1p.js +0 -84
- package/dist/chunks/instruction-discovery-jqh9b0xq.js +0 -18
- package/dist/chunks/instruction-discovery-jzzgdak2.js +0 -34
- package/dist/chunks/instruction-discovery-mazbtkaa.js +0 -29
- package/dist/chunks/instruction-discovery-mp9mcqyr.js +0 -252
- package/dist/chunks/instruction-discovery-mvh4jj0m.js +0 -26
- package/dist/chunks/instruction-discovery-tvtrv512.js +0 -51
- package/dist/chunks/instruction-discovery-vncycja5.js +0 -21
- package/dist/chunks/instruction-discovery-wb3qhx4w.js +0 -507
- package/dist/chunks/instruction-discovery-yrhqyw5v.js +0 -15
- package/dist/filesystem/ignore.js +0 -58
- package/dist/id/id.js +0 -14
- package/dist/plugin/provider/venice.js +0 -7
- package/dist/types/filesystem/ignore.d.ts +0 -2
- package/dist/types/id/id.d.ts +0 -19
- package/dist/types/plugin/provider/venice.d.ts +0 -1
- package/dist/types/v1/config/attachment.d.ts +0 -18
- package/dist/types/v1/config/config.d.ts +0 -1243
- package/dist/types/v1/config/formatter.d.ts +0 -15
- package/dist/types/v1/config/layout.d.ts +0 -4
- package/dist/types/v1/config/lsp.d.ts +0 -38
- package/dist/types/v1/config/server.d.ts +0 -10
- package/dist/types/v1/config/skills.d.ts +0 -7
- package/dist/v1/config/attachment.js +0 -11
- package/dist/v1/config/config.js +0 -23
- package/dist/v1/config/formatter.js +0 -10
- package/dist/v1/config/layout.js +0 -8
- package/dist/v1/config/lsp.js +0 -16
- package/dist/v1/config/server.js +0 -9
- package/dist/v1/config/skills.js +0 -8
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → generate-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → generate-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → generate-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w5fmr99.js → generate-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → generate-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hjbc5kem.js → generate-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8cydn3q.js → generate-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-5t3nmthw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-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: () => Service27,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer12,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node30
|
|
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 Service27 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(Service27, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service42, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service27.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer12 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node30 = makeGlobalNode({ service: Service27, layer: layer12, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service27, makeLayer2, layer12, node30, exports_model_transport };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service66
|
|
3
|
+
} from "./generate-5v5aasd4.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/stdio.ts
|
|
9
9
|
var exports_stdio = {};
|
|
@@ -21,7 +21,7 @@ var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
|
21
21
|
var EXIT_WAIT = Duration.seconds(1);
|
|
22
22
|
var STDERR_TAIL = 1000;
|
|
23
23
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
24
|
-
const environment = yield*
|
|
24
|
+
const environment = yield* Service66;
|
|
25
25
|
const scope = yield* Effect.scope;
|
|
26
26
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
27
27
|
const buffer = new ReadBuffer;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-6zp854ra.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./generate-9e5bzkjp.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
load4
|
|
12
|
+
} from "./generate-pd0d3v86.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-5pyjqqve.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
|
-
ListInput: () =>
|
|
24
|
-
Service: () =>
|
|
23
|
+
ListInput: () => ListInput5,
|
|
24
|
+
Service: () => Service59,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node62
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -50,13 +50,13 @@ var ListProjectInput = Schema.Struct({
|
|
|
50
50
|
subpath: RelativePath.pipe(Schema.optional)
|
|
51
51
|
});
|
|
52
52
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
53
|
-
var
|
|
53
|
+
var ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class Service59 extends Context.Service()("@opencode/SessionStore") {
|
|
56
56
|
}
|
|
57
|
-
var layer = Layer.effect(
|
|
57
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
58
58
|
const { db } = yield* Service84;
|
|
59
|
-
return
|
|
59
|
+
return Service59.of({
|
|
60
60
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
61
61
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
62
62
|
return row ? fromRow2(row) : undefined;
|
|
@@ -98,7 +98,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
98
98
|
const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
|
|
99
99
|
return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
|
|
100
100
|
}),
|
|
101
|
-
context: Effect.fn("SessionStore.context")((sessionID) =>
|
|
101
|
+
context: Effect.fn("SessionStore.context")((sessionID) => load4(db, sessionID, "latest")),
|
|
102
102
|
message: Effect.fn("SessionStore.message")(function* (messageID) {
|
|
103
103
|
const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
|
|
104
104
|
return row ? {
|
|
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node62 = makeGlobalNode({ service: Service59, layer, deps: [node88] });
|
|
129
129
|
|
|
130
|
-
export {
|
|
130
|
+
export { ListInput5, Service59, node62, exports_store };
|
|
@@ -1,42 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-6m42r3np.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info14
|
|
9
|
+
} from "./generate-3rd28rcz.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Info13
|
|
15
|
-
} from "./instruction-discovery-6hh8tjw2.js";
|
|
11
|
+
Info16
|
|
12
|
+
} from "./generate-b27vhd2z.js";
|
|
16
13
|
import {
|
|
17
14
|
Info17
|
|
18
|
-
} from "./
|
|
15
|
+
} from "./generate-w2h15q85.js";
|
|
19
16
|
import {
|
|
20
17
|
Spec2
|
|
21
|
-
} from "./
|
|
22
|
-
import {
|
|
23
|
-
Info16
|
|
24
|
-
} from "./instruction-discovery-n8vdnqrc.js";
|
|
18
|
+
} from "./generate-7dqw4kz8.js";
|
|
25
19
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
20
|
+
Info18
|
|
21
|
+
} from "./generate-zmr78fwr.js";
|
|
28
22
|
import {
|
|
29
|
-
migrate2,
|
|
30
23
|
normalizeAction2,
|
|
31
24
|
migrateAgent2,
|
|
32
|
-
|
|
25
|
+
migrateCommand2,
|
|
26
|
+
modelSelection2,
|
|
33
27
|
migrateMcp2,
|
|
34
28
|
migrateProvider2,
|
|
35
29
|
providerID2
|
|
36
|
-
} from "./
|
|
30
|
+
} from "./generate-5yzz6hd1.js";
|
|
37
31
|
import {
|
|
38
32
|
__export
|
|
39
|
-
} from "./
|
|
33
|
+
} from "./generate-9rqn6x4v.js";
|
|
40
34
|
|
|
41
35
|
// src/config/normalize.ts
|
|
42
36
|
var exports_normalize = {};
|
|
@@ -54,6 +48,7 @@ import { ConfigCompaction } from "@opencode/schema/config/compaction";
|
|
|
54
48
|
import { ConfigFormatter } from "@opencode/schema/config/formatter";
|
|
55
49
|
import { ConfigLSP } from "@opencode/schema/config/lsp";
|
|
56
50
|
import { ConfigMedia } from "@opencode/schema/config/media";
|
|
51
|
+
import { ConfigModel } from "@opencode/schema/config/model";
|
|
57
52
|
import { ConfigMCP } from "@opencode/schema/config/mcp";
|
|
58
53
|
import { ConfigPlugin } from "@opencode/schema/config/plugin";
|
|
59
54
|
import { ConfigPolicy } from "@opencode/schema/config/policy";
|
|
@@ -72,6 +67,7 @@ var unsupportedExperimental = [
|
|
|
72
67
|
];
|
|
73
68
|
var unsupportedProvider = ["id", "whitelist", "blacklist"];
|
|
74
69
|
var unsupportedModel = ["release_date", "attachment", "reasoning", "temperature", "experimental"];
|
|
70
|
+
var LegacyAutoupdate = Schema.Literals([true, false, "notify"]);
|
|
75
71
|
function normalize2(input) {
|
|
76
72
|
if (!isRecord(input))
|
|
77
73
|
return {
|
|
@@ -84,18 +80,15 @@ function normalize2(input) {
|
|
|
84
80
|
const encoded = {};
|
|
85
81
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
82
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
83
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(LegacyAutoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
84
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
85
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ?
|
|
91
|
-
if (legacyMedia !== undefined)
|
|
92
|
-
|
|
93
|
-
if (migrated !== undefined)
|
|
94
|
-
encoded.media = canonical(ConfigMedia.Info, migrated);
|
|
95
|
-
}
|
|
86
|
+
const legacyMedia = own(input, "attachment") ? decodeEncoded(ConfigMedia.Info, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
87
|
+
if (legacyMedia !== undefined)
|
|
88
|
+
encoded.media = legacyMedia;
|
|
96
89
|
if (legacySnapshots !== undefined)
|
|
97
90
|
encoded.snapshots = legacySnapshots;
|
|
98
|
-
const migratedUpdate = legacyUpdate ===
|
|
91
|
+
const migratedUpdate = legacyUpdate === false ? "disable" : legacyUpdate === "notify" ? "notify" : legacyUpdate === true ? "auto" : undefined;
|
|
99
92
|
const update = prefer(migratedUpdate, nativeUpdate, ["update"], diagnostics);
|
|
100
93
|
if (update !== undefined)
|
|
101
94
|
encoded.update = update;
|
|
@@ -104,17 +97,14 @@ function normalize2(input) {
|
|
|
104
97
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
98
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
99
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
100
|
+
const legacyCommands = decodeMap(input.command, Info16, ["command"], diagnostics, decodeValue);
|
|
108
101
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
|
-
const migratedCommands = mapValues(legacyCommands, (value) =>
|
|
110
|
-
const migrated = commands2({ value })?.value;
|
|
111
|
-
return migrated === undefined ? undefined : canonical(ConfigCommand.Info, migrated);
|
|
112
|
-
});
|
|
102
|
+
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
113
103
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
104
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
105
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info14, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
106
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
|
-
const migratedSmallModel =
|
|
107
|
+
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
118
108
|
if (legacySmallModel && !migratedSmallModel)
|
|
119
109
|
diagnostics.push({
|
|
120
110
|
kind: "unsupported",
|
|
@@ -126,7 +116,7 @@ function normalize2(input) {
|
|
|
126
116
|
model: migratedSmallModel,
|
|
127
117
|
...legacyAgents.title
|
|
128
118
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
119
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info14, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
120
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
121
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
122
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -152,10 +142,12 @@ function normalize2(input) {
|
|
|
152
142
|
normalizeWatcher(input, encoded, diagnostics);
|
|
153
143
|
normalizeFormatter(input, encoded, diagnostics);
|
|
154
144
|
normalizeLsp(input, encoded, diagnostics);
|
|
145
|
+
const model = own(input, "model") ? decodeValue(ConfigModel.Selection, input.model, ["model"], diagnostics) : undefined;
|
|
146
|
+
if (model)
|
|
147
|
+
encoded.model = { ...model, providerID: providerID2(model.providerID) };
|
|
155
148
|
const nativeAtomic = {
|
|
156
149
|
$schema: Info.fields.$schema,
|
|
157
150
|
shell: Info.fields.shell,
|
|
158
|
-
model: Info.fields.model,
|
|
159
151
|
default_agent: Info.fields.default_agent,
|
|
160
152
|
share: Info.fields.share,
|
|
161
153
|
enterprise: Info.fields.enterprise,
|
|
@@ -421,7 +413,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
421
413
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
422
414
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
423
415
|
return [];
|
|
424
|
-
const provider = decodeValue(
|
|
416
|
+
const provider = decodeValue(Info18, raw, path, diagnostics);
|
|
425
417
|
if (provider === undefined)
|
|
426
418
|
return [];
|
|
427
419
|
const destination = providerID2(name);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
timeouts2,
|
|
6
6
|
mergeOverlay2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-3edgjjmd.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./generate-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/aisdk.ts
|
|
13
13
|
var exports_aisdk = {};
|
|
14
14
|
__export(exports_aisdk, {
|
|
15
15
|
AISDK: () => exports_aisdk,
|
|
16
16
|
InitError: () => InitError2,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service74,
|
|
18
18
|
locationLayer: () => locationLayer2,
|
|
19
|
-
node: () =>
|
|
19
|
+
node: () => node78
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -151,7 +151,7 @@ function throughMiddleware(store, send, input, init) {
|
|
|
151
151
|
var HEADER_TIMEOUT_MESSAGE = "Response headers timed out";
|
|
152
152
|
|
|
153
153
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
154
|
-
providerID:
|
|
154
|
+
providerID: ID13,
|
|
155
155
|
cause: Schema.Defect()
|
|
156
156
|
}) {
|
|
157
157
|
}
|
|
@@ -159,9 +159,9 @@ function initError(providerID) {
|
|
|
159
159
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
class
|
|
162
|
+
class Service74 extends Context.Service()("@opencode/AISDK") {
|
|
163
163
|
}
|
|
164
|
-
var locationLayer2 = Layer.effect(
|
|
164
|
+
var locationLayer2 = Layer.effect(Service74, Effect.gen(function* () {
|
|
165
165
|
let sdkHooks = [];
|
|
166
166
|
let languageHooks = [];
|
|
167
167
|
const languages = new Map;
|
|
@@ -199,7 +199,7 @@ var locationLayer2 = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
return event;
|
|
201
201
|
});
|
|
202
|
-
const service =
|
|
202
|
+
const service = Service74.of({
|
|
203
203
|
hook: {
|
|
204
204
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
205
205
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -874,6 +874,6 @@ function providerErrorMessage(error) {
|
|
|
874
874
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
875
875
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var node78 = makeLocationNode({ service: Service74, layer: locationLayer2, deps: [] });
|
|
878
878
|
|
|
879
|
-
export { InitError2,
|
|
879
|
+
export { InitError2, Service74, locationLayer2, node78, exports_aisdk };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-z8hrkqzq.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./generate-mjqndqed.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service80,
|
|
11
|
+
node84
|
|
12
|
+
} from "./generate-yhecr6n4.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-phz3h32g.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service64,
|
|
18
|
+
node67
|
|
19
|
+
} from "./generate-9pvxkkw3.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
node16
|
|
22
|
+
} from "./generate-vswtd384.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service9,
|
|
25
|
+
node11
|
|
26
|
+
} from "./generate-qmqgtz8f.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./generate-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/filesystem/location-watcher.ts
|
|
32
32
|
var exports_location_watcher = {};
|
|
33
33
|
__export(exports_location_watcher, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service2,
|
|
36
|
+
node: () => node2
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service2 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
45
|
+
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service80;
|
|
47
|
+
const watcher = yield* Service64;
|
|
48
48
|
const bus = yield* Service83;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service82;
|
|
51
|
+
const policy = yield* Service9;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service2.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node2 = makeLocationNode({
|
|
106
|
+
service: Service2,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node67, FSUtil.node, node84, node86, node87, node16, node11]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service2, node2, exports_location_watcher };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service10,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node12
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service10 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service10.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node12 = makeGlobalNode({ service: Service10, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service10, node12, exports_discovery };
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Service63,
|
|
6
|
-
node66
|
|
7
|
-
} from "./instruction-discovery-na0cega3.js";
|
|
2
|
+
Service69,
|
|
3
|
+
node72
|
|
4
|
+
} from "./generate-jjw1xd6n.js";
|
|
8
5
|
import {
|
|
9
6
|
SessionMessage2
|
|
10
|
-
} from "./
|
|
7
|
+
} from "./generate-gftt206x.js";
|
|
11
8
|
import {
|
|
12
9
|
SessionSchema2
|
|
13
|
-
} from "./
|
|
10
|
+
} from "./generate-vx3jgdek.js";
|
|
14
11
|
import {
|
|
15
12
|
__export
|
|
16
|
-
} from "./
|
|
13
|
+
} from "./generate-9rqn6x4v.js";
|
|
17
14
|
|
|
18
15
|
// src/job.ts
|
|
19
16
|
var exports_job = {};
|
|
20
17
|
__export(exports_job, {
|
|
21
18
|
Job: () => exports_job,
|
|
22
|
-
Service: () =>
|
|
23
|
-
make: () =>
|
|
24
|
-
node: () =>
|
|
19
|
+
Service: () => Service46,
|
|
20
|
+
make: () => make19,
|
|
21
|
+
node: () => node49
|
|
25
22
|
});
|
|
26
23
|
import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
|
|
27
24
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -51,7 +48,7 @@ var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
|
51
48
|
var backgroundPrefix = "job.background/";
|
|
52
49
|
var COMPLETED_LIMIT = 25;
|
|
53
50
|
|
|
54
|
-
class
|
|
51
|
+
class Service46 extends Context.Service()("@opencode/Job") {
|
|
55
52
|
}
|
|
56
53
|
function snapshot(job) {
|
|
57
54
|
return {
|
|
@@ -86,8 +83,8 @@ function decrementSession(input, sessionID) {
|
|
|
86
83
|
next.set(sessionID, count - 1);
|
|
87
84
|
return next;
|
|
88
85
|
}
|
|
89
|
-
var
|
|
90
|
-
const kv = yield*
|
|
86
|
+
var make19 = Effect.gen(function* () {
|
|
87
|
+
const kv = yield* Service69;
|
|
91
88
|
const state = {
|
|
92
89
|
jobs: yield* SynchronizedRef.make(new Map),
|
|
93
90
|
scope: yield* Scope.Scope
|
|
@@ -157,19 +154,18 @@ var make20 = Effect.gen(function* () {
|
|
|
157
154
|
});
|
|
158
155
|
const start = Effect.fnUntraced(function* (input) {
|
|
159
156
|
return yield* Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
160
|
-
const id = input.id ?? ascending2("job");
|
|
161
157
|
const started_at = yield* Clock.currentTimeMillis;
|
|
162
158
|
const done = yield* Deferred.make();
|
|
163
159
|
const backgrounded = yield* Deferred.make();
|
|
164
160
|
const result = yield* SynchronizedRef.modifyEffect(state.jobs, Effect.fnUntraced(function* (jobs) {
|
|
165
|
-
const existing = jobs.get(id);
|
|
161
|
+
const existing = jobs.get(input.id);
|
|
166
162
|
if (existing?.info.status === "running") {
|
|
167
163
|
return [{ info: snapshot(existing) }, jobs];
|
|
168
164
|
}
|
|
169
165
|
const scope = yield* Scope.fork(state.scope, "parallel");
|
|
170
166
|
const job = {
|
|
171
167
|
info: {
|
|
172
|
-
id,
|
|
168
|
+
id: input.id,
|
|
173
169
|
type: input.type,
|
|
174
170
|
title: input.title,
|
|
175
171
|
status: "running",
|
|
@@ -185,10 +181,10 @@ var make20 = Effect.gen(function* () {
|
|
|
185
181
|
consumed: false,
|
|
186
182
|
recovery: input.recovery
|
|
187
183
|
};
|
|
188
|
-
return [{ info: snapshot(job), scope }, new Map(jobs).set(id, job)];
|
|
184
|
+
return [{ info: snapshot(job), scope }, new Map(jobs).set(input.id, job)];
|
|
189
185
|
}));
|
|
190
186
|
if ("scope" in result)
|
|
191
|
-
yield* restore(input.run).pipe(Effect.exit, Effect.flatMap((exit) => settle(id, result.scope, exit)), Effect.asVoid, Effect.forkIn(result.scope, { startImmediately: true }));
|
|
187
|
+
yield* restore(input.run).pipe(Effect.exit, Effect.flatMap((exit) => settle(input.id, result.scope, exit)), Effect.asVoid, Effect.forkIn(result.scope, { startImmediately: true }));
|
|
192
188
|
return result.info;
|
|
193
189
|
}));
|
|
194
190
|
});
|
|
@@ -346,7 +342,7 @@ var make20 = Effect.gen(function* () {
|
|
|
346
342
|
next.delete(entry[0]);
|
|
347
343
|
return next;
|
|
348
344
|
})));
|
|
349
|
-
return
|
|
345
|
+
return Service46.of({
|
|
350
346
|
get,
|
|
351
347
|
start,
|
|
352
348
|
wait,
|
|
@@ -358,7 +354,7 @@ var make20 = Effect.gen(function* () {
|
|
|
358
354
|
completeBackground
|
|
359
355
|
});
|
|
360
356
|
});
|
|
361
|
-
var layer = Layer.effect(
|
|
362
|
-
var
|
|
357
|
+
var layer = Layer.effect(Service46, make19);
|
|
358
|
+
var node49 = makeGlobalNode({ service: Service46, layer, deps: [node72] });
|
|
363
359
|
|
|
364
|
-
export {
|
|
360
|
+
export { Service46, make19, node49, exports_job };
|