@opencode/core 0.0.0-dev-21507 → 0.0.0-dev-21517
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +7 -7
- package/dist/bus.js +75 -75
- package/dist/chunks/{tool-4c8bw516.js → location-activity-00x4qneg.js} +8 -8
- package/dist/chunks/{tool-26dhv5et.js → location-activity-01kf8yhn.js} +19 -19
- package/dist/chunks/{tool-02mvvr71.js → location-activity-02mvvr71.js} +3 -3
- package/dist/chunks/{tool-aj7mw0zk.js → location-activity-034tev2y.js} +2 -2
- package/dist/chunks/{tool-ndkkv98v.js → location-activity-05w7bww5.js} +25 -25
- package/dist/chunks/{tool-sjq3h641.js → location-activity-06f81zaa.js} +44 -44
- package/dist/chunks/{tool-49jcyb13.js → location-activity-08bp9gk4.js} +15 -15
- package/dist/chunks/{tool-cbre0k23.js → location-activity-0bmgx1nz.js} +14 -14
- package/dist/chunks/{tool-xdzd716q.js → location-activity-0h785e3w.js} +5 -5
- package/dist/chunks/{tool-4dg0xz54.js → location-activity-0mwht5j2.js} +6 -6
- package/dist/chunks/{tool-9y4hw6ff.js → location-activity-0qmzksdr.js} +53 -53
- package/dist/chunks/{tool-p3p03tan.js → location-activity-0tbd1f4q.js} +33 -33
- package/dist/chunks/{tool-tz96d8h6.js → location-activity-0tf9ya7d.js} +9 -9
- package/dist/chunks/{tool-10xea195.js → location-activity-0tfy61zw.js} +32 -32
- package/dist/chunks/{tool-0emb60td.js → location-activity-0vbcp93d.js} +2 -2
- package/dist/chunks/{tool-940py8pc.js → location-activity-0zkz45z3.js} +18 -18
- package/dist/chunks/{tool-qvyxvxya.js → location-activity-13cf78z7.js} +33 -33
- package/dist/chunks/{tool-4sj6rv93.js → location-activity-14y67es9.js} +11 -11
- package/dist/chunks/{tool-kj78g2dw.js → location-activity-17jwbhm2.js} +30 -30
- package/dist/chunks/{tool-hveambb3.js → location-activity-1a140ev3.js} +6 -6
- package/dist/chunks/{tool-27w5k9zf.js → location-activity-1ep2p91f.js} +2 -2
- package/dist/chunks/{tool-dhhj8p3k.js → location-activity-1g6m8tcr.js} +29 -29
- package/dist/chunks/{tool-4j0c97rp.js → location-activity-1gfxhtb5.js} +20 -20
- package/dist/chunks/{tool-0sgefyfd.js → location-activity-1pev4fnm.js} +4 -4
- package/dist/chunks/{tool-8ptwh2sj.js → location-activity-1pkb9xf6.js} +3 -3
- package/dist/chunks/{tool-1vx9hbz5.js → location-activity-1r3g6d8r.js} +25 -25
- package/dist/chunks/{tool-w5pf37nm.js → location-activity-1rtxx7gs.js} +25 -25
- package/dist/chunks/{tool-5gx51r66.js → location-activity-1xy4vzvc.js} +3 -3
- package/dist/chunks/{tool-556pd3b9.js → location-activity-1z0y9k0b.js} +33 -33
- package/dist/chunks/{tool-wbrx293h.js → location-activity-28c9dwea.js} +5 -5
- package/dist/chunks/{tool-7jvyaakv.js → location-activity-2evmdc3g.js} +17 -17
- package/dist/chunks/{tool-tjedn1bk.js → location-activity-2k71kv7p.js} +4 -4
- package/dist/chunks/{tool-yc3qf5z0.js → location-activity-2shfqszk.js} +9 -9
- package/dist/chunks/{tool-1hga77xc.js → location-activity-2shtrhxh.js} +11 -11
- package/dist/chunks/{tool-c95ze8dw.js → location-activity-3em0thmm.js} +11 -11
- package/dist/chunks/{tool-3hepkmqq.js → location-activity-3hepkmqq.js} +1 -1
- package/dist/chunks/{tool-3hwn7j4h.js → location-activity-3hwn7j4h.js} +2 -2
- package/dist/chunks/{tool-8qjra3pm.js → location-activity-3q6hmgvb.js} +29 -29
- package/dist/chunks/{tool-3tvqynh2.js → location-activity-3tvqynh2.js} +1 -1
- package/dist/chunks/{tool-3zsf4n22.js → location-activity-3zsf4n22.js} +1 -1
- package/dist/chunks/{tool-df85n37n.js → location-activity-41mvb394.js} +14 -14
- package/dist/chunks/{tool-98e06m6b.js → location-activity-4av8mw61.js} +41 -41
- package/dist/chunks/{tool-jnz7tvg3.js → location-activity-4bag1db2.js} +5 -5
- package/dist/chunks/{tool-gy0p0s4q.js → location-activity-4n0ytgej.js} +21 -21
- package/dist/chunks/{tool-vj682sbm.js → location-activity-4r98eeww.js} +2 -2
- package/dist/chunks/location-activity-4skwmgyb.js +257 -0
- package/dist/chunks/{tool-vbj0m456.js → location-activity-4y06bmfc.js} +5 -5
- package/dist/chunks/{tool-tec24ygv.js → location-activity-4y59gdq5.js} +16 -16
- package/dist/chunks/{tool-wk61yqzs.js → location-activity-502kcfzs.js} +44 -44
- package/dist/chunks/{tool-283ssd4b.js → location-activity-51j3hrvc.js} +14 -14
- package/dist/chunks/{tool-wkrva1pr.js → location-activity-537fk6rv.js} +25 -25
- package/dist/chunks/{tool-118zcnpk.js → location-activity-56cza17w.js} +26 -26
- package/dist/chunks/{tool-yx0rmv9r.js → location-activity-59jp7pd6.js} +8 -8
- package/dist/chunks/{tool-wtd34zkk.js → location-activity-5cb9jvgc.js} +9 -9
- package/dist/chunks/{tool-ze75yzft.js → location-activity-5gzjtbzb.js} +8 -8
- package/dist/chunks/{tool-fyd5j4v9.js → location-activity-5h58n3v7.js} +26 -26
- package/dist/chunks/{tool-jmqp76t3.js → location-activity-5h6tfdbz.js} +3 -3
- package/dist/chunks/{tool-5m9w47nd.js → location-activity-5m9w47nd.js} +1 -1
- package/dist/chunks/{tool-s14qqts9.js → location-activity-5mrq4sqf.js} +23 -23
- package/dist/chunks/{tool-mqqhst8y.js → location-activity-5ppd002q.js} +4 -4
- package/dist/chunks/{tool-z6sgjvvh.js → location-activity-5ybyrtj9.js} +10 -10
- package/dist/chunks/{tool-ymwgex1k.js → location-activity-62skc2qf.js} +16 -16
- package/dist/chunks/{tool-6827pfxn.js → location-activity-6827pfxn.js} +1 -1
- package/dist/chunks/{tool-4gt0zems.js → location-activity-6azzqc0z.js} +8 -8
- package/dist/chunks/{tool-qg775g37.js → location-activity-6fpm48m7.js} +48 -48
- package/dist/chunks/{tool-jws6fkes.js → location-activity-6pc27hjz.js} +4 -4
- package/dist/chunks/{tool-ccxm2ze4.js → location-activity-6t960epn.js} +12 -12
- package/dist/chunks/{tool-6xb47vfp.js → location-activity-6xb47vfp.js} +1 -1
- package/dist/chunks/{tool-3xbwwg1d.js → location-activity-6xryydhb.js} +15 -15
- package/dist/chunks/{tool-x030sm2p.js → location-activity-6yaymdqw.js} +32 -32
- package/dist/chunks/{tool-775gj3j1.js → location-activity-775gj3j1.js} +2 -2
- package/dist/chunks/{tool-zwgthjzd.js → location-activity-7bjvrdsa.js} +19 -19
- package/dist/chunks/{tool-7bmhse3q.js → location-activity-7bmhse3q.js} +1 -1
- package/dist/chunks/{tool-eryt761w.js → location-activity-7jpqzpd7.js} +35 -35
- package/dist/chunks/{tool-8edt2mn2.js → location-activity-7m71vrgm.js} +91 -91
- package/dist/chunks/{tool-rdfnpc7e.js → location-activity-7p7zayqc.js} +1 -1
- package/dist/chunks/{tool-y9s9xvs6.js → location-activity-7ppyhzjx.js} +6 -6
- package/dist/chunks/{tool-z7nbrbpb.js → location-activity-7t5avhxh.js} +9 -9
- package/dist/chunks/{tool-332kxz91.js → location-activity-7w6118fp.js} +61 -61
- package/dist/chunks/{tool-n2dhmw60.js → location-activity-7xq5rfcp.js} +24 -24
- package/dist/chunks/{tool-y5r47bzr.js → location-activity-7y1sbygh.js} +7 -7
- package/dist/chunks/{tool-x6etvh7w.js → location-activity-801xp6nc.js} +19 -19
- package/dist/chunks/{tool-84txncab.js → location-activity-84txncab.js} +1 -1
- package/dist/chunks/{tool-w174qar2.js → location-activity-86zhaznv.js} +13 -13
- package/dist/chunks/{tool-d99mbq37.js → location-activity-8dnrzmmm.js} +24 -24
- package/dist/chunks/{tool-nxgc2w5h.js → location-activity-8gy1q646.js} +16 -16
- package/dist/chunks/{tool-8m6m0r52.js → location-activity-8m6m0r52.js} +1 -1
- package/dist/chunks/{tool-8mywswrd.js → location-activity-8mywswrd.js} +1 -1
- package/dist/chunks/{tool-8pjxh0v6.js → location-activity-8qyyddbw.js} +34 -34
- package/dist/chunks/{tool-a3c7ahw6.js → location-activity-8wbxkt1z.js} +4 -4
- package/dist/chunks/{tool-5qmfkff2.js → location-activity-90t6v735.js} +9 -9
- package/dist/chunks/{tool-bz1rn4hs.js → location-activity-92p7xx7n.js} +8 -8
- package/dist/chunks/{tool-dvj9ct8m.js → location-activity-998yhzzq.js} +3 -3
- package/dist/chunks/{tool-gn4fp5fa.js → location-activity-9996tgcy.js} +48 -48
- package/dist/chunks/{tool-n5wy83m1.js → location-activity-9sk1wf25.js} +4 -4
- package/dist/chunks/{tool-g0nc362r.js → location-activity-9t9dtkqe.js} +14 -14
- package/dist/chunks/{tool-9wev2pgg.js → location-activity-9wev2pgg.js} +1 -1
- package/dist/chunks/{tool-fr6mqtdc.js → location-activity-a05vnbee.js} +13 -13
- package/dist/chunks/{tool-ex0pka66.js → location-activity-a694798e.js} +5 -5
- package/dist/chunks/{tool-8fs4gys7.js → location-activity-a9drt9e7.js} +11 -11
- package/dist/chunks/{tool-zyg44wv6.js → location-activity-am1tmpj5.js} +10 -10
- package/dist/chunks/{tool-687c5wp0.js → location-activity-asfdzfp1.js} +28 -28
- package/dist/chunks/{tool-mxvxcxwy.js → location-activity-azwe5p1w.js} +4 -4
- package/dist/chunks/{tool-b11a7tx7.js → location-activity-b11a7tx7.js} +1 -1
- package/dist/chunks/{tool-skpzryv2.js → location-activity-b4bzws13.js} +13 -13
- package/dist/chunks/{tool-tk1z8rcs.js → location-activity-bacj9t34.js} +2 -2
- package/dist/chunks/{tool-ewzj04x6.js → location-activity-bft0aa8z.js} +7 -7
- package/dist/chunks/{tool-jkwff1ec.js → location-activity-bh8ad4py.js} +22 -22
- package/dist/chunks/{tool-bjx1sjef.js → location-activity-bjx1sjef.js} +2 -2
- package/dist/chunks/{tool-6a3j6khd.js → location-activity-bmbhqgdj.js} +28 -28
- package/dist/chunks/{tool-1ep4rre3.js → location-activity-bzeyqsqd.js} +4 -4
- package/dist/chunks/{tool-e5adrsfc.js → location-activity-cdtth5pq.js} +32 -32
- package/dist/chunks/{tool-6ygh4fgn.js → location-activity-cemgdj9d.js} +35 -35
- package/dist/chunks/{tool-82rbgap5.js → location-activity-cg46d0x0.js} +12 -12
- package/dist/chunks/{tool-h4dbkbzh.js → location-activity-cx6bqw11.js} +7 -7
- package/dist/chunks/{tool-j0hvq876.js → location-activity-d4mzham1.js} +23 -23
- package/dist/chunks/{tool-amdk1eh7.js → location-activity-d5c0yphb.js} +17 -17
- package/dist/chunks/location-activity-d9k0s0cb.js +523 -0
- package/dist/chunks/{tool-mjj5jjh8.js → location-activity-dagxvrjx.js} +5 -5
- package/dist/chunks/{tool-06v6246a.js → location-activity-dj2wvysw.js} +43 -43
- package/dist/chunks/{tool-y51c8cm2.js → location-activity-dj5cvrpb.js} +192 -192
- package/dist/chunks/{tool-k7af4aa9.js → location-activity-djjr2x20.js} +8 -8
- package/dist/chunks/{tool-x13hnj69.js → location-activity-dqja8dw2.js} +31 -31
- package/dist/chunks/{tool-qqeeq2t9.js → location-activity-drwq78ky.js} +7 -7
- package/dist/chunks/{tool-1ey1ywa8.js → location-activity-ds8w0hjc.js} +37 -37
- package/dist/chunks/{tool-v28f4abg.js → location-activity-e1eg6kc1.js} +2 -2
- package/dist/chunks/{tool-ntecsb7f.js → location-activity-e247ns4g.js} +45 -45
- package/dist/chunks/{tool-f083g6z5.js → location-activity-e4hyd2jn.js} +4 -4
- package/dist/chunks/{tool-t550f9t1.js → location-activity-eaj1djv9.js} +8 -8
- package/dist/chunks/{tool-jf44gywc.js → location-activity-ebc4hc03.js} +18 -18
- package/dist/chunks/{tool-eej6y6fw.js → location-activity-eej6y6fw.js} +2 -2
- package/dist/chunks/{tool-ywwdv83n.js → location-activity-ef32jdqr.js} +15 -15
- package/dist/chunks/{tool-ef5x83kb.js → location-activity-ef5x83kb.js} +1 -1
- package/dist/chunks/{tool-3ga20zad.js → location-activity-ejg29mxq.js} +20 -20
- package/dist/chunks/{tool-p14k59zn.js → location-activity-er22t3x6.js} +10 -10
- package/dist/chunks/{tool-n1dmb866.js → location-activity-ey557bc7.js} +32 -32
- package/dist/chunks/{tool-wsd2y1yv.js → location-activity-f54rk091.js} +25 -25
- package/dist/chunks/{tool-e2hjzebn.js → location-activity-f73rjn58.js} +4 -4
- package/dist/chunks/{tool-3hjc3vgd.js → location-activity-f9s3qxhk.js} +8 -8
- package/dist/chunks/{tool-yvf18s5x.js → location-activity-faea9xsf.js} +12 -12
- package/dist/chunks/{tool-fcrkznn8.js → location-activity-fcrkznn8.js} +1 -1
- package/dist/chunks/{tool-fcy631f0.js → location-activity-fcy631f0.js} +1 -1
- package/dist/chunks/{tool-g5bttqze.js → location-activity-fczg31pg.js} +11 -11
- package/dist/chunks/{tool-xzsd65cy.js → location-activity-fd8vcgz6.js} +22 -22
- package/dist/chunks/{tool-k032gzcv.js → location-activity-fgdtfedm.js} +38 -38
- package/dist/chunks/{tool-m103jfcn.js → location-activity-fn08h0vb.js} +46 -46
- package/dist/chunks/{tool-fn9t717r.js → location-activity-fn9t717r.js} +3 -3
- package/dist/chunks/{tool-0pdt8dbx.js → location-activity-g9m76s7h.js} +3 -3
- package/dist/chunks/{tool-jcjdxez0.js → location-activity-gd1x13z4.js} +11 -11
- package/dist/chunks/{tool-gd4qta3r.js → location-activity-gd4qta3r.js} +1 -1
- package/dist/chunks/{tool-3hahq16z.js → location-activity-gk08jtek.js} +21 -21
- package/dist/chunks/{tool-j3nws6dg.js → location-activity-gp95sf5k.js} +11 -11
- package/dist/chunks/{tool-a6rw3yra.js → location-activity-gqg0rsq2.js} +35 -35
- package/dist/chunks/{tool-x36bd8da.js → location-activity-gs3gp2dw.js} +35 -35
- package/dist/chunks/{tool-tewdvev1.js → location-activity-h28sqj9e.js} +18 -18
- package/dist/chunks/{tool-h6vf3j39.js → location-activity-h6vf3j39.js} +1 -1
- package/dist/chunks/{tool-awb2kyzs.js → location-activity-h92dknr7.js} +17 -17
- package/dist/chunks/{tool-hgz4x7wa.js → location-activity-hgz4x7wa.js} +1 -1
- package/dist/chunks/{tool-7a5jr4d9.js → location-activity-hjakaqqy.js} +11 -11
- package/dist/chunks/{tool-rs666mm1.js → location-activity-j17j0h0c.js} +4 -4
- package/dist/chunks/{tool-gmy8fdpk.js → location-activity-j97xjg52.js} +4 -4
- package/dist/chunks/{tool-w492d1p5.js → location-activity-j9yyv4k7.js} +16 -16
- package/dist/chunks/{tool-yvz6gv03.js → location-activity-jehyjhmh.js} +18 -18
- package/dist/chunks/{tool-2z2nwxhc.js → location-activity-jhfd3768.js} +38 -38
- package/dist/chunks/{tool-cv8w919v.js → location-activity-jj6wnavt.js} +3 -3
- package/dist/chunks/location-activity-jqh9b0xq.js +18 -0
- package/dist/chunks/{tool-0kdreaa3.js → location-activity-jshthe41.js} +29 -29
- package/dist/chunks/{tool-m49kcc85.js → location-activity-jsz4j0f1.js} +15 -15
- package/dist/chunks/{tool-hpbpadsk.js → location-activity-jtstryge.js} +4 -4
- package/dist/chunks/{tool-j8kb6sns.js → location-activity-jyx3vsn7.js} +1 -1
- package/dist/chunks/{tool-2ftt7040.js → location-activity-k31f5s50.js} +25 -25
- package/dist/chunks/{tool-enwyhyab.js → location-activity-k9jxnbe9.js} +17 -17
- package/dist/chunks/{tool-dbde4j0g.js → location-activity-kg1vtevg.js} +4 -4
- package/dist/chunks/{tool-ny8edt06.js → location-activity-khmqacep.js} +4 -4
- package/dist/chunks/{tool-8cbrfsed.js → location-activity-kjdm35cs.js} +5 -5
- package/dist/chunks/{tool-az243w7k.js → location-activity-kn9a3rt9.js} +27 -27
- package/dist/chunks/{tool-6j90fxgt.js → location-activity-knqarm1q.js} +15 -15
- package/dist/chunks/{tool-kwb1v3vj.js → location-activity-kwb1v3vj.js} +1 -1
- package/dist/chunks/{tool-r4apxbbe.js → location-activity-kxhnmrdj.js} +16 -16
- package/dist/chunks/{tool-fgz8sgbp.js → location-activity-m3yk03ze.js} +20 -20
- package/dist/chunks/{tool-m9w0rfyh.js → location-activity-m9w0rfyh.js} +1 -1
- package/dist/chunks/{tool-j7zvs761.js → location-activity-ma65t0cg.js} +36 -36
- package/dist/chunks/{tool-maspj1v3.js → location-activity-maspj1v3.js} +1 -1
- package/dist/chunks/{tool-mr48ebck.js → location-activity-mb0fhdf6.js} +25 -25
- package/dist/chunks/{tool-n9c7dk5h.js → location-activity-mnmsk3d0.js} +38 -38
- package/dist/chunks/{tool-34w1safd.js → location-activity-mpmg7r7y.js} +30 -30
- package/dist/chunks/{tool-d8e9t34v.js → location-activity-mpyev40f.js} +12 -12
- package/dist/chunks/{tool-wjv6dtxz.js → location-activity-n0j76x42.js} +4 -4
- package/dist/chunks/{tool-43kvem2p.js → location-activity-n8vdnqrc.js} +5 -5
- package/dist/chunks/{tool-66950z1s.js → location-activity-ndmy5zdf.js} +10 -10
- package/dist/chunks/{tool-9ar0tc7e.js → location-activity-ngsdhqcd.js} +8 -8
- package/dist/chunks/{tool-fdms3n6w.js → location-activity-njhqdk9p.js} +9 -9
- package/dist/chunks/{tool-cv6a5k53.js → location-activity-nm268en7.js} +18 -18
- package/dist/chunks/{tool-k52t8s6v.js → location-activity-nmj46b78.js} +11 -11
- package/dist/chunks/{tool-f3c2dd4g.js → location-activity-nxk5tgz1.js} +11 -11
- package/dist/chunks/{tool-228mhbmk.js → location-activity-nz7m2gc2.js} +15 -15
- package/dist/chunks/{tool-rscvxc63.js → location-activity-p06yjkdd.js} +20 -20
- package/dist/chunks/{tool-5651m5ed.js → location-activity-p269hv07.js} +41 -41
- package/dist/chunks/{tool-9hn6k4tm.js → location-activity-p37cw4rj.js} +8 -8
- package/dist/chunks/{tool-sfjj6pfb.js → location-activity-paeq8bm7.js} +36 -36
- package/dist/chunks/{tool-pc1v25hk.js → location-activity-pc1v25hk.js} +1 -1
- package/dist/chunks/{tool-3q29hfa9.js → location-activity-pjpe8m1n.js} +21 -21
- package/dist/chunks/{tool-pjvnvgmy.js → location-activity-pjvnvgmy.js} +1 -1
- package/dist/chunks/{tool-pknna89w.js → location-activity-pknna89w.js} +1 -1
- package/dist/chunks/{tool-04cnhvec.js → location-activity-pp22040a.js} +35 -35
- package/dist/chunks/{tool-c2sed5cq.js → location-activity-pt1ss6jy.js} +3 -3
- package/dist/chunks/{tool-d7bshphg.js → location-activity-pzbyjs7h.js} +8 -8
- package/dist/chunks/{tool-y9mdcbbm.js → location-activity-q8s8gt54.js} +13 -13
- package/dist/chunks/{tool-qa3qhgw8.js → location-activity-qa3qhgw8.js} +1 -1
- package/dist/chunks/{tool-7dqsqf20.js → location-activity-qbk8jmg9.js} +50 -50
- package/dist/chunks/{tool-np60s0wh.js → location-activity-qdz4w9cy.js} +23 -23
- package/dist/chunks/{tool-9ny5hk10.js → location-activity-qkgtb9e9.js} +9 -9
- package/dist/chunks/{tool-qsdy395h.js → location-activity-qsdy395h.js} +1 -1
- package/dist/chunks/{tool-djszqvmq.js → location-activity-r2m716tb.js} +9 -9
- package/dist/chunks/{tool-wb3hegf8.js → location-activity-r6ph5k83.js} +14 -14
- package/dist/chunks/{tool-54ma36ye.js → location-activity-r94pvvab.js} +4 -4
- package/dist/chunks/{tool-2mrwwyd2.js → location-activity-rbfexjrq.js} +19 -19
- package/dist/chunks/{tool-dgzw2v3x.js → location-activity-rbg9fbf6.js} +36 -36
- package/dist/chunks/{tool-rdw6cm16.js → location-activity-rdw6cm16.js} +1 -1
- package/dist/chunks/{tool-be2hac41.js → location-activity-ry6831an.js} +9 -9
- package/dist/chunks/{tool-aher8bmf.js → location-activity-rz270s8p.js} +17 -17
- package/dist/chunks/{tool-37cqxn50.js → location-activity-sa6168g2.js} +6 -6
- package/dist/chunks/{tool-tbv8yktb.js → location-activity-snzfrcy2.js} +14 -14
- package/dist/chunks/{tool-tfbr2nq1.js → location-activity-stx7hq6g.js} +11 -11
- package/dist/chunks/{tool-syv4x271.js → location-activity-syv4x271.js} +1 -1
- package/dist/chunks/{tool-tbhbbw5y.js → location-activity-t6mbdjs5.js} +69 -69
- package/dist/chunks/{tool-tazgh4e4.js → location-activity-tazgh4e4.js} +1 -1
- package/dist/chunks/{tool-tcezcvh9.js → location-activity-tcezcvh9.js} +1 -1
- package/dist/chunks/{tool-tdstcens.js → location-activity-tdstcens.js} +1 -1
- package/dist/chunks/{tool-zdwe30dy.js → location-activity-tegs1ycp.js} +6 -6
- package/dist/chunks/{tool-9ks7twft.js → location-activity-tj1d5qjh.js} +21 -21
- package/dist/chunks/{tool-tyytaxap.js → location-activity-tyytaxap.js} +1 -1
- package/dist/chunks/{tool-nz56sr1f.js → location-activity-v13b12ef.js} +5 -5
- package/dist/chunks/{tool-rm4mkcw0.js → location-activity-v210v162.js} +2 -2
- package/dist/chunks/{tool-6w39brh1.js → location-activity-v45697c8.js} +5 -5
- package/dist/chunks/{tool-wy8rpyz3.js → location-activity-v4zywrnk.js} +6 -6
- package/dist/chunks/{tool-v7p4zvkq.js → location-activity-v7p4zvkq.js} +2 -2
- package/dist/chunks/{tool-g98a52zh.js → location-activity-vbz8v6qj.js} +9 -9
- package/dist/chunks/{tool-veqvce7d.js → location-activity-veqvce7d.js} +1 -1
- package/dist/chunks/{tool-vfm45d2v.js → location-activity-vfm45d2v.js} +2 -2
- package/dist/chunks/{tool-cnfb3fp5.js → location-activity-vp15kmxq.js} +97 -97
- package/dist/chunks/{tool-gjeh15rb.js → location-activity-vzndzpkc.js} +11 -11
- package/dist/chunks/{tool-vzs5sf6e.js → location-activity-vzs5sf6e.js} +1 -1
- package/dist/chunks/{tool-w3wsvvr9.js → location-activity-w3wsvvr9.js} +1 -1
- package/dist/chunks/{tool-gzsyx702.js → location-activity-w7e41agf.js} +5 -5
- package/dist/chunks/{tool-wn6r8baz.js → location-activity-wa5fpxh1.js} +11 -11
- package/dist/chunks/{tool-wakvkjy4.js → location-activity-wakvkjy4.js} +1 -1
- package/dist/chunks/{tool-wd87259q.js → location-activity-wd87259q.js} +1 -1
- package/dist/chunks/location-activity-wfdkgkxy.js +26 -0
- package/dist/chunks/{tool-mqwsrn1d.js → location-activity-wt7mczz9.js} +33 -33
- package/dist/chunks/{tool-gc1jma41.js → location-activity-x0nw82cs.js} +36 -36
- package/dist/chunks/{tool-sgtpgegc.js → location-activity-x2a7qa3g.js} +28 -28
- package/dist/chunks/{tool-f46vcsvf.js → location-activity-x3y0w94c.js} +11 -11
- package/dist/chunks/{tool-64ddt51t.js → location-activity-x69p0nft.js} +8 -8
- package/dist/chunks/{tool-wkrz5chy.js → location-activity-xns282hb.js} +57 -57
- package/dist/chunks/{tool-k2svkm7d.js → location-activity-xqh94nq7.js} +13 -13
- package/dist/chunks/{tool-zfgqkgc5.js → location-activity-xv4hnfey.js} +4 -4
- package/dist/chunks/{tool-4hvcvget.js → location-activity-xw6avn3p.js} +12 -12
- package/dist/chunks/{tool-8vcf4cwr.js → location-activity-xw9fg8fb.js} +2 -2
- package/dist/chunks/{tool-jj9ksvj6.js → location-activity-y1bnj3c2.js} +30 -30
- package/dist/chunks/{tool-y1fvbwt7.js → location-activity-y1fvbwt7.js} +1 -1
- package/dist/chunks/{tool-y71avatq.js → location-activity-y71avatq.js} +1 -1
- package/dist/chunks/{tool-fhczpvra.js → location-activity-y9hbk2er.js} +11 -11
- package/dist/chunks/{tool-208nnjmr.js → location-activity-ydxzzmqj.js} +4 -4
- package/dist/chunks/{tool-hgchpp86.js → location-activity-yeqk0rnt.js} +24 -24
- package/dist/chunks/{tool-k5jfazps.js → location-activity-yfzpe4zr.js} +24 -24
- package/dist/chunks/{tool-rp9an6k1.js → location-activity-ykdjanh2.js} +21 -21
- package/dist/chunks/{tool-29gc4c91.js → location-activity-ykfgt8p5.js} +13 -13
- package/dist/chunks/{tool-rq2y2j0k.js → location-activity-yn3pj0yh.js} +13 -13
- package/dist/chunks/{tool-tx895r66.js → location-activity-ys29mwwj.js} +24 -24
- package/dist/chunks/{tool-gq1qwanx.js → location-activity-yxygda1x.js} +14 -14
- package/dist/chunks/{tool-z0bkrqjs.js → location-activity-z0bkrqjs.js} +1 -1
- package/dist/chunks/{tool-5g57z1ma.js → location-activity-z0ydvj27.js} +4 -4
- package/dist/chunks/{tool-z18fegx4.js → location-activity-z18fegx4.js} +1 -1
- package/dist/chunks/{tool-5z2vrcz3.js → location-activity-z3293m6q.js} +2 -2
- package/dist/chunks/{tool-zag9qx83.js → location-activity-zcjqesvk.js} +24 -24
- package/dist/chunks/{tool-zr2ceqn5.js → location-activity-zr2ceqn5.js} +1 -1
- package/dist/chunks/{tool-2vz2ewx5.js → location-activity-zw0jf4j9.js} +12 -12
- package/dist/chunks/{tool-vmamyk2k.js → location-activity-zwkj30rw.js} +19 -19
- package/dist/chunks/{tool-zxq2ej10.js → location-activity-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +84 -84
- 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 +116 -116
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- 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 +117 -117
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +72 -72
- 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 +81 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +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 +76 -76
- 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 +1 -1
- package/dist/filesystem/search.js +105 -105
- 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 +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +109 -109
- 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 +360 -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 +159 -159
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/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 +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +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 +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +114 -114
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +2 -2
- 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 +5 -5
- 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 +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +134 -134
- 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 +224 -224
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +91 -91
- 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 +4 -4
- 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 +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +99 -99
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +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 +223 -223
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +116 -116
- package/dist/snapshot.js +95 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +139 -139
- package/dist/tool/plugin/edit.js +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 +107 -107
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +104 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- 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 +1 -1
- 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 +1 -1
- 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 +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/tool-9mbmc05v.js +0 -26
- package/dist/chunks/tool-p2h6zvwc.js +0 -18
- package/dist/chunks/tool-p5pn22a9.js +0 -257
- package/dist/chunks/tool-yja0x3kv.js +0 -523
- /package/dist/chunks/{tool-0qkdqm5v.js → location-activity-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{tool-0zkw76rk.js → location-activity-0zkw76rk.js} +0 -0
- /package/dist/chunks/{tool-17cy0kzp.js → location-activity-17cy0kzp.js} +0 -0
- /package/dist/chunks/{tool-1cnp2v09.js → location-activity-1cnp2v09.js} +0 -0
- /package/dist/chunks/{tool-24dcb14g.js → location-activity-24dcb14g.js} +0 -0
- /package/dist/chunks/{tool-2710q6r3.js → location-activity-2710q6r3.js} +0 -0
- /package/dist/chunks/{tool-2bv980vf.js → location-activity-2bv980vf.js} +0 -0
- /package/dist/chunks/{tool-2c3vjs8z.js → location-activity-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{tool-359p4xyc.js → location-activity-359p4xyc.js} +0 -0
- /package/dist/chunks/{tool-3asan66x.js → location-activity-3asan66x.js} +0 -0
- /package/dist/chunks/{tool-3t0ybcrp.js → location-activity-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{tool-3v8g72cx.js → location-activity-3v8g72cx.js} +0 -0
- /package/dist/chunks/{tool-3wcehsnq.js → location-activity-3wcehsnq.js} +0 -0
- /package/dist/chunks/{tool-43n2bw4t.js → location-activity-43n2bw4t.js} +0 -0
- /package/dist/chunks/{tool-4knz6hnm.js → location-activity-4knz6hnm.js} +0 -0
- /package/dist/chunks/{tool-4vcrnpx2.js → location-activity-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{tool-4y7fprxs.js → location-activity-4y7fprxs.js} +0 -0
- /package/dist/chunks/{tool-53557ph1.js → location-activity-53557ph1.js} +0 -0
- /package/dist/chunks/{tool-550bvhaj.js → location-activity-550bvhaj.js} +0 -0
- /package/dist/chunks/{tool-5fjb7ams.js → location-activity-5fjb7ams.js} +0 -0
- /package/dist/chunks/{tool-5qd3pb7m.js → location-activity-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{tool-6prwharc.js → location-activity-6prwharc.js} +0 -0
- /package/dist/chunks/{tool-6q2bdcd1.js → location-activity-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{tool-7akdwqpd.js → location-activity-7akdwqpd.js} +0 -0
- /package/dist/chunks/{tool-7m9af43g.js → location-activity-7m9af43g.js} +0 -0
- /package/dist/chunks/{tool-822emrt2.js → location-activity-822emrt2.js} +0 -0
- /package/dist/chunks/{tool-84wd9syh.js → location-activity-84wd9syh.js} +0 -0
- /package/dist/chunks/{tool-88xbtdfr.js → location-activity-88xbtdfr.js} +0 -0
- /package/dist/chunks/{tool-8n3pysct.js → location-activity-8n3pysct.js} +0 -0
- /package/dist/chunks/{tool-8wj87zfr.js → location-activity-8wj87zfr.js} +0 -0
- /package/dist/chunks/{tool-9a4afbnw.js → location-activity-9a4afbnw.js} +0 -0
- /package/dist/chunks/{tool-9rqn6x4v.js → location-activity-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{tool-a6k6eb26.js → location-activity-a6k6eb26.js} +0 -0
- /package/dist/chunks/{tool-af5trqkr.js → location-activity-af5trqkr.js} +0 -0
- /package/dist/chunks/{tool-afrmfg78.js → location-activity-afrmfg78.js} +0 -0
- /package/dist/chunks/{tool-aqzs7mqg.js → location-activity-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{tool-atq7p7m5.js → location-activity-atq7p7m5.js} +0 -0
- /package/dist/chunks/{tool-bkyjaxrp.js → location-activity-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{tool-bmr6ed5q.js → location-activity-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{tool-cf4snx6d.js → location-activity-cf4snx6d.js} +0 -0
- /package/dist/chunks/{tool-cvy3z8tj.js → location-activity-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{tool-d9fn303g.js → location-activity-d9fn303g.js} +0 -0
- /package/dist/chunks/{tool-d9jj8t3e.js → location-activity-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{tool-dajrwvna.js → location-activity-dajrwvna.js} +0 -0
- /package/dist/chunks/{tool-dap0rakb.js → location-activity-dap0rakb.js} +0 -0
- /package/dist/chunks/{tool-df08tz66.js → location-activity-df08tz66.js} +0 -0
- /package/dist/chunks/{tool-dy18nga0.js → location-activity-dy18nga0.js} +0 -0
- /package/dist/chunks/{tool-e5kj55wp.js → location-activity-e5kj55wp.js} +0 -0
- /package/dist/chunks/{tool-e73j6tqm.js → location-activity-e73j6tqm.js} +0 -0
- /package/dist/chunks/{tool-ec1grn59.js → location-activity-ec1grn59.js} +0 -0
- /package/dist/chunks/{tool-eh3zwz77.js → location-activity-eh3zwz77.js} +0 -0
- /package/dist/chunks/{tool-emrn6kk6.js → location-activity-emrn6kk6.js} +0 -0
- /package/dist/chunks/{tool-f0mxakyp.js → location-activity-f0mxakyp.js} +0 -0
- /package/dist/chunks/{tool-f6n9ztr4.js → location-activity-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{tool-faypxj3z.js → location-activity-faypxj3z.js} +0 -0
- /package/dist/chunks/{tool-fd410y7t.js → location-activity-fd410y7t.js} +0 -0
- /package/dist/chunks/{tool-g4wezp1m.js → location-activity-g4wezp1m.js} +0 -0
- /package/dist/chunks/{tool-g86h250q.js → location-activity-g86h250q.js} +0 -0
- /package/dist/chunks/{tool-gebd4c9n.js → location-activity-gebd4c9n.js} +0 -0
- /package/dist/chunks/{tool-gftt206x.js → location-activity-gftt206x.js} +0 -0
- /package/dist/chunks/{tool-hcxmzztb.js → location-activity-hcxmzztb.js} +0 -0
- /package/dist/chunks/{tool-hk9envan.js → location-activity-hk9envan.js} +0 -0
- /package/dist/chunks/{tool-j2ntwpah.js → location-activity-j2ntwpah.js} +0 -0
- /package/dist/chunks/{tool-j5zkgpj8.js → location-activity-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{tool-jjkms2e6.js → location-activity-jjkms2e6.js} +0 -0
- /package/dist/chunks/{tool-jr7sbwjy.js → location-activity-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{tool-jwfs4k6c.js → location-activity-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{tool-jze0r7bz.js → location-activity-jze0r7bz.js} +0 -0
- /package/dist/chunks/{tool-jzg6c2d5.js → location-activity-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{tool-m18g726c.js → location-activity-m18g726c.js} +0 -0
- /package/dist/chunks/{tool-mp448xyj.js → location-activity-mp448xyj.js} +0 -0
- /package/dist/chunks/{tool-msx8hqn2.js → location-activity-msx8hqn2.js} +0 -0
- /package/dist/chunks/{tool-n05xt0ee.js → location-activity-n05xt0ee.js} +0 -0
- /package/dist/chunks/{tool-n3j8tn72.js → location-activity-n3j8tn72.js} +0 -0
- /package/dist/chunks/{tool-njntx4h6.js → location-activity-njntx4h6.js} +0 -0
- /package/dist/chunks/{tool-pkyv6v7h.js → location-activity-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{tool-q3sfg36h.js → location-activity-q3sfg36h.js} +0 -0
- /package/dist/chunks/{tool-q74kybfr.js → location-activity-q74kybfr.js} +0 -0
- /package/dist/chunks/{tool-qaymkmh1.js → location-activity-qaymkmh1.js} +0 -0
- /package/dist/chunks/{tool-qb87gjwd.js → location-activity-qb87gjwd.js} +0 -0
- /package/dist/chunks/{tool-qfa1cgps.js → location-activity-qfa1cgps.js} +0 -0
- /package/dist/chunks/{tool-qg3g05ea.js → location-activity-qg3g05ea.js} +0 -0
- /package/dist/chunks/{tool-qrg20bc0.js → location-activity-qrg20bc0.js} +0 -0
- /package/dist/chunks/{tool-rcb2kzg1.js → location-activity-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{tool-sdp7kfr6.js → location-activity-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{tool-ssg3fenm.js → location-activity-ssg3fenm.js} +0 -0
- /package/dist/chunks/{tool-ve7vex1e.js → location-activity-ve7vex1e.js} +0 -0
- /package/dist/chunks/{tool-w803qqfp.js → location-activity-w803qqfp.js} +0 -0
- /package/dist/chunks/{tool-wc3fc9cn.js → location-activity-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{tool-wer8tq1h.js → location-activity-wer8tq1h.js} +0 -0
- /package/dist/chunks/{tool-wjj7prxr.js → location-activity-wjj7prxr.js} +0 -0
- /package/dist/chunks/{tool-wtztk69x.js → location-activity-wtztk69x.js} +0 -0
- /package/dist/chunks/{tool-x0ckcb58.js → location-activity-x0ckcb58.js} +0 -0
- /package/dist/chunks/{tool-x61499pn.js → location-activity-x61499pn.js} +0 -0
- /package/dist/chunks/{tool-y44na4kk.js → location-activity-y44na4kk.js} +0 -0
- /package/dist/chunks/{tool-y8f7s663.js → location-activity-y8f7s663.js} +0 -0
- /package/dist/chunks/{tool-ygaqb7jw.js → location-activity-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{tool-ym463w8f.js → location-activity-ym463w8f.js} +0 -0
- /package/dist/chunks/{tool-z5v4ffb3.js → location-activity-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{tool-z9919s4g.js → location-activity-z9919s4g.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service83,
|
|
6
|
+
node87
|
|
7
|
+
} from "./location-activity-stx7hq6g.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service82,
|
|
10
|
+
node86
|
|
11
|
+
} from "./location-activity-8gy1q646.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service81,
|
|
14
|
+
node85
|
|
15
|
+
} from "./location-activity-xw6avn3p.js";
|
|
16
16
|
import {
|
|
17
17
|
ID18,
|
|
18
18
|
Current3,
|
|
@@ -20,17 +20,17 @@ import {
|
|
|
20
20
|
UpdateInput5,
|
|
21
21
|
Event21,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-activity-v210v162.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-activity-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-activity-xw9fg8fb.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
@@ -40,10 +40,10 @@ __export(exports_project, {
|
|
|
40
40
|
Info: () => Info28,
|
|
41
41
|
NotFoundError: () => NotFoundError12,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service80,
|
|
44
44
|
UpdateInput: () => UpdateInput4,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node84,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service80 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,12 +98,12 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service81;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
|
-
const bus = yield*
|
|
106
|
-
const db = (yield*
|
|
105
|
+
const bus = yield* Service82;
|
|
106
|
+
const db = (yield* Service83).db;
|
|
107
107
|
const announcing = new Set;
|
|
108
108
|
const persist = Effect.fnUntraced(function* (project) {
|
|
109
109
|
const previous = yield* db.select({ canonical: ProjectTable2.worktree }).from(ProjectTable2).where(eq(ProjectTable2.id, project.id)).get().pipe(Effect.orDie);
|
|
@@ -304,20 +304,20 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
304
304
|
yield* bus.publish(Event21.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service80.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node84 = makeGlobalNode({
|
|
310
|
+
service: Service80,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [
|
|
312
|
+
deps: [node86, node87, FSUtil.node, node85, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service80;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node84]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export { ID17, Vcs2, Current2, Info28, UpdateInput4, NotFoundError12, root2,
|
|
323
|
+
export { ID17, Vcs2, Current2, Info28, UpdateInput4, NotFoundError12, root2, Service80, node84, sweepNode2, exports_project };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/config/plugin/skill-scan.ts
|
|
6
6
|
var exports_skill_scan = {};
|
|
7
7
|
__export(exports_skill_scan, {
|
|
8
8
|
SkillScan: () => exports_skill_scan,
|
|
9
9
|
ignore: () => ignore2,
|
|
10
|
-
scan: () =>
|
|
10
|
+
scan: () => scan2
|
|
11
11
|
});
|
|
12
12
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
13
13
|
import path from "path";
|
|
14
14
|
import { Effect } from "effect";
|
|
15
15
|
var MAX_DEPTH = 6;
|
|
16
16
|
var ignore2 = [...FSUtil.ignoreGlobs, "**/.*", "**/.*/**"];
|
|
17
|
-
var
|
|
17
|
+
var scan2 = Effect.fn("SkillScan.scan")(function* (root) {
|
|
18
18
|
const fs = yield* FSUtil.Service;
|
|
19
19
|
const files = [];
|
|
20
20
|
const queue = [{ directory: root, depth: 0 }];
|
|
@@ -39,4 +39,4 @@ var scan3 = Effect.fn("SkillScan.scan")(function* (root) {
|
|
|
39
39
|
return files.toSorted();
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
export { ignore2,
|
|
42
|
+
export { ignore2, scan2, exports_skill_scan };
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service79
|
|
3
|
+
} from "./location-activity-9t9dtkqe.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service53
|
|
6
|
+
} from "./location-activity-zcjqesvk.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
Service23,
|
|
9
9
|
readText2,
|
|
10
10
|
syncTextBom2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-activity-a05vnbee.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service22
|
|
14
|
+
} from "./location-activity-nz7m2gc2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service73
|
|
17
|
+
} from "./location-activity-xns282hb.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service24,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-activity-ebc4hc03.js";
|
|
22
22
|
import {
|
|
23
23
|
fileDiff2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-activity-6prwharc.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/tool/plugin/edit.ts
|
|
30
30
|
var exports_edit = {};
|
|
31
31
|
__export(exports_edit, {
|
|
32
32
|
EditTool: () => exports_edit,
|
|
33
|
-
Input: () =>
|
|
34
|
-
Output: () =>
|
|
35
|
-
Plugin: () =>
|
|
36
|
-
name: () =>
|
|
33
|
+
Input: () => Input12,
|
|
34
|
+
Output: () => Output9,
|
|
35
|
+
Plugin: () => Plugin48,
|
|
36
|
+
name: () => name12
|
|
37
37
|
});
|
|
38
38
|
import { ToolFailure } from "@opencode/ai";
|
|
39
39
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
40
40
|
import { Bom } from "@opencode/util/bom";
|
|
41
41
|
import { Effect, Schema } from "effect";
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var name12 = "edit";
|
|
43
|
+
var Input12 = Schema.Struct({
|
|
44
44
|
path: Schema.String.annotate({
|
|
45
45
|
description: "File to edit"
|
|
46
46
|
}),
|
|
@@ -50,7 +50,7 @@ var Input11 = Schema.Struct({
|
|
|
50
50
|
description: "Whether to replace every occurrence of oldString. When false, oldString must match exactly once. Defaults to false."
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
|
-
var
|
|
53
|
+
var Output9 = Schema.Struct({
|
|
54
54
|
files: Schema.Array(FileDiff.Info),
|
|
55
55
|
replacements: Schema.Number
|
|
56
56
|
});
|
|
@@ -190,21 +190,21 @@ var countBefore = (positions, offset) => {
|
|
|
190
190
|
}
|
|
191
191
|
return low;
|
|
192
192
|
};
|
|
193
|
-
var
|
|
193
|
+
var Plugin48 = {
|
|
194
194
|
id: "opencode.tool.edit",
|
|
195
195
|
effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
|
|
196
|
-
const access = yield*
|
|
197
|
-
const fileMutation = yield*
|
|
198
|
-
const environment = yield*
|
|
199
|
-
const formatter = yield*
|
|
200
|
-
const location = yield*
|
|
201
|
-
const permission = yield*
|
|
196
|
+
const access = yield* Service24;
|
|
197
|
+
const fileMutation = yield* Service23;
|
|
198
|
+
const environment = yield* Service53;
|
|
199
|
+
const formatter = yield* Service22;
|
|
200
|
+
const location = yield* Service79;
|
|
201
|
+
const permission = yield* Service73;
|
|
202
202
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
203
|
-
name:
|
|
203
|
+
name: name12,
|
|
204
204
|
options: { codemode: false, permission: "edit" },
|
|
205
205
|
description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. Write line breaks as \\n; the file's existing CRLF or LF line endings are matched and preserved. To change line endings themselves, make oldString and newString differ only in \\r; that edit applies to the exact bytes. If there is no exact match, the edit retries while ignoring typographic quote, dash, and space variants, then trailing whitespace on each line. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
|
|
206
|
-
input:
|
|
207
|
-
output:
|
|
206
|
+
input: Input12,
|
|
207
|
+
output: Output9,
|
|
208
208
|
execute: (input, context) => {
|
|
209
209
|
return Effect.gen(function* () {
|
|
210
210
|
const permissionSource = {
|
|
@@ -276,4 +276,4 @@ var Plugin30 = {
|
|
|
276
276
|
})
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
export {
|
|
279
|
+
export { name12, Input12, Output9, Plugin48, exports_edit };
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-f9s3qxhk.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./location-activity-8gy1q646.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./location-activity-rbg9fbf6.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-activity-azwe5p1w.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID9,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-activity-0tbd1f4q.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service13
|
|
21
|
+
} from "./location-activity-am1tmpj5.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID8,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-activity-gqg0rsq2.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-activity-pp22040a.js";
|
|
30
30
|
import {
|
|
31
31
|
supports2,
|
|
32
32
|
resolve2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-activity-jj6wnavt.js";
|
|
34
34
|
import {
|
|
35
35
|
InvalidRequestError2,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
36
|
+
UnavailableError4,
|
|
37
|
+
Service19
|
|
38
|
+
} from "./location-activity-yfzpe4zr.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
ID4,
|
|
41
|
+
Input14,
|
|
42
42
|
Response2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./location-activity-asfdzfp1.js";
|
|
44
44
|
|
|
45
45
|
// src/plugin/provider/opencode.ts
|
|
46
46
|
import {
|
|
@@ -78,7 +78,7 @@ var RemotePolicies = Schema.Array(Schema.Unknown).pipe(Schema.decodeTo(Schema.Un
|
|
|
78
78
|
var RemoteResponse = Schema.Struct({
|
|
79
79
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
80
80
|
websearch: Schema.Struct({
|
|
81
|
-
providerID:
|
|
81
|
+
providerID: ID4
|
|
82
82
|
}).pipe(Schema.optional),
|
|
83
83
|
mcp: Schema.Struct({
|
|
84
84
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -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: ID9.make("opencode"),
|
|
140
140
|
method: {
|
|
141
141
|
id: methodID,
|
|
142
142
|
type: "oauth",
|
|
@@ -201,11 +201,11 @@ var OpencodePlugin2 = define({
|
|
|
201
201
|
id: "opencode.provider.opencode",
|
|
202
202
|
effect: Effect.fn(function* (ctx) {
|
|
203
203
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
204
|
-
const bus = yield*
|
|
204
|
+
const bus = yield* Service82;
|
|
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* Service13;
|
|
208
|
+
const voice = yield* Service19;
|
|
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 = ID9.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(ID8.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(ID8.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");
|
|
@@ -420,7 +420,7 @@ var OpencodePlugin2 = define({
|
|
|
420
420
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
421
421
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
422
422
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
423
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
423
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
424
424
|
query: input.query,
|
|
425
425
|
providerID: descriptor.providerID
|
|
426
426
|
}));
|
|
@@ -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([ID8.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(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
496
496
|
yield* poll();
|
|
497
497
|
})
|
|
498
498
|
});
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-f9s3qxhk.js";
|
|
4
4
|
import {
|
|
5
5
|
collectBoundedResponseBody2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-activity-3v8g72cx.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_RESPONSE_BYTES2,
|
|
9
9
|
call2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-activity-bjx1sjef.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-activity-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/websearch/tinyfish.ts
|
|
16
16
|
var exports_tinyfish = {};
|
|
17
17
|
__export(exports_tinyfish, {
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin3,
|
|
19
19
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
20
|
-
endpoint: () =>
|
|
20
|
+
endpoint: () => endpoint2
|
|
21
21
|
});
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
23
23
|
import { Duration, Effect, Option, Schema } from "effect";
|
|
24
24
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
25
|
-
var
|
|
25
|
+
var endpoint2 = "https://agent.tinyfish.ai/mcp";
|
|
26
26
|
var McpInput = Schema.Struct({
|
|
27
27
|
query: Schema.String
|
|
28
28
|
});
|
|
@@ -51,7 +51,7 @@ var InitializedNotification = Schema.Struct({
|
|
|
51
51
|
jsonrpc: Schema.Literal("2.0"),
|
|
52
52
|
method: Schema.Literal("notifications/initialized")
|
|
53
53
|
});
|
|
54
|
-
var
|
|
54
|
+
var Plugin3 = define({
|
|
55
55
|
id: "opencode.websearch.tinyfish",
|
|
56
56
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
57
57
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -78,7 +78,7 @@ var Plugin6 = define({
|
|
|
78
78
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
79
79
|
};
|
|
80
80
|
const session = credential?.type === "key" ? yield* initialize(http, headers) : undefined;
|
|
81
|
-
const result = yield* call2(http,
|
|
81
|
+
const result = yield* call2(http, endpoint2, "search", { input: McpInput, output: McpOutput }, { query: input.query }, { ...headers, ...session === undefined ? {} : { "Mcp-Session-Id": session } });
|
|
82
82
|
const content = result?.content.find((item) => item.text);
|
|
83
83
|
const response = content ? Option.getOrUndefined(decodeSearchResponse(content.text)) : undefined;
|
|
84
84
|
return response?.results.map((item) => ({
|
|
@@ -94,7 +94,7 @@ var Plugin6 = define({
|
|
|
94
94
|
});
|
|
95
95
|
var initialize = (http, headers) => Effect.gen(function* () {
|
|
96
96
|
const client = HttpClient.withScope(HttpClient.filterStatusOk(http));
|
|
97
|
-
const request = yield* HttpClientRequest.post(
|
|
97
|
+
const request = yield* HttpClientRequest.post(endpoint2).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders(headers), HttpClientRequest.schemaBodyJson(InitializeRequest)({
|
|
98
98
|
jsonrpc: "2.0",
|
|
99
99
|
id: 1,
|
|
100
100
|
method: "initialize",
|
|
@@ -109,7 +109,7 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
109
109
|
const session = response.headers["mcp-session-id"];
|
|
110
110
|
if (session === undefined)
|
|
111
111
|
return yield* Effect.fail(new Error("TinyFish MCP initialize did not return an Mcp-Session-Id header"));
|
|
112
|
-
const notification = yield* HttpClientRequest.post(
|
|
112
|
+
const notification = yield* HttpClientRequest.post(endpoint2).pipe(HttpClientRequest.accept("application/json, text/event-stream"), HttpClientRequest.setHeaders({ ...headers, "Mcp-Session-Id": session }), HttpClientRequest.schemaBodyJson(InitializedNotification)({
|
|
113
113
|
jsonrpc: "2.0",
|
|
114
114
|
method: "notifications/initialized"
|
|
115
115
|
}));
|
|
@@ -120,4 +120,4 @@ var initialize = (http, headers) => Effect.gen(function* () {
|
|
|
120
120
|
orElse: () => Effect.fail(new Error("TinyFish initialize request timed out"))
|
|
121
121
|
}));
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { endpoint2, Plugin3, exports_tinyfish };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SQLiteEffectCountBuilder2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-f0mxakyp.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDeleteBase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-activity-w3wsvvr9.js";
|
|
7
7
|
import {
|
|
8
8
|
SQLiteEffectInsertBuilder2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-activity-7bmhse3q.js";
|
|
10
10
|
import {
|
|
11
11
|
SQLiteEffectRelationalQueryBuilder2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-activity-cf4snx6d.js";
|
|
13
13
|
import {
|
|
14
14
|
SQLiteEffectRaw2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-activity-822emrt2.js";
|
|
16
16
|
import {
|
|
17
17
|
SQLiteEffectSelectBuilder2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-activity-wd87259q.js";
|
|
19
19
|
import {
|
|
20
20
|
SQLiteEffectUpdateBuilder2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-activity-m9w0rfyh.js";
|
|
22
22
|
|
|
23
23
|
// src/database/drizzle/sqlite-core/effect/db.ts
|
|
24
24
|
import { Effect } from "effect";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-activity-f9s3qxhk.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./location-activity-8gy1q646.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./location-activity-rbg9fbf6.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID9,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-activity-0tbd1f4q.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-activity-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID8,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-activity-gqg0rsq2.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
get4
|
|
26
|
+
} from "./location-activity-r94pvvab.js";
|
|
27
27
|
import {
|
|
28
28
|
configuredSettings2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-activity-v4zywrnk.js";
|
|
30
30
|
|
|
31
31
|
// src/plugin/provider/openai.ts
|
|
32
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -50,7 +50,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
50
50
|
}));
|
|
51
51
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
52
52
|
var browser = (app) => ({
|
|
53
|
-
integrationID:
|
|
53
|
+
integrationID: ID9.make("openai"),
|
|
54
54
|
method: {
|
|
55
55
|
id: browserMethodID,
|
|
56
56
|
type: "oauth",
|
|
@@ -123,7 +123,7 @@ function addressInUse(error) {
|
|
|
123
123
|
return "code" in error && error.code === "EADDRINUSE";
|
|
124
124
|
}
|
|
125
125
|
var headless = (app) => ({
|
|
126
|
-
integrationID:
|
|
126
|
+
integrationID: ID9.make("openai"),
|
|
127
127
|
method: {
|
|
128
128
|
id: headlessMethodID,
|
|
129
129
|
type: "oauth",
|
|
@@ -168,7 +168,7 @@ var headless = (app) => ({
|
|
|
168
168
|
var OpenAIPlugin3 = define({
|
|
169
169
|
id: "opencode.provider.openai",
|
|
170
170
|
effect: Effect.fn(function* (ctx) {
|
|
171
|
-
const bus = yield*
|
|
171
|
+
const bus = yield* Service82;
|
|
172
172
|
const loading = Semaphore.makeUnsafe(1);
|
|
173
173
|
let chatgpt;
|
|
174
174
|
const load = Effect.fn("OpenAIPlugin.load")(function* () {
|
|
@@ -183,9 +183,9 @@ var OpenAIPlugin3 = define({
|
|
|
183
183
|
editor.method.update(headless(ctx.app));
|
|
184
184
|
});
|
|
185
185
|
yield* load();
|
|
186
|
-
const configured = yield* configuredSettings2(
|
|
186
|
+
const configured = yield* configuredSettings2(ID8.openai);
|
|
187
187
|
yield* ctx.provider.transform((providers) => {
|
|
188
|
-
const item = providers.get(
|
|
188
|
+
const item = providers.get(ID8.openai);
|
|
189
189
|
if (!item)
|
|
190
190
|
return;
|
|
191
191
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -205,7 +205,7 @@ var OpenAIPlugin3 = define({
|
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
207
|
yield* ctx.model.transform((models) => {
|
|
208
|
-
for (const model of models.list(
|
|
208
|
+
for (const model of models.list(ID8.openai)) {
|
|
209
209
|
models.update(model.providerID, model.id, (draft) => {
|
|
210
210
|
if (!chatgpt)
|
|
211
211
|
return;
|
|
@@ -235,15 +235,15 @@ var OpenAIPlugin3 = define({
|
|
|
235
235
|
return;
|
|
236
236
|
}));
|
|
237
237
|
evt.headers.originator = "opencode";
|
|
238
|
-
evt.headers["session-id"] = session ?
|
|
239
|
-
}), { providerID:
|
|
238
|
+
evt.headers["session-id"] = session ? get4(session) : evt.sessionID;
|
|
239
|
+
}), { providerID: ID8.openai });
|
|
240
240
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
241
241
|
delete evt.options.maxTokens;
|
|
242
242
|
});
|
|
243
243
|
for (const name of ["context", "compaction"])
|
|
244
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
244
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID8.openai });
|
|
245
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
246
|
-
yield* bus.subscribe(
|
|
246
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID9.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
249
|
function headers(contentType, app) {
|