@opencode-ai/core 0.0.0-dev-19194 → 0.0.0-dev-19195
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 +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/catalog.js +83 -82
- package/dist/chunks/{permission-qgqe8wdv.js → workspace-068b73xf.js} +39 -39
- package/dist/chunks/{permission-0e0xafbb.js → workspace-0e0xafbb.js} +2 -2
- package/dist/chunks/{permission-ty4tv0p8.js → workspace-0fjt40yb.js} +6 -6
- package/dist/chunks/{permission-bp1yp9s7.js → workspace-0fw9qd1b.js} +17 -17
- package/dist/chunks/{permission-xmsqqspp.js → workspace-0g1xepjd.js} +1 -1
- package/dist/chunks/workspace-0hbxperx.js +4 -0
- package/dist/chunks/{permission-0paq2nw3.js → workspace-0paq2nw3.js} +1 -1
- package/dist/chunks/workspace-0q0f95c6.js +37 -0
- package/dist/chunks/{permission-vevwt92b.js → workspace-0re6vwmn.js} +14 -14
- package/dist/chunks/{permission-0rh3kdcc.js → workspace-0rh3kdcc.js} +2 -2
- package/dist/chunks/{permission-0s9ayhjt.js → workspace-0s9ayhjt.js} +1 -1
- package/dist/chunks/{permission-06g9tmzq.js → workspace-0vfsfq09.js} +49 -49
- package/dist/chunks/{permission-y4nzzd5t.js → workspace-0xd2d7hb.js} +5 -5
- package/dist/chunks/{permission-jkypfbqd.js → workspace-0yz53w83.js} +5 -5
- package/dist/chunks/{permission-tvba162w.js → workspace-15vkkqfs.js} +24 -24
- package/dist/chunks/{permission-rnfh5tzx.js → workspace-16ktxr8e.js} +10 -10
- package/dist/chunks/{permission-c3edmaeq.js → workspace-1a51ccws.js} +26 -26
- package/dist/chunks/{permission-x5996nqq.js → workspace-1aejntzd.js} +1 -1
- package/dist/chunks/{permission-1ct4r87x.js → workspace-1ct4r87x.js} +1 -1
- package/dist/chunks/{permission-za303knc.js → workspace-1d2qgftm.js} +11 -11
- package/dist/chunks/{permission-0y3y70eh.js → workspace-1gg2jxya.js} +11 -11
- package/dist/chunks/{permission-1fnn203z.js → workspace-1v0az01t.js} +46 -46
- package/dist/chunks/{permission-90dkb0a5.js → workspace-1zdha367.js} +30 -30
- package/dist/chunks/{permission-21r38tys.js → workspace-21r38tys.js} +1 -1
- package/dist/chunks/{permission-2402vzrj.js → workspace-2402vzrj.js} +1 -1
- package/dist/chunks/{permission-z63w68vq.js → workspace-29x78va6.js} +6 -6
- package/dist/chunks/{permission-9xd69fg1.js → workspace-2a3akjqp.js} +9 -9
- package/dist/chunks/{permission-2a5m3afh.js → workspace-2a5m3afh.js} +1 -1
- package/dist/chunks/{permission-ee4j062y.js → workspace-2ay9xfby.js} +27 -27
- package/dist/chunks/{permission-naee4z7c.js → workspace-2c82d34x.js} +4 -4
- package/dist/chunks/{permission-pen6f378.js → workspace-2dxxnwvn.js} +16 -16
- package/dist/chunks/{permission-1hvvsyxb.js → workspace-2faag0yz.js} +1 -1
- package/dist/chunks/{permission-q4rx8yxr.js → workspace-2ffx8tza.js} +32 -32
- package/dist/chunks/{permission-2ht70gj7.js → workspace-2ht70gj7.js} +1 -1
- package/dist/chunks/{permission-8dpf37y4.js → workspace-2r9yknnn.js} +16 -16
- package/dist/chunks/{permission-a5kby1rv.js → workspace-2rmdj2fd.js} +13 -13
- package/dist/chunks/{permission-0jeydt1r.js → workspace-2tw22e3n.js} +12 -12
- package/dist/chunks/{permission-d7baysx9.js → workspace-33g5bhj5.js} +19 -19
- package/dist/chunks/{permission-rph3zd4r.js → workspace-35agz59w.js} +4 -4
- package/dist/chunks/{permission-36vsdr69.js → workspace-36vsdr69.js} +2 -2
- package/dist/chunks/{permission-6kqmr9wh.js → workspace-3a8w8bgx.js} +25 -25
- package/dist/chunks/{permission-4c7vbtbn.js → workspace-3f3b7fxe.js} +56 -56
- package/dist/chunks/{permission-3fc6dm20.js → workspace-3fc6dm20.js} +1 -1
- package/dist/chunks/{permission-3hepkmqq.js → workspace-3hepkmqq.js} +1 -1
- package/dist/chunks/{permission-3pxrk450.js → workspace-3pxrk450.js} +3 -3
- package/dist/chunks/{permission-a1bqr6mg.js → workspace-3qs8c17p.js} +9 -9
- package/dist/chunks/{permission-3qzbfqsy.js → workspace-3qzbfqsy.js} +2 -2
- package/dist/chunks/{permission-1g20fj6k.js → workspace-3rzw8re5.js} +38 -38
- package/dist/chunks/{permission-3smtnn6g.js → workspace-3smtnn6g.js} +1 -1
- package/dist/chunks/{permission-3tvqynh2.js → workspace-3tvqynh2.js} +1 -1
- package/dist/chunks/{permission-0kc0bztd.js → workspace-3z407xgg.js} +11 -11
- package/dist/chunks/{permission-454k5vzh.js → workspace-454k5vzh.js} +1 -1
- package/dist/chunks/{permission-798c5d35.js → workspace-4b5q5rw6.js} +4 -4
- package/dist/chunks/{permission-kbs6ktxn.js → workspace-4p715j90.js} +1 -1
- package/dist/chunks/{permission-drfs6y29.js → workspace-4q86jpqz.js} +13 -13
- package/dist/chunks/{permission-4r2nyarf.js → workspace-4r2nyarf.js} +1 -1
- package/dist/chunks/{permission-ehncr9ys.js → workspace-4stb02hv.js} +22 -22
- package/dist/chunks/{permission-skvhtt2n.js → workspace-4tegd15c.js} +44 -44
- package/dist/chunks/{permission-34yjfdzm.js → workspace-4xc43mfd.js} +32 -32
- package/dist/chunks/{permission-p6kvckg5.js → workspace-4z9ne5jz.js} +9 -9
- package/dist/chunks/{permission-vddeh64n.js → workspace-53smh5bh.js} +7 -7
- package/dist/chunks/{permission-cpxv7qgy.js → workspace-5d4cs7v3.js} +10 -10
- package/dist/chunks/{permission-5daktx2q.js → workspace-5daktx2q.js} +1 -1
- package/dist/chunks/{permission-5fmxt4p5.js → workspace-5fmxt4p5.js} +1 -1
- package/dist/chunks/{permission-5jvc5tg2.js → workspace-5jvc5tg2.js} +1 -1
- package/dist/chunks/{permission-d0b0j5m4.js → workspace-5vdh38nh.js} +20 -20
- package/dist/chunks/{permission-q2n1byss.js → workspace-5xr1m2vs.js} +44 -44
- package/dist/chunks/{permission-jjr4j3fd.js → workspace-60xfgdbs.js} +8 -8
- package/dist/chunks/{permission-86wx1ee5.js → workspace-6cysz5dw.js} +5 -5
- package/dist/chunks/{permission-845a489e.js → workspace-6fxxj0b0.js} +2 -2
- package/dist/chunks/{permission-a0m130rn.js → workspace-6t6zj863.js} +11 -11
- package/dist/chunks/{permission-711hfp6y.js → workspace-711hfp6y.js} +2 -2
- package/dist/chunks/{permission-kftt56g4.js → workspace-71q9t6ba.js} +13 -13
- package/dist/chunks/{permission-72nftnjy.js → workspace-72nftnjy.js} +2 -2
- package/dist/chunks/{permission-5z48x7pe.js → workspace-74vpyb3b.js} +301 -301
- package/dist/chunks/{permission-rrksnp7n.js → workspace-79c9y92c.js} +9 -9
- package/dist/chunks/{permission-7bmhse3q.js → workspace-7bmhse3q.js} +1 -1
- package/dist/chunks/{permission-ary78n1n.js → workspace-7c6pxk1q.js} +33 -33
- package/dist/chunks/{permission-2k8khapm.js → workspace-7dqw4kz8.js} +5 -5
- package/dist/chunks/{permission-hb5dw269.js → workspace-7kacr3xp.js} +9 -9
- package/dist/chunks/{permission-nrhxst0m.js → workspace-7m57xn6p.js} +25 -25
- package/dist/chunks/{permission-rrthq9em.js → workspace-7s43nks0.js} +35 -35
- package/dist/chunks/{permission-pc2frccz.js → workspace-7y1dpja0.js} +21 -21
- package/dist/chunks/{permission-tjvcjkky.js → workspace-81xk1twe.js} +11 -11
- package/dist/chunks/{permission-5em8x407.js → workspace-81z2r11y.js} +13 -13
- package/dist/chunks/{permission-jtgqb2ba.js → workspace-845gn4k5.js} +29 -29
- package/dist/chunks/{permission-y7zybnf0.js → workspace-8amcsk7y.js} +5 -5
- package/dist/chunks/{permission-y0vg58g0.js → workspace-8c15vfp7.js} +20 -20
- package/dist/chunks/{permission-th9cb3a2.js → workspace-8d3ap7rh.js} +8 -8
- package/dist/chunks/{permission-97f5v037.js → workspace-97f5v037.js} +1 -1
- package/dist/chunks/{permission-basdkhxq.js → workspace-9envm5e0.js} +28 -28
- package/dist/chunks/{permission-y7y73wg0.js → workspace-9menw9ez.js} +5 -5
- package/dist/chunks/{permission-etm14sfn.js → workspace-9pvcw3n1.js} +46 -46
- package/dist/chunks/{permission-fs8mreb3.js → workspace-9q7wgxy9.js} +25 -25
- package/dist/chunks/{permission-9qm9egsn.js → workspace-9qm9egsn.js} +2 -2
- package/dist/chunks/{permission-9xwybkd6.js → workspace-9qw7vjgy.js} +1 -1
- package/dist/chunks/{permission-ssvhf1t0.js → workspace-a118mjrx.js} +20 -20
- package/dist/chunks/{permission-ta6mxwq1.js → workspace-a38p2nxc.js} +36 -36
- package/dist/chunks/{permission-aaet6srn.js → workspace-aaet6srn.js} +2 -2
- package/dist/chunks/{permission-ajtjthsy.js → workspace-ajtjthsy.js} +2 -2
- package/dist/chunks/workspace-ap7ve986.js +247 -0
- package/dist/chunks/{permission-x2et6yvz.js → workspace-av5jma75.js} +12 -12
- package/dist/chunks/{permission-nfnj84cy.js → workspace-axn5xzr3.js} +11 -11
- package/dist/chunks/{permission-xx3n06zn.js → workspace-b2r752qe.js} +11 -11
- package/dist/chunks/{permission-b6gygkdw.js → workspace-b6gygkdw.js} +2 -2
- package/dist/chunks/{permission-b9wsbatv.js → workspace-b9wsbatv.js} +1 -1
- package/dist/chunks/{permission-3kbzmjgj.js → workspace-bbjenryc.js} +23 -23
- package/dist/chunks/{permission-6717p8ax.js → workspace-bw8t122c.js} +24 -24
- package/dist/chunks/{permission-7g2wv44g.js → workspace-bybqvbgv.js} +20 -20
- package/dist/chunks/{permission-wmeds191.js → workspace-c18cyq95.js} +79 -79
- package/dist/chunks/{permission-shr5ah0e.js → workspace-c75m57ar.js} +15 -15
- package/dist/chunks/{permission-f64a3ghm.js → workspace-c9nf16bb.js} +15 -15
- package/dist/chunks/{permission-mvq70mme.js → workspace-cdg11xfw.js} +28 -28
- package/dist/chunks/{permission-59wa6ec1.js → workspace-cevw79xn.js} +22 -22
- package/dist/chunks/{permission-549p75yk.js → workspace-cf2hac63.js} +170 -170
- package/dist/chunks/{permission-kj392b1j.js → workspace-ckwerkzg.js} +20 -20
- package/dist/chunks/{permission-s3m1ant6.js → workspace-cmk7q4nn.js} +35 -35
- package/dist/chunks/{permission-zkxx2fyd.js → workspace-d2vs47x1.js} +15 -15
- package/dist/chunks/{permission-6vhs0r56.js → workspace-d71pqjd0.js} +32 -32
- package/dist/chunks/{permission-d72308c8.js → workspace-d72308c8.js} +2 -2
- package/dist/chunks/{permission-ndjbqfda.js → workspace-dhsaksrz.js} +22 -22
- package/dist/chunks/{permission-91y84mbe.js → workspace-dnkajh91.js} +15 -15
- package/dist/chunks/{permission-jwcy2c2z.js → workspace-dpkg50ah.js} +4 -4
- package/dist/chunks/{permission-734paghm.js → workspace-dsfx0j74.js} +9 -9
- package/dist/chunks/{permission-1ezdn4hp.js → workspace-dshdanpk.js} +7 -7
- package/dist/chunks/{permission-3ne54r9x.js → workspace-ecr6q9gm.js} +13 -13
- package/dist/chunks/{permission-cze9nqnn.js → workspace-eg9r2xh4.js} +15 -15
- package/dist/chunks/{permission-v6616nmc.js → workspace-eh6627qw.js} +16 -16
- package/dist/chunks/{permission-y4jvkgbx.js → workspace-emc8vkxa.js} +20 -20
- package/dist/chunks/{permission-vdptz04f.js → workspace-emz89tv7.js} +6 -6
- package/dist/chunks/{permission-7kmhxb86.js → workspace-ezqspp1y.js} +12 -12
- package/dist/chunks/{permission-yp2x3t23.js → workspace-f2n192rq.js} +4 -4
- package/dist/chunks/{permission-fxbjtjnd.js → workspace-fxbjtjnd.js} +1 -1
- package/dist/chunks/{permission-z53jqebf.js → workspace-fxf1dnqb.js} +18 -18
- package/dist/chunks/{permission-fxypknc8.js → workspace-fxypknc8.js} +1 -1
- package/dist/chunks/{permission-6gvvcmqp.js → workspace-fyfh7zkb.js} +8 -8
- package/dist/chunks/{permission-gd4qta3r.js → workspace-gd4qta3r.js} +1 -1
- package/dist/chunks/{permission-gst7axd9.js → workspace-gst7axd9.js} +1 -1
- package/dist/chunks/{permission-ecyqkc7t.js → workspace-gx1t8w3s.js} +8 -8
- package/dist/chunks/{permission-7rwf1fkz.js → workspace-gy68fj6j.js} +6 -6
- package/dist/chunks/{permission-11tw25g0.js → workspace-gzd7t3bg.js} +4 -4
- package/dist/chunks/{permission-tevfa6wa.js → workspace-h0cq6hzf.js} +1 -1
- package/dist/chunks/{permission-h6vf3j39.js → workspace-h6vf3j39.js} +1 -1
- package/dist/chunks/{permission-9d4vrqc0.js → workspace-hejkh9nt.js} +9 -9
- package/dist/chunks/{permission-bgdcyqqr.js → workspace-hexrr955.js} +4 -4
- package/dist/chunks/{permission-heyhwy2w.js → workspace-heyhwy2w.js} +1 -1
- package/dist/chunks/{permission-j6c3dt9j.js → workspace-hq38dvr8.js} +16 -16
- package/dist/chunks/{permission-63kze1d3.js → workspace-hr77wr0b.js} +4 -4
- package/dist/chunks/{permission-hrvm11jt.js → workspace-hrvm11jt.js} +3 -3
- package/dist/chunks/{permission-xqe4xt8f.js → workspace-hs0g3405.js} +7 -7
- package/dist/chunks/{permission-gdw6r6rf.js → workspace-ht3swkvd.js} +84 -39
- package/dist/chunks/workspace-ht5y0zrb.js +18 -0
- package/dist/chunks/{permission-f60nab11.js → workspace-hwhmgy08.js} +30 -30
- package/dist/chunks/{permission-bxj8vx9k.js → workspace-j56dwvq0.js} +15 -15
- package/dist/chunks/{permission-qfyttvec.js → workspace-j6w5vbga.js} +13 -13
- package/dist/chunks/{permission-kecsmh6z.js → workspace-j7xarp0s.js} +12 -12
- package/dist/chunks/{permission-paphc93g.js → workspace-j935v87r.js} +2 -2
- package/dist/chunks/{permission-ndqtf2h8.js → workspace-jbjr1a4g.js} +4 -4
- package/dist/chunks/{permission-06wykemb.js → workspace-jcpdywpz.js} +13 -13
- package/dist/chunks/{permission-bsvvsrn1.js → workspace-je9hks3h.js} +5 -5
- package/dist/chunks/{permission-d9r6yxfs.js → workspace-jegy9gdg.js} +13 -13
- package/dist/chunks/{permission-v5dkyp31.js → workspace-jfqtm2ew.js} +4 -4
- package/dist/chunks/{permission-7pzsxwre.js → workspace-jg1y1cps.js} +3 -3
- package/dist/chunks/{permission-zcdkhb99.js → workspace-jk5fkwzf.js} +16 -16
- package/dist/chunks/{permission-vps2nv09.js → workspace-jx6b2bsj.js} +36 -36
- package/dist/chunks/{permission-8rc8m2aj.js → workspace-k167vvtr.js} +29 -29
- package/dist/chunks/{permission-k4bwy1x5.js → workspace-k4bwy1x5.js} +1 -1
- package/dist/chunks/{permission-41g6g5mm.js → workspace-kej5w9g7.js} +24 -24
- package/dist/chunks/{permission-kg06axw8.js → workspace-kg06axw8.js} +1 -1
- package/dist/chunks/{permission-t1v0cqqz.js → workspace-kkhk00bj.js} +13 -13
- package/dist/chunks/{permission-0hmgtzsc.js → workspace-kptjv56s.js} +46 -46
- package/dist/chunks/{permission-hw4pv20g.js → workspace-kvsjn1dr.js} +2 -2
- package/dist/chunks/{permission-t18jrk1b.js → workspace-kvst4ern.js} +22 -22
- package/dist/chunks/{permission-abvwjazp.js → workspace-kzw66bh9.js} +12 -12
- package/dist/chunks/{permission-kdz37j01.js → workspace-m14vb86n.js} +17 -17
- package/dist/chunks/{permission-sg76v7pb.js → workspace-m5m6jp7r.js} +22 -22
- package/dist/chunks/{permission-33yxnv13.js → workspace-m7qt7787.js} +11 -11
- package/dist/chunks/{permission-rwbzb0j9.js → workspace-m82bvrgm.js} +19 -19
- package/dist/chunks/{permission-m9w0rfyh.js → workspace-m9w0rfyh.js} +1 -1
- package/dist/chunks/{permission-dcs5gde8.js → workspace-maeftwq7.js} +4 -4
- package/dist/chunks/{permission-r07gm0bm.js → workspace-mbd11dqj.js} +6 -6
- package/dist/chunks/{permission-1bbkgx8g.js → workspace-mhkvc446.js} +3 -3
- package/dist/chunks/workspace-mrbb05hy.js +22 -0
- package/dist/chunks/{permission-qbgs5603.js → workspace-mrv5p0t7.js} +25 -25
- package/dist/chunks/{permission-2dxzc6st.js → workspace-mzv08p01.js} +9 -9
- package/dist/chunks/{permission-j4522nkd.js → workspace-n7ehfhw4.js} +15 -15
- package/dist/chunks/{permission-w794wtw1.js → workspace-n8j5hvcz.js} +82 -82
- package/dist/chunks/{permission-ystvjdgv.js → workspace-ng39vjdn.js} +2 -2
- package/dist/chunks/{permission-nhy5jxhy.js → workspace-nhy5jxhy.js} +1 -1
- package/dist/chunks/{permission-wtm3m4mv.js → workspace-nj1fe1jb.js} +20 -20
- package/dist/chunks/{permission-q1rpvv9s.js → workspace-ns54cwdc.js} +10 -10
- package/dist/chunks/{permission-jn3vpcr2.js → workspace-nw4f25v3.js} +31 -31
- package/dist/chunks/{permission-0mktrftt.js → workspace-nz7385rw.js} +18 -18
- package/dist/chunks/{permission-s76kmyqn.js → workspace-p1em5hbw.js} +22 -22
- package/dist/chunks/{permission-sj8yj28g.js → workspace-p9tbkvt9.js} +11 -11
- package/dist/chunks/{permission-pjvnvgmy.js → workspace-pjvnvgmy.js} +1 -1
- package/dist/chunks/{permission-pknna89w.js → workspace-pknna89w.js} +1 -1
- package/dist/chunks/{permission-s8ds8jcd.js → workspace-prv5r0xz.js} +4 -4
- package/dist/chunks/{permission-b1gft069.js → workspace-py9bx3em.js} +17 -17
- package/dist/chunks/{permission-wrwy3hc7.js → workspace-qbghqg6x.js} +9 -9
- package/dist/chunks/{permission-9y67xgrt.js → workspace-qmgk9w2w.js} +11 -11
- package/dist/chunks/{permission-r2yagys3.js → workspace-qmkbf54x.js} +21 -21
- package/dist/chunks/{permission-pmr4s4kc.js → workspace-qq11w61w.js} +4 -4
- package/dist/chunks/{permission-qsdy395h.js → workspace-qsdy395h.js} +1 -1
- package/dist/chunks/{permission-m3fm0fm8.js → workspace-r1dq9xr8.js} +5 -5
- package/dist/chunks/{permission-674xz2ws.js → workspace-r6a3d7k7.js} +3 -3
- package/dist/chunks/{permission-r8dhm0tv.js → workspace-r8dhm0tv.js} +1 -1
- package/dist/chunks/{permission-tpjsp3rq.js → workspace-rkqj9vd2.js} +4 -4
- package/dist/chunks/{permission-1554gh0k.js → workspace-rwp76w0w.js} +10 -10
- package/dist/chunks/{permission-xxhpgjtn.js → workspace-sa4mskcd.js} +6 -6
- package/dist/chunks/{permission-sba4qhjf.js → workspace-sba4qhjf.js} +1 -1
- package/dist/chunks/{permission-56hhj1k0.js → workspace-sf62yp7w.js} +50 -50
- package/dist/chunks/{permission-d8vvpswg.js → workspace-sf6ny1gj.js} +23 -23
- package/dist/chunks/{permission-jw57zqaw.js → workspace-sfvvrn0t.js} +9 -9
- package/dist/chunks/{permission-maxga7za.js → workspace-sg0pwknn.js} +11 -11
- package/dist/chunks/{permission-27k9sb4m.js → workspace-szxxy2tp.js} +25 -25
- package/dist/chunks/{permission-7xw9zsz9.js → workspace-t2bg0eyh.js} +27 -27
- package/dist/chunks/{permission-ahgb5763.js → workspace-t5em3jnm.js} +11 -11
- package/dist/chunks/{permission-03418nvg.js → workspace-t86gsvkf.js} +26 -26
- package/dist/chunks/{permission-tazgh4e4.js → workspace-tazgh4e4.js} +1 -1
- package/dist/chunks/{permission-tcezcvh9.js → workspace-tcezcvh9.js} +1 -1
- package/dist/chunks/{permission-d83vdxpb.js → workspace-tcvwtwdv.js} +7 -7
- package/dist/chunks/{permission-dmp12eyw.js → workspace-tgz09txt.js} +27 -27
- package/dist/chunks/{permission-tjykrgmx.js → workspace-tjykrgmx.js} +1 -1
- package/dist/chunks/{permission-2rpq0xmv.js → workspace-tppvcy65.js} +9 -9
- package/dist/chunks/{permission-1epdwr0s.js → workspace-ty5hvd6t.js} +23 -23
- package/dist/chunks/{permission-m75mcjf9.js → workspace-v2pza5zk.js} +8 -8
- package/dist/chunks/{permission-zca6dyxv.js → workspace-v4q1q4qr.js} +17 -17
- package/dist/chunks/{permission-yjjng2s7.js → workspace-v6zycaf8.js} +14 -14
- package/dist/chunks/{permission-gvj8s4nn.js → workspace-v706g9gb.js} +14 -14
- package/dist/chunks/{permission-g213rqq5.js → workspace-vcsvgwjs.js} +7 -7
- package/dist/chunks/{permission-pawvfhab.js → workspace-vgx5yp2y.js} +63 -63
- package/dist/chunks/{permission-1th2e3gc.js → workspace-vmsm1wad.js} +22 -22
- package/dist/chunks/{permission-tsp2em4c.js → workspace-w2426zxz.js} +6 -6
- package/dist/chunks/{permission-saak5ttd.js → workspace-w3jym6ha.js} +9 -9
- package/dist/chunks/{permission-w3wsvvr9.js → workspace-w3wsvvr9.js} +1 -1
- package/dist/chunks/{permission-rtqtxd9a.js → workspace-w64jnvj3.js} +5 -5
- package/dist/chunks/{permission-7bj47tff.js → workspace-w6t9st8m.js} +41 -41
- package/dist/chunks/{permission-h9rm1rrn.js → workspace-w8xr7nv8.js} +5 -5
- package/dist/chunks/{permission-at3tw8h2.js → workspace-wbewyepm.js} +9 -9
- package/dist/chunks/{permission-wd87259q.js → workspace-wd87259q.js} +1 -1
- package/dist/chunks/{permission-9vm9s1a5.js → workspace-wfb2eacg.js} +1 -1
- package/dist/chunks/{permission-jpg38yrs.js → workspace-wgcrfrpe.js} +6 -6
- package/dist/chunks/{permission-ywm3nvxx.js → workspace-wj9hqsdt.js} +6 -6
- package/dist/chunks/{permission-nvw3xbya.js → workspace-wkjngxy5.js} +3 -3
- package/dist/chunks/{permission-qpj255cf.js → workspace-wrec6qs9.js} +28 -28
- package/dist/chunks/{permission-71z2dbxd.js → workspace-wv6bpcdh.js} +2 -2
- package/dist/chunks/{permission-gzhrweeb.js → workspace-ww4qd3f3.js} +12 -12
- package/dist/chunks/{permission-2tr0vbqd.js → workspace-wyhh9vp5.js} +44 -44
- package/dist/chunks/{permission-x1ezjp6w.js → workspace-x1ezjp6w.js} +1 -1
- package/dist/chunks/{permission-zxqn6njn.js → workspace-x6s6v7c0.js} +36 -36
- package/dist/chunks/{permission-1c2kc3me.js → workspace-x7a4wc9r.js} +5 -5
- package/dist/chunks/{permission-npw9qs6v.js → workspace-xajw8b0s.js} +28 -28
- package/dist/chunks/{permission-ybh27hq8.js → workspace-xf9bz295.js} +9 -9
- package/dist/chunks/{permission-0hte1e32.js → workspace-xgzcv0sk.js} +20 -20
- package/dist/chunks/{permission-1gdk2rz4.js → workspace-xj0ngf9s.js} +3 -3
- package/dist/chunks/{permission-kbhpdv1e.js → workspace-xn3w44n0.js} +12 -12
- package/dist/chunks/{permission-yc7hetwv.js → workspace-xnbskdmk.js} +8 -8
- package/dist/chunks/{permission-bfhm9gkj.js → workspace-xtddbfj7.js} +6 -6
- package/dist/chunks/{permission-cbh3af09.js → workspace-xv7dhr1k.js} +8 -8
- package/dist/chunks/{permission-5ssekc67.js → workspace-xwx3yayk.js} +35 -35
- package/dist/chunks/{permission-y1fvbwt7.js → workspace-y1fvbwt7.js} +1 -1
- package/dist/chunks/{permission-93a8yfjt.js → workspace-y2cqme3r.js} +5 -5
- package/dist/chunks/{permission-3fm4dcxc.js → workspace-y5ktg927.js} +91 -61
- package/dist/chunks/{permission-rd8ts1z3.js → workspace-yc4m39s8.js} +11 -11
- package/dist/chunks/{permission-fjbphwaw.js → workspace-yd25cjpk.js} +4 -4
- package/dist/chunks/{permission-tqqej2s1.js → workspace-yf1j450z.js} +8 -8
- package/dist/chunks/{permission-yfbd16n1.js → workspace-yfbd16n1.js} +2 -2
- package/dist/chunks/{permission-5vq8ad1q.js → workspace-yhqyctfv.js} +11 -11
- package/dist/chunks/{permission-9ht0v476.js → workspace-yjcdyz30.js} +3 -3
- package/dist/chunks/{permission-0pame0fb.js → workspace-ymgv4m5p.js} +10 -10
- package/dist/chunks/{permission-q4y969yg.js → workspace-yrgt9021.js} +11 -11
- package/dist/chunks/{permission-kepsre9z.js → workspace-ys3raqdw.js} +16 -16
- package/dist/chunks/{permission-2nk48w4v.js → workspace-ysj08v9t.js} +9 -9
- package/dist/chunks/{permission-qfrq97rd.js → workspace-yy2d2dnd.js} +4 -4
- package/dist/chunks/{permission-z1k01bn4.js → workspace-z1k01bn4.js} +2 -2
- package/dist/chunks/{permission-tsbfn723.js → workspace-z43npzr4.js} +28 -28
- package/dist/chunks/{permission-zxq2ej10.js → workspace-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -116
- package/dist/config/plugin/command.js +208 -207
- package/dist/config/plugin/compaction.js +154 -153
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -116
- package/dist/config/plugin/image.js +115 -114
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +117 -116
- package/dist/config/plugin/mcp.js +126 -125
- package/dist/config/plugin/policy.js +114 -113
- package/dist/config/plugin/provider.js +113 -112
- package/dist/config/plugin/reference.js +117 -116
- package/dist/config/plugin/shell.js +118 -117
- package/dist/config/plugin/skill-file.js +96 -96
- package/dist/config/plugin/skill.js +135 -134
- package/dist/config/plugin/snapshot.js +115 -114
- package/dist/config/plugin/source.js +115 -114
- package/dist/config/plugin/tool-output.js +117 -116
- package/dist/config/plugin/websearch.js +115 -114
- package/dist/config/plugin/worktree.js +118 -117
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +117 -116
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -80
- package/dist/database/database.js +64 -64
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +359 -358
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +88 -88
- 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 +72 -72
- package/dist/file-mutation.js +89 -89
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +89 -89
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +90 -90
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +82 -82
- package/dist/generate.js +91 -90
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +3 -3
- 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 +350 -349
- package/dist/instruction-discovery.js +79 -79
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -85
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +129 -128
- package/dist/location-mutation.js +81 -81
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +347 -346
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +90 -87
- package/dist/mcp/index.js +103 -102
- package/dist/mcp/instructions.js +121 -120
- package/dist/mcp/oauth.js +78 -12
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -85
- package/dist/model.js +8 -8
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +107 -107
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +98 -98
- package/dist/plugin/command.js +96 -95
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +212 -211
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +321 -320
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +96 -96
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -117
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -116
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -113
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +80 -79
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +76 -75
- package/dist/plugin/provider/lmstudio.js +117 -116
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -78
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -116
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -77
- package/dist/plugin/provider/opencode.js +76 -75
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +2 -2
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +115 -114
- package/dist/plugin/provider/xai.js +77 -76
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +155 -154
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +128 -127
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +340 -339
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -111
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +223 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -92
- package/dist/reference/instructions.js +84 -84
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -93
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +128 -127
- package/dist/session/context.js +146 -145
- 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 +215 -214
- package/dist/session/execution.js +119 -118
- package/dist/session/generate.js +145 -144
- package/dist/session/history.js +14 -14
- package/dist/session/inbox.js +82 -82
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +91 -91
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +112 -112
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +125 -124
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +99 -99
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +1 -1
- package/dist/session/runner/llm.js +224 -223
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -85
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +120 -119
- package/dist/session/runner/to-llm-message.js +1 -1
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +166 -165
- package/dist/session/shell.js +131 -130
- package/dist/session/skill.js +97 -97
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +204 -203
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +150 -149
- package/dist/session/to-session-error.js +106 -105
- package/dist/session/transfer.js +214 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -209
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +133 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +99 -99
- package/dist/skill.js +104 -104
- package/dist/snapshot.js +86 -86
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +120 -119
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +119 -119
- package/dist/tool/plugin/grep.js +119 -119
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +97 -97
- package/dist/tool/plugin/read.js +116 -116
- package/dist/tool/plugin/shell.js +211 -210
- package/dist/tool/plugin/skill.js +105 -105
- package/dist/tool/plugin/subagent.js +211 -210
- package/dist/tool/plugin/webfetch.js +104 -104
- package/dist/tool/plugin/websearch.js +102 -102
- package/dist/tool/plugin/write.js +116 -116
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/mcp/oauth.d.ts +6 -0
- package/dist/types/util/error-summary.d.ts +7 -0
- package/dist/util/error-summary.js +8 -0
- package/dist/util/error.js +1 -1
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +4 -4
- package/dist/v1/config/permission.js +7 -7
- 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/vcs/patch.js +1 -1
- package/dist/vcs.js +85 -85
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +77 -77
- 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 +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +339 -338
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +7 -7
- package/dist/chunks/permission-7zk4hah4.js +0 -4
- package/dist/chunks/permission-9zdhvgqs.js +0 -18
- package/dist/chunks/permission-em9v05e0.js +0 -22
- package/dist/chunks/permission-tpr57ds6.js +0 -247
- /package/dist/chunks/{permission-0fabt78z.js → workspace-0fabt78z.js} +0 -0
- /package/dist/chunks/{permission-0qkdqm5v.js → workspace-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{permission-0zkw76rk.js → workspace-0zkw76rk.js} +0 -0
- /package/dist/chunks/{permission-17cy0kzp.js → workspace-17cy0kzp.js} +0 -0
- /package/dist/chunks/{permission-1cnp2v09.js → workspace-1cnp2v09.js} +0 -0
- /package/dist/chunks/{permission-1kg9ymc8.js → workspace-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{permission-2710q6r3.js → workspace-2710q6r3.js} +0 -0
- /package/dist/chunks/{permission-2axfhc9x.js → workspace-2axfhc9x.js} +0 -0
- /package/dist/chunks/{permission-2c3vjs8z.js → workspace-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{permission-359p4xyc.js → workspace-359p4xyc.js} +0 -0
- /package/dist/chunks/{permission-3asan66x.js → workspace-3asan66x.js} +0 -0
- /package/dist/chunks/{permission-3t738kvx.js → workspace-3t738kvx.js} +0 -0
- /package/dist/chunks/{permission-3v8g72cx.js → workspace-3v8g72cx.js} +0 -0
- /package/dist/chunks/{permission-3wcehsnq.js → workspace-3wcehsnq.js} +0 -0
- /package/dist/chunks/{permission-41nvscxy.js → workspace-41nvscxy.js} +0 -0
- /package/dist/chunks/{permission-43n2bw4t.js → workspace-43n2bw4t.js} +0 -0
- /package/dist/chunks/{permission-4knz6hnm.js → workspace-4knz6hnm.js} +0 -0
- /package/dist/chunks/{permission-4y7fprxs.js → workspace-4y7fprxs.js} +0 -0
- /package/dist/chunks/{permission-53557ph1.js → workspace-53557ph1.js} +0 -0
- /package/dist/chunks/{permission-550bvhaj.js → workspace-550bvhaj.js} +0 -0
- /package/dist/chunks/{permission-6prwharc.js → workspace-6prwharc.js} +0 -0
- /package/dist/chunks/{permission-7akdwqpd.js → workspace-7akdwqpd.js} +0 -0
- /package/dist/chunks/{permission-7m9af43g.js → workspace-7m9af43g.js} +0 -0
- /package/dist/chunks/{permission-822emrt2.js → workspace-822emrt2.js} +0 -0
- /package/dist/chunks/{permission-88xbtdfr.js → workspace-88xbtdfr.js} +0 -0
- /package/dist/chunks/{permission-8n3pysct.js → workspace-8n3pysct.js} +0 -0
- /package/dist/chunks/{permission-982e01ww.js → workspace-982e01ww.js} +0 -0
- /package/dist/chunks/{permission-9a4afbnw.js → workspace-9a4afbnw.js} +0 -0
- /package/dist/chunks/{permission-9rqn6x4v.js → workspace-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{permission-a1tpkmh4.js → workspace-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{permission-af5trqkr.js → workspace-af5trqkr.js} +0 -0
- /package/dist/chunks/{permission-afrmfg78.js → workspace-afrmfg78.js} +0 -0
- /package/dist/chunks/{permission-aqzs7mqg.js → workspace-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{permission-atq7p7m5.js → workspace-atq7p7m5.js} +0 -0
- /package/dist/chunks/{permission-bkyjaxrp.js → workspace-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{permission-bmr6ed5q.js → workspace-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{permission-cf4snx6d.js → workspace-cf4snx6d.js} +0 -0
- /package/dist/chunks/{permission-cvy3z8tj.js → workspace-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{permission-d9fn303g.js → workspace-d9fn303g.js} +0 -0
- /package/dist/chunks/{permission-d9jj8t3e.js → workspace-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{permission-dajrwvna.js → workspace-dajrwvna.js} +0 -0
- /package/dist/chunks/{permission-dap0rakb.js → workspace-dap0rakb.js} +0 -0
- /package/dist/chunks/{permission-df08tz66.js → workspace-df08tz66.js} +0 -0
- /package/dist/chunks/{permission-dy18nga0.js → workspace-dy18nga0.js} +0 -0
- /package/dist/chunks/{permission-e5kj55wp.js → workspace-e5kj55wp.js} +0 -0
- /package/dist/chunks/{permission-e73j6tqm.js → workspace-e73j6tqm.js} +0 -0
- /package/dist/chunks/{permission-eh3zwz77.js → workspace-eh3zwz77.js} +0 -0
- /package/dist/chunks/{permission-emrn6kk6.js → workspace-emrn6kk6.js} +0 -0
- /package/dist/chunks/{permission-f0mxakyp.js → workspace-f0mxakyp.js} +0 -0
- /package/dist/chunks/{permission-f6n9ztr4.js → workspace-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{permission-faypxj3z.js → workspace-faypxj3z.js} +0 -0
- /package/dist/chunks/{permission-fd410y7t.js → workspace-fd410y7t.js} +0 -0
- /package/dist/chunks/{permission-fxgpk5d8.js → workspace-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{permission-g4wezp1m.js → workspace-g4wezp1m.js} +0 -0
- /package/dist/chunks/{permission-g86h250q.js → workspace-g86h250q.js} +0 -0
- /package/dist/chunks/{permission-gebd4c9n.js → workspace-gebd4c9n.js} +0 -0
- /package/dist/chunks/{permission-hk9envan.js → workspace-hk9envan.js} +0 -0
- /package/dist/chunks/{permission-j2ntwpah.js → workspace-j2ntwpah.js} +0 -0
- /package/dist/chunks/{permission-j5zkgpj8.js → workspace-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{permission-jr7sbwjy.js → workspace-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{permission-jwfs4k6c.js → workspace-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{permission-jzg6c2d5.js → workspace-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{permission-mntxs535.js → workspace-mntxs535.js} +0 -0
- /package/dist/chunks/{permission-mp448xyj.js → workspace-mp448xyj.js} +0 -0
- /package/dist/chunks/{permission-msx8hqn2.js → workspace-msx8hqn2.js} +0 -0
- /package/dist/chunks/{permission-n05xt0ee.js → workspace-n05xt0ee.js} +0 -0
- /package/dist/chunks/{permission-n3j8tn72.js → workspace-n3j8tn72.js} +0 -0
- /package/dist/chunks/{permission-njntx4h6.js → workspace-njntx4h6.js} +0 -0
- /package/dist/chunks/{permission-p8qxwesx.js → workspace-p8qxwesx.js} +0 -0
- /package/dist/chunks/{permission-q3sfg36h.js → workspace-q3sfg36h.js} +0 -0
- /package/dist/chunks/{permission-q74kybfr.js → workspace-q74kybfr.js} +0 -0
- /package/dist/chunks/{permission-qaymkmh1.js → workspace-qaymkmh1.js} +0 -0
- /package/dist/chunks/{permission-qb87gjwd.js → workspace-qb87gjwd.js} +0 -0
- /package/dist/chunks/{permission-qfa1cgps.js → workspace-qfa1cgps.js} +0 -0
- /package/dist/chunks/{permission-qrg20bc0.js → workspace-qrg20bc0.js} +0 -0
- /package/dist/chunks/{permission-rcb2kzg1.js → workspace-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{permission-sdp7kfr6.js → workspace-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{permission-se0s1eqw.js → workspace-se0s1eqw.js} +0 -0
- /package/dist/chunks/{permission-sk3qaz4a.js → workspace-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{permission-ssg3fenm.js → workspace-ssg3fenm.js} +0 -0
- /package/dist/chunks/{permission-twg0f83k.js → workspace-twg0f83k.js} +0 -0
- /package/dist/chunks/{permission-w803qqfp.js → workspace-w803qqfp.js} +0 -0
- /package/dist/chunks/{permission-wer8tq1h.js → workspace-wer8tq1h.js} +0 -0
- /package/dist/chunks/{permission-wtztk69x.js → workspace-wtztk69x.js} +0 -0
- /package/dist/chunks/{permission-x0ckcb58.js → workspace-x0ckcb58.js} +0 -0
- /package/dist/chunks/{permission-x1b8g1yb.js → workspace-x1b8g1yb.js} +0 -0
- /package/dist/chunks/{permission-x61499pn.js → workspace-x61499pn.js} +0 -0
- /package/dist/chunks/{permission-y44na4kk.js → workspace-y44na4kk.js} +0 -0
- /package/dist/chunks/{permission-y8cydn3q.js → workspace-y8cydn3q.js} +0 -0
- /package/dist/chunks/{permission-ygaqb7jw.js → workspace-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{permission-z9919s4g.js → workspace-z9919s4g.js} +0 -0
- /package/dist/chunks/{permission-zbjnn3ac.js → workspace-zbjnn3ac.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service59
|
|
3
|
+
} from "./workspace-3qs8c17p.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service40
|
|
6
|
+
} from "./workspace-wgcrfrpe.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./workspace-3smtnn6g.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./workspace-ht5y0zrb.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service66
|
|
15
|
+
} from "./workspace-tcvwtwdv.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./workspace-dsfx0j74.js";
|
|
20
20
|
import {
|
|
21
21
|
prepare3,
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
Service34
|
|
23
|
+
} from "./workspace-1a51ccws.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./workspace-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/session/prompt.ts
|
|
29
29
|
var exports_prompt = {};
|
|
@@ -39,10 +39,10 @@ import path from "path";
|
|
|
39
39
|
import { fileURLToPath } from "url";
|
|
40
40
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const instances = yield*
|
|
42
|
+
const instances = yield* Service40;
|
|
43
43
|
return yield* Effect.gen(function* () {
|
|
44
44
|
yield* awaitActivation2;
|
|
45
|
-
const hooks = yield*
|
|
45
|
+
const hooks = yield* Service66;
|
|
46
46
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
47
47
|
sessionID: request.session.id,
|
|
48
48
|
messageID: request.messageID,
|
|
@@ -61,7 +61,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
61
61
|
const selected = yield* Effect.gen(function* () {
|
|
62
62
|
if (!requested?.length)
|
|
63
63
|
return;
|
|
64
|
-
const skillService = yield*
|
|
64
|
+
const skillService = yield* Service34;
|
|
65
65
|
const prepared = new Map;
|
|
66
66
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
67
67
|
const name = prepared.get(attachment.id);
|
|
@@ -125,7 +125,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
125
125
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
126
126
|
if (!mime.startsWith("image/"))
|
|
127
127
|
return { data: Base64.make(data), mime };
|
|
128
|
-
const image = yield*
|
|
128
|
+
const image = yield* Service59;
|
|
129
129
|
const label = input.name ?? (input.uri.startsWith("data:") ? "inline attachment" : input.uri);
|
|
130
130
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
131
131
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./workspace-97f5v037.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./workspace-mntxs535.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workspace-hrvm11jt.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workspace-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instruction-state.ts
|
|
21
21
|
var exports_instruction_state = {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
directoryColumn2,
|
|
3
3
|
pathColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workspace-r8dhm0tv.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./workspace-qfa1cgps.js";
|
|
8
8
|
import {
|
|
9
9
|
ProjectTable2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./workspace-9qm9egsn.js";
|
|
11
11
|
|
|
12
12
|
// src/session/sql.ts
|
|
13
13
|
import { sqliteTable, text, integer, index, primaryKey, real, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-w2426zxz.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service51
|
|
6
|
+
} from "./workspace-xajw8b0s.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service68
|
|
9
|
+
} from "./workspace-5xr1m2vs.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/configured.ts
|
|
12
12
|
import { Effect, Option } from "effect";
|
|
13
13
|
var configuredSettings2 = Effect.fn("ProviderPlugin.configuredSettings")(function* (id) {
|
|
14
|
-
const catalog = yield*
|
|
14
|
+
const catalog = yield* Service51;
|
|
15
15
|
const current = (yield* catalog.provider.get(id))?.settings;
|
|
16
|
-
const service = yield* Effect.serviceOption(
|
|
16
|
+
const service = yield* Effect.serviceOption(Service68);
|
|
17
17
|
const entries = Option.isSome(service) ? yield* service.value.entries() : [];
|
|
18
18
|
return foldSettings2(entries, id, current);
|
|
19
19
|
});
|
|
@@ -1,60 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./workspace-jg1y1cps.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service79,
|
|
7
|
+
node84
|
|
8
|
+
} from "./workspace-xn3w44n0.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./workspace-pknna89w.js";
|
|
12
|
+
import {
|
|
13
|
+
from2
|
|
14
|
+
} from "./workspace-0q0f95c6.js";
|
|
12
15
|
import {
|
|
13
16
|
__export
|
|
14
|
-
} from "./
|
|
17
|
+
} from "./workspace-9rqn6x4v.js";
|
|
15
18
|
|
|
16
19
|
// src/credential.ts
|
|
17
20
|
var exports_credential = {};
|
|
18
21
|
__export(exports_credential, {
|
|
19
22
|
Credential: () => exports_credential,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Info: () =>
|
|
23
|
+
Event: () => Event18,
|
|
24
|
+
ID: () => ID12,
|
|
25
|
+
Info: () => Info26,
|
|
23
26
|
Key: () => Key4,
|
|
24
27
|
OAuth: () => OAuth3,
|
|
25
|
-
Service: () =>
|
|
28
|
+
Service: () => Service71,
|
|
26
29
|
Value: () => Value2,
|
|
27
|
-
node: () =>
|
|
30
|
+
node: () => node75
|
|
28
31
|
});
|
|
29
32
|
import { asc, desc, eq } from "drizzle-orm";
|
|
30
|
-
import { Context, Effect, Layer, Schema } from "effect";
|
|
33
|
+
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
31
34
|
import { Credential } from "@opencode-ai/schema/credential";
|
|
32
35
|
import { Integration } from "@opencode-ai/schema/integration";
|
|
33
36
|
import { makeGlobalNode } from "@opencode-ai/util/effect/app-node";
|
|
34
|
-
var
|
|
37
|
+
var ID12 = Credential.ID;
|
|
35
38
|
var OAuth3 = Credential.OAuth;
|
|
36
39
|
var Key4 = Credential.Key;
|
|
37
40
|
var Value2 = Credential.Value;
|
|
38
|
-
var
|
|
41
|
+
var Event18 = Credential.Event;
|
|
39
42
|
|
|
40
|
-
class
|
|
41
|
-
id:
|
|
43
|
+
class Info26 extends Schema.Class("Credential.Info")({
|
|
44
|
+
id: ID12,
|
|
42
45
|
integrationID: Integration.ID,
|
|
43
46
|
label: Schema.String,
|
|
44
47
|
value: Value2
|
|
45
48
|
}) {
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
class
|
|
51
|
+
class Service71 extends Context.Service()("@opencode/Credential") {
|
|
49
52
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
51
54
|
const db = (yield* Service80).db;
|
|
52
|
-
const bus = yield*
|
|
55
|
+
const bus = yield* Service79;
|
|
53
56
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
54
57
|
const stored = (row) => {
|
|
55
58
|
if (!row.integration_id)
|
|
56
59
|
return;
|
|
57
|
-
return new
|
|
60
|
+
return new Info26({
|
|
58
61
|
id: row.id,
|
|
59
62
|
integrationID: row.integration_id,
|
|
60
63
|
label: row.label,
|
|
@@ -65,7 +68,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
65
68
|
const credential = stored(row);
|
|
66
69
|
return credential ? [credential] : [];
|
|
67
70
|
});
|
|
68
|
-
return
|
|
71
|
+
return Service71.of({
|
|
69
72
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
70
73
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
71
74
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -73,8 +76,8 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
73
76
|
return row ? stored(row) : undefined;
|
|
74
77
|
}),
|
|
75
78
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
76
|
-
const credential = new
|
|
77
|
-
id:
|
|
79
|
+
const credential = new Info26({
|
|
80
|
+
id: ID12.create(),
|
|
78
81
|
integrationID: input.integrationID,
|
|
79
82
|
label: input.label ?? "default",
|
|
80
83
|
value: input.value
|
|
@@ -88,9 +91,18 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
88
91
|
value: credential.value,
|
|
89
92
|
active: true
|
|
90
93
|
}).run();
|
|
91
|
-
})).pipe(Effect.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
})).pipe(Effect.onError((cause) => Effect.logError("credential create failed", {
|
|
95
|
+
credentialID: credential.id,
|
|
96
|
+
integrationID: credential.integrationID,
|
|
97
|
+
errors: from2(Cause.squash(cause))
|
|
98
|
+
})), Effect.orDie);
|
|
99
|
+
yield* Effect.logInfo("credential created", {
|
|
100
|
+
credentialID: credential.id,
|
|
101
|
+
integrationID: credential.integrationID,
|
|
102
|
+
type: credential.value.type
|
|
103
|
+
});
|
|
104
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
105
|
+
yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
94
106
|
return credential;
|
|
95
107
|
}),
|
|
96
108
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -104,21 +116,45 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
104
116
|
yield* tx.update(CredentialTable2).set({ active: false }).where(eq(CredentialTable2.integration_id, credential.integration_id)).run();
|
|
105
117
|
yield* tx.update(CredentialTable2).set({ active: true }).where(eq(CredentialTable2.id, id)).run();
|
|
106
118
|
return credential.integration_id;
|
|
107
|
-
})).pipe(Effect.
|
|
108
|
-
|
|
109
|
-
|
|
119
|
+
})).pipe(Effect.onError((cause) => Effect.logError("credential activate failed", {
|
|
120
|
+
credentialID: id,
|
|
121
|
+
errors: from2(Cause.squash(cause))
|
|
122
|
+
})), Effect.orDie);
|
|
123
|
+
if (integrationID) {
|
|
124
|
+
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
125
|
+
yield* bus.publish(Event18.Switched, { integrationID, credentialID: id }, { global: true });
|
|
126
|
+
}
|
|
110
127
|
}),
|
|
111
128
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
112
129
|
if (updates.label === undefined && updates.value === undefined)
|
|
113
130
|
return;
|
|
114
|
-
const credential = yield* db.select({ integrationID: CredentialTable2.integration_id, label: CredentialTable2.label }).from(CredentialTable2).where(eq(CredentialTable2.id, id)).get().pipe(Effect.
|
|
115
|
-
|
|
131
|
+
const credential = yield* db.select({ integrationID: CredentialTable2.integration_id, label: CredentialTable2.label }).from(CredentialTable2).where(eq(CredentialTable2.id, id)).get().pipe(Effect.onError((cause) => Effect.logError("credential update lookup failed", {
|
|
132
|
+
credentialID: id,
|
|
133
|
+
errors: from2(Cause.squash(cause))
|
|
134
|
+
})), Effect.orDie);
|
|
135
|
+
if (!credential?.integrationID) {
|
|
136
|
+
yield* Effect.logWarning("credential update skipped", { credentialID: id, reason: "credential_missing" });
|
|
116
137
|
return;
|
|
138
|
+
}
|
|
117
139
|
if (updates.label === credential.label && updates.value === undefined)
|
|
118
140
|
return;
|
|
119
|
-
yield* db.update(CredentialTable2).set({ label: updates.label, value: updates.value }).where(eq(CredentialTable2.id, id)).
|
|
141
|
+
const updated = yield* db.update(CredentialTable2).set({ label: updates.label, value: updates.value }).where(eq(CredentialTable2.id, id)).returning({ id: CredentialTable2.id }).get().pipe(Effect.onError((cause) => Effect.logError("credential update failed", {
|
|
142
|
+
credentialID: id,
|
|
143
|
+
integrationID: credential.integrationID,
|
|
144
|
+
errors: from2(Cause.squash(cause))
|
|
145
|
+
})), Effect.orDie);
|
|
146
|
+
if (!updated) {
|
|
147
|
+
yield* Effect.logWarning("credential update skipped", { credentialID: id, reason: "credential_removed" });
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
yield* Effect.logInfo("credential updated", {
|
|
151
|
+
credentialID: id,
|
|
152
|
+
integrationID: credential.integrationID,
|
|
153
|
+
valueChanged: updates.value !== undefined,
|
|
154
|
+
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
155
|
+
});
|
|
120
156
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
121
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
122
158
|
}),
|
|
123
159
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
124
160
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -128,7 +164,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
128
164
|
const active = credential.integration_id ? yield* tx.select({ id: CredentialTable2.id }).from(CredentialTable2).where(eq(CredentialTable2.integration_id, credential.integration_id)).orderBy(desc(CredentialTable2.active), desc(CredentialTable2.time_created), desc(CredentialTable2.id)).get() : undefined;
|
|
129
165
|
yield* tx.delete(CredentialTable2).where(eq(CredentialTable2.id, id)).run();
|
|
130
166
|
if (!credential.integration_id || active?.id !== id)
|
|
131
|
-
return { switched: false };
|
|
167
|
+
return { switched: false, integrationID: credential.integration_id };
|
|
132
168
|
const replacement = yield* tx.select({ id: CredentialTable2.id }).from(CredentialTable2).where(eq(CredentialTable2.integration_id, credential.integration_id)).orderBy(desc(CredentialTable2.time_created), desc(CredentialTable2.id)).get();
|
|
133
169
|
if (replacement) {
|
|
134
170
|
yield* tx.update(CredentialTable2).set({ active: false }).where(eq(CredentialTable2.integration_id, credential.integration_id)).run();
|
|
@@ -139,15 +175,24 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
139
175
|
integrationID: credential.integration_id,
|
|
140
176
|
credentialID: replacement?.id ?? null
|
|
141
177
|
};
|
|
142
|
-
})).pipe(Effect.
|
|
178
|
+
})).pipe(Effect.onError((cause) => Effect.logError("credential remove failed", {
|
|
179
|
+
credentialID: id,
|
|
180
|
+
errors: from2(Cause.squash(cause))
|
|
181
|
+
})), Effect.orDie);
|
|
143
182
|
if (!removed)
|
|
144
183
|
return;
|
|
145
|
-
yield*
|
|
184
|
+
yield* Effect.logInfo("credential removed", {
|
|
185
|
+
credentialID: id,
|
|
186
|
+
integrationID: removed.integrationID,
|
|
187
|
+
active: removed.switched,
|
|
188
|
+
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
189
|
+
});
|
|
190
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
146
191
|
if (removed.switched)
|
|
147
|
-
yield* bus.publish(
|
|
192
|
+
yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
148
193
|
})
|
|
149
194
|
});
|
|
150
195
|
}));
|
|
151
|
-
var
|
|
196
|
+
var node75 = makeGlobalNode({ service: Service71, layer, deps: [node85, node84] });
|
|
152
197
|
|
|
153
|
-
export {
|
|
198
|
+
export { ID12, OAuth3, Key4, Value2, Event18, Info26, Service71, node75, exports_credential };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./workspace-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service28,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service28 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service28.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service28, awaitActivation2, exports_service };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID15,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./workspace-w2426zxz.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
ID14
|
|
8
|
+
} from "./workspace-2tw22e3n.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service79
|
|
11
|
+
} from "./workspace-xn3w44n0.js";
|
|
12
12
|
import {
|
|
13
13
|
OAuth3,
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Event18
|
|
15
|
+
} from "./workspace-ht3swkvd.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID8,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./workspace-k167vvtr.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service51
|
|
22
|
+
} from "./workspace-xajw8b0s.js";
|
|
23
23
|
import {
|
|
24
24
|
get2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./workspace-6t6zj863.js";
|
|
26
26
|
import {
|
|
27
27
|
useragent2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./workspace-yrgt9021.js";
|
|
29
29
|
|
|
30
30
|
// src/plugin/provider/github-copilot.ts
|
|
31
31
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -57,7 +57,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
57
57
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
58
58
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
59
59
|
var oauth = (app) => ({
|
|
60
|
-
integrationID:
|
|
60
|
+
integrationID: ID8.make("github-copilot"),
|
|
61
61
|
method: {
|
|
62
62
|
id: methodID,
|
|
63
63
|
type: "oauth",
|
|
@@ -155,8 +155,8 @@ var oauth = (app) => ({
|
|
|
155
155
|
var GithubCopilotPlugin2 = define({
|
|
156
156
|
id: "opencode.provider.github.copilot",
|
|
157
157
|
effect: Effect.fn(function* (ctx) {
|
|
158
|
-
const catalog = yield*
|
|
159
|
-
const bus = yield*
|
|
158
|
+
const catalog = yield* Service51;
|
|
159
|
+
const bus = yield* Service79;
|
|
160
160
|
const loading = Semaphore.makeUnsafe(1);
|
|
161
161
|
const loaded = {};
|
|
162
162
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -170,8 +170,8 @@ var GithubCopilotPlugin2 = define({
|
|
|
170
170
|
return;
|
|
171
171
|
}
|
|
172
172
|
loaded.baseURL = copilotBaseURL2(credential.metadata);
|
|
173
|
-
const provider = yield* catalog.provider.get(
|
|
174
|
-
const existing = (yield* catalog.model.all()).filter((model) => model.providerID ===
|
|
173
|
+
const provider = yield* catalog.provider.get(ID15.githubCopilot);
|
|
174
|
+
const existing = (yield* catalog.model.all()).filter((model) => model.providerID === ID15.githubCopilot);
|
|
175
175
|
loaded.models = yield* Effect.tryPromise({
|
|
176
176
|
try: () => get2(loaded.baseURL ?? baseURL(), {
|
|
177
177
|
...provider?.headers,
|
|
@@ -187,12 +187,12 @@ var GithubCopilotPlugin2 = define({
|
|
|
187
187
|
editor.method.update(oauth(ctx.app));
|
|
188
188
|
});
|
|
189
189
|
yield* ctx.catalog.transform((evt) => {
|
|
190
|
-
const item = evt.provider.get(
|
|
190
|
+
const item = evt.provider.get(ID15.githubCopilot);
|
|
191
191
|
if (!item)
|
|
192
192
|
return;
|
|
193
193
|
if (loaded.models) {
|
|
194
194
|
for (const id of item.models.keys()) {
|
|
195
|
-
if (!loaded.models.has(
|
|
195
|
+
if (!loaded.models.has(ID14.make(id)))
|
|
196
196
|
evt.model.remove(item.provider.id, id);
|
|
197
197
|
}
|
|
198
198
|
for (const [id, model] of loaded.models) {
|
|
@@ -207,17 +207,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
207
207
|
});
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
if (item.models.has(
|
|
211
|
-
evt.model.update(item.provider.id,
|
|
210
|
+
if (item.models.has(ID14.make("gpt-5-chat-latest"))) {
|
|
211
|
+
evt.model.update(item.provider.id, ID14.make("gpt-5-chat-latest"), (model) => {
|
|
212
212
|
model.enabled = false;
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
217
|
-
yield* bus.subscribe(
|
|
217
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID8.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
218
218
|
yield* refresh().pipe(Effect.forkScoped);
|
|
219
219
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
220
|
-
if (evt.model.providerID !==
|
|
220
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
221
221
|
return;
|
|
222
222
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
223
223
|
return;
|
|
@@ -226,7 +226,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
226
226
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
227
227
|
}));
|
|
228
228
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
229
|
-
if (evt.model.providerID !==
|
|
229
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
230
230
|
return;
|
|
231
231
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
232
232
|
return;
|
|
@@ -236,9 +236,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
236
236
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
237
237
|
if (interaction !== "conversation-agent")
|
|
238
238
|
evt.headers["x-initiator"] = "agent";
|
|
239
|
-
}), { providerID:
|
|
239
|
+
}), { providerID: ID15.githubCopilot });
|
|
240
240
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
241
|
-
if (evt.model.providerID !==
|
|
241
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
242
242
|
return;
|
|
243
243
|
const token = evt.request.headers.get("x-api-key");
|
|
244
244
|
if (!token)
|
|
@@ -246,9 +246,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
246
246
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
247
247
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
248
248
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
249
|
-
}), { providerID:
|
|
249
|
+
}), { providerID: ID15.githubCopilot });
|
|
250
250
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
251
|
-
if (evt.model.providerID !==
|
|
251
|
+
if (evt.model.providerID !== ID15.githubCopilot)
|
|
252
252
|
return;
|
|
253
253
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
254
254
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./workspace-p8qxwesx.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service73
|
|
6
|
+
} from "./workspace-m14vb86n.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service68
|
|
9
|
+
} from "./workspace-5xr1m2vs.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service49
|
|
12
|
+
} from "./workspace-4tegd15c.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./workspace-qsdy395h.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./workspace-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/config/plugin/worktree.ts
|
|
21
21
|
var exports_worktree = {};
|
|
22
22
|
__export(exports_worktree, {
|
|
23
23
|
ConfigWorktreePlugin: () => exports_worktree,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin12
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode-ai/plugin/effect/plugin";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Global } from "@opencode-ai/util/global";
|
|
30
|
-
var
|
|
30
|
+
var Plugin12 = define({
|
|
31
31
|
id: "opencode.config.worktree",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const location = yield*
|
|
33
|
+
const config = yield* Service68;
|
|
34
|
+
const location = yield* Service73;
|
|
35
35
|
const global = yield* Global.Service;
|
|
36
|
-
const worktrees = yield*
|
|
36
|
+
const worktrees = yield* Service49;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, worktrees.reload());
|
|
38
38
|
yield* worktrees.transform((editor) => {
|
|
39
39
|
for (const entry of loaded.entries) {
|
|
@@ -48,4 +48,4 @@ var Plugin37 = define({
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Plugin12, exports_worktree };
|