@opencode/core 0.0.0-dev-19993 → 0.0.0-dev-19996
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 +78 -78
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/instruction-discovery-04hxy07f.js +503 -0
- package/dist/chunks/{pty-esmjnf1q.js → instruction-discovery-09mc3296.js} +6 -6
- package/dist/chunks/{pty-ecxgrer6.js → instruction-discovery-0a6azg2e.js} +40 -40
- package/dist/chunks/{pty-nkasj3c8.js → instruction-discovery-0hagtbv7.js} +7 -7
- package/dist/chunks/instruction-discovery-0mesazry.js +4 -0
- package/dist/chunks/{pty-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{pty-0q0f95c6.js → instruction-discovery-0q0f95c6.js} +1 -1
- package/dist/chunks/{pty-6kg1vfnr.js → instruction-discovery-0w62qmxp.js} +6 -6
- package/dist/chunks/{pty-s9na07f2.js → instruction-discovery-0xrqra36.js} +11 -11
- package/dist/chunks/{pty-5getdy1k.js → instruction-discovery-160eg20p.js} +25 -25
- package/dist/chunks/{pty-yp2x3t23.js → instruction-discovery-1acjjqhc.js} +4 -4
- package/dist/chunks/{pty-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{pty-zxeq00ty.js → instruction-discovery-1fp4wcab.js} +16 -16
- package/dist/chunks/{pty-ehhpwfhw.js → instruction-discovery-1h03kfwc.js} +35 -35
- package/dist/chunks/{pty-hsgwpaad.js → instruction-discovery-1yv1a62b.js} +17 -17
- package/dist/chunks/{pty-texm17j6.js → instruction-discovery-1zckm8jh.js} +24 -24
- package/dist/chunks/{pty-21r38tys.js → instruction-discovery-21r38tys.js} +1 -1
- package/dist/chunks/{pty-6h73sxmp.js → instruction-discovery-2402vzrj.js} +5 -5
- package/dist/chunks/{pty-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{pty-24dx1hrc.js → instruction-discovery-2aq7ecr3.js} +10 -10
- package/dist/chunks/{pty-rf2pre7z.js → instruction-discovery-2dt7wr4s.js} +16 -16
- package/dist/chunks/{pty-8pf6zh8g.js → instruction-discovery-2gkn9qbw.js} +7 -7
- package/dist/chunks/{pty-typarb9b.js → instruction-discovery-2kxk86ay.js} +20 -20
- package/dist/chunks/{pty-1ygqh575.js → instruction-discovery-33w4ejhs.js} +6 -6
- package/dist/chunks/{pty-qggqx5pb.js → instruction-discovery-35a9k02a.js} +20 -20
- package/dist/chunks/{pty-dh91zd6a.js → instruction-discovery-35vbf9tc.js} +11 -11
- package/dist/chunks/{pty-a8mkfh3x.js → instruction-discovery-361b9f49.js} +11 -11
- package/dist/chunks/{pty-xc8wbe60.js → instruction-discovery-371kvkjf.js} +25 -25
- package/dist/chunks/{pty-x2rw7g36.js → instruction-discovery-3bc8czyk.js} +5 -5
- package/dist/chunks/{pty-zg5t6seb.js → instruction-discovery-3daw6e4n.js} +11 -11
- package/dist/chunks/{pty-s1x3xehd.js → instruction-discovery-3f0yr7fv.js} +17 -17
- package/dist/chunks/{pty-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{pty-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{pty-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{pty-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{pty-78v47nsk.js → instruction-discovery-3w2b2yj4.js} +5 -5
- package/dist/chunks/{pty-ba30f0re.js → instruction-discovery-43kbj8b8.js} +26 -26
- package/dist/chunks/{pty-8z00fdkb.js → instruction-discovery-44h5tttr.js} +4 -4
- package/dist/chunks/{pty-knb7evpn.js → instruction-discovery-44ke2mar.js} +2 -2
- package/dist/chunks/{pty-t3444mmx.js → instruction-discovery-473ftn0x.js} +3 -3
- package/dist/chunks/{pty-09tf4pjr.js → instruction-discovery-4ernrsx0.js} +86 -86
- package/dist/chunks/{pty-sk7gk9f5.js → instruction-discovery-4f2w252g.js} +10 -10
- package/dist/chunks/{pty-fmj93vfk.js → instruction-discovery-4fp7zs02.js} +12 -12
- package/dist/chunks/{pty-atfs7rhk.js → instruction-discovery-4gycnsfp.js} +9 -9
- package/dist/chunks/{pty-29mx63hq.js → instruction-discovery-4hkj21w9.js} +26 -26
- package/dist/chunks/{pty-71y3c5ag.js → instruction-discovery-4tc1hqha.js} +19 -19
- package/dist/chunks/{pty-sez5jh81.js → instruction-discovery-50mzsvk4.js} +4 -4
- package/dist/chunks/{pty-qjnxxf51.js → instruction-discovery-510m7gjw.js} +5 -5
- package/dist/chunks/{pty-9dvfkq0c.js → instruction-discovery-59d1t1kc.js} +11 -11
- package/dist/chunks/{pty-p7p04q1a.js → instruction-discovery-5cd0sxeq.js} +20 -20
- package/dist/chunks/{pty-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{pty-fxbjtjnd.js → instruction-discovery-5ekn9679.js} +7 -7
- package/dist/chunks/{pty-mbfxv7fw.js → instruction-discovery-5nxd8dws.js} +34 -34
- package/dist/chunks/{pty-f22wqnxv.js → instruction-discovery-5sp2y267.js} +11 -11
- package/dist/chunks/{pty-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/{pty-ha666rq4.js → instruction-discovery-5w0cxjq0.js} +3 -3
- package/dist/chunks/{pty-2hvjkdzw.js → instruction-discovery-5x7tnjhw.js} +3 -3
- package/dist/chunks/{pty-5yzzbxa7.js → instruction-discovery-5xtgfte3.js} +8 -8
- package/dist/chunks/{pty-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{pty-fya5n5xa.js → instruction-discovery-680db922.js} +10 -10
- package/dist/chunks/{pty-461fsfdt.js → instruction-discovery-6h1myzs3.js} +17 -17
- package/dist/chunks/{pty-6msgmcgs.js → instruction-discovery-6msgmcgs.js} +1 -1
- package/dist/chunks/{pty-et2qvwfy.js → instruction-discovery-74y2pqnj.js} +10 -10
- package/dist/chunks/{pty-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{pty-607tc6va.js → instruction-discovery-7dqw4kz8.js} +5 -5
- package/dist/chunks/{pty-p1zevnby.js → instruction-discovery-7fns08e8.js} +34 -34
- package/dist/chunks/{pty-050w92qt.js → instruction-discovery-7h64qcjn.js} +8 -8
- package/dist/chunks/{pty-nw53exab.js → instruction-discovery-7j2qha59.js} +8 -8
- package/dist/chunks/{pty-8m27p9j3.js → instruction-discovery-7q27d8ak.js} +10 -10
- package/dist/chunks/{pty-1543s7pr.js → instruction-discovery-80az21bw.js} +4 -4
- package/dist/chunks/{pty-zqpw1c2p.js → instruction-discovery-80vnhx64.js} +22 -22
- package/dist/chunks/{pty-48yax929.js → instruction-discovery-87ryhpkm.js} +44 -44
- package/dist/chunks/instruction-discovery-8cfmw7g8.js +26 -0
- package/dist/chunks/{pty-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{pty-qr8qa9bm.js → instruction-discovery-8hvkh9qd.js} +30 -30
- package/dist/chunks/{pty-7g9sy6yd.js → instruction-discovery-8jx8k6qg.js} +7 -7
- package/dist/chunks/{pty-8p4f9s12.js → instruction-discovery-8p4f9s12.js} +2 -2
- package/dist/chunks/{pty-e91xfsxp.js → instruction-discovery-8s5eshva.js} +2 -2
- package/dist/chunks/{pty-fvkf5gpn.js → instruction-discovery-8t3r44sf.js} +5 -5
- package/dist/chunks/{pty-5vdyt57w.js → instruction-discovery-9hs7fs45.js} +3 -3
- package/dist/chunks/{pty-6y2kb6da.js → instruction-discovery-9v27psqe.js} +16 -16
- package/dist/chunks/{pty-a1bz86dw.js → instruction-discovery-a1bz86dw.js} +3 -3
- package/dist/chunks/{pty-kcnwc050.js → instruction-discovery-a2jb2751.js} +32 -32
- package/dist/chunks/{pty-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{pty-2w6fc0zt.js → instruction-discovery-aamtrqep.js} +9 -9
- package/dist/chunks/{pty-xya6rnzh.js → instruction-discovery-ajzsbz6h.js} +11 -11
- package/dist/chunks/{pty-pvcnmygp.js → instruction-discovery-ap1tgj32.js} +18 -18
- package/dist/chunks/{pty-9n5gchmp.js → instruction-discovery-asznntn8.js} +26 -26
- package/dist/chunks/{pty-eyx3sbbq.js → instruction-discovery-b1ek0wtw.js} +4 -4
- package/dist/chunks/{pty-rrfm0vdv.js → instruction-discovery-b4nfcdv5.js} +12 -12
- package/dist/chunks/{pty-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{pty-2sr83qrg.js → instruction-discovery-b8bvc04a.js} +1 -1
- package/dist/chunks/{pty-w2xf1871.js → instruction-discovery-bbxr6jw3.js} +41 -41
- package/dist/chunks/{pty-pmr4s4kc.js → instruction-discovery-bct739vz.js} +4 -4
- package/dist/chunks/{pty-1avgqjfw.js → instruction-discovery-bd8btjtc.js} +11 -11
- package/dist/chunks/{pty-g2eett4k.js → instruction-discovery-bkskqsty.js} +11 -11
- package/dist/chunks/{pty-mkmvax1f.js → instruction-discovery-bm1prq2q.js} +10 -10
- package/dist/chunks/{pty-pekx08ex.js → instruction-discovery-bn0g70r0.js} +24 -24
- package/dist/chunks/{pty-c7w3tbrx.js → instruction-discovery-bnvayccf.js} +9 -9
- package/dist/chunks/{pty-j69p7kth.js → instruction-discovery-bq1752a3.js} +22 -22
- package/dist/chunks/{pty-q40w5akv.js → instruction-discovery-bvx85a4w.js} +1 -1
- package/dist/chunks/{pty-jz67am5p.js → instruction-discovery-c49f7yek.js} +6 -6
- package/dist/chunks/{pty-feqpvc5c.js → instruction-discovery-ca8qvqpq.js} +17 -17
- package/dist/chunks/{pty-1cd81313.js → instruction-discovery-cbany252.js} +11 -11
- package/dist/chunks/{pty-cfpkc3c9.js → instruction-discovery-cfpkc3c9.js} +2 -2
- package/dist/chunks/{pty-tz4n1mmd.js → instruction-discovery-ckf8nxjz.js} +4 -4
- package/dist/chunks/{pty-cbc0wxnt.js → instruction-discovery-cr59q9qa.js} +4 -4
- package/dist/chunks/{pty-3shkqxcj.js → instruction-discovery-ctak4ngs.js} +6 -6
- package/dist/chunks/{pty-v2cwp70s.js → instruction-discovery-ctq3xf59.js} +47 -47
- package/dist/chunks/{pty-djszqvmq.js → instruction-discovery-cwa6csj7.js} +9 -9
- package/dist/chunks/{pty-pecb0brz.js → instruction-discovery-d2aac7k2.js} +5 -5
- package/dist/chunks/{pty-8vhnwsrf.js → instruction-discovery-d5b773r5.js} +70 -70
- package/dist/chunks/{pty-p8z07maz.js → instruction-discovery-d6g71415.js} +21 -21
- package/dist/chunks/{pty-q58mka6k.js → instruction-discovery-d737nyfv.js} +9 -9
- package/dist/chunks/{pty-x10m976v.js → instruction-discovery-d89ah0rb.js} +32 -32
- package/dist/chunks/{pty-3tjpy68d.js → instruction-discovery-dbgp4r1w.js} +31 -31
- package/dist/chunks/{pty-qrrcqbrg.js → instruction-discovery-dd9zjddp.js} +13 -13
- package/dist/chunks/{pty-r9w3djhf.js → instruction-discovery-depwzj9d.js} +8 -8
- package/dist/chunks/{pty-j7c1rfea.js → instruction-discovery-dgt1m6jj.js} +19 -19
- package/dist/chunks/{pty-ab845m4a.js → instruction-discovery-dhst5bzj.js} +23 -23
- package/dist/chunks/{pty-6svx4vfh.js → instruction-discovery-dj5cbr0h.js} +25 -25
- package/dist/chunks/{pty-93hpb89x.js → instruction-discovery-dm1py9b3.js} +2 -2
- package/dist/chunks/{pty-15zevn5w.js → instruction-discovery-e6hd9jay.js} +6 -6
- package/dist/chunks/{pty-yrbxk7kt.js → instruction-discovery-eesx3r1b.js} +17 -17
- package/dist/chunks/{pty-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{pty-mys1tqp3.js → instruction-discovery-enwy0czq.js} +26 -26
- package/dist/chunks/{pty-2sbg9ezb.js → instruction-discovery-epkzn4tn.js} +48 -48
- package/dist/chunks/{pty-jhf3jymm.js → instruction-discovery-eqkxs06z.js} +6 -6
- package/dist/chunks/{pty-erw5rpbs.js → instruction-discovery-erw5rpbs.js} +2 -2
- package/dist/chunks/{pty-vqwxbh15.js → instruction-discovery-eth0681n.js} +16 -16
- package/dist/chunks/{pty-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/{pty-0w94f9zc.js → instruction-discovery-ex0ne5y8.js} +8 -8
- package/dist/chunks/{pty-f828m53h.js → instruction-discovery-f828m53h.js} +2 -2
- package/dist/chunks/{pty-ca9wasfp.js → instruction-discovery-fck4aavc.js} +18 -18
- package/dist/chunks/{pty-1sn1ktbx.js → instruction-discovery-ff6mr1mq.js} +9 -9
- package/dist/chunks/{pty-4e8vs6eh.js → instruction-discovery-fqtvmpfq.js} +8 -8
- package/dist/chunks/{pty-zab6dek8.js → instruction-discovery-fqzyqcjh.js} +22 -22
- package/dist/chunks/{pty-rsf4gv7k.js → instruction-discovery-fxbvhs05.js} +19 -19
- package/dist/chunks/{pty-h53kmbdm.js → instruction-discovery-fy1gvxag.js} +54 -54
- package/dist/chunks/{pty-jgttmm4a.js → instruction-discovery-fyjp43ss.js} +5 -5
- package/dist/chunks/{pty-3srp75sn.js → instruction-discovery-fyrnwbxv.js} +13 -13
- package/dist/chunks/{pty-0tay0vp0.js → instruction-discovery-fyx1rh07.js} +15 -15
- package/dist/chunks/{pty-9j764z9f.js → instruction-discovery-g0w0m6c8.js} +11 -11
- package/dist/chunks/{pty-bhteabqx.js → instruction-discovery-g6jcgrmn.js} +4 -4
- package/dist/chunks/{pty-p7zm9vnn.js → instruction-discovery-g7mym6m5.js} +18 -18
- package/dist/chunks/{pty-be40ghdv.js → instruction-discovery-g84cjvn9.js} +2 -2
- package/dist/chunks/{pty-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{pty-m5j28g6y.js → instruction-discovery-gd8x6j3n.js} +7 -7
- package/dist/chunks/{pty-3cs1hnzz.js → instruction-discovery-gegj32p6.js} +20 -20
- package/dist/chunks/{pty-s0agc963.js → instruction-discovery-gqawmzqm.js} +8 -8
- package/dist/chunks/{pty-d386qjdf.js → instruction-discovery-gsae7mzx.js} +3 -3
- package/dist/chunks/{pty-gv6a8nnw.js → instruction-discovery-gv6a8nnw.js} +2 -2
- package/dist/chunks/{pty-xhrfypmh.js → instruction-discovery-gzybrnwp.js} +27 -27
- package/dist/chunks/{pty-870m6jn5.js → instruction-discovery-h25pynb9.js} +6 -6
- package/dist/chunks/{pty-dc0f92gk.js → instruction-discovery-h35wg768.js} +42 -42
- package/dist/chunks/{pty-jgq9btc2.js → instruction-discovery-h3egcphf.js} +46 -46
- package/dist/chunks/{pty-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{pty-a5cfpm61.js → instruction-discovery-h7e5g0tn.js} +6 -6
- package/dist/chunks/{pty-favr8gmm.js → instruction-discovery-hesh0yqh.js} +15 -15
- package/dist/chunks/{pty-bha4atvq.js → instruction-discovery-hfdr1yjj.js} +4 -4
- package/dist/chunks/{pty-sgb290x0.js → instruction-discovery-hgxtd65q.js} +13 -13
- package/dist/chunks/{pty-hqmr0w3b.js → instruction-discovery-hqmr0w3b.js} +1 -1
- package/dist/chunks/{pty-3q7edt44.js → instruction-discovery-hrcn0nnf.js} +11 -11
- package/dist/chunks/{pty-k1qrnqst.js → instruction-discovery-hz0q9sdq.js} +8 -8
- package/dist/chunks/{pty-h0sprvfa.js → instruction-discovery-j0a35shb.js} +45 -45
- package/dist/chunks/{pty-s4w9dbtc.js → instruction-discovery-j2z2bynw.js} +5 -5
- package/dist/chunks/{pty-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{pty-ph842b28.js → instruction-discovery-j5rxtxht.js} +4 -4
- package/dist/chunks/{pty-mx7gy8pb.js → instruction-discovery-j7zkqwjr.js} +5 -5
- package/dist/chunks/{pty-tpnwfd5g.js → instruction-discovery-ja7gyv8y.js} +6 -6
- package/dist/chunks/{pty-rgch3z0v.js → instruction-discovery-jkypvzfq.js} +20 -20
- package/dist/chunks/{pty-nbgyd66e.js → instruction-discovery-jppyavat.js} +25 -25
- package/dist/chunks/{pty-xkr6cyjb.js → instruction-discovery-jq7r7x4m.js} +23 -23
- package/dist/chunks/instruction-discovery-jqh9b0xq.js +18 -0
- package/dist/chunks/{pty-s23akgaf.js → instruction-discovery-jth2zfp5.js} +5 -5
- package/dist/chunks/{pty-nzks3jc8.js → instruction-discovery-k3c624dm.js} +3 -3
- package/dist/chunks/{pty-4tajgtbv.js → instruction-discovery-k9mx7t5w.js} +18 -18
- package/dist/chunks/{pty-6rjq4ad6.js → instruction-discovery-keat3kjn.js} +4 -4
- package/dist/chunks/{pty-cfhq3gyz.js → instruction-discovery-kgpwsj74.js} +28 -28
- package/dist/chunks/{pty-r7pg2k45.js → instruction-discovery-m2tc1n0a.js} +31 -31
- package/dist/chunks/{pty-m3fdjcah.js → instruction-discovery-m3fdjcah.js} +1 -1
- package/dist/chunks/{pty-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{pty-czzrymxc.js → instruction-discovery-madhy2we.js} +24 -24
- package/dist/chunks/{pty-mhkvc446.js → instruction-discovery-mhkvc446.js} +1 -1
- package/dist/chunks/{pty-4cv6vszb.js → instruction-discovery-mw0271ay.js} +22 -22
- package/dist/chunks/{pty-hm7r1852.js → instruction-discovery-mw65zyef.js} +18 -18
- package/dist/chunks/{pty-x2jawspn.js → instruction-discovery-n0mnd67y.js} +9 -9
- package/dist/chunks/{pty-bpckba2r.js → instruction-discovery-n1fe3aty.js} +11 -11
- package/dist/chunks/{pty-2yb6xvw8.js → instruction-discovery-n74rpst0.js} +10 -10
- package/dist/chunks/{pty-2s238nn0.js → instruction-discovery-nanpb4nb.js} +187 -187
- package/dist/chunks/{pty-w97g4k0g.js → instruction-discovery-nbzsj80d.js} +8 -8
- package/dist/chunks/{pty-w9ka22cp.js → instruction-discovery-nkcf2gs9.js} +30 -30
- package/dist/chunks/{pty-e163j4jp.js → instruction-discovery-np6jcka8.js} +12 -12
- package/dist/chunks/{pty-pcfkrm12.js → instruction-discovery-nqyhrfcc.js} +4 -4
- package/dist/chunks/{pty-p28j5sbe.js → instruction-discovery-p28j5sbe.js} +2 -2
- package/dist/chunks/{pty-879k3rbz.js → instruction-discovery-pfk7g78r.js} +5 -5
- package/dist/chunks/{pty-k5t1vn2m.js → instruction-discovery-pg3xm6en.js} +24 -24
- package/dist/chunks/{pty-548d8qnr.js → instruction-discovery-pjcxmf6n.js} +13 -13
- package/dist/chunks/{pty-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{pty-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{pty-nscznvay.js → instruction-discovery-pnv527nz.js} +9 -9
- package/dist/chunks/{pty-4efdx9rk.js → instruction-discovery-psx79z8s.js} +12 -12
- package/dist/chunks/{pty-062r8x8b.js → instruction-discovery-pvv2cx45.js} +89 -89
- package/dist/chunks/{pty-emca911v.js → instruction-discovery-pw383ktz.js} +8 -8
- package/dist/chunks/{pty-e2sckgsq.js → instruction-discovery-py17fkfh.js} +24 -24
- package/dist/chunks/{pty-cp1t7mny.js → instruction-discovery-q1enjrf6.js} +23 -23
- package/dist/chunks/{pty-y9g97vsr.js → instruction-discovery-q9dc04tf.js} +30 -30
- package/dist/chunks/{pty-6wc135vc.js → instruction-discovery-qe92z5eg.js} +23 -23
- package/dist/chunks/{pty-038mqbwm.js → instruction-discovery-qkb3xxtm.js} +5 -5
- package/dist/chunks/{pty-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{pty-j2zz4nqv.js → instruction-discovery-qz0c158j.js} +9 -9
- package/dist/chunks/{pty-d81wp89e.js → instruction-discovery-qz1pxh76.js} +15 -15
- package/dist/chunks/{pty-zcc1n10w.js → instruction-discovery-r5yv3mt8.js} +6 -6
- package/dist/chunks/instruction-discovery-r6ma33hb.js +65 -0
- package/dist/chunks/{pty-frw7gw9n.js → instruction-discovery-r910kxjq.js} +30 -30
- package/dist/chunks/{pty-xcz1w3cx.js → instruction-discovery-r991r44t.js} +26 -26
- package/dist/chunks/{pty-tkmwgdpd.js → instruction-discovery-ratrq7cm.js} +7 -7
- package/dist/chunks/{pty-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{pty-draats0m.js → instruction-discovery-rnym2nbx.js} +5 -5
- package/dist/chunks/{pty-xj2v2q7r.js → instruction-discovery-s38x4d8v.js} +3 -3
- package/dist/chunks/{pty-rxdxv3zs.js → instruction-discovery-s59wxs1e.js} +11 -11
- package/dist/chunks/{pty-eaj1djv9.js → instruction-discovery-s8d7rejh.js} +6 -6
- package/dist/chunks/{pty-6ng8rhkc.js → instruction-discovery-sjf3tctt.js} +12 -12
- package/dist/chunks/{pty-hwdkr1sy.js → instruction-discovery-skt6pyyf.js} +6 -6
- package/dist/chunks/{pty-7mr8gmff.js → instruction-discovery-sp1y3784.js} +4 -4
- package/dist/chunks/{pty-wx15ps39.js → instruction-discovery-spq00ka2.js} +11 -11
- package/dist/chunks/{pty-43kxyya3.js → instruction-discovery-srp1awq4.js} +12 -12
- package/dist/chunks/{pty-tct3dq34.js → instruction-discovery-sw51tshd.js} +50 -50
- package/dist/chunks/{pty-nt2pe6m8.js → instruction-discovery-sy6tmz81.js} +24 -24
- package/dist/chunks/{pty-bqjt5s0q.js → instruction-discovery-t2schhr1.js} +44 -44
- package/dist/chunks/instruction-discovery-t37sa7x6.js +252 -0
- package/dist/chunks/{pty-vw2351hj.js → instruction-discovery-t9msbx01.js} +5 -5
- package/dist/chunks/{pty-vbwvxk55.js → instruction-discovery-tada9jhx.js} +4 -4
- package/dist/chunks/{pty-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{pty-89znhe33.js → instruction-discovery-tcezcvh9.js} +4 -4
- package/dist/chunks/{pty-z7br6qex.js → instruction-discovery-tdmmsys1.js} +30 -30
- package/dist/chunks/{pty-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{pty-f8fgzrbf.js → instruction-discovery-terz056s.js} +20 -20
- package/dist/chunks/{pty-8exbzf8y.js → instruction-discovery-tmd7t4g3.js} +15 -15
- package/dist/chunks/{pty-tvtrv512.js → instruction-discovery-tvtrv512.js} +1 -1
- package/dist/chunks/{pty-aemqn3ez.js → instruction-discovery-vamaa9zs.js} +11 -11
- package/dist/chunks/{pty-p1cpmwyf.js → instruction-discovery-vc32h82s.js} +22 -22
- package/dist/chunks/{pty-rt43k5p5.js → instruction-discovery-vc6yd4eg.js} +32 -32
- package/dist/chunks/{pty-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{pty-570bm5aw.js → instruction-discovery-vfykb72z.js} +21 -21
- package/dist/chunks/{pty-2shksz5k.js → instruction-discovery-vgajfqke.js} +15 -15
- package/dist/chunks/{pty-rzz4s24w.js → instruction-discovery-vgn79txg.js} +20 -20
- package/dist/chunks/{pty-vj81g6vn.js → instruction-discovery-vj81g6vn.js} +1 -1
- package/dist/chunks/{pty-hs74x4gh.js → instruction-discovery-vqj9jm8c.js} +4 -4
- package/dist/chunks/{pty-abcdk8h0.js → instruction-discovery-vvwd60y4.js} +43 -43
- package/dist/chunks/{pty-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{pty-bqa7vndz.js → instruction-discovery-w0ymwcrh.js} +27 -27
- package/dist/chunks/{pty-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{pty-02xe747d.js → instruction-discovery-wbx60fzd.js} +8 -8
- package/dist/chunks/{pty-192rtf0k.js → instruction-discovery-wc2t8fx2.js} +31 -31
- package/dist/chunks/{pty-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{pty-njs4fkas.js → instruction-discovery-wgg9hn2t.js} +15 -15
- package/dist/chunks/{pty-tms1td0z.js → instruction-discovery-wr9vyhw1.js} +51 -51
- package/dist/chunks/{pty-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{pty-e4y0dkgq.js → instruction-discovery-x647g243.js} +17 -17
- package/dist/chunks/{pty-026axa4a.js → instruction-discovery-xekc3gqk.js} +24 -24
- package/dist/chunks/{pty-drwq78ky.js → instruction-discovery-xfkkasph.js} +4 -4
- package/dist/chunks/{pty-7b6h5z22.js → instruction-discovery-xp7ms4x7.js} +23 -23
- package/dist/chunks/{pty-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{pty-xvnj5msj.js → instruction-discovery-y5588qvg.js} +3 -3
- package/dist/chunks/{pty-dpkg50ah.js → instruction-discovery-y71avatq.js} +4 -4
- package/dist/chunks/{pty-53gk70sf.js → instruction-discovery-ya8gxsn0.js} +9 -9
- package/dist/chunks/{pty-jbtd89qx.js → instruction-discovery-yazjenkk.js} +13 -13
- package/dist/chunks/{pty-9pr215e3.js → instruction-discovery-yhwbjxcp.js} +21 -21
- package/dist/chunks/{pty-j1fnkb2v.js → instruction-discovery-yntgqbj8.js} +33 -33
- package/dist/chunks/{pty-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{pty-yrznvahk.js → instruction-discovery-yrznvahk.js} +2 -2
- package/dist/chunks/{pty-h61ncxx5.js → instruction-discovery-z08gb817.js} +10 -10
- package/dist/chunks/{pty-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{pty-rp6xkheg.js → instruction-discovery-z429czhs.js} +10 -10
- package/dist/chunks/{pty-z63w68vq.js → instruction-discovery-z63w68vq.js} +2 -2
- package/dist/chunks/{pty-1m68c3fq.js → instruction-discovery-zat6j6wm.js} +11 -11
- package/dist/chunks/{pty-zeh9ct20.js → instruction-discovery-zeh9ct20.js} +2 -2
- package/dist/chunks/{pty-mfcw5yns.js → instruction-discovery-zh8g02qs.js} +5 -5
- package/dist/chunks/{pty-41tykhqn.js → instruction-discovery-zhs5mbww.js} +8 -8
- package/dist/chunks/{pty-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{pty-jt4eq04m.js → instruction-discovery-zs220xh7.js} +38 -38
- package/dist/chunks/{pty-bbd5t3cy.js → instruction-discovery-zwnr1j62.js} +32 -32
- package/dist/chunks/{pty-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +141 -141
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +92 -92
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +105 -105
- package/dist/form.js +85 -85
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +88 -88
- package/dist/generate.js +102 -102
- 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 +98 -98
- 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 +360 -360
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +357 -357
- package/dist/location.js +88 -88
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +95 -95
- package/dist/model.js +101 -101
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +77 -77
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +83 -83
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/compaction.js +130 -130
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +93 -93
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +98 -98
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -220
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +92 -92
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +124 -124
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +117 -117
- package/dist/tool/plugin/grep.js +121 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +117 -117
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +95 -95
- 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 +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/pty-45th5jwr.js +0 -18
- package/dist/chunks/pty-4wwmgmwd.js +0 -26
- package/dist/chunks/pty-d8sk975s.js +0 -65
- package/dist/chunks/pty-pf0d5y53.js +0 -252
- package/dist/chunks/pty-qtvmxc8s.js +0 -4
- package/dist/chunks/pty-wwpq4dkc.js +0 -503
- /package/dist/chunks/{pty-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{pty-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{pty-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{pty-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{pty-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{pty-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{pty-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{pty-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{pty-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{pty-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{pty-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{pty-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{pty-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{pty-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{pty-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{pty-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{pty-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{pty-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{pty-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{pty-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{pty-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{pty-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{pty-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{pty-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{pty-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{pty-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{pty-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{pty-922hggd3.js → instruction-discovery-922hggd3.js} +0 -0
- /package/dist/chunks/{pty-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{pty-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{pty-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{pty-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{pty-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{pty-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{pty-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{pty-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{pty-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{pty-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{pty-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{pty-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{pty-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{pty-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{pty-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{pty-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{pty-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{pty-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{pty-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{pty-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{pty-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{pty-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{pty-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{pty-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{pty-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{pty-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{pty-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{pty-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{pty-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{pty-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{pty-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{pty-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{pty-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{pty-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{pty-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{pty-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{pty-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{pty-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{pty-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{pty-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{pty-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{pty-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{pty-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{pty-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{pty-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{pty-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{pty-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{pty-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{pty-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{pty-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{pty-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{pty-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{pty-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{pty-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{pty-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{pty-twg0f83k.js → instruction-discovery-twg0f83k.js} +0 -0
- /package/dist/chunks/{pty-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{pty-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{pty-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{pty-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{pty-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{pty-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{pty-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{pty-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{pty-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{pty-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{pty-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{pty-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
toSessionError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-sp1y3784.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/retry.ts
|
|
12
12
|
var exports_retry = {};
|
|
13
13
|
__export(exports_retry, {
|
|
14
14
|
SessionRunnerRetry: () => exports_retry,
|
|
15
15
|
isRetryable: () => isRetryable2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make10,
|
|
17
17
|
policy: () => policy2,
|
|
18
18
|
transient: () => transient2
|
|
19
19
|
});
|
|
@@ -99,7 +99,7 @@ var transient2 = (decide, input) => (effect) => Effect.retry(effect, {
|
|
|
99
99
|
return true;
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
|
-
var
|
|
102
|
+
var make10 = (bus, sessionID) => Effect.gen(function* () {
|
|
103
103
|
const decide = yield* policy2(sessionID);
|
|
104
104
|
const wait = (input) => Effect.gen(function* () {
|
|
105
105
|
const scheduled = yield* Clock.currentTimeMillis;
|
|
@@ -116,4 +116,4 @@ var make8 = (bus, sessionID) => Effect.gen(function* () {
|
|
|
116
116
|
return { decide, wait };
|
|
117
117
|
});
|
|
118
118
|
|
|
119
|
-
export { isRetryable2, policy2, transient2,
|
|
119
|
+
export { isRetryable2, policy2, transient2, make10, exports_retry };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID16,
|
|
3
|
+
Service80,
|
|
4
|
+
node84
|
|
5
|
+
} from "./instruction-discovery-wc2t8fx2.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID9,
|
|
8
8
|
isAISDK2,
|
|
9
9
|
packageName2,
|
|
10
10
|
loadPackage2,
|
|
@@ -12,23 +12,23 @@ import {
|
|
|
12
12
|
modelSettings2,
|
|
13
13
|
mergeOverlay2,
|
|
14
14
|
mergeHeaders2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service70,
|
|
16
|
+
node74
|
|
17
|
+
} from "./instruction-discovery-nkcf2gs9.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service64,
|
|
20
|
+
node67
|
|
21
|
+
} from "./instruction-discovery-5sp2y267.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID7,
|
|
24
24
|
VariantID2,
|
|
25
25
|
Ref2,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
26
|
+
Service61,
|
|
27
|
+
node64
|
|
28
|
+
} from "./instruction-discovery-zwnr1j62.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/model-resolver.ts
|
|
34
34
|
var exports_model_resolver = {};
|
|
@@ -37,7 +37,7 @@ __export(exports_model_resolver, {
|
|
|
37
37
|
ModelConfigurationError: () => ModelConfigurationError3,
|
|
38
38
|
ModelInitializationError: () => ModelInitializationError3,
|
|
39
39
|
ModelResolver: () => exports_model_resolver,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service60,
|
|
41
41
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError3,
|
|
42
42
|
UnsupportedCompactionError: () => UnsupportedCompactionError3,
|
|
43
43
|
UnsupportedPackageError: () => UnsupportedPackageError3,
|
|
@@ -45,7 +45,7 @@ __export(exports_model_resolver, {
|
|
|
45
45
|
fromCatalogModel: () => fromCatalogModel2,
|
|
46
46
|
hasPackage: () => hasPackage2,
|
|
47
47
|
layer: () => layer23,
|
|
48
|
-
node: () =>
|
|
48
|
+
node: () => node63,
|
|
49
49
|
resolveModel: () => resolveModel2,
|
|
50
50
|
withVariant: () => withVariant2
|
|
51
51
|
});
|
|
@@ -55,8 +55,8 @@ import { Auth } from "@opencode/ai/route";
|
|
|
55
55
|
import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
56
56
|
import { Npm } from "@opencode/util/npm";
|
|
57
57
|
class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
58
|
-
providerID:
|
|
59
|
-
modelID:
|
|
58
|
+
providerID: ID9,
|
|
59
|
+
modelID: ID7,
|
|
60
60
|
variant: VariantID2
|
|
61
61
|
}) {
|
|
62
62
|
get message() {
|
|
@@ -65,8 +65,8 @@ class VariantUnavailableError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
68
|
-
providerID:
|
|
69
|
-
modelID:
|
|
68
|
+
providerID: ID9,
|
|
69
|
+
modelID: ID7,
|
|
70
70
|
package: Schema.String
|
|
71
71
|
}) {
|
|
72
72
|
get message() {
|
|
@@ -76,8 +76,8 @@ class UnsupportedPackageError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
76
76
|
var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
77
77
|
|
|
78
78
|
class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
79
|
-
providerID:
|
|
80
|
-
modelID:
|
|
79
|
+
providerID: ID9,
|
|
80
|
+
modelID: ID7,
|
|
81
81
|
package: Schema.String,
|
|
82
82
|
detail: Schema.String
|
|
83
83
|
}) {
|
|
@@ -87,8 +87,8 @@ class ModelConfigurationError3 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
90
|
-
providerID:
|
|
91
|
-
modelID:
|
|
90
|
+
providerID: ID9,
|
|
91
|
+
modelID: ID7,
|
|
92
92
|
package: Schema.String,
|
|
93
93
|
phase: InitializationPhase2,
|
|
94
94
|
detail: Schema.String
|
|
@@ -99,8 +99,8 @@ class ModelInitializationError3 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
102
|
-
providerID:
|
|
103
|
-
modelID:
|
|
102
|
+
providerID: ID9,
|
|
103
|
+
modelID: ID7,
|
|
104
104
|
variables: Schema.Array(Schema.String)
|
|
105
105
|
}) {
|
|
106
106
|
get message() {
|
|
@@ -109,8 +109,8 @@ class UnresolvedProviderVariablesError3 extends Schema.TaggedError()("SessionRun
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
112
|
-
providerID:
|
|
113
|
-
modelID:
|
|
112
|
+
providerID: ID9,
|
|
113
|
+
modelID: ID7,
|
|
114
114
|
route: Schema.String
|
|
115
115
|
}) {
|
|
116
116
|
get message() {
|
|
@@ -118,7 +118,7 @@ class UnsupportedCompactionError3 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class Service60 extends Context.Service()("@opencode/ModelResolver") {
|
|
122
122
|
}
|
|
123
123
|
var withVariant2 = (model, variantID) => {
|
|
124
124
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -258,15 +258,15 @@ var causeMessage = (cause) => {
|
|
|
258
258
|
};
|
|
259
259
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
260
260
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
261
|
-
var layer23 = Layer.effect(
|
|
262
|
-
const providers = yield*
|
|
263
|
-
const models = yield*
|
|
264
|
-
const integrations = yield*
|
|
261
|
+
var layer23 = Layer.effect(Service60, Effect.gen(function* () {
|
|
262
|
+
const providers = yield* Service70;
|
|
263
|
+
const models = yield* Service61;
|
|
264
|
+
const integrations = yield* Service80;
|
|
265
265
|
const npm = yield* Npm.Service;
|
|
266
|
-
const aisdk = yield*
|
|
266
|
+
const aisdk = yield* Service64;
|
|
267
267
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
268
268
|
const provider = yield* providers.get(selected.providerID);
|
|
269
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
269
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID16.make(selected.providerID));
|
|
270
270
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
271
271
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
272
272
|
const runtimeInfo = {
|
|
@@ -292,7 +292,7 @@ var layer23 = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
292
292
|
transport: provider?.settings?.transport
|
|
293
293
|
};
|
|
294
294
|
});
|
|
295
|
-
return
|
|
295
|
+
return Service60.of({
|
|
296
296
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
297
297
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
|
|
298
298
|
if (!selected)
|
|
@@ -309,10 +309,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
309
309
|
const name = packageName2(packageName);
|
|
310
310
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
311
311
|
}
|
|
312
|
-
var
|
|
313
|
-
service:
|
|
312
|
+
var node63 = makeLocationNode({
|
|
313
|
+
service: Service60,
|
|
314
314
|
layer: layer23,
|
|
315
|
-
deps: [
|
|
315
|
+
deps: [node74, node64, node84, Npm.node, node67]
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3,
|
|
318
|
+
export { VariantUnavailableError3, UnsupportedPackageError3, InitializationPhase2, ModelConfigurationError3, ModelInitializationError3, UnresolvedProviderVariablesError3, UnsupportedCompactionError3, Service60, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer23, node63, exports_model_resolver };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-tada9jhx.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
Event21,
|
|
7
|
+
Service82,
|
|
8
|
+
node86
|
|
9
|
+
} from "./instruction-discovery-q9dc04tf.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service52,
|
|
12
|
+
node56
|
|
13
|
+
} from "./instruction-discovery-fqzyqcjh.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./instruction-discovery-922hggd3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service77,
|
|
19
|
+
node81
|
|
20
|
+
} from "./instruction-discovery-3f0yr7fv.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./instruction-discovery-yrznvahk.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./instruction-discovery-py17fkfh.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
28
|
+
names4,
|
|
29
29
|
discover3
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./instruction-discovery-bm1prq2q.js";
|
|
31
31
|
import {
|
|
32
32
|
plan2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./instruction-discovery-j56e64zr.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
35
|
+
Service53,
|
|
36
|
+
Event12,
|
|
37
|
+
node57
|
|
38
|
+
} from "./instruction-discovery-2kxk86ay.js";
|
|
39
39
|
import {
|
|
40
40
|
__export
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
42
42
|
|
|
43
43
|
// src/config.ts
|
|
44
44
|
var exports_config = {};
|
|
45
45
|
__export(exports_config, {
|
|
46
46
|
Config: () => exports_config,
|
|
47
|
-
Options: () =>
|
|
48
|
-
Service: () =>
|
|
47
|
+
Options: () => Options7,
|
|
48
|
+
Service: () => Service51,
|
|
49
49
|
Test: () => Test2,
|
|
50
|
-
configured: () =>
|
|
50
|
+
configured: () => configured8,
|
|
51
51
|
latest: () => latest2,
|
|
52
|
-
layer: () =>
|
|
53
|
-
node: () =>
|
|
52
|
+
layer: () => layer19,
|
|
53
|
+
node: () => node55,
|
|
54
54
|
testLayer: () => testLayer2
|
|
55
55
|
});
|
|
56
56
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -64,14 +64,14 @@ import { Global } from "@opencode/util/global";
|
|
|
64
64
|
function latest2(entries, key) {
|
|
65
65
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
66
66
|
}
|
|
67
|
-
var
|
|
67
|
+
var Options7 = Schema.Struct({
|
|
68
68
|
project: Schema.optional(Schema.Boolean),
|
|
69
69
|
global: Schema.optional(Schema.Boolean),
|
|
70
70
|
file: Schema.optional(Schema.String),
|
|
71
71
|
content: Schema.optional(Schema.String)
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service51 extends Context.Service()("@opencode/Config") {
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -89,16 +89,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
89
89
|
setEntries: (next) => Ref.set(entries, next),
|
|
90
90
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
91
91
|
});
|
|
92
|
-
return Context.empty().pipe(Context.add(
|
|
92
|
+
return Context.empty().pipe(Context.add(Service51, service), Context.add(Test2, service));
|
|
93
93
|
}));
|
|
94
|
-
var
|
|
94
|
+
var layer19 = (options) => Layer.effect(Service51, Effect.gen(function* () {
|
|
95
95
|
const fs = yield* FSUtil.Service;
|
|
96
|
-
const location = yield*
|
|
97
|
-
const watcher = yield*
|
|
96
|
+
const location = yield* Service77;
|
|
97
|
+
const watcher = yield* Service52;
|
|
98
98
|
const bus = yield* Service83;
|
|
99
|
-
const credentials = yield*
|
|
99
|
+
const credentials = yield* Service82;
|
|
100
100
|
const globalService = yield* Global.Service;
|
|
101
|
-
const wellknown = yield*
|
|
101
|
+
const wellknown = yield* Service53;
|
|
102
102
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
103
103
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
104
104
|
const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
|
|
@@ -167,7 +167,7 @@ var layer13 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
167
167
|
});
|
|
168
168
|
const loadDirectory = Effect.fnUntraced(function* (directory) {
|
|
169
169
|
return [
|
|
170
|
-
...yield* Effect.forEach(
|
|
170
|
+
...yield* Effect.forEach(names4, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
|
|
171
171
|
new Directory({ type: "directory", path: directory })
|
|
172
172
|
];
|
|
173
173
|
});
|
|
@@ -221,8 +221,8 @@ var layer13 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
221
221
|
}, (effect) => reloadLock.withPermit(effect));
|
|
222
222
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
223
223
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
224
|
-
yield* bus.subscribe(
|
|
225
|
-
yield* bus.subscribe(
|
|
224
|
+
yield* bus.subscribe(Event21.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
225
|
+
yield* bus.subscribe(Event12.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
226
226
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
227
227
|
if (!wellknown.snapshot().length)
|
|
228
228
|
return Effect.void;
|
|
@@ -235,7 +235,7 @@ var layer13 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
235
235
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
236
236
|
const update = Effect.fn("Config.update")(function* (patch) {
|
|
237
237
|
const directory = initial.global ?? AbsolutePath2.make(globalService.config);
|
|
238
|
-
const candidates =
|
|
238
|
+
const candidates = names4.map((name) => path.join(directory, name));
|
|
239
239
|
const filepath = (yield* Effect.filter(candidates, fs.isFile)).at(-1) ?? path.join(directory, "opencode.jsonc");
|
|
240
240
|
const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
|
|
241
241
|
`;
|
|
@@ -250,7 +250,7 @@ var layer13 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
250
250
|
`);
|
|
251
251
|
yield* requestReload;
|
|
252
252
|
}, (effect) => updateLock.withPermit(effect));
|
|
253
|
-
return
|
|
253
|
+
return Service51.of({
|
|
254
254
|
entries: Effect.fnUntraced(function* () {
|
|
255
255
|
return configs;
|
|
256
256
|
}),
|
|
@@ -262,13 +262,13 @@ var layer13 = (options) => Layer.effect(Service30, Effect.gen(function* () {
|
|
|
262
262
|
update
|
|
263
263
|
});
|
|
264
264
|
}));
|
|
265
|
-
function
|
|
265
|
+
function configured8(options) {
|
|
266
266
|
return makeLocationNode({
|
|
267
|
-
service:
|
|
268
|
-
layer:
|
|
269
|
-
deps: [
|
|
267
|
+
service: Service51,
|
|
268
|
+
layer: layer19(options),
|
|
269
|
+
deps: [node56, node87, FSUtil.node, Global.node, node81, node86, node57]
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
-
var
|
|
272
|
+
var node55 = configured8();
|
|
273
273
|
|
|
274
|
-
export { latest2,
|
|
274
|
+
export { latest2, Options7, Service51, Test2, testLayer2, layer19, configured8, node55, exports_config };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
convertToOpenAICompatibleChatMessages2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-fxgpk5d8.js";
|
|
4
4
|
import {
|
|
5
5
|
getResponseMetadata2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-g4wezp1m.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAICompatibleFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-x61499pn.js";
|
|
10
10
|
import {
|
|
11
11
|
openaiCompatibleProviderOptions2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-af5trqkr.js";
|
|
13
13
|
import {
|
|
14
14
|
defaultOpenAICompatibleErrorStructure2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-afrmfg78.js";
|
|
16
16
|
import {
|
|
17
17
|
prepareTools2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-x0ckcb58.js";
|
|
19
19
|
|
|
20
20
|
// src/github-copilot/chat/openai-compatible-chat-language-model.ts
|
|
21
21
|
import {
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service77
|
|
6
|
+
} from "./instruction-discovery-3f0yr7fv.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service51
|
|
9
|
+
} from "./instruction-discovery-h3egcphf.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service27
|
|
12
|
+
} from "./instruction-discovery-yhwbjxcp.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-qsdy395h.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-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: () => Plugin41
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
var
|
|
30
|
+
var Plugin41 = 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* Service51;
|
|
34
|
+
const location = yield* Service77;
|
|
35
35
|
const global = yield* Global.Service;
|
|
36
|
-
const worktrees = yield*
|
|
36
|
+
const worktrees = yield* Service27;
|
|
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 Plugin45 = define({
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Plugin41, exports_worktree };
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-s8d7rejh.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-a1bz86dw.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instruction-state.ts
|
|
21
21
|
var exports_instruction_state = {};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-473ftn0x.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-f828m53h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
AddInput: () => AddInput2,
|
|
16
|
-
ID: () =>
|
|
16
|
+
ID: () => ID11,
|
|
17
17
|
Info: () => Info26,
|
|
18
18
|
ListInput: () => ListInput5,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service74,
|
|
21
|
+
node: () => node78
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { Project } from "@opencode/schema/project";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
28
|
+
var ID11 = PermissionSaved.ID;
|
|
29
29
|
var Info26 = PermissionSaved.Info;
|
|
30
30
|
var ListInput5 = Schema.Struct({
|
|
31
31
|
projectID: Project.ID.pipe(Schema.optional)
|
|
@@ -36,9 +36,9 @@ var AddInput2 = Schema.Struct({
|
|
|
36
36
|
resources: Schema.Array(Schema.String)
|
|
37
37
|
}).annotate({ identifier: "PermissionSaved.AddInput" });
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service74 extends Context.Service()("@opencode/PermissionSaved") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
42
42
|
const db = (yield* Service84).db;
|
|
43
43
|
const list = Effect.fnUntraced(function* (input) {
|
|
44
44
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
57
57
|
if (!input.resources.length)
|
|
58
58
|
return;
|
|
59
59
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
60
|
-
id:
|
|
60
|
+
id: ID11.create(),
|
|
61
61
|
project_id: input.projectID,
|
|
62
62
|
action: input.action,
|
|
63
63
|
resource
|
|
@@ -66,8 +66,8 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
66
66
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
67
67
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service74.of({ list, add, remove });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
71
|
+
var node78 = makeGlobalNode({ service: Service74, layer, deps: [node88] });
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { ID11, Info26, ListInput5, AddInput2, Service74, node78, exports_saved };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service51
|
|
4
|
+
} from "./instruction-discovery-h3egcphf.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service46
|
|
7
|
+
} from "./instruction-discovery-vc32h82s.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/shell.ts
|
|
16
16
|
var exports_shell2 = {};
|
|
17
17
|
__export(exports_shell2, {
|
|
18
18
|
ConfigShellPlugin: () => exports_shell2,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin31
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin31 = define({
|
|
24
24
|
id: "opencode.config.shell",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const shell = yield*
|
|
26
|
+
const config = yield* Service51;
|
|
27
|
+
const shell = yield* Service46;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, shell.reload());
|
|
29
29
|
yield* shell.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "shell");
|
|
@@ -34,4 +34,4 @@ var Plugin33 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin31, exports_shell2 };
|