@opencode/core 0.0.0-dev-21800 → 0.0.0-dev-21802
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 +94 -94
- package/dist/aisdk.js +100 -100
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{form-aj7mw0zk.js → location-034tev2y.js} +2 -2
- package/dist/chunks/{form-pta84ypa.js → location-04s74fx7.js} +5 -5
- package/dist/chunks/{form-gf1tscqt.js → location-075x5646.js} +13 -13
- package/dist/chunks/{form-b2swvwa1.js → location-0aqnrq7x.js} +35 -35
- package/dist/chunks/{form-t7je23h6.js → location-0bpkyfh4.js} +22 -22
- package/dist/chunks/{form-ndqzk6tc.js → location-0d0matx1.js} +36 -36
- package/dist/chunks/{form-rtnxtb24.js → location-0ear39jp.js} +11 -11
- package/dist/chunks/{form-kxadc7dx.js → location-0hc0bbs9.js} +4 -4
- package/dist/chunks/{form-t6fwpnvd.js → location-0nykq6f5.js} +20 -20
- package/dist/chunks/{form-qd7v5spn.js → location-0q213vj2.js} +4 -4
- package/dist/chunks/{form-twvgeg0c.js → location-15hh3cbc.js} +11 -11
- package/dist/chunks/{form-xh7yb18e.js → location-16mb5f8v.js} +29 -29
- package/dist/chunks/{form-0s6xfy83.js → location-17a3f6rk.js} +44 -44
- package/dist/chunks/{form-ptbh3pce.js → location-1ccg85h0.js} +20 -20
- package/dist/chunks/{form-27w5k9zf.js → location-1ep2p91f.js} +2 -2
- package/dist/chunks/{form-zkyyckpa.js → location-1h4xhwew.js} +24 -24
- package/dist/chunks/{form-fpepjkf7.js → location-1rx1hnzt.js} +2 -2
- package/dist/chunks/{form-4900y2mg.js → location-1s73zfxt.js} +15 -15
- package/dist/chunks/{form-z2w0x2ee.js → location-1vd7snte.js} +43 -43
- package/dist/chunks/{form-1x2knyw4.js → location-1x2knyw4.js} +1 -1
- package/dist/chunks/{form-mmx1mfjr.js → location-1y0wdj51.js} +9 -9
- package/dist/chunks/{form-202bxvr4.js → location-231a8wys.js} +8 -8
- package/dist/chunks/{form-q79gyas9.js → location-26sbc8wa.js} +26 -26
- package/dist/chunks/{form-m56nnkz7.js → location-288dktsv.js} +4 -4
- package/dist/chunks/{form-wdffqmgj.js → location-2bmn10af.js} +8 -8
- package/dist/chunks/{form-6yvmzeyy.js → location-2f2nr3wk.js} +11 -11
- package/dist/chunks/{form-vhnfgg21.js → location-2s1jcspe.js} +11 -11
- package/dist/chunks/{form-5nrew705.js → location-2xwkyk0m.js} +5 -5
- package/dist/chunks/{form-2z1j29yd.js → location-2z1j29yd.js} +1 -1
- package/dist/chunks/{form-8nm5n31t.js → location-3753v25r.js} +15 -15
- package/dist/chunks/{form-5nx9zxzz.js → location-3aj7rrf8.js} +14 -14
- package/dist/chunks/{form-rmm3vtp2.js → location-3azbbmvr.js} +13 -13
- package/dist/chunks/{form-dbg2e74s.js → location-3bn9zxbg.js} +11 -11
- package/dist/chunks/{form-3hepkmqq.js → location-3hepkmqq.js} +1 -1
- package/dist/chunks/{form-3nnrz6f6.js → location-3nnrz6f6.js} +1 -1
- package/dist/chunks/{form-9tc86wb5.js → location-3r5s1csz.js} +33 -33
- package/dist/chunks/{form-p0tsr9h6.js → location-3ryz99p0.js} +4 -4
- package/dist/chunks/{form-qp8t9fx2.js → location-3shw1cbx.js} +8 -8
- package/dist/chunks/{form-r41sfy63.js → location-40za9wsf.js} +6 -6
- package/dist/chunks/{form-bjhzkqyk.js → location-42jd4697.js} +4 -4
- package/dist/chunks/{form-3418rxn8.js → location-48fr60f0.js} +4 -4
- package/dist/chunks/{form-whhxszaf.js → location-4c9pmv36.js} +14 -14
- package/dist/chunks/{form-q8axm0b6.js → location-4cggrrsp.js} +1 -1
- package/dist/chunks/{form-efye4wxz.js → location-4f258480.js} +22 -22
- package/dist/chunks/{form-57mrygtr.js → location-4f51t6yt.js} +31 -31
- package/dist/chunks/{form-4v008n1t.js → location-4v008n1t.js} +1 -1
- package/dist/chunks/{form-ty2r1ah4.js → location-4zw1mhch.js} +10 -10
- package/dist/chunks/{form-x8h9qnt8.js → location-53ehad73.js} +11 -11
- package/dist/chunks/{form-4j1hff5b.js → location-543xpwr1.js} +15 -15
- package/dist/chunks/{form-5m9w47nd.js → location-5m9w47nd.js} +1 -1
- package/dist/chunks/{form-dkq45mty.js → location-5pjcmgbp.js} +3 -3
- package/dist/chunks/{form-e3qxr5gk.js → location-5qd3pb7m.js} +2 -2
- package/dist/chunks/{form-fp9hrh53.js → location-5rffp0ca.js} +27 -27
- package/dist/chunks/location-6617700v.js +26 -0
- package/dist/chunks/{form-b1crm3cf.js → location-67fvqagb.js} +44 -44
- package/dist/chunks/{form-jxb3gtw0.js → location-6ejgy672.js} +8 -8
- package/dist/chunks/{form-6esdw8yj.js → location-6esdw8yj.js} +1 -1
- package/dist/chunks/{form-8aa3rj35.js → location-6grvz7sb.js} +19 -19
- package/dist/chunks/{form-6pjqjmy2.js → location-6pjqjmy2.js} +1 -1
- package/dist/chunks/{form-cbcw5jdv.js → location-6pns0xkq.js} +14 -14
- package/dist/chunks/{form-z028gk7z.js → location-6qzrsg19.js} +11 -11
- package/dist/chunks/{form-ha3txm3a.js → location-6rrz3dm6.js} +4 -4
- package/dist/chunks/{form-9qkkem2t.js → location-6s8srms1.js} +23 -23
- package/dist/chunks/{form-gp9gf7jx.js → location-6xvr7jf7.js} +3 -3
- package/dist/chunks/{form-jr1j5bze.js → location-6y263vp8.js} +5 -5
- package/dist/chunks/{form-w6d7jzdm.js → location-6ypa0r1z.js} +31 -31
- package/dist/chunks/{form-yhzfnwqx.js → location-73ws2247.js} +63 -63
- package/dist/chunks/{form-76cb1hcw.js → location-76cb1hcw.js} +1 -1
- package/dist/chunks/{form-770pw0s1.js → location-770pw0s1.js} +1 -1
- package/dist/chunks/{form-7bmhse3q.js → location-7bmhse3q.js} +1 -1
- package/dist/chunks/{form-7w2ypzdf.js → location-7w2ypzdf.js} +1 -1
- package/dist/chunks/{form-8kt5nrfk.js → location-8ggafv1b.js} +14 -14
- package/dist/chunks/{form-ffg4nk5v.js → location-8j2gg8hq.js} +21 -21
- package/dist/chunks/{form-hr9cza2g.js → location-8n0m92g8.js} +15 -15
- package/dist/chunks/{form-pwcmqnv6.js → location-8nsfhtx4.js} +49 -49
- package/dist/chunks/{form-vwdfpcvx.js → location-8whp40kv.js} +3 -3
- package/dist/chunks/{form-8wtp7s3z.js → location-8wtp7s3z.js} +1 -1
- package/dist/chunks/{form-91rj84md.js → location-91rj84md.js} +1 -1
- package/dist/chunks/{form-77pzky32.js → location-984v65na.js} +17 -17
- package/dist/chunks/{form-dvj9ct8m.js → location-998yhzzq.js} +3 -3
- package/dist/chunks/{form-5y540sh8.js → location-9b1bq8k1.js} +6 -6
- package/dist/chunks/{form-ebwp6ca3.js → location-9b28cy4d.js} +5 -5
- package/dist/chunks/{form-bp8166w3.js → location-9bag7kem.js} +8 -8
- package/dist/chunks/{form-cq7by30v.js → location-9btvkpqm.js} +9 -9
- package/dist/chunks/{form-n0p0277s.js → location-9cx9sm2q.js} +2 -2
- package/dist/chunks/{form-t2ztbpje.js → location-9je5s229.js} +4 -4
- package/dist/chunks/{form-jneg3k74.js → location-9p9xqj3m.js} +6 -6
- package/dist/chunks/{form-0h9bs85x.js → location-a0stp6fn.js} +9 -9
- package/dist/chunks/{form-49tazegd.js → location-a4g64ecz.js} +17 -17
- package/dist/chunks/{form-4se4h2v4.js → location-a59j6a4y.js} +12 -12
- package/dist/chunks/{form-y7r7kv14.js → location-a6g0efdt.js} +38 -38
- package/dist/chunks/{form-w7frmj75.js → location-a7hcemwv.js} +8 -8
- package/dist/chunks/{form-en3a7p48.js → location-ab01g4cm.js} +9 -9
- package/dist/chunks/{form-fv302xas.js → location-af84d9dx.js} +17 -17
- package/dist/chunks/{form-35z82n4m.js → location-ag7xc6h3.js} +15 -15
- package/dist/chunks/{form-aksd0eqj.js → location-agxdnhx2.js} +29 -29
- package/dist/chunks/{form-m8s6zs3q.js → location-ahnc65m5.js} +9 -9
- package/dist/chunks/{form-bjx81z2n.js → location-amtc5egd.js} +45 -45
- package/dist/chunks/{form-5ze4n4sg.js → location-at9bq00k.js} +36 -36
- package/dist/chunks/{form-qkghfb1m.js → location-avxtkthz.js} +85 -85
- package/dist/chunks/{form-vwss2sv6.js → location-aw8nv5py.js} +26 -26
- package/dist/chunks/{form-3cbjf1nt.js → location-ayjs7tqn.js} +2 -2
- package/dist/chunks/{form-b0mv4wxm.js → location-b0mv4wxm.js} +2 -2
- package/dist/chunks/{form-b6vsg801.js → location-b6vsg801.js} +2 -2
- package/dist/chunks/{form-xr0fdn46.js → location-b8w355z9.js} +8 -8
- package/dist/chunks/{form-0de0nmh0.js → location-b92bqb2e.js} +26 -26
- package/dist/chunks/{form-bqjkv61t.js → location-bhaqjw7f.js} +6 -6
- package/dist/chunks/{form-4bj59q6n.js → location-bkdm27vv.js} +183 -183
- package/dist/chunks/{form-vgsxebfn.js → location-bntc87tw.js} +10 -10
- package/dist/chunks/{form-vzmjdaw1.js → location-bqwdyg2t.js} +9 -9
- package/dist/chunks/{form-bstexjd6.js → location-bstexjd6.js} +1 -1
- package/dist/chunks/{form-kzprjqer.js → location-bxx0c1dy.js} +12 -12
- package/dist/chunks/{form-2abq9rn1.js → location-c06ba7a3.js} +17 -17
- package/dist/chunks/{form-7tymy24s.js → location-c0hpt3fm.js} +4 -4
- package/dist/chunks/{form-rekntzzt.js → location-c6jk0q5d.js} +3 -3
- package/dist/chunks/{form-ssfehs1z.js → location-c9t2ty9q.js} +4 -4
- package/dist/chunks/{form-x59sy6my.js → location-cb3hqvs8.js} +84 -84
- package/dist/chunks/{form-j6h7yvwn.js → location-cb47sqp9.js} +11 -11
- package/dist/chunks/{form-d7w06rve.js → location-cdq478xq.js} +27 -27
- package/dist/chunks/{form-rhjvhekr.js → location-cfchc4zb.js} +4 -4
- package/dist/chunks/{form-t6zv3t7w.js → location-cv0k61fs.js} +34 -34
- package/dist/chunks/{form-tb6jrghd.js → location-cxpnepvy.js} +17 -17
- package/dist/chunks/{form-d4vw6k95.js → location-d126gacg.js} +12 -12
- package/dist/chunks/{form-rnhyqk91.js → location-d3db3qjf.js} +20 -20
- package/dist/chunks/{form-gn8tkhbf.js → location-d4v9tmah.js} +2 -2
- package/dist/chunks/{form-d77dj7jw.js → location-d77dj7jw.js} +1 -1
- package/dist/chunks/{form-n98epqcg.js → location-dg4g4j0t.js} +29 -29
- package/dist/chunks/{form-504b0z1d.js → location-dgny4tbd.js} +34 -34
- package/dist/chunks/{form-1kqbdeg9.js → location-dkjms5pz.js} +19 -19
- package/dist/chunks/{form-e834z07m.js → location-e834z07m.js} +1 -1
- package/dist/chunks/{form-mfazgctd.js → location-ecrg8485.js} +11 -11
- package/dist/chunks/{form-8gfg5k83.js → location-ehd7jrz2.js} +13 -13
- package/dist/chunks/{form-7zbjpcgf.js → location-ej5n7emy.js} +29 -29
- package/dist/chunks/{form-1mz0hg4w.js → location-embmaz50.js} +35 -35
- package/dist/chunks/{form-7vk1qfcv.js → location-eqc54gfq.js} +6 -6
- package/dist/chunks/{form-k7rxqqn4.js → location-eqqpepv4.js} +8 -8
- package/dist/chunks/{form-x0yqbyz4.js → location-er214sbb.js} +15 -15
- package/dist/chunks/{form-rp2hzysp.js → location-ete0teby.js} +8 -8
- package/dist/chunks/{form-bsm4yj1q.js → location-ewepcnn2.js} +5 -5
- package/dist/chunks/{form-j37rmggz.js → location-f4mz2h0w.js} +21 -21
- package/dist/chunks/{form-ywgtt5qa.js → location-f4sjmcvy.js} +13 -13
- package/dist/chunks/{form-c53m598j.js → location-f4x3m1jb.js} +13 -13
- package/dist/chunks/{form-fgc19361.js → location-f6939148.js} +6 -6
- package/dist/chunks/{form-mxqegms8.js → location-f6k1kfp3.js} +30 -30
- package/dist/chunks/{form-q0f28206.js → location-f9wg2df5.js} +10 -10
- package/dist/chunks/{form-fffv3p7h.js → location-fffv3p7h.js} +1 -1
- package/dist/chunks/{form-tasvem1v.js → location-fmye6e29.js} +7 -7
- package/dist/chunks/{form-wysrktan.js → location-fnp0jseg.js} +7 -7
- package/dist/chunks/{form-wb32cm0h.js → location-fnz8rg5r.js} +6 -6
- package/dist/chunks/{form-djck26ns.js → location-ftv2mfjw.js} +1 -1
- package/dist/chunks/{form-wr3re1en.js → location-fznmdakp.js} +4 -4
- package/dist/chunks/{form-g5h9c0rr.js → location-g5h9c0rr.js} +2 -2
- package/dist/chunks/{form-sk4rcz4v.js → location-g5tgmp0p.js} +29 -29
- package/dist/chunks/{form-36qx82yz.js → location-g6dfma3d.js} +6 -6
- package/dist/chunks/{form-f6ydp9jt.js → location-g9ccq630.js} +52 -52
- package/dist/chunks/location-ge8wzs3p.js +261 -0
- package/dist/chunks/{form-8s42wndc.js → location-ghwgmbde.js} +17 -17
- package/dist/chunks/{form-72czzjvn.js → location-gksz2zdz.js} +5 -5
- package/dist/chunks/{form-cf2bvegq.js → location-gw9sk7ym.js} +43 -43
- package/dist/chunks/{form-w6byfr8d.js → location-gyptvmbk.js} +27 -27
- package/dist/chunks/{form-g82sjckm.js → location-h2fhca2s.js} +9 -9
- package/dist/chunks/{form-cpfpnv00.js → location-h9zgxh73.js} +5 -5
- package/dist/chunks/{form-7p111ra0.js → location-hdvwg22j.js} +6 -6
- package/dist/chunks/{form-dgcghd4q.js → location-hn6pth2p.js} +11 -11
- package/dist/chunks/{form-zc3z0s1e.js → location-hpj591dz.js} +16 -16
- package/dist/chunks/{form-j113cymg.js → location-j113cymg.js} +1 -1
- package/dist/chunks/{form-dkk62k64.js → location-j19v72kq.js} +16 -16
- package/dist/chunks/{form-g656cbyf.js → location-ja9tn20r.js} +21 -21
- package/dist/chunks/{form-5v4fjzaq.js → location-jb3ek66v.js} +18 -18
- package/dist/chunks/{form-a0mbnczp.js → location-jje57wwm.js} +28 -28
- package/dist/chunks/{form-wdv0vama.js → location-jk9f0yn5.js} +10 -10
- package/dist/chunks/{form-443gxb00.js → location-jsvgjjsg.js} +25 -25
- package/dist/chunks/{form-dq0jjp1j.js → location-k781pf8j.js} +22 -22
- package/dist/chunks/{form-k814nvkf.js → location-k814nvkf.js} +1 -1
- package/dist/chunks/{form-r658k6r9.js → location-kdr2amtg.js} +21 -21
- package/dist/chunks/{form-xyznvzfj.js → location-kj2jaw6z.js} +4 -4
- package/dist/chunks/{form-shdhkr49.js → location-kkew1p9e.js} +6 -6
- package/dist/chunks/{form-ssfc5kf6.js → location-km5sdhrx.js} +49 -49
- package/dist/chunks/{form-jc1psbyz.js → location-kme5wqcz.js} +20 -20
- package/dist/chunks/{form-kt3bjfbg.js → location-kt3bjfbg.js} +1 -1
- package/dist/chunks/{form-m1714858.js → location-m1714858.js} +1 -1
- package/dist/chunks/{form-vmfhgzt5.js → location-m37sd98t.js} +4 -4
- package/dist/chunks/{form-kgm25kxq.js → location-m7nf5dp7.js} +18 -18
- package/dist/chunks/{form-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
- package/dist/chunks/{form-z2y0gft8.js → location-ma9n1kat.js} +3 -3
- package/dist/chunks/{form-maspj1v3.js → location-maspj1v3.js} +1 -1
- package/dist/chunks/{form-62c0v1tw.js → location-mc0e6tx9.js} +33 -33
- package/dist/chunks/{form-zv1k8n0h.js → location-mjx1xb4v.js} +11 -11
- package/dist/chunks/{form-rvz41am7.js → location-mnex4cdr.js} +5 -5
- package/dist/chunks/{form-zgaxvjwc.js → location-mw1hb2pb.js} +22 -22
- package/dist/chunks/{form-xg7y1tnh.js → location-n8snqzaz.js} +3 -3
- package/dist/chunks/{form-0es6nja8.js → location-n95rn34w.js} +21 -21
- package/dist/chunks/{form-02hjb68z.js → location-nbftzetf.js} +3 -3
- package/dist/chunks/{form-bx023ayb.js → location-nbpgh3d1.js} +16 -16
- package/dist/chunks/{form-braepac4.js → location-ngxrbh81.js} +23 -23
- package/dist/chunks/{form-sp43gwv2.js → location-njfj8ewx.js} +12 -12
- package/dist/chunks/{form-nc9xfdq7.js → location-nkc01eya.js} +4 -4
- package/dist/chunks/{form-2fpg1r86.js → location-nn8wg6es.js} +6 -6
- package/dist/chunks/{form-9y8pfte4.js → location-npqdxqpg.js} +16 -16
- package/dist/chunks/{form-p015t6z3.js → location-p015t6z3.js} +2 -2
- package/dist/chunks/{form-h9b0ss67.js → location-p3c47fx7.js} +23 -23
- package/dist/chunks/{form-gfm2g1r0.js → location-p42xfgpg.js} +23 -23
- package/dist/chunks/{form-5zrxpy3q.js → location-p7vhpwh8.js} +5 -5
- package/dist/chunks/{form-1j3q5f1b.js → location-pac9cg3x.js} +4 -4
- package/dist/chunks/{form-0mmhxb94.js → location-pbaqepy9.js} +3 -3
- package/dist/chunks/{form-033a0jkt.js → location-pc1v25hk.js} +3 -3
- package/dist/chunks/{form-pknna89w.js → location-pknna89w.js} +1 -1
- package/dist/chunks/{form-x2x5zj05.js → location-px99x85z.js} +17 -17
- package/dist/chunks/{form-0mpj81pq.js → location-pypxtw5w.js} +17 -17
- package/dist/chunks/{form-m3rt4n16.js → location-q5vn80g9.js} +9 -9
- package/dist/chunks/{form-jwwge8xs.js → location-q9dg54zr.js} +14 -14
- package/dist/chunks/{form-h2xt6wet.js → location-qah7t4da.js} +6 -6
- package/dist/chunks/{form-vp3f7txe.js → location-qj7jded1.js} +9 -9
- package/dist/chunks/{form-qjgzc4b4.js → location-qjgzc4b4.js} +1 -1
- package/dist/chunks/{form-x83ywg7g.js → location-qtqp5fvy.js} +30 -30
- package/dist/chunks/{form-bdsby7g0.js → location-qzzv0ezg.js} +7 -7
- package/dist/chunks/{form-25cs5nez.js → location-r0rzdwgt.js} +8 -8
- package/dist/chunks/{form-r0yr0wbs.js → location-r0yr0wbs.js} +1 -1
- package/dist/chunks/{form-z41z05dk.js → location-r2z94j39.js} +6 -6
- package/dist/chunks/{form-r542h3bh.js → location-r542h3bh.js} +1 -1
- package/dist/chunks/{form-1gvxmx3x.js → location-r64cczjp.js} +10 -10
- package/dist/chunks/{form-rb9dy4dg.js → location-rb9dy4dg.js} +1 -1
- package/dist/chunks/{form-3vrw48hq.js → location-rbckb2ty.js} +17 -17
- package/dist/chunks/{form-gqy1905p.js → location-rn8hfrah.js} +19 -19
- package/dist/chunks/{form-rdmv0akp.js → location-rqjkyyyt.js} +14 -14
- package/dist/chunks/{form-rt5dr6hb.js → location-rt5dr6hb.js} +1 -1
- package/dist/chunks/{form-518pc71g.js → location-rxbr5cvt.js} +44 -44
- package/dist/chunks/{form-sa3fpqfw.js → location-sa3fpqfw.js} +2 -2
- package/dist/chunks/{form-9ap36caz.js → location-sgnyye5r.js} +21 -21
- package/dist/chunks/{form-sqjzf8x2.js → location-sqjzf8x2.js} +1 -1
- package/dist/chunks/{form-6jh9wyah.js → location-sv689qty.js} +21 -21
- package/dist/chunks/{form-qdckhfvx.js → location-tan2h6ve.js} +25 -25
- package/dist/chunks/{form-tczq8hjw.js → location-tczq8hjw.js} +1 -1
- package/dist/chunks/{form-p83a0njd.js → location-tfg9hd0y.js} +27 -27
- package/dist/chunks/{form-kmzgegqq.js → location-tg1vr1qt.js} +8 -8
- package/dist/chunks/{form-bk72g9n5.js → location-tkkm20f7.js} +16 -16
- package/dist/chunks/{form-0421tmwc.js → location-tpm1qpxt.js} +9 -9
- package/dist/chunks/{form-43k8zwa9.js → location-tv1fv7bp.js} +5 -5
- package/dist/chunks/{form-twv2r8f4.js → location-twv2r8f4.js} +2 -2
- package/dist/chunks/{form-v2r1d0zg.js → location-v2r1d0zg.js} +1 -1
- package/dist/chunks/{form-b7yb02yv.js → location-v76p8btm.js} +5 -5
- package/dist/chunks/{form-vd3b3yk9.js → location-vd3b3yk9.js} +1 -1
- package/dist/chunks/{form-ngjf4jxk.js → location-vdgmg1hd.js} +13 -13
- package/dist/chunks/{form-veqvce7d.js → location-veqvce7d.js} +1 -1
- package/dist/chunks/{form-fke86k08.js → location-vghb18mt.js} +16 -16
- package/dist/chunks/{form-4b160a05.js → location-vpnzc5p3.js} +27 -27
- package/dist/chunks/{form-k302pdnh.js → location-vrcsa8qx.js} +9 -9
- package/dist/chunks/{form-xnctb0t2.js → location-vwvg46tm.js} +2 -2
- package/dist/chunks/{form-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
- package/dist/chunks/{form-2zw8q38q.js → location-w4hzka6x.js} +18 -18
- package/dist/chunks/{form-dpcgzjbf.js → location-w6frvacy.js} +30 -30
- package/dist/chunks/{form-wakvkjy4.js → location-wakvkjy4.js} +1 -1
- package/dist/chunks/{form-wd87259q.js → location-wd87259q.js} +1 -1
- package/dist/chunks/{form-81sb882e.js → location-wdmx20pv.js} +9 -9
- package/dist/chunks/{form-khsrtdw5.js → location-wgq490fn.js} +21 -21
- package/dist/chunks/{form-ewnzmz0y.js → location-wm875330.js} +30 -30
- package/dist/chunks/{form-0e10z5fj.js → location-wnpz0s1q.js} +6 -6
- package/dist/chunks/{form-gfavbhs2.js → location-wv5ws3cz.js} +23 -23
- package/dist/chunks/{form-g5w7bwk1.js → location-x16k5wpx.js} +36 -36
- package/dist/chunks/{form-6xaqvsrs.js → location-x3gjy9c2.js} +9 -9
- package/dist/chunks/{form-kstv1z45.js → location-x3r2mbb5.js} +11 -11
- package/dist/chunks/{form-rpgjqsg9.js → location-x4y1x265.js} +20 -20
- package/dist/chunks/{form-p35g19ew.js → location-x514tm1v.js} +49 -49
- package/dist/chunks/{form-0tw7w02j.js → location-x6615g0m.js} +3 -3
- package/dist/chunks/{form-f61gwnre.js → location-xgfj5271.js} +9 -9
- package/dist/chunks/{form-w3ns5rkg.js → location-xjx81hwy.js} +42 -42
- package/dist/chunks/{form-xkfczkpn.js → location-xkfczkpn.js} +3 -3
- package/dist/chunks/{form-ebvnp4a0.js → location-xkp5751n.js} +17 -17
- package/dist/chunks/{form-2mbjfaxd.js → location-xsact9zs.js} +4 -4
- package/dist/chunks/{form-m5ycwyg0.js → location-y15wyx54.js} +3 -3
- package/dist/chunks/{form-s4f8ct6t.js → location-y4n6pw34.js} +4 -4
- package/dist/chunks/{form-r7k9z7cv.js → location-y7z4tzab.js} +331 -331
- package/dist/chunks/{form-ayqdz43p.js → location-y8gj0fyz.js} +12 -12
- package/dist/chunks/{form-yb20nhc3.js → location-yb20nhc3.js} +1 -1
- package/dist/chunks/{form-y6asfd6w.js → location-yeyr4dj8.js} +31 -31
- package/dist/chunks/{form-bf47wrzc.js → location-ymrm2a13.js} +7 -7
- package/dist/chunks/{form-5gc3gx18.js → location-yrvdznpz.js} +18 -18
- package/dist/chunks/{form-ecv950bf.js → location-ywpksxwp.js} +5 -5
- package/dist/chunks/{form-z0bkrqjs.js → location-z0bkrqjs.js} +1 -1
- package/dist/chunks/{form-z38nccrw.js → location-z38nccrw.js} +1 -1
- package/dist/chunks/{form-jtf5yvtr.js → location-z3bph6wb.js} +5 -5
- package/dist/chunks/{form-v69f37bj.js → location-z5m176sc.js} +24 -24
- package/dist/chunks/{form-mfg8gex4.js → location-zbqbngfz.js} +13 -13
- package/dist/chunks/{form-zkg84ctx.js → location-zkg84ctx.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +87 -87
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +104 -104
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +137 -137
- 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 +118 -118
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +125 -125
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +107 -107
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- 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 +117 -117
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +70 -70
- 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.gen.js +53 -53
- package/dist/database/migration.js +55 -55
- 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 +95 -95
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +374 -374
- 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 +98 -98
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +98 -98
- 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 +74 -74
- package/dist/file-access.js +109 -109
- package/dist/file-mutation.js +99 -99
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +229 -229
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +109 -109
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +112 -112
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +104 -104
- 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 +365 -365
- package/dist/instruction-discovery.js +88 -88
- package/dist/instructions/builtins.js +92 -92
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +77 -77
- package/dist/location-activity.js +158 -158
- package/dist/location-lifecycle.js +112 -112
- package/dist/location-service-map.js +91 -91
- package/dist/location-services.js +362 -362
- package/dist/location.js +88 -88
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +96 -96
- package/dist/mcp/index.js +114 -114
- package/dist/mcp/instructions.js +141 -141
- package/dist/mcp/oauth.js +82 -82
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +95 -95
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +104 -104
- package/dist/model-resolver.js +102 -102
- package/dist/model-retry.js +1 -1
- package/dist/model.js +105 -105
- package/dist/models-dev.js +104 -104
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +120 -120
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +79 -79
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +105 -105
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +220 -220
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +101 -101
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +107 -107
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +95 -95
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- 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 +98 -98
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +100 -100
- package/dist/plugin/provider/gitlab.js +98 -98
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +82 -82
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +97 -97
- 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-context-caps.js +95 -95
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +104 -104
- package/dist/plugin/provider/openrouter.js +96 -96
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +83 -83
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +96 -96
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +95 -95
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +96 -96
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +171 -171
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +1 -1
- 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 +91 -91
- package/dist/plugin/vcs/hg.js +91 -91
- package/dist/plugin/verbosity.js +98 -98
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +106 -106
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +86 -86
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +100 -100
- package/dist/rpc.js +91 -91
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +78 -78
- package/dist/session/compaction.js +139 -139
- package/dist/session/context.js +167 -167
- package/dist/session/diff.js +93 -93
- 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 +223 -223
- package/dist/session/execution.js +131 -131
- package/dist/session/generate.js +169 -169
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +125 -125
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +135 -135
- package/dist/session/projector.js +93 -93
- package/dist/session/prompt.js +110 -110
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +99 -99
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +233 -233
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +105 -105
- package/dist/session/runner/publish-llm-event.js +118 -118
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +129 -129
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +167 -167
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +108 -108
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +214 -214
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +167 -167
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- 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 +11 -11
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +112 -112
- package/dist/skill.js +115 -115
- package/dist/snapshot.js +96 -96
- 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 +142 -142
- package/dist/tool/plugin/edit.js +125 -125
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +129 -129
- package/dist/tool/plugin/grep.js +129 -129
- package/dist/tool/plugin/mcp-resource.js +129 -129
- package/dist/tool/plugin/opencode.js +114 -114
- package/dist/tool/plugin/patch.js +127 -127
- package/dist/tool/plugin/question.js +108 -108
- package/dist/tool/plugin/read.js +130 -130
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +118 -118
- package/dist/tool/plugin/subagent.js +221 -221
- package/dist/tool/plugin/todo.js +140 -140
- package/dist/tool/plugin/webfetch.js +116 -116
- package/dist/tool/plugin/websearch.js +117 -117
- package/dist/tool/plugin/write.js +127 -127
- package/dist/tool/read-filesystem.js +107 -107
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/aisdk.d.ts +1 -1
- package/dist/types/effect/app-node-platform.d.ts +1 -1
- package/dist/types/generate.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +1 -1
- package/dist/types/model-retry.d.ts +1 -1
- package/dist/types/plugin/internal.d.ts +2 -2
- package/dist/types/provider.d.ts +2 -2
- package/dist/types/session/compaction.d.ts +2 -2
- package/dist/types/session/generate.d.ts +2 -2
- package/dist/types/session/history.d.ts +1 -1
- package/dist/types/session/model-request.d.ts +2 -2
- package/dist/types/session/runner/index.d.ts +1 -1
- package/dist/types/session/runner/model.d.ts +1 -1
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -1
- package/dist/types/session/runner/retry.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +2 -2
- package/dist/types/session/runner/to-llm-message.d.ts +1 -1
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +1 -1
- package/dist/types/session/usage.d.ts +1 -1
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/tool.d.ts +1 -1
- package/dist/usage-limits.js +93 -93
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +97 -97
- 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 +98 -98
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +94 -94
- package/dist/voice.js +88 -88
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +80 -80
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -86
- 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 +94 -94
- package/dist/worktree.js +105 -105
- package/package.json +8 -8
- package/dist/chunks/form-hpzh5cr9.js +0 -26
- package/dist/chunks/form-wkj84943.js +0 -261
- /package/dist/chunks/{form-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{form-0zkw76rk.js → location-0zkw76rk.js} +0 -0
- /package/dist/chunks/{form-17cy0kzp.js → location-17cy0kzp.js} +0 -0
- /package/dist/chunks/{form-1cnp2v09.js → location-1cnp2v09.js} +0 -0
- /package/dist/chunks/{form-24dcb14g.js → location-24dcb14g.js} +0 -0
- /package/dist/chunks/{form-2710q6r3.js → location-2710q6r3.js} +0 -0
- /package/dist/chunks/{form-2bv980vf.js → location-2bv980vf.js} +0 -0
- /package/dist/chunks/{form-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{form-359p4xyc.js → location-359p4xyc.js} +0 -0
- /package/dist/chunks/{form-3asan66x.js → location-3asan66x.js} +0 -0
- /package/dist/chunks/{form-3v8g72cx.js → location-3v8g72cx.js} +0 -0
- /package/dist/chunks/{form-3wcehsnq.js → location-3wcehsnq.js} +0 -0
- /package/dist/chunks/{form-43n2bw4t.js → location-43n2bw4t.js} +0 -0
- /package/dist/chunks/{form-4knz6hnm.js → location-4knz6hnm.js} +0 -0
- /package/dist/chunks/{form-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{form-4y7fprxs.js → location-4y7fprxs.js} +0 -0
- /package/dist/chunks/{form-53557ph1.js → location-53557ph1.js} +0 -0
- /package/dist/chunks/{form-550bvhaj.js → location-550bvhaj.js} +0 -0
- /package/dist/chunks/{form-6prwharc.js → location-6prwharc.js} +0 -0
- /package/dist/chunks/{form-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{form-7akdwqpd.js → location-7akdwqpd.js} +0 -0
- /package/dist/chunks/{form-7m9af43g.js → location-7m9af43g.js} +0 -0
- /package/dist/chunks/{form-822emrt2.js → location-822emrt2.js} +0 -0
- /package/dist/chunks/{form-84wd9syh.js → location-84wd9syh.js} +0 -0
- /package/dist/chunks/{form-88xbtdfr.js → location-88xbtdfr.js} +0 -0
- /package/dist/chunks/{form-8n3pysct.js → location-8n3pysct.js} +0 -0
- /package/dist/chunks/{form-8wj87zfr.js → location-8wj87zfr.js} +0 -0
- /package/dist/chunks/{form-9a4afbnw.js → location-9a4afbnw.js} +0 -0
- /package/dist/chunks/{form-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{form-a058387c.js → location-a058387c.js} +0 -0
- /package/dist/chunks/{form-a6k6eb26.js → location-a6k6eb26.js} +0 -0
- /package/dist/chunks/{form-af5trqkr.js → location-af5trqkr.js} +0 -0
- /package/dist/chunks/{form-afrmfg78.js → location-afrmfg78.js} +0 -0
- /package/dist/chunks/{form-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{form-atq7p7m5.js → location-atq7p7m5.js} +0 -0
- /package/dist/chunks/{form-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{form-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{form-cf4snx6d.js → location-cf4snx6d.js} +0 -0
- /package/dist/chunks/{form-cqv5kn06.js → location-cqv5kn06.js} +0 -0
- /package/dist/chunks/{form-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{form-d9fn303g.js → location-d9fn303g.js} +0 -0
- /package/dist/chunks/{form-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{form-dajrwvna.js → location-dajrwvna.js} +0 -0
- /package/dist/chunks/{form-dap0rakb.js → location-dap0rakb.js} +0 -0
- /package/dist/chunks/{form-df08tz66.js → location-df08tz66.js} +0 -0
- /package/dist/chunks/{form-dy18nga0.js → location-dy18nga0.js} +0 -0
- /package/dist/chunks/{form-e5kj55wp.js → location-e5kj55wp.js} +0 -0
- /package/dist/chunks/{form-e73j6tqm.js → location-e73j6tqm.js} +0 -0
- /package/dist/chunks/{form-ec1grn59.js → location-ec1grn59.js} +0 -0
- /package/dist/chunks/{form-eh3zwz77.js → location-eh3zwz77.js} +0 -0
- /package/dist/chunks/{form-emrn6kk6.js → location-emrn6kk6.js} +0 -0
- /package/dist/chunks/{form-f0mxakyp.js → location-f0mxakyp.js} +0 -0
- /package/dist/chunks/{form-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{form-faypxj3z.js → location-faypxj3z.js} +0 -0
- /package/dist/chunks/{form-fd410y7t.js → location-fd410y7t.js} +0 -0
- /package/dist/chunks/{form-g4wezp1m.js → location-g4wezp1m.js} +0 -0
- /package/dist/chunks/{form-g86h250q.js → location-g86h250q.js} +0 -0
- /package/dist/chunks/{form-gebd4c9n.js → location-gebd4c9n.js} +0 -0
- /package/dist/chunks/{form-gftt206x.js → location-gftt206x.js} +0 -0
- /package/dist/chunks/{form-hcxmzztb.js → location-hcxmzztb.js} +0 -0
- /package/dist/chunks/{form-hk9envan.js → location-hk9envan.js} +0 -0
- /package/dist/chunks/{form-j2ntwpah.js → location-j2ntwpah.js} +0 -0
- /package/dist/chunks/{form-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{form-jjkms2e6.js → location-jjkms2e6.js} +0 -0
- /package/dist/chunks/{form-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{form-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{form-jwr30sdr.js → location-jwr30sdr.js} +0 -0
- /package/dist/chunks/{form-jze0r7bz.js → location-jze0r7bz.js} +0 -0
- /package/dist/chunks/{form-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{form-m18g726c.js → location-m18g726c.js} +0 -0
- /package/dist/chunks/{form-mp448xyj.js → location-mp448xyj.js} +0 -0
- /package/dist/chunks/{form-msx8hqn2.js → location-msx8hqn2.js} +0 -0
- /package/dist/chunks/{form-n05xt0ee.js → location-n05xt0ee.js} +0 -0
- /package/dist/chunks/{form-n3j8tn72.js → location-n3j8tn72.js} +0 -0
- /package/dist/chunks/{form-njntx4h6.js → location-njntx4h6.js} +0 -0
- /package/dist/chunks/{form-pkyv6v7h.js → location-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{form-q3sfg36h.js → location-q3sfg36h.js} +0 -0
- /package/dist/chunks/{form-q74kybfr.js → location-q74kybfr.js} +0 -0
- /package/dist/chunks/{form-qaymkmh1.js → location-qaymkmh1.js} +0 -0
- /package/dist/chunks/{form-qb87gjwd.js → location-qb87gjwd.js} +0 -0
- /package/dist/chunks/{form-qfa1cgps.js → location-qfa1cgps.js} +0 -0
- /package/dist/chunks/{form-qg3g05ea.js → location-qg3g05ea.js} +0 -0
- /package/dist/chunks/{form-qrg20bc0.js → location-qrg20bc0.js} +0 -0
- /package/dist/chunks/{form-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{form-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{form-sjmm3wxa.js → location-sjmm3wxa.js} +0 -0
- /package/dist/chunks/{form-ssg3fenm.js → location-ssg3fenm.js} +0 -0
- /package/dist/chunks/{form-ve7vex1e.js → location-ve7vex1e.js} +0 -0
- /package/dist/chunks/{form-w803qqfp.js → location-w803qqfp.js} +0 -0
- /package/dist/chunks/{form-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{form-wer8tq1h.js → location-wer8tq1h.js} +0 -0
- /package/dist/chunks/{form-wjj7prxr.js → location-wjj7prxr.js} +0 -0
- /package/dist/chunks/{form-wtztk69x.js → location-wtztk69x.js} +0 -0
- /package/dist/chunks/{form-x0ckcb58.js → location-x0ckcb58.js} +0 -0
- /package/dist/chunks/{form-x61499pn.js → location-x61499pn.js} +0 -0
- /package/dist/chunks/{form-y44na4kk.js → location-y44na4kk.js} +0 -0
- /package/dist/chunks/{form-y8f7s663.js → location-y8f7s663.js} +0 -0
- /package/dist/chunks/{form-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{form-ym463w8f.js → location-ym463w8f.js} +0 -0
- /package/dist/chunks/{form-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{form-z9919s4g.js → location-z9919s4g.js} +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Failed2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-zkg84ctx.js";
|
|
4
4
|
import {
|
|
5
5
|
execDefaults2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-g5h9c0rr.js";
|
|
7
7
|
import {
|
|
8
8
|
Service87,
|
|
9
9
|
node91
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-5pjcmgbp.js";
|
|
11
11
|
import {
|
|
12
12
|
makeUnsafe2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-qjgzc4b4.js";
|
|
14
14
|
import {
|
|
15
15
|
Binding2,
|
|
16
16
|
RegistryService2,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node79
|
|
18
|
+
} from "./location-hdvwg22j.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkspaceTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-faypxj3z.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/workspace.ts
|
|
27
27
|
var exports_workspace = {};
|
|
28
28
|
__export(exports_workspace, {
|
|
29
29
|
CreateConflict: () => CreateConflict2,
|
|
30
|
-
ID: () =>
|
|
31
|
-
Info: () =>
|
|
30
|
+
ID: () => ID11,
|
|
31
|
+
Info: () => Info23,
|
|
32
32
|
NotFound: () => NotFound2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service75,
|
|
34
34
|
Workspace: () => exports_workspace,
|
|
35
|
-
configured: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
configured: () => configured11,
|
|
36
|
+
node: () => node78
|
|
37
37
|
});
|
|
38
38
|
import { Workspace } from "@opencode/schema/workspace";
|
|
39
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,10 +41,10 @@ import { eq } from "drizzle-orm";
|
|
|
41
41
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
42
42
|
import { systemError } from "effect/PlatformError";
|
|
43
43
|
import { make } from "effect/process/ChildProcessSpawner";
|
|
44
|
-
var
|
|
44
|
+
var ID11 = Workspace.ID;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info23 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID11,
|
|
48
48
|
provider: Schema.String,
|
|
49
49
|
binding: Binding2,
|
|
50
50
|
createdAt: Schema.Number,
|
|
@@ -52,24 +52,24 @@ class Info19 extends Schema.Class("Workspace.Info")({
|
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
55
|
+
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID11 }) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
59
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID11,
|
|
60
60
|
provider: Schema.String,
|
|
61
61
|
existingProvider: Schema.String
|
|
62
62
|
}) {
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service75 extends Context.Service()("@opencode/Workspace") {
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
67
|
+
var configured11 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service75,
|
|
69
69
|
layer: layer(options),
|
|
70
|
-
deps: [node91,
|
|
70
|
+
deps: [node91, node79]
|
|
71
71
|
});
|
|
72
|
-
var layer = (options) => Layer.effect(
|
|
72
|
+
var layer = (options) => Layer.effect(Service75, Effect.gen(function* () {
|
|
73
73
|
const db = (yield* Service87).db;
|
|
74
74
|
const registry = yield* RegistryService2;
|
|
75
75
|
const lifetime = yield* Scope.Scope;
|
|
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
86
86
|
return row;
|
|
87
87
|
});
|
|
88
88
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
89
|
-
const info = (row, binding) => new
|
|
89
|
+
const info = (row, binding) => new Info23({
|
|
90
90
|
id: row.id,
|
|
91
91
|
provider: row.provider,
|
|
92
92
|
binding,
|
|
@@ -164,9 +164,9 @@ var layer = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
164
164
|
yield* Scope.close(connection.scope, Exit.void);
|
|
165
165
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
166
166
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
167
|
-
return
|
|
167
|
+
return Service75.of({
|
|
168
168
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
169
|
-
const workspaceID = input.id ??
|
|
169
|
+
const workspaceID = input.id ?? ID11.create();
|
|
170
170
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
171
171
|
if (existing) {
|
|
172
172
|
if (existing.provider === input.provider)
|
|
@@ -242,6 +242,6 @@ var layer = (options) => Layer.effect(Service66, Effect.gen(function* () {
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
|
-
var
|
|
245
|
+
var node78 = configured11();
|
|
246
246
|
|
|
247
|
-
export {
|
|
247
|
+
export { ID11, Info23, NotFound2, CreateConflict2, Service75, configured11, node78, exports_workspace };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
match2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-z38nccrw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/managed-policy.ts
|
|
9
9
|
var exports_managed_policy = {};
|
|
10
10
|
__export(exports_managed_policy, {
|
|
11
11
|
ManagedPolicy: () => exports_managed_policy,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service21,
|
|
13
13
|
decision: () => decision2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
node: () =>
|
|
14
|
+
layer: () => layer12,
|
|
15
|
+
node: () => node23,
|
|
16
16
|
statements: () => statements2
|
|
17
17
|
});
|
|
18
18
|
import { isDeepStrictEqual } from "node:util";
|
|
19
19
|
import { Context, Effect, Layer, PubSub, Stream } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Service21 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var layer12 = Layer.effect(Service21, Effect.gen(function* () {
|
|
25
25
|
const changes = yield* PubSub.unbounded();
|
|
26
26
|
const state = { current: { statements: [] } };
|
|
27
|
-
return
|
|
27
|
+
return Service21.of({
|
|
28
28
|
changes: () => Stream.fromPubSub(changes),
|
|
29
29
|
current: () => state.current,
|
|
30
30
|
set: (next) => Effect.gen(function* () {
|
|
@@ -36,7 +36,7 @@ var layer11 = Layer.effect(Service19, Effect.gen(function* () {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
39
|
+
var node23 = makeGlobalNode({ service: Service21, layer: layer12, deps: [] });
|
|
40
40
|
function statements2(entries, organization) {
|
|
41
41
|
return [
|
|
42
42
|
...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.policies ?? []).map((policy) => ({ ...policy, message: "Blocked by configuration policy" })),
|
|
@@ -50,4 +50,4 @@ function decision2(policies, action, resource) {
|
|
|
50
50
|
return policies.findLast((policy) => policy.action === action && match2(resource, policy.resource))?.effect ?? "allow";
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service21, layer12, node23, statements2, decision2, exports_managed_policy };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
8
|
Service83,
|
|
9
9
|
node87
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-gksz2zdz.js";
|
|
11
11
|
import {
|
|
12
12
|
Service81,
|
|
13
13
|
node85
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-ywpksxwp.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-vd3b3yk9.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./location-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: () => Error4,
|
|
26
|
+
ID: () => ID6,
|
|
27
|
+
Service: () => Service65,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node68,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,18 +34,18 @@ 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 ID6 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error4 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 Service65 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
50
|
const git = yield* Service83;
|
|
51
51
|
const global = yield* Global.Service;
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service70, 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 Error4({ 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)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error4({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID6.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
141
141
|
for (const [file, snapshot] of input.files) {
|
|
142
142
|
const absolute = path.resolve(worktree, file);
|
|
143
143
|
if (!FSUtil.contains(worktree, absolute))
|
|
144
|
-
return yield* new
|
|
144
|
+
return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
145
145
|
files.set(file, TreeID2.make(snapshot));
|
|
146
146
|
}
|
|
147
147
|
return files;
|
|
148
148
|
});
|
|
149
149
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
150
150
|
if (!enabled())
|
|
151
|
-
return yield* new
|
|
151
|
+
return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
|
|
152
152
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
153
153
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service65.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
156
156
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
157
|
-
var
|
|
158
|
-
service:
|
|
157
|
+
var node68 = makeLocationNode({
|
|
158
|
+
service: Service65,
|
|
159
159
|
layer,
|
|
160
160
|
deps: [FSUtil.node, node87, Global.node, node85]
|
|
161
161
|
});
|
|
162
|
-
var noopLayer3 = Layer.succeed(
|
|
162
|
+
var noopLayer3 = Layer.succeed(Service65, Service65.of({
|
|
163
163
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
164
164
|
reload: () => Effect.void,
|
|
165
165
|
capture: () => Effect.undefined,
|
|
@@ -168,13 +168,13 @@ var noopLayer3 = Layer.succeed(Service70, Service70.of({
|
|
|
168
168
|
restore: () => Effect.void
|
|
169
169
|
}));
|
|
170
170
|
function failure(operation, cause) {
|
|
171
|
-
if (cause instanceof
|
|
171
|
+
if (cause instanceof Error4 && cause.operation === operation)
|
|
172
172
|
return cause;
|
|
173
|
-
return new
|
|
173
|
+
return new Error4({
|
|
174
174
|
operation,
|
|
175
175
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
176
176
|
cause
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { ID6, Error4, Service65, node68, noopLayer3, exports_snapshot2 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID8,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-w6frvacy.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID7,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Info18
|
|
11
|
+
} from "./location-ej5n7emy.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CopilotModels: () =>
|
|
20
|
-
derive: () =>
|
|
21
|
-
get: () =>
|
|
22
|
-
load: () =>
|
|
17
|
+
var exports_models2 = {};
|
|
18
|
+
__export(exports_models2, {
|
|
19
|
+
CopilotModels: () => exports_models2,
|
|
20
|
+
derive: () => derive3,
|
|
21
|
+
get: () => get3,
|
|
22
|
+
load: () => load3
|
|
23
23
|
});
|
|
24
24
|
import { Money } from "@opencode/schema/money";
|
|
25
25
|
import { Option, Schema } from "effect";
|
|
@@ -68,10 +68,10 @@ var RemoteModel = Schema.Struct({
|
|
|
68
68
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
69
69
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
70
70
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
71
|
-
async function
|
|
72
|
-
return
|
|
71
|
+
async function get3(baseURL, headers, existing) {
|
|
72
|
+
return derive3(baseURL, await load3(baseURL, headers), existing);
|
|
73
73
|
}
|
|
74
|
-
async function
|
|
74
|
+
async function load3(baseURL, headers) {
|
|
75
75
|
const response = await fetch(`${baseURL}/models`, {
|
|
76
76
|
headers,
|
|
77
77
|
signal: AbortSignal.timeout(5000)
|
|
@@ -83,7 +83,7 @@ async function load2(baseURL, headers) {
|
|
|
83
83
|
return model && usable(model) ? [[model.id, model]] : [];
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function derive3(baseURL, remote, existing) {
|
|
87
87
|
const result = new Map(existing.map((model) => [model.id, model]));
|
|
88
88
|
for (const [id, model] of result) {
|
|
89
89
|
const current = remote.get(model.modelID);
|
|
@@ -94,7 +94,7 @@ function derive2(baseURL, remote, existing) {
|
|
|
94
94
|
result.set(id, build(id, current, baseURL, model));
|
|
95
95
|
}
|
|
96
96
|
for (const [id, model] of remote) {
|
|
97
|
-
const key =
|
|
97
|
+
const key = ID7.make(id);
|
|
98
98
|
if (result.has(key))
|
|
99
99
|
continue;
|
|
100
100
|
result.set(key, build(key, model, baseURL));
|
|
@@ -118,11 +118,11 @@ function build(id, remote, baseURL, previous) {
|
|
|
118
118
|
const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
|
|
119
119
|
const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
|
|
120
120
|
const released = previous?.time.released || Date.parse(version);
|
|
121
|
-
return
|
|
122
|
-
...
|
|
121
|
+
return Info18.make({
|
|
122
|
+
...Info18.default(ID8.githubCopilot, id),
|
|
123
123
|
id,
|
|
124
|
-
modelID:
|
|
125
|
-
providerID:
|
|
124
|
+
modelID: ID7.make(remote.id),
|
|
125
|
+
providerID: ID8.githubCopilot,
|
|
126
126
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
127
127
|
name: previous?.name ?? remote.name,
|
|
128
128
|
package: messages ? "@opencode/ai/providers/anthropic" : aisdk2("@ai-sdk/github-copilot"),
|
|
@@ -197,4 +197,4 @@ function variants(remote, messages) {
|
|
|
197
197
|
];
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export {
|
|
200
|
+
export { get3, load3, derive3, exports_models2 };
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-5pjcmgbp.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-1ep2p91f.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
ConflictError: () => ConflictError2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
NotFoundError: () =>
|
|
16
|
+
ID: () => ID13,
|
|
17
|
+
Info: () => Info24,
|
|
18
|
+
NotFoundError: () => NotFoundError10,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service78,
|
|
21
|
+
node: () => node82
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { isSqlError } from "effect/sql/SqlError";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID13 = PermissionSaved.ID;
|
|
29
|
+
var Info24 = PermissionSaved.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
32
|
-
id:
|
|
31
|
+
class NotFoundError10 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
32
|
+
id: ID13
|
|
33
33
|
}) {
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError", {
|
|
37
|
-
id:
|
|
37
|
+
id: ID13,
|
|
38
38
|
action: Schema.String,
|
|
39
39
|
resource: Schema.String
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service78 extends Context.Service()("@opencode/PermissionSaved") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
46
46
|
const db = (yield* Service87).db;
|
|
47
47
|
const list = Effect.fnUntraced(function* (input) {
|
|
48
48
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -52,7 +52,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
52
52
|
if (!input.resources.length)
|
|
53
53
|
return;
|
|
54
54
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
55
|
-
id:
|
|
55
|
+
id: ID13.create(),
|
|
56
56
|
project_id: input.projectID,
|
|
57
57
|
action: input.action,
|
|
58
58
|
resource
|
|
@@ -61,18 +61,18 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
61
61
|
const update = Effect.fn("PermissionSaved.update")(function* (input) {
|
|
62
62
|
const current = yield* db.select().from(PermissionTable2).where(eq(PermissionTable2.id, input.id)).get().pipe(Effect.orDie);
|
|
63
63
|
if (!current)
|
|
64
|
-
return yield* new
|
|
64
|
+
return yield* new NotFoundError10({ id: input.id });
|
|
65
65
|
const action = input.action ?? current.action;
|
|
66
66
|
const resource = input.resource ?? current.resource;
|
|
67
67
|
const updated = yield* db.update(PermissionTable2).set({ action, resource }).where(eq(PermissionTable2.id, input.id)).returning().get().pipe(Effect.catchIf(isUniqueViolation, () => new ConflictError2({ id: input.id, action, resource })), Effect.catchTag("EffectDrizzleQueryError", (error) => Effect.die(error)));
|
|
68
68
|
if (!updated)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError10({ id: input.id });
|
|
70
70
|
return info(updated);
|
|
71
71
|
});
|
|
72
72
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
73
73
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return Service78.of({ list, add, update, remove });
|
|
76
76
|
}));
|
|
77
77
|
var isUniqueViolation = (error) => {
|
|
78
78
|
const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
|
|
@@ -90,6 +90,6 @@ var info = (row) => ({
|
|
|
90
90
|
updated: DateTime.makeUnsafe(row.time_updated)
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
var
|
|
93
|
+
var node82 = makeGlobalNode({ service: Service78, layer, deps: [node91] });
|
|
94
94
|
|
|
95
|
-
export {
|
|
95
|
+
export { ID13, Info24, NotFoundError10, ConflictError2, Service78, node82, exports_saved };
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
provider2,
|
|
3
3
|
model2,
|
|
4
4
|
compatibleModel2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-j113cymg.js";
|
|
6
6
|
import {
|
|
7
7
|
aisdk2,
|
|
8
8
|
packageName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-w6frvacy.js";
|
|
10
10
|
import {
|
|
11
11
|
Capabilities2,
|
|
12
12
|
compatibility2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-ej5n7emy.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/v1/config/migrate.ts
|
|
19
19
|
var exports_migrate = {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-8whp40kv.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
12
|
var exports_error = {};
|
|
@@ -20,7 +20,7 @@ __export(exports_error, {
|
|
|
20
20
|
InvalidListCursorError: () => InvalidListCursorError2,
|
|
21
21
|
MessageDecodeError: () => MessageDecodeError2,
|
|
22
22
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError9,
|
|
24
24
|
PromptConflictError: () => PromptConflictError2,
|
|
25
25
|
SessionErrors: () => exports_error,
|
|
26
26
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -32,7 +32,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
32
32
|
import { Skill } from "@opencode/schema/skill";
|
|
33
33
|
import { SessionError } from "@opencode/schema/session-error";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class NotFoundError9 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
36
36
|
sessionID: SessionSchema2.ID
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
@@ -123,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
123
123
|
}) {
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export {
|
|
126
|
+
export { NotFoundError9, InvalidListCursorError2, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error };
|