@opencode/core 0.0.0-dev-21661 → 0.0.0-dev-21668
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 +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{model-retry-pc1v25hk.js → snapshot-033a0jkt.js} +3 -3
- package/dist/chunks/{model-retry-32s59e8p.js → snapshot-0421tmwc.js} +9 -9
- package/dist/chunks/{model-retry-7xrq36hz.js → snapshot-0cxd67sz.js} +36 -36
- package/dist/chunks/{model-retry-w687dnns.js → snapshot-0h8y3ex8.js} +4 -4
- package/dist/chunks/{model-retry-qjqtgprh.js → snapshot-0sdvj732.js} +5 -5
- package/dist/chunks/{model-retry-6z7s29v1.js → snapshot-0x28tm96.js} +24 -24
- package/dist/chunks/{model-retry-ewms6j9b.js → snapshot-0xry0drq.js} +329 -329
- package/dist/chunks/{model-retry-s7kyse9r.js → snapshot-173t91w5.js} +9 -9
- package/dist/chunks/{model-retry-wkgj5k69.js → snapshot-1psv69az.js} +5 -5
- package/dist/chunks/{model-retry-waexrkk0.js → snapshot-1skgtqkp.js} +27 -27
- package/dist/chunks/{model-retry-1x2knyw4.js → snapshot-1x2knyw4.js} +1 -1
- package/dist/chunks/{model-retry-k2qg1sgb.js → snapshot-1z8e55mc.js} +30 -30
- package/dist/chunks/{model-retry-20nwq5j7.js → snapshot-20nwq5j7.js} +2 -2
- package/dist/chunks/{model-retry-fhjm4z34.js → snapshot-23kx2h0m.js} +32 -32
- package/dist/chunks/{model-retry-kjgnzevm.js → snapshot-26qqh6c2.js} +9 -9
- package/dist/chunks/{model-retry-27w5k9zf.js → snapshot-27w5k9zf.js} +2 -2
- package/dist/chunks/{model-retry-mw1nm45k.js → snapshot-2cj8dw40.js} +12 -12
- package/dist/chunks/snapshot-2m3we97b.js +257 -0
- package/dist/chunks/{model-retry-8zmpysdb.js → snapshot-2xayqnkb.js} +1 -1
- package/dist/chunks/{model-retry-2z1j29yd.js → snapshot-2z1j29yd.js} +1 -1
- package/dist/chunks/{model-retry-16z8xvrr.js → snapshot-32d3hzha.js} +5 -5
- package/dist/chunks/{model-retry-x2s7p62g.js → snapshot-32jffxcm.js} +13 -13
- package/dist/chunks/{model-retry-bh48jfkc.js → snapshot-37yt7bbd.js} +177 -177
- package/dist/chunks/{model-retry-3cbjf1nt.js → snapshot-3cbjf1nt.js} +2 -2
- package/dist/chunks/{model-retry-xv9gw8q2.js → snapshot-3fgynn9z.js} +13 -13
- package/dist/chunks/{model-retry-4z2d5fre.js → snapshot-3fp5dj89.js} +17 -17
- package/dist/chunks/{model-retry-3hepkmqq.js → snapshot-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-retry-a8rk6bya.js → snapshot-3maxfv7x.js} +14 -14
- package/dist/chunks/{model-retry-3nnrz6f6.js → snapshot-3nnrz6f6.js} +1 -1
- package/dist/chunks/{model-retry-g02cgtqg.js → snapshot-3s06s3jm.js} +85 -85
- package/dist/chunks/{model-retry-a634j94t.js → snapshot-48kj9ap1.js} +13 -13
- package/dist/chunks/{model-retry-akeabbgf.js → snapshot-4d3r9sj7.js} +6 -6
- package/dist/chunks/{model-retry-xby873vx.js → snapshot-4kjpm9vg.js} +22 -22
- package/dist/chunks/{model-retry-thtmsm01.js → snapshot-4ms7e40b.js} +35 -35
- package/dist/chunks/{model-retry-dw8101p3.js → snapshot-4pk1s674.js} +17 -17
- package/dist/chunks/{model-retry-k4pkx3h8.js → snapshot-4q3ynb4r.js} +3 -3
- package/dist/chunks/{model-retry-2352cqpm.js → snapshot-4stkd5r6.js} +20 -20
- package/dist/chunks/{model-retry-9wbkt707.js → snapshot-4t140x50.js} +25 -25
- package/dist/chunks/{model-retry-4v008n1t.js → snapshot-4v008n1t.js} +1 -1
- package/dist/chunks/{model-retry-w830et9m.js → snapshot-4vgzdrnt.js} +11 -11
- package/dist/chunks/{model-retry-4xvmh7wp.js → snapshot-4xvmh7wp.js} +3 -3
- package/dist/chunks/{model-retry-a6zfrhwy.js → snapshot-4yjsd0st.js} +18 -18
- package/dist/chunks/{model-retry-7vrs0mxf.js → snapshot-58b8s1qw.js} +14 -14
- package/dist/chunks/{model-retry-33jrma66.js → snapshot-5awenbjt.js} +16 -16
- package/dist/chunks/{model-retry-grv9e0a8.js → snapshot-5m4gtxdr.js} +33 -33
- package/dist/chunks/{model-retry-5m9w47nd.js → snapshot-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-retry-pqrp5r8r.js → snapshot-5nbhg5mq.js} +14 -14
- package/dist/chunks/{model-retry-e3qxr5gk.js → snapshot-5qd3pb7m.js} +2 -2
- package/dist/chunks/{model-retry-pfyk31y2.js → snapshot-5vbppz2s.js} +5 -5
- package/dist/chunks/{model-retry-945mzj2f.js → snapshot-5z80vped.js} +16 -16
- package/dist/chunks/{model-retry-hjw91gt8.js → snapshot-5z9pfwbq.js} +4 -4
- package/dist/chunks/{model-retry-4eyfa5bt.js → snapshot-610sztem.js} +18 -18
- package/dist/chunks/{model-retry-dxtt3dn7.js → snapshot-65xpdfa7.js} +43 -43
- package/dist/chunks/{model-retry-vsdtm3y6.js → snapshot-66cfxs70.js} +21 -21
- package/dist/chunks/{model-retry-qvw98tg0.js → snapshot-6d6xnsqa.js} +5 -5
- package/dist/chunks/{model-retry-6esdw8yj.js → snapshot-6esdw8yj.js} +1 -1
- package/dist/chunks/{model-retry-adfgt62e.js → snapshot-6fc2jj72.js} +11 -11
- package/dist/chunks/{model-retry-gmwwyjpc.js → snapshot-6hx05w6d.js} +13 -13
- package/dist/chunks/{model-retry-f49gwp6r.js → snapshot-6jjcp2t3.js} +19 -19
- package/dist/chunks/{model-retry-qbat39qr.js → snapshot-6pefdjqg.js} +4 -4
- package/dist/chunks/{model-retry-6pjqjmy2.js → snapshot-6pjqjmy2.js} +1 -1
- package/dist/chunks/{model-retry-sgsbvhae.js → snapshot-6rhfy3ae.js} +9 -9
- package/dist/chunks/{model-retry-hg04c070.js → snapshot-6t3tc22h.js} +21 -21
- package/dist/chunks/{model-retry-tc3wr7kw.js → snapshot-71r0w8zg.js} +8 -8
- package/dist/chunks/{model-retry-h86hs4jx.js → snapshot-752jpkzc.js} +20 -20
- package/dist/chunks/{model-retry-7bmhse3q.js → snapshot-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-retry-5bnhtwbz.js → snapshot-7pr1y472.js} +50 -50
- package/dist/chunks/{model-retry-ytzfdnxp.js → snapshot-7q6s22z8.js} +11 -11
- package/dist/chunks/{model-retry-7w2ypzdf.js → snapshot-7w2ypzdf.js} +1 -1
- package/dist/chunks/{model-retry-tfkjdz6t.js → snapshot-7x3q52mv.js} +23 -23
- package/dist/chunks/{model-retry-yy9yh1zy.js → snapshot-7xnhddsz.js} +11 -11
- package/dist/chunks/{model-retry-vck6kdh7.js → snapshot-7xq4z8xa.js} +24 -24
- package/dist/chunks/{model-retry-nekjk3x1.js → snapshot-7zb10xad.js} +23 -23
- package/dist/chunks/{model-retry-qe6vkhvx.js → snapshot-8tsxffec.js} +11 -11
- package/dist/chunks/{model-retry-8wtp7s3z.js → snapshot-8wtp7s3z.js} +1 -1
- package/dist/chunks/{model-retry-18g90bpv.js → snapshot-8x9y3wj0.js} +9 -9
- package/dist/chunks/{model-retry-ea0wswcg.js → snapshot-8yhhbcjk.js} +45 -45
- package/dist/chunks/{model-retry-rfqv2m6w.js → snapshot-90ckabyq.js} +3 -3
- package/dist/chunks/{model-retry-91rj84md.js → snapshot-91rj84md.js} +1 -1
- package/dist/chunks/{model-retry-tsemnbjg.js → snapshot-93z9sy6y.js} +28 -28
- package/dist/chunks/{model-retry-5r72z9dp.js → snapshot-9437wt4d.js} +8 -8
- package/dist/chunks/{model-retry-0gka690g.js → snapshot-956c56jz.js} +2 -2
- package/dist/chunks/{model-retry-kr6h74hd.js → snapshot-97hv35cm.js} +4 -4
- package/dist/chunks/{model-retry-ckhajkac.js → snapshot-9fgzczsj.js} +14 -14
- package/dist/chunks/{model-retry-20bsrc0x.js → snapshot-9h4y1sr0.js} +10 -10
- package/dist/chunks/{model-retry-t3mtxhe8.js → snapshot-9pn10d5x.js} +36 -36
- package/dist/chunks/{model-retry-tjcpgb0t.js → snapshot-9sznrwc9.js} +22 -22
- package/dist/chunks/{model-retry-j5644rm0.js → snapshot-9y2jjkve.js} +8 -8
- package/dist/chunks/{model-retry-qyjpv9b5.js → snapshot-a2c90ztv.js} +13 -13
- package/dist/chunks/{model-retry-7d4vabvg.js → snapshot-a82ggzqd.js} +25 -25
- package/dist/chunks/{model-retry-qxbnebsm.js → snapshot-a8rbahn6.js} +44 -44
- package/dist/chunks/{model-retry-fmhdrg4y.js → snapshot-a9x398e2.js} +26 -26
- package/dist/chunks/{model-retry-aj7mw0zk.js → snapshot-aj7mw0zk.js} +2 -2
- package/dist/chunks/{model-retry-daaznt2t.js → snapshot-anyn98fc.js} +4 -4
- package/dist/chunks/{model-retry-bjhzkqyk.js → snapshot-ar2j3j0f.js} +4 -4
- package/dist/chunks/{model-retry-b0mv4wxm.js → snapshot-b0mv4wxm.js} +2 -2
- package/dist/chunks/{model-retry-wmtep305.js → snapshot-b2gqx2s6.js} +24 -24
- package/dist/chunks/{model-retry-b6vsg801.js → snapshot-b6vsg801.js} +2 -2
- package/dist/chunks/{model-retry-n7wnam13.js → snapshot-bgg6fpfq.js} +7 -7
- package/dist/chunks/{model-retry-bdhbhy6a.js → snapshot-bjvnb1jb.js} +14 -14
- package/dist/chunks/{model-retry-5v7kgtbj.js → snapshot-bpvjn4b4.js} +5 -5
- package/dist/chunks/{model-retry-bstexjd6.js → snapshot-bstexjd6.js} +1 -1
- package/dist/chunks/{model-retry-7gq17r0e.js → snapshot-bt6ghjgk.js} +9 -9
- package/dist/chunks/{model-retry-6fshephh.js → snapshot-btd04tm9.js} +21 -21
- package/dist/chunks/{model-retry-rf0axqhe.js → snapshot-btnzg8nv.js} +20 -20
- package/dist/chunks/{model-retry-4p63kbz0.js → snapshot-bwcj1zz2.js} +21 -21
- package/dist/chunks/{model-retry-m2hnwcn8.js → snapshot-c1gjp1wv.js} +9 -9
- package/dist/chunks/{model-retry-aqtvbfp8.js → snapshot-c1yxjx8d.js} +4 -4
- package/dist/chunks/{model-retry-88wp77t0.js → snapshot-c2jwcn11.js} +31 -31
- package/dist/chunks/{model-retry-1q6rtcwx.js → snapshot-c2wjegh6.js} +11 -11
- package/dist/chunks/{model-retry-c3cfh5w6.js → snapshot-c3cfh5w6.js} +2 -2
- package/dist/chunks/{model-retry-d2887f8n.js → snapshot-c9t2ty9q.js} +4 -4
- package/dist/chunks/{model-retry-c5m2a8vb.js → snapshot-ccp6j38y.js} +8 -8
- package/dist/chunks/{model-retry-wh6kfv27.js → snapshot-chxh2xv4.js} +41 -41
- package/dist/chunks/{model-retry-5bwswyjb.js → snapshot-d092qe14.js} +28 -28
- package/dist/chunks/{model-retry-d4v9tmah.js → snapshot-d4v9tmah.js} +2 -2
- package/dist/chunks/{model-retry-1rpbm281.js → snapshot-de80h68g.js} +7 -7
- package/dist/chunks/{model-retry-xe04d561.js → snapshot-desdfmbz.js} +15 -15
- package/dist/chunks/{model-retry-fn90fkvf.js → snapshot-dktwc335.js} +30 -30
- package/dist/chunks/{model-retry-v7edqz63.js → snapshot-dmkv2tgn.js} +14 -14
- package/dist/chunks/{model-retry-dvj9ct8m.js → snapshot-dvj9ct8m.js} +3 -3
- package/dist/chunks/{model-retry-gg5ajwfv.js → snapshot-dvnjm1h8.js} +35 -35
- package/dist/chunks/{model-retry-2wmk5873.js → snapshot-dzn8tf7s.js} +4 -4
- package/dist/chunks/{model-retry-hnrrf75a.js → snapshot-e2ze8rsg.js} +10 -10
- package/dist/chunks/{model-retry-e834z07m.js → snapshot-e834z07m.js} +1 -1
- package/dist/chunks/{model-retry-tx91wa5k.js → snapshot-e8pm465n.js} +4 -4
- package/dist/chunks/{model-retry-hk6b7xe4.js → snapshot-e9h2djdw.js} +27 -27
- package/dist/chunks/{model-retry-4j6ygzg0.js → snapshot-easvm2vj.js} +17 -17
- package/dist/chunks/{model-retry-ef5x83kb.js → snapshot-ef5x83kb.js} +1 -1
- package/dist/chunks/{model-retry-q8skw5t4.js → snapshot-esvf2qf6.js} +11 -11
- package/dist/chunks/{model-retry-5r8en0fy.js → snapshot-et8k1vr1.js} +9 -9
- package/dist/chunks/snapshot-ev660z6k.js +18 -0
- package/dist/chunks/{model-retry-dmhcp16a.js → snapshot-expey290.js} +16 -16
- package/dist/chunks/{model-retry-wjkdsmbm.js → snapshot-f36md42a.js} +12 -12
- package/dist/chunks/{model-retry-s71ympam.js → snapshot-f95ahvj8.js} +29 -29
- package/dist/chunks/{model-retry-sm6vx8r5.js → snapshot-fepyh2km.js} +16 -16
- package/dist/chunks/{model-retry-fffv3p7h.js → snapshot-fffv3p7h.js} +1 -1
- package/dist/chunks/{model-retry-m04867d5.js → snapshot-fgjt3jgn.js} +5 -5
- package/dist/chunks/{model-retry-1gv4f02v.js → snapshot-fp00nt0f.js} +5 -5
- package/dist/chunks/{model-retry-hd9p2qrn.js → snapshot-fp9qajhf.js} +4 -4
- package/dist/chunks/{model-retry-tx653dhe.js → snapshot-fr70jeat.js} +18 -18
- package/dist/chunks/{model-retry-4fzjj0zw.js → snapshot-fvvr5s83.js} +6 -6
- package/dist/chunks/{model-retry-y1249fzv.js → snapshot-fyqk7716.js} +12 -12
- package/dist/chunks/{model-retry-g5h9c0rr.js → snapshot-g5h9c0rr.js} +2 -2
- package/dist/chunks/{model-retry-zp9devnn.js → snapshot-gp4q1vjf.js} +2 -2
- package/dist/chunks/{model-retry-a0ze7ap3.js → snapshot-gtggn4m8.js} +17 -17
- package/dist/chunks/{model-retry-295s1tfa.js → snapshot-gz2sw2ma.js} +21 -21
- package/dist/chunks/{model-retry-7pg8rm12.js → snapshot-gzjdybps.js} +8 -8
- package/dist/chunks/{model-retry-xn0dkv9k.js → snapshot-h1xsva0t.js} +10 -10
- package/dist/chunks/{model-retry-4kxrtmfk.js → snapshot-h973wt88.js} +32 -32
- package/dist/chunks/{model-retry-dw7m3xvw.js → snapshot-hb29wq2n.js} +17 -17
- package/dist/chunks/{model-retry-4nh7jqqy.js → snapshot-hbw75saf.js} +83 -83
- package/dist/chunks/{model-retry-z4svz70a.js → snapshot-hj9jsy39.js} +4 -4
- package/dist/chunks/{model-retry-3x6mzmtb.js → snapshot-htnzn55t.js} +35 -35
- package/dist/chunks/{model-retry-j113cymg.js → snapshot-j113cymg.js} +1 -1
- package/dist/chunks/{model-retry-8gpczyd8.js → snapshot-j7t1g52h.js} +9 -9
- package/dist/chunks/{model-retry-cmjj196d.js → snapshot-j9cjhb81.js} +25 -25
- package/dist/chunks/{model-retry-gj9fd72a.js → snapshot-jh96v5at.js} +13 -13
- package/dist/chunks/{model-retry-gqy3s5ng.js → snapshot-jt7rgdp8.js} +23 -23
- package/dist/chunks/{model-retry-v1y7x4cv.js → snapshot-jx13zqpg.js} +14 -14
- package/dist/chunks/{model-retry-s3aa97yb.js → snapshot-k5xhafzb.js} +26 -26
- package/dist/chunks/{model-retry-k814nvkf.js → snapshot-k814nvkf.js} +1 -1
- package/dist/chunks/snapshot-kg5hf5sk.js +26 -0
- package/dist/chunks/{model-retry-vryb9jrf.js → snapshot-kmcztane.js} +8 -8
- package/dist/chunks/{model-retry-15b56cgm.js → snapshot-knyqd3dz.js} +6 -6
- package/dist/chunks/{model-retry-bdv51ks6.js → snapshot-kra5gpw7.js} +45 -45
- package/dist/chunks/{model-retry-1x14vdzp.js → snapshot-ks069zf8.js} +49 -49
- package/dist/chunks/{model-retry-mfvka9j5.js → snapshot-kzwb18h7.js} +11 -11
- package/dist/chunks/{model-retry-m1714858.js → snapshot-m1714858.js} +1 -1
- package/dist/chunks/{model-retry-vmfhgzt5.js → snapshot-m37sd98t.js} +4 -4
- package/dist/chunks/{model-retry-5ntvbkr3.js → snapshot-m9vdqn0q.js} +33 -33
- package/dist/chunks/{model-retry-m9w0rfyh.js → snapshot-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-retry-maspj1v3.js → snapshot-maspj1v3.js} +1 -1
- package/dist/chunks/{model-retry-jeyepegn.js → snapshot-mesf2czn.js} +10 -10
- package/dist/chunks/{model-retry-ktxkps69.js → snapshot-mfw0x7a6.js} +66 -66
- package/dist/chunks/{model-retry-qgmn31h3.js → snapshot-mqew7zyd.js} +29 -29
- package/dist/chunks/{model-retry-jzh23w2y.js → snapshot-mtpeagzc.js} +3 -3
- package/dist/chunks/{model-retry-jzpxygg0.js → snapshot-mzyv1r8q.js} +8 -8
- package/dist/chunks/{model-retry-n0p0277s.js → snapshot-n0p0277s.js} +1 -1
- package/dist/chunks/{model-retry-txfdt2b0.js → snapshot-n35z2g72.js} +15 -15
- package/dist/chunks/{model-retry-1pd714jw.js → snapshot-n911m9zj.js} +18 -18
- package/dist/chunks/{model-retry-nah043kf.js → snapshot-nah043kf.js} +1 -1
- package/dist/chunks/{model-retry-xegc1gxr.js → snapshot-nds6ga7z.js} +12 -12
- package/dist/chunks/{model-retry-yr0q3nx1.js → snapshot-nk8tpxf0.js} +6 -6
- package/dist/chunks/{model-retry-hfc726b7.js → snapshot-nkr5r85d.js} +2 -2
- package/dist/chunks/{model-retry-p4nbw5fh.js → snapshot-nskhb6ad.js} +27 -27
- package/dist/chunks/{model-retry-p015t6z3.js → snapshot-p015t6z3.js} +2 -2
- package/dist/chunks/{model-retry-9abfe0c3.js → snapshot-p0x3txpd.js} +15 -15
- package/dist/chunks/{model-retry-ghrzdqqx.js → snapshot-p3p972wa.js} +5 -5
- package/dist/chunks/{model-retry-w9w8mt4n.js → snapshot-p76me67c.js} +4 -4
- package/dist/chunks/{model-retry-pppg3y1y.js → snapshot-p7qc0ane.js} +40 -40
- package/dist/chunks/{model-retry-v9ez2kgh.js → snapshot-p7vhpwh8.js} +5 -5
- package/dist/chunks/{model-retry-gj8x1tda.js → snapshot-pacbbjc0.js} +5 -5
- package/dist/chunks/{model-retry-qy1wtshc.js → snapshot-pcspdvfz.js} +6 -6
- package/dist/chunks/{model-retry-pknna89w.js → snapshot-pknna89w.js} +1 -1
- package/dist/chunks/{model-retry-d0h8t5hk.js → snapshot-pqb8eb2f.js} +8 -8
- package/dist/chunks/{model-retry-xp3wxx2t.js → snapshot-pv9y8cyn.js} +19 -19
- package/dist/chunks/{model-retry-wecx54fa.js → snapshot-py70aet5.js} +45 -45
- package/dist/chunks/{model-retry-p4gac2xv.js → snapshot-q5ve17hv.js} +23 -23
- package/dist/chunks/{model-retry-c4970w7t.js → snapshot-qah7t4da.js} +6 -6
- package/dist/chunks/{model-retry-8jztxfpf.js → snapshot-qjgzc4b4.js} +4 -4
- package/dist/chunks/{model-retry-7cy37jqv.js → snapshot-qn60nzrt.js} +7 -7
- package/dist/chunks/{model-retry-jt5vb9t1.js → snapshot-qqn4m6zg.js} +18 -18
- package/dist/chunks/{model-retry-h2v6w9fm.js → snapshot-qz83k29f.js} +21 -21
- package/dist/chunks/{model-retry-r0yr0wbs.js → snapshot-r0yr0wbs.js} +1 -1
- package/dist/chunks/{model-retry-rb9dy4dg.js → snapshot-rb9dy4dg.js} +1 -1
- package/dist/chunks/{model-retry-tbbj6rhj.js → snapshot-rd6zdj6e.js} +9 -9
- package/dist/chunks/{model-retry-jav3q4wh.js → snapshot-rey6ew65.js} +7 -7
- package/dist/chunks/{model-retry-sjxh0ebt.js → snapshot-rffg35ng.js} +4 -4
- package/dist/chunks/{model-retry-cfkzqjea.js → snapshot-rj8x90ng.js} +24 -24
- package/dist/chunks/{model-retry-z16rqh1h.js → snapshot-rmhxa1va.js} +11 -11
- package/dist/chunks/{model-retry-rt5dr6hb.js → snapshot-rt5dr6hb.js} +1 -1
- package/dist/chunks/{model-retry-w445jyrw.js → snapshot-ry63fkbp.js} +8 -8
- package/dist/chunks/{model-retry-09pgmfn5.js → snapshot-s6v9y3bv.js} +3 -3
- package/dist/chunks/{model-retry-e3e7vv2j.js → snapshot-s73pgd5t.js} +11 -11
- package/dist/chunks/{model-retry-ygy08vjq.js → snapshot-sh0vvbd0.js} +25 -25
- package/dist/chunks/{model-retry-jq4gkdch.js → snapshot-sk9w2v45.js} +40 -40
- package/dist/chunks/{model-retry-w1zjn144.js → snapshot-sknn4ytw.js} +11 -11
- package/dist/chunks/{model-retry-504h1h2p.js → snapshot-snaj6n18.js} +5 -5
- package/dist/chunks/{model-retry-sqjzf8x2.js → snapshot-sqjzf8x2.js} +1 -1
- package/dist/chunks/{model-retry-9gzd5sdz.js → snapshot-sz1wsyga.js} +11 -11
- package/dist/chunks/{model-retry-8wc2fpae.js → snapshot-szcgc7h4.js} +5 -5
- package/dist/chunks/{model-retry-s6zqqgcc.js → snapshot-t1jhrm4y.js} +12 -12
- package/dist/chunks/{model-retry-2azy8kv6.js → snapshot-t211gxpv.js} +4 -4
- package/dist/chunks/{model-retry-rxcn9dmj.js → snapshot-t8549y5a.js} +42 -42
- package/dist/chunks/{model-retry-s7pe5jpp.js → snapshot-t8tbgrvw.js} +12 -12
- package/dist/chunks/{model-retry-yq1gzmdm.js → snapshot-tcnewvsx.js} +21 -21
- package/dist/chunks/{model-retry-160yv0cs.js → snapshot-tcvw3ax2.js} +8 -8
- package/dist/chunks/{model-retry-tczq8hjw.js → snapshot-tczq8hjw.js} +1 -1
- package/dist/chunks/{model-retry-ezfrkc6y.js → snapshot-tf2ec46p.js} +12 -12
- package/dist/chunks/{model-retry-cvqzdst0.js → snapshot-tf5c574a.js} +4 -4
- package/dist/chunks/{model-retry-sd3cteb1.js → snapshot-tfkshzr6.js} +3 -3
- package/dist/chunks/{model-retry-antzfpbp.js → snapshot-tj8qecb5.js} +17 -17
- package/dist/chunks/{model-retry-w7cnq13e.js → snapshot-tpez38m9.js} +47 -47
- package/dist/chunks/{model-retry-4efv169t.js → snapshot-tpzqzpez.js} +4 -4
- package/dist/chunks/{model-retry-tw8zr1ps.js → snapshot-tw8zr1ps.js} +1 -1
- package/dist/chunks/{model-retry-knncxtrw.js → snapshot-twkwk1tg.js} +7 -7
- package/dist/chunks/{model-retry-twv2r8f4.js → snapshot-twv2r8f4.js} +2 -2
- package/dist/chunks/{model-retry-v2r1d0zg.js → snapshot-v2r1d0zg.js} +1 -1
- package/dist/chunks/{model-retry-95x7pe01.js → snapshot-v753rv77.js} +2 -2
- package/dist/chunks/{model-retry-vd3b3yk9.js → snapshot-vd3b3yk9.js} +1 -1
- package/dist/chunks/{model-retry-cfkc8wvf.js → snapshot-ve7ke69q.js} +4 -4
- package/dist/chunks/{model-retry-veqvce7d.js → snapshot-veqvce7d.js} +1 -1
- package/dist/chunks/{model-retry-6pk7avk3.js → snapshot-vnn4dnfn.js} +13 -13
- package/dist/chunks/{model-retry-kj1j79ct.js → snapshot-w06brs61.js} +11 -11
- package/dist/chunks/{model-retry-wnr6a5h7.js → snapshot-w1pg8ac5.js} +29 -29
- package/dist/chunks/{model-retry-40za9wsf.js → snapshot-w2eysc6j.js} +9 -9
- package/dist/chunks/{model-retry-w3wsvvr9.js → snapshot-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-retry-76cb1hcw.js → snapshot-w8qtt4th.js} +4 -4
- package/dist/chunks/{model-retry-pdw6wz0h.js → snapshot-w9a9fs8e.js} +8 -8
- package/dist/chunks/{model-retry-wakvkjy4.js → snapshot-wakvkjy4.js} +1 -1
- package/dist/chunks/{model-retry-wd87259q.js → snapshot-wd87259q.js} +1 -1
- package/dist/chunks/{model-retry-kt8g20y3.js → snapshot-wh9mm6vw.js} +19 -19
- package/dist/chunks/{model-retry-sdxydkh6.js → snapshot-x341zyq1.js} +12 -12
- package/dist/chunks/{model-retry-j8qp8vb7.js → snapshot-x4c5ct84.js} +2 -2
- package/dist/chunks/{model-retry-0etvtzr7.js → snapshot-x4rf9yj3.js} +10 -10
- package/dist/chunks/{model-retry-vrq9j7rb.js → snapshot-xaxjrmdm.js} +15 -15
- package/dist/chunks/{model-retry-t00mk0ke.js → snapshot-xctkx9ev.js} +24 -24
- package/dist/chunks/{model-retry-mt3ysty9.js → snapshot-xkympmbz.js} +6 -6
- package/dist/chunks/{model-retry-0qev6pn3.js → snapshot-xnh17wmv.js} +11 -11
- package/dist/chunks/{model-retry-r3hh8w6n.js → snapshot-xvtsgqh3.js} +24 -24
- package/dist/chunks/{model-retry-pgeypdwc.js → snapshot-xwbd5bvh.js} +29 -29
- package/dist/chunks/{model-retry-0eaaaj4x.js → snapshot-xxcv7c4s.js} +18 -18
- package/dist/chunks/{model-retry-zjy8xeq5.js → snapshot-xzpe0agp.js} +30 -30
- package/dist/chunks/{model-retry-e5dqjz6v.js → snapshot-y2tacs4v.js} +6 -6
- package/dist/chunks/{model-retry-1gde04cj.js → snapshot-y7gkpn43.js} +9 -9
- package/dist/chunks/{model-retry-yb20nhc3.js → snapshot-yb20nhc3.js} +1 -1
- package/dist/chunks/{model-retry-r8a6rr1y.js → snapshot-ycqmxcqc.js} +17 -17
- package/dist/chunks/{model-retry-61wyp4gr.js → snapshot-yk0esd9v.js} +4 -4
- package/dist/chunks/{model-retry-z26cgg3v.js → snapshot-yphmbpfe.js} +20 -20
- package/dist/chunks/{model-retry-y3xtvwd4.js → snapshot-yywmapa3.js} +14 -14
- package/dist/chunks/{model-retry-z0bkrqjs.js → snapshot-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-retry-gddkg3ta.js → snapshot-z2f4zgv2.js} +23 -23
- package/dist/chunks/{model-retry-z38nccrw.js → snapshot-z38nccrw.js} +1 -1
- package/dist/chunks/{model-retry-h6yftxtc.js → snapshot-z45bvydx.js} +29 -29
- package/dist/chunks/{model-retry-yfyqcpqq.js → snapshot-zg933662.js} +6 -6
- package/dist/chunks/{model-retry-zkg84ctx.js → snapshot-zkg84ctx.js} +1 -1
- package/dist/chunks/{model-retry-ecw9kts4.js → snapshot-zmh6aqr2.js} +12 -12
- package/dist/chunks/{model-retry-xvee63d2.js → snapshot-zyd3t986.js} +9 -9
- package/dist/chunks/{model-retry-z0t0wh6t.js → snapshot-zysf9qxs.js} +8 -8
- package/dist/chunks/{model-retry-btsa3r6q.js → snapshot-zzzmj3mf.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +114 -114
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +87 -87
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +106 -106
- package/dist/form.js +78 -78
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +101 -101
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- 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 +360 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +156 -156
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +114 -114
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- 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 +221 -221
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +164 -164
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +93 -93
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -101
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +166 -166
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +214 -214
- 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 +9 -9
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +139 -139
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +217 -217
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +104 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- 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 +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +82 -82
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +102 -102
- package/package.json +8 -8
- package/dist/chunks/model-retry-das67r30.js +0 -26
- package/dist/chunks/model-retry-f8ma18fn.js +0 -18
- package/dist/chunks/model-retry-qrbjjv6t.js +0 -257
- /package/dist/chunks/{model-retry-0qkdqm5v.js → snapshot-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-retry-0zkw76rk.js → snapshot-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-retry-17cy0kzp.js → snapshot-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-retry-1cnp2v09.js → snapshot-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-retry-24dcb14g.js → snapshot-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-retry-2710q6r3.js → snapshot-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-retry-2bv980vf.js → snapshot-2bv980vf.js} +0 -0
- /package/dist/chunks/{model-retry-2c3vjs8z.js → snapshot-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-retry-359p4xyc.js → snapshot-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-retry-3asan66x.js → snapshot-3asan66x.js} +0 -0
- /package/dist/chunks/{model-retry-3v8g72cx.js → snapshot-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-retry-3wcehsnq.js → snapshot-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-retry-43n2bw4t.js → snapshot-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-retry-4knz6hnm.js → snapshot-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-retry-4vcrnpx2.js → snapshot-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-retry-4y7fprxs.js → snapshot-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-retry-53557ph1.js → snapshot-53557ph1.js} +0 -0
- /package/dist/chunks/{model-retry-550bvhaj.js → snapshot-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-retry-5fjb7ams.js → snapshot-5fjb7ams.js} +0 -0
- /package/dist/chunks/{model-retry-6prwharc.js → snapshot-6prwharc.js} +0 -0
- /package/dist/chunks/{model-retry-6q2bdcd1.js → snapshot-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-retry-7akdwqpd.js → snapshot-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-retry-7m9af43g.js → snapshot-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-retry-822emrt2.js → snapshot-822emrt2.js} +0 -0
- /package/dist/chunks/{model-retry-84wd9syh.js → snapshot-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-retry-88xbtdfr.js → snapshot-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-retry-8n3pysct.js → snapshot-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-retry-8wj87zfr.js → snapshot-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-retry-9a4afbnw.js → snapshot-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-retry-9rqn6x4v.js → snapshot-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-retry-a058387c.js → snapshot-a058387c.js} +0 -0
- /package/dist/chunks/{model-retry-a6k6eb26.js → snapshot-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-retry-af5trqkr.js → snapshot-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-retry-afrmfg78.js → snapshot-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-retry-aqzs7mqg.js → snapshot-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-retry-atq7p7m5.js → snapshot-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-retry-bkyjaxrp.js → snapshot-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-retry-bmr6ed5q.js → snapshot-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-retry-cf4snx6d.js → snapshot-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-retry-cvy3z8tj.js → snapshot-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-retry-d9fn303g.js → snapshot-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-retry-d9jj8t3e.js → snapshot-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-retry-dajrwvna.js → snapshot-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-retry-dap0rakb.js → snapshot-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-retry-df08tz66.js → snapshot-df08tz66.js} +0 -0
- /package/dist/chunks/{model-retry-dy18nga0.js → snapshot-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-retry-e5kj55wp.js → snapshot-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-retry-e73j6tqm.js → snapshot-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-retry-ec1grn59.js → snapshot-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-retry-eh3zwz77.js → snapshot-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-retry-emrn6kk6.js → snapshot-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-retry-f0mxakyp.js → snapshot-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-retry-f6n9ztr4.js → snapshot-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-retry-faypxj3z.js → snapshot-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-retry-fd410y7t.js → snapshot-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-retry-g4wezp1m.js → snapshot-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-retry-g86h250q.js → snapshot-g86h250q.js} +0 -0
- /package/dist/chunks/{model-retry-gebd4c9n.js → snapshot-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-retry-gftt206x.js → snapshot-gftt206x.js} +0 -0
- /package/dist/chunks/{model-retry-hcxmzztb.js → snapshot-hcxmzztb.js} +0 -0
- /package/dist/chunks/{model-retry-hk9envan.js → snapshot-hk9envan.js} +0 -0
- /package/dist/chunks/{model-retry-j2ntwpah.js → snapshot-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-retry-j5zkgpj8.js → snapshot-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-retry-jjkms2e6.js → snapshot-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-retry-jr7sbwjy.js → snapshot-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-retry-jwfs4k6c.js → snapshot-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-retry-jze0r7bz.js → snapshot-jze0r7bz.js} +0 -0
- /package/dist/chunks/{model-retry-jzg6c2d5.js → snapshot-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-retry-m18g726c.js → snapshot-m18g726c.js} +0 -0
- /package/dist/chunks/{model-retry-mp448xyj.js → snapshot-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-retry-msx8hqn2.js → snapshot-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-retry-n05xt0ee.js → snapshot-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-retry-n3j8tn72.js → snapshot-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-retry-njntx4h6.js → snapshot-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-retry-pkyv6v7h.js → snapshot-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{model-retry-q3sfg36h.js → snapshot-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-retry-q74kybfr.js → snapshot-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-retry-qaymkmh1.js → snapshot-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-retry-qb87gjwd.js → snapshot-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-retry-qfa1cgps.js → snapshot-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-retry-qg3g05ea.js → snapshot-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-retry-qrg20bc0.js → snapshot-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-retry-rcb2kzg1.js → snapshot-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-retry-sdp7kfr6.js → snapshot-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-retry-ssg3fenm.js → snapshot-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-retry-ve7vex1e.js → snapshot-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-retry-w803qqfp.js → snapshot-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-retry-wc3fc9cn.js → snapshot-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-retry-wer8tq1h.js → snapshot-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-retry-wjj7prxr.js → snapshot-wjj7prxr.js} +0 -0
- /package/dist/chunks/{model-retry-wtztk69x.js → snapshot-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-retry-x0ckcb58.js → snapshot-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-retry-x61499pn.js → snapshot-x61499pn.js} +0 -0
- /package/dist/chunks/{model-retry-y44na4kk.js → snapshot-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-retry-y8f7s663.js → snapshot-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-retry-ygaqb7jw.js → snapshot-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-retry-ym463w8f.js → snapshot-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-retry-z5v4ffb3.js → snapshot-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-retry-z9919s4g.js → snapshot-z9919s4g.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-tczq8hjw.js";
|
|
4
4
|
import {
|
|
5
5
|
create3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-vd3b3yk9.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool-output.ts
|
|
12
12
|
var exports_tool_output2 = {};
|
|
@@ -15,10 +15,10 @@ __export(exports_tool_output2, {
|
|
|
15
15
|
MAX_BYTES: () => MAX_BYTES2,
|
|
16
16
|
MAX_LINES: () => MAX_LINES2,
|
|
17
17
|
RETENTION: () => RETENTION3,
|
|
18
|
-
Service: () =>
|
|
18
|
+
Service: () => Service60,
|
|
19
19
|
ToolOutput: () => exports_tool_output2,
|
|
20
20
|
fileName: () => fileName2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node62
|
|
22
22
|
});
|
|
23
23
|
import path from "path";
|
|
24
24
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var RETENTION3 = Duration.days(7);
|
|
|
32
32
|
var DIRECTORY3 = "tool-output";
|
|
33
33
|
var fileName2 = (timestamp) => "tool_" + Identifier.create(false, timestamp);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service60 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -121,7 +121,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
121
121
|
yield* fs.writeWithDirs(file, bytes).pipe(Effect.orDie);
|
|
122
122
|
return file;
|
|
123
123
|
});
|
|
124
|
-
return
|
|
124
|
+
return Service60.of({
|
|
125
125
|
transform: state.transform,
|
|
126
126
|
reload: state.reload,
|
|
127
127
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node62 = makeLocationNode({
|
|
143
|
+
service: Service60,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, fileName2, Service60, node62, exports_tool_output2 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./snapshot-fp9qajhf.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-a2c90ztv.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./snapshot-a058387c.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError2,
|
|
20
|
+
Options: () => Options2,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
available: () =>
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
22
|
+
Service: () => Service18,
|
|
23
|
+
UnavailableError: () => UnavailableError3,
|
|
24
|
+
available: () => available2,
|
|
25
|
+
configured: () => configured2,
|
|
26
|
+
layer: () => layer11,
|
|
27
|
+
node: () => node21
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -34,25 +34,25 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
34
34
|
import { Global } from "@opencode/util/global";
|
|
35
35
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
36
36
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
37
|
-
import { available as
|
|
38
|
-
var
|
|
37
|
+
import { available as available2 } from "#persistent-pty-binary";
|
|
38
|
+
var Options2 = Schema.Struct({
|
|
39
39
|
handoff: Schema.optional(Handoff),
|
|
40
40
|
root: Schema.optional(Schema.String)
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
44
44
|
message: Schema.String
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class NotFoundError2 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
49
49
|
ptyID: Pty.ID
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service18 extends Context.Service()("@opencode/PersistentPty") {
|
|
54
54
|
}
|
|
55
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
55
|
+
var makeLayer = (options = {}) => Layer.effect(Service18, Effect.gen(function* () {
|
|
56
56
|
const bus = yield* Service85;
|
|
57
57
|
const global = yield* Global.Service;
|
|
58
58
|
const context = yield* Effect.context();
|
|
@@ -75,7 +75,7 @@ var makeLayer = (options = {}) => Layer.effect(Service66, Effect.gen(function* (
|
|
|
75
75
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
76
76
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
77
77
|
if (!found)
|
|
78
|
-
return yield* new
|
|
78
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
79
79
|
return found;
|
|
80
80
|
});
|
|
81
81
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -165,7 +165,7 @@ var makeLayer = (options = {}) => Layer.effect(Service66, Effect.gen(function* (
|
|
|
165
165
|
});
|
|
166
166
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
167
167
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
168
|
-
return yield* new
|
|
168
|
+
return yield* new UnavailableError3({ message: "lines must be an integer between 1 and 65535" });
|
|
169
169
|
const id = current.get(sessionID);
|
|
170
170
|
if (!id)
|
|
171
171
|
return null;
|
|
@@ -242,7 +242,7 @@ var makeLayer = (options = {}) => Layer.effect(Service66, Effect.gen(function* (
|
|
|
242
242
|
detach: attachment.detach
|
|
243
243
|
};
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return Service18.of({
|
|
246
246
|
list,
|
|
247
247
|
get,
|
|
248
248
|
create,
|
|
@@ -258,17 +258,17 @@ var makeLayer = (options = {}) => Layer.effect(Service66, Effect.gen(function* (
|
|
|
258
258
|
attach
|
|
259
259
|
});
|
|
260
260
|
}));
|
|
261
|
-
var
|
|
262
|
-
var
|
|
263
|
-
service:
|
|
264
|
-
layer: options === undefined ?
|
|
261
|
+
var layer11 = makeLayer();
|
|
262
|
+
var configured2 = (options) => makeGlobalNode({
|
|
263
|
+
service: Service18,
|
|
264
|
+
layer: options === undefined ? layer11 : makeLayer(options),
|
|
265
265
|
deps: [node89, Global.node]
|
|
266
266
|
});
|
|
267
|
-
var
|
|
267
|
+
var node21 = configured2();
|
|
268
268
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
269
269
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
270
|
-
var unexpected = (response) => Effect.fail(new
|
|
271
|
-
var unavailable = (error) => new
|
|
270
|
+
var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
271
|
+
var unavailable = (error) => new UnavailableError3({ message: error instanceof Error ? error.message : String(error) });
|
|
272
272
|
function toInfo(value) {
|
|
273
273
|
const status = value.lifecycle.status;
|
|
274
274
|
return {
|
|
@@ -300,4 +300,4 @@ function fromID(value) {
|
|
|
300
300
|
return parsed;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export {
|
|
303
|
+
export { Options2, UnavailableError3, NotFoundError2, Service18, layer11, configured2, node21, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-3v8g72cx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
|
-
var
|
|
10
|
-
__export(
|
|
11
|
-
MAX_RESPONSE_BYTES: () =>
|
|
12
|
-
WebSearchMcp: () =>
|
|
9
|
+
var exports_mcp2 = {};
|
|
10
|
+
__export(exports_mcp2, {
|
|
11
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
12
|
+
WebSearchMcp: () => exports_mcp2,
|
|
13
13
|
call: () => call2,
|
|
14
14
|
parseResponse: () => parseResponse2
|
|
15
15
|
});
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var MAX_RESPONSE_BYTES3 = 256 * 1024;
|
|
19
19
|
var parseResponse2 = (body, result) => {
|
|
20
20
|
const decode = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Struct({ result })));
|
|
21
21
|
const parse = (payload) => {
|
|
@@ -53,7 +53,7 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
53
53
|
}));
|
|
54
54
|
return yield* Effect.gen(function* () {
|
|
55
55
|
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request);
|
|
56
|
-
const body = yield* collectBoundedResponseBody2(response,
|
|
56
|
+
const body = yield* collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`${tool} response exceeded ${MAX_RESPONSE_BYTES3} bytes`));
|
|
57
57
|
return yield* parseResponse2(body.toString("utf8"), schema.output);
|
|
58
58
|
}).pipe(Effect.scoped, Effect.timeoutOrElse({
|
|
59
59
|
duration: Duration.seconds(25),
|
|
@@ -61,4 +61,4 @@ var call2 = (http, url, tool, schema, value, headers = {}) => Effect.gen(functio
|
|
|
61
61
|
}));
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
-
export {
|
|
64
|
+
export { MAX_RESPONSE_BYTES3, parseResponse2, call2, exports_mcp2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/filesystem/protected.ts
|
|
6
6
|
var exports_protected = {};
|
|
7
7
|
__export(exports_protected, {
|
|
8
8
|
Protected: () => exports_protected,
|
|
9
9
|
isHome: () => isHome2,
|
|
10
|
-
names: () =>
|
|
10
|
+
names: () => names4,
|
|
11
11
|
paths: () => paths2
|
|
12
12
|
});
|
|
13
13
|
import os from "os";
|
|
@@ -41,7 +41,7 @@ var DARWIN_LIBRARY = [
|
|
|
41
41
|
];
|
|
42
42
|
var DARWIN_ROOT = ["/.DocumentRevisions-V100", "/.Spotlight-V100", "/.Trashes", "/.fseventsd"];
|
|
43
43
|
var WIN32_HOME = ["AppData", "Downloads", "Desktop", "Documents", "Pictures", "Music", "Videos", "OneDrive"];
|
|
44
|
-
function
|
|
44
|
+
function names4() {
|
|
45
45
|
if (process.platform === "darwin")
|
|
46
46
|
return new Set(DARWIN_HOME);
|
|
47
47
|
if (process.platform === "win32")
|
|
@@ -60,4 +60,4 @@ function paths2() {
|
|
|
60
60
|
return [];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export { isHome2,
|
|
63
|
+
export { isHome2, names4, paths2, exports_protected };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-v753rv77.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/discovery.ts
|
|
12
12
|
var exports_discovery2 = {};
|
|
13
13
|
__export(exports_discovery2, {
|
|
14
14
|
ConfigDiscovery: () => exports_discovery2,
|
|
15
15
|
discover: () => discover3,
|
|
16
|
-
names: () =>
|
|
16
|
+
names: () => names3,
|
|
17
17
|
preferencePaths: () => preferencePaths2,
|
|
18
18
|
stripPreferenceMetadata: () => stripPreferenceMetadata2,
|
|
19
19
|
systemDirectory: () => systemDirectory2
|
|
@@ -23,7 +23,7 @@ import path from "path";
|
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
25
25
|
import { Global } from "@opencode/util/global";
|
|
26
|
-
var
|
|
26
|
+
var names3 = ["opencode.json", "opencode.jsonc"];
|
|
27
27
|
function systemDirectory2(platform = process.platform, env = process.env) {
|
|
28
28
|
if (platform === "darwin")
|
|
29
29
|
return AbsolutePath2.make("/Library/Application Support/opencode");
|
|
@@ -71,10 +71,10 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
71
71
|
const directories = globalRoots.slice(0, configDirectories.length).includes(current) || options?.project === false ? [] : yield* fs.up({ targets: ["."], start: location.directory }).pipe(Effect.orDie);
|
|
72
72
|
const discovered = yield* Effect.forEach(directories, (directory) => Effect.gen(function* () {
|
|
73
73
|
const parent = yield* fs.resolve(directory);
|
|
74
|
-
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...
|
|
74
|
+
return yield* Effect.forEach([".claude", ".agents", ".opencode", ...names3.toReversed()], (name) => fs.resolve(path.join(parent, name)).pipe(Effect.map((resolved) => ({ item: AbsolutePath2.make(path.join(directory, name)), resolved }))));
|
|
75
75
|
})).pipe(Effect.map((items) => items.flat()), Effect.orDie);
|
|
76
76
|
const globalEnabled = options?.global !== false;
|
|
77
|
-
const globalFiles = yield* Effect.forEach(configDirectories.flatMap((directory) =>
|
|
77
|
+
const globalFiles = yield* Effect.forEach(configDirectories.flatMap((directory) => names3.map((name) => path.join(directory, name))), (file) => fs.resolve(file));
|
|
78
78
|
const visible = discovered.filter(({ resolved }) => globalEnabled ? !globalRoots.includes(resolved) && !globalFiles.includes(resolved) : !globalRoots.some((root) => resolved === root || resolved.startsWith(root + path.sep))).map(({ item }) => item);
|
|
79
79
|
const preferences = globalEnabled && (options?.system ?? true) === true && process.platform === "darwin" ? (yield* Effect.filter(preferencePaths2(yield* Effect.try(() => os.userInfo().username).pipe(Effect.orElseSucceed(() => "user"))), fs.isFile)).at(0) : undefined;
|
|
80
80
|
return {
|
|
@@ -99,4 +99,4 @@ var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
|
99
99
|
};
|
|
100
100
|
});
|
|
101
101
|
|
|
102
|
-
export {
|
|
102
|
+
export { names3, systemDirectory2, preferencePaths2, stripPreferenceMetadata2, discover3, exports_discovery2 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getViewSelectedFieldsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./snapshot-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/select.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-x4rf9yj3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-fp9qajhf.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event15
|
|
10
|
+
} from "./snapshot-dktwc335.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID9,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./snapshot-1z8e55mc.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./snapshot-yb20nhc3.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID8,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./snapshot-xwbd5bvh.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./snapshot-3nnrz6f6.js";
|
|
27
27
|
import {
|
|
28
28
|
configuredSettings2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./snapshot-4d3r9sj7.js";
|
|
30
30
|
|
|
31
31
|
// src/plugin/provider/openai.ts
|
|
32
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -49,7 +49,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
49
49
|
}));
|
|
50
50
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
51
51
|
var browser = (app) => ({
|
|
52
|
-
integrationID:
|
|
52
|
+
integrationID: ID9.make("openai"),
|
|
53
53
|
method: {
|
|
54
54
|
id: browserMethodID,
|
|
55
55
|
type: "oauth",
|
|
@@ -122,7 +122,7 @@ function addressInUse(error) {
|
|
|
122
122
|
return "code" in error && error.code === "EADDRINUSE";
|
|
123
123
|
}
|
|
124
124
|
var headless = (app) => ({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID9.make("openai"),
|
|
126
126
|
method: {
|
|
127
127
|
id: headlessMethodID,
|
|
128
128
|
type: "oauth",
|
|
@@ -182,9 +182,9 @@ var OpenAIPlugin2 = define({
|
|
|
182
182
|
editor.method.update(headless(ctx.app));
|
|
183
183
|
});
|
|
184
184
|
yield* load();
|
|
185
|
-
const configured = yield* configuredSettings2(
|
|
185
|
+
const configured = yield* configuredSettings2(ID8.openai);
|
|
186
186
|
yield* ctx.provider.transform((providers) => {
|
|
187
|
-
const item = providers.get(
|
|
187
|
+
const item = providers.get(ID8.openai);
|
|
188
188
|
if (!item)
|
|
189
189
|
return;
|
|
190
190
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -204,7 +204,7 @@ var OpenAIPlugin2 = define({
|
|
|
204
204
|
});
|
|
205
205
|
});
|
|
206
206
|
yield* ctx.model.transform((models) => {
|
|
207
|
-
for (const model of models.list(
|
|
207
|
+
for (const model of models.list(ID8.openai)) {
|
|
208
208
|
models.update(model.providerID, model.id, (draft) => {
|
|
209
209
|
if (!chatgpt)
|
|
210
210
|
return;
|
|
@@ -235,14 +235,14 @@ var OpenAIPlugin2 = define({
|
|
|
235
235
|
}));
|
|
236
236
|
evt.headers.originator = "opencode";
|
|
237
237
|
evt.headers["session-id"] = session ? get5(session) : evt.sessionID;
|
|
238
|
-
}), { providerID:
|
|
238
|
+
}), { providerID: ID8.openai });
|
|
239
239
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
240
240
|
delete evt.options.maxTokens;
|
|
241
241
|
});
|
|
242
242
|
for (const name of ["context", "compaction"])
|
|
243
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
243
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID8.openai });
|
|
244
244
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
245
|
-
yield* bus.subscribe(
|
|
245
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
246
246
|
})
|
|
247
247
|
});
|
|
248
248
|
function headers(contentType, app) {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service54
|
|
4
|
+
} from "./snapshot-a8rbahn6.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service4
|
|
7
|
+
} from "./snapshot-kra5gpw7.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./snapshot-6pjqjmy2.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/compaction.ts
|
|
16
16
|
var exports_compaction = {};
|
|
17
17
|
__export(exports_compaction, {
|
|
18
18
|
ConfigCompactionPlugin: () => exports_compaction,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin11
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin11 = define({
|
|
24
24
|
id: "opencode.config.compaction",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const compaction = yield*
|
|
26
|
+
const config = yield* Service54;
|
|
27
|
+
const compaction = yield* Service4;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, compaction.reload());
|
|
29
29
|
yield* compaction.transform((editor) => {
|
|
30
|
-
editor.configure({ precompute: latest2(loaded.entries, "experimental")?.
|
|
30
|
+
editor.configure({ precompute: latest2(loaded.entries, "experimental")?.background_compaction === true });
|
|
31
31
|
for (const entry of loaded.entries) {
|
|
32
32
|
if (entry.type !== "document" || !entry.info.compaction)
|
|
33
33
|
continue;
|
|
@@ -41,4 +41,4 @@ var Plugin23 = define({
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { Plugin11, exports_compaction };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveNullableObjectPaths2,
|
|
3
3
|
mapResultRow2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./snapshot-emrn6kk6.js";
|
|
5
5
|
import {
|
|
6
6
|
SQLiteEffectDatabase2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-twkwk1tg.js";
|
|
8
8
|
|
|
9
9
|
// src/database/drizzle/sqlite-core/effect/session.ts
|
|
10
10
|
import * as Cause from "effect/Cause";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/app.ts
|
|
6
6
|
var exports_app = {};
|
|
@@ -8,17 +8,17 @@ __export(exports_app, {
|
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
10
|
configured: () => configured9,
|
|
11
|
-
layer: () =>
|
|
12
|
-
make: () =>
|
|
13
|
-
node: () =>
|
|
11
|
+
layer: () => layer26,
|
|
12
|
+
make: () => make19,
|
|
13
|
+
node: () => node63,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var Metadata2 = Context.Reference("@opencode/App", {
|
|
19
|
-
defaultValue: () =>
|
|
19
|
+
defaultValue: () => make19()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make19(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make21(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var configured9 = (input) => makeGlobalNode({ service: Metadata2, layer:
|
|
33
|
-
var
|
|
31
|
+
var layer26 = (input) => Layer.succeed(Metadata2, make19(input));
|
|
32
|
+
var configured9 = (input) => makeGlobalNode({ service: Metadata2, layer: layer26(input), deps: [] });
|
|
33
|
+
var node63 = configured9();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make19, useragent2, layer26, configured9, node63, exports_app };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-x4rf9yj3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-fp9qajhf.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event15
|
|
10
|
+
} from "./snapshot-dktwc335.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID9,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./snapshot-1z8e55mc.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
ID8
|
|
17
|
+
} from "./snapshot-xwbd5bvh.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID7,
|
|
20
20
|
Family2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./snapshot-f95ahvj8.js";
|
|
22
22
|
import {
|
|
23
23
|
bootstrap2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./snapshot-yb20nhc3.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin/provider/digitalocean.ts
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { Clock, Deferred, Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
29
29
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
30
|
-
var providerID =
|
|
31
|
-
var integrationID =
|
|
30
|
+
var providerID = ID8.make("digitalocean");
|
|
31
|
+
var integrationID = ID9.make("digitalocean");
|
|
32
32
|
var methodID = MethodID2.make("browser");
|
|
33
33
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
34
34
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -148,7 +148,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
148
148
|
return;
|
|
149
149
|
for (const router of loaded.routers) {
|
|
150
150
|
const id = `router:${router.name}`;
|
|
151
|
-
if (evt.get(providerID)?.models.has(
|
|
151
|
+
if (evt.get(providerID)?.models.has(ID7.make(id)))
|
|
152
152
|
continue;
|
|
153
153
|
evt.models.update(providerID, id, (draft) => {
|
|
154
154
|
draft.name = router.name;
|
|
@@ -159,7 +159,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
162
|
-
yield* bus.subscribe(
|
|
162
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
163
163
|
yield* refresh().pipe(Effect.forkScoped);
|
|
164
164
|
})
|
|
165
165
|
});
|