@opencode/core 0.0.0-dev-20825 → 0.0.0-dev-20826
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/skill-03ajtf4e.js +513 -0
- package/dist/chunks/{model-resolver-66c2wr2a.js → skill-054kg9dc.js} +10 -10
- package/dist/chunks/{model-resolver-rk9k7afq.js → skill-07pmza7h.js} +3 -3
- package/dist/chunks/{model-resolver-aw7rh1ww.js → skill-0arqgfa8.js} +28 -28
- package/dist/chunks/{model-resolver-c7cb53f3.js → skill-0dvrkg93.js} +14 -14
- package/dist/chunks/{model-resolver-x2m64zns.js → skill-0e0n583m.js} +21 -21
- package/dist/chunks/{model-resolver-q0xm7vwc.js → skill-0j77ygfz.js} +6 -6
- package/dist/chunks/{model-resolver-0paq2nw3.js → skill-0paq2nw3.js} +1 -1
- package/dist/chunks/{model-resolver-kxvb3car.js → skill-0ps23nn8.js} +18 -18
- package/dist/chunks/{model-resolver-hyay7qq8.js → skill-0r5qpn88.js} +8 -8
- package/dist/chunks/{model-resolver-0vbcp93d.js → skill-0vbcp93d.js} +2 -2
- package/dist/chunks/{model-resolver-cxm67pkc.js → skill-0ysm00nq.js} +5 -5
- package/dist/chunks/{model-resolver-msk51jxa.js → skill-14p185v2.js} +21 -21
- package/dist/chunks/{model-resolver-mt7m3ya6.js → skill-1eyc1ny5.js} +11 -11
- package/dist/chunks/{model-resolver-ds4xae65.js → skill-1j9g6qpp.js} +8 -8
- package/dist/chunks/{model-resolver-q2t1kx4r.js → skill-1npvdhb2.js} +2 -2
- package/dist/chunks/{model-resolver-c9b6c6br.js → skill-1pxbf3bj.js} +46 -46
- package/dist/chunks/{model-resolver-2khnwfma.js → skill-21amjazn.js} +23 -23
- package/dist/chunks/{model-resolver-fptw13bf.js → skill-2251p17f.js} +19 -19
- package/dist/chunks/{model-resolver-1gpb38yh.js → skill-22f357wt.js} +9 -9
- package/dist/chunks/{model-resolver-zkqkkjp9.js → skill-26pzwsv6.js} +26 -26
- package/dist/chunks/{model-resolver-btz0t88h.js → skill-2ayzmxba.js} +24 -24
- package/dist/chunks/{model-resolver-4ts7tf6z.js → skill-2ccvkpx1.js} +2 -2
- package/dist/chunks/{model-resolver-r4yqrmdq.js → skill-2cmv458r.js} +5 -5
- package/dist/chunks/{model-resolver-z525se4v.js → skill-2g5ha180.js} +20 -20
- package/dist/chunks/{model-resolver-kc9gjmg8.js → skill-2hehr5w2.js} +10 -10
- package/dist/chunks/{model-resolver-2vvh33eb.js → skill-2vvh33eb.js} +2 -2
- package/dist/chunks/{model-resolver-8ss8m2w6.js → skill-39kmpgmc.js} +24 -24
- package/dist/chunks/{model-resolver-v7shq5xq.js → skill-3bd8wwbe.js} +24 -24
- package/dist/chunks/{model-resolver-vk084q95.js → skill-3cssazbk.js} +34 -34
- package/dist/chunks/{model-resolver-3fc6dm20.js → skill-3fc6dm20.js} +1 -1
- package/dist/chunks/{model-resolver-vwt8phtz.js → skill-3gz7g27y.js} +13 -13
- package/dist/chunks/{model-resolver-3hepkmqq.js → skill-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-resolver-3hwn7j4h.js → skill-3hwn7j4h.js} +2 -2
- package/dist/chunks/{model-resolver-9mk6smr7.js → skill-3qgttbb0.js} +18 -18
- package/dist/chunks/{model-resolver-am4ys6ej.js → skill-3rmahs5y.js} +11 -11
- package/dist/chunks/{model-resolver-3smtnn6g.js → skill-3smtnn6g.js} +1 -1
- package/dist/chunks/{model-resolver-3tvqynh2.js → skill-3tvqynh2.js} +1 -1
- package/dist/chunks/{model-resolver-qkn9n2ht.js → skill-3xy6x5g1.js} +19 -19
- package/dist/chunks/{model-resolver-3zsf4n22.js → skill-3zsf4n22.js} +1 -1
- package/dist/chunks/{model-resolver-5fn8kb1m.js → skill-402svr2v.js} +36 -36
- package/dist/chunks/{model-resolver-vwvxcq06.js → skill-43gkm62x.js} +5 -5
- package/dist/chunks/{model-resolver-bs6f72ms.js → skill-48mwqm8s.js} +10 -10
- package/dist/chunks/{model-resolver-tnwk7je0.js → skill-4chbmmjy.js} +11 -11
- package/dist/chunks/{model-resolver-rx9sw936.js → skill-4epvxwgg.js} +30 -30
- package/dist/chunks/{model-resolver-e8pe5bs3.js → skill-4gdef2r3.js} +37 -37
- package/dist/chunks/{model-resolver-4zj9c7sr.js → skill-4gned8ya.js} +22 -22
- package/dist/chunks/{model-resolver-gd3ka9py.js → skill-4sxh5q7f.js} +4 -4
- package/dist/chunks/{model-resolver-3e06xrhq.js → skill-4w3w3gnk.js} +27 -27
- package/dist/chunks/{model-resolver-zsr4wwhv.js → skill-4z58m4b4.js} +4 -4
- package/dist/chunks/{model-resolver-1ggxa6t4.js → skill-4z692haj.js} +90 -90
- package/dist/chunks/{model-resolver-f7nkyddb.js → skill-51b9494h.js} +9 -9
- package/dist/chunks/{model-resolver-zp6x4rdv.js → skill-54ck4wf0.js} +11 -11
- package/dist/chunks/{model-resolver-r94pvvab.js → skill-54ma36ye.js} +4 -4
- package/dist/chunks/{model-resolver-rm0y65ew.js → skill-5az9f6e7.js} +5 -5
- package/dist/chunks/{model-resolver-j6sex83x.js → skill-5h6rggsk.js} +4 -4
- package/dist/chunks/{model-resolver-5m9w47nd.js → skill-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-resolver-vq8v8vez.js → skill-5n34a961.js} +4 -4
- package/dist/chunks/{model-resolver-nveymbys.js → skill-5s674n18.js} +3 -3
- package/dist/chunks/{model-resolver-j5cam5cc.js → skill-67st221m.js} +87 -87
- package/dist/chunks/{model-resolver-7qy5krn4.js → skill-6fjww8gn.js} +48 -48
- package/dist/chunks/{model-resolver-1zsq2bqn.js → skill-6ktj5znq.js} +11 -11
- package/dist/chunks/{model-resolver-8xshesq6.js → skill-6wk66kgs.js} +4 -4
- package/dist/chunks/{model-resolver-6xb47vfp.js → skill-6xb47vfp.js} +1 -1
- package/dist/chunks/{model-resolver-drnf6xwf.js → skill-706phk7x.js} +2 -2
- package/dist/chunks/{model-resolver-hxrx80a3.js → skill-74bhg78j.js} +35 -35
- package/dist/chunks/{model-resolver-00mvmxfh.js → skill-74gxmjd3.js} +12 -12
- package/dist/chunks/{model-resolver-58hng72m.js → skill-782zrs06.js} +5 -5
- package/dist/chunks/{model-resolver-7bmhse3q.js → skill-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-resolver-f6vfcazt.js → skill-7d3cke9g.js} +15 -15
- package/dist/chunks/{model-resolver-0jwsre1p.js → skill-7dqw4kz8.js} +5 -5
- package/dist/chunks/{model-resolver-vv44hwmw.js → skill-7gra0nqm.js} +12 -12
- package/dist/chunks/{model-resolver-8zda0nf7.js → skill-7j0yeb1q.js} +3 -3
- package/dist/chunks/{model-resolver-tmzvxbcr.js → skill-7kgd0s0x.js} +13 -13
- package/dist/chunks/{model-resolver-s4xtvnse.js → skill-7nh3rdxx.js} +32 -32
- package/dist/chunks/{model-resolver-952eaccn.js → skill-7nk17e7j.js} +19 -19
- package/dist/chunks/{model-resolver-9zjswjmw.js → skill-7tf38zkw.js} +8 -8
- package/dist/chunks/{model-resolver-1xyzrv88.js → skill-7x669gbt.js} +15 -15
- package/dist/chunks/{model-resolver-3j5kk4r4.js → skill-7zpre7y5.js} +55 -55
- package/dist/chunks/{model-resolver-fcxqfe59.js → skill-80r7tq9c.js} +10 -10
- package/dist/chunks/{model-resolver-f8w4kezf.js → skill-893xt8a4.js} +15 -15
- package/dist/chunks/{model-resolver-4a5ztk63.js → skill-8hy12zsj.js} +42 -42
- package/dist/chunks/{model-resolver-8m6m0r52.js → skill-8m6m0r52.js} +1 -1
- package/dist/chunks/{model-resolver-0yvp6fqs.js → skill-8nraxkww.js} +32 -32
- package/dist/chunks/{model-resolver-czz8a252.js → skill-8sbx5588.js} +22 -22
- package/dist/chunks/{model-resolver-z6xnm1hd.js → skill-8v5x19vh.js} +24 -24
- package/dist/chunks/{model-resolver-j09zfasm.js → skill-91qna3x0.js} +3 -3
- package/dist/chunks/{model-resolver-hejxbgj7.js → skill-96tre5n4.js} +20 -20
- package/dist/chunks/{model-resolver-rzs3gq0x.js → skill-99xay3p1.js} +8 -8
- package/dist/chunks/{model-resolver-d07a65d0.js → skill-9svpk271.js} +27 -27
- package/dist/chunks/{model-resolver-mpr1ppnz.js → skill-9x0gz91n.js} +154 -154
- package/dist/chunks/{model-resolver-1y24xx8v.js → skill-a7rk3z6b.js} +33 -33
- package/dist/chunks/{model-resolver-qeay7bfp.js → skill-a7xy3v5h.js} +50 -50
- package/dist/chunks/{model-resolver-9q2dymh5.js → skill-a8f7ngtz.js} +47 -47
- package/dist/chunks/{model-resolver-thxhb584.js → skill-af0a6jtc.js} +6 -6
- package/dist/chunks/{model-resolver-7gegkexy.js → skill-ah8e0mas.js} +3 -3
- package/dist/chunks/{model-resolver-z64e08bt.js → skill-aj7xfzf8.js} +11 -11
- package/dist/chunks/{model-resolver-mdgny2h2.js → skill-arrqykze.js} +69 -69
- package/dist/chunks/{model-resolver-v2xp8k5w.js → skill-atxg8vat.js} +4 -4
- package/dist/chunks/{model-resolver-spzmyp0d.js → skill-b130te7a.js} +3 -3
- package/dist/chunks/{model-resolver-shc06m3c.js → skill-b79wvxw5.js} +34 -34
- package/dist/chunks/{model-resolver-8445zpne.js → skill-bak53rn6.js} +17 -17
- package/dist/chunks/{model-resolver-t8h80vnj.js → skill-bbycbt8h.js} +27 -27
- package/dist/chunks/{model-resolver-0cyezpg7.js → skill-bqdn68pr.js} +7 -7
- package/dist/chunks/{model-resolver-0z2tybs7.js → skill-bsszbsx0.js} +4 -4
- package/dist/chunks/{model-resolver-6b3rp9xb.js → skill-bt0f8rxp.js} +25 -25
- package/dist/chunks/skill-bt91ab93.js +253 -0
- package/dist/chunks/{model-resolver-438mmgwp.js → skill-bwkhxzqp.js} +1 -1
- package/dist/chunks/{model-resolver-skhz7g2d.js → skill-bwkj1qe0.js} +16 -16
- package/dist/chunks/{model-resolver-es1vcfrp.js → skill-c1fqxshp.js} +3 -3
- package/dist/chunks/{model-resolver-0j1h8p53.js → skill-c9h1akpe.js} +24 -24
- package/dist/chunks/{model-resolver-d9kycxq3.js → skill-ce1ww0hn.js} +9 -9
- package/dist/chunks/{model-resolver-5yzzbxa7.js → skill-cmwkp3r5.js} +8 -8
- package/dist/chunks/{model-resolver-gqvee6ey.js → skill-cp5p6fab.js} +18 -18
- package/dist/chunks/{model-resolver-zehn0qfn.js → skill-cz59gfa5.js} +42 -42
- package/dist/chunks/{model-resolver-cpneeje0.js → skill-d4he2qe1.js} +5 -5
- package/dist/chunks/{model-resolver-ykvkrf63.js → skill-d8f39z64.js} +3 -3
- package/dist/chunks/{model-resolver-62dx9yxp.js → skill-dft3wafc.js} +35 -35
- package/dist/chunks/{model-resolver-e052d1q0.js → skill-dpb9t3y1.js} +27 -27
- package/dist/chunks/{model-resolver-n8anjzen.js → skill-drxm696w.js} +35 -35
- package/dist/chunks/{model-resolver-gzk07654.js → skill-dxkygmqf.js} +44 -44
- package/dist/chunks/{model-resolver-dxy7xx6d.js → skill-dyzdawcw.js} +7 -7
- package/dist/chunks/{model-resolver-yfkx0eqm.js → skill-dzvr5812.js} +24 -24
- package/dist/chunks/{model-resolver-8asyfh9s.js → skill-e1pxbzej.js} +9 -9
- package/dist/chunks/{model-resolver-5qd3pb7m.js → skill-e3qxr5gk.js} +2 -2
- package/dist/chunks/{model-resolver-7x4tntjh.js → skill-e6kjdzrx.js} +1 -1
- package/dist/chunks/{model-resolver-nma959mg.js → skill-e80seqcp.js} +3 -3
- package/dist/chunks/{model-resolver-25tpx51f.js → skill-e89fcy78.js} +10 -10
- package/dist/chunks/{model-resolver-eej6y6fw.js → skill-eej6y6fw.js} +2 -2
- package/dist/chunks/{model-resolver-ef5x83kb.js → skill-ef5x83kb.js} +1 -1
- package/dist/chunks/{model-resolver-x8yzxsbj.js → skill-ewrq5sv8.js} +10 -10
- package/dist/chunks/{model-resolver-0rs8myd8.js → skill-ezh22ty2.js} +21 -21
- package/dist/chunks/{model-resolver-yav78m6g.js → skill-f1ezxx24.js} +13 -13
- package/dist/chunks/{model-resolver-y15vpdnr.js → skill-f58gpcny.js} +9 -9
- package/dist/chunks/{model-resolver-vk4601vm.js → skill-f5bajshz.js} +18 -18
- package/dist/chunks/{model-resolver-r3dvpv5z.js → skill-f7s93m2y.js} +24 -24
- package/dist/chunks/{model-resolver-3an6bgbg.js → skill-fh4jabks.js} +15 -15
- package/dist/chunks/{model-resolver-n2rv9ytx.js → skill-fppa4v5t.js} +12 -12
- package/dist/chunks/{model-resolver-7428vhhy.js → skill-fxh7jspe.js} +17 -17
- package/dist/chunks/{model-resolver-brqa01n9.js → skill-fyd44fq0.js} +23 -23
- package/dist/chunks/{model-resolver-7atybeme.js → skill-g0adnnrh.js} +18 -18
- package/dist/chunks/{model-resolver-4xdpab2z.js → skill-g686f6pq.js} +9 -9
- package/dist/chunks/{model-resolver-8e78msr1.js → skill-g6x62smh.js} +14 -14
- package/dist/chunks/{model-resolver-3j6qp9bc.js → skill-g77fasqp.js} +15 -15
- package/dist/chunks/{model-resolver-he27pt63.js → skill-gd0tnyjc.js} +1 -1
- package/dist/chunks/{model-resolver-gd4qta3r.js → skill-gd4qta3r.js} +1 -1
- package/dist/chunks/{model-resolver-e73g0wvd.js → skill-gf6hnvga.js} +4 -4
- package/dist/chunks/{model-resolver-gk8qb678.js → skill-gk8qb678.js} +1 -1
- package/dist/chunks/{model-resolver-k5dc2vmd.js → skill-gq5nnmhs.js} +9 -9
- package/dist/chunks/{model-resolver-xmkm7fbj.js → skill-h0j2zbgz.js} +27 -27
- package/dist/chunks/{model-resolver-rjmj41vv.js → skill-h3mfw8ha.js} +4 -4
- package/dist/chunks/{model-resolver-pqf191vy.js → skill-h5enmkp2.js} +17 -17
- package/dist/chunks/{model-resolver-yy2bf7rf.js → skill-h6r382m4.js} +11 -11
- package/dist/chunks/{model-resolver-h6vf3j39.js → skill-h6vf3j39.js} +1 -1
- package/dist/chunks/{model-resolver-xpffpww7.js → skill-h6w6ry4f.js} +11 -11
- package/dist/chunks/{model-resolver-31xfzrxg.js → skill-h7s7r6s9.js} +5 -5
- package/dist/chunks/{model-resolver-2rehhz5t.js → skill-h8wx7fmz.js} +11 -11
- package/dist/chunks/{model-resolver-hgz4x7wa.js → skill-hgz4x7wa.js} +1 -1
- package/dist/chunks/{model-resolver-jdz4qjxc.js → skill-hkffa77z.js} +4 -4
- package/dist/chunks/{model-resolver-t2vkhgbg.js → skill-hpr7fteq.js} +18 -18
- package/dist/chunks/{model-resolver-0epwncsf.js → skill-hrz9kmjx.js} +3 -3
- package/dist/chunks/{model-resolver-gfhy63hj.js → skill-j4prh3qw.js} +20 -20
- package/dist/chunks/{model-resolver-j56e64zr.js → skill-j56e64zr.js} +1 -1
- package/dist/chunks/{model-resolver-0br3sbwn.js → skill-j8m1p4p1.js} +4 -4
- package/dist/chunks/{model-resolver-00hydevz.js → skill-jchv0x1t.js} +16 -16
- package/dist/chunks/{model-resolver-4qaehj67.js → skill-jekxgysa.js} +3 -3
- package/dist/chunks/{model-resolver-ph842b28.js → skill-jewzahs7.js} +4 -4
- package/dist/chunks/{model-resolver-pbfwh0cy.js → skill-jfqtm2ew.js} +7 -7
- package/dist/chunks/{model-resolver-hthjksz6.js → skill-jpehgbjb.js} +26 -26
- package/dist/chunks/skill-jqh9b0xq.js +18 -0
- package/dist/chunks/{model-resolver-e8m77gve.js → skill-jwf9y0a3.js} +10 -10
- package/dist/chunks/{model-resolver-jepehhcn.js → skill-jxznacnn.js} +9 -9
- package/dist/chunks/{model-resolver-z5z78jza.js → skill-jyfpsn8b.js} +18 -18
- package/dist/chunks/{model-resolver-s76dkkvr.js → skill-k14vxfxf.js} +18 -18
- package/dist/chunks/{model-resolver-rsmgkfp3.js → skill-k5y15yet.js} +10 -10
- package/dist/chunks/{model-resolver-wr9zkec4.js → skill-k6t42hw0.js} +14 -14
- package/dist/chunks/{model-resolver-9h7c1aps.js → skill-kgrdg1t7.js} +16 -16
- package/dist/chunks/{model-resolver-hq3c8me3.js → skill-khmqacep.js} +4 -4
- package/dist/chunks/{model-resolver-8nzb5d0e.js → skill-khxhje02.js} +5 -5
- package/dist/chunks/{model-resolver-97aeaand.js → skill-kqv3x6rj.js} +9 -9
- package/dist/chunks/{model-resolver-wkw6304r.js → skill-m1y3ev3f.js} +14 -14
- package/dist/chunks/{model-resolver-nsep0bnj.js → skill-m3tby6h3.js} +7 -7
- package/dist/chunks/{model-resolver-n61013np.js → skill-m6rbnapp.js} +11 -11
- package/dist/chunks/{model-resolver-pm617sjb.js → skill-m8amn440.js} +11 -11
- package/dist/chunks/{model-resolver-m9w0rfyh.js → skill-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-resolver-rbr6e3az.js → skill-mn2jssd1.js} +46 -46
- package/dist/chunks/{model-resolver-p0x6m6cr.js → skill-mnpwv5rr.js} +32 -32
- package/dist/chunks/{model-resolver-b8zkqphn.js → skill-mszddwga.js} +16 -16
- package/dist/chunks/{model-resolver-my4zabxr.js → skill-n7d88tpn.js} +2 -2
- package/dist/chunks/{model-resolver-repb58am.js → skill-nd37ta7v.js} +8 -8
- package/dist/chunks/{model-resolver-x7srd6wz.js → skill-nv3yves8.js} +10 -10
- package/dist/chunks/{model-resolver-89be0nvq.js → skill-p382tw6g.js} +15 -15
- package/dist/chunks/{model-resolver-52ghtah7.js → skill-p97g2b6e.js} +5 -5
- package/dist/chunks/{model-resolver-21hptw97.js → skill-pfeqy1xz.js} +32 -32
- package/dist/chunks/{model-resolver-pjvnvgmy.js → skill-pjvnvgmy.js} +1 -1
- package/dist/chunks/{model-resolver-pknna89w.js → skill-pknna89w.js} +1 -1
- package/dist/chunks/{model-resolver-qfxdb210.js → skill-pmedcct5.js} +8 -8
- package/dist/chunks/{model-resolver-xfwgz2sz.js → skill-pt5qpz7e.js} +11 -11
- package/dist/chunks/{model-resolver-6pc27hjz.js → skill-py3kkmfq.js} +6 -6
- package/dist/chunks/{model-resolver-wev7e6ck.js → skill-qb0wp3nz.js} +13 -13
- package/dist/chunks/{model-resolver-k9byjnss.js → skill-qbp5w25r.js} +8 -8
- package/dist/chunks/{model-resolver-qnc92qwc.js → skill-qnc92qwc.js} +1 -1
- package/dist/chunks/{model-resolver-wpdtsyf6.js → skill-qscw1svz.js} +22 -22
- package/dist/chunks/{model-resolver-qsdy395h.js → skill-qsdy395h.js} +1 -1
- package/dist/chunks/{model-resolver-20vh3zss.js → skill-r0bjqnxp.js} +13 -13
- package/dist/chunks/{model-resolver-37ex1wq2.js → skill-r8yh9gsk.js} +3 -3
- package/dist/chunks/{model-resolver-g3pjsnhq.js → skill-ra1jf175.js} +22 -22
- package/dist/chunks/{model-resolver-jxr5ks98.js → skill-rc1szs54.js} +6 -6
- package/dist/chunks/{model-resolver-rdw6cm16.js → skill-rdw6cm16.js} +1 -1
- package/dist/chunks/{model-resolver-tkb22qbm.js → skill-rert0e01.js} +2 -2
- package/dist/chunks/{model-resolver-pj2kjhp4.js → skill-rg26e3dg.js} +19 -19
- package/dist/chunks/{model-resolver-arvc38t3.js → skill-rg4v0xfm.js} +5 -5
- package/dist/chunks/{model-resolver-c41wscbt.js → skill-rj3eygr5.js} +2 -2
- package/dist/chunks/{model-resolver-znvvnn0n.js → skill-rjq8wmvv.js} +14 -14
- package/dist/chunks/{model-resolver-9g0x53p6.js → skill-rpf7afex.js} +22 -22
- package/dist/chunks/{model-resolver-6hjx5zpb.js → skill-s1kvmffy.js} +9 -9
- package/dist/chunks/{model-resolver-x6v0h5p6.js → skill-s3fcqr35.js} +11 -11
- package/dist/chunks/{model-resolver-mr56bpwe.js → skill-s3qjw1pn.js} +11 -11
- package/dist/chunks/{model-resolver-qwjmgwmn.js → skill-s5met55r.js} +8 -8
- package/dist/chunks/{model-resolver-eaj1djv9.js → skill-s8d7rejh.js} +6 -6
- package/dist/chunks/{model-resolver-c8ax2afj.js → skill-sa8ekw3f.js} +2 -2
- package/dist/chunks/{model-resolver-wat9ccs0.js → skill-sdaj4hze.js} +16 -16
- package/dist/chunks/{model-resolver-1v7d8dyr.js → skill-sn1ft31v.js} +11 -11
- package/dist/chunks/{model-resolver-dg7e64je.js → skill-srvasj4s.js} +10 -10
- package/dist/chunks/{model-resolver-syv4x271.js → skill-syv4x271.js} +1 -1
- package/dist/chunks/{model-resolver-mh95raz8.js → skill-t1ppkja0.js} +23 -23
- package/dist/chunks/{model-resolver-n3qtygy3.js → skill-t3c1w11q.js} +7 -7
- package/dist/chunks/{model-resolver-fg0se8bt.js → skill-t3dyfpts.js} +25 -25
- package/dist/chunks/{model-resolver-rwm5vee1.js → skill-t7n9q6bq.js} +4 -4
- package/dist/chunks/{model-resolver-tazgh4e4.js → skill-tazgh4e4.js} +1 -1
- package/dist/chunks/{model-resolver-prmgem5b.js → skill-tcay1cqt.js} +6 -6
- package/dist/chunks/{model-resolver-89znhe33.js → skill-tcezcvh9.js} +4 -4
- package/dist/chunks/{model-resolver-tdstcens.js → skill-tdstcens.js} +1 -1
- package/dist/chunks/{model-resolver-ve4j09ev.js → skill-tm8n2dag.js} +34 -34
- package/dist/chunks/{model-resolver-evq0a796.js → skill-tvqjvqh2.js} +53 -53
- package/dist/chunks/{model-resolver-tyytaxap.js → skill-tyytaxap.js} +1 -1
- package/dist/chunks/{model-resolver-0bg0bx69.js → skill-v0es1rhs.js} +5 -5
- package/dist/chunks/{model-resolver-v7p4zvkq.js → skill-v7p4zvkq.js} +2 -2
- package/dist/chunks/{model-resolver-ns4jf56n.js → skill-vb779x36.js} +31 -31
- package/dist/chunks/{model-resolver-veqvce7d.js → skill-veqvce7d.js} +1 -1
- package/dist/chunks/{model-resolver-267qws5w.js → skill-vk71ktyq.js} +18 -18
- package/dist/chunks/{model-resolver-j043eqhj.js → skill-vvejrkfj.js} +24 -24
- package/dist/chunks/{model-resolver-yesxfxzm.js → skill-vw9y7nsp.js} +14 -14
- package/dist/chunks/{model-resolver-vzs5sf6e.js → skill-vzs5sf6e.js} +1 -1
- package/dist/chunks/{model-resolver-84txncab.js → skill-w1eejvng.js} +5 -5
- package/dist/chunks/{model-resolver-dssbfrwz.js → skill-w2h15q85.js} +5 -5
- package/dist/chunks/{model-resolver-w3wsvvr9.js → skill-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-resolver-75qns3nc.js → skill-w9ryxck0.js} +29 -29
- package/dist/chunks/{model-resolver-2z1sbxkm.js → skill-wam8kafv.js} +16 -16
- package/dist/chunks/{model-resolver-hcc7h0se.js → skill-waq359tg.js} +29 -29
- package/dist/chunks/{model-resolver-wd87259q.js → skill-wd87259q.js} +1 -1
- package/dist/chunks/{model-resolver-b3f8fkhc.js → skill-wecqtg5s.js} +5 -5
- package/dist/chunks/{model-resolver-j5xf5m5x.js → skill-whrvwyny.js} +29 -29
- package/dist/chunks/{model-resolver-jaawwjdn.js → skill-wvpwbqrt.js} +33 -33
- package/dist/chunks/{model-resolver-x2qxvyvc.js → skill-wwmzx8zk.js} +28 -28
- package/dist/chunks/{model-resolver-addxnjmp.js → skill-x661k3y3.js} +4 -4
- package/dist/chunks/{model-resolver-t57shhp7.js → skill-xd5zg08j.js} +18 -18
- package/dist/chunks/{model-resolver-wvnxh5mx.js → skill-xe0rr0dc.js} +18 -18
- package/dist/chunks/{model-resolver-drwq78ky.js → skill-xfkkasph.js} +4 -4
- package/dist/chunks/{model-resolver-kxrk9wqg.js → skill-xk38kzjr.js} +9 -9
- package/dist/chunks/skill-xn7erqew.js +26 -0
- package/dist/chunks/{model-resolver-hsnz0d85.js → skill-xtev3e47.js} +14 -14
- package/dist/chunks/{model-resolver-y1fvbwt7.js → skill-y1fvbwt7.js} +1 -1
- package/dist/chunks/{model-resolver-y71avatq.js → skill-y71avatq.js} +1 -1
- package/dist/chunks/{model-resolver-mjwve1nx.js → skill-y8mn00j4.js} +42 -42
- package/dist/chunks/{model-resolver-w0n5n1pn.js → skill-yejprgqt.js} +13 -13
- package/dist/chunks/{model-resolver-j62t34ty.js → skill-yn3z4aa5.js} +4 -4
- package/dist/chunks/{model-resolver-r8xr0va3.js → skill-yp2x3t23.js} +4 -4
- package/dist/chunks/{model-resolver-fz112egw.js → skill-yr7javwp.js} +5 -5
- package/dist/chunks/{model-resolver-bjx1sjef.js → skill-ywt8jp22.js} +9 -9
- package/dist/chunks/{model-resolver-z0bkrqjs.js → skill-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-resolver-6kzp9tjq.js → skill-z6c3x22d.js} +5 -5
- package/dist/chunks/{model-resolver-ytm23z63.js → skill-zd9qesfz.js} +20 -20
- package/dist/chunks/{model-resolver-9h1rq4nb.js → skill-zmt4xjv0.js} +14 -14
- package/dist/chunks/{model-resolver-q0zbnr5v.js → skill-zqwxztna.js} +4 -4
- package/dist/chunks/{model-resolver-zr2ceqn5.js → skill-zr2ceqn5.js} +1 -1
- package/dist/chunks/{model-resolver-bezqnnbp.js → skill-zvq5hknc.js} +13 -13
- package/dist/chunks/{model-resolver-qgy4cpjv.js → skill-zvqtgt76.js} +9 -9
- package/dist/chunks/{model-resolver-zxq2ej10.js → skill-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- 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 +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +68 -68
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- 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 +95 -95
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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 +4 -4
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- 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 +93 -93
- 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 +359 -359
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +83 -83
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- 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 +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- 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-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +119 -119
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +96 -96
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +97 -97
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +92 -92
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- 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 +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- 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 +6 -6
- 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 +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +95 -95
- 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 +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- 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 +216 -216
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +210 -210
- 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 +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +130 -130
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +102 -102
- 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 +5 -5
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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 +85 -85
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- 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 +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/model-resolver-1y150ee2.js +0 -26
- package/dist/chunks/model-resolver-f9qvt350.js +0 -513
- package/dist/chunks/model-resolver-qdb1nj2v.js +0 -253
- package/dist/chunks/model-resolver-rap9a73h.js +0 -18
- /package/dist/chunks/{model-resolver-0qkdqm5v.js → skill-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-resolver-0zkw76rk.js → skill-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-resolver-17cy0kzp.js → skill-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-resolver-1cnp2v09.js → skill-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-resolver-1kg9ymc8.js → skill-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{model-resolver-24dcb14g.js → skill-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-resolver-2710q6r3.js → skill-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-resolver-2axfhc9x.js → skill-2axfhc9x.js} +0 -0
- /package/dist/chunks/{model-resolver-2bv980vf.js → skill-2bv980vf.js} +0 -0
- /package/dist/chunks/{model-resolver-2c3vjs8z.js → skill-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-resolver-359p4xyc.js → skill-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-resolver-3asan66x.js → skill-3asan66x.js} +0 -0
- /package/dist/chunks/{model-resolver-3t0ybcrp.js → skill-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{model-resolver-3v8g72cx.js → skill-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-resolver-3wcehsnq.js → skill-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-resolver-43n2bw4t.js → skill-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-resolver-4knz6hnm.js → skill-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-resolver-4vcrnpx2.js → skill-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-resolver-4y7fprxs.js → skill-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-resolver-53557ph1.js → skill-53557ph1.js} +0 -0
- /package/dist/chunks/{model-resolver-550bvhaj.js → skill-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-resolver-6prwharc.js → skill-6prwharc.js} +0 -0
- /package/dist/chunks/{model-resolver-6q2bdcd1.js → skill-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-resolver-7akdwqpd.js → skill-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-resolver-7m9af43g.js → skill-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-resolver-822emrt2.js → skill-822emrt2.js} +0 -0
- /package/dist/chunks/{model-resolver-84wd9syh.js → skill-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-resolver-88xbtdfr.js → skill-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-resolver-8n3pysct.js → skill-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-resolver-8wj87zfr.js → skill-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-resolver-9a4afbnw.js → skill-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-resolver-9rqn6x4v.js → skill-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-resolver-a6k6eb26.js → skill-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-resolver-af5trqkr.js → skill-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-resolver-afrmfg78.js → skill-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-resolver-aqzs7mqg.js → skill-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-resolver-atq7p7m5.js → skill-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-resolver-bkyjaxrp.js → skill-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-resolver-bmr6ed5q.js → skill-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-resolver-bw78ga2c.js → skill-bw78ga2c.js} +0 -0
- /package/dist/chunks/{model-resolver-cf4snx6d.js → skill-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-resolver-cvy3z8tj.js → skill-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-resolver-d9fn303g.js → skill-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-resolver-d9jj8t3e.js → skill-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-resolver-dajrwvna.js → skill-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-resolver-dap0rakb.js → skill-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-resolver-df08tz66.js → skill-df08tz66.js} +0 -0
- /package/dist/chunks/{model-resolver-dy18nga0.js → skill-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-resolver-e5kj55wp.js → skill-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-resolver-e73j6tqm.js → skill-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-resolver-ec1grn59.js → skill-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-resolver-eh3zwz77.js → skill-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-resolver-emrn6kk6.js → skill-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-resolver-f0mxakyp.js → skill-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-resolver-f6n9ztr4.js → skill-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-resolver-faypxj3z.js → skill-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-resolver-fd410y7t.js → skill-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-resolver-g4wezp1m.js → skill-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-resolver-g86h250q.js → skill-g86h250q.js} +0 -0
- /package/dist/chunks/{model-resolver-gebd4c9n.js → skill-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-resolver-gftt206x.js → skill-gftt206x.js} +0 -0
- /package/dist/chunks/{model-resolver-hk9envan.js → skill-hk9envan.js} +0 -0
- /package/dist/chunks/{model-resolver-j2ntwpah.js → skill-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-resolver-j5zkgpj8.js → skill-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-resolver-jjkms2e6.js → skill-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-resolver-jr7sbwjy.js → skill-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-resolver-jwfs4k6c.js → skill-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-resolver-jze0r7bz.js → skill-jze0r7bz.js} +0 -0
- /package/dist/chunks/{model-resolver-jzg6c2d5.js → skill-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-resolver-m18g726c.js → skill-m18g726c.js} +0 -0
- /package/dist/chunks/{model-resolver-mp448xyj.js → skill-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-resolver-msx8hqn2.js → skill-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-resolver-n05xt0ee.js → skill-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-resolver-n3j8tn72.js → skill-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-resolver-njntx4h6.js → skill-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-resolver-pkyv6v7h.js → skill-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{model-resolver-pyv0edze.js → skill-pyv0edze.js} +0 -0
- /package/dist/chunks/{model-resolver-q3sfg36h.js → skill-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-resolver-q74kybfr.js → skill-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-resolver-qaymkmh1.js → skill-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qb87gjwd.js → skill-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-resolver-qfa1cgps.js → skill-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-resolver-qg3g05ea.js → skill-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-resolver-qrg20bc0.js → skill-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-resolver-rcb2kzg1.js → skill-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-resolver-sdp7kfr6.js → skill-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-resolver-ssg3fenm.js → skill-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-resolver-ve7vex1e.js → skill-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-resolver-w803qqfp.js → skill-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-resolver-wc3fc9cn.js → skill-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-resolver-wer8tq1h.js → skill-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-resolver-wtztk69x.js → skill-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-resolver-x0ckcb58.js → skill-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-resolver-x61499pn.js → skill-x61499pn.js} +0 -0
- /package/dist/chunks/{model-resolver-y44na4kk.js → skill-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-resolver-y8f7s663.js → skill-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-resolver-ygaqb7jw.js → skill-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-resolver-ym463w8f.js → skill-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-resolver-z5v4ffb3.js → skill-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-resolver-z9919s4g.js → skill-z9919s4g.js} +0 -0
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./skill-5n34a961.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./skill-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
10
|
Ref4,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service81,
|
|
12
|
+
node85
|
|
13
|
+
} from "./skill-g6x62smh.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./skill-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service28,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node31
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service28 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,9 +39,9 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service28, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service84;
|
|
44
|
-
const location = yield*
|
|
44
|
+
const location = yield* Service81;
|
|
45
45
|
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
@@ -118,14 +118,14 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service81, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service28.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node31 = makeLocationNode({ service: Service28, layer, deps: [node88, node85] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service28, node31, exports_rpc, define2 };
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./skill-5n34a961.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service81,
|
|
7
|
+
node85
|
|
8
|
+
} from "./skill-g6x62smh.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
ID9,
|
|
11
|
+
Service65,
|
|
12
|
+
node69
|
|
13
|
+
} from "./skill-2ayzmxba.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
NotFoundError8
|
|
16
|
+
} from "./skill-22f357wt.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service63,
|
|
19
|
+
node67
|
|
20
|
+
} from "./skill-jchv0x1t.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./skill-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service64,
|
|
26
|
+
node68
|
|
27
|
+
} from "./skill-bak53rn6.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service66,
|
|
30
|
+
node70
|
|
31
|
+
} from "./skill-s5met55r.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./skill-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
|
-
var
|
|
38
|
-
__export(
|
|
37
|
+
var exports_permission = {};
|
|
38
|
+
__export(exports_permission, {
|
|
39
39
|
AskResult: () => AskResult2,
|
|
40
40
|
AssertInput: () => AssertInput2,
|
|
41
41
|
BlockedError: () => BlockedError2,
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
48
|
-
Permission: () =>
|
|
45
|
+
Event: () => Event11,
|
|
46
|
+
ID: () => ID7,
|
|
47
|
+
NotFoundError: () => NotFoundError7,
|
|
48
|
+
Permission: () => exports_permission,
|
|
49
49
|
Reply: () => Reply2,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
51
|
Request: () => Request2,
|
|
52
|
-
Rule: () =>
|
|
52
|
+
Rule: () => Rule2,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service62,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node66
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
|
-
import { Rule as
|
|
64
|
-
import { Event as
|
|
63
|
+
import { Rule as Rule2, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
+
import { Event as Event11 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID7 = Permission.ID;
|
|
68
68
|
var Source5 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -77,17 +77,17 @@ var RequestFields = {
|
|
|
77
77
|
var Request2 = Permission.Request;
|
|
78
78
|
var Reply2 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID7.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID9.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
85
|
+
requestID: ID7,
|
|
86
86
|
reply: Reply2,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID7,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError7 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID7
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service62 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
130
|
+
var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
131
131
|
const bus = yield* Service84;
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
132
|
+
const location = yield* Service81;
|
|
133
|
+
const agents = yield* Service65;
|
|
134
|
+
const sessions = yield* Service63;
|
|
135
|
+
const saved = yield* Service64;
|
|
136
|
+
const hooks = yield* Service66;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
156
156
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
157
157
|
const session = yield* sessions.get(sessionID);
|
|
158
158
|
if (!session)
|
|
159
|
-
return yield* new
|
|
159
|
+
return yield* new NotFoundError8({ sessionID });
|
|
160
160
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
161
161
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
162
162
|
});
|
|
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
function request(input, message) {
|
|
188
188
|
return {
|
|
189
|
-
id: input.id ??
|
|
189
|
+
id: input.id ?? ID7.create(),
|
|
190
190
|
sessionID: input.sessionID,
|
|
191
191
|
action: input.action,
|
|
192
192
|
resources: input.resources,
|
|
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
211
211
|
}));
|
|
212
212
|
const ask = Effect.fn("Permission.ask")(function* (input) {
|
|
213
213
|
if (closed)
|
|
214
|
-
return { id: input.id ??
|
|
214
|
+
return { id: input.id ?? ID7.create(), effect: "deny" };
|
|
215
215
|
const result = yield* evaluateInput(input);
|
|
216
216
|
const value = request(input, result.message);
|
|
217
217
|
if (result.effect === "ask")
|
|
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
242
242
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
243
243
|
const existing = pending.get(input.requestID);
|
|
244
244
|
if (!existing)
|
|
245
|
-
return yield* new
|
|
245
|
+
return yield* new NotFoundError7({ requestID: input.requestID });
|
|
246
246
|
yield* bus.publish(Permission.Event.Replied, {
|
|
247
247
|
sessionID: existing.request.sessionID,
|
|
248
248
|
requestID: existing.request.id,
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
297
297
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
298
298
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service62.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node66 = makeLocationNode({
|
|
303
|
+
service: Service62,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [node88,
|
|
305
|
+
deps: [node88, node85, node69, node67, node68, node70]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect,
|
|
308
|
+
export { PermissionEffect, ID7, Source5, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError7, evaluate2, merge2, Service62, node66, exports_permission, Rule2, Ruleset2, Event11 };
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service84,
|
|
4
4
|
node88
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./skill-5n34a961.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./skill-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/sdk.ts
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service6,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
layer: () => layer6,
|
|
17
|
+
node: () => node8
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service6 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var layer6 = Layer.effect(Service6, Effect.gen(function* () {
|
|
26
26
|
const bus = yield* Service84;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service6.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {})), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node8 = makeGlobalNode({ service: Service6, layer: layer6, deps: [node88] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service6, layer6, node8, exports_sdk };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./skill-g6x62smh.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./skill-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./skill-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/formatter.ts
|
|
13
13
|
var exports_formatter2 = {};
|
|
14
14
|
__export(exports_formatter2, {
|
|
15
15
|
Formatter: () => exports_formatter2,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service16,
|
|
17
|
+
node: () => node18
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { ChildProcess } from "effect/process";
|
|
21
21
|
import path from "path";
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { AppProcess } from "@opencode/util/process";
|
|
24
|
-
class
|
|
24
|
+
class Service16 extends Context.Service()("@opencode/v2/Formatter") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
27
|
-
const location = yield*
|
|
26
|
+
var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
27
|
+
const location = yield* Service81;
|
|
28
28
|
const processes = yield* AppProcess.Service;
|
|
29
29
|
const commands = new WeakMap;
|
|
30
30
|
const state = create3({
|
|
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
85
85
|
}
|
|
86
86
|
return false;
|
|
87
87
|
});
|
|
88
|
-
return
|
|
88
|
+
return Service16.of({ transform: state.transform, reload: state.reload, file });
|
|
89
89
|
}));
|
|
90
|
-
var
|
|
91
|
-
service:
|
|
90
|
+
var node18 = makeLocationNode({
|
|
91
|
+
service: Service16,
|
|
92
92
|
layer,
|
|
93
|
-
deps: [
|
|
93
|
+
deps: [node85, AppProcess.node]
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Service16, node18, exports_formatter2 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-ewrq5sv8.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./skill-5n34a961.js";
|
|
7
7
|
import {
|
|
8
8
|
ID15,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service78
|
|
11
|
+
} from "./skill-rpf7afex.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./skill-x661k3y3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./skill-0e0n583m.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./skill-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID12,
|
|
24
24
|
Service75
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./skill-xd5zg08j.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
ID11
|
|
28
|
+
} from "./skill-t3dyfpts.js";
|
|
29
29
|
import {
|
|
30
30
|
iife2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./skill-1kg9ymc8.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./skill-zqwxztna.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/azure.ts
|
|
37
37
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -75,18 +75,18 @@ var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.No
|
|
|
75
75
|
var ResourceListing = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
76
76
|
var decodeProfile = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ subscriptions: Schema.NonEmptyArray(Schema.Unknown) })));
|
|
77
77
|
var decodeResourceListing = Schema.decodeUnknownOption(Schema.Struct({ resourceName: Schema.NonEmptyString, resourceGroup: Schema.String, location: Schema.String }));
|
|
78
|
-
function
|
|
78
|
+
function make5(endpoints = {
|
|
79
79
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
80
80
|
management: "https://management.azure.com"
|
|
81
81
|
}) {
|
|
82
82
|
return define({
|
|
83
83
|
id: "opencode.provider.azure",
|
|
84
84
|
effect: Effect.fn(function* (ctx) {
|
|
85
|
-
const configured = yield* configuredSettings2(
|
|
85
|
+
const configured = yield* configuredSettings2(ID12.azure);
|
|
86
86
|
const processes = yield* AppProcess.Service;
|
|
87
87
|
const fs = yield* FSUtil.Service;
|
|
88
88
|
const bus = yield* Service84;
|
|
89
|
-
const credentials = yield*
|
|
89
|
+
const credentials = yield* Service78;
|
|
90
90
|
const providers = yield* Service75;
|
|
91
91
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
92
92
|
const tokens = new Map;
|
|
@@ -114,11 +114,11 @@ function make4(endpoints = {
|
|
|
114
114
|
const listing = {};
|
|
115
115
|
yield* ctx.integration.transform((editor) => {
|
|
116
116
|
editor.method.update({
|
|
117
|
-
integrationID:
|
|
117
|
+
integrationID: ID12.azure,
|
|
118
118
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
119
119
|
});
|
|
120
120
|
editor.method.update({
|
|
121
|
-
integrationID:
|
|
121
|
+
integrationID: ID12.azure,
|
|
122
122
|
method: {
|
|
123
123
|
type: "key",
|
|
124
124
|
label: "API key",
|
|
@@ -136,7 +136,7 @@ function make4(endpoints = {
|
|
|
136
136
|
if (!available)
|
|
137
137
|
return;
|
|
138
138
|
editor.method.update({
|
|
139
|
-
integrationID:
|
|
139
|
+
integrationID: ID12.azure,
|
|
140
140
|
method: {
|
|
141
141
|
id: methodID,
|
|
142
142
|
type: "external",
|
|
@@ -164,7 +164,7 @@ function make4(endpoints = {
|
|
|
164
164
|
});
|
|
165
165
|
});
|
|
166
166
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
167
|
-
const connection = yield* ctx.integration.connection.active(
|
|
167
|
+
const connection = yield* ctx.integration.connection.active(ID12.azure);
|
|
168
168
|
const stored = connection?.type === "credential" ? yield* credentials.get(ID15.make(connection.id)) : undefined;
|
|
169
169
|
return { connection, resource: credentialResource(stored?.value) };
|
|
170
170
|
});
|
|
@@ -204,7 +204,7 @@ function make4(endpoints = {
|
|
|
204
204
|
}));
|
|
205
205
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
206
206
|
const connection = loaded.connection;
|
|
207
|
-
const settings = (yield* providers.get(
|
|
207
|
+
const settings = (yield* providers.get(ID12.azure))?.settings;
|
|
208
208
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
209
209
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
210
210
|
if (loaded.connection !== connection)
|
|
@@ -226,11 +226,11 @@ function make4(endpoints = {
|
|
|
226
226
|
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))));
|
|
227
227
|
if (!found)
|
|
228
228
|
return;
|
|
229
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
229
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID12.azure)))
|
|
230
230
|
return;
|
|
231
231
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
232
232
|
return;
|
|
233
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
233
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID12.azure)?.models.keys() ?? [], (id) => [
|
|
234
234
|
id.toLowerCase(),
|
|
235
235
|
id
|
|
236
236
|
]));
|
|
@@ -243,7 +243,7 @@ function make4(endpoints = {
|
|
|
243
243
|
yield* ctx.model.reload();
|
|
244
244
|
});
|
|
245
245
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
246
|
-
const resourceFor = (provider) => provider.id ===
|
|
246
|
+
const resourceFor = (provider) => provider.id === ID12.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
247
247
|
Object.assign(loaded, yield* load());
|
|
248
248
|
const listResources = Effect.fn("AzurePlugin.listResources")(function* () {
|
|
249
249
|
const profile = yield* fs.readFileStringSafe(path.join(process.env.AZURE_CONFIG_DIR ?? path.join(Global.Path.home, ".azure"), "azureProfile.json"));
|
|
@@ -268,7 +268,7 @@ function make4(endpoints = {
|
|
|
268
268
|
yield* listResources().pipe(Effect.catch((cause) => Effect.logDebug("failed to list Azure resources", { cause })), Effect.forkScoped);
|
|
269
269
|
yield* ctx.provider.transform((evt) => {
|
|
270
270
|
for (const item of evt.list()) {
|
|
271
|
-
if (item.provider.id !==
|
|
271
|
+
if (item.provider.id !== ID12.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
272
272
|
continue;
|
|
273
273
|
const resourceName = resourceFor(item.provider);
|
|
274
274
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -283,7 +283,7 @@ function make4(endpoints = {
|
|
|
283
283
|
};
|
|
284
284
|
});
|
|
285
285
|
}
|
|
286
|
-
const item = evt.get(
|
|
286
|
+
const item = evt.get(ID12.azure);
|
|
287
287
|
if (!item)
|
|
288
288
|
return;
|
|
289
289
|
evt.add({
|
|
@@ -294,7 +294,7 @@ function make4(endpoints = {
|
|
|
294
294
|
});
|
|
295
295
|
yield* ctx.model.transform((models) => {
|
|
296
296
|
for (const item of models.provider.list()) {
|
|
297
|
-
if (item.provider.id !==
|
|
297
|
+
if (item.provider.id !== ID12.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
298
298
|
continue;
|
|
299
299
|
const resourceName = resourceFor(item.provider);
|
|
300
300
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -306,20 +306,20 @@ function make4(endpoints = {
|
|
|
306
306
|
}
|
|
307
307
|
if (!loaded.deployments)
|
|
308
308
|
return;
|
|
309
|
-
const catalog = models.list(
|
|
309
|
+
const catalog = models.list(ID12.azure);
|
|
310
310
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
311
311
|
for (const model of catalog) {
|
|
312
312
|
if (!deployed.has(model.id))
|
|
313
|
-
models.remove(
|
|
313
|
+
models.remove(ID12.azure, model.id);
|
|
314
314
|
}
|
|
315
315
|
for (const [id, model] of deployed) {
|
|
316
|
-
models.update(
|
|
316
|
+
models.update(ID12.azure, id, (draft) => Object.assign(draft, model));
|
|
317
317
|
}
|
|
318
318
|
});
|
|
319
|
-
yield* bus.subscribe(
|
|
319
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
320
320
|
yield* refresh().pipe(Effect.forkScoped);
|
|
321
321
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
322
|
-
const connection = yield* ctx.integration.connection.active(
|
|
322
|
+
const connection = yield* ctx.integration.connection.active(ID12.azure);
|
|
323
323
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
324
324
|
return;
|
|
325
325
|
})) : undefined;
|
|
@@ -331,7 +331,7 @@ function make4(endpoints = {
|
|
|
331
331
|
return `Bearer ${current.access}`;
|
|
332
332
|
});
|
|
333
333
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
334
|
-
if (evt.model.providerID !==
|
|
334
|
+
if (evt.model.providerID !== ID12.azure)
|
|
335
335
|
return;
|
|
336
336
|
const authorization = yield* bearer(evt.request.url);
|
|
337
337
|
if (!authorization)
|
|
@@ -340,9 +340,9 @@ function make4(endpoints = {
|
|
|
340
340
|
evt.request.headers.delete("x-api-key");
|
|
341
341
|
evt.request.headers.set("authorization", authorization);
|
|
342
342
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
343
|
-
}), { providerID:
|
|
343
|
+
}), { providerID: ID12.azure });
|
|
344
344
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
345
|
-
if (evt.model.providerID !==
|
|
345
|
+
if (evt.model.providerID !== ID12.azure)
|
|
346
346
|
return;
|
|
347
347
|
const authorization = yield* bearer(evt.url);
|
|
348
348
|
if (!authorization)
|
|
@@ -351,11 +351,11 @@ function make4(endpoints = {
|
|
|
351
351
|
delete evt.headers["x-api-key"];
|
|
352
352
|
evt.headers.authorization = authorization;
|
|
353
353
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
354
|
-
}), { providerID:
|
|
354
|
+
}), { providerID: ID12.azure });
|
|
355
355
|
})
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
var AzurePlugin2 =
|
|
358
|
+
var AzurePlugin2 = make5();
|
|
359
359
|
function resolveResourceName(settings, fallback) {
|
|
360
360
|
const configured = settings?.resourceName;
|
|
361
361
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -393,11 +393,11 @@ function deployedModels(deployments, catalog) {
|
|
|
393
393
|
const model = catalogModel(models, deployment);
|
|
394
394
|
if (!model)
|
|
395
395
|
return [];
|
|
396
|
-
const id =
|
|
396
|
+
const id = ID11.make(deployment.name.toLowerCase());
|
|
397
397
|
const info = {
|
|
398
398
|
...structuredClone(model),
|
|
399
399
|
id,
|
|
400
|
-
modelID:
|
|
400
|
+
modelID: ID11.make(deployment.name),
|
|
401
401
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
402
402
|
};
|
|
403
403
|
return [[id, info]];
|
|
@@ -419,4 +419,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
419
419
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
export {
|
|
422
|
+
export { make5, AzurePlugin2 };
|