@opencode/core 0.0.0-dev-306 → 0.0.0-dev-338
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 +89 -89
- package/dist/aisdk-native.js +101 -101
- package/dist/aisdk.js +107 -107
- package/dist/app.js +9 -9
- package/dist/bus.js +83 -83
- package/dist/chunks/{location-r7dkdyp5.js → schema-00csjphn.js} +36 -36
- package/dist/chunks/{location-nbm7yy57.js → schema-01kh9xtm.js} +14 -14
- package/dist/chunks/{location-hch7yraj.js → schema-02ye6z51.js} +15 -15
- package/dist/chunks/{location-034tev2y.js → schema-034tev2y.js} +2 -2
- package/dist/chunks/{location-zqbg2s7f.js → schema-04rctafp.js} +51 -51
- package/dist/chunks/{location-536gnnhd.js → schema-099yywvh.js} +29 -29
- package/dist/chunks/{location-6bd340sn.js → schema-0d2vjrpp.js} +8 -8
- package/dist/chunks/{location-bqxm09jz.js → schema-0dhx3ykd.js} +55 -55
- package/dist/chunks/{location-jyg8crv2.js → schema-0grvd95t.js} +25 -25
- package/dist/chunks/{location-ads06k24.js → schema-0hbtj59d.js} +19 -19
- package/dist/chunks/{location-bhyrg0mn.js → schema-0hvn3y38.js} +17 -17
- package/dist/chunks/{location-sqjzf8x2.js → schema-0j7gp832.js} +4 -4
- package/dist/chunks/{location-2bwv8tnq.js → schema-0ncehkqy.js} +87 -87
- package/dist/chunks/{location-ghrzdqqx.js → schema-0nde5ztd.js} +5 -5
- package/dist/chunks/{location-3dbyenxe.js → schema-0qqqxr5x.js} +20 -20
- package/dist/chunks/{location-147wqxjy.js → schema-0t5h2k0v.js} +5 -5
- package/dist/chunks/{location-7a4v4c26.js → schema-0w807sat.js} +11 -11
- package/dist/chunks/{location-m89858wj.js → schema-12yz1921.js} +3 -3
- package/dist/chunks/{location-v2yyptek.js → schema-1ad21j16.js} +8 -8
- package/dist/chunks/{location-1aqsckx4.js → schema-1aqsckx4.js} +1 -1
- package/dist/chunks/{location-1ep2p91f.js → schema-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-50w453fn.js → schema-1g2qd3p6.js} +12 -12
- package/dist/chunks/{location-85hx114z.js → schema-1gdnxn8q.js} +23 -23
- package/dist/chunks/{location-5j5yn56v.js → schema-1p3hqer1.js} +12 -12
- package/dist/chunks/{location-cmkpv6mv.js → schema-1qc5n05d.js} +10 -10
- package/dist/chunks/{location-et87mf2s.js → schema-1ry6nyrb.js} +89 -89
- package/dist/chunks/{location-fd5e9wgq.js → schema-1wrrsbc4.js} +12 -12
- package/dist/chunks/{location-hhdnbsvt.js → schema-1wtf8ad7.js} +19 -19
- package/dist/chunks/{location-1x2knyw4.js → schema-1x2knyw4.js} +1 -1
- package/dist/chunks/{location-ms8gjsg9.js → schema-1x5s0zfr.js} +23 -23
- package/dist/chunks/{location-1yq9hg58.js → schema-1yq9hg58.js} +1 -1
- package/dist/chunks/{location-rw03ft0n.js → schema-1z5f493n.js} +5 -5
- package/dist/chunks/{location-204s3925.js → schema-204s3925.js} +1 -1
- package/dist/chunks/{location-zb0eyyj7.js → schema-25jw3g4f.js} +5 -5
- package/dist/chunks/{location-26x8chrq.js → schema-26x8chrq.js} +3 -3
- package/dist/chunks/{location-x07fr6ah.js → schema-2gk2y1j8.js} +14 -14
- package/dist/chunks/{location-bpjheaj0.js → schema-2j84ncef.js} +21 -21
- package/dist/chunks/{location-hh67hv7z.js → schema-2v186e1s.js} +30 -30
- package/dist/chunks/{location-99gmmhwa.js → schema-2vahexqr.js} +18 -18
- package/dist/chunks/{location-tsz093v2.js → schema-33qkep72.js} +8 -8
- package/dist/chunks/{location-zgkfm9vd.js → schema-36r31j1y.js} +15 -15
- package/dist/chunks/{location-yh2v5kew.js → schema-3756z231.js} +45 -45
- package/dist/chunks/{location-62s3a18k.js → schema-375j4a5k.js} +34 -34
- package/dist/chunks/{location-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-qgs1tbcx.js → schema-3hn5rpb1.js} +24 -24
- package/dist/chunks/{location-34pknpnd.js → schema-3mhkvgqt.js} +26 -26
- package/dist/chunks/{location-djd49kbm.js → schema-3qb4h4tp.js} +2 -2
- package/dist/chunks/{location-g32ax1nd.js → schema-3vf3ny91.js} +20 -20
- package/dist/chunks/{location-3jqxp1k9.js → schema-3w7mkftw.js} +20 -20
- package/dist/chunks/{location-40za9wsf.js → schema-40za9wsf.js} +2 -2
- package/dist/chunks/{location-w67s4ywc.js → schema-4a2b0ssv.js} +8 -8
- package/dist/chunks/{location-5dcrg5my.js → schema-4c49gk8m.js} +5 -5
- package/dist/chunks/{location-4dx1dgte.js → schema-4dx1dgte.js} +1 -1
- package/dist/chunks/{location-fffxyf18.js → schema-4f5xwjpe.js} +13 -13
- package/dist/chunks/{location-4pyp9zr9.js → schema-4pyp9zr9.js} +1 -1
- package/dist/chunks/{location-4v008n1t.js → schema-4v008n1t.js} +1 -1
- package/dist/chunks/{location-mkc9xh75.js → schema-4zsvjwk5.js} +11 -11
- package/dist/chunks/{location-97r9t6wm.js → schema-54whx9vj.js} +21 -21
- package/dist/chunks/{location-9ahqkxsp.js → schema-578cqfvw.js} +3 -3
- package/dist/chunks/{location-74n62q8p.js → schema-57h12rnx.js} +3 -3
- package/dist/chunks/{location-de6znanw.js → schema-5c0rjt9e.js} +34 -34
- package/dist/chunks/{location-98n7hra1.js → schema-5jzshcv3.js} +32 -32
- package/dist/chunks/{location-5m9w47nd.js → schema-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-b6vsg801.js → schema-5nnwax6m.js} +5 -5
- package/dist/chunks/{location-fhyh4p9b.js → schema-655tpehd.js} +34 -34
- package/dist/chunks/{location-336ptya5.js → schema-68mpvj42.js} +9 -9
- package/dist/chunks/{location-efbqjxxv.js → schema-6a8reyab.js} +9 -9
- package/dist/chunks/{location-6esdw8yj.js → schema-6esdw8yj.js} +1 -1
- package/dist/chunks/{location-3sty8408.js → schema-6sqa993f.js} +9 -9
- package/dist/chunks/{location-my54cbqv.js → schema-6srxf2b1.js} +5 -5
- package/dist/chunks/{location-28365gvt.js → schema-6wyy0pz9.js} +41 -41
- package/dist/chunks/{location-dbmp929s.js → schema-6y263vp8.js} +5 -5
- package/dist/chunks/{location-j6fakqra.js → schema-6zw0fw57.js} +3 -3
- package/dist/chunks/{location-5bnajwfk.js → schema-71gmpxhv.js} +24 -24
- package/dist/chunks/{location-76cb1hcw.js → schema-76cb1hcw.js} +1 -1
- package/dist/chunks/{location-t8erkws8.js → schema-78p2h4ex.js} +5 -5
- package/dist/chunks/{location-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-3mtcb7b3.js → schema-7brnv8w0.js} +17 -17
- package/dist/chunks/{location-8gqhbr3y.js → schema-7fff45pw.js} +8 -8
- package/dist/chunks/{location-7gh51h4m.js → schema-7h768wt6.js} +20 -20
- package/dist/chunks/{location-vnqrb8rh.js → schema-7jw3x0rm.js} +20 -20
- package/dist/chunks/{location-7kr66rt3.js → schema-7kr66rt3.js} +1 -1
- package/dist/chunks/schema-7mzbv8bq.js +26 -0
- package/dist/chunks/{location-0d0e2qqj.js → schema-7n0jac0z.js} +9 -9
- package/dist/chunks/{location-eyc69scq.js → schema-7rvjhzv0.js} +31 -31
- package/dist/chunks/{location-7w2ypzdf.js → schema-7w2ypzdf.js} +1 -1
- package/dist/chunks/{location-rbndg51d.js → schema-7wfak81m.js} +3 -3
- package/dist/chunks/{location-f6bwzamp.js → schema-7znc2ak6.js} +12 -12
- package/dist/chunks/{location-25h84942.js → schema-8b3vzgkx.js} +4 -4
- package/dist/chunks/{location-5h2db7ke.js → schema-8b69v1a7.js} +21 -21
- package/dist/chunks/{location-8prsd97r.js → schema-8jhdp17k.js} +31 -31
- package/dist/chunks/{location-4f5ax2dv.js → schema-8m7jngp7.js} +11 -11
- package/dist/chunks/{location-8wtp7s3z.js → schema-8wtp7s3z.js} +1 -1
- package/dist/chunks/{location-90zstvax.js → schema-90zstvax.js} +1 -1
- package/dist/chunks/{location-xbvaqmtc.js → schema-9bnx8v1s.js} +43 -43
- package/dist/chunks/{location-efswkf52.js → schema-9vnf221r.js} +35 -35
- package/dist/chunks/{location-yg79hbqn.js → schema-9y5j7mew.js} +8 -8
- package/dist/chunks/{location-zgd8t41s.js → schema-9z9tayqc.js} +9 -9
- package/dist/chunks/{location-tkxe7v6f.js → schema-a6vzdybk.js} +20 -20
- package/dist/chunks/{location-vkdfbcf5.js → schema-aa5xtxj2.js} +16 -16
- package/dist/chunks/{location-gd3reat4.js → schema-afzqdm25.js} +27 -27
- package/dist/chunks/{location-zxc9shn1.js → schema-asjdf3ky.js} +4 -4
- package/dist/chunks/{location-dxrghr56.js → schema-asp0rn3b.js} +28 -28
- package/dist/chunks/{location-ayjs7tqn.js → schema-ayjs7tqn.js} +2 -2
- package/dist/chunks/{location-4c0eh56a.js → schema-b0951d1j.js} +7 -7
- package/dist/chunks/{location-9eh5kz8z.js → schema-b1k617ee.js} +19 -19
- package/dist/chunks/schema-b2ekajyb.js +257 -0
- package/dist/chunks/{location-r0pyvz6f.js → schema-b491pjm5.js} +24 -24
- package/dist/chunks/{location-c3qstxzp.js → schema-b59atwxm.js} +4 -4
- package/dist/chunks/{location-44vsgcd8.js → schema-bam9qj5c.js} +7 -7
- package/dist/chunks/{location-bstexjd6.js → schema-bstexjd6.js} +1 -1
- package/dist/chunks/{location-3ryz99p0.js → schema-c6x7d2ts.js} +4 -4
- package/dist/chunks/{location-r440h8qp.js → schema-cmhv6pag.js} +11 -11
- package/dist/chunks/{location-cwrgdav8.js → schema-cwrgdav8.js} +2 -2
- package/dist/chunks/{location-d4v9tmah.js → schema-d4v9tmah.js} +2 -2
- package/dist/chunks/{location-49bazr4g.js → schema-d56bmmma.js} +19 -19
- package/dist/chunks/{location-gm0ycg18.js → schema-dbavz9kp.js} +9 -9
- package/dist/chunks/{location-egx4syav.js → schema-dezsc65w.js} +18 -18
- package/dist/chunks/{location-07bhy05n.js → schema-djm830jq.js} +4 -4
- package/dist/chunks/{location-35bjdts5.js → schema-djs3dngg.js} +7 -7
- package/dist/chunks/{location-xnwqffna.js → schema-drfa0kca.js} +3 -3
- package/dist/chunks/{location-dt77769w.js → schema-dt77769w.js} +1 -1
- package/dist/chunks/{location-4ntm1ty7.js → schema-dxf17875.js} +9 -9
- package/dist/chunks/{location-43mtkq1f.js → schema-dy8ej2a0.js} +20 -20
- package/dist/chunks/{location-q2kxgsvb.js → schema-e00yb6hn.js} +7 -7
- package/dist/chunks/{location-9xnamytp.js → schema-e5awnnxc.js} +25 -25
- package/dist/chunks/{location-e834z07m.js → schema-e834z07m.js} +1 -1
- package/dist/chunks/{location-011mqk6m.js → schema-e85a669x.js} +10 -10
- package/dist/chunks/{location-w510rxtp.js → schema-e89v3s2x.js} +5 -5
- package/dist/chunks/{location-hdmnesa6.js → schema-ecd2v7nh.js} +5 -5
- package/dist/chunks/{location-mfmmqpne.js → schema-efnt7zk1.js} +28 -28
- package/dist/chunks/{location-bbnmh3xr.js → schema-egd6pm3f.js} +35 -35
- package/dist/chunks/{location-spehfrkg.js → schema-ehgd54p9.js} +25 -25
- package/dist/chunks/{location-v6x8hkr5.js → schema-emvnqz9f.js} +11 -11
- package/dist/chunks/{location-mt21hhzj.js → schema-esk39185.js} +6 -6
- package/dist/chunks/{location-eqmd2tfz.js → schema-eybj1wgy.js} +5 -5
- package/dist/chunks/{location-85qde3ax.js → schema-ezqsy8gy.js} +27 -27
- package/dist/chunks/{location-jrbmxwcc.js → schema-ezw7t4kx.js} +9 -9
- package/dist/chunks/{location-sh2m58zd.js → schema-f3ad9cbx.js} +43 -43
- package/dist/chunks/{location-x79e7hsz.js → schema-faaeq40t.js} +6 -6
- package/dist/chunks/{location-pqs4b36k.js → schema-fbgyyhht.js} +21 -21
- package/dist/chunks/{location-fffv3p7h.js → schema-fffv3p7h.js} +1 -1
- package/dist/chunks/{location-fg9p65nk.js → schema-fg9p65nk.js} +2 -2
- package/dist/chunks/{location-nva9eqjm.js → schema-fn61dekp.js} +5 -5
- package/dist/chunks/{location-z896zmsn.js → schema-fq1fyy34.js} +41 -41
- package/dist/chunks/{location-v3h869xg.js → schema-fs1j62r4.js} +11 -11
- package/dist/chunks/{location-beqawg79.js → schema-fxyd2t29.js} +10 -10
- package/dist/chunks/{location-y4n6pw34.js → schema-g1e2r5aa.js} +4 -4
- package/dist/chunks/{location-8jjf20rn.js → schema-g1mvyxge.js} +8 -8
- package/dist/chunks/{location-9hw2m1zw.js → schema-g4te2x2h.js} +31 -31
- package/dist/chunks/{location-hhaywkwm.js → schema-gcbf8e2a.js} +11 -11
- package/dist/chunks/{location-kv1pxpnb.js → schema-gcye4jv7.js} +4 -4
- package/dist/chunks/{location-k4pwdphg.js → schema-gm428j6c.js} +29 -29
- package/dist/chunks/{location-xbq7ap0g.js → schema-gv5m31y1.js} +8 -5
- package/dist/chunks/{location-kcg78dnn.js → schema-hdfrs5mg.js} +7 -7
- package/dist/chunks/{location-kawgm7c0.js → schema-hek2y864.js} +9 -9
- package/dist/chunks/{location-hh7kjqtw.js → schema-hh7kjqtw.js} +1 -1
- package/dist/chunks/{location-hpg1pkwy.js → schema-hpg1pkwy.js} +1 -1
- package/dist/chunks/{location-2sjtpkz1.js → schema-hptmg8g9.js} +17 -17
- package/dist/chunks/{location-zehwd02a.js → schema-hq6dxpfa.js} +24 -24
- package/dist/chunks/{location-hqxkkta1.js → schema-hqxkkta1.js} +1 -1
- package/dist/chunks/{location-q2571jsw.js → schema-hscrayt9.js} +42 -42
- package/dist/chunks/{location-4h609sqz.js → schema-j0dybgn2.js} +30 -30
- package/dist/chunks/{location-jcqm84fr.js → schema-jcqm84fr.js} +2 -2
- package/dist/chunks/{location-jfaecv01.js → schema-jfaecv01.js} +1 -1
- package/dist/chunks/{location-ym7mkmya.js → schema-jhxhd08e.js} +19 -19
- package/dist/chunks/{location-jtnps1zs.js → schema-jtnps1zs.js} +2 -2
- package/dist/chunks/{location-vze99txj.js → schema-jzy064tf.js} +17 -17
- package/dist/chunks/{location-fr9j7gn6.js → schema-k394zw05.js} +58 -58
- package/dist/chunks/{location-4bbpqcw3.js → schema-k6966x57.js} +15 -15
- package/dist/chunks/{location-k814nvkf.js → schema-k814nvkf.js} +1 -1
- package/dist/chunks/{location-j2c5g3b2.js → schema-k8ec4f2h.js} +22 -22
- package/dist/chunks/{location-bgd12eww.js → schema-k9c4fygp.js} +193 -193
- package/dist/chunks/{location-b3a32pfz.js → schema-kh0hrg97.js} +4 -4
- package/dist/chunks/{location-akkhd0hr.js → schema-khq1tf5f.js} +20 -20
- package/dist/chunks/{location-q6jmyack.js → schema-kjphpf5s.js} +12 -12
- package/dist/chunks/{location-tjspe09c.js → schema-kka3dzk1.js} +10 -10
- package/dist/chunks/{location-tg1vr1qt.js → schema-kmzgegqq.js} +8 -8
- package/dist/chunks/{location-rerwg0b9.js → schema-ksw1makz.js} +12 -12
- package/dist/chunks/{location-kt3bjfbg.js → schema-kt3bjfbg.js} +1 -1
- package/dist/chunks/{location-trmt4qt7.js → schema-m0n96caj.js} +33 -33
- package/dist/chunks/{location-m1714858.js → schema-m1714858.js} +1 -1
- package/dist/chunks/{location-7kqn30mb.js → schema-m2p7g6q5.js} +39 -39
- package/dist/chunks/{location-pk0dqn8g.js → schema-m9mdazr8.js} +5 -5
- package/dist/chunks/{location-y0xdaqa2.js → schema-m9qjbqaf.js} +11 -11
- package/dist/chunks/{location-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-x8fyy5bn.js → schema-ma7n6kha.js} +4 -4
- package/dist/chunks/{location-mb7mbhnz.js → schema-mb7mbhnz.js} +3 -3
- package/dist/chunks/{location-nf3n4x4w.js → schema-md7hf9yx.js} +29 -29
- package/dist/chunks/schema-me0dhgxs.js +18 -0
- package/dist/chunks/{location-d2887f8n.js → schema-mtkfycnh.js} +4 -4
- package/dist/chunks/{location-w3ee0mms.js → schema-mvcvwgh8.js} +2 -2
- package/dist/chunks/{location-qxhe8vts.js → schema-mw7cb6xb.js} +11 -11
- package/dist/chunks/{location-9excscth.js → schema-n8agtmcc.js} +16 -16
- package/dist/chunks/{location-dgambtz7.js → schema-n9svx643.js} +29 -29
- package/dist/chunks/{location-2znspyh0.js → schema-na7hrbgf.js} +15 -15
- package/dist/chunks/{location-vha2yqec.js → schema-nagb01d0.js} +6 -6
- package/dist/chunks/{location-nah043kf.js → schema-nah043kf.js} +1 -1
- package/dist/chunks/{location-2y347c6b.js → schema-nb79qexc.js} +16 -16
- package/dist/chunks/{location-sh1my6rk.js → schema-nd0gg6f3.js} +52 -52
- package/dist/chunks/{location-esh8axw0.js → schema-nfy79yn0.js} +14 -14
- package/dist/chunks/{location-cvsegsfy.js → schema-nhj2s2rn.js} +29 -29
- package/dist/chunks/{location-z2vfz141.js → schema-npvk5mbc.js} +12 -12
- package/dist/chunks/{location-jgw0ez2q.js → schema-nsannsan.js} +35 -35
- package/dist/chunks/{location-p015t6z3.js → schema-p015t6z3.js} +2 -2
- package/dist/chunks/{location-x7fqccva.js → schema-p288ht65.js} +9 -9
- package/dist/chunks/{location-nkbs8pm4.js → schema-p6qx88jx.js} +11 -11
- package/dist/chunks/{location-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{location-aqr5273r.js → schema-pnj9p3e7.js} +15 -15
- package/dist/chunks/{location-gprb4n4c.js → schema-pzn80and.js} +5 -5
- package/dist/chunks/{location-k6586ewx.js → schema-q3gx0t3a.js} +21 -21
- package/dist/chunks/{location-h949k007.js → schema-q89tx0w9.js} +4 -4
- package/dist/chunks/{location-jzgtnw1d.js → schema-qa8rkrn5.js} +4 -4
- package/dist/chunks/{location-8jztxfpf.js → schema-qjgzc4b4.js} +4 -4
- package/dist/chunks/{location-w4dn9kj3.js → schema-qm628a9a.js} +81 -81
- package/dist/chunks/{location-zqpvfprb.js → schema-qn9arske.js} +16 -16
- package/dist/chunks/{location-qp7r0hxv.js → schema-qp7r0hxv.js} +1 -1
- package/dist/chunks/{location-brd5eeq0.js → schema-qqpbcr2p.js} +8 -8
- package/dist/chunks/{location-qqvy8y24.js → schema-qqvy8y24.js} +1 -1
- package/dist/chunks/{location-eyba04wr.js → schema-qxzr918a.js} +25 -25
- package/dist/chunks/{location-h3chngrm.js → schema-qyfz9dkk.js} +10 -10
- package/dist/chunks/{location-7j88ajzy.js → schema-qz97qqq3.js} +22 -22
- package/dist/chunks/{location-xrbbh422.js → schema-r15nerz4.js} +2 -2
- package/dist/chunks/{location-wpkqvnzq.js → schema-r1hwwpqk.js} +13 -13
- package/dist/chunks/{location-bfhbctn3.js → schema-r3jekzdf.js} +29 -29
- package/dist/chunks/{location-8k8pzbp4.js → schema-r4zhn8a3.js} +8 -8
- package/dist/chunks/{location-r542h3bh.js → schema-r542h3bh.js} +1 -1
- package/dist/chunks/{location-s2pfznc4.js → schema-ra34yqmw.js} +6 -6
- package/dist/chunks/{location-3sg64nxm.js → schema-rb6a0f6t.js} +11 -11
- package/dist/chunks/{location-rb9dy4dg.js → schema-rb9dy4dg.js} +1 -1
- package/dist/chunks/{location-vztbg1g9.js → schema-rehx0x6s.js} +11 -11
- package/dist/chunks/{location-rt5dr6hb.js → schema-rt5dr6hb.js} +1 -1
- package/dist/chunks/{location-7ahw8xm3.js → schema-s2dzrv2e.js} +351 -351
- package/dist/chunks/{location-2spvqkt6.js → schema-s5zjbmxy.js} +13 -13
- package/dist/chunks/{location-sa3fpqfw.js → schema-sa3fpqfw.js} +2 -2
- package/dist/chunks/{location-cm18kf9d.js → schema-sgq8g3gm.js} +18 -18
- package/dist/chunks/{location-j1pnkskb.js → schema-sj028wv8.js} +9 -9
- package/dist/chunks/{location-va0kemka.js → schema-snr8m60h.js} +3 -3
- package/dist/chunks/{location-zzc7mygy.js → schema-srcgv9w3.js} +50 -50
- package/dist/chunks/{location-svcy3p9a.js → schema-svcy3p9a.js} +1 -1
- package/dist/chunks/{location-r20zdgj9.js → schema-sx385end.js} +5 -5
- package/dist/chunks/{location-4c7peeks.js → schema-t1bgdn1k.js} +21 -21
- package/dist/chunks/{location-w62z9fyd.js → schema-t8kxmwy5.js} +3 -3
- package/dist/chunks/{location-tczq8hjw.js → schema-tczq8hjw.js} +1 -1
- package/dist/chunks/{location-g8tf0a0n.js → schema-tj38cb2g.js} +19 -19
- package/dist/chunks/{location-tmc7xdjs.js → schema-tmc7xdjs.js} +1 -1
- package/dist/chunks/{location-twssxy5n.js → schema-twssxy5n.js} +2 -2
- package/dist/chunks/{location-qf791z7a.js → schema-v23js2jf.js} +24 -24
- package/dist/chunks/{location-v2r1d0zg.js → schema-v2r1d0zg.js} +1 -1
- package/dist/chunks/{location-f5vve9yn.js → schema-vce9hmvv.js} +8 -8
- package/dist/chunks/{location-662rk1k7.js → schema-vhvv8ez0.js} +4 -4
- package/dist/chunks/{location-9p40vjn2.js → schema-vnyx9vg6.js} +6 -6
- package/dist/chunks/{location-ysnxehz4.js → schema-vp8rtqyg.js} +18 -18
- package/dist/chunks/{location-pa2rdw4x.js → schema-vqntchmx.js} +20 -20
- package/dist/chunks/{location-scgs57d2.js → schema-vtbv1fva.js} +17 -17
- package/dist/chunks/{location-78m9g99c.js → schema-vtkbdejs.js} +33 -33
- package/dist/chunks/{location-3jwa21mm.js → schema-vybksbky.js} +22 -22
- package/dist/chunks/{location-fdjpgvma.js → schema-vz2va2d1.js} +21 -21
- package/dist/chunks/{location-wrd39zd3.js → schema-vzmjdaw1.js} +9 -9
- package/dist/chunks/{location-kytj30gb.js → schema-w11ey1wa.js} +11 -11
- package/dist/chunks/{location-s7kyse9r.js → schema-w35wzz9x.js} +4 -4
- package/dist/chunks/{location-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-fznmdakp.js → schema-w687dnns.js} +4 -4
- package/dist/chunks/{location-wakvkjy4.js → schema-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{location-mw7rhp6d.js → schema-wdcvs2c8.js} +47 -47
- package/dist/chunks/{location-wegkxhrn.js → schema-wegkxhrn.js} +2 -2
- package/dist/chunks/{location-wnhgecwx.js → schema-wnhgecwx.js} +1 -1
- package/dist/chunks/{location-gk8yz1wb.js → schema-wvwyjhqj.js} +15 -15
- package/dist/chunks/{location-xhz7bc8m.js → schema-wwr5b8zq.js} +13 -13
- package/dist/chunks/{location-nesyvdwa.js → schema-wymh8p0v.js} +1 -1
- package/dist/chunks/{location-qnghve6e.js → schema-wzwsv8q3.js} +8 -8
- package/dist/chunks/{location-q1abnwp6.js → schema-x7sbefsh.js} +18 -18
- package/dist/chunks/{location-tfgkb3f6.js → schema-x7sgwrtq.js} +33 -33
- package/dist/chunks/{location-jbbta00e.js → schema-xa8sgekr.js} +1 -1
- package/dist/chunks/{location-gxt6edwm.js → schema-xg9fc39m.js} +27 -27
- package/dist/chunks/{location-bd1zsfw8.js → schema-xjhaxcdd.js} +12 -12
- package/dist/chunks/{location-5wsenn9a.js → schema-xnw40tj7.js} +18 -18
- package/dist/chunks/{location-e71bb87j.js → schema-xrc3640n.js} +8 -8
- package/dist/chunks/{location-s6h2s3rz.js → schema-xymnhqkr.js} +4 -4
- package/dist/chunks/{location-5pq7k0xn.js → schema-y1hrmxtq.js} +25 -25
- package/dist/chunks/{location-vpndcmkw.js → schema-yaf14s91.js} +29 -29
- package/dist/chunks/{location-yara3q77.js → schema-yara3q77.js} +2 -2
- package/dist/chunks/{location-yb20nhc3.js → schema-yb20nhc3.js} +1 -1
- package/dist/chunks/{location-vfgkptxa.js → schema-yfmps5ht.js} +17 -17
- package/dist/chunks/{location-2f6y3wyx.js → schema-ypzz06n9.js} +8 -8
- package/dist/chunks/{location-5225t9m9.js → schema-yv3czy6n.js} +27 -27
- package/dist/chunks/{location-v3swpve8.js → schema-zasfh7e5.js} +17 -17
- package/dist/chunks/{location-k2034wbj.js → schema-zbwmzx6w.js} +43 -43
- package/dist/chunks/{location-rp03b2v5.js → schema-zes4xa3j.js} +6 -6
- package/dist/chunks/{location-dn2kncps.js → schema-zr8qtytk.js} +3 -3
- package/dist/chunks/{location-agx6da5f.js → schema-ztatdthy.js} +45 -45
- package/dist/chunks/{location-e45fk36t.js → schema-ztf6n3de.js} +4 -4
- package/dist/chunks/{location-vwmyycjt.js → schema-zvmapj1s.js} +11 -11
- package/dist/chunks/{location-xwswqzhk.js → schema-zvwzcwk0.js} +8 -8
- package/dist/chunks/{location-zhh0qxkb.js → schema-zvyj7mkg.js} +33 -33
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +149 -149
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +93 -93
- package/dist/config/discovery.js +94 -94
- package/dist/config/integration.js +5 -5
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +111 -111
- package/dist/config/plugin/agent.js +129 -129
- package/dist/config/plugin/command.js +226 -226
- package/dist/config/plugin/compaction.js +169 -169
- package/dist/config/plugin/compatibility.js +149 -149
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +130 -130
- package/dist/config/plugin/image.js +129 -129
- package/dist/config/plugin/instruction.js +129 -129
- package/dist/config/plugin/location-watcher.js +129 -129
- package/dist/config/plugin/mcp.js +136 -136
- package/dist/config/plugin/policy.js +129 -129
- package/dist/config/plugin/provider.js +129 -129
- package/dist/config/plugin/reference.js +131 -131
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +145 -145
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +152 -152
- package/dist/config/plugin/snapshot.js +129 -129
- package/dist/config/plugin/source.js +128 -128
- package/dist/config/plugin/tool-output.js +130 -130
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +131 -131
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +132 -132
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +93 -93
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration.gen.js +59 -59
- package/dist/database/migration.js +61 -61
- 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 +104 -104
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +392 -392
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +105 -105
- 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 +84 -84
- package/dist/file-access.js +155 -155
- package/dist/file-mutation.js +106 -106
- 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/file-watch.js +90 -90
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +239 -239
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +111 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +114 -114
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +99 -99
- package/dist/generate.js +119 -119
- package/dist/git.js +11 -11
- 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 +103 -103
- 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/notice.js +3 -3
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +383 -383
- package/dist/instruction-discovery.js +94 -94
- package/dist/instructions/builtins.js +99 -99
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +97 -97
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +83 -83
- package/dist/location-activity.js +173 -173
- package/dist/location-lifecycle.js +149 -149
- package/dist/location-service-map.js +98 -98
- package/dist/location-services.js +380 -380
- package/dist/location.js +99 -99
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -103
- package/dist/mcp/index.js +121 -121
- package/dist/mcp/instructions.js +177 -177
- package/dist/mcp/oauth.js +88 -88
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +102 -102
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +103 -103
- package/dist/model-resolver.js +111 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +90 -90
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +148 -148
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +98 -98
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -85
- package/dist/plugin/agent.js +84 -84
- package/dist/plugin/command.js +112 -112
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +232 -232
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +359 -359
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +109 -109
- package/dist/plugin/module.js +126 -126
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +145 -145
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +103 -103
- package/dist/plugin/provider/azure.js +127 -127
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +129 -129
- package/dist/plugin/provider/cloudflare-ai-gateway.js +127 -127
- package/dist/plugin/provider/cloudflare-workers-ai.js +127 -127
- package/dist/plugin/provider/configured.js +125 -125
- package/dist/plugin/provider/credential-settings.js +84 -84
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +105 -105
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +107 -107
- package/dist/plugin/provider/gitlab.js +106 -106
- package/dist/plugin/provider/google-vertex.js +126 -126
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +88 -88
- package/dist/plugin/provider/lmstudio.js +138 -138
- package/dist/plugin/provider/local.js +135 -135
- package/dist/plugin/provider/modal.js +104 -104
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +138 -138
- package/dist/plugin/provider/openai-context-caps.js +102 -102
- package/dist/plugin/provider/openai.js +131 -131
- package/dist/plugin/provider/opencode.js +131 -131
- package/dist/plugin/provider/openrouter.js +103 -103
- package/dist/plugin/provider/poe.js +89 -89
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +103 -103
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +128 -128
- package/dist/plugin/provider/vllm.js +136 -136
- package/dist/plugin/provider/xai.js +103 -103
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +80 -80
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +146 -146
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +367 -367
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +98 -98
- package/dist/plugin/vcs/hg.js +98 -98
- package/dist/plugin/verbosity.js +105 -105
- package/dist/plugin/warming.js +127 -127
- 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 +2 -2
- 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 +239 -239
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +100 -100
- package/dist/provider.js +109 -109
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +108 -108
- package/dist/reference/instructions.js +100 -100
- package/dist/reference.js +98 -98
- package/dist/repository-cache.js +92 -92
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +98 -98
- package/dist/schedule/check.js +237 -237
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +245 -245
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +128 -128
- package/dist/session/command.js +84 -84
- package/dist/session/compaction.js +171 -171
- package/dist/session/context.js +196 -196
- package/dist/session/diff.js +100 -100
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +243 -243
- package/dist/session/execution.js +159 -159
- package/dist/session/generate.js +196 -196
- package/dist/session/history.js +135 -135
- package/dist/session/inbox.js +144 -144
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +89 -89
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +140 -140
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +166 -166
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +163 -163
- package/dist/session/projector.js +142 -142
- package/dist/session/prompt.js +147 -147
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +138 -138
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +246 -246
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +112 -112
- package/dist/session/runner/publish-llm-event.js +148 -148
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +159 -159
- package/dist/session/runner/to-llm-message.js +136 -136
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +177 -177
- package/dist/session/shell.js +143 -143
- package/dist/session/skill.js +146 -146
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +83 -83
- package/dist/session/store.js +141 -141
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +3 -3
- package/dist/session/subagent-job.js +226 -226
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +200 -200
- package/dist/session/to-session-error.js +147 -147
- package/dist/session/transfer.js +237 -237
- package/dist/session/usage.js +1 -1
- package/dist/session.js +228 -228
- 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 +145 -145
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +150 -150
- package/dist/skill.js +149 -149
- package/dist/snapshot.js +101 -101
- 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 +176 -176
- package/dist/tool/plugin/edit.js +161 -161
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +167 -167
- package/dist/tool/plugin/grep.js +167 -167
- package/dist/tool/plugin/image-generate.js +236 -236
- package/dist/tool/plugin/mcp-resource.js +161 -161
- package/dist/tool/plugin/opencode.js +160 -160
- package/dist/tool/plugin/patch.js +163 -163
- package/dist/tool/plugin/question.js +143 -143
- package/dist/tool/plugin/read.js +168 -168
- package/dist/tool/plugin/schedule.js +243 -243
- package/dist/tool/plugin/shell.js +232 -232
- package/dist/tool/plugin/skill.js +152 -152
- package/dist/tool/plugin/subagent.js +233 -233
- package/dist/tool/plugin/todo.js +152 -152
- package/dist/tool/plugin/webfetch.js +154 -154
- package/dist/tool/plugin/websearch.js +154 -154
- package/dist/tool/plugin/write.js +161 -161
- package/dist/tool/read-filesystem.js +114 -114
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +157 -157
- package/dist/usage-limits.js +99 -99
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +104 -104
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +105 -105
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +101 -101
- package/dist/voice.js +100 -100
- package/dist/websearch.js +90 -90
- package/dist/wellknown/plugin.js +86 -86
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +92 -92
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +101 -101
- package/dist/worktree.js +112 -112
- package/package.json +8 -8
- package/dist/chunks/location-ev660z6k.js +0 -18
- package/dist/chunks/location-hwkge4a4.js +0 -26
- package/dist/chunks/location-n30bqkse.js +0 -257
- /package/dist/chunks/{location-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kah00gy.js → schema-1kah00gy.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2bv980vf.js → schema-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-5w3e23ze.js → schema-5w3e23ze.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{location-6q2bdcd1.js → schema-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-7stb81gk.js → schema-7stb81gk.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{location-84wd9syh.js → schema-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a058387c.js → schema-a058387c.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-beh6qq61.js → schema-beh6qq61.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cqv5kn06.js → schema-cqv5kn06.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ean2d8b5.js → schema-ean2d8b5.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-fkpq3x5p.js → schema-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hcxmzztb.js → schema-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jwr30sdr.js → schema-jwr30sdr.js} +0 -0
- /package/dist/chunks/{location-jze0r7bz.js → schema-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-m18g726c.js → schema-m18g726c.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-ncqqe42p.js → schema-ncqqe42p.js} +0 -0
- /package/dist/chunks/{location-nh4v3znn.js → schema-nh4v3znn.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-p71gwv9c.js → schema-p71gwv9c.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-stkk57rt.js → schema-stkk57rt.js} +0 -0
- /package/dist/chunks/{location-t03h4f5z.js → schema-t03h4f5z.js} +0 -0
- /package/dist/chunks/{location-ty7weeps.js → schema-ty7weeps.js} +0 -0
- /package/dist/chunks/{location-ve7vex1e.js → schema-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → schema-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./schema-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
Service85,
|
|
9
|
-
node89
|
|
10
|
-
} from "./location-50w453fn.js";
|
|
11
|
-
import {
|
|
12
8
|
Service83,
|
|
13
9
|
node87
|
|
14
|
-
} from "./
|
|
10
|
+
} from "./schema-1g2qd3p6.js";
|
|
11
|
+
import {
|
|
12
|
+
Service81,
|
|
13
|
+
node85
|
|
14
|
+
} from "./schema-nb79qexc.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./schema-204s3925.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./schema-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
26
|
ID: () => ID5,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service39,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node42,
|
|
30
30
|
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -36,20 +36,20 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
37
|
import { ID as ID5 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service39 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service83;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service81;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
141
141
|
for (const [file, snapshot] of input.files) {
|
|
142
142
|
const absolute = path.resolve(worktree, file);
|
|
143
143
|
if (!FSUtil.contains(worktree, absolute))
|
|
144
|
-
return yield* new
|
|
144
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
145
145
|
files.set(file, TreeID2.make(snapshot));
|
|
146
146
|
}
|
|
147
147
|
return files;
|
|
148
148
|
});
|
|
149
149
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
150
150
|
if (!enabled())
|
|
151
|
-
return yield* new
|
|
151
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
152
152
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
153
153
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service39.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
156
156
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
157
|
-
var
|
|
158
|
-
service:
|
|
157
|
+
var node42 = makeLocationNode({
|
|
158
|
+
service: Service39,
|
|
159
159
|
layer,
|
|
160
|
-
deps: [FSUtil.node,
|
|
160
|
+
deps: [FSUtil.node, node87, Global.node, node85]
|
|
161
161
|
});
|
|
162
|
-
var noopLayer2 = Layer.succeed(
|
|
162
|
+
var noopLayer2 = Layer.succeed(Service39, Service39.of({
|
|
163
163
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
164
164
|
reload: () => Effect.void,
|
|
165
165
|
capture: () => Effect.undefined,
|
|
@@ -168,13 +168,13 @@ var noopLayer2 = Layer.succeed(Service42, Service42.of({
|
|
|
168
168
|
restore: () => Effect.void
|
|
169
169
|
}));
|
|
170
170
|
function failure(operation, cause) {
|
|
171
|
-
if (cause instanceof
|
|
171
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
172
172
|
return cause;
|
|
173
|
-
return new
|
|
173
|
+
return new Error3({
|
|
174
174
|
operation,
|
|
175
175
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
176
176
|
cause
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export { ID5,
|
|
180
|
+
export { ID5, Error3, Service39, node42, noopLayer2, exports_snapshot2 };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service72
|
|
3
|
+
} from "./schema-a6vzdybk.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./schema-nb79qexc.js";
|
|
7
7
|
import {
|
|
8
8
|
Unattended2,
|
|
9
9
|
merge2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service65
|
|
11
|
+
} from "./schema-fq1fyy34.js";
|
|
12
12
|
import {
|
|
13
13
|
qualifiedName2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./schema-gv5m31y1.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service79
|
|
17
|
+
} from "./schema-v23js2jf.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service16,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./schema-y1hrmxtq.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service31
|
|
24
|
+
} from "./schema-me0dhgxs.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service47
|
|
27
|
+
} from "./schema-hq6dxpfa.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
Service26
|
|
30
|
+
} from "./schema-5c0rjt9e.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
32
|
+
Service53,
|
|
33
33
|
args2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./schema-yfmps5ht.js";
|
|
35
35
|
import {
|
|
36
36
|
scan3
|
|
37
|
-
} from "./
|
|
37
|
+
} from "./schema-q89tx0w9.js";
|
|
38
38
|
import {
|
|
39
39
|
__export
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./schema-9rqn6x4v.js";
|
|
41
41
|
|
|
42
42
|
// src/schedule/check.ts
|
|
43
43
|
var exports_check = {};
|
|
@@ -122,7 +122,7 @@ function describe2(condition) {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
var authorize2 = Effect.fnUntraced(function* (session, name, when, check) {
|
|
125
|
-
const plugins = yield*
|
|
125
|
+
const plugins = yield* Service31;
|
|
126
126
|
yield* plugins.awaitActivation;
|
|
127
127
|
switch (check.condition.type) {
|
|
128
128
|
case "shell":
|
|
@@ -133,7 +133,7 @@ var authorize2 = Effect.fnUntraced(function* (session, name, when, check) {
|
|
|
133
133
|
});
|
|
134
134
|
var evaluate2 = Effect.fnUntraced(function* (session, check, prevState, context) {
|
|
135
135
|
const run = Effect.gen(function* () {
|
|
136
|
-
const plugins = yield*
|
|
136
|
+
const plugins = yield* Service31;
|
|
137
137
|
yield* plugins.awaitActivation;
|
|
138
138
|
switch (check.condition.type) {
|
|
139
139
|
case "shell":
|
|
@@ -148,8 +148,8 @@ var evaluate2 = Effect.fnUntraced(function* (session, check, prevState, context)
|
|
|
148
148
|
})));
|
|
149
149
|
});
|
|
150
150
|
var resolveCodeTools = Effect.fnUntraced(function* (paths) {
|
|
151
|
-
const mcp = yield*
|
|
152
|
-
const tools = yield*
|
|
151
|
+
const mcp = yield* Service26;
|
|
152
|
+
const tools = yield* Service47;
|
|
153
153
|
if (paths.length > 0)
|
|
154
154
|
yield* mcp.flush;
|
|
155
155
|
const registered = yield* tools.list();
|
|
@@ -169,8 +169,8 @@ var resolveCodeTools = Effect.fnUntraced(function* (paths) {
|
|
|
169
169
|
return { tools, resolved };
|
|
170
170
|
});
|
|
171
171
|
var authorizeCode = Effect.fnUntraced(function* (session, name, when, mode, condition) {
|
|
172
|
-
const permission = yield*
|
|
173
|
-
const agents = yield*
|
|
172
|
+
const permission = yield* Service65;
|
|
173
|
+
const agents = yield* Service72;
|
|
174
174
|
const agent = yield* agents.select(session.agent);
|
|
175
175
|
const scanned = CodeMode.scanTools(condition.code);
|
|
176
176
|
if (Result.isFailure(scanned))
|
|
@@ -209,8 +209,8 @@ var authorizeCode = Effect.fnUntraced(function* (session, name, when, mode, cond
|
|
|
209
209
|
}), { discard: true });
|
|
210
210
|
});
|
|
211
211
|
var runCode = Effect.fnUntraced(function* (session, condition, prevState, context) {
|
|
212
|
-
const permission = yield*
|
|
213
|
-
const agents = yield*
|
|
212
|
+
const permission = yield* Service65;
|
|
213
|
+
const agents = yield* Service72;
|
|
214
214
|
const agent = yield* agents.select(session.agent);
|
|
215
215
|
if (!agent.info)
|
|
216
216
|
return { ok: false, error: `Agent not found: ${agent.id}` };
|
|
@@ -280,9 +280,9 @@ var runCode = Effect.fnUntraced(function* (session, condition, prevState, contex
|
|
|
280
280
|
};
|
|
281
281
|
});
|
|
282
282
|
var scanShell = Effect.fnUntraced(function* (command) {
|
|
283
|
-
const location = yield*
|
|
284
|
-
const access = yield*
|
|
285
|
-
const shellSelect = yield*
|
|
283
|
+
const location = yield* Service81;
|
|
284
|
+
const access = yield* Service16;
|
|
285
|
+
const shellSelect = yield* Service53;
|
|
286
286
|
const target = yield* access.resolve({ path: location.directory, kind: "directory" }).pipe(Effect.mapError((error) => error.message));
|
|
287
287
|
const shell = yield* shellSelect.resolve({ priority: "compat" });
|
|
288
288
|
const parsed = yield* scan3(command, shell, target.absolute).pipe(Effect.mapError((error) => error.message));
|
|
@@ -292,8 +292,8 @@ var scanShell = Effect.fnUntraced(function* (command) {
|
|
|
292
292
|
return { shell, cwd: target.absolute, workspaceID: location.workspaceID, external, commands };
|
|
293
293
|
});
|
|
294
294
|
var assertShellPermissions = Effect.fnUntraced(function* (session, scanned, metadata) {
|
|
295
|
-
const permission = yield*
|
|
296
|
-
const agents = yield*
|
|
295
|
+
const permission = yield* Service65;
|
|
296
|
+
const agents = yield* Service72;
|
|
297
297
|
const agent = yield* agents.select(session.agent);
|
|
298
298
|
if (scanned.external.length > 0) {
|
|
299
299
|
yield* permission.assert({
|
|
@@ -325,7 +325,7 @@ var authorizeShell = Effect.fnUntraced(function* (session, name, when, mode, con
|
|
|
325
325
|
});
|
|
326
326
|
});
|
|
327
327
|
var runShell = Effect.fnUntraced(function* (session, condition, prevState) {
|
|
328
|
-
const environment = yield*
|
|
328
|
+
const environment = yield* Service79;
|
|
329
329
|
const scannedExit = yield* Effect.result(scanShell(condition.run));
|
|
330
330
|
if (Result.isFailure(scannedExit))
|
|
331
331
|
return { ok: false, error: scannedExit.failure };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./schema-1p3hqer1.js";
|
|
5
5
|
import {
|
|
6
6
|
changes2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./schema-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/command.ts
|
|
14
14
|
var exports_command4 = {};
|
|
15
15
|
__export(exports_command4, {
|
|
16
16
|
Command: () => exports_command4,
|
|
17
|
-
Event: () =>
|
|
17
|
+
Event: () => Event6,
|
|
18
18
|
ExecutionError: () => ExecutionError2,
|
|
19
|
-
Info: () =>
|
|
20
|
-
NotFoundError: () =>
|
|
21
|
-
Service: () =>
|
|
22
|
-
layer: () =>
|
|
23
|
-
node: () =>
|
|
19
|
+
Info: () => Info7,
|
|
20
|
+
NotFoundError: () => NotFoundError6,
|
|
21
|
+
Service: () => Service41,
|
|
22
|
+
layer: () => layer18,
|
|
23
|
+
node: () => node44
|
|
24
24
|
});
|
|
25
25
|
import { Command } from "@opencode/schema/command";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
28
|
-
import { Event as
|
|
29
|
-
var
|
|
28
|
+
import { Event as Event6 } from "@opencode/schema/command";
|
|
29
|
+
var Info7 = Command.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class NotFoundError6 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
32
32
|
command: Schema.String,
|
|
33
33
|
message: Schema.String
|
|
34
34
|
}) {
|
|
@@ -40,11 +40,11 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service41 extends Context.Service()("@opencode/Command") {
|
|
44
44
|
}
|
|
45
|
-
var
|
|
46
|
-
const bus = yield*
|
|
47
|
-
const info = (definition) =>
|
|
45
|
+
var layer18 = Layer.effect(Service41, Effect.gen(function* () {
|
|
46
|
+
const bus = yield* Service84;
|
|
47
|
+
const info = (definition) => Info7.make({
|
|
48
48
|
name: definition.name,
|
|
49
49
|
description: definition.description
|
|
50
50
|
});
|
|
@@ -56,7 +56,7 @@ var layer22 = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
56
56
|
}),
|
|
57
57
|
notify: changes2((commands) => Array.from(commands.values(), info), () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid))
|
|
58
58
|
});
|
|
59
|
-
return
|
|
59
|
+
return Service41.of({
|
|
60
60
|
reload: state.reload,
|
|
61
61
|
transform: state.transform,
|
|
62
62
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -67,15 +67,15 @@ var layer22 = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
67
67
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
68
68
|
const definition = state.get().get(input.name);
|
|
69
69
|
if (!definition)
|
|
70
|
-
return yield* new
|
|
70
|
+
return yield* new NotFoundError6({ command: input.name, message: `Command not found: ${input.name}` });
|
|
71
71
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
74
|
}));
|
|
75
|
-
var
|
|
76
|
-
service:
|
|
77
|
-
layer:
|
|
78
|
-
deps: [
|
|
75
|
+
var node44 = makeLocationNode({
|
|
76
|
+
service: Service41,
|
|
77
|
+
layer: layer18,
|
|
78
|
+
deps: [node88]
|
|
79
79
|
});
|
|
80
80
|
function errorMessage(error) {
|
|
81
81
|
if (error instanceof Error)
|
|
@@ -87,4 +87,4 @@ function errorMessage(error) {
|
|
|
87
87
|
return "Command execution failed";
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export {
|
|
90
|
+
export { Info7, NotFoundError6, ExecutionError2, Service41, layer18, node44, exports_command4, Event6 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service69
|
|
4
|
+
} from "./schema-wdcvs2c8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service11
|
|
7
|
+
} from "./schema-ztatdthy.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./schema-hpg1pkwy.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./schema-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: () => Plugin26
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin26 = 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* Service69;
|
|
27
|
+
const compaction = yield* Service11;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, compaction.reload());
|
|
29
29
|
yield* compaction.transform((editor) => {
|
|
30
30
|
editor.configure({ precompute: latest2(loaded.entries, "experimental")?.background_compaction === true });
|
|
@@ -41,4 +41,4 @@ var Plugin43 = define({
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { Plugin26, exports_compaction };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service69
|
|
4
|
+
} from "./schema-wdcvs2c8.js";
|
|
5
5
|
import {
|
|
6
6
|
BlobTable2,
|
|
7
7
|
BlobRefTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-mb7mbhnz.js";
|
|
9
9
|
import {
|
|
10
10
|
refHash2,
|
|
11
11
|
ref2,
|
|
12
12
|
FileRef2,
|
|
13
13
|
ToolFileRef2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./schema-fg9p65nk.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./schema-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/session/blob.ts
|
|
20
20
|
var exports_blob = {};
|
|
@@ -191,7 +191,7 @@ var read3 = Effect.fnUntraced(function* (db, hash) {
|
|
|
191
191
|
});
|
|
192
192
|
var hashBytes2 = (raw) => createHash("sha256").update(raw).digest("hex");
|
|
193
193
|
var enabled2 = Effect.gen(function* () {
|
|
194
|
-
const config = yield* Effect.serviceOption(
|
|
194
|
+
const config = yield* Effect.serviceOption(Service69);
|
|
195
195
|
if (Option.isNone(config))
|
|
196
196
|
return false;
|
|
197
197
|
return latest2(yield* config.value.entries(), "experimental")?.media_blob === true;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
9
|
make: () => make13,
|
|
10
|
-
render: () =>
|
|
10
|
+
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
// src/session/runner/prompt/system.txt
|
|
13
13
|
var system_default = `You are an AI agent running in OpenCode, a coding agent harness. Help the user accomplish their goals using the tools you have available.
|
|
@@ -29,9 +29,9 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
29
29
|
|
|
30
30
|
// src/session/system-prompt.ts
|
|
31
31
|
function make13(tools) {
|
|
32
|
-
return
|
|
32
|
+
return render3(system_default, tools);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function render3(prompt, tools) {
|
|
35
35
|
const instructions = [];
|
|
36
36
|
if (tools.includes("shell")) {
|
|
37
37
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -46,4 +46,4 @@ function render2(prompt, tools) {
|
|
|
46
46
|
`));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export { make13,
|
|
49
|
+
export { make13, render3, exports_system_prompt };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service76
|
|
3
|
+
} from "./schema-vybksbky.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service65
|
|
6
|
+
} from "./schema-fq1fyy34.js";
|
|
7
7
|
import {
|
|
8
8
|
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError3,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service18
|
|
14
|
+
} from "./schema-0qqqxr5x.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./schema-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch2 = {};
|
|
21
|
+
__export(exports_websearch2, {
|
|
22
|
+
Input: () => Input3,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin39,
|
|
25
|
+
WebSearchTool: () => exports_websearch2,
|
|
26
|
+
description: () => description2,
|
|
27
|
+
name: () => name3
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/http";
|
|
32
|
-
var
|
|
32
|
+
var name3 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description2 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input3 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
46
|
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin39 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service65;
|
|
53
|
+
const forms = yield* Service76;
|
|
54
|
+
const websearch = yield* Service18;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name3,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description2,
|
|
59
|
+
input: Input3,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name3,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name3];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name3, NO_RESULTS2, description2, Input3, Plugin39, exports_websearch2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-m9qjbqaf.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-40za9wsf.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin5,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint4
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint4 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin5 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin8 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint4, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin8 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint4, Plugin5, exports_firecrawl };
|