@opencode/core 0.0.0-dev-20416 → 0.0.0-dev-20417
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{event-logger-mwme0r2x.js → aisdk-native-0124cehf.js} +13 -13
- package/dist/chunks/{event-logger-2wva2jkh.js → aisdk-native-0510rp3e.js} +15 -15
- package/dist/chunks/{event-logger-xx2yb7w0.js → aisdk-native-05py0drh.js} +42 -42
- package/dist/chunks/{event-logger-7k2avqd9.js → aisdk-native-08y9fw32.js} +21 -21
- package/dist/chunks/{event-logger-aqcksy77.js → aisdk-native-09nmevt6.js} +9 -9
- package/dist/chunks/{event-logger-twvtekjm.js → aisdk-native-0a9z9mhn.js} +17 -17
- package/dist/chunks/{event-logger-2bx4t2ca.js → aisdk-native-0f39s03b.js} +18 -18
- package/dist/chunks/{event-logger-tcay1cqt.js → aisdk-native-0hf9g8pg.js} +6 -6
- package/dist/chunks/{event-logger-9qem93zb.js → aisdk-native-0jkm8pdv.js} +3 -3
- package/dist/chunks/{event-logger-0paq2nw3.js → aisdk-native-0paq2nw3.js} +1 -1
- package/dist/chunks/{event-logger-b8gbgwp4.js → aisdk-native-14767bwg.js} +48 -48
- package/dist/chunks/{event-logger-asyqfrs8.js → aisdk-native-178zw4cw.js} +28 -28
- package/dist/chunks/{event-logger-0gr0dgrd.js → aisdk-native-17e1vs3w.js} +5 -5
- package/dist/chunks/{event-logger-ha5qz99h.js → aisdk-native-1bqfwsdz.js} +14 -14
- package/dist/chunks/{event-logger-g8ynk2e5.js → aisdk-native-1ck7ys6v.js} +35 -35
- package/dist/chunks/{event-logger-6btz5c3h.js → aisdk-native-1cxs9rqw.js} +61 -61
- package/dist/chunks/{event-logger-1dazxqgg.js → aisdk-native-1dazxqgg.js} +2 -2
- package/dist/chunks/{event-logger-y4jjsjgg.js → aisdk-native-1ey8xzyd.js} +35 -35
- package/dist/chunks/{event-logger-bkdfrtpa.js → aisdk-native-1xggbd2g.js} +5 -5
- package/dist/chunks/{event-logger-vwk34294.js → aisdk-native-1zzqj3yc.js} +11 -11
- package/dist/chunks/{event-logger-21r38tys.js → aisdk-native-21r38tys.js} +1 -1
- package/dist/chunks/{event-logger-wng992rj.js → aisdk-native-25a7g7pf.js} +20 -20
- package/dist/chunks/{event-logger-2a5m3afh.js → aisdk-native-2a5m3afh.js} +1 -1
- package/dist/chunks/{event-logger-rph3zd4r.js → aisdk-native-2d57kztd.js} +4 -4
- package/dist/chunks/{event-logger-9zkw4r8w.js → aisdk-native-2d8we099.js} +75 -75
- package/dist/chunks/{event-logger-kpy4yfav.js → aisdk-native-2h0awvba.js} +1 -1
- package/dist/chunks/{event-logger-chrxq3ex.js → aisdk-native-2k1mv0ny.js} +10 -10
- package/dist/chunks/{event-logger-qgn6gcr1.js → aisdk-native-2k8khapm.js} +5 -5
- package/dist/chunks/{event-logger-b0vhkd8y.js → aisdk-native-2mhsvxbb.js} +4 -4
- package/dist/chunks/{event-logger-f885rbej.js → aisdk-native-2p073dgc.js} +19 -19
- package/dist/chunks/{event-logger-xda1fc24.js → aisdk-native-2p6hgzww.js} +16 -16
- package/dist/chunks/{event-logger-s50vkwph.js → aisdk-native-3f9an36k.js} +6 -6
- package/dist/chunks/{event-logger-3fc6dm20.js → aisdk-native-3fc6dm20.js} +1 -1
- package/dist/chunks/{event-logger-3hepkmqq.js → aisdk-native-3hepkmqq.js} +1 -1
- package/dist/chunks/{event-logger-dqq9xe44.js → aisdk-native-3kq044jm.js} +27 -27
- package/dist/chunks/{event-logger-3smtnn6g.js → aisdk-native-3smtnn6g.js} +1 -1
- package/dist/chunks/{event-logger-3z4fvzn9.js → aisdk-native-3tbqkg03.js} +20 -20
- package/dist/chunks/{event-logger-3tvqynh2.js → aisdk-native-3tvqynh2.js} +1 -1
- package/dist/chunks/{event-logger-3by5zhag.js → aisdk-native-3xzkedv0.js} +28 -28
- package/dist/chunks/{event-logger-3zsf4n22.js → aisdk-native-3zsf4n22.js} +1 -1
- package/dist/chunks/{event-logger-4wwqnvbr.js → aisdk-native-44pdqs77.js} +4 -4
- package/dist/chunks/{event-logger-vwgs6v8p.js → aisdk-native-4jng47r3.js} +36 -36
- package/dist/chunks/{event-logger-474z6p00.js → aisdk-native-4kmxq2hr.js} +22 -22
- package/dist/chunks/{event-logger-5kyehztc.js → aisdk-native-4rbmpaks.js} +11 -11
- package/dist/chunks/{event-logger-96s3rq5g.js → aisdk-native-4wejdrpx.js} +19 -19
- package/dist/chunks/{event-logger-jv4989nc.js → aisdk-native-4z96vvqy.js} +19 -19
- package/dist/chunks/{event-logger-54ma36ye.js → aisdk-native-54ma36ye.js} +1 -1
- package/dist/chunks/{event-logger-1ygqh575.js → aisdk-native-56gdpj1q.js} +9 -9
- package/dist/chunks/{event-logger-d2q3stg4.js → aisdk-native-57ez7d0k.js} +7 -7
- package/dist/chunks/{event-logger-36xy1yzh.js → aisdk-native-5chqqhv3.js} +15 -15
- package/dist/chunks/{event-logger-4x85amra.js → aisdk-native-5d0dn1hj.js} +35 -35
- package/dist/chunks/{event-logger-5daktx2q.js → aisdk-native-5daktx2q.js} +1 -1
- package/dist/chunks/{event-logger-tsf7ps50.js → aisdk-native-5jghqat2.js} +5 -5
- package/dist/chunks/{event-logger-5t3nmthw.js → aisdk-native-5t3nmthw.js} +2 -2
- package/dist/chunks/{event-logger-pe642vya.js → aisdk-native-5wdp7h9t.js} +18 -18
- package/dist/chunks/{event-logger-e6rgzrg1.js → aisdk-native-5xnwfp9f.js} +11 -11
- package/dist/chunks/{event-logger-qvkn8f97.js → aisdk-native-6656g7jn.js} +4 -4
- package/dist/chunks/{event-logger-669tq793.js → aisdk-native-669tq793.js} +1 -1
- package/dist/chunks/{event-logger-7pmz6bbz.js → aisdk-native-69tea0b1.js} +9 -9
- package/dist/chunks/{event-logger-4nh1t5qm.js → aisdk-native-6fq16ccx.js} +36 -36
- package/dist/chunks/{event-logger-6msgmcgs.js → aisdk-native-6msgmcgs.js} +1 -1
- package/dist/chunks/{event-logger-kfvedqw3.js → aisdk-native-6n88yxkj.js} +8 -8
- package/dist/chunks/{event-logger-dyzkfz1n.js → aisdk-native-6qmvz171.js} +24 -24
- package/dist/chunks/{event-logger-7jz5tqjy.js → aisdk-native-6srq29b6.js} +20 -20
- package/dist/chunks/{event-logger-qgccrrkf.js → aisdk-native-70b5yd3t.js} +15 -15
- package/dist/chunks/{event-logger-7bmhse3q.js → aisdk-native-7bmhse3q.js} +1 -1
- package/dist/chunks/{event-logger-4q8h7cm3.js → aisdk-native-7gjnmd52.js} +30 -30
- package/dist/chunks/{event-logger-1m38g5s1.js → aisdk-native-7j06gtke.js} +42 -42
- package/dist/chunks/{event-logger-wpgrwh85.js → aisdk-native-7k1kc7t0.js} +12 -12
- package/dist/chunks/{event-logger-m6nmcdhk.js → aisdk-native-7mt3t1zw.js} +15 -15
- package/dist/chunks/{event-logger-2h7tvynr.js → aisdk-native-7p9r4bkx.js} +25 -25
- package/dist/chunks/{event-logger-5kg9mh08.js → aisdk-native-7wygd488.js} +186 -186
- package/dist/chunks/{event-logger-9kf8crr2.js → aisdk-native-80arm2fs.js} +3 -3
- package/dist/chunks/{event-logger-1bksvrzb.js → aisdk-native-83jzkrpv.js} +38 -38
- package/dist/chunks/{event-logger-84txncab.js → aisdk-native-84txncab.js} +1 -1
- package/dist/chunks/{event-logger-et0s89qn.js → aisdk-native-870jwr5d.js} +28 -28
- package/dist/chunks/{event-logger-8d7r5vzw.js → aisdk-native-8d7r5vzw.js} +1 -1
- package/dist/chunks/{event-logger-k8kza4t3.js → aisdk-native-8dpa8mca.js} +13 -13
- package/dist/chunks/{event-logger-fxrhgb5s.js → aisdk-native-8frtpgfy.js} +5 -5
- package/dist/chunks/{event-logger-mgtej8q6.js → aisdk-native-8namq6c7.js} +28 -28
- package/dist/chunks/{event-logger-5zm9k7fe.js → aisdk-native-8q7trwbk.js} +32 -32
- package/dist/chunks/{event-logger-mtazec1p.js → aisdk-native-8s8bp6yj.js} +32 -32
- package/dist/chunks/{event-logger-1sfkerqt.js → aisdk-native-8s8pqwyt.js} +6 -6
- package/dist/chunks/{event-logger-cj8231sg.js → aisdk-native-8tea5g87.js} +13 -13
- package/dist/chunks/{event-logger-bpa997y7.js → aisdk-native-8zb5tzd5.js} +31 -31
- package/dist/chunks/{event-logger-g7afzaxy.js → aisdk-native-9057vyh0.js} +11 -11
- package/dist/chunks/{event-logger-0zpkfkm4.js → aisdk-native-90r035a6.js} +10 -10
- package/dist/chunks/{event-logger-gvtxaj7z.js → aisdk-native-9454xasz.js} +22 -22
- package/dist/chunks/{event-logger-gfvb90ym.js → aisdk-native-94ek1h2f.js} +2 -2
- package/dist/chunks/{event-logger-78ftde5m.js → aisdk-native-960cc4qe.js} +27 -27
- package/dist/chunks/{event-logger-m2pxj8c0.js → aisdk-native-9dqxh5mq.js} +28 -28
- package/dist/chunks/{event-logger-xvq5hbj2.js → aisdk-native-9t958dxm.js} +24 -24
- package/dist/chunks/{event-logger-y39dv51y.js → aisdk-native-9twtcer3.js} +35 -35
- package/dist/chunks/{event-logger-t6w4mtk7.js → aisdk-native-9wxcj8py.js} +13 -13
- package/dist/chunks/aisdk-native-9zdhvgqs.js +18 -0
- package/dist/chunks/{event-logger-a1gpj94z.js → aisdk-native-a1gpj94z.js} +1 -1
- package/dist/chunks/{event-logger-aaet6srn.js → aisdk-native-aaet6srn.js} +2 -2
- package/dist/chunks/{event-logger-a358s59g.js → aisdk-native-ae0217x6.js} +37 -37
- package/dist/chunks/{event-logger-vdzspbnc.js → aisdk-native-af04s6ss.js} +2 -2
- package/dist/chunks/{event-logger-w3x9v1nk.js → aisdk-native-ahd542yp.js} +8 -8
- package/dist/chunks/{event-logger-8mj95qcv.js → aisdk-native-aqj2zsm7.js} +5 -5
- package/dist/chunks/{event-logger-b6gygkdw.js → aisdk-native-b6gygkdw.js} +2 -2
- package/dist/chunks/{event-logger-byb8yc9m.js → aisdk-native-bfeh5ntv.js} +40 -40
- package/dist/chunks/{event-logger-xy2t9kqq.js → aisdk-native-bkya8nv3.js} +30 -30
- package/dist/chunks/{event-logger-30846h32.js → aisdk-native-bnmr3cva.js} +8 -8
- package/dist/chunks/{event-logger-dy7wbn3s.js → aisdk-native-bt0w5j1m.js} +11 -11
- package/dist/chunks/{event-logger-6pah7r0c.js → aisdk-native-bv6943e1.js} +1 -1
- package/dist/chunks/{event-logger-hevc4bph.js → aisdk-native-bvsxznv8.js} +3 -3
- package/dist/chunks/{event-logger-zzd0m6f2.js → aisdk-native-c03kjhqs.js} +58 -58
- package/dist/chunks/{event-logger-g45t7an4.js → aisdk-native-c1h6cn61.js} +5 -5
- package/dist/chunks/{event-logger-h6046181.js → aisdk-native-c3v4ja8k.js} +24 -24
- package/dist/chunks/{event-logger-d6e90v2e.js → aisdk-native-c558n2pb.js} +24 -24
- package/dist/chunks/{event-logger-5sj81wm5.js → aisdk-native-c78bbtc9.js} +5 -5
- package/dist/chunks/{event-logger-pkpw5sx5.js → aisdk-native-c93q62r7.js} +29 -29
- package/dist/chunks/{event-logger-cfsekr6v.js → aisdk-native-cfsekr6v.js} +2 -2
- package/dist/chunks/{event-logger-54tcyq79.js → aisdk-native-ckecvw8r.js} +2 -2
- package/dist/chunks/{event-logger-apn8f15b.js → aisdk-native-cmbqfntm.js} +7 -7
- package/dist/chunks/{event-logger-p37cw4rj.js → aisdk-native-cmwkp3r5.js} +8 -8
- package/dist/chunks/{event-logger-801jjte1.js → aisdk-native-craa4cy0.js} +3 -3
- package/dist/chunks/{event-logger-xmszv9zx.js → aisdk-native-d8n7q4z0.js} +25 -25
- package/dist/chunks/{event-logger-41wasfk9.js → aisdk-native-dc1ykt8z.js} +5 -5
- package/dist/chunks/{event-logger-cwa6csj7.js → aisdk-native-djszqvmq.js} +9 -9
- package/dist/chunks/{event-logger-dmqcgk4z.js → aisdk-native-dmqcgk4z.js} +2 -2
- package/dist/chunks/{event-logger-qvfvz5h6.js → aisdk-native-e22nn5xy.js} +9 -9
- package/dist/chunks/{event-logger-emsz7g57.js → aisdk-native-e5nnvdaa.js} +46 -46
- package/dist/chunks/{event-logger-t3swkhbg.js → aisdk-native-e6hmchc5.js} +2 -2
- package/dist/chunks/{event-logger-g578wdqb.js → aisdk-native-e6kj5m3z.js} +16 -16
- package/dist/chunks/{event-logger-ef5x83kb.js → aisdk-native-ef5x83kb.js} +1 -1
- package/dist/chunks/{event-logger-5pw6jttx.js → aisdk-native-endyxvye.js} +8 -8
- package/dist/chunks/{event-logger-2c42hanh.js → aisdk-native-eq4xsb4x.js} +12 -12
- package/dist/chunks/{event-logger-xj3htnp5.js → aisdk-native-eqv59zcm.js} +20 -20
- package/dist/chunks/{event-logger-yn3dmqqd.js → aisdk-native-erpxhpcp.js} +28 -28
- package/dist/chunks/{event-logger-etq0c3wd.js → aisdk-native-etq0c3wd.js} +1 -1
- package/dist/chunks/{event-logger-sz763eb6.js → aisdk-native-eyz64kwr.js} +6 -6
- package/dist/chunks/{event-logger-qsf46761.js → aisdk-native-f97fng2a.js} +8 -8
- package/dist/chunks/{event-logger-hbn7w743.js → aisdk-native-fdqf23m2.js} +8 -8
- package/dist/chunks/{event-logger-9wpgsbre.js → aisdk-native-fhs97t90.js} +9 -9
- package/dist/chunks/{event-logger-n6pgtx9h.js → aisdk-native-fhy617c4.js} +4 -4
- package/dist/chunks/{event-logger-qc39ajn0.js → aisdk-native-fk8ztcgd.js} +14 -14
- package/dist/chunks/{event-logger-vps92m75.js → aisdk-native-fmcqyzhx.js} +9 -9
- package/dist/chunks/{event-logger-b0eftgcg.js → aisdk-native-fnypgrc1.js} +28 -28
- package/dist/chunks/{event-logger-0kskbm85.js → aisdk-native-fp3mskb5.js} +18 -18
- package/dist/chunks/{event-logger-g5w8qwbj.js → aisdk-native-g5w8qwbj.js} +1 -1
- package/dist/chunks/{event-logger-1js6j2vy.js → aisdk-native-g74c0m33.js} +8 -8
- package/dist/chunks/{event-logger-bk5z8xts.js → aisdk-native-g8182w1y.js} +19 -19
- package/dist/chunks/{event-logger-gd4qta3r.js → aisdk-native-gd4qta3r.js} +1 -1
- package/dist/chunks/{event-logger-qy24xa0s.js → aisdk-native-gmbv0vxt.js} +22 -22
- package/dist/chunks/{event-logger-72czns48.js → aisdk-native-gq59zvn3.js} +3 -3
- package/dist/chunks/{event-logger-125m14jt.js → aisdk-native-gtr9fqz6.js} +10 -10
- package/dist/chunks/{event-logger-yyb7tjpc.js → aisdk-native-gv6a8nnw.js} +2 -2
- package/dist/chunks/{event-logger-6jvpc8jy.js → aisdk-native-gzpw3dbs.js} +6 -6
- package/dist/chunks/{event-logger-8h3t5p2d.js → aisdk-native-h2tzx3y1.js} +13 -13
- package/dist/chunks/{event-logger-h6vf3j39.js → aisdk-native-h6vf3j39.js} +1 -1
- package/dist/chunks/{event-logger-427t97hr.js → aisdk-native-hekxc47r.js} +1 -1
- package/dist/chunks/{event-logger-wpwx019v.js → aisdk-native-hmh1jr94.js} +15 -15
- package/dist/chunks/aisdk-native-hw468chq.js +26 -0
- package/dist/chunks/{event-logger-hcy42j4t.js → aisdk-native-j519rxbg.js} +24 -24
- package/dist/chunks/{event-logger-j56e64zr.js → aisdk-native-j56e64zr.js} +1 -1
- package/dist/chunks/{event-logger-44ak30pa.js → aisdk-native-j8m1p4p1.js} +4 -4
- package/dist/chunks/{event-logger-dfd6nqfg.js → aisdk-native-j8qbnwnq.js} +11 -11
- package/dist/chunks/{event-logger-hfpyh3je.js → aisdk-native-jc93wweh.js} +11 -11
- package/dist/chunks/{event-logger-b09hzw3k.js → aisdk-native-jca4demv.js} +2 -2
- package/dist/chunks/{event-logger-4xe71878.js → aisdk-native-jf2tzzg3.js} +28 -28
- package/dist/chunks/{event-logger-5gepjxtb.js → aisdk-native-jfsfcnrj.js} +13 -13
- package/dist/chunks/{event-logger-gnxyvke2.js → aisdk-native-jk1n875a.js} +23 -23
- package/dist/chunks/{event-logger-ntt46qkd.js → aisdk-native-jzqs01pn.js} +23 -23
- package/dist/chunks/{event-logger-mjymc32g.js → aisdk-native-k2h4r4s0.js} +4 -4
- package/dist/chunks/{event-logger-k3c624dm.js → aisdk-native-k3c624dm.js} +3 -3
- package/dist/chunks/{event-logger-hnw30wnd.js → aisdk-native-k751ne6a.js} +9 -9
- package/dist/chunks/{event-logger-dhmh7aw6.js → aisdk-native-k76fn4kw.js} +4 -4
- package/dist/chunks/{event-logger-y6hv0j91.js → aisdk-native-key5aaht.js} +29 -29
- package/dist/chunks/{event-logger-8mv5n3j0.js → aisdk-native-kyrmdyzb.js} +27 -27
- package/dist/chunks/{event-logger-px42xchs.js → aisdk-native-m2mx9cgj.js} +19 -19
- package/dist/chunks/{event-logger-twtjjjev.js → aisdk-native-m2s74evt.js} +8 -8
- package/dist/chunks/{event-logger-m3fdjcah.js → aisdk-native-m3fdjcah.js} +1 -1
- package/dist/chunks/{event-logger-tkzj0056.js → aisdk-native-m4372dev.js} +4 -4
- package/dist/chunks/{event-logger-m58kmhef.js → aisdk-native-m58kmhef.js} +2 -2
- package/dist/chunks/{event-logger-m9w0rfyh.js → aisdk-native-m9w0rfyh.js} +1 -1
- package/dist/chunks/{event-logger-qtz788pa.js → aisdk-native-mf2yrf8k.js} +22 -22
- package/dist/chunks/{event-logger-s9mbqkha.js → aisdk-native-mq3xgw4t.js} +22 -22
- package/dist/chunks/{event-logger-dkmywptv.js → aisdk-native-mwaxn094.js} +12 -12
- package/dist/chunks/{event-logger-gtm482jc.js → aisdk-native-n34qnzmh.js} +12 -12
- package/dist/chunks/{event-logger-yxkyb042.js → aisdk-native-n4a76smx.js} +20 -20
- package/dist/chunks/{event-logger-frn296px.js → aisdk-native-n6927rkk.js} +5 -5
- package/dist/chunks/{event-logger-277eer69.js → aisdk-native-n9arjmkd.js} +4 -4
- package/dist/chunks/{event-logger-s4jagjf8.js → aisdk-native-n9j73x72.js} +9 -9
- package/dist/chunks/{event-logger-dvc89yjx.js → aisdk-native-nh8dtxc9.js} +8 -8
- package/dist/chunks/{event-logger-3032hhxb.js → aisdk-native-nw8vms00.js} +3 -3
- package/dist/chunks/{event-logger-nxm207yx.js → aisdk-native-nxm207yx.js} +1 -1
- package/dist/chunks/{event-logger-qdbakdjh.js → aisdk-native-nz569jqt.js} +5 -5
- package/dist/chunks/{event-logger-syf57q56.js → aisdk-native-p6wxjpka.js} +4 -4
- package/dist/chunks/{event-logger-pjvnvgmy.js → aisdk-native-pjvnvgmy.js} +1 -1
- package/dist/chunks/{event-logger-m7kk9p21.js → aisdk-native-pk6g247z.js} +6 -6
- package/dist/chunks/{event-logger-pknna89w.js → aisdk-native-pknna89w.js} +1 -1
- package/dist/chunks/{event-logger-670p6hpz.js → aisdk-native-pmsv8f6n.js} +2 -2
- package/dist/chunks/{event-logger-9rewjmnr.js → aisdk-native-pqeme0gz.js} +20 -20
- package/dist/chunks/{event-logger-7478rs74.js → aisdk-native-pt96c5r7.js} +9 -9
- package/dist/chunks/{event-logger-s6776ax8.js → aisdk-native-pynw2zk1.js} +26 -26
- package/dist/chunks/{event-logger-6hhet5rf.js → aisdk-native-q05d1p5d.js} +11 -11
- package/dist/chunks/{event-logger-mp3rs6rf.js → aisdk-native-q2m48zjp.js} +12 -12
- package/dist/chunks/{event-logger-y6f0p4jw.js → aisdk-native-q3t37ft6.js} +3 -3
- package/dist/chunks/{event-logger-5n9fdw5n.js → aisdk-native-qj0k0yxd.js} +20 -20
- package/dist/chunks/{event-logger-qsdy395h.js → aisdk-native-qsdy395h.js} +1 -1
- package/dist/chunks/{event-logger-qbtyy1xv.js → aisdk-native-qvn46pfc.js} +18 -18
- package/dist/chunks/{event-logger-xn4rdr4r.js → aisdk-native-r391d9tr.js} +39 -39
- package/dist/chunks/{event-logger-fdv30zvt.js → aisdk-native-ratrq7cm.js} +7 -7
- package/dist/chunks/{event-logger-rdw6cm16.js → aisdk-native-rdw6cm16.js} +1 -1
- package/dist/chunks/{event-logger-07yjvnaz.js → aisdk-native-reecb3ht.js} +5 -5
- package/dist/chunks/{event-logger-1acjjqhc.js → aisdk-native-rhraev7y.js} +4 -4
- package/dist/chunks/{event-logger-2vgzs72b.js → aisdk-native-rmk2c50f.js} +5 -5
- package/dist/chunks/{event-logger-rna2mx7d.js → aisdk-native-rndxfgdz.js} +33 -33
- package/dist/chunks/{event-logger-c3bsdxv3.js → aisdk-native-rqy5g0h7.js} +9 -9
- package/dist/chunks/{event-logger-2336b01z.js → aisdk-native-rtathh62.js} +5 -5
- package/dist/chunks/{event-logger-g1rejjsd.js → aisdk-native-rtx0r0k4.js} +18 -18
- package/dist/chunks/{event-logger-qa5emg3d.js → aisdk-native-ssh52gjb.js} +7 -7
- package/dist/chunks/{event-logger-3whn8bgs.js → aisdk-native-t0084j9n.js} +10 -10
- package/dist/chunks/{event-logger-96p7brnx.js → aisdk-native-t1bt7fzx.js} +36 -36
- package/dist/chunks/{event-logger-krfw2wza.js → aisdk-native-t21g1ge5.js} +10 -10
- package/dist/chunks/{event-logger-tazgh4e4.js → aisdk-native-tazgh4e4.js} +1 -1
- package/dist/chunks/{event-logger-qafkbnc3.js → aisdk-native-tbngfx1j.js} +32 -32
- package/dist/chunks/{event-logger-tcezcvh9.js → aisdk-native-tcezcvh9.js} +1 -1
- package/dist/chunks/{event-logger-tdstcens.js → aisdk-native-tdstcens.js} +1 -1
- package/dist/chunks/{event-logger-1b4xyzex.js → aisdk-native-tf8pt1ka.js} +13 -13
- package/dist/chunks/{event-logger-zzqx3mne.js → aisdk-native-tmespvdt.js} +11 -11
- package/dist/chunks/{event-logger-5wxrmrks.js → aisdk-native-tndj373f.js} +7 -7
- package/dist/chunks/{event-logger-rfxyr88f.js → aisdk-native-tp0b68kb.js} +40 -40
- package/dist/chunks/{event-logger-wq15az09.js → aisdk-native-ts84jb54.js} +25 -25
- package/dist/chunks/{event-logger-h9b27k9k.js → aisdk-native-tsjr7g2b.js} +9 -9
- package/dist/chunks/{event-logger-tvtrv512.js → aisdk-native-tvtrv512.js} +1 -1
- package/dist/chunks/{event-logger-vw0kv50g.js → aisdk-native-tyqpfex6.js} +16 -16
- package/dist/chunks/{event-logger-24eg1qa8.js → aisdk-native-v0638640.js} +8 -8
- package/dist/chunks/{event-logger-49tz1vf4.js → aisdk-native-v0db2jv1.js} +46 -46
- package/dist/chunks/{event-logger-kvt93wrg.js → aisdk-native-v34qk40s.js} +4 -4
- package/dist/chunks/{event-logger-r4fq1cvf.js → aisdk-native-v5btrwpx.js} +33 -33
- package/dist/chunks/{event-logger-vbdhqjda.js → aisdk-native-v7vcbjpn.js} +11 -11
- package/dist/chunks/{event-logger-9szwjyee.js → aisdk-native-vbek984v.js} +8 -8
- package/dist/chunks/{event-logger-dfe8djrf.js → aisdk-native-ve4pfa0n.js} +4 -4
- package/dist/chunks/{event-logger-veqvce7d.js → aisdk-native-veqvce7d.js} +1 -1
- package/dist/chunks/aisdk-native-vg9zg22t.js +507 -0
- package/dist/chunks/{event-logger-hnnwg8mk.js → aisdk-native-vgg527ys.js} +33 -33
- package/dist/chunks/{event-logger-89a25q8r.js → aisdk-native-vv7587hg.js} +31 -31
- package/dist/chunks/{event-logger-8bwjdssr.js → aisdk-native-vvcndhje.js} +18 -18
- package/dist/chunks/{event-logger-vzcthcp8.js → aisdk-native-vzcthcp8.js} +1 -1
- package/dist/chunks/{event-logger-vzs5sf6e.js → aisdk-native-vzs5sf6e.js} +1 -1
- package/dist/chunks/{event-logger-w3wsvvr9.js → aisdk-native-w3wsvvr9.js} +1 -1
- package/dist/chunks/{event-logger-fenjx7x0.js → aisdk-native-w67qvwkr.js} +11 -11
- package/dist/chunks/{event-logger-wv2pvdd1.js → aisdk-native-w6e32r8t.js} +22 -22
- package/dist/chunks/{event-logger-dg5h694m.js → aisdk-native-w6fgnahs.js} +50 -50
- package/dist/chunks/{event-logger-jtjn351v.js → aisdk-native-wbvars06.js} +16 -16
- package/dist/chunks/{event-logger-psazpmmj.js → aisdk-native-wd3x2cqz.js} +2 -2
- package/dist/chunks/{event-logger-056xzx59.js → aisdk-native-wd7chy3v.js} +17 -17
- package/dist/chunks/{event-logger-wd87259q.js → aisdk-native-wd87259q.js} +1 -1
- package/dist/chunks/{event-logger-2kahjab4.js → aisdk-native-wrk0h553.js} +29 -29
- package/dist/chunks/{event-logger-s8d7rejh.js → aisdk-native-wv396vej.js} +8 -8
- package/dist/chunks/{event-logger-v0rzgg0c.js → aisdk-native-wzyv7g1z.js} +47 -47
- package/dist/chunks/{event-logger-x1ezjp6w.js → aisdk-native-x1ezjp6w.js} +1 -1
- package/dist/chunks/{event-logger-j5aanxkf.js → aisdk-native-x37521zy.js} +18 -18
- package/dist/chunks/{event-logger-pk4ymh6x.js → aisdk-native-xajn4p7x.js} +22 -22
- package/dist/chunks/{event-logger-rkqpmy5q.js → aisdk-native-xdz72vx5.js} +23 -23
- package/dist/chunks/{event-logger-pm2ytph1.js → aisdk-native-xe4z21fa.js} +25 -25
- package/dist/chunks/{event-logger-rsntv4fw.js → aisdk-native-xrr1weya.js} +11 -11
- package/dist/chunks/{event-logger-hpje7ss6.js → aisdk-native-xyapnfhw.js} +18 -18
- package/dist/chunks/{event-logger-y1fvbwt7.js → aisdk-native-y1fvbwt7.js} +1 -1
- package/dist/chunks/{event-logger-tqhrypxk.js → aisdk-native-y1z7wkzf.js} +19 -19
- package/dist/chunks/{event-logger-mpk0rfs5.js → aisdk-native-y6bex35g.js} +4 -4
- package/dist/chunks/{event-logger-fkq03hc4.js → aisdk-native-yavdqf6v.js} +18 -18
- package/dist/chunks/{event-logger-b6jzatxk.js → aisdk-native-ycfdek4n.js} +44 -44
- package/dist/chunks/{event-logger-mgyjezvw.js → aisdk-native-ym3dj8mc.js} +44 -44
- package/dist/chunks/{event-logger-yrhqyw5v.js → aisdk-native-yrhqyw5v.js} +1 -1
- package/dist/chunks/{event-logger-yrznvahk.js → aisdk-native-yrznvahk.js} +2 -2
- package/dist/chunks/{event-logger-4wrkd8nn.js → aisdk-native-ytbt8q6a.js} +11 -11
- package/dist/chunks/aisdk-native-ytj1bkta.js +252 -0
- package/dist/chunks/{event-logger-bjtzbw4r.js → aisdk-native-z07pqspn.js} +3 -3
- package/dist/chunks/{event-logger-z0bkrqjs.js → aisdk-native-z0bkrqjs.js} +1 -1
- package/dist/chunks/{event-logger-xhjp5ndj.js → aisdk-native-z1rqywnx.js} +10 -10
- package/dist/chunks/{event-logger-b6q8nkfr.js → aisdk-native-z2smnqpx.js} +6 -6
- package/dist/chunks/{event-logger-eac16bg9.js → aisdk-native-z55zxc7k.js} +54 -54
- package/dist/chunks/{event-logger-b34hkfqm.js → aisdk-native-z5se4ye3.js} +40 -40
- package/dist/chunks/{event-logger-z63w68vq.js → aisdk-native-z63w68vq.js} +2 -2
- package/dist/chunks/{event-logger-ba50v45e.js → aisdk-native-z8rc884h.js} +4 -4
- package/dist/chunks/{event-logger-rq775frq.js → aisdk-native-zeh9ct20.js} +2 -2
- package/dist/chunks/{event-logger-kxfyed36.js → aisdk-native-zm1bkcwf.js} +92 -92
- package/dist/chunks/{event-logger-s18e97c5.js → aisdk-native-zq17q5fx.js} +97 -97
- package/dist/chunks/{event-logger-zr2ceqn5.js → aisdk-native-zr2ceqn5.js} +1 -1
- package/dist/chunks/{event-logger-zxq2ej10.js → aisdk-native-zxq2ej10.js} +1 -1
- package/dist/chunks/{event-logger-b3f8fkhc.js → aisdk-native-zyk1yjk8.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +215 -215
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +70 -70
- 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 +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -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 +95 -95
- 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 +74 -74
- 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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +104 -104
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- 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/id/id.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 +363 -363
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- 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 +100 -100
- package/dist/models-dev.js +107 -107
- 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 +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- 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 +124 -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 +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -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 +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +95 -95
- 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 +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +354 -354
- 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 +121 -121
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +226 -226
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +87 -87
- 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 +129 -129
- 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 +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +224 -224
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +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 +130 -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 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -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 +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +211 -211
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +224 -224
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- 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 +140 -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 +125 -125
- package/dist/tool/plugin/shell.js +218 -218
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- 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 +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +87 -87
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +94 -94
- package/package.json +8 -8
- package/dist/chunks/event-logger-g013tbqx.js +0 -26
- package/dist/chunks/event-logger-mybqtq6t.js +0 -507
- package/dist/chunks/event-logger-rap9a73h.js +0 -18
- package/dist/chunks/event-logger-z0wm06r0.js +0 -252
- /package/dist/chunks/{event-logger-0qkdqm5v.js → aisdk-native-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{event-logger-0zkw76rk.js → aisdk-native-0zkw76rk.js} +0 -0
- /package/dist/chunks/{event-logger-17cy0kzp.js → aisdk-native-17cy0kzp.js} +0 -0
- /package/dist/chunks/{event-logger-1cnp2v09.js → aisdk-native-1cnp2v09.js} +0 -0
- /package/dist/chunks/{event-logger-1kg9ymc8.js → aisdk-native-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{event-logger-24dcb14g.js → aisdk-native-24dcb14g.js} +0 -0
- /package/dist/chunks/{event-logger-2710q6r3.js → aisdk-native-2710q6r3.js} +0 -0
- /package/dist/chunks/{event-logger-2axfhc9x.js → aisdk-native-2axfhc9x.js} +0 -0
- /package/dist/chunks/{event-logger-2c3vjs8z.js → aisdk-native-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{event-logger-34c7v6d4.js → aisdk-native-34c7v6d4.js} +0 -0
- /package/dist/chunks/{event-logger-359p4xyc.js → aisdk-native-359p4xyc.js} +0 -0
- /package/dist/chunks/{event-logger-3asan66x.js → aisdk-native-3asan66x.js} +0 -0
- /package/dist/chunks/{event-logger-3v8g72cx.js → aisdk-native-3v8g72cx.js} +0 -0
- /package/dist/chunks/{event-logger-3w5fmr99.js → aisdk-native-3w5fmr99.js} +0 -0
- /package/dist/chunks/{event-logger-3wcehsnq.js → aisdk-native-3wcehsnq.js} +0 -0
- /package/dist/chunks/{event-logger-43n2bw4t.js → aisdk-native-43n2bw4t.js} +0 -0
- /package/dist/chunks/{event-logger-4knz6hnm.js → aisdk-native-4knz6hnm.js} +0 -0
- /package/dist/chunks/{event-logger-4vcrnpx2.js → aisdk-native-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{event-logger-4y7fprxs.js → aisdk-native-4y7fprxs.js} +0 -0
- /package/dist/chunks/{event-logger-53557ph1.js → aisdk-native-53557ph1.js} +0 -0
- /package/dist/chunks/{event-logger-550bvhaj.js → aisdk-native-550bvhaj.js} +0 -0
- /package/dist/chunks/{event-logger-5qd3pb7m.js → aisdk-native-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{event-logger-6prwharc.js → aisdk-native-6prwharc.js} +0 -0
- /package/dist/chunks/{event-logger-7akdwqpd.js → aisdk-native-7akdwqpd.js} +0 -0
- /package/dist/chunks/{event-logger-7m9af43g.js → aisdk-native-7m9af43g.js} +0 -0
- /package/dist/chunks/{event-logger-822emrt2.js → aisdk-native-822emrt2.js} +0 -0
- /package/dist/chunks/{event-logger-88xbtdfr.js → aisdk-native-88xbtdfr.js} +0 -0
- /package/dist/chunks/{event-logger-8n3pysct.js → aisdk-native-8n3pysct.js} +0 -0
- /package/dist/chunks/{event-logger-8wj87zfr.js → aisdk-native-8wj87zfr.js} +0 -0
- /package/dist/chunks/{event-logger-922hggd3.js → aisdk-native-922hggd3.js} +0 -0
- /package/dist/chunks/{event-logger-9a4afbnw.js → aisdk-native-9a4afbnw.js} +0 -0
- /package/dist/chunks/{event-logger-9rqn6x4v.js → aisdk-native-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-logger-a6k6eb26.js → aisdk-native-a6k6eb26.js} +0 -0
- /package/dist/chunks/{event-logger-af5trqkr.js → aisdk-native-af5trqkr.js} +0 -0
- /package/dist/chunks/{event-logger-afrmfg78.js → aisdk-native-afrmfg78.js} +0 -0
- /package/dist/chunks/{event-logger-aqzs7mqg.js → aisdk-native-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{event-logger-atq7p7m5.js → aisdk-native-atq7p7m5.js} +0 -0
- /package/dist/chunks/{event-logger-bkyjaxrp.js → aisdk-native-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{event-logger-bmr6ed5q.js → aisdk-native-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{event-logger-cf4snx6d.js → aisdk-native-cf4snx6d.js} +0 -0
- /package/dist/chunks/{event-logger-cvy3z8tj.js → aisdk-native-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{event-logger-d9fn303g.js → aisdk-native-d9fn303g.js} +0 -0
- /package/dist/chunks/{event-logger-d9jj8t3e.js → aisdk-native-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{event-logger-dajrwvna.js → aisdk-native-dajrwvna.js} +0 -0
- /package/dist/chunks/{event-logger-dap0rakb.js → aisdk-native-dap0rakb.js} +0 -0
- /package/dist/chunks/{event-logger-df08tz66.js → aisdk-native-df08tz66.js} +0 -0
- /package/dist/chunks/{event-logger-dy18nga0.js → aisdk-native-dy18nga0.js} +0 -0
- /package/dist/chunks/{event-logger-e5kj55wp.js → aisdk-native-e5kj55wp.js} +0 -0
- /package/dist/chunks/{event-logger-e73j6tqm.js → aisdk-native-e73j6tqm.js} +0 -0
- /package/dist/chunks/{event-logger-ec1grn59.js → aisdk-native-ec1grn59.js} +0 -0
- /package/dist/chunks/{event-logger-eh3zwz77.js → aisdk-native-eh3zwz77.js} +0 -0
- /package/dist/chunks/{event-logger-emrn6kk6.js → aisdk-native-emrn6kk6.js} +0 -0
- /package/dist/chunks/{event-logger-f0mxakyp.js → aisdk-native-f0mxakyp.js} +0 -0
- /package/dist/chunks/{event-logger-f6n9ztr4.js → aisdk-native-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{event-logger-faypxj3z.js → aisdk-native-faypxj3z.js} +0 -0
- /package/dist/chunks/{event-logger-fd410y7t.js → aisdk-native-fd410y7t.js} +0 -0
- /package/dist/chunks/{event-logger-fxgpk5d8.js → aisdk-native-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{event-logger-g4wezp1m.js → aisdk-native-g4wezp1m.js} +0 -0
- /package/dist/chunks/{event-logger-g86h250q.js → aisdk-native-g86h250q.js} +0 -0
- /package/dist/chunks/{event-logger-gebd4c9n.js → aisdk-native-gebd4c9n.js} +0 -0
- /package/dist/chunks/{event-logger-gftt206x.js → aisdk-native-gftt206x.js} +0 -0
- /package/dist/chunks/{event-logger-hjbc5kem.js → aisdk-native-hjbc5kem.js} +0 -0
- /package/dist/chunks/{event-logger-hk9envan.js → aisdk-native-hk9envan.js} +0 -0
- /package/dist/chunks/{event-logger-j2ntwpah.js → aisdk-native-j2ntwpah.js} +0 -0
- /package/dist/chunks/{event-logger-j5zkgpj8.js → aisdk-native-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{event-logger-jjkms2e6.js → aisdk-native-jjkms2e6.js} +0 -0
- /package/dist/chunks/{event-logger-jr7sbwjy.js → aisdk-native-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{event-logger-jwfs4k6c.js → aisdk-native-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{event-logger-jzg6c2d5.js → aisdk-native-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{event-logger-mp448xyj.js → aisdk-native-mp448xyj.js} +0 -0
- /package/dist/chunks/{event-logger-msx8hqn2.js → aisdk-native-msx8hqn2.js} +0 -0
- /package/dist/chunks/{event-logger-n05xt0ee.js → aisdk-native-n05xt0ee.js} +0 -0
- /package/dist/chunks/{event-logger-n3j8tn72.js → aisdk-native-n3j8tn72.js} +0 -0
- /package/dist/chunks/{event-logger-njntx4h6.js → aisdk-native-njntx4h6.js} +0 -0
- /package/dist/chunks/{event-logger-q3sfg36h.js → aisdk-native-q3sfg36h.js} +0 -0
- /package/dist/chunks/{event-logger-q74kybfr.js → aisdk-native-q74kybfr.js} +0 -0
- /package/dist/chunks/{event-logger-qaymkmh1.js → aisdk-native-qaymkmh1.js} +0 -0
- /package/dist/chunks/{event-logger-qb87gjwd.js → aisdk-native-qb87gjwd.js} +0 -0
- /package/dist/chunks/{event-logger-qfa1cgps.js → aisdk-native-qfa1cgps.js} +0 -0
- /package/dist/chunks/{event-logger-qg3g05ea.js → aisdk-native-qg3g05ea.js} +0 -0
- /package/dist/chunks/{event-logger-qrg20bc0.js → aisdk-native-qrg20bc0.js} +0 -0
- /package/dist/chunks/{event-logger-rcb2kzg1.js → aisdk-native-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{event-logger-sdp7kfr6.js → aisdk-native-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{event-logger-sk3qaz4a.js → aisdk-native-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{event-logger-ssg3fenm.js → aisdk-native-ssg3fenm.js} +0 -0
- /package/dist/chunks/{event-logger-w803qqfp.js → aisdk-native-w803qqfp.js} +0 -0
- /package/dist/chunks/{event-logger-wc3fc9cn.js → aisdk-native-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{event-logger-wer8tq1h.js → aisdk-native-wer8tq1h.js} +0 -0
- /package/dist/chunks/{event-logger-wtztk69x.js → aisdk-native-wtztk69x.js} +0 -0
- /package/dist/chunks/{event-logger-x0ckcb58.js → aisdk-native-x0ckcb58.js} +0 -0
- /package/dist/chunks/{event-logger-x61499pn.js → aisdk-native-x61499pn.js} +0 -0
- /package/dist/chunks/{event-logger-y44na4kk.js → aisdk-native-y44na4kk.js} +0 -0
- /package/dist/chunks/{event-logger-y8cydn3q.js → aisdk-native-y8cydn3q.js} +0 -0
- /package/dist/chunks/{event-logger-y8f7s663.js → aisdk-native-y8f7s663.js} +0 -0
- /package/dist/chunks/{event-logger-ygaqb7jw.js → aisdk-native-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{event-logger-ym463w8f.js → aisdk-native-ym463w8f.js} +0 -0
- /package/dist/chunks/{event-logger-z9919s4g.js → aisdk-native-z9919s4g.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service80,
|
|
4
|
+
node84
|
|
5
|
+
} from "./aisdk-native-0f39s03b.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
Key4,
|
|
8
8
|
unavailable3,
|
|
9
9
|
removed2,
|
|
10
|
-
|
|
10
|
+
make22,
|
|
11
11
|
diffByKey2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-native-wv396vej.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-922hggd3.js";
|
|
16
16
|
import {
|
|
17
17
|
create3
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-native-rdw6cm16.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
22
22
|
|
|
23
23
|
// src/instruction-discovery.ts
|
|
24
24
|
var exports_instruction_discovery = {};
|
|
25
25
|
__export(exports_instruction_discovery, {
|
|
26
|
-
Event: () =>
|
|
26
|
+
Event: () => Event5,
|
|
27
27
|
File: () => File2,
|
|
28
28
|
InstructionDiscovery: () => exports_instruction_discovery,
|
|
29
|
-
Options: () =>
|
|
30
|
-
Service: () =>
|
|
31
|
-
configured: () =>
|
|
32
|
-
layer: () =>
|
|
33
|
-
node: () =>
|
|
29
|
+
Options: () => Options3,
|
|
30
|
+
Service: () => Service33,
|
|
31
|
+
configured: () => configured3,
|
|
32
|
+
layer: () => layer13,
|
|
33
|
+
node: () => node36
|
|
34
34
|
});
|
|
35
35
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,19 +41,19 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
|
|
|
41
41
|
}) {
|
|
42
42
|
}
|
|
43
43
|
var Files = Schema.Array(File2);
|
|
44
|
-
var key =
|
|
45
|
-
var
|
|
44
|
+
var key = Key4.make("core/instructions");
|
|
45
|
+
var Event5 = {
|
|
46
46
|
Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
|
|
47
47
|
};
|
|
48
|
-
var
|
|
48
|
+
var Options3 = Schema.Struct({
|
|
49
49
|
project: Schema.optional(Schema.Boolean),
|
|
50
50
|
global: Schema.optional(Schema.Boolean)
|
|
51
51
|
});
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service33 extends Context.Service()("@opencode/InstructionDiscovery") {
|
|
54
54
|
}
|
|
55
|
-
var
|
|
56
|
-
const bus = yield*
|
|
55
|
+
var layer13 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
56
|
+
const bus = yield* Service80;
|
|
57
57
|
const state = create3({
|
|
58
58
|
name: "instruction-discovery",
|
|
59
59
|
initial: () => ({ files: new Map, available: true }),
|
|
@@ -72,9 +72,9 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
72
72
|
editor.available = false;
|
|
73
73
|
}
|
|
74
74
|
}),
|
|
75
|
-
notify: () => bus.publish(
|
|
75
|
+
notify: () => bus.publish(Event5.Updated, {}).pipe(Effect.asVoid)
|
|
76
76
|
});
|
|
77
|
-
const source = (value) =>
|
|
77
|
+
const source = (value) => make22({
|
|
78
78
|
key,
|
|
79
79
|
codec: Schema.toCodecJson(Files),
|
|
80
80
|
read: Effect.succeed(value),
|
|
@@ -90,7 +90,7 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
90
90
|
return unavailable3;
|
|
91
91
|
return Array.from(current.files.values());
|
|
92
92
|
});
|
|
93
|
-
return
|
|
93
|
+
return Service33.of({
|
|
94
94
|
project: options?.project !== false,
|
|
95
95
|
global: options?.global !== false,
|
|
96
96
|
transform: state.transform,
|
|
@@ -104,14 +104,14 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
}));
|
|
107
|
-
function
|
|
107
|
+
function configured3(options) {
|
|
108
108
|
return makeLocationNode({
|
|
109
|
-
service:
|
|
110
|
-
layer:
|
|
111
|
-
deps: [
|
|
109
|
+
service: Service33,
|
|
110
|
+
layer: layer13(options),
|
|
111
|
+
deps: [node84]
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
var
|
|
114
|
+
var node36 = configured3();
|
|
115
115
|
function render(files) {
|
|
116
116
|
return files.map((file) => `Instructions from: ${file.path}
|
|
117
117
|
${file.content}`).join(`
|
|
@@ -142,4 +142,4 @@ ${render([after])}`;
|
|
|
142
142
|
`);
|
|
143
143
|
}
|
|
144
144
|
|
|
145
|
-
export { File2,
|
|
145
|
+
export { File2, Event5, Options3, Service33, layer13, configured3, node36, exports_instruction_discovery };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/hooks.ts
|
|
6
6
|
var exports_hooks = {};
|
|
7
7
|
__export(exports_hooks, {
|
|
8
8
|
PluginHooks: () => exports_hooks,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service84,
|
|
10
|
+
node: () => node88
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service84 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service84.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var
|
|
59
|
+
var node88 = makeLocationNode({ service: Service84, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service84, node88, exports_hooks };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/app.ts
|
|
6
6
|
var exports_app = {};
|
|
7
7
|
__export(exports_app, {
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
|
-
configured: () =>
|
|
11
|
-
layer: () =>
|
|
12
|
-
make: () =>
|
|
13
|
-
node: () =>
|
|
10
|
+
configured: () => configured11,
|
|
11
|
+
layer: () => layer24,
|
|
12
|
+
make: () => make21,
|
|
13
|
+
node: () => node68,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var Metadata2 = Context.Reference("@opencode/App", {
|
|
19
|
-
defaultValue: () =>
|
|
19
|
+
defaultValue: () => make21()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make21(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make20(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
31
|
+
var layer24 = (input) => Layer.succeed(Metadata2, make21(input));
|
|
32
|
+
var configured11 = (input) => makeGlobalNode({ service: Metadata2, layer: layer24(input), deps: [] });
|
|
33
|
+
var node68 = configured11();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make21, useragent2, layer24, configured11, node68, exports_app };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID8
|
|
3
|
+
} from "./aisdk-native-5d0dn1hj.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/amazon-bedrock.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -18,7 +18,7 @@ var AmazonBedrockPlugin2 = define({
|
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
19
19
|
yield* ctx.integration.transform((editor) => {
|
|
20
20
|
editor.method.update({
|
|
21
|
-
integrationID:
|
|
21
|
+
integrationID: ID8.amazonBedrock,
|
|
22
22
|
method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
|
|
23
23
|
});
|
|
24
24
|
});
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./aisdk-native-0f39s03b.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service77,
|
|
7
|
+
node81
|
|
8
|
+
} from "./aisdk-native-wbvars06.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
ID16,
|
|
11
|
+
Service76,
|
|
12
|
+
node80
|
|
13
|
+
} from "./aisdk-native-9t958dxm.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
NotFoundError10
|
|
16
|
+
} from "./aisdk-native-eyz64kwr.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service74,
|
|
19
|
+
node78
|
|
20
|
+
} from "./aisdk-native-0a9z9mhn.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-native-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service75,
|
|
26
|
+
node79
|
|
27
|
+
} from "./aisdk-native-6srq29b6.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service84,
|
|
30
|
+
node88
|
|
31
|
+
} from "./aisdk-native-bnmr3cva.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
37
|
var exports_permission2 = {};
|
|
@@ -42,29 +42,29 @@ __export(exports_permission2, {
|
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
45
|
+
Event: () => Event19,
|
|
46
|
+
ID: () => ID13,
|
|
47
|
+
NotFoundError: () => NotFoundError9,
|
|
48
48
|
Permission: () => exports_permission2,
|
|
49
|
-
Reply: () =>
|
|
49
|
+
Reply: () => Reply3,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
|
-
Request: () =>
|
|
51
|
+
Request: () => Request3,
|
|
52
52
|
Rule: () => Rule3,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service73,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node77
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
63
|
import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
-
import { Event as
|
|
64
|
+
import { Event as Event19 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID13 = Permission.ID;
|
|
68
68
|
var Source5 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -74,20 +74,20 @@ var RequestFields = {
|
|
|
74
74
|
metadata: Permission.Request.fields.metadata,
|
|
75
75
|
source: Permission.Request.fields.source
|
|
76
76
|
};
|
|
77
|
-
var
|
|
78
|
-
var
|
|
77
|
+
var Request3 = Permission.Request;
|
|
78
|
+
var Reply3 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID13.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID16.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
86
|
-
reply:
|
|
85
|
+
requestID: ID13,
|
|
86
|
+
reply: Reply3,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID13,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError9 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID13
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service73 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
131
|
-
const bus = yield*
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
130
|
+
var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
131
|
+
const bus = yield* Service80;
|
|
132
|
+
const location = yield* Service77;
|
|
133
|
+
const agents = yield* Service76;
|
|
134
|
+
const sessions = yield* Service74;
|
|
135
|
+
const saved = yield* Service75;
|
|
136
|
+
const hooks = yield* Service84;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
156
156
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
157
157
|
const session = yield* sessions.get(sessionID);
|
|
158
158
|
if (!session)
|
|
159
|
-
return yield* new
|
|
159
|
+
return yield* new NotFoundError10({ sessionID });
|
|
160
160
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
161
161
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
162
162
|
});
|
|
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
function request(input, message) {
|
|
188
188
|
return {
|
|
189
|
-
id: input.id ??
|
|
189
|
+
id: input.id ?? ID13.create(),
|
|
190
190
|
sessionID: input.sessionID,
|
|
191
191
|
action: input.action,
|
|
192
192
|
resources: input.resources,
|
|
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
211
211
|
}));
|
|
212
212
|
const ask = Effect.fn("Permission.ask")(function* (input) {
|
|
213
213
|
if (closed)
|
|
214
|
-
return { id: input.id ??
|
|
214
|
+
return { id: input.id ?? ID13.create(), effect: "deny" };
|
|
215
215
|
const result = yield* evaluateInput(input);
|
|
216
216
|
const value = request(input, result.message);
|
|
217
217
|
if (result.effect === "ask")
|
|
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
242
242
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
243
243
|
const existing = pending.get(input.requestID);
|
|
244
244
|
if (!existing)
|
|
245
|
-
return yield* new
|
|
245
|
+
return yield* new NotFoundError9({ requestID: input.requestID });
|
|
246
246
|
yield* bus.publish(Permission.Event.Replied, {
|
|
247
247
|
sessionID: existing.request.sessionID,
|
|
248
248
|
requestID: existing.request.id,
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
297
297
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
298
298
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service73.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node77 = makeLocationNode({
|
|
303
|
+
service: Service73,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [
|
|
305
|
+
deps: [node84, node81, node80, node78, node79, node88]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect,
|
|
308
|
+
export { PermissionEffect, ID13, Source5, Request3, Reply3, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError9, evaluate2, merge2, Service73, node77, exports_permission2, Rule3, Ruleset2, Event19 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID8
|
|
3
|
+
} from "./aisdk-native-5d0dn1hj.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-hjbc5kem.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID8.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID8.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-bt0w5j1m.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service80
|
|
6
|
+
} from "./aisdk-native-0f39s03b.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID10,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Event16,
|
|
11
|
+
Service68
|
|
12
|
+
} from "./aisdk-native-t1bt7fzx.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-y6bex35g.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID9,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./aisdk-native-vgg527ys.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID8,
|
|
22
22
|
mergeOverlay2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-native-5d0dn1hj.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID7,
|
|
26
26
|
VariantID2,
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
Info22
|
|
28
|
+
} from "./aisdk-native-v5btrwpx.js";
|
|
29
29
|
import {
|
|
30
30
|
success2,
|
|
31
31
|
error2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./aisdk-native-pjvnvgmy.js";
|
|
33
33
|
|
|
34
34
|
// src/plugin/provider/chatgpt.ts
|
|
35
35
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -41,8 +41,8 @@ var issuer = "https://auth.openai.com";
|
|
|
41
41
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
42
42
|
var resource = "https://api.openai.com/v1";
|
|
43
43
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
44
|
-
var providerID =
|
|
45
|
-
var integrationID =
|
|
44
|
+
var providerID = ID8.openai;
|
|
45
|
+
var integrationID = ID9.make("openai");
|
|
46
46
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
47
47
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
48
48
|
var fallbackModels = new Set([
|
|
@@ -171,8 +171,8 @@ function listen(server) {
|
|
|
171
171
|
var ChatGPTPlugin2 = define({
|
|
172
172
|
id: "opencode.provider.chatgpt",
|
|
173
173
|
effect: Effect.fn(function* (ctx) {
|
|
174
|
-
const bus = yield*
|
|
175
|
-
const credentials = yield*
|
|
174
|
+
const bus = yield* Service80;
|
|
175
|
+
const credentials = yield* Service68;
|
|
176
176
|
const loading = Semaphore.makeUnsafe(1);
|
|
177
177
|
let chatgpt;
|
|
178
178
|
let available;
|
|
@@ -194,7 +194,7 @@ var ChatGPTPlugin2 = define({
|
|
|
194
194
|
yield* ctx.integration.transform((editor) => {
|
|
195
195
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
196
196
|
});
|
|
197
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
197
|
+
yield* Effect.forEach(yield* credentials.list(ID9.make("openai")), (entry) => {
|
|
198
198
|
const value = entry.value;
|
|
199
199
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
200
200
|
return Effect.void;
|
|
@@ -259,7 +259,7 @@ var ChatGPTPlugin2 = define({
|
|
|
259
259
|
});
|
|
260
260
|
const refreshModels = Effect.fn("ChatGPTPlugin.refreshModels")(function* () {
|
|
261
261
|
const connection = source;
|
|
262
|
-
const credential = connection?.type === "credential" ? (yield* credentials.get(
|
|
262
|
+
const credential = connection?.type === "credential" ? (yield* credentials.get(ID10.make(connection.id)))?.value : undefined;
|
|
263
263
|
if (credential?.type !== "oauth" || credential.methodID !== methodID || credential.expires <= Date.now() + 60000)
|
|
264
264
|
return;
|
|
265
265
|
const metadata = Option.getOrUndefined(decodeMetadata(credential.metadata));
|
|
@@ -279,7 +279,7 @@ var ChatGPTPlugin2 = define({
|
|
|
279
279
|
}));
|
|
280
280
|
});
|
|
281
281
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload()))).pipe(Effect.andThen(refreshModels().pipe(Effect.forkScoped, Effect.asVoid)));
|
|
282
|
-
yield* bus.subscribe(
|
|
282
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
283
283
|
yield* refreshModels().pipe(Effect.forkScoped);
|
|
284
284
|
yield* Effect.sleep(Duration.minutes(15)).pipe(Effect.andThen(refreshModels), Effect.forever, Effect.forkScoped);
|
|
285
285
|
})
|
|
@@ -338,7 +338,7 @@ function deriveModels2(remote, existing) {
|
|
|
338
338
|
const found = byID.get(model.modelID);
|
|
339
339
|
return found ? [deriveModel(found, model)] : [];
|
|
340
340
|
}),
|
|
341
|
-
...remote.filter((model) => !known.has(
|
|
341
|
+
...remote.filter((model) => !known.has(ID7.make(model.slug))).map((model) => deriveModel(model, Info22.default(ID8.openai, ID7.make(model.slug))))
|
|
342
342
|
];
|
|
343
343
|
}
|
|
344
344
|
function deriveModel(remote, previous) {
|