@opencode/core 0.0.0-dev-20625 → 0.0.0-dev-20627
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{workspace-0k0tdk4v.js → model-resolver-0achvhs2.js} +14 -14
- package/dist/chunks/{workspace-24738xn5.js → model-resolver-0e548fcr.js} +11 -11
- package/dist/chunks/{workspace-q0xm7vwc.js → model-resolver-0j77ygfz.js} +6 -6
- package/dist/chunks/{workspace-0paq2nw3.js → model-resolver-0paq2nw3.js} +1 -1
- package/dist/chunks/{workspace-kzykqk6j.js → model-resolver-0qfxg4jf.js} +16 -16
- package/dist/chunks/{workspace-0vbcp93d.js → model-resolver-0vbcp93d.js} +2 -2
- package/dist/chunks/{workspace-g6cj2pz3.js → model-resolver-0vv5hmpp.js} +3 -3
- package/dist/chunks/{workspace-bq7qaacb.js → model-resolver-0yjz6y37.js} +33 -33
- package/dist/chunks/{workspace-t1fjxj08.js → model-resolver-10dw056s.js} +13 -13
- package/dist/chunks/{workspace-08t9thee.js → model-resolver-19g7txy3.js} +5 -5
- package/dist/chunks/{workspace-r8xr0va3.js → model-resolver-1acjjqhc.js} +4 -4
- package/dist/chunks/{workspace-2kapx5s0.js → model-resolver-1cap5v9d.js} +18 -18
- package/dist/chunks/{workspace-1dazxqgg.js → model-resolver-1dazxqgg.js} +2 -2
- package/dist/chunks/{workspace-vjthrvv1.js → model-resolver-1jx1zfd7.js} +9 -9
- package/dist/chunks/{workspace-t3039at6.js → model-resolver-1macjqn3.js} +24 -24
- package/dist/chunks/{workspace-6ygyve09.js → model-resolver-1n5ak9y9.js} +21 -21
- package/dist/chunks/{workspace-easapccs.js → model-resolver-1z18ck0n.js} +9 -9
- package/dist/chunks/{workspace-nvdeaskg.js → model-resolver-21j0a31s.js} +24 -24
- package/dist/chunks/{workspace-nfj32nd6.js → model-resolver-25x2259c.js} +9 -9
- package/dist/chunks/{workspace-2a5m3afh.js → model-resolver-2a5m3afh.js} +1 -1
- package/dist/chunks/{workspace-4ts7tf6z.js → model-resolver-2ccvkpx1.js} +2 -2
- package/dist/chunks/{workspace-bvvmdrd3.js → model-resolver-2d6yk1br.js} +17 -17
- package/dist/chunks/{workspace-49494kth.js → model-resolver-2ke6m4px.js} +18 -18
- package/dist/chunks/{workspace-s76r9yk2.js → model-resolver-2m190rpy.js} +12 -12
- package/dist/chunks/{workspace-r3p59fwg.js → model-resolver-2q40b9s7.js} +4 -4
- package/dist/chunks/{workspace-qj3j2ed4.js → model-resolver-2r1mkbh7.js} +26 -26
- package/dist/chunks/{workspace-7e820gef.js → model-resolver-2rxac3h6.js} +32 -32
- package/dist/chunks/{workspace-hd75z5fa.js → model-resolver-2wst3kmw.js} +12 -12
- package/dist/chunks/{workspace-fte4edzz.js → model-resolver-2zczfx75.js} +7 -7
- package/dist/chunks/{workspace-3wfp78gc.js → model-resolver-33vwh78z.js} +6 -6
- package/dist/chunks/{workspace-v9t2f4tw.js → model-resolver-33zp7k1z.js} +24 -24
- package/dist/chunks/{workspace-3cegwx68.js → model-resolver-3cegwx68.js} +2 -2
- package/dist/chunks/{workspace-kn0kwb9r.js → model-resolver-3dn2etmh.js} +24 -24
- package/dist/chunks/{workspace-3fc6dm20.js → model-resolver-3fc6dm20.js} +1 -1
- package/dist/chunks/{workspace-3hepkmqq.js → model-resolver-3hepkmqq.js} +1 -1
- package/dist/chunks/{workspace-86mjrc9q.js → model-resolver-3k84j3p7.js} +60 -60
- package/dist/chunks/{workspace-57nggxpn.js → model-resolver-3kcgjwbq.js} +37 -37
- package/dist/chunks/{workspace-h4ckqw4f.js → model-resolver-3rd28rcz.js} +11 -11
- package/dist/chunks/{workspace-3smtnn6g.js → model-resolver-3smtnn6g.js} +1 -1
- package/dist/chunks/{workspace-hqf62ytx.js → model-resolver-3t341cpn.js} +3 -3
- package/dist/chunks/{workspace-3tvqynh2.js → model-resolver-3tvqynh2.js} +1 -1
- package/dist/chunks/{workspace-ap1jses2.js → model-resolver-3v39vgvt.js} +23 -23
- package/dist/chunks/{workspace-s6rbynpa.js → model-resolver-3zfbdzwf.js} +5 -5
- package/dist/chunks/{workspace-3zsf4n22.js → model-resolver-3zsf4n22.js} +1 -1
- package/dist/chunks/{workspace-m6f5ap24.js → model-resolver-40jdsgbk.js} +15 -15
- package/dist/chunks/{workspace-3d5pf0rw.js → model-resolver-41zh4vt3.js} +11 -11
- package/dist/chunks/{workspace-ty9zft9p.js → model-resolver-4nza2pr1.js} +17 -17
- package/dist/chunks/{workspace-atytsmf1.js → model-resolver-4rt0ga34.js} +9 -9
- package/dist/chunks/{workspace-6n6n0wbe.js → model-resolver-4v9q68f5.js} +22 -22
- package/dist/chunks/{workspace-hfr420wr.js → model-resolver-4zkna7ps.js} +26 -26
- package/dist/chunks/{workspace-se3n8wcd.js → model-resolver-50fxpqbw.js} +20 -20
- package/dist/chunks/{workspace-07w59vex.js → model-resolver-51f5btjf.js} +6 -6
- package/dist/chunks/{workspace-4jcpse7m.js → model-resolver-51ssmyqe.js} +18 -18
- package/dist/chunks/{workspace-54ma36ye.js → model-resolver-54ma36ye.js} +1 -1
- package/dist/chunks/{workspace-caf87exy.js → model-resolver-55hkn5jk.js} +27 -27
- package/dist/chunks/{workspace-5daktx2q.js → model-resolver-5daktx2q.js} +1 -1
- package/dist/chunks/{workspace-3sj8yt8v.js → model-resolver-5dkn69vz.js} +4 -4
- package/dist/chunks/{workspace-vaxgn10g.js → model-resolver-5fkw2g45.js} +28 -28
- package/dist/chunks/{workspace-kpv8xpp3.js → model-resolver-5g7r9pjq.js} +23 -23
- package/dist/chunks/{workspace-8fkq3ra9.js → model-resolver-5gep5epd.js} +16 -16
- package/dist/chunks/{workspace-2g06r5p1.js → model-resolver-5krfhzfs.js} +15 -15
- package/dist/chunks/{workspace-5m9w47nd.js → model-resolver-5m9w47nd.js} +1 -1
- package/dist/chunks/{workspace-mbnxefga.js → model-resolver-5pyjqqve.js} +2 -2
- package/dist/chunks/{workspace-v2fwckm2.js → model-resolver-5rrq939p.js} +13 -13
- package/dist/chunks/{workspace-9jq6257y.js → model-resolver-5sc2jtah.js} +25 -25
- package/dist/chunks/{workspace-5t3nmthw.js → model-resolver-5t3nmthw.js} +2 -2
- package/dist/chunks/{workspace-6b43n2qe.js → model-resolver-6avxmd9t.js} +16 -16
- package/dist/chunks/{workspace-4bf12bpw.js → model-resolver-6jayb3ka.js} +5 -5
- package/dist/chunks/{workspace-a8bn8zg0.js → model-resolver-6m42r3np.js} +21 -21
- package/dist/chunks/{workspace-5ct8ze0w.js → model-resolver-6mjz4eke.js} +14 -14
- package/dist/chunks/{workspace-msr7hntd.js → model-resolver-6s9jgcw2.js} +4 -4
- package/dist/chunks/{workspace-1fhw6qp6.js → model-resolver-6swqs4pd.js} +29 -29
- package/dist/chunks/{workspace-gr68n6sk.js → model-resolver-6w7dcbvg.js} +14 -14
- package/dist/chunks/{workspace-6xb47vfp.js → model-resolver-6xb47vfp.js} +1 -1
- package/dist/chunks/{workspace-9rebvyz3.js → model-resolver-6y0r2svr.js} +1 -1
- package/dist/chunks/{workspace-6kkym95p.js → model-resolver-73f7s9bv.js} +161 -161
- package/dist/chunks/{workspace-ckn890ey.js → model-resolver-7622hyrr.js} +26 -26
- package/dist/chunks/{workspace-3qny4s1r.js → model-resolver-78j8p2e7.js} +13 -13
- package/dist/chunks/model-resolver-7b7qypaz.js +26 -0
- package/dist/chunks/{workspace-7bmhse3q.js → model-resolver-7bmhse3q.js} +1 -1
- package/dist/chunks/{workspace-7naznwf1.js → model-resolver-7d6sbd9q.js} +3 -3
- package/dist/chunks/{workspace-bgnv3g07.js → model-resolver-7e5k1pv9.js} +13 -13
- package/dist/chunks/{workspace-smq3dd2v.js → model-resolver-7fqhmbkd.js} +33 -33
- package/dist/chunks/{workspace-cqqer672.js → model-resolver-7m50mqw6.js} +13 -13
- package/dist/chunks/{workspace-qvb3nf84.js → model-resolver-7rwqf82v.js} +8 -8
- package/dist/chunks/{workspace-aw1g0m68.js → model-resolver-7zc8scxq.js} +3 -3
- package/dist/chunks/{workspace-84h8c373.js → model-resolver-84h8c373.js} +2 -2
- package/dist/chunks/{workspace-84txncab.js → model-resolver-84txncab.js} +1 -1
- package/dist/chunks/{workspace-kprvgbka.js → model-resolver-8a2qp1g6.js} +3 -3
- package/dist/chunks/model-resolver-8b9njvyr.js +253 -0
- package/dist/chunks/{workspace-8d7r5vzw.js → model-resolver-8d7r5vzw.js} +1 -1
- package/dist/chunks/{workspace-pbp90nbc.js → model-resolver-8k1jb5xq.js} +27 -27
- package/dist/chunks/{workspace-8t5jjh5c.js → model-resolver-90hpmr2t.js} +9 -9
- package/dist/chunks/{workspace-jdzksevj.js → model-resolver-9917pxwy.js} +9 -9
- package/dist/chunks/{workspace-2d4jh34x.js → model-resolver-9h49evx0.js} +11 -11
- package/dist/chunks/model-resolver-9sh4wc5j.js +18 -0
- package/dist/chunks/{workspace-8p3g3wy0.js → model-resolver-9z9g3t20.js} +11 -11
- package/dist/chunks/{workspace-mvfsc1pv.js → model-resolver-a1gpj94z.js} +3 -3
- package/dist/chunks/{workspace-t2fc4mz5.js → model-resolver-a2ew8a62.js} +4 -4
- package/dist/chunks/{workspace-y2tx55zg.js → model-resolver-a8kdrp5r.js} +5 -5
- package/dist/chunks/{workspace-aaet6srn.js → model-resolver-aaet6srn.js} +2 -2
- package/dist/chunks/{workspace-x661k3y3.js → model-resolver-addxnjmp.js} +4 -4
- package/dist/chunks/{workspace-8z7vm853.js → model-resolver-afttsgwn.js} +5 -5
- package/dist/chunks/{workspace-y2bx8ks4.js → model-resolver-agng1s7m.js} +20 -20
- package/dist/chunks/{workspace-b3vk0wha.js → model-resolver-ajf1swqb.js} +3 -3
- package/dist/chunks/{workspace-f7gr38pv.js → model-resolver-akd9m88t.js} +5 -5
- package/dist/chunks/{workspace-ejgp49jg.js → model-resolver-ap8vh77s.js} +24 -24
- package/dist/chunks/{workspace-rvf0m9x6.js → model-resolver-at1kfnmk.js} +8 -8
- package/dist/chunks/{workspace-kaq877jq.js → model-resolver-aza1t4dm.js} +11 -11
- package/dist/chunks/{workspace-4ctbs581.js → model-resolver-azjxx5b8.js} +15 -15
- package/dist/chunks/{workspace-b6gygkdw.js → model-resolver-b6gygkdw.js} +2 -2
- package/dist/chunks/{workspace-cvgbrmvq.js → model-resolver-bcnp41r8.js} +33 -33
- package/dist/chunks/{workspace-a3zzg5mb.js → model-resolver-bdadzv4m.js} +27 -27
- package/dist/chunks/{workspace-k30vhdc4.js → model-resolver-bjgk06jq.js} +12 -12
- package/dist/chunks/{workspace-0gh43fvp.js → model-resolver-bzh1f83h.js} +25 -25
- package/dist/chunks/{workspace-30ak4e5k.js → model-resolver-c30g4xpt.js} +11 -11
- package/dist/chunks/{workspace-rrn10n85.js → model-resolver-c74x8r32.js} +8 -8
- package/dist/chunks/{workspace-hr5bc81f.js → model-resolver-ch4t865s.js} +8 -8
- package/dist/chunks/{workspace-xa1y625z.js → model-resolver-cmcef70t.js} +20 -20
- package/dist/chunks/{workspace-bjz294g4.js → model-resolver-crw5xmpr.js} +18 -18
- package/dist/chunks/{workspace-yvmkmgn5.js → model-resolver-d9bwshhj.js} +23 -23
- package/dist/chunks/{workspace-b61vcdbg.js → model-resolver-d9dg5wfk.js} +9 -9
- package/dist/chunks/{workspace-g79x7y0t.js → model-resolver-ddhg64z2.js} +11 -11
- package/dist/chunks/{workspace-z0cec5bd.js → model-resolver-deeca9hw.js} +14 -14
- package/dist/chunks/{workspace-37gg4rjc.js → model-resolver-dhks9x6r.js} +8 -8
- package/dist/chunks/{workspace-cwa6csj7.js → model-resolver-djszqvmq.js} +9 -9
- package/dist/chunks/{workspace-e3gcztwa.js → model-resolver-dpqp9b63.js} +30 -30
- package/dist/chunks/{workspace-nex76z7d.js → model-resolver-drj28cm1.js} +6 -6
- package/dist/chunks/{workspace-e107jb5k.js → model-resolver-dvh6e8nq.js} +2 -2
- package/dist/chunks/{workspace-5qd3pb7m.js → model-resolver-e3qxr5gk.js} +2 -2
- package/dist/chunks/{workspace-ef5x83kb.js → model-resolver-ef5x83kb.js} +1 -1
- package/dist/chunks/{workspace-2jygvae8.js → model-resolver-efgr2h9s.js} +11 -11
- package/dist/chunks/{workspace-rksdhb0n.js → model-resolver-ekxvnan8.js} +18 -18
- package/dist/chunks/{workspace-etq0c3wd.js → model-resolver-etq0c3wd.js} +1 -1
- package/dist/chunks/{workspace-dwnnjgz6.js → model-resolver-ewgnpxzc.js} +43 -43
- package/dist/chunks/{workspace-f6626pn0.js → model-resolver-ey1p32kd.js} +14 -14
- package/dist/chunks/{workspace-qagmmt9n.js → model-resolver-f20mjja6.js} +33 -33
- package/dist/chunks/{workspace-vbrdpthe.js → model-resolver-f6h44vt5.js} +6 -6
- package/dist/chunks/{workspace-f75zav2x.js → model-resolver-f75zav2x.js} +2 -2
- package/dist/chunks/{workspace-g38n4cbf.js → model-resolver-fbensa43.js} +11 -11
- package/dist/chunks/{workspace-0jwsre1p.js → model-resolver-fcrkznn8.js} +5 -5
- package/dist/chunks/{workspace-1acz6075.js → model-resolver-fgprmwhj.js} +13 -13
- package/dist/chunks/{workspace-hns92ys1.js → model-resolver-fy0vatp7.js} +10 -10
- package/dist/chunks/{workspace-tqrjxmaf.js → model-resolver-g7nd96nr.js} +8 -8
- package/dist/chunks/{workspace-gd4qta3r.js → model-resolver-gd4qta3r.js} +1 -1
- package/dist/chunks/{workspace-w8jg2tm8.js → model-resolver-gg1f5j1z.js} +38 -38
- package/dist/chunks/{workspace-efbajcyc.js → model-resolver-gjkc16r8.js} +34 -34
- package/dist/chunks/{workspace-mhnyy3p3.js → model-resolver-gkcjs2dn.js} +11 -11
- package/dist/chunks/{workspace-qhjkx6qf.js → model-resolver-gkezm8y4.js} +21 -21
- package/dist/chunks/{workspace-0zm4vsbv.js → model-resolver-gnwrz8d7.js} +17 -17
- package/dist/chunks/{workspace-tdx4y9zn.js → model-resolver-gszfa6pv.js} +11 -11
- package/dist/chunks/{workspace-k2vb740h.js → model-resolver-gw7teh6q.js} +9 -9
- package/dist/chunks/{workspace-5xvy2j9s.js → model-resolver-gxx3asgj.js} +13 -13
- package/dist/chunks/{workspace-cscmnd2v.js → model-resolver-gxzkmbg1.js} +8 -8
- package/dist/chunks/{workspace-k569he40.js → model-resolver-h2kvjvwj.js} +7 -7
- package/dist/chunks/{workspace-vgfxpara.js → model-resolver-h42756k7.js} +82 -82
- package/dist/chunks/{workspace-077cgkzg.js → model-resolver-h4psw8ba.js} +25 -25
- package/dist/chunks/{workspace-n2thn3nx.js → model-resolver-h5w29vws.js} +1 -1
- package/dist/chunks/{workspace-h6vf3j39.js → model-resolver-h6vf3j39.js} +1 -1
- package/dist/chunks/{workspace-86km67cx.js → model-resolver-h8jjkhz6.js} +9 -9
- package/dist/chunks/{workspace-2eaaba8k.js → model-resolver-he91xpgg.js} +29 -29
- package/dist/chunks/{workspace-rfmnp9jb.js → model-resolver-hhr7ssgm.js} +4 -4
- package/dist/chunks/{workspace-q1v6wmhm.js → model-resolver-hqjmh7f4.js} +10 -10
- package/dist/chunks/{workspace-heymn33v.js → model-resolver-hv0tq5xf.js} +10 -10
- package/dist/chunks/{workspace-bj5ap212.js → model-resolver-hxh7ac88.js} +46 -46
- package/dist/chunks/{workspace-p1f7zze4.js → model-resolver-j0dhs27h.js} +17 -17
- package/dist/chunks/{workspace-2cabk1b6.js → model-resolver-j1gz9man.js} +2 -2
- package/dist/chunks/{workspace-j56e64zr.js → model-resolver-j56e64zr.js} +1 -1
- package/dist/chunks/{workspace-kt4j6m51.js → model-resolver-jgvx6mxw.js} +3 -3
- package/dist/chunks/{workspace-g762atc6.js → model-resolver-jvvc3tfq.js} +9 -9
- package/dist/chunks/{workspace-kb9j3d72.js → model-resolver-kb9j3d72.js} +3 -3
- package/dist/chunks/{workspace-mq716n2q.js → model-resolver-kemx01z9.js} +19 -19
- package/dist/chunks/{workspace-z28g1vpv.js → model-resolver-kr7egayj.js} +31 -31
- package/dist/chunks/{workspace-xh51jhwy.js → model-resolver-kt9b9xbd.js} +26 -26
- package/dist/chunks/{workspace-desgj5fn.js → model-resolver-kw9jfdn1.js} +26 -26
- package/dist/chunks/{workspace-e2h0q4a9.js → model-resolver-kxdn0yjd.js} +8 -8
- package/dist/chunks/{workspace-6qpyh92k.js → model-resolver-m119g2w7.js} +17 -17
- package/dist/chunks/{workspace-bt43sfkk.js → model-resolver-m1k46kn2.js} +18 -18
- package/dist/chunks/{workspace-m3fdjcah.js → model-resolver-m3fdjcah.js} +1 -1
- package/dist/chunks/{workspace-vrpz8t5t.js → model-resolver-m64xvjj1.js} +5 -5
- package/dist/chunks/{workspace-m9w0rfyh.js → model-resolver-m9w0rfyh.js} +1 -1
- package/dist/chunks/{workspace-9vprb1nh.js → model-resolver-mb4aw6zt.js} +12 -12
- package/dist/chunks/model-resolver-mcn7m7vx.js +507 -0
- package/dist/chunks/{workspace-56gdpj1q.js → model-resolver-mfqp6xfm.js} +6 -6
- package/dist/chunks/{workspace-mh5wyt4r.js → model-resolver-mnwggq08.js} +19 -19
- package/dist/chunks/{workspace-xcjenepd.js → model-resolver-mtqs55ae.js} +37 -37
- package/dist/chunks/{workspace-x2bhny64.js → model-resolver-mwyjgb1k.js} +7 -7
- package/dist/chunks/{workspace-p2wa0wpq.js → model-resolver-n3k0nq1g.js} +29 -29
- package/dist/chunks/{workspace-bx0gyb4h.js → model-resolver-n8vdnqrc.js} +5 -5
- package/dist/chunks/{workspace-hp2fw5k6.js → model-resolver-nhnh187w.js} +12 -12
- package/dist/chunks/{workspace-kgzx153c.js → model-resolver-nmbcsk2x.js} +3 -3
- package/dist/chunks/{workspace-0cnpbvek.js → model-resolver-ntg9ycez.js} +15 -15
- package/dist/chunks/{workspace-nqsd8asp.js → model-resolver-nve815hd.js} +46 -46
- package/dist/chunks/{workspace-nxm207yx.js → model-resolver-nxm207yx.js} +1 -1
- package/dist/chunks/{workspace-axs6pdy0.js → model-resolver-nyqx1cb3.js} +5 -5
- package/dist/chunks/{workspace-5xtgfte3.js → model-resolver-pa8pe2x7.js} +8 -8
- package/dist/chunks/{workspace-d2ffjrg3.js → model-resolver-pdyt6ga5.js} +7 -7
- package/dist/chunks/{workspace-bx4w3v62.js → model-resolver-pg8nqq7p.js} +42 -42
- package/dist/chunks/{workspace-rd8yy9nb.js → model-resolver-phqqhagd.js} +80 -80
- package/dist/chunks/{workspace-56hrvcw3.js → model-resolver-pj1jpnd1.js} +48 -48
- package/dist/chunks/{workspace-pjvnvgmy.js → model-resolver-pjvnvgmy.js} +1 -1
- package/dist/chunks/{workspace-pknna89w.js → model-resolver-pknna89w.js} +1 -1
- package/dist/chunks/{workspace-94yy4jsn.js → model-resolver-pypjajay.js} +4 -4
- package/dist/chunks/{workspace-h2txwa5e.js → model-resolver-q0hq5tmn.js} +9 -9
- package/dist/chunks/{workspace-emx6shzs.js → model-resolver-q3r2nqqw.js} +24 -24
- package/dist/chunks/{workspace-x07w92bc.js → model-resolver-q4zf8z8q.js} +6 -6
- package/dist/chunks/{workspace-qnc92qwc.js → model-resolver-qnc92qwc.js} +1 -1
- package/dist/chunks/{workspace-qx4ps3zc.js → model-resolver-qpvdx65r.js} +20 -20
- package/dist/chunks/{workspace-6j68t7ds.js → model-resolver-qs20wfnt.js} +1 -1
- package/dist/chunks/{workspace-qsdy395h.js → model-resolver-qsdy395h.js} +1 -1
- package/dist/chunks/{workspace-hgnewnvf.js → model-resolver-qtnjcq6r.js} +3 -3
- package/dist/chunks/{workspace-jvddzxac.js → model-resolver-qw4rebp2.js} +14 -14
- package/dist/chunks/{workspace-cg7s6gpq.js → model-resolver-qwbxvttr.js} +30 -30
- package/dist/chunks/{workspace-xyafkbt0.js → model-resolver-qxjc9qry.js} +3 -3
- package/dist/chunks/{workspace-r01t9b5y.js → model-resolver-r5mbew3j.js} +6 -6
- package/dist/chunks/{workspace-sgcq822w.js → model-resolver-r6xsx0m5.js} +5 -5
- package/dist/chunks/{workspace-1e10y0rh.js → model-resolver-rasec19h.js} +11 -11
- package/dist/chunks/{workspace-bv2qvk3v.js → model-resolver-rbbkm0xv.js} +48 -48
- package/dist/chunks/{workspace-7w38sh68.js → model-resolver-rcppyyty.js} +23 -23
- package/dist/chunks/{workspace-rdw6cm16.js → model-resolver-rdw6cm16.js} +1 -1
- package/dist/chunks/{workspace-5t0mhk5g.js → model-resolver-rk0tqkaw.js} +3 -3
- package/dist/chunks/{workspace-0dygnakk.js → model-resolver-rx9ava5n.js} +4 -4
- package/dist/chunks/{workspace-aaqcndx2.js → model-resolver-rymvvhbz.js} +39 -39
- package/dist/chunks/{workspace-rhjbct0v.js → model-resolver-s8d7rejh.js} +4 -4
- package/dist/chunks/{workspace-8a6ws7jr.js → model-resolver-srq8z0b0.js} +9 -9
- package/dist/chunks/{workspace-wqzz8241.js → model-resolver-srtfr38y.js} +8 -8
- package/dist/chunks/{workspace-tazgh4e4.js → model-resolver-tazgh4e4.js} +1 -1
- package/dist/chunks/{workspace-tcezcvh9.js → model-resolver-tcezcvh9.js} +1 -1
- package/dist/chunks/{workspace-tdstcens.js → model-resolver-tdstcens.js} +1 -1
- package/dist/chunks/{workspace-bacyadyn.js → model-resolver-tfzngn12.js} +4 -4
- package/dist/chunks/{workspace-bf3ep3zf.js → model-resolver-tm9w2n2x.js} +14 -14
- package/dist/chunks/{workspace-1v8896a1.js → model-resolver-tnmecr3d.js} +11 -11
- package/dist/chunks/{workspace-jktqzjpa.js → model-resolver-ts23464c.js} +6 -6
- package/dist/chunks/{workspace-04792bgd.js → model-resolver-tsg6z73m.js} +11 -11
- package/dist/chunks/{workspace-vhvtqta5.js → model-resolver-tw918z4j.js} +6 -6
- package/dist/chunks/{workspace-v0es1rhs.js → model-resolver-v0es1rhs.js} +2 -2
- package/dist/chunks/{workspace-8gm8r8mn.js → model-resolver-vemxbn5z.js} +5 -5
- package/dist/chunks/{workspace-veqvce7d.js → model-resolver-veqvce7d.js} +1 -1
- package/dist/chunks/{workspace-x3gqap9d.js → model-resolver-vfjhn2wd.js} +4 -4
- package/dist/chunks/{workspace-pghsmdqn.js → model-resolver-vqfzmc84.js} +4 -4
- package/dist/chunks/{workspace-km0c42ps.js → model-resolver-vtctyt73.js} +11 -11
- package/dist/chunks/{workspace-sb1pzkvh.js → model-resolver-vv1mfds1.js} +16 -16
- package/dist/chunks/{workspace-c1ka28h1.js → model-resolver-vvpj8dts.js} +5 -5
- package/dist/chunks/{workspace-rrt0a0ha.js → model-resolver-vx3jgdek.js} +3 -3
- package/dist/chunks/{workspace-k3sn4jay.js → model-resolver-vxzh5eqq.js} +4 -4
- package/dist/chunks/{workspace-vzs5sf6e.js → model-resolver-vzs5sf6e.js} +1 -1
- package/dist/chunks/{workspace-w19d8598.js → model-resolver-w19d8598.js} +1 -1
- package/dist/chunks/{workspace-w39jehkq.js → model-resolver-w2h15q85.js} +5 -5
- package/dist/chunks/{workspace-w3wsvvr9.js → model-resolver-w3wsvvr9.js} +1 -1
- package/dist/chunks/{workspace-7504msxf.js → model-resolver-wbn4j0pn.js} +25 -25
- package/dist/chunks/{workspace-wd87259q.js → model-resolver-wd87259q.js} +1 -1
- package/dist/chunks/{workspace-71tv947p.js → model-resolver-wgdeym6z.js} +15 -15
- package/dist/chunks/{workspace-16m64twp.js → model-resolver-wkveh0mg.js} +16 -16
- package/dist/chunks/{workspace-1d4zkfab.js → model-resolver-wtsvmxn1.js} +40 -40
- package/dist/chunks/{workspace-35vpxd0z.js → model-resolver-wy2za45w.js} +7 -7
- package/dist/chunks/{workspace-sfvft427.js → model-resolver-x2pzw901.js} +11 -11
- package/dist/chunks/{workspace-ywd8qmyg.js → model-resolver-x442ch9z.js} +1 -1
- package/dist/chunks/{workspace-xkntkrq7.js → model-resolver-xkntkrq7.js} +2 -2
- package/dist/chunks/{workspace-gamkna2f.js → model-resolver-xm3p4qah.js} +32 -32
- package/dist/chunks/{workspace-58twkbn2.js → model-resolver-xpqek6s2.js} +11 -11
- package/dist/chunks/{workspace-zrbek4sy.js → model-resolver-xv5xhpkb.js} +4 -4
- package/dist/chunks/{workspace-5gjk7y31.js → model-resolver-y0nv8875.js} +4 -4
- package/dist/chunks/{workspace-y1fvbwt7.js → model-resolver-y1fvbwt7.js} +1 -1
- package/dist/chunks/{workspace-tdj9jt6q.js → model-resolver-y47v6e3z.js} +22 -22
- package/dist/chunks/{workspace-t13mbkgb.js → model-resolver-y5fgx7d2.js} +21 -21
- package/dist/chunks/{workspace-74f6ffmn.js → model-resolver-y9dv21ph.js} +50 -50
- package/dist/chunks/{workspace-k471ddga.js → model-resolver-yn0v1xc3.js} +43 -43
- package/dist/chunks/{workspace-ewx9y0me.js → model-resolver-ynt8fh2a.js} +7 -7
- package/dist/chunks/{workspace-qc4y4x1d.js → model-resolver-ysm5qf9e.js} +29 -29
- package/dist/chunks/{workspace-z0bkrqjs.js → model-resolver-z0bkrqjs.js} +1 -1
- package/dist/chunks/{workspace-pqnryrb4.js → model-resolver-z23z10f3.js} +9 -9
- package/dist/chunks/{workspace-h275bwc7.js → model-resolver-z5rd9rww.js} +8 -8
- package/dist/chunks/{workspace-grtn0enx.js → model-resolver-z9ad0njv.js} +4 -4
- package/dist/chunks/{workspace-r9htttdr.js → model-resolver-zby7g0g2.js} +13 -13
- package/dist/chunks/{workspace-ckf8nxjz.js → model-resolver-zcrspsvn.js} +4 -4
- package/dist/chunks/{workspace-zr2ceqn5.js → model-resolver-zr2ceqn5.js} +1 -1
- package/dist/chunks/{workspace-zxq2ej10.js → model-resolver-zxq2ej10.js} +1 -1
- package/dist/chunks/{workspace-zyk1yjk8.js → model-resolver-zyk1yjk8.js} +2 -2
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +113 -113
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +77 -77
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +92 -92
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +218 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +354 -354
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +130 -130
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +115 -115
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +114 -114
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +341 -341
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +213 -213
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +222 -222
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +207 -207
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- 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 +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- 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 +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/workspace-2qxg5hny.js +0 -253
- package/dist/chunks/workspace-619r8v3y.js +0 -18
- package/dist/chunks/workspace-ca6v8khj.js +0 -507
- package/dist/chunks/workspace-j49cp3s0.js +0 -26
- /package/dist/chunks/{workspace-0qkdqm5v.js → model-resolver-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{workspace-0zkw76rk.js → model-resolver-0zkw76rk.js} +0 -0
- /package/dist/chunks/{workspace-17cy0kzp.js → model-resolver-17cy0kzp.js} +0 -0
- /package/dist/chunks/{workspace-1cnp2v09.js → model-resolver-1cnp2v09.js} +0 -0
- /package/dist/chunks/{workspace-1kg9ymc8.js → model-resolver-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{workspace-24dcb14g.js → model-resolver-24dcb14g.js} +0 -0
- /package/dist/chunks/{workspace-2710q6r3.js → model-resolver-2710q6r3.js} +0 -0
- /package/dist/chunks/{workspace-2axfhc9x.js → model-resolver-2axfhc9x.js} +0 -0
- /package/dist/chunks/{workspace-2c3vjs8z.js → model-resolver-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{workspace-34c7v6d4.js → model-resolver-34c7v6d4.js} +0 -0
- /package/dist/chunks/{workspace-359p4xyc.js → model-resolver-359p4xyc.js} +0 -0
- /package/dist/chunks/{workspace-3asan66x.js → model-resolver-3asan66x.js} +0 -0
- /package/dist/chunks/{workspace-3t0ybcrp.js → model-resolver-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{workspace-3v8g72cx.js → model-resolver-3v8g72cx.js} +0 -0
- /package/dist/chunks/{workspace-3w5fmr99.js → model-resolver-3w5fmr99.js} +0 -0
- /package/dist/chunks/{workspace-3wcehsnq.js → model-resolver-3wcehsnq.js} +0 -0
- /package/dist/chunks/{workspace-43n2bw4t.js → model-resolver-43n2bw4t.js} +0 -0
- /package/dist/chunks/{workspace-4knz6hnm.js → model-resolver-4knz6hnm.js} +0 -0
- /package/dist/chunks/{workspace-4vcrnpx2.js → model-resolver-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{workspace-4y7fprxs.js → model-resolver-4y7fprxs.js} +0 -0
- /package/dist/chunks/{workspace-53557ph1.js → model-resolver-53557ph1.js} +0 -0
- /package/dist/chunks/{workspace-550bvhaj.js → model-resolver-550bvhaj.js} +0 -0
- /package/dist/chunks/{workspace-6prwharc.js → model-resolver-6prwharc.js} +0 -0
- /package/dist/chunks/{workspace-6q2bdcd1.js → model-resolver-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{workspace-7akdwqpd.js → model-resolver-7akdwqpd.js} +0 -0
- /package/dist/chunks/{workspace-7m9af43g.js → model-resolver-7m9af43g.js} +0 -0
- /package/dist/chunks/{workspace-822emrt2.js → model-resolver-822emrt2.js} +0 -0
- /package/dist/chunks/{workspace-88xbtdfr.js → model-resolver-88xbtdfr.js} +0 -0
- /package/dist/chunks/{workspace-8n3pysct.js → model-resolver-8n3pysct.js} +0 -0
- /package/dist/chunks/{workspace-8wj87zfr.js → model-resolver-8wj87zfr.js} +0 -0
- /package/dist/chunks/{workspace-9a4afbnw.js → model-resolver-9a4afbnw.js} +0 -0
- /package/dist/chunks/{workspace-9rqn6x4v.js → model-resolver-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{workspace-a6k6eb26.js → model-resolver-a6k6eb26.js} +0 -0
- /package/dist/chunks/{workspace-af5trqkr.js → model-resolver-af5trqkr.js} +0 -0
- /package/dist/chunks/{workspace-afrmfg78.js → model-resolver-afrmfg78.js} +0 -0
- /package/dist/chunks/{workspace-aqzs7mqg.js → model-resolver-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{workspace-atq7p7m5.js → model-resolver-atq7p7m5.js} +0 -0
- /package/dist/chunks/{workspace-bkyjaxrp.js → model-resolver-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{workspace-bmr6ed5q.js → model-resolver-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{workspace-cf4snx6d.js → model-resolver-cf4snx6d.js} +0 -0
- /package/dist/chunks/{workspace-cvy3z8tj.js → model-resolver-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{workspace-d9fn303g.js → model-resolver-d9fn303g.js} +0 -0
- /package/dist/chunks/{workspace-d9jj8t3e.js → model-resolver-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{workspace-dajrwvna.js → model-resolver-dajrwvna.js} +0 -0
- /package/dist/chunks/{workspace-dap0rakb.js → model-resolver-dap0rakb.js} +0 -0
- /package/dist/chunks/{workspace-df08tz66.js → model-resolver-df08tz66.js} +0 -0
- /package/dist/chunks/{workspace-dy18nga0.js → model-resolver-dy18nga0.js} +0 -0
- /package/dist/chunks/{workspace-e5kj55wp.js → model-resolver-e5kj55wp.js} +0 -0
- /package/dist/chunks/{workspace-e73j6tqm.js → model-resolver-e73j6tqm.js} +0 -0
- /package/dist/chunks/{workspace-ec1grn59.js → model-resolver-ec1grn59.js} +0 -0
- /package/dist/chunks/{workspace-eh3zwz77.js → model-resolver-eh3zwz77.js} +0 -0
- /package/dist/chunks/{workspace-emrn6kk6.js → model-resolver-emrn6kk6.js} +0 -0
- /package/dist/chunks/{workspace-f0mxakyp.js → model-resolver-f0mxakyp.js} +0 -0
- /package/dist/chunks/{workspace-f6n9ztr4.js → model-resolver-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{workspace-faypxj3z.js → model-resolver-faypxj3z.js} +0 -0
- /package/dist/chunks/{workspace-fd410y7t.js → model-resolver-fd410y7t.js} +0 -0
- /package/dist/chunks/{workspace-fxgpk5d8.js → model-resolver-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{workspace-g4wezp1m.js → model-resolver-g4wezp1m.js} +0 -0
- /package/dist/chunks/{workspace-g86h250q.js → model-resolver-g86h250q.js} +0 -0
- /package/dist/chunks/{workspace-gebd4c9n.js → model-resolver-gebd4c9n.js} +0 -0
- /package/dist/chunks/{workspace-gftt206x.js → model-resolver-gftt206x.js} +0 -0
- /package/dist/chunks/{workspace-hk9envan.js → model-resolver-hk9envan.js} +0 -0
- /package/dist/chunks/{workspace-j2ntwpah.js → model-resolver-j2ntwpah.js} +0 -0
- /package/dist/chunks/{workspace-j5zkgpj8.js → model-resolver-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{workspace-jjkms2e6.js → model-resolver-jjkms2e6.js} +0 -0
- /package/dist/chunks/{workspace-jr7sbwjy.js → model-resolver-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{workspace-jwfs4k6c.js → model-resolver-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{workspace-jzg6c2d5.js → model-resolver-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{workspace-mp448xyj.js → model-resolver-mp448xyj.js} +0 -0
- /package/dist/chunks/{workspace-msx8hqn2.js → model-resolver-msx8hqn2.js} +0 -0
- /package/dist/chunks/{workspace-n05xt0ee.js → model-resolver-n05xt0ee.js} +0 -0
- /package/dist/chunks/{workspace-n3j8tn72.js → model-resolver-n3j8tn72.js} +0 -0
- /package/dist/chunks/{workspace-njntx4h6.js → model-resolver-njntx4h6.js} +0 -0
- /package/dist/chunks/{workspace-q3sfg36h.js → model-resolver-q3sfg36h.js} +0 -0
- /package/dist/chunks/{workspace-q74kybfr.js → model-resolver-q74kybfr.js} +0 -0
- /package/dist/chunks/{workspace-qaymkmh1.js → model-resolver-qaymkmh1.js} +0 -0
- /package/dist/chunks/{workspace-qb87gjwd.js → model-resolver-qb87gjwd.js} +0 -0
- /package/dist/chunks/{workspace-qfa1cgps.js → model-resolver-qfa1cgps.js} +0 -0
- /package/dist/chunks/{workspace-qg3g05ea.js → model-resolver-qg3g05ea.js} +0 -0
- /package/dist/chunks/{workspace-qrg20bc0.js → model-resolver-qrg20bc0.js} +0 -0
- /package/dist/chunks/{workspace-rcb2kzg1.js → model-resolver-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{workspace-sdp7kfr6.js → model-resolver-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{workspace-ssg3fenm.js → model-resolver-ssg3fenm.js} +0 -0
- /package/dist/chunks/{workspace-w803qqfp.js → model-resolver-w803qqfp.js} +0 -0
- /package/dist/chunks/{workspace-wc3fc9cn.js → model-resolver-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{workspace-wer8tq1h.js → model-resolver-wer8tq1h.js} +0 -0
- /package/dist/chunks/{workspace-wtztk69x.js → model-resolver-wtztk69x.js} +0 -0
- /package/dist/chunks/{workspace-x0ckcb58.js → model-resolver-x0ckcb58.js} +0 -0
- /package/dist/chunks/{workspace-x61499pn.js → model-resolver-x61499pn.js} +0 -0
- /package/dist/chunks/{workspace-y44na4kk.js → model-resolver-y44na4kk.js} +0 -0
- /package/dist/chunks/{workspace-y8cydn3q.js → model-resolver-y8cydn3q.js} +0 -0
- /package/dist/chunks/{workspace-y8f7s663.js → model-resolver-y8f7s663.js} +0 -0
- /package/dist/chunks/{workspace-ygaqb7jw.js → model-resolver-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{workspace-ym463w8f.js → model-resolver-ym463w8f.js} +0 -0
- /package/dist/chunks/{workspace-z5v4ffb3.js → model-resolver-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{workspace-z9919s4g.js → model-resolver-z9919s4g.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
timeouts2,
|
|
6
6
|
mergeOverlay2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./model-resolver-55hkn5jk.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/aisdk.ts
|
|
13
13
|
var exports_aisdk = {};
|
|
14
14
|
__export(exports_aisdk, {
|
|
15
15
|
AISDK: () => exports_aisdk,
|
|
16
16
|
InitError: () => InitError2,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service58,
|
|
18
18
|
locationLayer: () => locationLayer2,
|
|
19
|
-
node: () =>
|
|
19
|
+
node: () => node61
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -151,7 +151,7 @@ function throughMiddleware(store, send, input, init) {
|
|
|
151
151
|
var HEADER_TIMEOUT_MESSAGE = "Response headers timed out";
|
|
152
152
|
|
|
153
153
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
154
|
-
providerID:
|
|
154
|
+
providerID: ID13,
|
|
155
155
|
cause: Schema.Defect()
|
|
156
156
|
}) {
|
|
157
157
|
}
|
|
@@ -159,9 +159,9 @@ function initError(providerID) {
|
|
|
159
159
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
class
|
|
162
|
+
class Service58 extends Context.Service()("@opencode/AISDK") {
|
|
163
163
|
}
|
|
164
|
-
var locationLayer2 = Layer.effect(
|
|
164
|
+
var locationLayer2 = Layer.effect(Service58, Effect.gen(function* () {
|
|
165
165
|
let sdkHooks = [];
|
|
166
166
|
let languageHooks = [];
|
|
167
167
|
const languages = new Map;
|
|
@@ -199,7 +199,7 @@ var locationLayer2 = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
return event;
|
|
201
201
|
});
|
|
202
|
-
const service =
|
|
202
|
+
const service = Service58.of({
|
|
203
203
|
hook: {
|
|
204
204
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
205
205
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -874,6 +874,6 @@ function providerErrorMessage(error) {
|
|
|
874
874
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
875
875
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
876
876
|
}
|
|
877
|
-
var
|
|
877
|
+
var node61 = makeLocationNode({ service: Service58, layer: locationLayer2, deps: [] });
|
|
878
878
|
|
|
879
|
-
export { InitError2,
|
|
879
|
+
export { InitError2, Service58, locationLayer2, node61, exports_aisdk };
|
|
@@ -1,147 +1,147 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_20260127222353_familiar_lady_ursula_default
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-jzg6c2d5.js";
|
|
4
4
|
import {
|
|
5
5
|
_20260211171708_add_project_commands_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-q3sfg36h.js";
|
|
7
7
|
import {
|
|
8
8
|
_20260213144116_wakeful_the_professor_default
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-1cnp2v09.js";
|
|
10
10
|
import {
|
|
11
11
|
_20260225215848_workspace_default
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./model-resolver-rcb2kzg1.js";
|
|
13
13
|
import {
|
|
14
14
|
_20260227213759_add_session_workspace_id_default
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./model-resolver-msx8hqn2.js";
|
|
16
16
|
import {
|
|
17
17
|
_20260228203230_blue_harpoon_default
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-resolver-bkyjaxrp.js";
|
|
19
19
|
import {
|
|
20
20
|
_20260303231226_add_workspace_fields_default
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./model-resolver-g86h250q.js";
|
|
22
22
|
import {
|
|
23
23
|
_20260309230000_move_org_to_state_default
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./model-resolver-jr7sbwjy.js";
|
|
25
25
|
import {
|
|
26
26
|
_20260312043431_session_message_cursor_default
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./model-resolver-7m9af43g.js";
|
|
28
28
|
import {
|
|
29
29
|
_20260323234822_events_default
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./model-resolver-j2ntwpah.js";
|
|
31
31
|
import {
|
|
32
32
|
_20260410174513_workspace_name_default
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./model-resolver-njntx4h6.js";
|
|
34
34
|
import {
|
|
35
35
|
_20260413175956_chief_energizer_default
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./model-resolver-qrg20bc0.js";
|
|
37
37
|
import {
|
|
38
38
|
_20260423070820_add_icon_url_override_default
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./model-resolver-z9919s4g.js";
|
|
40
40
|
import {
|
|
41
41
|
_20260427172553_slow_nightmare_default
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./model-resolver-43n2bw4t.js";
|
|
43
43
|
import {
|
|
44
44
|
_20260428004200_add_session_path_default
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./model-resolver-n3j8tn72.js";
|
|
46
46
|
import {
|
|
47
47
|
_20260501142318_next_venus_default
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./model-resolver-d9jj8t3e.js";
|
|
49
49
|
import {
|
|
50
50
|
_20260504145000_add_sync_owner_default
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./model-resolver-fd410y7t.js";
|
|
52
52
|
import {
|
|
53
53
|
_20260507164347_add_workspace_time_default
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./model-resolver-e5kj55wp.js";
|
|
55
55
|
import {
|
|
56
56
|
_20260510033149_session_usage_default
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./model-resolver-f6n9ztr4.js";
|
|
58
58
|
import {
|
|
59
59
|
_20260511000411_data_migration_state_default
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./model-resolver-q74kybfr.js";
|
|
61
61
|
import {
|
|
62
62
|
_20260511173437_session_metadata_default
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./model-resolver-53557ph1.js";
|
|
64
64
|
import {
|
|
65
65
|
_20260601010001_normalize_storage_paths_default
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./model-resolver-7akdwqpd.js";
|
|
67
67
|
import {
|
|
68
68
|
_20260601202201_amazing_prowler_default
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./model-resolver-wer8tq1h.js";
|
|
70
70
|
import {
|
|
71
71
|
_20260602002951_lowly_union_jack_default
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./model-resolver-wtztk69x.js";
|
|
73
73
|
import {
|
|
74
74
|
_20260602182828_add_project_directories_default
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./model-resolver-ssg3fenm.js";
|
|
76
76
|
import {
|
|
77
77
|
_20260603001617_session_message_projection_indexes_default
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./model-resolver-2c3vjs8z.js";
|
|
79
79
|
import {
|
|
80
80
|
_20260603040000_session_message_projection_order_default
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./model-resolver-17cy0kzp.js";
|
|
82
82
|
import {
|
|
83
83
|
_20260603141458_session_input_inbox_default
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./model-resolver-hk9envan.js";
|
|
85
85
|
import {
|
|
86
86
|
_20260603160727_jittery_ezekiel_stane_default
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./model-resolver-w803qqfp.js";
|
|
88
88
|
import {
|
|
89
89
|
_20260604172448_event_sourced_session_input_default
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./model-resolver-jwfs4k6c.js";
|
|
91
91
|
import {
|
|
92
92
|
_20260605003541_add_session_context_snapshot_default
|
|
93
|
-
} from "./
|
|
93
|
+
} from "./model-resolver-mp448xyj.js";
|
|
94
94
|
import {
|
|
95
95
|
_20260605042240_add_context_epoch_agent_default
|
|
96
|
-
} from "./
|
|
96
|
+
} from "./model-resolver-aqzs7mqg.js";
|
|
97
97
|
import {
|
|
98
98
|
_20260611035744_credential_default
|
|
99
|
-
} from "./
|
|
99
|
+
} from "./model-resolver-ygaqb7jw.js";
|
|
100
100
|
import {
|
|
101
101
|
_20260611192811_lush_chimera_default
|
|
102
|
-
} from "./
|
|
102
|
+
} from "./model-resolver-8n3pysct.js";
|
|
103
103
|
import {
|
|
104
104
|
_20260612174303_project_dir_strategy_default
|
|
105
|
-
} from "./
|
|
105
|
+
} from "./model-resolver-d9fn303g.js";
|
|
106
106
|
import {
|
|
107
107
|
_20260622142730_simplify_session_context_epoch_default
|
|
108
|
-
} from "./
|
|
108
|
+
} from "./model-resolver-cvy3z8tj.js";
|
|
109
109
|
import {
|
|
110
110
|
_20260622170816_reset_v2_session_state_default
|
|
111
|
-
} from "./
|
|
111
|
+
} from "./model-resolver-9a4afbnw.js";
|
|
112
112
|
import {
|
|
113
113
|
_20260622202450_simplify_session_input_default
|
|
114
|
-
} from "./
|
|
114
|
+
} from "./model-resolver-n05xt0ee.js";
|
|
115
115
|
import {
|
|
116
116
|
_20260804233008_loose_psylocke_default
|
|
117
|
-
} from "./
|
|
117
|
+
} from "./model-resolver-sdp7kfr6.js";
|
|
118
118
|
import {
|
|
119
119
|
_20260805200742_import_legacy_credentials_default
|
|
120
|
-
} from "./
|
|
120
|
+
} from "./model-resolver-a6k6eb26.js";
|
|
121
121
|
import {
|
|
122
122
|
_20260808023530_workspace_domain_default
|
|
123
|
-
} from "./
|
|
123
|
+
} from "./model-resolver-4knz6hnm.js";
|
|
124
124
|
import {
|
|
125
125
|
_20260811161259_execution_claim_attempts_default
|
|
126
|
-
} from "./
|
|
126
|
+
} from "./model-resolver-df08tz66.js";
|
|
127
127
|
import {
|
|
128
128
|
_20260812181746_session_inbox_default
|
|
129
|
-
} from "./
|
|
129
|
+
} from "./model-resolver-bmr6ed5q.js";
|
|
130
130
|
import {
|
|
131
131
|
_20260812213948_worktree_default
|
|
132
|
-
} from "./
|
|
132
|
+
} from "./model-resolver-atq7p7m5.js";
|
|
133
133
|
import {
|
|
134
134
|
_20260819222447_session_viewed_state_default
|
|
135
|
-
} from "./
|
|
135
|
+
} from "./model-resolver-qb87gjwd.js";
|
|
136
136
|
import {
|
|
137
137
|
_20260823191254_nullable_workspace_binding_default
|
|
138
|
-
} from "./
|
|
138
|
+
} from "./model-resolver-359p4xyc.js";
|
|
139
139
|
import {
|
|
140
140
|
_20260910120000_clear_v1_session_permission_default
|
|
141
|
-
} from "./
|
|
141
|
+
} from "./model-resolver-y8f7s663.js";
|
|
142
142
|
import {
|
|
143
143
|
_20260923013825_project_time_active_default
|
|
144
|
-
} from "./
|
|
144
|
+
} from "./model-resolver-8wj87zfr.js";
|
|
145
145
|
|
|
146
146
|
// src/database/migration.gen.ts
|
|
147
147
|
var migrations2 = [
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-efgr2h9s.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-hhr7ssgm.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event19
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./model-resolver-bjgk06jq.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./model-resolver-addxnjmp.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-resolver-4zkna7ps.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service24
|
|
21
|
+
} from "./model-resolver-z5rd9rww.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID13,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./model-resolver-55hkn5jk.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./model-resolver-8k1jb5xq.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
ID4,
|
|
32
|
+
Input13,
|
|
33
33
|
Response2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./model-resolver-h4psw8ba.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/opencode.ts
|
|
37
37
|
import { Duration, Effect, Equal, Option, Schema, Scope, Semaphore, Stream } from "effect";
|
|
@@ -47,7 +47,7 @@ var methodID = MethodID2.make("device");
|
|
|
47
47
|
var RemoteResponse = Schema.Struct({
|
|
48
48
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
49
49
|
websearch: Schema.Struct({
|
|
50
|
-
providerID:
|
|
50
|
+
providerID: ID4
|
|
51
51
|
}).pipe(Schema.optional),
|
|
52
52
|
mcp: Schema.Struct({
|
|
53
53
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -99,7 +99,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
99
99
|
}
|
|
100
100
|
function oauth(http) {
|
|
101
101
|
return {
|
|
102
|
-
integrationID:
|
|
102
|
+
integrationID: ID14.make("opencode"),
|
|
103
103
|
method: {
|
|
104
104
|
id: methodID,
|
|
105
105
|
type: "oauth",
|
|
@@ -166,7 +166,7 @@ var OpencodePlugin2 = define({
|
|
|
166
166
|
const bus = yield* Service83;
|
|
167
167
|
const client = yield* HttpClient.HttpClient;
|
|
168
168
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
169
|
-
const managed = yield*
|
|
169
|
+
const managed = yield* Service24;
|
|
170
170
|
const scope = yield* Scope.Scope;
|
|
171
171
|
const loading = Semaphore.makeUnsafe(1);
|
|
172
172
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -215,7 +215,7 @@ var OpencodePlugin2 = define({
|
|
|
215
215
|
providers.update(providerID, (provider) => {
|
|
216
216
|
if (source && source.provider !== provider)
|
|
217
217
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
218
|
-
provider.integrationID =
|
|
218
|
+
provider.integrationID = ID14.make("opencode");
|
|
219
219
|
if (item.canonical !== undefined)
|
|
220
220
|
provider.canonical = item.canonical;
|
|
221
221
|
if (item.name !== undefined)
|
|
@@ -281,7 +281,7 @@ var OpencodePlugin2 = define({
|
|
|
281
281
|
sourceConnection: snapshot.connection
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
const item = providers.get(
|
|
284
|
+
const item = providers.get(ID13.opencode);
|
|
285
285
|
if (!item)
|
|
286
286
|
return;
|
|
287
287
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -293,7 +293,7 @@ var OpencodePlugin2 = define({
|
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
yield* ctx.model.transform((models) => {
|
|
296
|
-
const item = models.provider.get(
|
|
296
|
+
const item = models.provider.get(ID13.opencode);
|
|
297
297
|
if (!item)
|
|
298
298
|
return;
|
|
299
299
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -327,7 +327,7 @@ var OpencodePlugin2 = define({
|
|
|
327
327
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
328
328
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
329
329
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
330
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
330
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
331
331
|
query: input.query,
|
|
332
332
|
providerID: descriptor.providerID
|
|
333
333
|
}));
|
|
@@ -382,10 +382,10 @@ var OpencodePlugin2 = define({
|
|
|
382
382
|
});
|
|
383
383
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
384
384
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
385
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
385
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID13.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
386
386
|
});
|
|
387
387
|
yield* guard(snapshot);
|
|
388
|
-
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID ===
|
|
388
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
389
389
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
|
|
390
390
|
})
|
|
391
391
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-j1gz9man.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/discovery.ts
|
|
12
12
|
var exports_discovery2 = {};
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./model-resolver-s8d7rejh.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./model-resolver-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./model-resolver-kb9j3d72.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./model-resolver-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instruction-state.ts
|
|
21
21
|
var exports_instruction_state = {};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./model-resolver-efgr2h9s.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./model-resolver-hhr7ssgm.js";
|
|
7
7
|
import {
|
|
8
8
|
ID15,
|
|
9
9
|
OAuth3,
|
|
10
10
|
Event19,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service78
|
|
12
|
+
} from "./model-resolver-bjgk06jq.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./model-resolver-addxnjmp.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID14,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./model-resolver-4zkna7ps.js";
|
|
20
20
|
import {
|
|
21
21
|
which2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./model-resolver-qaymkmh1.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
ID13,
|
|
25
|
+
Service76
|
|
26
|
+
} from "./model-resolver-55hkn5jk.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
ID12
|
|
29
|
+
} from "./model-resolver-8k1jb5xq.js";
|
|
30
30
|
import {
|
|
31
31
|
iife2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./model-resolver-1kg9ymc8.js";
|
|
33
33
|
import {
|
|
34
34
|
configuredSettings2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./model-resolver-tw918z4j.js";
|
|
36
36
|
|
|
37
37
|
// src/plugin/provider/azure.ts
|
|
38
38
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -74,11 +74,11 @@ function make8(endpoints = {
|
|
|
74
74
|
return define({
|
|
75
75
|
id: "opencode.provider.azure",
|
|
76
76
|
effect: Effect.fn(function* (ctx) {
|
|
77
|
-
const configured = yield* configuredSettings2(
|
|
77
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
78
78
|
const processes = yield* AppProcess.Service;
|
|
79
79
|
const bus = yield* Service83;
|
|
80
|
-
const credentials = yield*
|
|
81
|
-
const providers = yield*
|
|
80
|
+
const credentials = yield* Service78;
|
|
81
|
+
const providers = yield* Service76;
|
|
82
82
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
83
83
|
const tokens = new Map;
|
|
84
84
|
const resourceIDs = new Map;
|
|
@@ -116,13 +116,13 @@ function make8(endpoints = {
|
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.integration.transform((editor) => {
|
|
118
118
|
editor.method.update({
|
|
119
|
-
integrationID:
|
|
119
|
+
integrationID: ID13.azure,
|
|
120
120
|
method: { type: "key", label: "API key", form: form() }
|
|
121
121
|
});
|
|
122
122
|
if (!available)
|
|
123
123
|
return;
|
|
124
124
|
editor.method.update({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID13.azure,
|
|
126
126
|
method: {
|
|
127
127
|
id: methodID,
|
|
128
128
|
type: "oauth",
|
|
@@ -152,7 +152,7 @@ function make8(endpoints = {
|
|
|
152
152
|
});
|
|
153
153
|
});
|
|
154
154
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
155
|
-
const connection = yield* ctx.integration.connection.active(
|
|
155
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
156
156
|
const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
|
|
157
157
|
return { connection, resource: credentialResource(stored?.value) };
|
|
158
158
|
});
|
|
@@ -192,7 +192,7 @@ function make8(endpoints = {
|
|
|
192
192
|
}));
|
|
193
193
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
194
194
|
const connection = loaded.connection;
|
|
195
|
-
const settings = (yield* providers.get(
|
|
195
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
196
196
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
197
197
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
198
198
|
if (loaded.connection !== connection)
|
|
@@ -214,11 +214,11 @@ function make8(endpoints = {
|
|
|
214
214
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
215
215
|
if (!found)
|
|
216
216
|
return;
|
|
217
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
217
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
218
218
|
return;
|
|
219
219
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
220
220
|
return;
|
|
221
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
221
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
222
222
|
id.toLowerCase(),
|
|
223
223
|
id
|
|
224
224
|
]));
|
|
@@ -231,11 +231,11 @@ function make8(endpoints = {
|
|
|
231
231
|
yield* ctx.model.reload();
|
|
232
232
|
});
|
|
233
233
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
234
|
-
const resourceFor = (provider) => provider.id ===
|
|
234
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
235
235
|
Object.assign(loaded, yield* load());
|
|
236
236
|
yield* ctx.provider.transform((evt) => {
|
|
237
237
|
for (const item of evt.list()) {
|
|
238
|
-
if (item.provider.id !==
|
|
238
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
239
239
|
continue;
|
|
240
240
|
const resourceName = resourceFor(item.provider);
|
|
241
241
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -250,7 +250,7 @@ function make8(endpoints = {
|
|
|
250
250
|
};
|
|
251
251
|
});
|
|
252
252
|
}
|
|
253
|
-
const item = evt.get(
|
|
253
|
+
const item = evt.get(ID13.azure);
|
|
254
254
|
if (!item)
|
|
255
255
|
return;
|
|
256
256
|
evt.add({
|
|
@@ -261,7 +261,7 @@ function make8(endpoints = {
|
|
|
261
261
|
});
|
|
262
262
|
yield* ctx.model.transform((models) => {
|
|
263
263
|
for (const item of models.provider.list()) {
|
|
264
|
-
if (item.provider.id !==
|
|
264
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
265
265
|
continue;
|
|
266
266
|
const resourceName = resourceFor(item.provider);
|
|
267
267
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -273,20 +273,20 @@ function make8(endpoints = {
|
|
|
273
273
|
}
|
|
274
274
|
if (!loaded.deployments)
|
|
275
275
|
return;
|
|
276
|
-
const catalog = models.list(
|
|
276
|
+
const catalog = models.list(ID13.azure);
|
|
277
277
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
278
278
|
for (const model of catalog) {
|
|
279
279
|
if (!deployed.has(model.id))
|
|
280
|
-
models.remove(
|
|
280
|
+
models.remove(ID13.azure, model.id);
|
|
281
281
|
}
|
|
282
282
|
for (const [id, model] of deployed) {
|
|
283
|
-
models.update(
|
|
283
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
284
284
|
}
|
|
285
285
|
});
|
|
286
|
-
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID ===
|
|
286
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
287
287
|
yield* refresh().pipe(Effect.forkScoped);
|
|
288
288
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
289
|
-
const connection = yield* ctx.integration.connection.active(
|
|
289
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
290
290
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
291
291
|
return;
|
|
292
292
|
})) : undefined;
|
|
@@ -298,7 +298,7 @@ function make8(endpoints = {
|
|
|
298
298
|
return `Bearer ${current.access}`;
|
|
299
299
|
});
|
|
300
300
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
301
|
-
if (evt.model.providerID !==
|
|
301
|
+
if (evt.model.providerID !== ID13.azure)
|
|
302
302
|
return;
|
|
303
303
|
const authorization = yield* bearer(evt.request.url);
|
|
304
304
|
if (!authorization)
|
|
@@ -307,9 +307,9 @@ function make8(endpoints = {
|
|
|
307
307
|
evt.request.headers.delete("x-api-key");
|
|
308
308
|
evt.request.headers.set("authorization", authorization);
|
|
309
309
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
310
|
-
}), { providerID:
|
|
310
|
+
}), { providerID: ID13.azure });
|
|
311
311
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
312
|
-
if (evt.model.providerID !==
|
|
312
|
+
if (evt.model.providerID !== ID13.azure)
|
|
313
313
|
return;
|
|
314
314
|
const authorization = yield* bearer(evt.url);
|
|
315
315
|
if (!authorization)
|
|
@@ -318,7 +318,7 @@ function make8(endpoints = {
|
|
|
318
318
|
delete evt.headers["x-api-key"];
|
|
319
319
|
evt.headers.authorization = authorization;
|
|
320
320
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
321
|
-
}), { providerID:
|
|
321
|
+
}), { providerID: ID13.azure });
|
|
322
322
|
})
|
|
323
323
|
});
|
|
324
324
|
}
|
|
@@ -352,11 +352,11 @@ function deployedModels(deployments, catalog) {
|
|
|
352
352
|
const model = catalogModel(models, deployment);
|
|
353
353
|
if (!model)
|
|
354
354
|
return [];
|
|
355
|
-
const id =
|
|
355
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
356
356
|
const info = {
|
|
357
357
|
...structuredClone(model),
|
|
358
358
|
id,
|
|
359
|
-
modelID:
|
|
359
|
+
modelID: ID12.make(deployment.name),
|
|
360
360
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
361
361
|
};
|
|
362
362
|
return [[id, info]];
|