@opencode/core 0.0.0-dev-21668 → 0.0.0-dev-21670
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 +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{snapshot-aj7mw0zk.js → reference-034tev2y.js} +2 -2
- package/dist/chunks/reference-07cvc9wn.js +257 -0
- package/dist/chunks/{snapshot-htnzn55t.js → reference-0aabztd5.js} +29 -29
- package/dist/chunks/{snapshot-6jjcp2t3.js → reference-0dnn63dc.js} +19 -19
- package/dist/chunks/{snapshot-btnzg8nv.js → reference-0f0dnca3.js} +16 -16
- package/dist/chunks/{snapshot-desdfmbz.js → reference-0j8er3xh.js} +17 -17
- package/dist/chunks/{snapshot-gz2sw2ma.js → reference-0jz5fbss.js} +16 -16
- package/dist/chunks/{snapshot-fgjt3jgn.js → reference-0m83bapc.js} +5 -5
- package/dist/chunks/{snapshot-9fgzczsj.js → reference-0ndnbbn0.js} +7 -7
- package/dist/chunks/{snapshot-mesf2czn.js → reference-0r8en8zz.js} +7 -7
- package/dist/chunks/{snapshot-3fgynn9z.js → reference-108gkaby.js} +13 -13
- package/dist/chunks/{snapshot-4yjsd0st.js → reference-14vqzes2.js} +18 -18
- package/dist/chunks/{snapshot-32d3hzha.js → reference-1711wf45.js} +12 -12
- package/dist/chunks/{snapshot-27w5k9zf.js → reference-1ep2p91f.js} +2 -2
- package/dist/chunks/{snapshot-a9x398e2.js → reference-1hyje1p9.js} +25 -25
- package/dist/chunks/{snapshot-mtpeagzc.js → reference-1njtx4es.js} +3 -3
- package/dist/chunks/{snapshot-1x2knyw4.js → reference-1x2knyw4.js} +1 -1
- package/dist/chunks/{snapshot-pqb8eb2f.js → reference-1yzxt8mn.js} +8 -8
- package/dist/chunks/{snapshot-nds6ga7z.js → reference-233jjx4c.js} +17 -17
- package/dist/chunks/{snapshot-nskhb6ad.js → reference-27va4m0r.js} +32 -32
- package/dist/chunks/{snapshot-x341zyq1.js → reference-297fdtb1.js} +11 -11
- package/dist/chunks/{snapshot-x4c5ct84.js → reference-2f1cs0mb.js} +2 -2
- package/dist/chunks/{snapshot-bpvjn4b4.js → reference-2fem2qqn.js} +5 -5
- package/dist/chunks/{snapshot-n911m9zj.js → reference-2fg4fkaj.js} +20 -20
- package/dist/chunks/{snapshot-2xayqnkb.js → reference-2hpggya2.js} +1 -1
- package/dist/chunks/{snapshot-t211gxpv.js → reference-2jq4ff38.js} +4 -4
- package/dist/chunks/{snapshot-py70aet5.js → reference-2n0ty02m.js} +43 -43
- package/dist/chunks/{snapshot-xwbd5bvh.js → reference-2nzqa2tq.js} +28 -28
- package/dist/chunks/{snapshot-c2wjegh6.js → reference-2rd3d0hp.js} +11 -11
- package/dist/chunks/{snapshot-rj8x90ng.js → reference-2t8maz45.js} +28 -28
- package/dist/chunks/{snapshot-jt7rgdp8.js → reference-2ww2ff7e.js} +21 -21
- package/dist/chunks/{snapshot-2z1j29yd.js → reference-2z1j29yd.js} +1 -1
- package/dist/chunks/{snapshot-xnh17wmv.js → reference-307hjk8t.js} +13 -13
- package/dist/chunks/{snapshot-bgg6fpfq.js → reference-31wms35x.js} +8 -8
- package/dist/chunks/{snapshot-5z9pfwbq.js → reference-39r9rzhd.js} +4 -4
- package/dist/chunks/{snapshot-3hepkmqq.js → reference-3hepkmqq.js} +1 -1
- package/dist/chunks/{snapshot-m9vdqn0q.js → reference-3k8j9mz0.js} +34 -34
- package/dist/chunks/{snapshot-ry63fkbp.js → reference-3kfn2j5q.js} +6 -6
- package/dist/chunks/{snapshot-chxh2xv4.js → reference-3wn85t44.js} +47 -47
- package/dist/chunks/{snapshot-fepyh2km.js → reference-3x8kzqev.js} +19 -19
- package/dist/chunks/{snapshot-ks069zf8.js → reference-4arsphjq.js} +52 -52
- package/dist/chunks/{snapshot-3maxfv7x.js → reference-4ezxaq78.js} +17 -17
- package/dist/chunks/{snapshot-c2jwcn11.js → reference-4kfy9c2m.js} +34 -34
- package/dist/chunks/{snapshot-a82ggzqd.js → reference-4shcznxh.js} +16 -16
- package/dist/chunks/{snapshot-e9h2djdw.js → reference-4svb63hy.js} +32 -32
- package/dist/chunks/{snapshot-4v008n1t.js → reference-4v008n1t.js} +1 -1
- package/dist/chunks/{snapshot-4xvmh7wp.js → reference-4xvmh7wp.js} +3 -3
- package/dist/chunks/{snapshot-gzjdybps.js → reference-54gv86a9.js} +5 -5
- package/dist/chunks/{snapshot-zzzmj3mf.js → reference-5djjexeq.js} +1 -1
- package/dist/chunks/{snapshot-w2eysc6j.js → reference-5enarcya.js} +6 -6
- package/dist/chunks/{snapshot-5m9w47nd.js → reference-5m9w47nd.js} +1 -1
- package/dist/chunks/{snapshot-d092qe14.js → reference-5r9a3vh3.js} +28 -28
- package/dist/chunks/{snapshot-p7vhpwh8.js → reference-5zrxpy3q.js} +5 -5
- package/dist/chunks/{snapshot-20nwq5j7.js → reference-61g7nd3s.js} +9 -9
- package/dist/chunks/{snapshot-xvtsgqh3.js → reference-69w1p6yk.js} +24 -24
- package/dist/chunks/{snapshot-tfkshzr6.js → reference-6ayjbyaf.js} +3 -3
- package/dist/chunks/{snapshot-6esdw8yj.js → reference-6esdw8yj.js} +1 -1
- package/dist/chunks/{snapshot-b2gqx2s6.js → reference-6gym6y7m.js} +29 -29
- package/dist/chunks/{snapshot-qz83k29f.js → reference-6nnfvszr.js} +21 -21
- package/dist/chunks/{snapshot-7xnhddsz.js → reference-6pe7vn7p.js} +14 -14
- package/dist/chunks/{snapshot-bjvnb1jb.js → reference-6perv44c.js} +8 -8
- package/dist/chunks/{snapshot-6pjqjmy2.js → reference-6pjqjmy2.js} +1 -1
- package/dist/chunks/{snapshot-p7qc0ane.js → reference-6sw2gn8c.js} +43 -43
- package/dist/chunks/{snapshot-w8qtt4th.js → reference-76cb1hcw.js} +4 -4
- package/dist/chunks/{snapshot-7bmhse3q.js → reference-7bmhse3q.js} +1 -1
- package/dist/chunks/{snapshot-expey290.js → reference-7bnde8q6.js} +16 -16
- package/dist/chunks/{snapshot-yk0esd9v.js → reference-7vw4nys1.js} +4 -4
- package/dist/chunks/{snapshot-7w2ypzdf.js → reference-7w2ypzdf.js} +1 -1
- package/dist/chunks/{snapshot-n35z2g72.js → reference-7yj30c8s.js} +17 -17
- package/dist/chunks/{snapshot-8yhhbcjk.js → reference-867cczcy.js} +43 -43
- package/dist/chunks/{snapshot-4t140x50.js → reference-8cj6s5zj.js} +28 -28
- package/dist/chunks/{snapshot-66cfxs70.js → reference-8hky2e3x.js} +23 -23
- package/dist/chunks/{snapshot-k5xhafzb.js → reference-8k73trgp.js} +24 -24
- package/dist/chunks/{snapshot-xaxjrmdm.js → reference-8p8nexw9.js} +15 -15
- package/dist/chunks/{snapshot-v753rv77.js → reference-8taff695.js} +16 -16
- package/dist/chunks/{snapshot-8wtp7s3z.js → reference-8wtp7s3z.js} +1 -1
- package/dist/chunks/{snapshot-91rj84md.js → reference-91rj84md.js} +1 -1
- package/dist/chunks/{snapshot-pacbbjc0.js → reference-953xbrr3.js} +5 -5
- package/dist/chunks/{snapshot-sz1wsyga.js → reference-954vrfjz.js} +11 -11
- package/dist/chunks/{snapshot-dvj9ct8m.js → reference-998yhzzq.js} +3 -3
- package/dist/chunks/{snapshot-5m4gtxdr.js → reference-9fq5cvaf.js} +35 -35
- package/dist/chunks/{snapshot-rey6ew65.js → reference-9szkry8c.js} +5 -5
- package/dist/chunks/{snapshot-w9a9fs8e.js → reference-9v02bs0k.js} +10 -10
- package/dist/chunks/{snapshot-pv9y8cyn.js → reference-9vyw5bnv.js} +19 -19
- package/dist/chunks/{snapshot-c1gjp1wv.js → reference-9y617mgq.js} +9 -9
- package/dist/chunks/{snapshot-5awenbjt.js → reference-9yyv8yy4.js} +18 -18
- package/dist/chunks/reference-a610t88q.js +18 -0
- package/dist/chunks/{snapshot-hbw75saf.js → reference-a6p3qmva.js} +86 -86
- package/dist/chunks/{snapshot-9437wt4d.js → reference-acdmrrd1.js} +8 -8
- package/dist/chunks/{snapshot-a2c90ztv.js → reference-armekrg6.js} +17 -17
- package/dist/chunks/{snapshot-sh0vvbd0.js → reference-avb4hb8j.js} +27 -27
- package/dist/chunks/{snapshot-f95ahvj8.js → reference-aygxzdnw.js} +30 -30
- package/dist/chunks/{snapshot-3cbjf1nt.js → reference-ayjs7tqn.js} +2 -2
- package/dist/chunks/{snapshot-t8549y5a.js → reference-azarmemk.js} +45 -45
- package/dist/chunks/{snapshot-b0mv4wxm.js → reference-b0mv4wxm.js} +2 -2
- package/dist/chunks/{snapshot-1psv69az.js → reference-b2sv8bpc.js} +5 -5
- package/dist/chunks/{snapshot-b6vsg801.js → reference-b6vsg801.js} +2 -2
- package/dist/chunks/{snapshot-5z80vped.js → reference-bceb57s2.js} +16 -16
- package/dist/chunks/{snapshot-xctkx9ev.js → reference-bhkt8v4f.js} +22 -22
- package/dist/chunks/{snapshot-ar2j3j0f.js → reference-bjhzkqyk.js} +4 -4
- package/dist/chunks/{snapshot-26qqh6c2.js → reference-bqwdyg2t.js} +9 -9
- package/dist/chunks/{snapshot-a8rbahn6.js → reference-c3yk3agv.js} +47 -47
- package/dist/chunks/{snapshot-1z8e55mc.js → reference-c7s7jw20.js} +30 -30
- package/dist/chunks/{snapshot-7zb10xad.js → reference-c8819f4b.js} +23 -23
- package/dist/chunks/{snapshot-c9t2ty9q.js → reference-c9t2ty9q.js} +1 -1
- package/dist/chunks/{snapshot-p3p972wa.js → reference-ce5fknq2.js} +5 -5
- package/dist/chunks/{snapshot-4ms7e40b.js → reference-cmb5kt6z.js} +30 -30
- package/dist/chunks/{snapshot-mfw0x7a6.js → reference-cmj7s95h.js} +66 -66
- package/dist/chunks/{snapshot-p0x3txpd.js → reference-cqcd4edx.js} +13 -13
- package/dist/chunks/{snapshot-173t91w5.js → reference-d2dx6a7h.js} +4 -4
- package/dist/chunks/{snapshot-d4v9tmah.js → reference-d4v9tmah.js} +2 -2
- package/dist/chunks/{snapshot-e8pm465n.js → reference-d8p3t516.js} +4 -4
- package/dist/chunks/{snapshot-mzyv1r8q.js → reference-d8qd4w10.js} +8 -8
- package/dist/chunks/{snapshot-c1yxjx8d.js → reference-d8t680bk.js} +4 -4
- package/dist/chunks/{snapshot-twkwk1tg.js → reference-dcqpnb0y.js} +7 -7
- package/dist/chunks/{snapshot-dzn8tf7s.js → reference-dewmw27y.js} +4 -4
- package/dist/chunks/{snapshot-pcspdvfz.js → reference-dgc6zgst.js} +5 -5
- package/dist/chunks/{snapshot-033a0jkt.js → reference-dh62xe4r.js} +3 -3
- package/dist/chunks/{snapshot-c3cfh5w6.js → reference-dqgvvwe0.js} +9 -9
- package/dist/chunks/{snapshot-t8tbgrvw.js → reference-dt1dewz5.js} +12 -12
- package/dist/chunks/{snapshot-gtggn4m8.js → reference-dy4pv8et.js} +13 -13
- package/dist/chunks/{snapshot-e834z07m.js → reference-e834z07m.js} +1 -1
- package/dist/chunks/{snapshot-ef5x83kb.js → reference-ef5x83kb.js} +1 -1
- package/dist/chunks/{snapshot-kra5gpw7.js → reference-eq9cyptm.js} +42 -42
- package/dist/chunks/{snapshot-m37sd98t.js → reference-eqmd2tfz.js} +7 -7
- package/dist/chunks/{snapshot-4pk1s674.js → reference-f67dkjq4.js} +21 -21
- package/dist/chunks/{snapshot-9sznrwc9.js → reference-f8vd2a9b.js} +11 -11
- package/dist/chunks/{snapshot-tpez38m9.js → reference-f9sbv1za.js} +45 -45
- package/dist/chunks/{snapshot-fffv3p7h.js → reference-fffv3p7h.js} +1 -1
- package/dist/chunks/reference-ffm6r77t.js +26 -0
- package/dist/chunks/{snapshot-z2f4zgv2.js → reference-fgak986r.js} +28 -28
- package/dist/chunks/{snapshot-snaj6n18.js → reference-g04rf8w6.js} +5 -5
- package/dist/chunks/{snapshot-g5h9c0rr.js → reference-g5h9c0rr.js} +2 -2
- package/dist/chunks/{snapshot-jh96v5at.js → reference-g5j8m9ve.js} +19 -19
- package/dist/chunks/{snapshot-8tsxffec.js → reference-g9chkspz.js} +15 -15
- package/dist/chunks/{snapshot-esvf2qf6.js → reference-gbmf93tw.js} +11 -11
- package/dist/chunks/{snapshot-610sztem.js → reference-gf5n06h2.js} +14 -14
- package/dist/chunks/{snapshot-kmcztane.js → reference-gfpxj5hf.js} +8 -8
- package/dist/chunks/{snapshot-z45bvydx.js → reference-ghb7106v.js} +30 -30
- package/dist/chunks/{snapshot-7pr1y472.js → reference-gxjyhf1s.js} +50 -50
- package/dist/chunks/{snapshot-4stkd5r6.js → reference-h5z6qxf3.js} +18 -18
- package/dist/chunks/{snapshot-0cxd67sz.js → reference-hjzm8qgk.js} +36 -36
- package/dist/chunks/{snapshot-5vbppz2s.js → reference-hxs3jcbh.js} +3 -3
- package/dist/chunks/{snapshot-j113cymg.js → reference-j113cymg.js} +1 -1
- package/dist/chunks/{snapshot-h973wt88.js → reference-j1kmhe03.js} +36 -32
- package/dist/chunks/{snapshot-8x9y3wj0.js → reference-jcqm84fr.js} +9 -9
- package/dist/chunks/{snapshot-qn60nzrt.js → reference-jh20twgm.js} +7 -7
- package/dist/chunks/{snapshot-y2tacs4v.js → reference-jneg3k74.js} +8 -8
- package/dist/chunks/{snapshot-zmh6aqr2.js → reference-jq4rj68g.js} +11 -11
- package/dist/chunks/{snapshot-fp9qajhf.js → reference-jvdzp9ms.js} +4 -4
- package/dist/chunks/{snapshot-hj9jsy39.js → reference-jx68n2v7.js} +4 -4
- package/dist/chunks/{snapshot-h1xsva0t.js → reference-k3562rys.js} +10 -10
- package/dist/chunks/{snapshot-k814nvkf.js → reference-k814nvkf.js} +1 -1
- package/dist/chunks/{snapshot-7q6s22z8.js → reference-kcty1ace.js} +15 -15
- package/dist/chunks/{snapshot-dvnjm1h8.js → reference-kg4y9gc0.js} +33 -33
- package/dist/chunks/{snapshot-fp00nt0f.js → reference-kkntnx2q.js} +5 -5
- package/dist/chunks/{snapshot-zysf9qxs.js → reference-kndrgbcf.js} +8 -8
- package/dist/chunks/{snapshot-0x28tm96.js → reference-kw46yrg2.js} +27 -27
- package/dist/chunks/{snapshot-m1714858.js → reference-m1714858.js} +1 -1
- package/dist/chunks/{snapshot-rd6zdj6e.js → reference-m8vnyr1s.js} +9 -9
- package/dist/chunks/{snapshot-m9w0rfyh.js → reference-m9w0rfyh.js} +1 -1
- package/dist/chunks/{snapshot-bwcj1zz2.js → reference-ma8ws105.js} +15 -15
- package/dist/chunks/{snapshot-maspj1v3.js → reference-maspj1v3.js} +1 -1
- package/dist/chunks/{snapshot-32jffxcm.js → reference-mg6b5d3z.js} +13 -13
- package/dist/chunks/{snapshot-752jpkzc.js → reference-mpzxhqjk.js} +20 -20
- package/dist/chunks/{snapshot-n0p0277s.js → reference-n0p0277s.js} +1 -1
- package/dist/chunks/{snapshot-yywmapa3.js → reference-n3axp0yc.js} +14 -14
- package/dist/chunks/{snapshot-x4rf9yj3.js → reference-n49wygsy.js} +11 -11
- package/dist/chunks/{snapshot-fvvr5s83.js → reference-n4fp6f8d.js} +6 -6
- package/dist/chunks/{snapshot-65xpdfa7.js → reference-n61v90z4.js} +34 -34
- package/dist/chunks/{snapshot-9h4y1sr0.js → reference-n8d8y6qz.js} +10 -10
- package/dist/chunks/{snapshot-bt6ghjgk.js → reference-n9e2wk5v.js} +11 -11
- package/dist/chunks/{snapshot-nah043kf.js → reference-nah043kf.js} +1 -1
- package/dist/chunks/{snapshot-tf2ec46p.js → reference-nazbq7w0.js} +14 -14
- package/dist/chunks/{snapshot-fr70jeat.js → reference-ncg31dbj.js} +14 -14
- package/dist/chunks/{snapshot-tpzqzpez.js → reference-ngd7ekm8.js} +4 -4
- package/dist/chunks/{snapshot-6fc2jj72.js → reference-nsgvs482.js} +11 -11
- package/dist/chunks/{snapshot-p015t6z3.js → reference-p015t6z3.js} +2 -2
- package/dist/chunks/{snapshot-fyqk7716.js → reference-p330xe03.js} +14 -14
- package/dist/chunks/{snapshot-9y2jjkve.js → reference-p6q4m3qk.js} +46 -46
- package/dist/chunks/{snapshot-et8k1vr1.js → reference-p8x9nhrm.js} +9 -9
- package/dist/chunks/{snapshot-7xq4z8xa.js → reference-pfg6nwxg.js} +25 -25
- package/dist/chunks/{snapshot-pknna89w.js → reference-pknna89w.js} +1 -1
- package/dist/chunks/{snapshot-4vgzdrnt.js → reference-pscgdtph.js} +11 -11
- package/dist/chunks/{snapshot-dktwc335.js → reference-pvz0z9yn.js} +30 -30
- package/dist/chunks/{snapshot-4d3r9sj7.js → reference-q0tfq5t2.js} +6 -6
- package/dist/chunks/{snapshot-tcnewvsx.js → reference-q0wzr35k.js} +20 -20
- package/dist/chunks/{snapshot-0421tmwc.js → reference-q46y00v4.js} +9 -9
- package/dist/chunks/{snapshot-2cj8dw40.js → reference-q91r7fzh.js} +12 -12
- package/dist/chunks/{snapshot-y7gkpn43.js → reference-qcypp6s5.js} +9 -9
- package/dist/chunks/{snapshot-s73pgd5t.js → reference-qg6w8app.js} +13 -13
- package/dist/chunks/{snapshot-qjgzc4b4.js → reference-qjgzc4b4.js} +1 -1
- package/dist/chunks/{snapshot-r0yr0wbs.js → reference-r0yr0wbs.js} +1 -1
- package/dist/chunks/{snapshot-48kj9ap1.js → reference-r5majfkb.js} +13 -13
- package/dist/chunks/{snapshot-rb9dy4dg.js → reference-rb9dy4dg.js} +1 -1
- package/dist/chunks/{snapshot-rt5dr6hb.js → reference-rt5dr6hb.js} +1 -1
- package/dist/chunks/{snapshot-tf5c574a.js → reference-rw71ew34.js} +4 -4
- package/dist/chunks/{snapshot-ccp6j38y.js → reference-ry7kp2db.js} +8 -8
- package/dist/chunks/{snapshot-nk8tpxf0.js → reference-s04fhkcw.js} +3 -3
- package/dist/chunks/{snapshot-j7t1g52h.js → reference-s6whas8k.js} +12 -12
- package/dist/chunks/{snapshot-3s06s3jm.js → reference-s9hxxgb8.js} +87 -87
- package/dist/chunks/{snapshot-qah7t4da.js → reference-sbegqkxp.js} +6 -6
- package/dist/chunks/{snapshot-6hx05w6d.js → reference-scpsh37c.js} +15 -15
- package/dist/chunks/{snapshot-gp4q1vjf.js → reference-sfgqhxwc.js} +2 -2
- package/dist/chunks/{snapshot-tj8qecb5.js → reference-snm2qmq7.js} +18 -18
- package/dist/chunks/{snapshot-qqn4m6zg.js → reference-snm52sr2.js} +17 -17
- package/dist/chunks/{snapshot-sqjzf8x2.js → reference-sqjzf8x2.js} +1 -1
- package/dist/chunks/{snapshot-xzpe0agp.js → reference-st4p3zbh.js} +35 -35
- package/dist/chunks/{snapshot-6d6xnsqa.js → reference-sv2aw4yq.js} +5 -5
- package/dist/chunks/{snapshot-6rhfy3ae.js → reference-svjkc6ey.js} +24 -24
- package/dist/chunks/{snapshot-j9cjhb81.js → reference-sy87a8wb.js} +24 -24
- package/dist/chunks/{snapshot-ycqmxcqc.js → reference-t1s8rtrn.js} +17 -17
- package/dist/chunks/{snapshot-4q3ynb4r.js → reference-t7w9mbga.js} +3 -3
- package/dist/chunks/{snapshot-yphmbpfe.js → reference-tarnqw0m.js} +17 -17
- package/dist/chunks/{snapshot-xkympmbz.js → reference-tasvem1v.js} +6 -6
- package/dist/chunks/{snapshot-tczq8hjw.js → reference-tczq8hjw.js} +1 -1
- package/dist/chunks/{snapshot-3nnrz6f6.js → reference-tmc7xdjs.js} +4 -4
- package/dist/chunks/{snapshot-956c56jz.js → reference-tnqzh63d.js} +4 -4
- package/dist/chunks/{snapshot-tw8zr1ps.js → reference-tw8zr1ps.js} +1 -1
- package/dist/chunks/{snapshot-twv2r8f4.js → reference-twv2r8f4.js} +2 -2
- package/dist/chunks/{snapshot-sknn4ytw.js → reference-v0aazhy0.js} +11 -11
- package/dist/chunks/{snapshot-v2r1d0zg.js → reference-v2r1d0zg.js} +1 -1
- package/dist/chunks/{snapshot-xxcv7c4s.js → reference-v3htpbcn.js} +18 -18
- package/dist/chunks/{snapshot-zg933662.js → reference-v75htaq3.js} +6 -6
- package/dist/chunks/{snapshot-zyd3t986.js → reference-v8e5qm2c.js} +9 -9
- package/dist/chunks/{snapshot-93z9sy6y.js → reference-v919ewzn.js} +36 -36
- package/dist/chunks/{snapshot-mqew7zyd.js → reference-vbf812b9.js} +32 -32
- package/dist/chunks/{snapshot-vd3b3yk9.js → reference-vd3b3yk9.js} +1 -1
- package/dist/chunks/{snapshot-veqvce7d.js → reference-veqvce7d.js} +1 -1
- package/dist/chunks/{snapshot-anyn98fc.js → reference-vjtgj0yq.js} +4 -4
- package/dist/chunks/{snapshot-easvm2vj.js → reference-vq537ftf.js} +17 -17
- package/dist/chunks/{snapshot-0xry0drq.js → reference-vrjhymqn.js} +335 -335
- package/dist/chunks/{snapshot-rffg35ng.js → reference-vry4t0gh.js} +4 -4
- package/dist/chunks/{snapshot-5nbhg5mq.js → reference-w05t22bp.js} +21 -21
- package/dist/chunks/{snapshot-w06brs61.js → reference-w0jjrdy3.js} +11 -11
- package/dist/chunks/{snapshot-w3wsvvr9.js → reference-w3wsvvr9.js} +1 -1
- package/dist/chunks/{snapshot-ve7ke69q.js → reference-w7zjqt6n.js} +4 -4
- package/dist/chunks/{snapshot-wakvkjy4.js → reference-wakvkjy4.js} +1 -1
- package/dist/chunks/{snapshot-wd87259q.js → reference-wd87259q.js} +1 -1
- package/dist/chunks/{snapshot-9pn10d5x.js → reference-wdn14rh7.js} +34 -34
- package/dist/chunks/{snapshot-97hv35cm.js → reference-whkc4da7.js} +4 -4
- package/dist/chunks/{snapshot-de80h68g.js → reference-wjd1k730.js} +9 -9
- package/dist/chunks/{snapshot-71r0w8zg.js → reference-wmwmhrgq.js} +10 -10
- package/dist/chunks/{snapshot-0h8y3ex8.js → reference-wr3re1en.js} +4 -4
- package/dist/chunks/{snapshot-knyqd3dz.js → reference-wskggc81.js} +6 -6
- package/dist/chunks/{snapshot-szcgc7h4.js → reference-x3mp4vcj.js} +5 -5
- package/dist/chunks/{snapshot-q5ve17hv.js → reference-x7sq7g0m.js} +25 -25
- package/dist/chunks/{snapshot-6t3tc22h.js → reference-xapnwa6c.js} +18 -18
- package/dist/chunks/{snapshot-bstexjd6.js → reference-xd9cc171.js} +5 -5
- package/dist/chunks/{snapshot-nkr5r85d.js → reference-xffzfxwd.js} +2 -2
- package/dist/chunks/{snapshot-rmhxa1va.js → reference-xhjrc3ew.js} +11 -11
- package/dist/chunks/{snapshot-kzwb18h7.js → reference-xm8ddap8.js} +11 -11
- package/dist/chunks/{snapshot-w1pg8ac5.js → reference-xmgbg1w1.js} +23 -23
- package/dist/chunks/{snapshot-0sdvj732.js → reference-xmpvkfqb.js} +5 -5
- package/dist/chunks/{snapshot-wh9mm6vw.js → reference-xmry5mjf.js} +21 -22
- package/dist/chunks/{snapshot-p76me67c.js → reference-xpve62cf.js} +4 -4
- package/dist/chunks/{snapshot-7x3q52mv.js → reference-xvcq0a37.js} +12 -12
- package/dist/chunks/{snapshot-6pefdjqg.js → reference-y3wdcfp2.js} +4 -4
- package/dist/chunks/{snapshot-dmkv2tgn.js → reference-y45mmnaw.js} +14 -14
- package/dist/chunks/{snapshot-4kjpm9vg.js → reference-y5mjzf8n.js} +22 -22
- package/dist/chunks/{snapshot-37yt7bbd.js → reference-y5zyg2mm.js} +177 -177
- package/dist/chunks/{snapshot-yb20nhc3.js → reference-yb20nhc3.js} +1 -1
- package/dist/chunks/{snapshot-hb29wq2n.js → reference-yd0qn0bb.js} +23 -23
- package/dist/chunks/{snapshot-tcvw3ax2.js → reference-ydsespw1.js} +8 -8
- package/dist/chunks/{snapshot-23kx2h0m.js → reference-ygvq11bn.js} +29 -29
- package/dist/chunks/{snapshot-vnn4dnfn.js → reference-yhkv4e77.js} +10 -10
- package/dist/chunks/{snapshot-f36md42a.js → reference-ym0fp58v.js} +12 -12
- package/dist/chunks/{snapshot-t1jhrm4y.js → reference-ymb3jxsn.js} +23 -23
- package/dist/chunks/{snapshot-jx13zqpg.js → reference-yrj74tq8.js} +11 -11
- package/dist/chunks/{snapshot-e2ze8rsg.js → reference-yx5z65v3.js} +10 -10
- package/dist/chunks/{snapshot-z0bkrqjs.js → reference-z0bkrqjs.js} +1 -1
- package/dist/chunks/{snapshot-z38nccrw.js → reference-z38nccrw.js} +1 -1
- package/dist/chunks/{snapshot-s6v9y3bv.js → reference-z9y71txf.js} +3 -3
- package/dist/chunks/{snapshot-btd04tm9.js → reference-zkeee37c.js} +24 -24
- package/dist/chunks/{snapshot-zkg84ctx.js → reference-zkg84ctx.js} +1 -1
- package/dist/chunks/reference-zm25mbzg.js +58 -0
- package/dist/chunks/{snapshot-3fp5dj89.js → reference-ztd79bjn.js} +18 -18
- package/dist/chunks/{snapshot-sk9w2v45.js → reference-ztj6qd7j.js} +42 -42
- package/dist/chunks/{snapshot-90ckabyq.js → reference-zv31yxkj.js} +3 -3
- package/dist/chunks/{snapshot-58b8s1qw.js → reference-zvk4dyfv.js} +11 -11
- package/dist/chunks/{snapshot-1skgtqkp.js → reference-zzh4dnpm.js} +29 -29
- 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 +79 -79
- 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 +116 -116
- package/dist/config/plugin/command.js +212 -212
- 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 +116 -116
- package/dist/config/plugin/location-watcher.js +114 -114
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +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 +136 -136
- 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 +119 -119
- 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 +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +94 -94
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +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 +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +225 -225
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +104 -104
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- 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 +155 -155
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -357
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +105 -105
- 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 +93 -93
- package/dist/model-resolver.js +99 -99
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +103 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- 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 +333 -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 +116 -116
- 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-context-caps.js +97 -0
- 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 +171 -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 +352 -351
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +99 -99
- 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 +89 -89
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +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 +220 -220
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +164 -164
- package/dist/session/history.js +13 -13
- 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 +122 -122
- package/dist/session/model-transport.js +9 -9
- 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 +1 -1
- 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 +128 -128
- 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 +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +91 -91
- 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 +137 -137
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- 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 +122 -122
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/plugin/provider/openai-context-caps.d.ts +2 -0
- 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 +3 -3
- 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 +90 -90
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/snapshot-2m3we97b.js +0 -257
- package/dist/chunks/snapshot-ev660z6k.js +0 -18
- package/dist/chunks/snapshot-kg5hf5sk.js +0 -26
- /package/dist/chunks/{snapshot-0qkdqm5v.js → reference-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{snapshot-0zkw76rk.js → reference-0zkw76rk.js} +0 -0
- /package/dist/chunks/{snapshot-17cy0kzp.js → reference-17cy0kzp.js} +0 -0
- /package/dist/chunks/{snapshot-1cnp2v09.js → reference-1cnp2v09.js} +0 -0
- /package/dist/chunks/{snapshot-24dcb14g.js → reference-24dcb14g.js} +0 -0
- /package/dist/chunks/{snapshot-2710q6r3.js → reference-2710q6r3.js} +0 -0
- /package/dist/chunks/{snapshot-2bv980vf.js → reference-2bv980vf.js} +0 -0
- /package/dist/chunks/{snapshot-2c3vjs8z.js → reference-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{snapshot-359p4xyc.js → reference-359p4xyc.js} +0 -0
- /package/dist/chunks/{snapshot-3asan66x.js → reference-3asan66x.js} +0 -0
- /package/dist/chunks/{snapshot-3v8g72cx.js → reference-3v8g72cx.js} +0 -0
- /package/dist/chunks/{snapshot-3wcehsnq.js → reference-3wcehsnq.js} +0 -0
- /package/dist/chunks/{snapshot-43n2bw4t.js → reference-43n2bw4t.js} +0 -0
- /package/dist/chunks/{snapshot-4knz6hnm.js → reference-4knz6hnm.js} +0 -0
- /package/dist/chunks/{snapshot-4vcrnpx2.js → reference-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{snapshot-4y7fprxs.js → reference-4y7fprxs.js} +0 -0
- /package/dist/chunks/{snapshot-53557ph1.js → reference-53557ph1.js} +0 -0
- /package/dist/chunks/{snapshot-550bvhaj.js → reference-550bvhaj.js} +0 -0
- /package/dist/chunks/{snapshot-5fjb7ams.js → reference-5fjb7ams.js} +0 -0
- /package/dist/chunks/{snapshot-5qd3pb7m.js → reference-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{snapshot-6prwharc.js → reference-6prwharc.js} +0 -0
- /package/dist/chunks/{snapshot-6q2bdcd1.js → reference-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{snapshot-7akdwqpd.js → reference-7akdwqpd.js} +0 -0
- /package/dist/chunks/{snapshot-7m9af43g.js → reference-7m9af43g.js} +0 -0
- /package/dist/chunks/{snapshot-822emrt2.js → reference-822emrt2.js} +0 -0
- /package/dist/chunks/{snapshot-84wd9syh.js → reference-84wd9syh.js} +0 -0
- /package/dist/chunks/{snapshot-88xbtdfr.js → reference-88xbtdfr.js} +0 -0
- /package/dist/chunks/{snapshot-8n3pysct.js → reference-8n3pysct.js} +0 -0
- /package/dist/chunks/{snapshot-8wj87zfr.js → reference-8wj87zfr.js} +0 -0
- /package/dist/chunks/{snapshot-9a4afbnw.js → reference-9a4afbnw.js} +0 -0
- /package/dist/chunks/{snapshot-9rqn6x4v.js → reference-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{snapshot-a058387c.js → reference-a058387c.js} +0 -0
- /package/dist/chunks/{snapshot-a6k6eb26.js → reference-a6k6eb26.js} +0 -0
- /package/dist/chunks/{snapshot-af5trqkr.js → reference-af5trqkr.js} +0 -0
- /package/dist/chunks/{snapshot-afrmfg78.js → reference-afrmfg78.js} +0 -0
- /package/dist/chunks/{snapshot-aqzs7mqg.js → reference-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{snapshot-atq7p7m5.js → reference-atq7p7m5.js} +0 -0
- /package/dist/chunks/{snapshot-bkyjaxrp.js → reference-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{snapshot-bmr6ed5q.js → reference-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{snapshot-cf4snx6d.js → reference-cf4snx6d.js} +0 -0
- /package/dist/chunks/{snapshot-cvy3z8tj.js → reference-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{snapshot-d9fn303g.js → reference-d9fn303g.js} +0 -0
- /package/dist/chunks/{snapshot-d9jj8t3e.js → reference-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{snapshot-dajrwvna.js → reference-dajrwvna.js} +0 -0
- /package/dist/chunks/{snapshot-dap0rakb.js → reference-dap0rakb.js} +0 -0
- /package/dist/chunks/{snapshot-df08tz66.js → reference-df08tz66.js} +0 -0
- /package/dist/chunks/{snapshot-dy18nga0.js → reference-dy18nga0.js} +0 -0
- /package/dist/chunks/{snapshot-e5kj55wp.js → reference-e5kj55wp.js} +0 -0
- /package/dist/chunks/{snapshot-e73j6tqm.js → reference-e73j6tqm.js} +0 -0
- /package/dist/chunks/{snapshot-ec1grn59.js → reference-ec1grn59.js} +0 -0
- /package/dist/chunks/{snapshot-eh3zwz77.js → reference-eh3zwz77.js} +0 -0
- /package/dist/chunks/{snapshot-emrn6kk6.js → reference-emrn6kk6.js} +0 -0
- /package/dist/chunks/{snapshot-f0mxakyp.js → reference-f0mxakyp.js} +0 -0
- /package/dist/chunks/{snapshot-f6n9ztr4.js → reference-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{snapshot-faypxj3z.js → reference-faypxj3z.js} +0 -0
- /package/dist/chunks/{snapshot-fd410y7t.js → reference-fd410y7t.js} +0 -0
- /package/dist/chunks/{snapshot-g4wezp1m.js → reference-g4wezp1m.js} +0 -0
- /package/dist/chunks/{snapshot-g86h250q.js → reference-g86h250q.js} +0 -0
- /package/dist/chunks/{snapshot-gebd4c9n.js → reference-gebd4c9n.js} +0 -0
- /package/dist/chunks/{snapshot-gftt206x.js → reference-gftt206x.js} +0 -0
- /package/dist/chunks/{snapshot-hcxmzztb.js → reference-hcxmzztb.js} +0 -0
- /package/dist/chunks/{snapshot-hk9envan.js → reference-hk9envan.js} +0 -0
- /package/dist/chunks/{snapshot-j2ntwpah.js → reference-j2ntwpah.js} +0 -0
- /package/dist/chunks/{snapshot-j5zkgpj8.js → reference-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{snapshot-jjkms2e6.js → reference-jjkms2e6.js} +0 -0
- /package/dist/chunks/{snapshot-jr7sbwjy.js → reference-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{snapshot-jwfs4k6c.js → reference-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{snapshot-jze0r7bz.js → reference-jze0r7bz.js} +0 -0
- /package/dist/chunks/{snapshot-jzg6c2d5.js → reference-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{snapshot-m18g726c.js → reference-m18g726c.js} +0 -0
- /package/dist/chunks/{snapshot-mp448xyj.js → reference-mp448xyj.js} +0 -0
- /package/dist/chunks/{snapshot-msx8hqn2.js → reference-msx8hqn2.js} +0 -0
- /package/dist/chunks/{snapshot-n05xt0ee.js → reference-n05xt0ee.js} +0 -0
- /package/dist/chunks/{snapshot-n3j8tn72.js → reference-n3j8tn72.js} +0 -0
- /package/dist/chunks/{snapshot-njntx4h6.js → reference-njntx4h6.js} +0 -0
- /package/dist/chunks/{snapshot-pkyv6v7h.js → reference-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{snapshot-q3sfg36h.js → reference-q3sfg36h.js} +0 -0
- /package/dist/chunks/{snapshot-q74kybfr.js → reference-q74kybfr.js} +0 -0
- /package/dist/chunks/{snapshot-qaymkmh1.js → reference-qaymkmh1.js} +0 -0
- /package/dist/chunks/{snapshot-qb87gjwd.js → reference-qb87gjwd.js} +0 -0
- /package/dist/chunks/{snapshot-qfa1cgps.js → reference-qfa1cgps.js} +0 -0
- /package/dist/chunks/{snapshot-qg3g05ea.js → reference-qg3g05ea.js} +0 -0
- /package/dist/chunks/{snapshot-qrg20bc0.js → reference-qrg20bc0.js} +0 -0
- /package/dist/chunks/{snapshot-rcb2kzg1.js → reference-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{snapshot-sdp7kfr6.js → reference-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{snapshot-ssg3fenm.js → reference-ssg3fenm.js} +0 -0
- /package/dist/chunks/{snapshot-ve7vex1e.js → reference-ve7vex1e.js} +0 -0
- /package/dist/chunks/{snapshot-w803qqfp.js → reference-w803qqfp.js} +0 -0
- /package/dist/chunks/{snapshot-wc3fc9cn.js → reference-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{snapshot-wer8tq1h.js → reference-wer8tq1h.js} +0 -0
- /package/dist/chunks/{snapshot-wjj7prxr.js → reference-wjj7prxr.js} +0 -0
- /package/dist/chunks/{snapshot-wtztk69x.js → reference-wtztk69x.js} +0 -0
- /package/dist/chunks/{snapshot-x0ckcb58.js → reference-x0ckcb58.js} +0 -0
- /package/dist/chunks/{snapshot-x61499pn.js → reference-x61499pn.js} +0 -0
- /package/dist/chunks/{snapshot-y44na4kk.js → reference-y44na4kk.js} +0 -0
- /package/dist/chunks/{snapshot-y8f7s663.js → reference-y8f7s663.js} +0 -0
- /package/dist/chunks/{snapshot-ygaqb7jw.js → reference-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{snapshot-ym463w8f.js → reference-ym463w8f.js} +0 -0
- /package/dist/chunks/{snapshot-z5v4ffb3.js → reference-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{snapshot-z9919s4g.js → reference-z9919s4g.js} +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
collectBoundedResponseBody2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./reference-3v8g72cx.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./reference-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/mcp.ts
|
|
9
9
|
var exports_mcp2 = {};
|
|
10
10
|
__export(exports_mcp2, {
|
|
11
|
-
MAX_RESPONSE_BYTES: () =>
|
|
11
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
12
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_BYTES2 = 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_BYTES2, () => new Error(`${tool} response exceeded ${MAX_RESPONSE_BYTES2} 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_BYTES2, parseResponse2, call2, exports_mcp2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Failed2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./reference-zkg84ctx.js";
|
|
4
4
|
import {
|
|
5
5
|
execDefaults2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./reference-g5h9c0rr.js";
|
|
7
7
|
import {
|
|
8
8
|
Service86,
|
|
9
9
|
node90
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./reference-z9y71txf.js";
|
|
11
11
|
import {
|
|
12
12
|
makeUnsafe2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./reference-qjgzc4b4.js";
|
|
14
14
|
import {
|
|
15
15
|
Binding2,
|
|
16
16
|
RegistryService2,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node62
|
|
18
|
+
} from "./reference-3kfn2j5q.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkspaceTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./reference-faypxj3z.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./reference-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: () => ID7,
|
|
31
|
+
Info: () => Info15,
|
|
32
32
|
NotFound: () => NotFound2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service59,
|
|
34
34
|
Workspace: () => exports_workspace,
|
|
35
|
-
configured: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
configured: () => configured9,
|
|
36
|
+
node: () => node61
|
|
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 ID7 = Workspace.ID;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info15 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID7,
|
|
48
48
|
provider: Schema.String,
|
|
49
49
|
binding: Binding2,
|
|
50
50
|
createdAt: Schema.Number,
|
|
@@ -52,24 +52,24 @@ class Info26 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: ID7 }) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
59
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID7,
|
|
60
60
|
provider: Schema.String,
|
|
61
61
|
existingProvider: Schema.String
|
|
62
62
|
}) {
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service59 extends Context.Service()("@opencode/Workspace") {
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
67
|
+
var configured9 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service59,
|
|
69
69
|
layer: layer(options),
|
|
70
|
-
deps: [node90,
|
|
70
|
+
deps: [node90, node62]
|
|
71
71
|
});
|
|
72
|
-
var layer = (options) => Layer.effect(
|
|
72
|
+
var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
73
73
|
const db = (yield* Service86).db;
|
|
74
74
|
const registry = yield* RegistryService2;
|
|
75
75
|
const lifetime = yield* Scope.Scope;
|
|
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service81, 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 Info15({
|
|
90
90
|
id: row.id,
|
|
91
91
|
provider: row.provider,
|
|
92
92
|
binding,
|
|
@@ -164,9 +164,9 @@ var layer = (options) => Layer.effect(Service81, 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 Service59.of({
|
|
168
168
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
169
|
-
const workspaceID = input.id ??
|
|
169
|
+
const workspaceID = input.id ?? ID7.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(Service81, Effect.gen(function* () {
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
|
-
var
|
|
245
|
+
var node61 = configured9();
|
|
246
246
|
|
|
247
|
-
export {
|
|
247
|
+
export { ID7, Info15, NotFound2, CreateConflict2, Service59, configured9, node61, exports_workspace };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./reference-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/plugin.ts
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options6,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options6 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options6]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options6, Spec2, exports_plugin3 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
match2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./reference-z38nccrw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./reference-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: () => Service14,
|
|
13
13
|
decision: () => decision2,
|
|
14
14
|
layer: () => layer9,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node16,
|
|
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 Service14 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
23
23
|
}
|
|
24
|
-
var layer9 = Layer.effect(
|
|
24
|
+
var layer9 = Layer.effect(Service14, Effect.gen(function* () {
|
|
25
25
|
const changes = yield* PubSub.unbounded();
|
|
26
26
|
const state = { current: { statements: [] } };
|
|
27
|
-
return
|
|
27
|
+
return Service14.of({
|
|
28
28
|
changes: () => Stream.fromPubSub(changes),
|
|
29
29
|
current: () => state.current,
|
|
30
30
|
set: (next) => Effect.gen(function* () {
|
|
@@ -36,7 +36,7 @@ var layer9 = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
39
|
+
var node16 = makeGlobalNode({ service: Service14, layer: layer9, 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 { Service14, layer9, node16, statements2, decision2, exports_managed_policy };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTextual2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./reference-2z1j29yd.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service69
|
|
6
|
+
} from "./reference-2n0ty02m.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_MARKDOWN_BYTES2,
|
|
9
9
|
convertHTMLToMarkdown2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./reference-4vcrnpx2.js";
|
|
11
11
|
import {
|
|
12
12
|
collectBoundedResponseBody2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./reference-3v8g72cx.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./reference-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/tool/plugin/webfetch.ts
|
|
19
19
|
var exports_webfetch = {};
|
|
20
20
|
__export(exports_webfetch, {
|
|
21
21
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
22
|
-
Input: () =>
|
|
23
|
-
MAX_RESPONSE_BYTES: () =>
|
|
22
|
+
Input: () => Input13,
|
|
23
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
24
24
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin50,
|
|
26
26
|
WebFetchTool: () => exports_webfetch,
|
|
27
27
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
28
|
-
description: () =>
|
|
28
|
+
description: () => description5,
|
|
29
29
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
30
|
-
name: () =>
|
|
30
|
+
name: () => name13
|
|
31
31
|
});
|
|
32
32
|
import { ToolFailure } from "@opencode/ai";
|
|
33
33
|
import { Duration, Effect, Schema } from "effect";
|
|
34
34
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
35
35
|
import { Parser } from "htmlparser2";
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var name13 = "webfetch";
|
|
37
|
+
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
38
38
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
39
39
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
40
|
-
var
|
|
40
|
+
var description5 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
41
41
|
|
|
42
42
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
43
43
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
44
|
-
var
|
|
44
|
+
var Input13 = Schema.Struct({
|
|
45
45
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
46
46
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
47
47
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -51,7 +51,7 @@ var Input11 = Schema.Struct({
|
|
|
51
51
|
var Output = Schema.Struct({
|
|
52
52
|
url: Schema.String,
|
|
53
53
|
contentType: Schema.String,
|
|
54
|
-
format:
|
|
54
|
+
format: Input13.fields.format,
|
|
55
55
|
output: Schema.String
|
|
56
56
|
});
|
|
57
57
|
var acceptHeader = (format) => {
|
|
@@ -82,7 +82,7 @@ var assertHttpUrl = (url) => {
|
|
|
82
82
|
throw new Error("URL must use http:// or https://");
|
|
83
83
|
};
|
|
84
84
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
85
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
85
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES3, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES3} byte limit)`));
|
|
86
86
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
87
87
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
88
88
|
var convert = (content, contentType, format) => {
|
|
@@ -94,16 +94,16 @@ var convert = (content, contentType, format) => {
|
|
|
94
94
|
return extractTextFromHTML2(content);
|
|
95
95
|
return content;
|
|
96
96
|
};
|
|
97
|
-
var
|
|
97
|
+
var Plugin50 = {
|
|
98
98
|
id: "opencode.tool.webfetch",
|
|
99
99
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
100
100
|
const http = yield* HttpClient.HttpClient;
|
|
101
|
-
const permission = yield*
|
|
101
|
+
const permission = yield* Service69;
|
|
102
102
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
103
|
-
name:
|
|
103
|
+
name: name13,
|
|
104
104
|
options: { codemode: false },
|
|
105
|
-
description:
|
|
106
|
-
input:
|
|
105
|
+
description: description5,
|
|
106
|
+
input: Input13,
|
|
107
107
|
output: Output,
|
|
108
108
|
execute: (input, context) => Effect.gen(function* () {
|
|
109
109
|
yield* Effect.try({
|
|
@@ -111,7 +111,7 @@ var Plugin30 = {
|
|
|
111
111
|
catch: (error) => error
|
|
112
112
|
});
|
|
113
113
|
yield* permission.assert({
|
|
114
|
-
action:
|
|
114
|
+
action: name13,
|
|
115
115
|
resources: [input.url],
|
|
116
116
|
save: ["*"],
|
|
117
117
|
metadata: input,
|
|
@@ -169,4 +169,4 @@ function extractTextFromHTML2(html) {
|
|
|
169
169
|
parser.end();
|
|
170
170
|
return text.trim();
|
|
171
171
|
}
|
|
172
|
-
export {
|
|
172
|
+
export { name13, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input13, Plugin50, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrations2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./reference-gxjyhf1s.js";
|
|
4
4
|
import {
|
|
5
5
|
schema_gen_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./reference-pkyv6v7h.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./reference-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./reference-n49wygsy.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./reference-jvdzp9ms.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event18
|
|
10
|
+
} from "./reference-pvz0z9yn.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./reference-bjhzkqyk.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./reference-c7s7jw20.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service14
|
|
21
|
+
} from "./reference-61g7nd3s.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID9,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./reference-2nzqa2tq.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./reference-aygxzdnw.js";
|
|
30
30
|
import {
|
|
31
31
|
supports2,
|
|
32
32
|
resolve2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./reference-zv31yxkj.js";
|
|
34
34
|
import {
|
|
35
35
|
InvalidRequestError2,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
36
|
+
UnavailableError4,
|
|
37
|
+
Service77
|
|
38
|
+
} from "./reference-svjkc6ey.js";
|
|
39
39
|
import {
|
|
40
40
|
ID4,
|
|
41
41
|
Input14,
|
|
42
42
|
Response2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./reference-4shcznxh.js";
|
|
44
44
|
|
|
45
45
|
// src/plugin/provider/opencode.ts
|
|
46
46
|
import {
|
|
@@ -136,7 +136,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
136
136
|
}
|
|
137
137
|
function oauth(http) {
|
|
138
138
|
return {
|
|
139
|
-
integrationID:
|
|
139
|
+
integrationID: ID14.make("opencode"),
|
|
140
140
|
method: {
|
|
141
141
|
id: methodID,
|
|
142
142
|
type: "oauth",
|
|
@@ -204,8 +204,8 @@ var OpencodePlugin2 = define({
|
|
|
204
204
|
const bus = yield* Service85;
|
|
205
205
|
const client = yield* HttpClient.HttpClient;
|
|
206
206
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
207
|
-
const managed = yield*
|
|
208
|
-
const voice = yield*
|
|
207
|
+
const managed = yield* Service14;
|
|
208
|
+
const voice = yield* Service77;
|
|
209
209
|
const scope = yield* Scope.Scope;
|
|
210
210
|
const loading = Semaphore.makeUnsafe(1);
|
|
211
211
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -257,22 +257,22 @@ var OpencodePlugin2 = define({
|
|
|
257
257
|
}).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "error" }), Effect.scoped, Effect.timeoutOrElse({
|
|
258
258
|
duration: Duration.seconds(20),
|
|
259
259
|
orElse: () => Effect.fail(new Error("OpenCode Console didn't answer in time"))
|
|
260
|
-
}), Effect.mapError((cause) => new
|
|
260
|
+
}), Effect.mapError((cause) => new UnavailableError4({
|
|
261
261
|
service: "opencode",
|
|
262
262
|
message: cause instanceof Error ? cause.message : String(cause)
|
|
263
263
|
})), Effect.flatMap((reply) => {
|
|
264
264
|
if (reply.status >= 200 && reply.status < 300)
|
|
265
265
|
return Effect.succeed(reply.text);
|
|
266
266
|
if (reply.status === 401)
|
|
267
|
-
return Effect.fail(new
|
|
267
|
+
return Effect.fail(new UnavailableError4({ service: "opencode", message: `${signedOutMessage}.` }));
|
|
268
268
|
const message = Option.getOrUndefined(Schema.decodeUnknownOption(InferenceError)(reply.text))?.error.message ?? `OpenCode Console refused the voice request (HTTP ${reply.status})`;
|
|
269
|
-
return Effect.fail(reply.status === 400 || reply.status === 404 ? new InvalidRequestError2({ message }) : new
|
|
269
|
+
return Effect.fail(reply.status === 400 || reply.status === 404 ? new InvalidRequestError2({ message }) : new UnavailableError4({ service: "opencode", message }));
|
|
270
270
|
}));
|
|
271
271
|
return {
|
|
272
272
|
integration: "opencode",
|
|
273
273
|
models: offer.models,
|
|
274
274
|
workspace: offer.workspace,
|
|
275
|
-
session: (input) => send("/live/sessions", { session: { ...input.session, model: input.model }, transport: input.transport }).pipe(Effect.flatMap((text) => Schema.decodeUnknownEffect(LiveSession)(text).pipe(Effect.mapError(() => new
|
|
275
|
+
session: (input) => send("/live/sessions", { session: { ...input.session, model: input.model }, transport: input.transport }).pipe(Effect.flatMap((text) => Schema.decodeUnknownEffect(LiveSession)(text).pipe(Effect.mapError(() => new UnavailableError4({
|
|
276
276
|
service: "opencode",
|
|
277
277
|
message: "OpenCode Console returned an invalid voice session"
|
|
278
278
|
})))), Effect.map((created) => ({
|
|
@@ -306,7 +306,7 @@ var OpencodePlugin2 = define({
|
|
|
306
306
|
providers.update(providerID, (provider) => {
|
|
307
307
|
if (source && source.provider !== provider)
|
|
308
308
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
309
|
-
provider.integrationID =
|
|
309
|
+
provider.integrationID = ID14.make("opencode");
|
|
310
310
|
if (item.canonical !== undefined)
|
|
311
311
|
provider.canonical = item.canonical;
|
|
312
312
|
if (item.name !== undefined)
|
|
@@ -380,7 +380,7 @@ var OpencodePlugin2 = define({
|
|
|
380
380
|
sourceConnection: snapshot.connection
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
|
-
const item = providers.get(
|
|
383
|
+
const item = providers.get(ID9.opencode);
|
|
384
384
|
if (!item)
|
|
385
385
|
return;
|
|
386
386
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -392,7 +392,7 @@ var OpencodePlugin2 = define({
|
|
|
392
392
|
});
|
|
393
393
|
});
|
|
394
394
|
yield* ctx.model.transform((models) => {
|
|
395
|
-
const item = models.provider.get(
|
|
395
|
+
const item = models.provider.get(ID9.opencode);
|
|
396
396
|
if (!item)
|
|
397
397
|
return;
|
|
398
398
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -481,7 +481,7 @@ var OpencodePlugin2 = define({
|
|
|
481
481
|
});
|
|
482
482
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
483
483
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
484
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
484
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID9.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
485
485
|
});
|
|
486
486
|
yield* guard(snapshot);
|
|
487
487
|
const polling = yield* FiberHandle.make();
|
|
@@ -492,7 +492,7 @@ var OpencodePlugin2 = define({
|
|
|
492
492
|
onlyIfMissing: true
|
|
493
493
|
});
|
|
494
494
|
});
|
|
495
|
-
yield* bus.subscribe(
|
|
495
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
496
496
|
yield* poll();
|
|
497
497
|
})
|
|
498
498
|
});
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service52
|
|
4
|
+
} from "./reference-c3yk3agv.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./reference-6pjqjmy2.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service69
|
|
10
|
+
} from "./reference-2n0ty02m.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./reference-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/todo.ts
|
|
16
16
|
var exports_todo = {};
|
|
17
17
|
__export(exports_todo, {
|
|
18
18
|
Info: () => Info2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
Output: () =>
|
|
21
|
-
Plugin: () =>
|
|
19
|
+
Input: () => Input11,
|
|
20
|
+
Output: () => Output8,
|
|
21
|
+
Plugin: () => Plugin48,
|
|
22
22
|
TodoTool: () => exports_todo,
|
|
23
|
-
name: () =>
|
|
23
|
+
name: () => name11,
|
|
24
24
|
summarize: () => summarize2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai";
|
|
@@ -37,17 +37,17 @@ Use it proactively when a task has 3 or more distinct steps, or when the user gi
|
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
39
|
// src/tool/plugin/todo.ts
|
|
40
|
-
var
|
|
40
|
+
var name11 = "todowrite";
|
|
41
41
|
var Info2 = Schema.Struct({
|
|
42
42
|
content: Schema.String.annotate({ description: "Brief description of the task" }),
|
|
43
43
|
status: Schema.Literals(["pending", "in_progress", "completed", "cancelled"]).annotate({
|
|
44
44
|
description: "Current status of the task: pending, in_progress, completed, cancelled"
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var Input11 = Schema.Struct({
|
|
48
48
|
todos: Schema.Array(Info2).annotate({ description: "The updated todo list" })
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Output8 = Schema.Struct({
|
|
51
51
|
todos: Schema.Array(Info2)
|
|
52
52
|
});
|
|
53
53
|
var summarize2 = (todos) => {
|
|
@@ -61,24 +61,24 @@ var summarize2 = (todos) => {
|
|
|
61
61
|
const active = todos.filter((todo) => todo.status === "in_progress").map((todo) => JSON.stringify(todo.content));
|
|
62
62
|
return `Todos updated: ${counts}${active.length ? `. In progress: ${active.join(", ")}` : ""}`;
|
|
63
63
|
};
|
|
64
|
-
var
|
|
64
|
+
var Plugin48 = {
|
|
65
65
|
id: "opencode.tool.todo",
|
|
66
66
|
effect: Effect.fn("TodoTool.Plugin")(function* (ctx) {
|
|
67
|
-
const config = yield*
|
|
68
|
-
const permission = yield*
|
|
67
|
+
const config = yield* Service52;
|
|
68
|
+
const permission = yield* Service69;
|
|
69
69
|
const loaded = yield* observe2(config, ctx.event, ctx.tool.reload());
|
|
70
70
|
const enabled = () => latest2(loaded.entries, "experimental")?.todo === true;
|
|
71
71
|
yield* ctx.tool.transform((editor) => {
|
|
72
72
|
if (!enabled())
|
|
73
73
|
return;
|
|
74
74
|
editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name11,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: todowrite_default,
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input11,
|
|
79
|
+
output: Output8,
|
|
80
80
|
execute: (input, context) => permission.assert({
|
|
81
|
-
action:
|
|
81
|
+
action: name11,
|
|
82
82
|
resources: ["*"],
|
|
83
83
|
save: ["*"],
|
|
84
84
|
sessionID: context.sessionID,
|
|
@@ -94,4 +94,4 @@ var Plugin25 = {
|
|
|
94
94
|
})
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
export {
|
|
97
|
+
export { name11, Info2, Input11, Output8, summarize2, Plugin48, exports_todo };
|