@opencode/core 0.0.0-dev-289 → 0.0.0-dev-306
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 +93 -93
- package/dist/aisdk-native.js +101 -101
- package/dist/aisdk.js +107 -107
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/{bus-69qaetne.js → location-011mqk6m.js} +10 -10
- package/dist/chunks/{bus-034tev2y.js → location-034tev2y.js} +2 -2
- package/dist/chunks/{bus-cthv9wj3.js → location-07bhy05n.js} +4 -4
- package/dist/chunks/{bus-a8xhnh8r.js → location-0d0e2qqj.js} +9 -9
- package/dist/chunks/{bus-zp9gm7r4.js → location-147wqxjy.js} +7 -7
- package/dist/chunks/{bus-1aqsckx4.js → location-1aqsckx4.js} +1 -1
- package/dist/chunks/{bus-1ep2p91f.js → location-1ep2p91f.js} +2 -2
- package/dist/chunks/{bus-1x2knyw4.js → location-1x2knyw4.js} +1 -1
- package/dist/chunks/{bus-5zrxpy3q.js → location-1yq9hg58.js} +5 -5
- package/dist/chunks/{bus-204s3925.js → location-204s3925.js} +1 -1
- package/dist/chunks/{bus-8b3vzgkx.js → location-25h84942.js} +4 -4
- package/dist/chunks/{bus-zg0jbn27.js → location-26x8chrq.js} +6 -6
- package/dist/chunks/{bus-w5tfs3xv.js → location-28365gvt.js} +27 -27
- package/dist/chunks/{bus-575z11gq.js → location-2bwv8tnq.js} +83 -83
- package/dist/chunks/{bus-49csh3aq.js → location-2f6y3wyx.js} +11 -11
- package/dist/chunks/{bus-g0c8njd6.js → location-2sjtpkz1.js} +17 -17
- package/dist/chunks/{bus-fyet71y6.js → location-2spvqkt6.js} +13 -13
- package/dist/chunks/{bus-cpq36wag.js → location-2y347c6b.js} +2 -2
- package/dist/chunks/{bus-e2hnaftq.js → location-2znspyh0.js} +13 -13
- package/dist/chunks/{bus-52a7vhz9.js → location-336ptya5.js} +9 -9
- package/dist/chunks/{bus-tjpr2y5p.js → location-34pknpnd.js} +32 -32
- package/dist/chunks/{bus-awcvvmmh.js → location-35bjdts5.js} +7 -7
- package/dist/chunks/{bus-a2cs3nkj.js → location-3dbyenxe.js} +18 -18
- package/dist/chunks/{bus-3hepkmqq.js → location-3hepkmqq.js} +1 -1
- package/dist/chunks/{bus-zjrxxzj0.js → location-3jqxp1k9.js} +17 -17
- package/dist/chunks/{bus-ra8788f1.js → location-3jwa21mm.js} +14 -14
- package/dist/chunks/{bus-5m1vxyv7.js → location-3mtcb7b3.js} +21 -21
- package/dist/chunks/{bus-br0kkpnn.js → location-3ryz99p0.js} +7 -7
- package/dist/chunks/{bus-ngqtdgwj.js → location-3sg64nxm.js} +11 -11
- package/dist/chunks/{bus-7qgpgca8.js → location-3sty8408.js} +9 -9
- package/dist/chunks/{bus-w2eysc6j.js → location-40za9wsf.js} +9 -9
- package/dist/chunks/{bus-yerc3n1d.js → location-43mtkq1f.js} +19 -19
- package/dist/chunks/{bus-hfvb93vm.js → location-44vsgcd8.js} +7 -7
- package/dist/chunks/{bus-cpzqp2fy.js → location-49bazr4g.js} +21 -21
- package/dist/chunks/{bus-3hcdh98k.js → location-4bbpqcw3.js} +20 -20
- package/dist/chunks/{bus-y13v0twb.js → location-4c0eh56a.js} +7 -7
- package/dist/chunks/{bus-2m3n8trw.js → location-4c7peeks.js} +21 -21
- package/dist/chunks/{bus-4dx1dgte.js → location-4dx1dgte.js} +1 -1
- package/dist/chunks/{bus-vbye706w.js → location-4f5ax2dv.js} +11 -11
- package/dist/chunks/{bus-kep337bh.js → location-4h609sqz.js} +29 -29
- package/dist/chunks/{bus-jns8hwea.js → location-4ntm1ty7.js} +9 -9
- package/dist/chunks/{bus-4pyp9zr9.js → location-4pyp9zr9.js} +1 -1
- package/dist/chunks/{bus-4v008n1t.js → location-4v008n1t.js} +1 -1
- package/dist/chunks/{bus-7w2fvyx3.js → location-50w453fn.js} +5 -5
- package/dist/chunks/{bus-51eb7mjh.js → location-5225t9m9.js} +19 -19
- package/dist/chunks/{bus-xqy8bnpk.js → location-536gnnhd.js} +28 -28
- package/dist/chunks/{bus-ykcfw5aj.js → location-5bnajwfk.js} +37 -37
- package/dist/chunks/{bus-qzp5va9j.js → location-5dcrg5my.js} +5 -5
- package/dist/chunks/{bus-2h0p855r.js → location-5h2db7ke.js} +21 -21
- package/dist/chunks/{bus-bffjwd0h.js → location-5j5yn56v.js} +4 -4
- package/dist/chunks/{bus-5m9w47nd.js → location-5m9w47nd.js} +1 -1
- package/dist/chunks/{bus-ezxqpfxm.js → location-5pq7k0xn.js} +22 -22
- package/dist/chunks/{bus-8qdv48w6.js → location-5wsenn9a.js} +18 -18
- package/dist/chunks/{bus-2r961k25.js → location-62s3a18k.js} +30 -30
- package/dist/chunks/{bus-tqqfg69e.js → location-662rk1k7.js} +4 -4
- package/dist/chunks/{bus-2ekpsjrd.js → location-6bd340sn.js} +8 -8
- package/dist/chunks/{bus-6esdw8yj.js → location-6esdw8yj.js} +1 -1
- package/dist/chunks/{bus-fs5n14ns.js → location-74n62q8p.js} +3 -3
- package/dist/chunks/{bus-w8qtt4th.js → location-76cb1hcw.js} +4 -4
- package/dist/chunks/{bus-76484c78.js → location-78m9g99c.js} +34 -34
- package/dist/chunks/{bus-g4fxxdad.js → location-7a4v4c26.js} +14 -14
- package/dist/chunks/{bus-q7etwwh3.js → location-7ahw8xm3.js} +347 -347
- package/dist/chunks/{bus-7bmhse3q.js → location-7bmhse3q.js} +1 -1
- package/dist/chunks/{bus-vt4e1yq1.js → location-7gh51h4m.js} +20 -20
- package/dist/chunks/{bus-drnpqen8.js → location-7j88ajzy.js} +21 -21
- package/dist/chunks/{bus-4ymxdy0q.js → location-7kqn30mb.js} +37 -37
- package/dist/chunks/{bus-7kr66rt3.js → location-7kr66rt3.js} +1 -1
- package/dist/chunks/{bus-7w2ypzdf.js → location-7w2ypzdf.js} +1 -1
- package/dist/chunks/{bus-0wbhgcbg.js → location-85hx114z.js} +24 -24
- package/dist/chunks/{bus-rbhxwcn9.js → location-85qde3ax.js} +24 -24
- package/dist/chunks/{bus-mrghrmjv.js → location-8gqhbr3y.js} +8 -8
- package/dist/chunks/{bus-vn19g02f.js → location-8jjf20rn.js} +11 -11
- package/dist/chunks/{bus-8jztxfpf.js → location-8jztxfpf.js} +1 -1
- package/dist/chunks/{bus-fny70jpy.js → location-8k8pzbp4.js} +8 -8
- package/dist/chunks/{bus-kjtxyeth.js → location-8prsd97r.js} +29 -29
- package/dist/chunks/{bus-8wtp7s3z.js → location-8wtp7s3z.js} +1 -1
- package/dist/chunks/{bus-90zstvax.js → location-90zstvax.js} +1 -1
- package/dist/chunks/{bus-etdqq0cw.js → location-97r9t6wm.js} +14 -14
- package/dist/chunks/{bus-v2j1w0x8.js → location-98n7hra1.js} +27 -27
- package/dist/chunks/{bus-hgkk61tq.js → location-99gmmhwa.js} +14 -14
- package/dist/chunks/{bus-fhgnjd8f.js → location-9ahqkxsp.js} +3 -3
- package/dist/chunks/{bus-035gwyrd.js → location-9eh5kz8z.js} +17 -17
- package/dist/chunks/{bus-ktbdp5sq.js → location-9excscth.js} +16 -16
- package/dist/chunks/{bus-vh504zcn.js → location-9hw2m1zw.js} +24 -24
- package/dist/chunks/{bus-t8jxhxf0.js → location-9p40vjn2.js} +6 -6
- package/dist/chunks/{bus-b2zx6heh.js → location-9xnamytp.js} +22 -22
- package/dist/chunks/{bus-fq6jwnpn.js → location-ads06k24.js} +16 -16
- package/dist/chunks/{bus-0ng08tej.js → location-agx6da5f.js} +46 -46
- package/dist/chunks/{bus-pt50s3rp.js → location-akkhd0hr.js} +13 -13
- package/dist/chunks/{bus-kcvnx629.js → location-aqr5273r.js} +13 -13
- package/dist/chunks/{bus-ayjs7tqn.js → location-ayjs7tqn.js} +2 -2
- package/dist/chunks/{bus-3bgf9gas.js → location-b3a32pfz.js} +4 -4
- package/dist/chunks/{bus-b6vsg801.js → location-b6vsg801.js} +2 -2
- package/dist/chunks/{bus-xekbftp9.js → location-bbnmh3xr.js} +36 -36
- package/dist/chunks/{bus-vngmfa0y.js → location-bd1zsfw8.js} +12 -12
- package/dist/chunks/{bus-m2gbvgsm.js → location-beqawg79.js} +10 -10
- package/dist/chunks/{bus-tah5h4rf.js → location-bfhbctn3.js} +27 -27
- package/dist/chunks/{bus-a3abfedh.js → location-bgd12eww.js} +177 -177
- package/dist/chunks/{bus-3ab4thcb.js → location-bhyrg0mn.js} +17 -17
- package/dist/chunks/{bus-f4d37vpd.js → location-bpjheaj0.js} +21 -21
- package/dist/chunks/{bus-vqy5ky1c.js → location-bqxm09jz.js} +49 -49
- package/dist/chunks/{bus-frqt40cp.js → location-brd5eeq0.js} +8 -8
- package/dist/chunks/{bus-bstexjd6.js → location-bstexjd6.js} +1 -1
- package/dist/chunks/{bus-5bh17wth.js → location-c3qstxzp.js} +4 -4
- package/dist/chunks/{bus-7cen1ph9.js → location-cm18kf9d.js} +18 -18
- package/dist/chunks/{bus-z4bv03nd.js → location-cmkpv6mv.js} +8 -8
- package/dist/chunks/{bus-tgq44zsz.js → location-cvsegsfy.js} +36 -36
- package/dist/chunks/{bus-cwrgdav8.js → location-cwrgdav8.js} +2 -2
- package/dist/chunks/{bus-c9t2ty9q.js → location-d2887f8n.js} +4 -4
- package/dist/chunks/{bus-d4v9tmah.js → location-d4v9tmah.js} +2 -2
- package/dist/chunks/{bus-6xqtcmxs.js → location-dbmp929s.js} +5 -5
- package/dist/chunks/{bus-m543aemt.js → location-de6znanw.js} +31 -31
- package/dist/chunks/{bus-hvj4yv7n.js → location-dgambtz7.js} +25 -25
- package/dist/chunks/{bus-29x0cc93.js → location-djd49kbm.js} +2 -2
- package/dist/chunks/{bus-d77s9pbc.js → location-dn2kncps.js} +3 -3
- package/dist/chunks/{bus-dt77769w.js → location-dt77769w.js} +1 -1
- package/dist/chunks/{bus-b3jxbtnx.js → location-dxrghr56.js} +28 -28
- package/dist/chunks/{bus-h0rg6s60.js → location-e45fk36t.js} +4 -4
- package/dist/chunks/{bus-sj7nrpyn.js → location-e71bb87j.js} +8 -8
- package/dist/chunks/{bus-e834z07m.js → location-e834z07m.js} +1 -1
- package/dist/chunks/{bus-yawcbgfa.js → location-efbqjxxv.js} +12 -12
- package/dist/chunks/{bus-yjrvtctt.js → location-efswkf52.js} +33 -33
- package/dist/chunks/{bus-7y699k02.js → location-egx4syav.js} +18 -18
- package/dist/chunks/{bus-eqmd2tfz.js → location-eqmd2tfz.js} +1 -1
- package/dist/chunks/{bus-hdmjpy1q.js → location-esh8axw0.js} +13 -13
- package/dist/chunks/{bus-qhpag1je.js → location-et87mf2s.js} +78 -78
- package/dist/chunks/location-ev660z6k.js +18 -0
- package/dist/chunks/{bus-cs03zenh.js → location-eyba04wr.js} +26 -26
- package/dist/chunks/{bus-31c2mw6w.js → location-eyc69scq.js} +29 -29
- package/dist/chunks/{bus-vk9zw07y.js → location-f5vve9yn.js} +8 -8
- package/dist/chunks/{bus-92xfmazx.js → location-f6bwzamp.js} +12 -12
- package/dist/chunks/{bus-x98gaemw.js → location-fd5e9wgq.js} +14 -14
- package/dist/chunks/{bus-7t2s76wb.js → location-fdjpgvma.js} +23 -23
- package/dist/chunks/{bus-fffv3p7h.js → location-fffv3p7h.js} +1 -1
- package/dist/chunks/{bus-rea9cvrf.js → location-fffxyf18.js} +13 -13
- package/dist/chunks/{bus-fg9p65nk.js → location-fg9p65nk.js} +2 -2
- package/dist/chunks/{bus-w544y36y.js → location-fhyh4p9b.js} +23 -23
- package/dist/chunks/{bus-v2870mkz.js → location-fr9j7gn6.js} +58 -58
- package/dist/chunks/{bus-w687dnns.js → location-fznmdakp.js} +4 -4
- package/dist/chunks/{bus-sn9h79g5.js → location-g32ax1nd.js} +11 -11
- package/dist/chunks/{bus-h3z5mgtw.js → location-g8tf0a0n.js} +24 -24
- package/dist/chunks/{bus-rn70abkx.js → location-gd3reat4.js} +25 -25
- package/dist/chunks/{bus-sqbb0ctm.js → location-ghrzdqqx.js} +5 -5
- package/dist/chunks/{bus-zdtacmaj.js → location-gk8yz1wb.js} +15 -15
- package/dist/chunks/{bus-k8awy0q8.js → location-gm0ycg18.js} +18 -18
- package/dist/chunks/{bus-12hm338z.js → location-gprb4n4c.js} +5 -5
- package/dist/chunks/{bus-f7vg2spm.js → location-gxt6edwm.js} +27 -27
- package/dist/chunks/{bus-6hwszbb1.js → location-h3chngrm.js} +13 -13
- package/dist/chunks/{bus-h1qqpagn.js → location-h949k007.js} +4 -4
- package/dist/chunks/{bus-dpv800ng.js → location-hch7yraj.js} +11 -11
- package/dist/chunks/{bus-2nhtnnqc.js → location-hdmnesa6.js} +5 -5
- package/dist/chunks/{bus-p7xmw0vp.js → location-hh67hv7z.js} +32 -32
- package/dist/chunks/{bus-hh7kjqtw.js → location-hh7kjqtw.js} +1 -1
- package/dist/chunks/{bus-e6eh7vrv.js → location-hhaywkwm.js} +11 -11
- package/dist/chunks/{bus-6asry735.js → location-hhdnbsvt.js} +22 -22
- package/dist/chunks/{bus-hpg1pkwy.js → location-hpg1pkwy.js} +1 -1
- package/dist/chunks/{bus-2zp5a6yg.js → location-hqxkkta1.js} +3 -3
- package/dist/chunks/location-hwkge4a4.js +26 -0
- package/dist/chunks/{bus-2cm6e4d9.js → location-j1pnkskb.js} +9 -9
- package/dist/chunks/{bus-7c67ap9y.js → location-j2c5g3b2.js} +25 -25
- package/dist/chunks/{bus-zjsk2z5z.js → location-j6fakqra.js} +3 -3
- package/dist/chunks/{bus-xcax8ehy.js → location-jbbta00e.js} +4 -4
- package/dist/chunks/{bus-gcjdgkn2.js → location-jcqm84fr.js} +9 -9
- package/dist/chunks/{bus-jfaecv01.js → location-jfaecv01.js} +1 -1
- package/dist/chunks/{bus-1c5h7qx9.js → location-jgw0ez2q.js} +33 -33
- package/dist/chunks/{bus-jpspt4jx.js → location-jrbmxwcc.js} +9 -9
- package/dist/chunks/{bus-jtnps1zs.js → location-jtnps1zs.js} +2 -2
- package/dist/chunks/{bus-d01pvx5j.js → location-jyg8crv2.js} +30 -30
- package/dist/chunks/{bus-6drawnv9.js → location-jzgtnw1d.js} +6 -6
- package/dist/chunks/{bus-65qft472.js → location-k2034wbj.js} +45 -45
- package/dist/chunks/{bus-3gtbytbs.js → location-k4pwdphg.js} +30 -30
- package/dist/chunks/{bus-ny5rdk5x.js → location-k6586ewx.js} +21 -21
- package/dist/chunks/{bus-k814nvkf.js → location-k814nvkf.js} +1 -1
- package/dist/chunks/{bus-2fp4k9wp.js → location-kawgm7c0.js} +7 -7
- package/dist/chunks/{bus-kcg78dnn.js → location-kcg78dnn.js} +2 -2
- package/dist/chunks/{bus-kt3bjfbg.js → location-kt3bjfbg.js} +1 -1
- package/dist/chunks/{bus-mf08p8w6.js → location-kv1pxpnb.js} +4 -4
- package/dist/chunks/{bus-2r3850vs.js → location-kytj30gb.js} +11 -11
- package/dist/chunks/{bus-m1714858.js → location-m1714858.js} +1 -1
- package/dist/chunks/{bus-dgma0v0g.js → location-m89858wj.js} +3 -3
- package/dist/chunks/{bus-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
- package/dist/chunks/{bus-mb7mbhnz.js → location-mb7mbhnz.js} +3 -3
- package/dist/chunks/{bus-mg78vh23.js → location-mfmmqpne.js} +26 -26
- package/dist/chunks/{bus-jfeae8gq.js → location-mkc9xh75.js} +11 -11
- package/dist/chunks/{bus-mq74yj6v.js → location-ms8gjsg9.js} +19 -19
- package/dist/chunks/{bus-5pqt1ves.js → location-mt21hhzj.js} +6 -6
- package/dist/chunks/{bus-48w6hcnx.js → location-mw7rhp6d.js} +50 -50
- package/dist/chunks/{bus-tk3aqx3r.js → location-my54cbqv.js} +5 -5
- package/dist/chunks/location-n30bqkse.js +257 -0
- package/dist/chunks/{bus-nah043kf.js → location-nah043kf.js} +1 -1
- package/dist/chunks/{bus-xn1nx1d0.js → location-nbm7yy57.js} +12 -12
- package/dist/chunks/{bus-yhbr98pk.js → location-nesyvdwa.js} +1 -1
- package/dist/chunks/{bus-eqsxy33h.js → location-nf3n4x4w.js} +20 -20
- package/dist/chunks/{bus-h4dxcp4f.js → location-nkbs8pm4.js} +9 -9
- package/dist/chunks/{bus-v8tswgn5.js → location-nva9eqjm.js} +5 -5
- package/dist/chunks/{bus-p015t6z3.js → location-p015t6z3.js} +2 -2
- package/dist/chunks/{bus-zv45q5yw.js → location-pa2rdw4x.js} +19 -19
- package/dist/chunks/{bus-q4tyq9ws.js → location-pk0dqn8g.js} +5 -5
- package/dist/chunks/{bus-pknna89w.js → location-pknna89w.js} +1 -1
- package/dist/chunks/{bus-zks02zyq.js → location-pqs4b36k.js} +21 -21
- package/dist/chunks/{bus-dak0tad4.js → location-q1abnwp6.js} +11 -11
- package/dist/chunks/{bus-q6jcx9v8.js → location-q2571jsw.js} +9 -9
- package/dist/chunks/{bus-03tkxxad.js → location-q2kxgsvb.js} +7 -7
- package/dist/chunks/{bus-97kyzmq9.js → location-q6jmyack.js} +12 -12
- package/dist/chunks/{bus-k0a6q0yn.js → location-qf791z7a.js} +21 -21
- package/dist/chunks/{bus-qen3sb0r.js → location-qgs1tbcx.js} +19 -19
- package/dist/chunks/{bus-r13t3b9j.js → location-qnghve6e.js} +8 -8
- package/dist/chunks/{bus-qp7r0hxv.js → location-qp7r0hxv.js} +1 -1
- package/dist/chunks/{bus-qqvy8y24.js → location-qqvy8y24.js} +1 -1
- package/dist/chunks/{bus-sf2xpkzh.js → location-qxhe8vts.js} +14 -14
- package/dist/chunks/{bus-e2tz7wpg.js → location-r0pyvz6f.js} +14 -14
- package/dist/chunks/{bus-q1fzghr8.js → location-r20zdgj9.js} +5 -5
- package/dist/chunks/{bus-3cdb6jh7.js → location-r440h8qp.js} +11 -11
- package/dist/chunks/{bus-r542h3bh.js → location-r542h3bh.js} +1 -1
- package/dist/chunks/{bus-sstzxn5v.js → location-r7dkdyp5.js} +27 -27
- package/dist/chunks/{bus-rb9dy4dg.js → location-rb9dy4dg.js} +1 -1
- package/dist/chunks/{bus-4e0wk5h0.js → location-rbndg51d.js} +6 -6
- package/dist/chunks/{bus-qcejv4vs.js → location-rerwg0b9.js} +12 -12
- package/dist/chunks/{bus-t1ncm3sw.js → location-rp03b2v5.js} +6 -6
- package/dist/chunks/{bus-rt5dr6hb.js → location-rt5dr6hb.js} +1 -1
- package/dist/chunks/{bus-xx90gxeb.js → location-rw03ft0n.js} +5 -5
- package/dist/chunks/{bus-4bwthz3m.js → location-s2pfznc4.js} +6 -6
- package/dist/chunks/{bus-s6h2s3rz.js → location-s6h2s3rz.js} +1 -1
- package/dist/chunks/{bus-w35wzz9x.js → location-s7kyse9r.js} +4 -4
- package/dist/chunks/{bus-sa3fpqfw.js → location-sa3fpqfw.js} +2 -2
- package/dist/chunks/{bus-2a3k1wv5.js → location-scgs57d2.js} +15 -15
- package/dist/chunks/{bus-k4xj7eng.js → location-sh1my6rk.js} +44 -44
- package/dist/chunks/{bus-sdvwnsbz.js → location-sh2m58zd.js} +43 -43
- package/dist/chunks/{bus-zg8ezejd.js → location-spehfrkg.js} +24 -24
- package/dist/chunks/{bus-0j7gp832.js → location-sqjzf8x2.js} +4 -4
- package/dist/chunks/{bus-svcy3p9a.js → location-svcy3p9a.js} +1 -1
- package/dist/chunks/{bus-67zhfnr5.js → location-t8erkws8.js} +5 -5
- package/dist/chunks/{bus-tczq8hjw.js → location-tczq8hjw.js} +1 -1
- package/dist/chunks/{bus-mckw022z.js → location-tfgkb3f6.js} +23 -23
- package/dist/chunks/{bus-hw621kav.js → location-tg1vr1qt.js} +8 -8
- package/dist/chunks/{bus-w169zm22.js → location-tjspe09c.js} +10 -10
- package/dist/chunks/{bus-ep9jv767.js → location-tkxe7v6f.js} +22 -22
- package/dist/chunks/{bus-3nnrz6f6.js → location-tmc7xdjs.js} +4 -4
- package/dist/chunks/{bus-jgb4byfw.js → location-trmt4qt7.js} +22 -22
- package/dist/chunks/{bus-fzc03kzf.js → location-tsz093v2.js} +8 -8
- package/dist/chunks/{bus-twssxy5n.js → location-twssxy5n.js} +2 -2
- package/dist/chunks/{bus-v2r1d0zg.js → location-v2r1d0zg.js} +1 -1
- package/dist/chunks/{bus-84dshbdw.js → location-v2yyptek.js} +8 -8
- package/dist/chunks/{bus-h9mbsjx4.js → location-v3h869xg.js} +8 -8
- package/dist/chunks/{bus-b3tzc6nv.js → location-v3swpve8.js} +15 -15
- package/dist/chunks/{bus-kwd8c3vr.js → location-v6x8hkr5.js} +11 -11
- package/dist/chunks/{bus-9gw8ma18.js → location-va0kemka.js} +3 -3
- package/dist/chunks/{bus-pvky507n.js → location-vfgkptxa.js} +14 -14
- package/dist/chunks/{bus-8sykf8qj.js → location-vha2yqec.js} +10 -10
- package/dist/chunks/{bus-pcg52kfg.js → location-vkdfbcf5.js} +16 -16
- package/dist/chunks/{bus-hpzmd9sp.js → location-vnqrb8rh.js} +22 -22
- package/dist/chunks/{bus-46g4z5g0.js → location-vpndcmkw.js} +30 -30
- package/dist/chunks/{bus-kxycnn0n.js → location-vwmyycjt.js} +11 -11
- package/dist/chunks/{bus-0rxmz96k.js → location-vze99txj.js} +20 -20
- package/dist/chunks/{bus-mv9srazj.js → location-vztbg1g9.js} +11 -11
- package/dist/chunks/{bus-akbqzhz4.js → location-w3ee0mms.js} +2 -2
- package/dist/chunks/{bus-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
- package/dist/chunks/{bus-pftwp2vv.js → location-w4dn9kj3.js} +79 -79
- package/dist/chunks/{bus-yajc3msk.js → location-w510rxtp.js} +5 -5
- package/dist/chunks/{bus-55g8rfra.js → location-w62z9fyd.js} +3 -3
- package/dist/chunks/{bus-w67s4ywc.js → location-w67s4ywc.js} +2 -2
- package/dist/chunks/{bus-wakvkjy4.js → location-wakvkjy4.js} +1 -1
- package/dist/chunks/{bus-wd87259q.js → location-wd87259q.js} +1 -1
- package/dist/chunks/{bus-wegkxhrn.js → location-wegkxhrn.js} +2 -2
- package/dist/chunks/{bus-wnhgecwx.js → location-wnhgecwx.js} +1 -1
- package/dist/chunks/{bus-jh77bd4v.js → location-wpkqvnzq.js} +12 -12
- package/dist/chunks/{bus-40hpa6ae.js → location-wrd39zd3.js} +9 -9
- package/dist/chunks/{bus-tk6xpnq1.js → location-x07fr6ah.js} +11 -11
- package/dist/chunks/{bus-jpvcj0cc.js → location-x79e7hsz.js} +6 -6
- package/dist/chunks/{bus-rg3ak8wp.js → location-x7fqccva.js} +12 -12
- package/dist/chunks/{bus-ef57czcv.js → location-x8fyy5bn.js} +4 -4
- package/dist/chunks/{bus-hgfegmhz.js → location-xbq7ap0g.js} +8 -4
- package/dist/chunks/{bus-ays56k31.js → location-xbvaqmtc.js} +40 -40
- package/dist/chunks/{bus-zr86xb8x.js → location-xhz7bc8m.js} +11 -11
- package/dist/chunks/{bus-hcysmks0.js → location-xnwqffna.js} +3 -3
- package/dist/chunks/{bus-cvdbenw8.js → location-xrbbh422.js} +2 -2
- package/dist/chunks/{bus-eez5fkq7.js → location-xwswqzhk.js} +6 -6
- package/dist/chunks/{bus-nbb711pz.js → location-y0xdaqa2.js} +11 -11
- package/dist/chunks/{bus-3p57dcxh.js → location-y4n6pw34.js} +4 -4
- package/dist/chunks/{bus-yara3q77.js → location-yara3q77.js} +2 -2
- package/dist/chunks/{bus-yb20nhc3.js → location-yb20nhc3.js} +1 -1
- package/dist/chunks/{bus-tpgbm1m3.js → location-yg79hbqn.js} +3 -3
- package/dist/chunks/{bus-nxkdkrxs.js → location-yh2v5kew.js} +45 -45
- package/dist/chunks/{bus-zs176x18.js → location-ym7mkmya.js} +16 -16
- package/dist/chunks/{bus-g1wftvqf.js → location-ysnxehz4.js} +21 -21
- package/dist/chunks/{bus-mkxsbdpa.js → location-z2vfz141.js} +12 -12
- package/dist/chunks/{bus-ebc9sjza.js → location-z896zmsn.js} +42 -42
- package/dist/chunks/{bus-fx9j3hb4.js → location-zb0eyyj7.js} +8 -8
- package/dist/chunks/{bus-s1ahy3nk.js → location-zehwd02a.js} +30 -30
- package/dist/chunks/{bus-e8jekyry.js → location-zgd8t41s.js} +9 -9
- package/dist/chunks/{bus-jf9mttxe.js → location-zgkfm9vd.js} +15 -15
- package/dist/chunks/{bus-fnzf6hh4.js → location-zhh0qxkb.js} +34 -34
- package/dist/chunks/{bus-de541ebn.js → location-zqbg2s7f.js} +40 -40
- package/dist/chunks/{bus-mvnn004m.js → location-zqpvfprb.js} +20 -18
- package/dist/chunks/{bus-vyba483h.js → location-zxc9shn1.js} +4 -4
- package/dist/chunks/{bus-jh0n380r.js → location-zzc7mygy.js} +50 -50
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +149 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +95 -95
- package/dist/config/discovery.js +96 -96
- 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 +131 -131
- package/dist/config/plugin/command.js +228 -228
- 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 +131 -131
- package/dist/config/plugin/mcp.js +138 -138
- 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 +129 -129
- 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 +132 -132
- package/dist/config/plugin/tool-output.js +130 -130
- package/dist/config/plugin/websearch.js +128 -128
- 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 +134 -134
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +95 -95
- 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 +97 -97
- 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 +1 -1
- 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 +107 -107
- 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 +80 -80
- 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 +87 -87
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +241 -241
- package/dist/filesystem/protected.js +3 -3
- 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 +116 -116
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +99 -99
- package/dist/generate.js +115 -115
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +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 +1 -1
- 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 +170 -170
- 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 +93 -93
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -103
- package/dist/mcp/index.js +119 -119
- package/dist/mcp/instructions.js +175 -171
- 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 +112 -112
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +120 -120
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +92 -92
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +152 -152
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +96 -96
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -85
- package/dist/plugin/agent.js +86 -86
- package/dist/plugin/command.js +114 -114
- 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 +128 -128
- package/dist/plugin/optimize.js +2 -2
- 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 +129 -129
- 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 +129 -129
- 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 +138 -138
- 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 +86 -86
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +148 -148
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +369 -369
- 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 +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +241 -241
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +111 -111
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +104 -104
- package/dist/reference/instructions.js +100 -100
- package/dist/reference.js +100 -100
- package/dist/repository-cache.js +92 -92
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +107 -107
- package/dist/rpc.js +98 -98
- package/dist/schedule/check.js +237 -237
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +239 -239
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- 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 -195
- package/dist/session/diff.js +100 -100
- 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 +240 -240
- package/dist/session/execution.js +161 -161
- package/dist/session/generate.js +196 -195
- 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 +87 -87
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +140 -140
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +166 -162
- 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 +5 -5
- package/dist/session/runner/step.js +161 -161
- 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 +148 -148
- 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 +1 -1
- package/dist/session/title.js +196 -195
- package/dist/session/to-session-error.js +147 -147
- package/dist/session/transfer.js +231 -231
- package/dist/session/usage.js +1 -1
- package/dist/session.js +230 -230
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +145 -145
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +150 -150
- package/dist/skill.js +153 -153
- package/dist/snapshot.js +105 -105
- 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 -172
- package/dist/tool/plugin/edit.js +163 -163
- 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 +165 -165
- 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 +230 -230
- 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 +156 -156
- package/dist/tool/plugin/websearch.js +152 -152
- package/dist/tool/plugin/write.js +165 -165
- package/dist/tool/read-filesystem.js +112 -112
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +159 -16
- package/dist/types/instance.d.ts +1 -1
- 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 +7 -7
- package/dist/v1/config/command.js +5 -5
- 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 +3 -3
- 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 +99 -99
- package/dist/voice.js +96 -96
- package/dist/websearch.js +90 -90
- package/dist/wellknown/plugin.js +86 -86
- package/dist/wellknown.js +91 -91
- package/dist/workspace/driver.js +5 -5
- 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 +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +101 -101
- package/dist/worktree.js +104 -104
- package/package.json +8 -8
- package/dist/chunks/bus-7yv5xa0k.js +0 -18
- package/dist/chunks/bus-xxpp7b8h.js +0 -26
- package/dist/chunks/bus-ywk8mg2g.js +0 -257
- /package/dist/chunks/{bus-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{bus-0zkw76rk.js → location-0zkw76rk.js} +0 -0
- /package/dist/chunks/{bus-17cy0kzp.js → location-17cy0kzp.js} +0 -0
- /package/dist/chunks/{bus-1cnp2v09.js → location-1cnp2v09.js} +0 -0
- /package/dist/chunks/{bus-1kah00gy.js → location-1kah00gy.js} +0 -0
- /package/dist/chunks/{bus-24dcb14g.js → location-24dcb14g.js} +0 -0
- /package/dist/chunks/{bus-2710q6r3.js → location-2710q6r3.js} +0 -0
- /package/dist/chunks/{bus-2bv980vf.js → location-2bv980vf.js} +0 -0
- /package/dist/chunks/{bus-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{bus-359p4xyc.js → location-359p4xyc.js} +0 -0
- /package/dist/chunks/{bus-3asan66x.js → location-3asan66x.js} +0 -0
- /package/dist/chunks/{bus-3v8g72cx.js → location-3v8g72cx.js} +0 -0
- /package/dist/chunks/{bus-3wcehsnq.js → location-3wcehsnq.js} +0 -0
- /package/dist/chunks/{bus-43n2bw4t.js → location-43n2bw4t.js} +0 -0
- /package/dist/chunks/{bus-4knz6hnm.js → location-4knz6hnm.js} +0 -0
- /package/dist/chunks/{bus-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{bus-4y7fprxs.js → location-4y7fprxs.js} +0 -0
- /package/dist/chunks/{bus-53557ph1.js → location-53557ph1.js} +0 -0
- /package/dist/chunks/{bus-550bvhaj.js → location-550bvhaj.js} +0 -0
- /package/dist/chunks/{bus-5w3e23ze.js → location-5w3e23ze.js} +0 -0
- /package/dist/chunks/{bus-6prwharc.js → location-6prwharc.js} +0 -0
- /package/dist/chunks/{bus-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{bus-7akdwqpd.js → location-7akdwqpd.js} +0 -0
- /package/dist/chunks/{bus-7m9af43g.js → location-7m9af43g.js} +0 -0
- /package/dist/chunks/{bus-7stb81gk.js → location-7stb81gk.js} +0 -0
- /package/dist/chunks/{bus-822emrt2.js → location-822emrt2.js} +0 -0
- /package/dist/chunks/{bus-84wd9syh.js → location-84wd9syh.js} +0 -0
- /package/dist/chunks/{bus-88xbtdfr.js → location-88xbtdfr.js} +0 -0
- /package/dist/chunks/{bus-8n3pysct.js → location-8n3pysct.js} +0 -0
- /package/dist/chunks/{bus-8wj87zfr.js → location-8wj87zfr.js} +0 -0
- /package/dist/chunks/{bus-9a4afbnw.js → location-9a4afbnw.js} +0 -0
- /package/dist/chunks/{bus-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{bus-a058387c.js → location-a058387c.js} +0 -0
- /package/dist/chunks/{bus-a6k6eb26.js → location-a6k6eb26.js} +0 -0
- /package/dist/chunks/{bus-af5trqkr.js → location-af5trqkr.js} +0 -0
- /package/dist/chunks/{bus-afrmfg78.js → location-afrmfg78.js} +0 -0
- /package/dist/chunks/{bus-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{bus-atq7p7m5.js → location-atq7p7m5.js} +0 -0
- /package/dist/chunks/{bus-beh6qq61.js → location-beh6qq61.js} +0 -0
- /package/dist/chunks/{bus-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{bus-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{bus-cf4snx6d.js → location-cf4snx6d.js} +0 -0
- /package/dist/chunks/{bus-cqv5kn06.js → location-cqv5kn06.js} +0 -0
- /package/dist/chunks/{bus-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{bus-d9fn303g.js → location-d9fn303g.js} +0 -0
- /package/dist/chunks/{bus-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{bus-dap0rakb.js → location-dap0rakb.js} +0 -0
- /package/dist/chunks/{bus-df08tz66.js → location-df08tz66.js} +0 -0
- /package/dist/chunks/{bus-dy18nga0.js → location-dy18nga0.js} +0 -0
- /package/dist/chunks/{bus-e5kj55wp.js → location-e5kj55wp.js} +0 -0
- /package/dist/chunks/{bus-e73j6tqm.js → location-e73j6tqm.js} +0 -0
- /package/dist/chunks/{bus-ean2d8b5.js → location-ean2d8b5.js} +0 -0
- /package/dist/chunks/{bus-ec1grn59.js → location-ec1grn59.js} +0 -0
- /package/dist/chunks/{bus-eh3zwz77.js → location-eh3zwz77.js} +0 -0
- /package/dist/chunks/{bus-emrn6kk6.js → location-emrn6kk6.js} +0 -0
- /package/dist/chunks/{bus-f0mxakyp.js → location-f0mxakyp.js} +0 -0
- /package/dist/chunks/{bus-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{bus-faypxj3z.js → location-faypxj3z.js} +0 -0
- /package/dist/chunks/{bus-fd410y7t.js → location-fd410y7t.js} +0 -0
- /package/dist/chunks/{bus-fkpq3x5p.js → location-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{bus-g4wezp1m.js → location-g4wezp1m.js} +0 -0
- /package/dist/chunks/{bus-g86h250q.js → location-g86h250q.js} +0 -0
- /package/dist/chunks/{bus-gebd4c9n.js → location-gebd4c9n.js} +0 -0
- /package/dist/chunks/{bus-gftt206x.js → location-gftt206x.js} +0 -0
- /package/dist/chunks/{bus-hcxmzztb.js → location-hcxmzztb.js} +0 -0
- /package/dist/chunks/{bus-hk9envan.js → location-hk9envan.js} +0 -0
- /package/dist/chunks/{bus-j2ntwpah.js → location-j2ntwpah.js} +0 -0
- /package/dist/chunks/{bus-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{bus-jjkms2e6.js → location-jjkms2e6.js} +0 -0
- /package/dist/chunks/{bus-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{bus-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{bus-jwr30sdr.js → location-jwr30sdr.js} +0 -0
- /package/dist/chunks/{bus-jze0r7bz.js → location-jze0r7bz.js} +0 -0
- /package/dist/chunks/{bus-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{bus-m18g726c.js → location-m18g726c.js} +0 -0
- /package/dist/chunks/{bus-mp448xyj.js → location-mp448xyj.js} +0 -0
- /package/dist/chunks/{bus-msx8hqn2.js → location-msx8hqn2.js} +0 -0
- /package/dist/chunks/{bus-n05xt0ee.js → location-n05xt0ee.js} +0 -0
- /package/dist/chunks/{bus-n3j8tn72.js → location-n3j8tn72.js} +0 -0
- /package/dist/chunks/{bus-ncqqe42p.js → location-ncqqe42p.js} +0 -0
- /package/dist/chunks/{bus-nh4v3znn.js → location-nh4v3znn.js} +0 -0
- /package/dist/chunks/{bus-njntx4h6.js → location-njntx4h6.js} +0 -0
- /package/dist/chunks/{bus-p71gwv9c.js → location-p71gwv9c.js} +0 -0
- /package/dist/chunks/{bus-q3sfg36h.js → location-q3sfg36h.js} +0 -0
- /package/dist/chunks/{bus-q74kybfr.js → location-q74kybfr.js} +0 -0
- /package/dist/chunks/{bus-qaymkmh1.js → location-qaymkmh1.js} +0 -0
- /package/dist/chunks/{bus-qb87gjwd.js → location-qb87gjwd.js} +0 -0
- /package/dist/chunks/{bus-qfa1cgps.js → location-qfa1cgps.js} +0 -0
- /package/dist/chunks/{bus-qg3g05ea.js → location-qg3g05ea.js} +0 -0
- /package/dist/chunks/{bus-qrg20bc0.js → location-qrg20bc0.js} +0 -0
- /package/dist/chunks/{bus-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{bus-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{bus-ssg3fenm.js → location-ssg3fenm.js} +0 -0
- /package/dist/chunks/{bus-stkk57rt.js → location-stkk57rt.js} +0 -0
- /package/dist/chunks/{bus-t03h4f5z.js → location-t03h4f5z.js} +0 -0
- /package/dist/chunks/{bus-ty7weeps.js → location-ty7weeps.js} +0 -0
- /package/dist/chunks/{bus-ve7vex1e.js → location-ve7vex1e.js} +0 -0
- /package/dist/chunks/{bus-w803qqfp.js → location-w803qqfp.js} +0 -0
- /package/dist/chunks/{bus-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{bus-wer8tq1h.js → location-wer8tq1h.js} +0 -0
- /package/dist/chunks/{bus-wtztk69x.js → location-wtztk69x.js} +0 -0
- /package/dist/chunks/{bus-x0ckcb58.js → location-x0ckcb58.js} +0 -0
- /package/dist/chunks/{bus-x61499pn.js → location-x61499pn.js} +0 -0
- /package/dist/chunks/{bus-y44na4kk.js → location-y44na4kk.js} +0 -0
- /package/dist/chunks/{bus-y8f7s663.js → location-y8f7s663.js} +0 -0
- /package/dist/chunks/{bus-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{bus-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{bus-z9919s4g.js → location-z9919s4g.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-xnwqffna.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-5j5yn56v.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-m1714858.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event19,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
27
|
-
Key: () =>
|
|
25
|
+
ID: () => ID16,
|
|
26
|
+
Info: () => Info27,
|
|
27
|
+
Key: () => Key3,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service81,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node85
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Fiber, Layer, Schema } from "effect";
|
|
@@ -37,24 +37,24 @@ import { CredentialLegacy } from "@opencode/schema/credential-legacy";
|
|
|
37
37
|
import { Integration } from "@opencode/schema/integration";
|
|
38
38
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { EffectFlock } from "@opencode/util/effect-flock";
|
|
40
|
-
var
|
|
40
|
+
var ID16 = Credential.ID;
|
|
41
41
|
var OAuth3 = Credential.OAuth;
|
|
42
|
-
var
|
|
42
|
+
var Key3 = Credential.Key;
|
|
43
43
|
var External2 = Credential.External;
|
|
44
44
|
var Value2 = Credential.Value;
|
|
45
|
-
var
|
|
45
|
+
var Event19 = Credential.Event;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class Info27 extends Schema.Class("Credential.Info")({
|
|
48
|
+
id: ID16,
|
|
49
49
|
integrationID: Integration.ID,
|
|
50
50
|
label: Schema.String,
|
|
51
51
|
value: Value2
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class Service81 extends Context.Service()("@opencode/Credential") {
|
|
56
56
|
}
|
|
57
|
-
var layer = Layer.effect(
|
|
57
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
58
58
|
const db = (yield* Service87).db;
|
|
59
59
|
const bus = yield* Service86;
|
|
60
60
|
const flock = yield* EffectFlock.Service;
|
|
@@ -64,7 +64,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
64
64
|
const stored = (row) => {
|
|
65
65
|
if (!row.integration_id)
|
|
66
66
|
return;
|
|
67
|
-
return new
|
|
67
|
+
return new Info27({
|
|
68
68
|
id: row.id,
|
|
69
69
|
integrationID: row.integration_id,
|
|
70
70
|
label: row.label,
|
|
@@ -75,7 +75,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
75
75
|
const credential = stored(row);
|
|
76
76
|
return credential ? [credential] : [];
|
|
77
77
|
});
|
|
78
|
-
return
|
|
78
|
+
return Service81.of({
|
|
79
79
|
lock: Effect.fn("Credential.lock")((id, operation) => Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
80
80
|
const current = pending.get(id);
|
|
81
81
|
if (current)
|
|
@@ -91,8 +91,8 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
91
91
|
return row ? stored(row) : undefined;
|
|
92
92
|
}),
|
|
93
93
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
94
|
-
const credential = new
|
|
95
|
-
id: input.id ??
|
|
94
|
+
const credential = new Info27({
|
|
95
|
+
id: input.id ?? ID16.create(),
|
|
96
96
|
integrationID: input.integrationID,
|
|
97
97
|
label: input.label ?? "default",
|
|
98
98
|
value: input.value
|
|
@@ -123,9 +123,9 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
123
123
|
type: credential.value.type,
|
|
124
124
|
active: activated
|
|
125
125
|
});
|
|
126
|
-
yield* bus.publish(
|
|
126
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
127
127
|
if (activated)
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event19.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
129
129
|
return credential;
|
|
130
130
|
}),
|
|
131
131
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -145,7 +145,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
145
145
|
})), Effect.orDie);
|
|
146
146
|
if (integrationID) {
|
|
147
147
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
148
|
-
yield* bus.publish(
|
|
148
|
+
yield* bus.publish(Event19.Switched, { integrationID, credentialID: id }, { global: true });
|
|
149
149
|
}
|
|
150
150
|
}),
|
|
151
151
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -177,7 +177,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
177
177
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
178
178
|
});
|
|
179
179
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
180
|
-
yield* bus.publish(
|
|
180
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
181
181
|
}),
|
|
182
182
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
183
183
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -210,12 +210,12 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
210
210
|
active: removed.switched,
|
|
211
211
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
212
212
|
});
|
|
213
|
-
yield* bus.publish(
|
|
213
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
214
214
|
if (removed.switched)
|
|
215
|
-
yield* bus.publish(
|
|
215
|
+
yield* bus.publish(Event19.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
218
|
}));
|
|
219
|
-
var
|
|
219
|
+
var node85 = makeGlobalNode({ service: Service81, layer, deps: [node91, node90, EffectFlock.node] });
|
|
220
220
|
|
|
221
|
-
export {
|
|
221
|
+
export { ID16, OAuth3, Key3, External2, Value2, Event19, Info27, Service81, node85, exports_credential };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOption2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-e834z07m.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID7,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-ysnxehz4.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/skill-file.ts
|
|
16
16
|
var exports_skill_file = {};
|
|
@@ -62,7 +62,7 @@ function parse2(directory, filepath, content) {
|
|
|
62
62
|
return {
|
|
63
63
|
_tag: "Parsed",
|
|
64
64
|
skill: {
|
|
65
|
-
id:
|
|
65
|
+
id: ID7.make(id),
|
|
66
66
|
name: Name2.make(frontmatter.name ?? id),
|
|
67
67
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
68
68
|
...autoinvoke === undefined ? {} : { autoinvoke },
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-y0xdaqa2.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-5j5yn56v.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
8
|
+
ID16,
|
|
9
|
+
Event19,
|
|
10
|
+
Service81
|
|
11
|
+
} from "./location-jyg8crv2.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-s6h2s3rz.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID14,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-62s3a18k.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
ID13,
|
|
24
|
+
Service78
|
|
25
|
+
} from "./location-bfhbctn3.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
ID12
|
|
28
|
+
} from "./location-8prsd97r.js";
|
|
29
29
|
import {
|
|
30
30
|
configuredSettings2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./location-x79e7hsz.js";
|
|
32
32
|
|
|
33
33
|
// src/plugin/provider/azure.ts
|
|
34
34
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -63,18 +63,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
|
|
|
63
63
|
}));
|
|
64
64
|
var ResourceQuery = Schema.Struct({ query: Schema.String });
|
|
65
65
|
var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
|
|
66
|
-
function
|
|
66
|
+
function make6(endpoints = {
|
|
67
67
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
68
68
|
management: "https://management.azure.com"
|
|
69
69
|
}) {
|
|
70
70
|
return define({
|
|
71
71
|
id: "opencode.provider.azure",
|
|
72
72
|
effect: Effect.fn(function* (ctx) {
|
|
73
|
-
const configured = yield* configuredSettings2(
|
|
73
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
74
74
|
const processes = yield* AppProcess.Service;
|
|
75
75
|
const bus = yield* Service86;
|
|
76
|
-
const credentials = yield*
|
|
77
|
-
const providers = yield*
|
|
76
|
+
const credentials = yield* Service81;
|
|
77
|
+
const providers = yield* Service78;
|
|
78
78
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
79
79
|
const tokens = new Map;
|
|
80
80
|
const resourceIDs = new Map;
|
|
@@ -100,11 +100,11 @@ function make5(endpoints = {
|
|
|
100
100
|
const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
|
|
101
101
|
yield* ctx.integration.transform((editor) => {
|
|
102
102
|
editor.method.update({
|
|
103
|
-
integrationID:
|
|
103
|
+
integrationID: ID13.azure,
|
|
104
104
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
105
105
|
});
|
|
106
106
|
editor.method.update({
|
|
107
|
-
integrationID:
|
|
107
|
+
integrationID: ID13.azure,
|
|
108
108
|
method: {
|
|
109
109
|
type: "key",
|
|
110
110
|
label: "API key",
|
|
@@ -122,7 +122,7 @@ function make5(endpoints = {
|
|
|
122
122
|
if (!available)
|
|
123
123
|
return;
|
|
124
124
|
editor.method.update({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID13.azure,
|
|
126
126
|
method: {
|
|
127
127
|
id: methodID,
|
|
128
128
|
type: "external",
|
|
@@ -142,8 +142,8 @@ function make5(endpoints = {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
145
|
-
const connection = yield* ctx.integration.connection.active(
|
|
146
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
145
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
146
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID16.make(connection.id)) : undefined;
|
|
147
147
|
return { connection, resource: credentialResource(stored?.value) };
|
|
148
148
|
});
|
|
149
149
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -182,7 +182,7 @@ function make5(endpoints = {
|
|
|
182
182
|
}));
|
|
183
183
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
184
184
|
const connection = loaded.connection;
|
|
185
|
-
const settings = (yield* providers.get(
|
|
185
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
186
186
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
187
187
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
188
188
|
if (loaded.connection !== connection)
|
|
@@ -204,11 +204,11 @@ function make5(endpoints = {
|
|
|
204
204
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
205
205
|
if (!found)
|
|
206
206
|
return;
|
|
207
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
207
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
208
208
|
return;
|
|
209
209
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
210
210
|
return;
|
|
211
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
211
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
212
212
|
id.toLowerCase(),
|
|
213
213
|
id
|
|
214
214
|
]));
|
|
@@ -221,11 +221,11 @@ function make5(endpoints = {
|
|
|
221
221
|
yield* ctx.model.reload();
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
224
|
-
const resourceFor = (provider) => provider.id ===
|
|
224
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
225
225
|
Object.assign(loaded, yield* load());
|
|
226
226
|
yield* ctx.provider.transform((evt) => {
|
|
227
227
|
for (const item of evt.list()) {
|
|
228
|
-
if (item.provider.id !==
|
|
228
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
229
229
|
continue;
|
|
230
230
|
const resourceName = resourceFor(item.provider);
|
|
231
231
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -240,7 +240,7 @@ function make5(endpoints = {
|
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
const item = evt.get(
|
|
243
|
+
const item = evt.get(ID13.azure);
|
|
244
244
|
if (!item)
|
|
245
245
|
return;
|
|
246
246
|
evt.add({
|
|
@@ -251,7 +251,7 @@ function make5(endpoints = {
|
|
|
251
251
|
});
|
|
252
252
|
yield* ctx.model.transform((models) => {
|
|
253
253
|
for (const item of models.provider.list()) {
|
|
254
|
-
if (item.provider.id !==
|
|
254
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
255
255
|
continue;
|
|
256
256
|
const resourceName = resourceFor(item.provider);
|
|
257
257
|
if (!resourceName)
|
|
@@ -270,20 +270,20 @@ function make5(endpoints = {
|
|
|
270
270
|
}
|
|
271
271
|
if (!loaded.deployments)
|
|
272
272
|
return;
|
|
273
|
-
const catalog = models.list(
|
|
273
|
+
const catalog = models.list(ID13.azure);
|
|
274
274
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
275
275
|
for (const model of catalog) {
|
|
276
276
|
if (!deployed.has(model.id))
|
|
277
|
-
models.remove(
|
|
277
|
+
models.remove(ID13.azure, model.id);
|
|
278
278
|
}
|
|
279
279
|
for (const [id, model] of deployed) {
|
|
280
|
-
models.update(
|
|
280
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
281
281
|
}
|
|
282
282
|
});
|
|
283
|
-
yield* bus.subscribe(
|
|
283
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
284
284
|
yield* refresh().pipe(Effect.forkScoped);
|
|
285
285
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
286
|
-
const connection = yield* ctx.integration.connection.active(
|
|
286
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
287
287
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
288
288
|
return;
|
|
289
289
|
})) : undefined;
|
|
@@ -295,7 +295,7 @@ function make5(endpoints = {
|
|
|
295
295
|
return `Bearer ${current.access}`;
|
|
296
296
|
});
|
|
297
297
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
298
|
-
if (evt.model.providerID !==
|
|
298
|
+
if (evt.model.providerID !== ID13.azure)
|
|
299
299
|
return;
|
|
300
300
|
const authorization = yield* bearer(evt.request.url);
|
|
301
301
|
if (!authorization)
|
|
@@ -304,9 +304,9 @@ function make5(endpoints = {
|
|
|
304
304
|
evt.request.headers.delete("x-api-key");
|
|
305
305
|
evt.request.headers.set("authorization", authorization);
|
|
306
306
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
307
|
-
}), { providerID:
|
|
307
|
+
}), { providerID: ID13.azure });
|
|
308
308
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
309
|
-
if (evt.model.providerID !==
|
|
309
|
+
if (evt.model.providerID !== ID13.azure)
|
|
310
310
|
return;
|
|
311
311
|
const authorization = yield* bearer(evt.url);
|
|
312
312
|
if (!authorization)
|
|
@@ -315,11 +315,11 @@ function make5(endpoints = {
|
|
|
315
315
|
delete evt.headers["x-api-key"];
|
|
316
316
|
evt.headers.authorization = authorization;
|
|
317
317
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
318
|
-
}), { providerID:
|
|
318
|
+
}), { providerID: ID13.azure });
|
|
319
319
|
})
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
|
-
var AzurePlugin2 =
|
|
322
|
+
var AzurePlugin2 = make6();
|
|
323
323
|
function resolveResourceName(settings, fallback) {
|
|
324
324
|
const configured = settings?.resourceName;
|
|
325
325
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -349,11 +349,11 @@ function deployedModels(deployments, catalog) {
|
|
|
349
349
|
const model = catalogModel(models, deployment);
|
|
350
350
|
if (!model)
|
|
351
351
|
return [];
|
|
352
|
-
const id =
|
|
352
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
353
353
|
const info = {
|
|
354
354
|
...structuredClone(model),
|
|
355
355
|
id,
|
|
356
|
-
modelID:
|
|
356
|
+
modelID: ID12.make(deployment.name),
|
|
357
357
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
358
358
|
};
|
|
359
359
|
return [[id, info]];
|
|
@@ -375,4 +375,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
375
375
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
export {
|
|
378
|
+
export { make6, AzurePlugin2 };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-xnwqffna.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-5j5yn56v.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service48
|
|
9
|
+
} from "./location-s2pfznc4.js";
|
|
10
10
|
import {
|
|
11
11
|
userNotification2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-k814nvkf.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionMessage2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-gftt206x.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
NotFoundError11,
|
|
18
18
|
PromptConflictError2,
|
|
19
19
|
SyntheticConflictError2,
|
|
20
20
|
CompactionConflictError2,
|
|
21
21
|
BusyError2,
|
|
22
22
|
InboxConflictError2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-rbndg51d.js";
|
|
24
24
|
import {
|
|
25
25
|
SessionEvent2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-ec1grn59.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service71
|
|
29
|
+
} from "./location-f6bwzamp.js";
|
|
30
30
|
import {
|
|
31
31
|
SyntheticPayload2,
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
Service47
|
|
33
|
+
} from "./location-ms8gjsg9.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./
|
|
35
|
+
Service45
|
|
36
|
+
} from "./location-7kqn30mb.js";
|
|
37
37
|
import {
|
|
38
38
|
prepare2
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./location-9excscth.js";
|
|
40
40
|
import {
|
|
41
41
|
stage2,
|
|
42
42
|
clear2,
|
|
43
43
|
commit2
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./location-ym7mkmya.js";
|
|
45
45
|
import {
|
|
46
46
|
start2
|
|
47
|
-
} from "./
|
|
47
|
+
} from "./location-336ptya5.js";
|
|
48
48
|
import {
|
|
49
|
-
|
|
50
|
-
} from "./
|
|
49
|
+
get5
|
|
50
|
+
} from "./location-efbqjxxv.js";
|
|
51
51
|
import {
|
|
52
52
|
__export
|
|
53
|
-
} from "./
|
|
53
|
+
} from "./location-9rqn6x4v.js";
|
|
54
54
|
|
|
55
55
|
// src/session/session.ts
|
|
56
56
|
var exports_session2 = {};
|
|
@@ -64,16 +64,16 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
64
64
|
var make14 = Effect.fn("Session.make")(function* () {
|
|
65
65
|
const bus = yield* Service86;
|
|
66
66
|
const database = yield* Service87;
|
|
67
|
-
const store = yield*
|
|
68
|
-
const instances = yield*
|
|
69
|
-
const execution = yield*
|
|
70
|
-
const admission = yield*
|
|
67
|
+
const store = yield* Service71;
|
|
68
|
+
const instances = yield* Service48;
|
|
69
|
+
const execution = yield* Service45;
|
|
70
|
+
const admission = yield* Service47;
|
|
71
71
|
const fs = yield* FSUtil.Service;
|
|
72
72
|
const scope = yield* Scope.Scope;
|
|
73
73
|
const get = Effect.fn("Session.get")(function* (sessionID) {
|
|
74
74
|
const session = yield* store.get(sessionID);
|
|
75
75
|
if (!session)
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new NotFoundError11({ sessionID });
|
|
77
77
|
return session;
|
|
78
78
|
});
|
|
79
79
|
const message = Effect.fn("Session.message")(function* (sessionID, messageID) {
|
|
@@ -164,7 +164,7 @@ var make14 = Effect.fn("Session.make")(function* () {
|
|
|
164
164
|
const shell = Effect.fn("Session.shell")(function* (sessionID, input) {
|
|
165
165
|
const session = yield* get(sessionID);
|
|
166
166
|
const running = yield* Effect.gen(function* () {
|
|
167
|
-
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(
|
|
167
|
+
const started = yield* start2({ session, command: input.command }).pipe(Effect.provideService(Service48, instances), Effect.tapError((error) => synthetic(sessionID, {
|
|
168
168
|
text: `User shell command failed to start:
|
|
169
169
|
${input.command}
|
|
170
170
|
|
|
@@ -193,7 +193,7 @@ ${error.message}`,
|
|
|
193
193
|
});
|
|
194
194
|
const skill = Effect.fn("Session.skill")(function* (sessionID, input) {
|
|
195
195
|
const session = yield* get(sessionID);
|
|
196
|
-
const skill = yield*
|
|
196
|
+
const skill = yield* get5({ session, skill: input.skill }).pipe(Effect.provideService(Service48, instances));
|
|
197
197
|
yield* bus.publish(SessionEvent2.Skill.Activated, {
|
|
198
198
|
sessionID,
|
|
199
199
|
id: skill.id,
|
|
@@ -250,13 +250,13 @@ ${error.message}`,
|
|
|
250
250
|
const session = yield* get(sessionID);
|
|
251
251
|
if (yield* execution.isActive(sessionID))
|
|
252
252
|
return yield* new BusyError2({ sessionID });
|
|
253
|
-
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(
|
|
253
|
+
return yield* stage2({ session, messageID: input.messageID, files: input.files }).pipe(Effect.provideService(Service48, instances), Effect.provideService(Service87, database), Effect.provideService(Service86, bus));
|
|
254
254
|
});
|
|
255
255
|
const clear = Effect.fn("Session.revert.clear")(function* (sessionID) {
|
|
256
256
|
const session = yield* get(sessionID);
|
|
257
257
|
if (yield* execution.isActive(sessionID))
|
|
258
258
|
return yield* new BusyError2({ sessionID });
|
|
259
|
-
yield* clear2(session).pipe(Effect.provideService(
|
|
259
|
+
yield* clear2(session).pipe(Effect.provideService(Service48, instances), Effect.provideService(Service86, bus));
|
|
260
260
|
return yield* execution.wake(sessionID);
|
|
261
261
|
});
|
|
262
262
|
const commit = Effect.fn("Session.revert.commit")(function* (sessionID) {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service60,
|
|
3
|
+
node64
|
|
4
|
+
} from "./location-vkdfbcf5.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service28,
|
|
7
|
+
node31
|
|
8
|
+
} from "./location-2bwv8tnq.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
text2,
|
|
11
11
|
deliver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-sqjzf8x2.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/subagent-job.ts
|
|
18
18
|
var exports_subagent_job = {};
|
|
19
19
|
__export(exports_subagent_job, {
|
|
20
|
-
Service: () =>
|
|
20
|
+
Service: () => Service8,
|
|
21
21
|
SubagentJob: () => exports_subagent_job,
|
|
22
|
-
node: () =>
|
|
22
|
+
node: () => node10
|
|
23
23
|
});
|
|
24
24
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
25
25
|
import { Node } from "@opencode/util/effect/app-node";
|
|
26
|
-
class
|
|
26
|
+
class Service8 extends Context.Service()("@opencode/SubagentJob") {
|
|
27
27
|
}
|
|
28
28
|
var make = Effect.gen(function* () {
|
|
29
|
-
const sessions = yield*
|
|
30
|
-
const jobs = yield*
|
|
29
|
+
const sessions = yield* Service28;
|
|
30
|
+
const jobs = yield* Service60;
|
|
31
31
|
const scope = yield* Scope.Scope;
|
|
32
32
|
const context = yield* Effect.context();
|
|
33
33
|
const notifications = new Set;
|
|
@@ -42,7 +42,7 @@ var make = Effect.gen(function* () {
|
|
|
42
42
|
yield* deliver2(sessions, jobs, { ...info, recovery });
|
|
43
43
|
}).pipe(Effect.ensuring(Effect.sync(() => notifications.delete(key))), Effect.forkIn(scope, { startImmediately: true }), Effect.setContext(context));
|
|
44
44
|
});
|
|
45
|
-
return
|
|
45
|
+
return Service8.of({
|
|
46
46
|
start: (recovery) => jobs.start({
|
|
47
47
|
id: recovery.childSessionID,
|
|
48
48
|
type: "subagent",
|
|
@@ -53,7 +53,7 @@ var make = Effect.gen(function* () {
|
|
|
53
53
|
yield* sessions.resume(recovery.childSessionID);
|
|
54
54
|
const messages = yield* sessions.messages({ sessionID: recovery.childSessionID, order: "desc", limit: 20 });
|
|
55
55
|
const assistant = messages.find((message) => message.type === "assistant" && message.time.completed !== undefined && message.error === undefined);
|
|
56
|
-
return
|
|
56
|
+
return text2(assistant);
|
|
57
57
|
})
|
|
58
58
|
}).pipe(Effect.setContext(context)),
|
|
59
59
|
background: Effect.fn("SubagentJob.background")(function* (recovery) {
|
|
@@ -64,10 +64,10 @@ var make = Effect.gen(function* () {
|
|
|
64
64
|
notify
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
69
|
-
layer: Layer.effect(
|
|
70
|
-
deps: [
|
|
67
|
+
var node10 = Node.makeGlobalNode({
|
|
68
|
+
service: Service8,
|
|
69
|
+
layer: Layer.effect(Service8, make),
|
|
70
|
+
deps: [node31, node64]
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { Service8, node10, exports_subagent_job };
|