@opencode/core 0.0.0-dev-1280 → 0.0.0-dev-1284
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 +90 -90
- package/dist/aisdk-native.js +1 -1
- package/dist/aisdk.js +109 -109
- package/dist/app.js +11 -11
- package/dist/artifact.js +262 -262
- package/dist/bus.js +80 -80
- package/dist/chunks/{wellknown-2aer8hgd.js → aisdk-00natry1.js} +4 -4
- package/dist/chunks/{wellknown-034tev2y.js → aisdk-034tev2y.js} +2 -2
- package/dist/chunks/{wellknown-eab5a047.js → aisdk-076bfny5.js} +8 -8
- package/dist/chunks/{wellknown-0fvxehme.js → aisdk-0fvxehme.js} +2 -2
- package/dist/chunks/{wellknown-0ma9gw4f.js → aisdk-0ma9gw4f.js} +2 -2
- package/dist/chunks/{wellknown-f6jr0yjz.js → aisdk-0ns6cc2e.js} +23 -23
- package/dist/chunks/{wellknown-jrkc3ds1.js → aisdk-0tq2d6dg.js} +6 -6
- package/dist/chunks/{wellknown-7tftgcmj.js → aisdk-0xem9e8e.js} +25 -25
- package/dist/chunks/{wellknown-ptwmb640.js → aisdk-0xfehysn.js} +15 -15
- package/dist/chunks/{wellknown-qs72j73j.js → aisdk-0yqc1rax.js} +32 -32
- package/dist/chunks/{wellknown-gn3h6dxw.js → aisdk-16tg2mvn.js} +10 -10
- package/dist/chunks/{wellknown-1aqsckx4.js → aisdk-1aqsckx4.js} +1 -1
- package/dist/chunks/{wellknown-1aryjtsy.js → aisdk-1aryjtsy.js} +1 -1
- package/dist/chunks/{wellknown-1ep2p91f.js → aisdk-1ep2p91f.js} +2 -2
- package/dist/chunks/{wellknown-prxmvqz6.js → aisdk-1f74jjjb.js} +20 -20
- package/dist/chunks/{wellknown-etnnmb6a.js → aisdk-1naekne1.js} +17 -17
- package/dist/chunks/{wellknown-728t7gc6.js → aisdk-1qskw9ds.js} +11 -11
- package/dist/chunks/{wellknown-v2b374hr.js → aisdk-1s033asv.js} +3 -3
- package/dist/chunks/{wellknown-c4t9ypm8.js → aisdk-1tz3hwqh.js} +43 -43
- package/dist/chunks/{wellknown-1x2knyw4.js → aisdk-1x2knyw4.js} +1 -1
- package/dist/chunks/{wellknown-xyz1t0qk.js → aisdk-1x6cp2ns.js} +5 -5
- package/dist/chunks/{wellknown-1yq9hg58.js → aisdk-1yq9hg58.js} +1 -1
- package/dist/chunks/{wellknown-q56zascw.js → aisdk-1zavewex.js} +28 -28
- package/dist/chunks/{wellknown-nr915jn7.js → aisdk-20pht57w.js} +4 -4
- package/dist/chunks/{wellknown-641q2q1z.js → aisdk-22jsjh4w.js} +28 -28
- package/dist/chunks/{wellknown-axsp18qw.js → aisdk-2e4egsra.js} +19 -19
- package/dist/chunks/{wellknown-2fc7eemy.js → aisdk-2fc7eemy.js} +1 -1
- package/dist/chunks/{wellknown-583ggra2.js → aisdk-2fge76wm.js} +15 -15
- package/dist/chunks/{wellknown-v6c3tqzh.js → aisdk-2ghe1sdb.js} +8 -8
- package/dist/chunks/{wellknown-f9vd95df.js → aisdk-2j6pyb0n.js} +21 -21
- package/dist/chunks/{wellknown-2ythy1tk.js → aisdk-2jadq5d6.js} +37 -37
- package/dist/chunks/{wellknown-84394vcr.js → aisdk-2prt43t7.js} +4 -4
- package/dist/chunks/{wellknown-0bbygp07.js → aisdk-2rzewps1.js} +11 -11
- package/dist/chunks/{wellknown-31avdb49.js → aisdk-31avdb49.js} +3 -3
- package/dist/chunks/{wellknown-e8r1tr1j.js → aisdk-36qzrbfm.js} +4 -4
- package/dist/chunks/{wellknown-kccz2vv3.js → aisdk-37fbk07p.js} +22 -22
- package/dist/chunks/{wellknown-c6x0pbrm.js → aisdk-39njpq4v.js} +18 -18
- package/dist/chunks/{wellknown-dr03sag8.js → aisdk-3a27dgsk.js} +34 -34
- package/dist/chunks/{wellknown-strcadht.js → aisdk-3b9ngwn6.js} +31 -31
- package/dist/chunks/{wellknown-xma42a2y.js → aisdk-3c35xw7m.js} +8 -8
- package/dist/chunks/{wellknown-cy1060tq.js → aisdk-3fevqy49.js} +17 -17
- package/dist/chunks/{wellknown-ye3r8z34.js → aisdk-3gkz7q01.js} +10 -10
- package/dist/chunks/{wellknown-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
- package/dist/chunks/{wellknown-37k1m3sd.js → aisdk-3ms7wh5c.js} +27 -27
- package/dist/chunks/{wellknown-3nnrz6f6.js → aisdk-3nnrz6f6.js} +1 -1
- package/dist/chunks/{wellknown-j3f8hyeg.js → aisdk-3ryz99p0.js} +4 -4
- package/dist/chunks/{wellknown-pqjsfgk2.js → aisdk-3sf4a8wt.js} +20 -20
- package/dist/chunks/{wellknown-tmd1r8tg.js → aisdk-3v50s0nm.js} +4 -4
- package/dist/chunks/{wellknown-w4t81q56.js → aisdk-3wd3705a.js} +1 -1
- package/dist/chunks/{wellknown-40y6dtc2.js → aisdk-40y6dtc2.js} +1 -1
- package/dist/chunks/{wellknown-xvn8mnch.js → aisdk-44w9n9s7.js} +4 -4
- package/dist/chunks/{wellknown-t48ka35x.js → aisdk-4b72pw7k.js} +5 -5
- package/dist/chunks/{wellknown-4dx1dgte.js → aisdk-4dx1dgte.js} +1 -1
- package/dist/chunks/{wellknown-4f25tdd0.js → aisdk-4f25tdd0.js} +1 -1
- package/dist/chunks/{wellknown-tqvvgzsw.js → aisdk-4h02zwvv.js} +5 -5
- package/dist/chunks/{wellknown-d8fs5gt4.js → aisdk-4kfaajce.js} +21 -21
- package/dist/chunks/{wellknown-27ktqzwr.js → aisdk-4ktpdd8g.js} +11 -11
- package/dist/chunks/{wellknown-dsq1faga.js → aisdk-4nbkseap.js} +12 -12
- package/dist/chunks/{wellknown-38nr3rfb.js → aisdk-4pr198gw.js} +38 -38
- package/dist/chunks/{wellknown-4pyp9zr9.js → aisdk-4pyp9zr9.js} +1 -1
- package/dist/chunks/{wellknown-e3766z8e.js → aisdk-4q7m519v.js} +7 -7
- package/dist/chunks/{wellknown-1n2mm7tv.js → aisdk-4qfcgkge.js} +16 -16
- package/dist/chunks/{wellknown-4v008n1t.js → aisdk-4v008n1t.js} +1 -1
- package/dist/chunks/{wellknown-stbett4v.js → aisdk-4vzr2b15.js} +3 -3
- package/dist/chunks/{wellknown-9thz99j1.js → aisdk-503rnqqm.js} +11 -11
- package/dist/chunks/{wellknown-43n69t78.js → aisdk-56143vs8.js} +6 -6
- package/dist/chunks/{wellknown-pwr3tcaa.js → aisdk-56gmx9a6.js} +10 -10
- package/dist/chunks/{wellknown-6sg7v011.js → aisdk-57kvbh9f.js} +2 -2
- package/dist/chunks/{wellknown-qr0pq923.js → aisdk-586sxvqv.js} +4 -4
- package/dist/chunks/{wellknown-gwyytpcj.js → aisdk-5asgddgx.js} +6 -6
- package/dist/chunks/{wellknown-kw0eymth.js → aisdk-5ejd13wg.js} +12 -12
- package/dist/chunks/{wellknown-5m9w47nd.js → aisdk-5m9w47nd.js} +1 -1
- package/dist/chunks/{wellknown-5zr5898h.js → aisdk-5nrbea71.js} +16 -16
- package/dist/chunks/{wellknown-1v2g13eq.js → aisdk-5wyjxme5.js} +7 -7
- package/dist/chunks/{wellknown-61qraad9.js → aisdk-61qraad9.js} +2 -2
- package/dist/chunks/{wellknown-nx57nrss.js → aisdk-684z6gka.js} +41 -41
- package/dist/chunks/{wellknown-5wsftw7f.js → aisdk-6e9j1y6c.js} +23 -23
- package/dist/chunks/{wellknown-ecm48gf7.js → aisdk-6esk6jxx.js} +15 -15
- package/dist/chunks/{wellknown-n0z1eb53.js → aisdk-6gc9tp6s.js} +13 -13
- package/dist/chunks/{wellknown-h91vm5r2.js → aisdk-6h8vcvjm.js} +9 -9
- package/dist/chunks/{wellknown-8tx2ejmc.js → aisdk-6j2z21mn.js} +9 -9
- package/dist/chunks/{wellknown-79k544d0.js → aisdk-6y2b864j.js} +7 -7
- package/dist/chunks/{wellknown-v37bc009.js → aisdk-721tb84k.js} +2 -2
- package/dist/chunks/{wellknown-80mg3ag8.js → aisdk-775hqbnd.js} +3 -3
- package/dist/chunks/{wellknown-0qahn5h0.js → aisdk-78zhyyfk.js} +81 -81
- package/dist/chunks/{wellknown-46q226g6.js → aisdk-79w4g2qb.js} +15 -15
- package/dist/chunks/{wellknown-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
- package/dist/chunks/{wellknown-qxqqmyjt.js → aisdk-7bsvr981.js} +40 -40
- package/dist/chunks/{wellknown-rx1xeagf.js → aisdk-7j05p5xv.js} +11 -11
- package/dist/chunks/{wellknown-1basnjmv.js → aisdk-7jebtk0t.js} +30 -30
- package/dist/chunks/{wellknown-tdmbv00j.js → aisdk-7jznsbvf.js} +18 -18
- package/dist/chunks/{wellknown-b1we0vk3.js → aisdk-7m22mtww.js} +19 -19
- package/dist/chunks/{wellknown-evjfqt55.js → aisdk-7rwrrcn2.js} +13 -13
- package/dist/chunks/{wellknown-dsm6hmjx.js → aisdk-7ryf1ztn.js} +8 -8
- package/dist/chunks/{wellknown-eq34fv4d.js → aisdk-7t2bcrk5.js} +18 -18
- package/dist/chunks/{wellknown-vhd8852r.js → aisdk-7vhwyy1h.js} +16 -16
- package/dist/chunks/{wellknown-5q652czm.js → aisdk-7vk7czv3.js} +7 -7
- package/dist/chunks/{wellknown-7w2ypzdf.js → aisdk-7w2ypzdf.js} +1 -1
- package/dist/chunks/{wellknown-7weczvnd.js → aisdk-7weczvnd.js} +1 -1
- package/dist/chunks/{wellknown-80pdk984.js → aisdk-80pdk984.js} +1 -1
- package/dist/chunks/{wellknown-85jq8dht.js → aisdk-85jq8dht.js} +1 -1
- package/dist/chunks/{wellknown-qq8nxmq8.js → aisdk-85yc0hq8.js} +12 -12
- package/dist/chunks/{wellknown-zpmbbmg4.js → aisdk-8729dcdd.js} +14 -14
- package/dist/chunks/{wellknown-23thvp2q.js → aisdk-87ah2vf6.js} +21 -21
- package/dist/chunks/{wellknown-xgntqjvj.js → aisdk-87z6x2pe.js} +83 -83
- package/dist/chunks/{wellknown-8b3vzgkx.js → aisdk-8b3vzgkx.js} +1 -1
- package/dist/chunks/{wellknown-kzdam8c6.js → aisdk-8hfctyyf.js} +7 -7
- package/dist/chunks/{wellknown-8kjyvwy5.js → aisdk-8kjyvwy5.js} +1 -1
- package/dist/chunks/{wellknown-8sxe6kv8.js → aisdk-8sxe6kv8.js} +2 -2
- package/dist/chunks/{wellknown-g2rjajxv.js → aisdk-8tdp8cw8.js} +23 -23
- package/dist/chunks/{wellknown-8wtp7s3z.js → aisdk-8wtp7s3z.js} +1 -1
- package/dist/chunks/{wellknown-8zv0xmg5.js → aisdk-8zv0xmg5.js} +1 -1
- package/dist/chunks/{wellknown-mw2mp8dw.js → aisdk-91fv2z8c.js} +36 -36
- package/dist/chunks/{wellknown-qbj8t3dc.js → aisdk-9288bp88.js} +10 -10
- package/dist/chunks/{wellknown-zp4kahxc.js → aisdk-92tssc24.js} +24 -24
- package/dist/chunks/{wellknown-evbwz3q2.js → aisdk-94tqjq71.js} +18 -18
- package/dist/chunks/{wellknown-cha0bdvb.js → aisdk-96dhar22.js} +36 -36
- package/dist/chunks/{wellknown-25ey1qe0.js → aisdk-9gezy0ta.js} +33 -33
- package/dist/chunks/{wellknown-wnsavktq.js → aisdk-9s0zd0nr.js} +8 -8
- package/dist/chunks/{wellknown-ve6h378e.js → aisdk-a1btkhwz.js} +20 -20
- package/dist/chunks/{wellknown-tpvfz3qe.js → aisdk-a3hr2qm9.js} +26 -26
- package/dist/chunks/{wellknown-yza0n96j.js → aisdk-a4qaryjt.js} +13 -13
- package/dist/chunks/{wellknown-63r1jezq.js → aisdk-a4z5kqp5.js} +20 -20
- package/dist/chunks/{wellknown-6a3qyq7w.js → aisdk-a621n4f6.js} +11 -11
- package/dist/chunks/{wellknown-tdzg3se5.js → aisdk-ag9se77v.js} +16 -16
- package/dist/chunks/{wellknown-5ar51n0r.js → aisdk-amxb1pax.js} +7 -7
- package/dist/chunks/{wellknown-4nr30yve.js → aisdk-ase39p5q.js} +12 -12
- package/dist/chunks/{wellknown-3nyx21qg.js → aisdk-ax1yvpgm.js} +18 -18
- package/dist/chunks/{wellknown-ayjs7tqn.js → aisdk-ayjs7tqn.js} +2 -2
- package/dist/chunks/{wellknown-184x2ne5.js → aisdk-b01wwvxe.js} +11 -11
- package/dist/chunks/aisdk-b9bbch9d.js +273 -0
- package/dist/chunks/{wellknown-m3dnz9m4.js → aisdk-bbazfr9j.js} +26 -26
- package/dist/chunks/{wellknown-9c9j4pyj.js → aisdk-bd49trsz.js} +11 -11
- package/dist/chunks/{wellknown-kyz53xa4.js → aisdk-bd4afk93.js} +23 -23
- package/dist/chunks/{wellknown-dxbmx42z.js → aisdk-begbag3g.js} +24 -24
- package/dist/chunks/{wellknown-w0v8te3a.js → aisdk-btz4vdf2.js} +9 -9
- package/dist/chunks/{wellknown-m2y57w8k.js → aisdk-ce3tf4ne.js} +18 -18
- package/dist/chunks/{wellknown-vwrwz5ex.js → aisdk-cm0vzj2n.js} +194 -194
- package/dist/chunks/{wellknown-vmxsyvj6.js → aisdk-cr4rfj9z.js} +4 -4
- package/dist/chunks/{wellknown-cwrgdav8.js → aisdk-cwrgdav8.js} +2 -2
- package/dist/chunks/{wellknown-tss705n6.js → aisdk-d2jxnkqd.js} +19 -19
- package/dist/chunks/{wellknown-d4v9tmah.js → aisdk-d4v9tmah.js} +2 -2
- package/dist/chunks/{wellknown-yte9g17j.js → aisdk-dbddn8gk.js} +27 -27
- package/dist/chunks/{wellknown-8m9p3vgp.js → aisdk-ddyyp427.js} +5 -5
- package/dist/chunks/{wellknown-pr0ynw92.js → aisdk-dn6vvjkq.js} +4 -4
- package/dist/chunks/{wellknown-27qg90p7.js → aisdk-dsv0mf57.js} +16 -16
- package/dist/chunks/{wellknown-dt77769w.js → aisdk-dt77769w.js} +1 -1
- package/dist/chunks/{wellknown-f7hsj4em.js → aisdk-e451z2y6.js} +3 -3
- package/dist/chunks/{wellknown-cbs8fcwx.js → aisdk-e8gak9bx.js} +17 -17
- package/dist/chunks/{wellknown-13tsap6q.js → aisdk-e8qhv52p.js} +46 -46
- package/dist/chunks/{wellknown-f3p75wf2.js → aisdk-ek4mh5pg.js} +15 -15
- package/dist/chunks/{wellknown-hs9f9bk4.js → aisdk-enezt5d6.js} +26 -26
- package/dist/chunks/{wellknown-eqw4pqj1.js → aisdk-eqw4pqj1.js} +2 -2
- package/dist/chunks/{wellknown-qmv579w2.js → aisdk-er9d18x6.js} +31 -31
- package/dist/chunks/{wellknown-s2cspse1.js → aisdk-erpgh78q.js} +4 -4
- package/dist/chunks/{wellknown-qt3ze8rr.js → aisdk-esg5xb2a.js} +8 -8
- package/dist/chunks/aisdk-ev660z6k.js +18 -0
- package/dist/chunks/{wellknown-jrwdf4r9.js → aisdk-ew00j23b.js} +10 -10
- package/dist/chunks/{wellknown-h4wgh636.js → aisdk-f053wwz5.js} +11 -11
- package/dist/chunks/{wellknown-mrnef867.js → aisdk-f3qdxw07.js} +53 -53
- package/dist/chunks/{wellknown-15v75j2x.js → aisdk-f48g45vp.js} +18 -18
- package/dist/chunks/{wellknown-ra8fnavv.js → aisdk-f5w7jr2y.js} +36 -36
- package/dist/chunks/{wellknown-fg9p65nk.js → aisdk-fg9p65nk.js} +2 -2
- package/dist/chunks/{wellknown-0w7t4ved.js → aisdk-fqtyqcmx.js} +47 -47
- package/dist/chunks/{wellknown-yarzfda3.js → aisdk-fxf50664.js} +13 -13
- package/dist/chunks/{wellknown-1cyffnvs.js → aisdk-fzenvpj1.js} +30 -30
- package/dist/chunks/{wellknown-hqyxx6vr.js → aisdk-g4hmqmty.js} +8 -8
- package/dist/chunks/{wellknown-b26ddj6h.js → aisdk-g4txs7zc.js} +4 -4
- package/dist/chunks/{wellknown-fsa0gwwp.js → aisdk-g7bzs5g0.js} +3 -3
- package/dist/chunks/{wellknown-gbjdnr5j.js → aisdk-gbjdnr5j.js} +2 -2
- package/dist/chunks/{wellknown-q5t45acw.js → aisdk-gehd6x6y.js} +94 -94
- package/dist/chunks/{wellknown-nhwrj81q.js → aisdk-ggzxzwph.js} +15 -15
- package/dist/chunks/{wellknown-m6mf4mcx.js → aisdk-ghw2q90v.js} +23 -23
- package/dist/chunks/{wellknown-vrhb1srk.js → aisdk-gmhw82g6.js} +9 -9
- package/dist/chunks/{wellknown-z7c6cvks.js → aisdk-gnm9zfyf.js} +5 -5
- package/dist/chunks/{wellknown-yam2w8sh.js → aisdk-gpvcxtjg.js} +6 -6
- package/dist/chunks/{wellknown-cf4nqrhb.js → aisdk-grbgb1th.js} +33 -33
- package/dist/chunks/{wellknown-jkakbz53.js → aisdk-gsyv4rf3.js} +17 -17
- package/dist/chunks/{wellknown-my4fpfwk.js → aisdk-h2aspcra.js} +13 -13
- package/dist/chunks/{wellknown-km209ejh.js → aisdk-h4m7yyn3.js} +24 -24
- package/dist/chunks/{wellknown-xmp7pdtz.js → aisdk-hc4gekvm.js} +33 -33
- package/dist/chunks/{wellknown-hgzwgvze.js → aisdk-hgzwgvze.js} +2 -2
- package/dist/chunks/{wellknown-hj0xet7m.js → aisdk-hj0xet7m.js} +2 -2
- package/dist/chunks/{wellknown-g7qdwrsk.js → aisdk-htk0ea2j.js} +7 -7
- package/dist/chunks/{wellknown-28zec0f4.js → aisdk-hvsxw0jd.js} +12 -12
- package/dist/chunks/{wellknown-tr8x705m.js → aisdk-j376ae4e.js} +5 -5
- package/dist/chunks/{wellknown-d8vxf25s.js → aisdk-j6t60dp0.js} +32 -32
- package/dist/chunks/{wellknown-ze75qvmd.js → aisdk-j9nxzz3g.js} +3 -3
- package/dist/chunks/{wellknown-r9k0m1fx.js → aisdk-jc512s3p.js} +8 -8
- package/dist/chunks/{wellknown-7mhsjf65.js → aisdk-je31fw81.js} +2 -2
- package/dist/chunks/{wellknown-jm70asfg.js → aisdk-jm70asfg.js} +1 -1
- package/dist/chunks/{wellknown-qjgpr7gk.js → aisdk-jmd7tb51.js} +376 -376
- package/dist/chunks/{wellknown-j2htf90w.js → aisdk-jv4h3f2w.js} +7 -7
- package/dist/chunks/{wellknown-44pmzq9c.js → aisdk-jxd6f16v.js} +2 -2
- package/dist/chunks/{wellknown-yybgvvmq.js → aisdk-kbgs7tyr.js} +4 -4
- package/dist/chunks/{wellknown-mja1swvv.js → aisdk-kc45z3h4.js} +48 -48
- package/dist/chunks/{wellknown-y57h9apw.js → aisdk-kfge3pfm.js} +4 -4
- package/dist/chunks/{wellknown-v7sr38g7.js → aisdk-kmpykya8.js} +7 -7
- package/dist/chunks/{wellknown-kt3bjfbg.js → aisdk-kt3bjfbg.js} +1 -1
- package/dist/chunks/{wellknown-7qec28h5.js → aisdk-kv781v4h.js} +31 -31
- package/dist/chunks/{wellknown-d5mm1dvd.js → aisdk-kxnmw1dp.js} +7 -7
- package/dist/chunks/{wellknown-kzczzf4v.js → aisdk-kzczzf4v.js} +1 -1
- package/dist/chunks/{wellknown-m1714858.js → aisdk-m1714858.js} +1 -1
- package/dist/chunks/{wellknown-14bfnkfq.js → aisdk-m1jf72ck.js} +45 -45
- package/dist/chunks/{wellknown-m4p4r8nc.js → aisdk-m4p4r8nc.js} +1 -1
- package/dist/chunks/{wellknown-9ch8vfxj.js → aisdk-m4pn5tm0.js} +50 -50
- package/dist/chunks/{wellknown-m90tx7mw.js → aisdk-m90tx7mw.js} +1 -1
- package/dist/chunks/{wellknown-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
- package/dist/chunks/{wellknown-mb7mbhnz.js → aisdk-mb7mbhnz.js} +3 -3
- package/dist/chunks/{wellknown-pxbvf64t.js → aisdk-mbhm97dq.js} +5 -5
- package/dist/chunks/{wellknown-cyx4wr0f.js → aisdk-mex3sg7w.js} +10 -10
- package/dist/chunks/{wellknown-g6yp65q8.js → aisdk-mfaczyzq.js} +16 -16
- package/dist/chunks/{wellknown-81jb41jf.js → aisdk-mhdwvfsv.js} +49 -49
- package/dist/chunks/{wellknown-66d8dez0.js → aisdk-mr3xrd1g.js} +52 -52
- package/dist/chunks/{wellknown-87bmqdkz.js → aisdk-mt7tkt1k.js} +18 -18
- package/dist/chunks/{wellknown-p33cc0wg.js → aisdk-mtxnd1fj.js} +23 -23
- package/dist/chunks/{wellknown-ayxe58k5.js → aisdk-mv4qm2s4.js} +28 -28
- package/dist/chunks/{wellknown-nrz3a2k3.js → aisdk-n1z7dayf.js} +12 -12
- package/dist/chunks/{wellknown-e4rmxmhs.js → aisdk-n35t2vgz.js} +4 -4
- package/dist/chunks/{wellknown-c610j0ka.js → aisdk-n6c0ry9n.js} +6 -6
- package/dist/chunks/{wellknown-e14e5bqv.js → aisdk-n6tvvmnw.js} +10 -10
- package/dist/chunks/{wellknown-bm7xpb2p.js → aisdk-n70wf70b.js} +20 -20
- package/dist/chunks/{wellknown-gqegjds9.js → aisdk-n7p5aby2.js} +48 -48
- package/dist/chunks/{wellknown-652m3am9.js → aisdk-nd60m3ta.js} +24 -24
- package/dist/chunks/{wellknown-75a2gs08.js → aisdk-nfhv1t94.js} +1 -1
- package/dist/chunks/{wellknown-s5zrq09q.js → aisdk-nkzb5f1v.js} +8 -8
- package/dist/chunks/{wellknown-0cr0jx4r.js → aisdk-nm4fzak7.js} +8 -8
- package/dist/chunks/{wellknown-8bcc8xgx.js → aisdk-nq1mg43n.js} +3 -3
- package/dist/chunks/{wellknown-p3g3b7x5.js → aisdk-nv9tsjma.js} +6 -6
- package/dist/chunks/{wellknown-aq2e9c4r.js → aisdk-nxfqjndq.js} +3 -3
- package/dist/chunks/{wellknown-rkrs0bvn.js → aisdk-ny24wdce.js} +41 -41
- package/dist/chunks/{wellknown-a8x8zk8z.js → aisdk-p201jne6.js} +6 -6
- package/dist/chunks/{wellknown-drdmzpww.js → aisdk-p6ptthry.js} +4 -4
- package/dist/chunks/{wellknown-2mbjfaxd.js → aisdk-p76me67c.js} +4 -4
- package/dist/chunks/{wellknown-v84ns8g0.js → aisdk-pdyy7gz9.js} +16 -16
- package/dist/chunks/{wellknown-f4xxa474.js → aisdk-pfjryf1x.js} +7 -7
- package/dist/chunks/{wellknown-pknna89w.js → aisdk-pknna89w.js} +1 -1
- package/dist/chunks/{wellknown-z06gyfty.js → aisdk-pq0zk47q.js} +33 -33
- package/dist/chunks/{wellknown-1ww6mj8f.js → aisdk-ptjgxvm7.js} +9 -9
- package/dist/chunks/{wellknown-hccp4m5y.js → aisdk-pymb48n1.js} +8 -8
- package/dist/chunks/{wellknown-dm4ee7c9.js → aisdk-q47m729n.js} +59 -59
- package/dist/chunks/{wellknown-amjjh717.js → aisdk-q5bk3gvt.js} +5 -5
- package/dist/chunks/{wellknown-g6ce35sq.js → aisdk-q6169bpd.js} +12 -12
- package/dist/chunks/{wellknown-rzcftq1z.js → aisdk-q9zjhx43.js} +60 -60
- package/dist/chunks/{wellknown-w1zsvdr8.js → aisdk-qaf33g9m.js} +21 -21
- package/dist/chunks/{wellknown-xr62gm6v.js → aisdk-qakab0ph.js} +34 -34
- package/dist/chunks/{wellknown-s3xmv40e.js → aisdk-qc7j8vb7.js} +5 -5
- package/dist/chunks/aisdk-qg5d3qey.js +26 -0
- package/dist/chunks/{wellknown-m6nb5czf.js → aisdk-qkv3pk5p.js} +26 -26
- package/dist/chunks/{wellknown-tvwsaxa1.js → aisdk-qm9pt90z.js} +11 -11
- package/dist/chunks/{wellknown-jkenhkn3.js → aisdk-qmvdf6k5.js} +11 -11
- package/dist/chunks/{wellknown-qp7r0hxv.js → aisdk-qp7r0hxv.js} +1 -1
- package/dist/chunks/{wellknown-m6vyjheh.js → aisdk-qtd7mr94.js} +32 -32
- package/dist/chunks/{wellknown-ef01k0v5.js → aisdk-qy94z0q3.js} +9 -9
- package/dist/chunks/{wellknown-r2wb5enr.js → aisdk-qza0cy21.js} +19 -19
- package/dist/chunks/{wellknown-xstwqhrk.js → aisdk-r0g4qhb1.js} +8 -8
- package/dist/chunks/{wellknown-963hk181.js → aisdk-r9z26v6p.js} +9 -9
- package/dist/chunks/{wellknown-wyrdxqa1.js → aisdk-ra5zg4y5.js} +11 -11
- package/dist/chunks/{wellknown-6m8vj9yr.js → aisdk-rb0e2ctr.js} +10 -10
- package/dist/chunks/{wellknown-rb9dy4dg.js → aisdk-rb9dy4dg.js} +1 -1
- package/dist/chunks/{wellknown-s14vrjdz.js → aisdk-rf5xdxz2.js} +6 -6
- package/dist/chunks/{wellknown-rgc9cx3e.js → aisdk-rgc9cx3e.js} +2 -2
- package/dist/chunks/{wellknown-c5zvymhv.js → aisdk-rj7j5fvs.js} +4 -4
- package/dist/chunks/{wellknown-evvjvga6.js → aisdk-rjd4ght5.js} +45 -45
- package/dist/chunks/{wellknown-f2nzj6et.js → aisdk-rrym2d7k.js} +9 -9
- package/dist/chunks/{wellknown-ae0qpv5r.js → aisdk-rsvhexnm.js} +16 -16
- package/dist/chunks/{wellknown-w91xtpfr.js → aisdk-rwqkr5yq.js} +17 -17
- package/dist/chunks/{wellknown-rk91jcqn.js → aisdk-s0b19rzj.js} +22 -22
- package/dist/chunks/{wellknown-mqf256nb.js → aisdk-s0zpw7pd.js} +12 -12
- package/dist/chunks/{wellknown-2p60zmnr.js → aisdk-s1ba0vj0.js} +2 -2
- package/dist/chunks/{wellknown-jcdena8z.js → aisdk-s2rqz5wb.js} +26 -26
- package/dist/chunks/{wellknown-7ahda34f.js → aisdk-s3jc10rj.js} +19 -19
- package/dist/chunks/{wellknown-x51rz0sc.js → aisdk-s3rv10yp.js} +28 -28
- package/dist/chunks/{wellknown-s47rahr7.js → aisdk-s47rahr7.js} +1 -1
- package/dist/chunks/{wellknown-sbya78hr.js → aisdk-sbya78hr.js} +1 -1
- package/dist/chunks/{wellknown-ghrv1g9c.js → aisdk-sdt5j0rm.js} +4 -4
- package/dist/chunks/{wellknown-5k31ttt8.js → aisdk-sk2v7ve7.js} +41 -41
- package/dist/chunks/{wellknown-fk6pt02a.js → aisdk-sn77dt8p.js} +56 -56
- package/dist/chunks/{wellknown-mjwhre59.js → aisdk-snmv5tc2.js} +7 -7
- package/dist/chunks/{wellknown-tyekj3r9.js → aisdk-sq5fdpmn.js} +30 -30
- package/dist/chunks/{wellknown-n67wry4g.js → aisdk-sseh985f.js} +9 -9
- package/dist/chunks/{wellknown-svcy3p9a.js → aisdk-svcy3p9a.js} +1 -1
- package/dist/chunks/{wellknown-qbknckpd.js → aisdk-t13qr1dd.js} +4 -4
- package/dist/chunks/{wellknown-1b0p7szg.js → aisdk-t307fb60.js} +3 -3
- package/dist/chunks/{wellknown-c95q701f.js → aisdk-t69jc1z4.js} +5 -5
- package/dist/chunks/{wellknown-8dea992e.js → aisdk-t7xjw7j2.js} +10 -10
- package/dist/chunks/{wellknown-tbpn7jtk.js → aisdk-tbpn7jtk.js} +1 -1
- package/dist/chunks/{wellknown-tczq8hjw.js → aisdk-tczq8hjw.js} +1 -1
- package/dist/chunks/{wellknown-zg3dd62n.js → aisdk-td1c14kr.js} +2 -2
- package/dist/chunks/{wellknown-gxs71cxp.js → aisdk-tg7s7b5t.js} +4 -4
- package/dist/chunks/{wellknown-8cqsbq15.js → aisdk-trmh86bb.js} +40 -40
- package/dist/chunks/{wellknown-tvtps2q9.js → aisdk-tvtps2q9.js} +1 -1
- package/dist/chunks/{wellknown-twssxy5n.js → aisdk-twssxy5n.js} +2 -2
- package/dist/chunks/{wellknown-67ehfp3r.js → aisdk-tx7xfjek.js} +34 -34
- package/dist/chunks/{wellknown-j5221a8k.js → aisdk-tzzrxahk.js} +11 -11
- package/dist/chunks/{wellknown-v0t96s7a.js → aisdk-v0t96s7a.js} +1 -1
- package/dist/chunks/{wellknown-ds6fnft9.js → aisdk-v23hhw89.js} +3 -3
- package/dist/chunks/{wellknown-v2r1d0zg.js → aisdk-v2r1d0zg.js} +1 -1
- package/dist/chunks/{wellknown-26wfx3k0.js → aisdk-v4bj6baw.js} +4 -4
- package/dist/chunks/{wellknown-aedwt843.js → aisdk-v5hpj9dd.js} +4 -4
- package/dist/chunks/{wellknown-z94e4jy3.js → aisdk-vajpn6aq.js} +24 -24
- package/dist/chunks/{wellknown-mtmh24f8.js → aisdk-vbzkhvdq.js} +31 -31
- package/dist/chunks/{wellknown-5kcdngh6.js → aisdk-vfzbs16a.js} +4 -4
- package/dist/chunks/{wellknown-vjf35v1f.js → aisdk-vjf35v1f.js} +1 -1
- package/dist/chunks/{wellknown-zf0c34x3.js → aisdk-vszn7bs3.js} +9 -9
- package/dist/chunks/{wellknown-p0cgagxb.js → aisdk-vt36y783.js} +6 -6
- package/dist/chunks/{wellknown-esnd5w8j.js → aisdk-w0bvmzjm.js} +5 -5
- package/dist/chunks/{wellknown-5enarcya.js → aisdk-w2eysc6j.js} +6 -6
- package/dist/chunks/{wellknown-7g49ttx0.js → aisdk-w2xfegj1.js} +16 -16
- package/dist/chunks/{wellknown-t0yxsa4w.js → aisdk-w37wwrqm.js} +11 -11
- package/dist/chunks/{wellknown-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
- package/dist/chunks/{wellknown-1ysk8pqb.js → aisdk-w9y1k97s.js} +21 -21
- package/dist/chunks/{wellknown-wakvkjy4.js → aisdk-wakvkjy4.js} +1 -1
- package/dist/chunks/{wellknown-wd87259q.js → aisdk-wd87259q.js} +1 -1
- package/dist/chunks/aisdk-we9eewdm.js +35 -0
- package/dist/chunks/{wellknown-wegkxhrn.js → aisdk-wegkxhrn.js} +2 -2
- package/dist/chunks/{wellknown-pyzh8wbn.js → aisdk-wfkcbjb5.js} +8 -8
- package/dist/chunks/{wellknown-mnyhyg0k.js → aisdk-wq08meq6.js} +9 -9
- package/dist/chunks/{wellknown-6gkjea5y.js → aisdk-wq62csb0.js} +15 -15
- package/dist/chunks/{wellknown-w687dnns.js → aisdk-wr3re1en.js} +4 -4
- package/dist/chunks/{wellknown-smg32ne4.js → aisdk-wta6202z.js} +18 -18
- package/dist/chunks/{wellknown-c8cpqe4g.js → aisdk-ww6xxge1.js} +21 -21
- package/dist/chunks/{wellknown-j1zpf99x.js → aisdk-xacrkbdt.js} +7 -7
- package/dist/chunks/{wellknown-xd6fx7tp.js → aisdk-xbbbq08w.js} +16 -16
- package/dist/chunks/{wellknown-xd9cc171.js → aisdk-xd9cc171.js} +1 -1
- package/dist/chunks/{wellknown-04whjz6n.js → aisdk-xjbsd7zy.js} +9 -9
- package/dist/chunks/{wellknown-thdadhbn.js → aisdk-xjf932n8.js} +6 -6
- package/dist/chunks/{wellknown-cq4jgwga.js → aisdk-xmdz2ynj.js} +3 -3
- package/dist/chunks/{wellknown-q5jvrzph.js → aisdk-xsj5ak6x.js} +13 -13
- package/dist/chunks/{wellknown-xxschbft.js → aisdk-xxschbft.js} +1 -1
- package/dist/chunks/{wellknown-x4mcewfn.js → aisdk-xz07m27x.js} +4 -4
- package/dist/chunks/{wellknown-vk1gq6xh.js → aisdk-xz5n7eyq.js} +8 -8
- package/dist/chunks/{wellknown-derxze1q.js → aisdk-y33bhg8s.js} +30 -30
- package/dist/chunks/{wellknown-929zkk1r.js → aisdk-y398vq4b.js} +5 -5
- package/dist/chunks/{wellknown-yb20nhc3.js → aisdk-yb20nhc3.js} +1 -1
- package/dist/chunks/{wellknown-yr705xyq.js → aisdk-yr705xyq.js} +1 -1
- package/dist/chunks/{wellknown-9d854vd9.js → aisdk-ysqr8c6t.js} +20 -20
- package/dist/chunks/{wellknown-7fpr7hz7.js → aisdk-ytfr5x0q.js} +13 -13
- package/dist/chunks/{wellknown-6besst92.js → aisdk-yvj3tegn.js} +16 -16
- package/dist/chunks/{wellknown-yvtc2x31.js → aisdk-yvtc2x31.js} +1 -1
- package/dist/chunks/aisdk-ywh3xphk.js +16 -0
- package/dist/chunks/{wellknown-g5ajqn12.js → aisdk-z080rjh6.js} +4 -4
- package/dist/chunks/{wellknown-z0wbgq7s.js → aisdk-z0wbgq7s.js} +1 -1
- package/dist/chunks/{wellknown-ck63xrcz.js → aisdk-z54rs5r9.js} +12 -12
- package/dist/chunks/{wellknown-qctje6mm.js → aisdk-zkc29vwy.js} +11 -11
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +150 -150
- package/dist/codemode/instructions.js +8 -8
- package/dist/codemode/tool.js +157 -157
- package/dist/command.js +94 -94
- package/dist/config/discovery.js +97 -97
- package/dist/config/integration.js +5 -5
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +113 -113
- package/dist/config/plugin/agent.js +132 -132
- package/dist/config/plugin/command.js +247 -247
- package/dist/config/plugin/compaction.js +175 -175
- package/dist/config/plugin/compatibility.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +132 -132
- package/dist/config/plugin/image.js +131 -131
- package/dist/config/plugin/instruction.js +132 -132
- package/dist/config/plugin/location-watcher.js +131 -131
- package/dist/config/plugin/mcp.js +146 -146
- package/dist/config/plugin/policy.js +131 -131
- package/dist/config/plugin/provider.js +131 -131
- package/dist/config/plugin/reference.js +133 -133
- package/dist/config/plugin/shell.js +133 -133
- package/dist/config/plugin/skill-file.js +151 -151
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +158 -158
- package/dist/config/plugin/snapshot.js +131 -131
- package/dist/config/plugin/source.js +135 -135
- package/dist/config/plugin/tool-output.js +132 -132
- package/dist/config/plugin/websearch.js +132 -132
- package/dist/config/plugin/worktree.js +133 -133
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +132 -132
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +94 -94
- package/dist/database/batch.js +1 -1
- package/dist/database/database.js +77 -77
- 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/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +76 -76
- 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/v1-migration.bun.js +105 -105
- package/dist/effect/app-node-builder.js +450 -450
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +107 -107
- 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 +81 -81
- package/dist/file-access.js +162 -162
- package/dist/file-mutation.js +108 -108
- package/dist/file-retention.js +1 -1
- package/dist/file-write.js +166 -166
- 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/file-watch.js +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +258 -258
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +113 -113
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +116 -116
- package/dist/flag.js +134 -134
- package/dist/form.js +95 -95
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +121 -121
- package/dist/git.js +11 -11
- package/dist/github-copilot/models.js +113 -113
- package/dist/image/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +441 -441
- package/dist/instruction-discovery.js +92 -92
- package/dist/instructions/builtins.js +101 -101
- package/dist/instructions/index.js +4 -4
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +102 -102
- package/dist/job/list.js +5 -5
- package/dist/job/recovery.js +2 -2
- package/dist/job/sql.js +2 -2
- package/dist/job.js +90 -90
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +187 -187
- package/dist/location-lifecycle.js +155 -155
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +438 -438
- package/dist/location.js +102 -102
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +161 -161
- package/dist/mcp/connection.js +106 -106
- package/dist/mcp/event-errors.js +1 -1
- package/dist/mcp/index.js +147 -147
- package/dist/mcp/instructions.js +192 -192
- package/dist/mcp/oauth.js +90 -90
- package/dist/mcp/pool.js +110 -110
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +161 -161
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +113 -113
- package/dist/model-resolver.js +113 -113
- package/dist/model-retry.js +1 -1
- package/dist/model.js +114 -114
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +118 -118
- package/dist/oauth/page.js +1 -1
- package/dist/oauth/redirect.js +1 -1
- package/dist/permission/saved.js +89 -89
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +160 -160
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +97 -97
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +85 -85
- package/dist/plugin/command.js +146 -146
- package/dist/plugin/fork-notice.js +3 -3
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +251 -251
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +418 -418
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +111 -111
- package/dist/plugin/module.js +130 -130
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +151 -151
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +107 -107
- package/dist/plugin/provider/azure.js +134 -134
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +135 -135
- package/dist/plugin/provider/claude-agent/aisdk.js +118 -118
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/session.js +6 -6
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +149 -149
- package/dist/plugin/provider/claude-agent/instructions.js +115 -115
- package/dist/plugin/provider/claude-agent/integration.js +116 -116
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +109 -109
- package/dist/plugin/provider/claude-agent/session.js +113 -113
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +131 -131
- package/dist/plugin/provider/cloudflare-workers-ai.js +131 -131
- package/dist/plugin/provider/configured.js +127 -127
- package/dist/plugin/provider/credential-settings.js +88 -88
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +110 -110
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +112 -112
- package/dist/plugin/provider/gitlab.js +111 -111
- package/dist/plugin/provider/google-vertex.js +128 -128
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +144 -144
- package/dist/plugin/provider/local.js +141 -141
- package/dist/plugin/provider/modal.js +109 -109
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +144 -144
- package/dist/plugin/provider/openai-context-caps.js +107 -107
- package/dist/plugin/provider/openai.js +135 -135
- package/dist/plugin/provider/opencode-watches.js +4 -4
- package/dist/plugin/provider/opencode.js +163 -163
- package/dist/plugin/provider/openrouter.js +105 -105
- package/dist/plugin/provider/poe.js +91 -91
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +105 -105
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +133 -133
- package/dist/plugin/provider/vllm.js +144 -144
- package/dist/plugin/provider/xai.js +105 -105
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +242 -242
- package/dist/plugin/sdk.js +89 -89
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +154 -154
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +430 -430
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +107 -107
- package/dist/plugin/warming.js +131 -131
- package/dist/plugin/websearch/exa.js +8 -8
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +10 -10
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +9 -9
- package/dist/plugin/websearch/provider.js +1 -1
- package/dist/plugin/websearch/tavily.js +7 -7
- package/dist/plugin/websearch/tinyfish.js +9 -9
- package/dist/plugin.js +262 -262
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +103 -103
- package/dist/provider.js +109 -109
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +113 -113
- package/dist/reference/instructions.js +100 -100
- package/dist/reference.js +103 -103
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +111 -111
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +256 -256
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +270 -270
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +133 -133
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +173 -173
- package/dist/session/context.js +208 -208
- package/dist/session/diff.js +101 -101
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +274 -274
- package/dist/session/execution/subagent-report.js +147 -147
- package/dist/session/execution.js +174 -174
- package/dist/session/generate.js +208 -208
- package/dist/session/history.js +141 -141
- package/dist/session/inbox.js +150 -150
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +89 -89
- package/dist/session/instruction-state.js +9 -9
- package/dist/session/instructions.js +148 -148
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +173 -173
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +176 -176
- package/dist/session/projector.js +148 -148
- package/dist/session/prompt.js +153 -153
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +144 -144
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +263 -263
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +115 -115
- package/dist/session/runner/publish-llm-event.js +155 -155
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +168 -168
- package/dist/session/runner/to-llm-message.js +142 -142
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +196 -196
- package/dist/session/shell.js +149 -149
- package/dist/session/skill.js +152 -152
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +85 -85
- package/dist/session/store.js +147 -147
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +175 -175
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +212 -212
- package/dist/session/to-session-error.js +154 -154
- package/dist/session/transfer.js +257 -257
- package/dist/session/usage.js +1 -1
- package/dist/session.js +251 -251
- package/dist/shared-cache.js +5 -5
- 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 +5 -5
- package/dist/shell.js +149 -149
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +154 -154
- package/dist/skill.js +161 -161
- package/dist/snapshot.js +104 -104
- 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 +191 -191
- package/dist/tool/plugin/artifact.js +246 -246
- package/dist/tool/plugin/edit.js +172 -172
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +174 -174
- package/dist/tool/plugin/grep.js +173 -173
- package/dist/tool/plugin/image-generate.js +257 -257
- package/dist/tool/plugin/mcp-events.js +168 -168
- package/dist/tool/plugin/mcp-resource.js +172 -172
- package/dist/tool/plugin/opencode.js +168 -168
- package/dist/tool/plugin/patch.js +171 -171
- package/dist/tool/plugin/question.js +153 -153
- package/dist/tool/plugin/read.js +177 -177
- package/dist/tool/plugin/schedule.js +262 -262
- package/dist/tool/plugin/shell.js +253 -253
- package/dist/tool/plugin/skill.js +162 -162
- package/dist/tool/plugin/subagent.js +251 -251
- package/dist/tool/plugin/todo.js +156 -156
- package/dist/tool/plugin/webfetch.js +158 -158
- package/dist/tool/plugin/websearch.js +160 -160
- package/dist/tool/plugin/write.js +171 -171
- package/dist/tool/read-filesystem.js +116 -116
- package/dist/tool/runtime.js +1 -1
- package/dist/tool/search.js +109 -109
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +163 -163
- package/dist/usage-limits.js +92 -92
- package/dist/util/canonical-json.js +1 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +106 -106
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +105 -105
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +97 -97
- package/dist/websearch.js +103 -103
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +90 -90
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +111 -111
- package/package.json +9 -9
- package/dist/chunks/wellknown-2jjfs7g5.js +0 -16
- package/dist/chunks/wellknown-3qx6b3ma.js +0 -273
- package/dist/chunks/wellknown-6zjm2phc.js +0 -18
- package/dist/chunks/wellknown-d2q2a2xy.js +0 -26
- package/dist/chunks/wellknown-kaa67y14.js +0 -35
- /package/dist/chunks/{wellknown-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{wellknown-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
- /package/dist/chunks/{wellknown-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
- /package/dist/chunks/{wellknown-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
- /package/dist/chunks/{wellknown-1kah00gy.js → aisdk-1kah00gy.js} +0 -0
- /package/dist/chunks/{wellknown-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
- /package/dist/chunks/{wellknown-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
- /package/dist/chunks/{wellknown-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{wellknown-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
- /package/dist/chunks/{wellknown-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
- /package/dist/chunks/{wellknown-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
- /package/dist/chunks/{wellknown-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
- /package/dist/chunks/{wellknown-4qk9sjk2.js → aisdk-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{wellknown-53557ph1.js → aisdk-53557ph1.js} +0 -0
- /package/dist/chunks/{wellknown-5w3e23ze.js → aisdk-5w3e23ze.js} +0 -0
- /package/dist/chunks/{wellknown-6agm2x70.js → aisdk-6agm2x70.js} +0 -0
- /package/dist/chunks/{wellknown-6prwharc.js → aisdk-6prwharc.js} +0 -0
- /package/dist/chunks/{wellknown-6q2bdcd1.js → aisdk-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{wellknown-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
- /package/dist/chunks/{wellknown-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
- /package/dist/chunks/{wellknown-7rvsyqjv.js → aisdk-7rvsyqjv.js} +0 -0
- /package/dist/chunks/{wellknown-822emrt2.js → aisdk-822emrt2.js} +0 -0
- /package/dist/chunks/{wellknown-84wd9syh.js → aisdk-84wd9syh.js} +0 -0
- /package/dist/chunks/{wellknown-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
- /package/dist/chunks/{wellknown-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
- /package/dist/chunks/{wellknown-8wj87zfr.js → aisdk-8wj87zfr.js} +0 -0
- /package/dist/chunks/{wellknown-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
- /package/dist/chunks/{wellknown-9ceax7yg.js → aisdk-9ceax7yg.js} +0 -0
- /package/dist/chunks/{wellknown-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{wellknown-ade8csyh.js → aisdk-ade8csyh.js} +0 -0
- /package/dist/chunks/{wellknown-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{wellknown-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
- /package/dist/chunks/{wellknown-beh6qq61.js → aisdk-beh6qq61.js} +0 -0
- /package/dist/chunks/{wellknown-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{wellknown-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{wellknown-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
- /package/dist/chunks/{wellknown-cqv5kn06.js → aisdk-cqv5kn06.js} +0 -0
- /package/dist/chunks/{wellknown-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{wellknown-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
- /package/dist/chunks/{wellknown-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{wellknown-df08tz66.js → aisdk-df08tz66.js} +0 -0
- /package/dist/chunks/{wellknown-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
- /package/dist/chunks/{wellknown-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
- /package/dist/chunks/{wellknown-ean2d8b5.js → aisdk-ean2d8b5.js} +0 -0
- /package/dist/chunks/{wellknown-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
- /package/dist/chunks/{wellknown-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
- /package/dist/chunks/{wellknown-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
- /package/dist/chunks/{wellknown-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{wellknown-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
- /package/dist/chunks/{wellknown-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
- /package/dist/chunks/{wellknown-fkpq3x5p.js → aisdk-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{wellknown-g86h250q.js → aisdk-g86h250q.js} +0 -0
- /package/dist/chunks/{wellknown-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
- /package/dist/chunks/{wellknown-gftt206x.js → aisdk-gftt206x.js} +0 -0
- /package/dist/chunks/{wellknown-hcxmzztb.js → aisdk-hcxmzztb.js} +0 -0
- /package/dist/chunks/{wellknown-hk9envan.js → aisdk-hk9envan.js} +0 -0
- /package/dist/chunks/{wellknown-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
- /package/dist/chunks/{wellknown-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
- /package/dist/chunks/{wellknown-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{wellknown-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{wellknown-jwr30sdr.js → aisdk-jwr30sdr.js} +0 -0
- /package/dist/chunks/{wellknown-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{wellknown-m18g726c.js → aisdk-m18g726c.js} +0 -0
- /package/dist/chunks/{wellknown-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
- /package/dist/chunks/{wellknown-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
- /package/dist/chunks/{wellknown-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
- /package/dist/chunks/{wellknown-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
- /package/dist/chunks/{wellknown-nh4v3znn.js → aisdk-nh4v3znn.js} +0 -0
- /package/dist/chunks/{wellknown-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
- /package/dist/chunks/{wellknown-p71gwv9c.js → aisdk-p71gwv9c.js} +0 -0
- /package/dist/chunks/{wellknown-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
- /package/dist/chunks/{wellknown-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
- /package/dist/chunks/{wellknown-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
- /package/dist/chunks/{wellknown-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
- /package/dist/chunks/{wellknown-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
- /package/dist/chunks/{wellknown-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
- /package/dist/chunks/{wellknown-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{wellknown-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{wellknown-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
- /package/dist/chunks/{wellknown-syrav9an.js → aisdk-syrav9an.js} +0 -0
- /package/dist/chunks/{wellknown-t03h4f5z.js → aisdk-t03h4f5z.js} +0 -0
- /package/dist/chunks/{wellknown-ty7weeps.js → aisdk-ty7weeps.js} +0 -0
- /package/dist/chunks/{wellknown-v2dnd5dt.js → aisdk-v2dnd5dt.js} +0 -0
- /package/dist/chunks/{wellknown-ve7vex1e.js → aisdk-ve7vex1e.js} +0 -0
- /package/dist/chunks/{wellknown-vtarvj67.js → aisdk-vtarvj67.js} +0 -0
- /package/dist/chunks/{wellknown-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
- /package/dist/chunks/{wellknown-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{wellknown-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
- /package/dist/chunks/{wellknown-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
- /package/dist/chunks/{wellknown-x4th4bpe.js → aisdk-x4th4bpe.js} +0 -0
- /package/dist/chunks/{wellknown-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
- /package/dist/chunks/{wellknown-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
- /package/dist/chunks/{wellknown-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{wellknown-z5v4ffb3.js → aisdk-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{wellknown-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
- /package/dist/chunks/{wellknown-zxpyjp51.js → aisdk-zxpyjp51.js} +0 -0
- /package/dist/chunks/{wellknown-zz5vv3aq.js → aisdk-zz5vv3aq.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service91,
|
|
9
|
+
node93
|
|
10
|
+
} from "./aisdk-85yc0hq8.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service82,
|
|
13
|
+
node84
|
|
14
|
+
} from "./aisdk-3fevqy49.js";
|
|
15
15
|
import {
|
|
16
16
|
create4
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-40y6dtc2.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error5,
|
|
26
|
+
ID: () => ID15,
|
|
27
|
+
Service: () => Service78,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node80,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID15 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error5 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service78 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service91;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service82;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create4({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error5({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const directory = yield* fs.realPath(location.directory).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
75
75
|
if (!FSUtil.contains(worktree, directory))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error5({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(path.relative(worktree, directory).replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -97,7 +97,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
97
97
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
98
98
|
});
|
|
99
99
|
yield* packWhenDue(repo.snapshotRepository);
|
|
100
|
-
return
|
|
100
|
+
return ID15.make(tree);
|
|
101
101
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
102
102
|
});
|
|
103
103
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -142,25 +142,25 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
142
142
|
for (const [file, snapshot] of input.files) {
|
|
143
143
|
const absolute = path.resolve(worktree, file);
|
|
144
144
|
if (!FSUtil.contains(worktree, absolute))
|
|
145
|
-
return yield* new
|
|
145
|
+
return yield* new Error5({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
146
146
|
files.set(file, TreeID2.make(snapshot));
|
|
147
147
|
}
|
|
148
148
|
return files;
|
|
149
149
|
});
|
|
150
150
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
151
151
|
if (!enabled())
|
|
152
|
-
return yield* new
|
|
152
|
+
return yield* new Error5({ operation: "restore", message: "Snapshots are disabled" });
|
|
153
153
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
155
155
|
});
|
|
156
|
-
return
|
|
156
|
+
return Service78.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
157
157
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
158
|
-
var
|
|
159
|
-
service:
|
|
158
|
+
var node80 = makeLocationNode({
|
|
159
|
+
service: Service78,
|
|
160
160
|
layer,
|
|
161
|
-
deps: [FSUtil.node,
|
|
161
|
+
deps: [FSUtil.node, node93, Global.node, node84]
|
|
162
162
|
});
|
|
163
|
-
var noopLayer3 = Layer.succeed(
|
|
163
|
+
var noopLayer3 = Layer.succeed(Service78, Service78.of({
|
|
164
164
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
165
165
|
reload: () => Effect.void,
|
|
166
166
|
capture: () => Effect.undefined,
|
|
@@ -169,13 +169,13 @@ var noopLayer3 = Layer.succeed(Service61, Service61.of({
|
|
|
169
169
|
restore: () => Effect.void
|
|
170
170
|
}));
|
|
171
171
|
function failure(operation, cause) {
|
|
172
|
-
if (cause instanceof
|
|
172
|
+
if (cause instanceof Error5 && cause.operation === operation)
|
|
173
173
|
return cause;
|
|
174
|
-
return new
|
|
174
|
+
return new Error5({
|
|
175
175
|
operation,
|
|
176
176
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
177
177
|
cause
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
export {
|
|
181
|
+
export { ID15, Error5, Service78, node80, noopLayer3, exports_snapshot2 };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service93
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-erpgh78q.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service70,
|
|
6
|
+
Event12
|
|
7
|
+
} from "./aisdk-7t2bcrk5.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
14
14
|
__export(exports_plugin, {
|
|
15
|
-
Plugin: () =>
|
|
15
|
+
Plugin: () => Plugin20,
|
|
16
16
|
WellKnownPlugin: () => exports_plugin
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin20 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
const bus = yield* Service93;
|
|
24
|
-
const wellknown = yield*
|
|
24
|
+
const wellknown = yield* Service70;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,8 +41,8 @@ var Plugin56 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event12.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Plugin20, exports_plugin };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-034tev2y.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeFiles2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-rgc9cx3e.js";
|
|
4
4
|
import {
|
|
5
5
|
makeLocalDriver2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-cwrgdav8.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service82,
|
|
9
|
+
node84
|
|
10
|
+
} from "./aisdk-3fevqy49.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service77,
|
|
13
|
+
node78
|
|
14
|
+
} from "./aisdk-22jsjh4w.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/environment/environment.ts
|
|
20
20
|
var exports_environment3 = {};
|
|
21
21
|
__export(exports_environment3, {
|
|
22
22
|
EnvironmentService: () => exports_environment3,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service76,
|
|
24
|
+
node: () => node77
|
|
25
25
|
});
|
|
26
26
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
27
27
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
28
28
|
import { Context, Effect, Layer } from "effect";
|
|
29
29
|
import { ChildProcessSpawner } from "effect/process/ChildProcessSpawner";
|
|
30
|
-
class
|
|
30
|
+
class Service76 extends Context.Service()("@opencode/Environment") {
|
|
31
31
|
}
|
|
32
|
-
var layer = Layer.effect(
|
|
32
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
33
33
|
const spawner = yield* ChildProcessSpawner;
|
|
34
|
-
const location = yield*
|
|
35
|
-
const workspace = yield*
|
|
34
|
+
const location = yield* Service82;
|
|
35
|
+
const workspace = yield* Service77;
|
|
36
36
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
37
|
-
return
|
|
37
|
+
return Service76.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
40
|
-
service:
|
|
39
|
+
var node77 = makeLocationNode({
|
|
40
|
+
service: Service76,
|
|
41
41
|
layer,
|
|
42
|
-
deps: [CrossSpawnSpawner.node,
|
|
42
|
+
deps: [CrossSpawnSpawner.node, node84, node78]
|
|
43
43
|
});
|
|
44
44
|
|
|
45
|
-
export {
|
|
45
|
+
export { Service76, node77, exports_environment3 };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service82
|
|
3
|
+
} from "./aisdk-3fevqy49.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service68
|
|
6
|
+
} from "./aisdk-m4pn5tm0.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service21
|
|
9
|
+
} from "./aisdk-ggzxzwph.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
make5
|
|
12
|
+
} from "./aisdk-nq1mg43n.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-tvtps2q9.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/config/plugin/formatter.ts
|
|
21
21
|
var exports_formatter = {};
|
|
22
22
|
__export(exports_formatter, {
|
|
23
23
|
ConfigFormatterPlugin: () => exports_formatter,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin37
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -29,14 +29,14 @@ import { Global } from "@opencode/util/global";
|
|
|
29
29
|
import { Npm } from "@opencode/util/npm";
|
|
30
30
|
import { AppProcess } from "@opencode/util/process";
|
|
31
31
|
import { Effect } from "effect";
|
|
32
|
-
var
|
|
32
|
+
var Plugin37 = define({
|
|
33
33
|
id: "opencode.config.formatter",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
|
-
const config = yield*
|
|
36
|
-
const formatter = yield*
|
|
35
|
+
const config = yield* Service68;
|
|
36
|
+
const formatter = yield* Service21;
|
|
37
37
|
const fs = yield* FSUtil.Service;
|
|
38
38
|
const global = yield* Global.Service;
|
|
39
|
-
const location = yield*
|
|
39
|
+
const location = yield* Service82;
|
|
40
40
|
const npm = yield* Npm.Service;
|
|
41
41
|
const processes = yield* AppProcess.Service;
|
|
42
42
|
const loaded = yield* observe2(config, ctx.event, formatter.reload());
|
|
@@ -44,7 +44,7 @@ var Plugin13 = define({
|
|
|
44
44
|
const configured = resolve(loaded.entries);
|
|
45
45
|
if (!configured)
|
|
46
46
|
return;
|
|
47
|
-
const builtIns =
|
|
47
|
+
const builtIns = make5({
|
|
48
48
|
directory: location.directory,
|
|
49
49
|
worktree: location.project.directory,
|
|
50
50
|
fs,
|
|
@@ -85,4 +85,4 @@ function resolve(entries) {
|
|
|
85
85
|
}, undefined);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
export {
|
|
88
|
+
export { Plugin37, exports_formatter };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service68
|
|
4
|
+
} from "./aisdk-m4pn5tm0.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-tvtps2q9.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/config/plugin/websearch.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ConfigWebSearchPlugin: () =>
|
|
16
|
-
Plugin: () =>
|
|
13
|
+
var exports_websearch2 = {};
|
|
14
|
+
__export(exports_websearch2, {
|
|
15
|
+
ConfigWebSearchPlugin: () => exports_websearch2,
|
|
16
|
+
Plugin: () => Plugin33
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin33 = define({
|
|
21
21
|
id: "opencode.config.websearch",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const config = yield*
|
|
23
|
+
const config = yield* Service68;
|
|
24
24
|
const loaded = yield* observe2(config, ctx.event, ctx.websearch.reload());
|
|
25
25
|
yield* ctx.websearch.transform((websearch) => {
|
|
26
26
|
const selection = latest2(loaded.entries, "websearch");
|
|
@@ -32,4 +32,4 @@ var Plugin7 = define({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Plugin33, exports_websearch2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-4q7m519v.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-3wd3705a.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-we9eewdm.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
ID21,
|
|
6
|
+
Service87
|
|
7
|
+
} from "./aisdk-mv4qm2s4.js";
|
|
8
8
|
import {
|
|
9
9
|
key3
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-44w9n9s7.js";
|
|
11
11
|
import {
|
|
12
12
|
MethodID2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-kv781v4h.js";
|
|
14
14
|
import {
|
|
15
15
|
which2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-x4th4bpe.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
ID16,
|
|
19
|
+
Service81
|
|
20
|
+
} from "./aisdk-bbazfr9j.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID13
|
|
23
|
+
} from "./aisdk-vbzkhvdq.js";
|
|
24
24
|
import {
|
|
25
25
|
interval2,
|
|
26
|
-
|
|
26
|
+
Service86,
|
|
27
27
|
fingerprint2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./aisdk-r0g4qhb1.js";
|
|
29
29
|
import {
|
|
30
30
|
configuredSettings2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./aisdk-kmpykya8.js";
|
|
32
32
|
import {
|
|
33
33
|
onSwitch2,
|
|
34
34
|
switched2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./aisdk-rb0e2ctr.js";
|
|
36
36
|
import {
|
|
37
37
|
activeCredential2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./aisdk-gpvcxtjg.js";
|
|
39
39
|
|
|
40
40
|
// src/plugin/provider/azure.ts
|
|
41
41
|
import { Clock, Effect, Equal, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -70,18 +70,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
|
|
|
70
70
|
}));
|
|
71
71
|
var ResourceQuery = Schema.Struct({ query: Schema.String });
|
|
72
72
|
var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
|
|
73
|
-
function
|
|
73
|
+
function make17(endpoints = {
|
|
74
74
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
75
75
|
management: "https://management.azure.com"
|
|
76
76
|
}) {
|
|
77
77
|
return define({
|
|
78
78
|
id: "opencode.provider.azure",
|
|
79
79
|
effect: Effect.fn(function* (ctx) {
|
|
80
|
-
const configured = yield* configuredSettings2(
|
|
80
|
+
const configured = yield* configuredSettings2(ID16.azure);
|
|
81
81
|
const processes = yield* AppProcess.Service;
|
|
82
|
-
const credentials = yield*
|
|
83
|
-
const providers = yield*
|
|
84
|
-
const cache = yield*
|
|
82
|
+
const credentials = yield* Service87;
|
|
83
|
+
const providers = yield* Service81;
|
|
84
|
+
const cache = yield* Service86;
|
|
85
85
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
86
86
|
const tokens = new Map;
|
|
87
87
|
const resourceIDs = new Map;
|
|
@@ -107,11 +107,11 @@ function make15(endpoints = {
|
|
|
107
107
|
const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
|
|
108
108
|
yield* ctx.integration.transform((editor) => {
|
|
109
109
|
editor.method.update({
|
|
110
|
-
integrationID:
|
|
110
|
+
integrationID: ID16.azure,
|
|
111
111
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
112
112
|
});
|
|
113
113
|
editor.method.update({
|
|
114
|
-
integrationID:
|
|
114
|
+
integrationID: ID16.azure,
|
|
115
115
|
method: {
|
|
116
116
|
type: "key",
|
|
117
117
|
label: "API key",
|
|
@@ -129,7 +129,7 @@ function make15(endpoints = {
|
|
|
129
129
|
if (!available)
|
|
130
130
|
return;
|
|
131
131
|
editor.method.update({
|
|
132
|
-
integrationID:
|
|
132
|
+
integrationID: ID16.azure,
|
|
133
133
|
method: {
|
|
134
134
|
id: methodID,
|
|
135
135
|
type: "external",
|
|
@@ -149,8 +149,8 @@ function make15(endpoints = {
|
|
|
149
149
|
});
|
|
150
150
|
});
|
|
151
151
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
152
|
-
const connection = yield* ctx.integration.connection.active(
|
|
153
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
152
|
+
const connection = yield* ctx.integration.connection.active(ID16.azure);
|
|
153
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID21.make(connection.id)) : undefined;
|
|
154
154
|
return { connection, resource: credentialResource(stored?.value) };
|
|
155
155
|
});
|
|
156
156
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -189,7 +189,7 @@ function make15(endpoints = {
|
|
|
189
189
|
}));
|
|
190
190
|
const discover = Effect.fn("AzurePlugin.discover")(function* (options) {
|
|
191
191
|
const connection = loaded.connection;
|
|
192
|
-
const settings = (yield* providers.get(
|
|
192
|
+
const settings = (yield* providers.get(ID16.azure))?.settings;
|
|
193
193
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
194
194
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
195
195
|
if (loaded.connection !== connection)
|
|
@@ -219,11 +219,11 @@ function make15(endpoints = {
|
|
|
219
219
|
});
|
|
220
220
|
const apply = (next) => next ? loading.withPermit(publish(next.connection, next.found)).pipe(Effect.uninterruptible) : Effect.void;
|
|
221
221
|
const publish = Effect.fn("AzurePlugin.publish")(function* (connection, found) {
|
|
222
|
-
if (loaded.connection !== connection || key3(connection) !== key3(yield* ctx.integration.connection.active(
|
|
222
|
+
if (loaded.connection !== connection || key3(connection) !== key3(yield* ctx.integration.connection.active(ID16.azure)))
|
|
223
223
|
return;
|
|
224
224
|
if (Equal.equals(found, loaded.deployments))
|
|
225
225
|
return;
|
|
226
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
226
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID16.azure)?.models.keys() ?? [], (id) => [
|
|
227
227
|
id.toLowerCase(),
|
|
228
228
|
id
|
|
229
229
|
]));
|
|
@@ -236,7 +236,7 @@ function make15(endpoints = {
|
|
|
236
236
|
yield* ctx.model.reload();
|
|
237
237
|
});
|
|
238
238
|
const refresh = discover({}).pipe(Effect.flatMap(apply));
|
|
239
|
-
const resourceFor = (provider) => provider.id ===
|
|
239
|
+
const resourceFor = (provider) => provider.id === ID16.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
240
240
|
Object.assign(loaded, yield* load());
|
|
241
241
|
yield* ctx.provider.transform((evt) => {
|
|
242
242
|
for (const item of evt.list()) {
|
|
@@ -255,7 +255,7 @@ function make15(endpoints = {
|
|
|
255
255
|
};
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
-
const item = evt.get(
|
|
258
|
+
const item = evt.get(ID16.azure);
|
|
259
259
|
if (!item)
|
|
260
260
|
return;
|
|
261
261
|
evt.add({
|
|
@@ -285,21 +285,21 @@ function make15(endpoints = {
|
|
|
285
285
|
}
|
|
286
286
|
if (!loaded.deployments)
|
|
287
287
|
return;
|
|
288
|
-
const catalog = models.list(
|
|
288
|
+
const catalog = models.list(ID16.azure);
|
|
289
289
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
290
290
|
for (const model of catalog) {
|
|
291
291
|
if (!deployed.has(model.id))
|
|
292
|
-
models.remove(
|
|
292
|
+
models.remove(ID16.azure, model.id);
|
|
293
293
|
}
|
|
294
294
|
for (const [id, model] of deployed) {
|
|
295
|
-
models.update(
|
|
295
|
+
models.update(ID16.azure, id, (draft) => Object.assign(draft, model));
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
298
|
yield* onSwitch2("azure", rebind().pipe(Effect.andThen(FiberHandle.run(discovery, switched2(discover, apply)))));
|
|
299
299
|
yield* rebind().pipe(Effect.andThen(FiberHandle.run(discovery, refresh)), Effect.forkScoped);
|
|
300
300
|
yield* Effect.sleep(interval2).pipe(Effect.andThen(FiberHandle.run(discovery, refresh, { onlyIfMissing: true })), Effect.forever, Effect.forkScoped);
|
|
301
301
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
302
|
-
const { credential } = yield* activeCredential2(ctx,
|
|
302
|
+
const { credential } = yield* activeCredential2(ctx, ID16.azure);
|
|
303
303
|
if (credential?.type !== "external" || credential.methodID !== methodID)
|
|
304
304
|
return;
|
|
305
305
|
const target = new URL(url);
|
|
@@ -315,7 +315,7 @@ function make15(endpoints = {
|
|
|
315
315
|
evt.request.headers.delete("x-api-key");
|
|
316
316
|
evt.request.headers.set("authorization", authorization);
|
|
317
317
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
318
|
-
}), { providerID:
|
|
318
|
+
}), { providerID: ID16.azure });
|
|
319
319
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
320
320
|
const authorization = yield* bearer(evt.url);
|
|
321
321
|
if (!authorization)
|
|
@@ -324,11 +324,11 @@ function make15(endpoints = {
|
|
|
324
324
|
delete evt.headers["x-api-key"];
|
|
325
325
|
evt.headers.authorization = authorization;
|
|
326
326
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
327
|
-
}), { providerID:
|
|
327
|
+
}), { providerID: ID16.azure });
|
|
328
328
|
})
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
|
-
var AzurePlugin2 =
|
|
331
|
+
var AzurePlugin2 = make17();
|
|
332
332
|
function deploymentsKey(connection, credential, url) {
|
|
333
333
|
const access = credential.type === "key" ? `:${fingerprint2(credential.key)}` : "";
|
|
334
334
|
return `azure:${key3(connection)}${access}:${url}`;
|
|
@@ -343,7 +343,7 @@ function expandResourceName(baseURL, resourceName) {
|
|
|
343
343
|
return baseURL.replaceAll("${AZURE_RESOURCE_NAME}", resourceName).replaceAll("${AZURE_COGNITIVE_SERVICES_RESOURCE_NAME}", resourceName);
|
|
344
344
|
}
|
|
345
345
|
function azureProvider(provider) {
|
|
346
|
-
return provider.id ===
|
|
346
|
+
return provider.id === ID16.azure || provider.package.startsWith("@opencode/ai/providers/azure/");
|
|
347
347
|
}
|
|
348
348
|
function usable(credential) {
|
|
349
349
|
return credential?.type === "key" || credential?.type === "external" && credential.methodID === methodID;
|
|
@@ -368,11 +368,11 @@ function deployedModels(deployments, catalog) {
|
|
|
368
368
|
const model = catalogModel(models, deployment);
|
|
369
369
|
if (!model)
|
|
370
370
|
return [];
|
|
371
|
-
const id =
|
|
371
|
+
const id = ID13.make(deployment.name.toLowerCase());
|
|
372
372
|
const info = {
|
|
373
373
|
...structuredClone(model),
|
|
374
374
|
id,
|
|
375
|
-
modelID:
|
|
375
|
+
modelID: ID13.make(deployment.name),
|
|
376
376
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
377
377
|
};
|
|
378
378
|
return [[id, info]];
|
|
@@ -394,4 +394,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
394
394
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
export {
|
|
397
|
+
export { make17, AzurePlugin2 };
|