@opencode/core 0.0.0-dev-19372 → 0.0.0-dev-19377
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/agent.js +67 -67
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +54 -54
- package/dist/catalog.js +68 -68
- package/dist/chunks/{pty-hw55hn24.js → pty-006ygbhe.js} +9 -9
- package/dist/chunks/{pty-5j7h8n2k.js → pty-01w9qjh9.js} +11 -11
- package/dist/chunks/{pty-6zm1wyjc.js → pty-04d1p4as.js} +18 -18
- package/dist/chunks/{pty-yntqacmd.js → pty-074fwbj6.js} +15 -15
- package/dist/chunks/{pty-4qv5c5xf.js → pty-0e1xjvyp.js} +22 -22
- package/dist/chunks/{pty-mqy0jkn2.js → pty-0gr7cw0d.js} +3 -3
- package/dist/chunks/{pty-jjc2e0wf.js → pty-0w7fw3r9.js} +14 -14
- package/dist/chunks/{pty-jsaewa63.js → pty-19xhtx11.js} +4 -4
- package/dist/chunks/{pty-wnqzfj2j.js → pty-1awm1f41.js} +13 -13
- package/dist/chunks/{pty-0hpxrkyb.js → pty-1dfhrqqs.js} +3 -3
- package/dist/chunks/{pty-q1bbvmq4.js → pty-1qacn438.js} +24 -24
- package/dist/chunks/{pty-w8dmehha.js → pty-1qamgzxb.js} +40 -40
- package/dist/chunks/{pty-33w4ejhs.js → pty-1ygqh575.js} +4 -4
- package/dist/chunks/{pty-s8bz6z4k.js → pty-2336b01z.js} +7 -7
- package/dist/chunks/{pty-6h73sxmp.js → pty-2402vzrj.js} +4 -4
- package/dist/chunks/{pty-6jnybvqn.js → pty-2bt6bea8.js} +7 -7
- package/dist/chunks/{pty-mf3kdcv1.js → pty-2d9xefx9.js} +8 -8
- package/dist/chunks/{pty-q24fq4k9.js → pty-2ehqxkpw.js} +11 -11
- package/dist/chunks/{pty-40d8dwxk.js → pty-2hkg1ese.js} +9 -9
- package/dist/chunks/{pty-k8a0mrdq.js → pty-2zb1amfr.js} +38 -38
- package/dist/chunks/{pty-m0pn08h0.js → pty-32rg2acf.js} +9 -9
- package/dist/chunks/{pty-crd48we5.js → pty-38t617vx.js} +77 -77
- package/dist/chunks/{pty-b3wkxfg9.js → pty-39r80e1r.js} +1 -1
- package/dist/chunks/{pty-a1dptbm0.js → pty-3f3d0cbx.js} +23 -23
- package/dist/chunks/{pty-kv3072p9.js → pty-3q64r879.js} +4 -4
- package/dist/chunks/{pty-0gg4eh9d.js → pty-3w1p8qpk.js} +9 -9
- package/dist/chunks/{pty-7rjdtxkk.js → pty-43k15f45.js} +4 -4
- package/dist/chunks/{pty-4z80d8a9.js → pty-44dkc7mg.js} +2 -2
- package/dist/chunks/{pty-qgy2rw28.js → pty-49ycyj1k.js} +7 -7
- package/dist/chunks/{pty-ken34rgm.js → pty-4g0ya2kt.js} +16 -16
- package/dist/chunks/{pty-mnewsc6w.js → pty-4gp3ykcw.js} +28 -28
- package/dist/chunks/{pty-dcdbx179.js → pty-4jk5hnnm.js} +46 -46
- package/dist/chunks/{pty-eg20r4ae.js → pty-4s814m4t.js} +15 -15
- package/dist/chunks/{pty-j4rqb0e8.js → pty-4yzj85jz.js} +292 -292
- package/dist/chunks/{pty-hcz3zddy.js → pty-510m7gjw.js} +3 -3
- package/dist/chunks/{pty-9m9t2a7k.js → pty-52x1vvhc.js} +16 -16
- package/dist/chunks/{pty-rrdk89a5.js → pty-56tf4rq2.js} +17 -17
- package/dist/chunks/{pty-m5aw9kqs.js → pty-59n4zhg4.js} +11 -11
- package/dist/chunks/pty-5ax6r0h3.js +22 -0
- package/dist/chunks/{pty-5vs9ndt5.js → pty-5tw27g45.js} +20 -20
- package/dist/chunks/{pty-qpw0y00r.js → pty-60r077ss.js} +16 -16
- package/dist/chunks/{pty-v8jfbz3g.js → pty-63xctefh.js} +5 -5
- package/dist/chunks/{pty-3pmjwr1e.js → pty-6jyd9m4h.js} +19 -19
- package/dist/chunks/{pty-q6rs4hjt.js → pty-6vwh2emb.js} +52 -52
- package/dist/chunks/{pty-4rph1v41.js → pty-6xsw6ps4.js} +12 -12
- package/dist/chunks/{pty-eq1pz5kg.js → pty-73tb2d7t.js} +2 -2
- package/dist/chunks/{pty-yzsvg0b0.js → pty-77jjzcn8.js} +170 -170
- package/dist/chunks/{pty-jy3rk2pm.js → pty-7amj9884.js} +14 -14
- package/dist/chunks/{pty-v1y1zkts.js → pty-7hr5xevn.js} +6 -6
- package/dist/chunks/{pty-cwtk2d1m.js → pty-7ttnvawf.js} +2 -2
- package/dist/chunks/{pty-zyr433b0.js → pty-818pfwc9.js} +9 -9
- package/dist/chunks/{pty-dv1qgsyq.js → pty-844ef7ks.js} +7 -7
- package/dist/chunks/{pty-cf7stcnz.js → pty-8450mckp.js} +8 -8
- package/dist/chunks/{pty-refnp3pv.js → pty-86g9bn8f.js} +1 -1
- package/dist/chunks/{pty-a31gkhvw.js → pty-8dar2rz8.js} +10 -10
- package/dist/chunks/{pty-6xe913v8.js → pty-8gaq70qr.js} +20 -20
- package/dist/chunks/{pty-jt2m25jy.js → pty-8ns6tfjc.js} +11 -11
- package/dist/chunks/{pty-8vct2pgr.js → pty-8q7cq0y1.js} +3 -3
- package/dist/chunks/{pty-f9dcx0s3.js → pty-8sf2nwrn.js} +14 -14
- package/dist/chunks/{pty-gcbpht8g.js → pty-8shp1cm6.js} +17 -17
- package/dist/chunks/{pty-rssnh3zg.js → pty-8vfk5djw.js} +22 -22
- package/dist/chunks/{pty-357v7vj3.js → pty-8vhbqs5w.js} +32 -32
- package/dist/chunks/{pty-nfk4q15c.js → pty-8x8pbyt1.js} +22 -22
- package/dist/chunks/{pty-gf4qtxm6.js → pty-96yt6zt0.js} +1 -1
- package/dist/chunks/{pty-e1sywrpy.js → pty-9a3tgymx.js} +3 -3
- package/dist/chunks/{pty-rzyzyf97.js → pty-9d99dnb1.js} +3 -3
- package/dist/chunks/{pty-jefma2gq.js → pty-9fwp41vh.js} +7 -7
- package/dist/chunks/{pty-jxcvs55h.js → pty-9kcgsz93.js} +10 -10
- package/dist/chunks/{pty-gy3ftesa.js → pty-9m59fmnv.js} +21 -21
- package/dist/chunks/{pty-4sksr709.js → pty-9pntmsg4.js} +4 -4
- package/dist/chunks/{pty-9fxpdq0y.js → pty-9pyd9sac.js} +27 -27
- package/dist/chunks/{pty-kwgqzsmm.js → pty-9t3jdf5e.js} +1 -1
- package/dist/chunks/{pty-4azybn4n.js → pty-9w2g1xxc.js} +35 -35
- package/dist/chunks/{pty-b428793c.js → pty-a03kqjf9.js} +12 -12
- package/dist/chunks/{pty-4dfh6zmw.js → pty-a08t2777.js} +10 -10
- package/dist/chunks/{pty-107fwvqp.js → pty-a4ma1ze7.js} +32 -32
- package/dist/chunks/{pty-kjr2p1gf.js → pty-a8emfn6x.js} +36 -36
- package/dist/chunks/{pty-5j4skxhh.js → pty-a8kmq1k9.js} +6 -6
- package/dist/chunks/{pty-ghe33san.js → pty-a8q88f3r.js} +13 -13
- package/dist/chunks/{pty-8gtqgsn5.js → pty-ae3ajeqv.js} +22 -22
- package/dist/chunks/{pty-sgaqms2z.js → pty-aqajd40k.js} +11 -11
- package/dist/chunks/{pty-1y981vcy.js → pty-b1xfxbkj.js} +29 -29
- package/dist/chunks/{pty-z5c2cr5p.js → pty-b2wnrkev.js} +14 -14
- package/dist/chunks/{pty-8w0tny4e.js → pty-b80d24dq.js} +1 -1
- package/dist/chunks/{pty-07770t2t.js → pty-b9grawmm.js} +5 -5
- package/dist/chunks/{pty-526v470z.js → pty-bcnz578n.js} +1 -1
- package/dist/chunks/{pty-vaynpwqg.js → pty-bgbx6e98.js} +8 -8
- package/dist/chunks/{pty-ewyzxja9.js → pty-bgmtf57a.js} +11 -11
- package/dist/chunks/{pty-q1hjdkpd.js → pty-bh5aff4j.js} +10 -10
- package/dist/chunks/{pty-gj9xpvv3.js → pty-bv56xrks.js} +5 -5
- package/dist/chunks/{pty-578n16w1.js → pty-bwp2svcp.js} +24 -24
- package/dist/chunks/{pty-pc04q47q.js → pty-ca5anfan.js} +22 -22
- package/dist/chunks/{pty-dhmh7aw6.js → pty-ca7w653e.js} +3 -3
- package/dist/chunks/{pty-ddmrj1q7.js → pty-ch3g59kk.js} +21 -21
- package/dist/chunks/{pty-vkxpz7g2.js → pty-cq37gk0t.js} +1 -1
- package/dist/chunks/{pty-3mke1r8k.js → pty-ct5dsnxp.js} +23 -23
- package/dist/chunks/{pty-0wmswe57.js → pty-cy0h5wfk.js} +20 -20
- package/dist/chunks/{pty-sgvsg5c7.js → pty-d4sp9rf7.js} +9 -9
- package/dist/chunks/{pty-47fetphe.js → pty-d4xwsxra.js} +29 -29
- package/dist/chunks/{pty-w7zd1bg5.js → pty-d9hwvmgm.js} +18 -18
- package/dist/chunks/{pty-cf3tj770.js → pty-d9wx0zpv.js} +8 -8
- package/dist/chunks/{pty-b1rqwz98.js → pty-dbqxyz5k.js} +7 -7
- package/dist/chunks/{pty-cj4mykbe.js → pty-dc2sw694.js} +7 -7
- package/dist/chunks/{pty-5zthbsee.js → pty-dpgvjqy9.js} +6 -6
- package/dist/chunks/pty-dx6znw8h.js +247 -0
- package/dist/chunks/{pty-wf7nhwxb.js → pty-ebcate35.js} +14 -14
- package/dist/chunks/{pty-gqqez5b8.js → pty-ej22x54z.js} +8 -8
- package/dist/chunks/{pty-gvvw2n81.js → pty-erx15syr.js} +9 -9
- package/dist/chunks/{pty-gtjpq3yd.js → pty-ew5awps8.js} +9 -9
- package/dist/chunks/{pty-xj584aw0.js → pty-ezz53t6j.js} +9 -9
- package/dist/chunks/{pty-s0fyf8fb.js → pty-f2mgn97g.js} +17 -17
- package/dist/chunks/{pty-bgks4w36.js → pty-f4nygem8.js} +25 -25
- package/dist/chunks/{pty-0pyqcms3.js → pty-f8q7mv7a.js} +1 -1
- package/dist/chunks/{pty-ng5shs3s.js → pty-fgh0kbhd.js} +1 -1
- package/dist/chunks/{pty-2pnhn36q.js → pty-g190xswt.js} +20 -20
- package/dist/chunks/{pty-te0vzhy5.js → pty-g2x47d18.js} +10 -10
- package/dist/chunks/{pty-0x4g6ndm.js → pty-g40n759s.js} +25 -25
- package/dist/chunks/{pty-hdsygwhy.js → pty-g820nd5k.js} +11 -11
- package/dist/chunks/{pty-b7n25z46.js → pty-gcmx30na.js} +15 -15
- package/dist/chunks/{pty-5g6xb262.js → pty-gh03ewrb.js} +25 -25
- package/dist/chunks/{pty-exrwhhqk.js → pty-ghkvzh5e.js} +3 -3
- package/dist/chunks/{pty-th5km1p3.js → pty-gv6a8nnw.js} +3 -3
- package/dist/chunks/{pty-nw5w3cjp.js → pty-h10ynz7s.js} +23 -23
- package/dist/chunks/{pty-f4dw8gwj.js → pty-h51vtk5a.js} +37 -37
- package/dist/chunks/{pty-nhy5jxhy.js → pty-hjt4xg1x.js} +3 -3
- package/dist/chunks/{pty-zjqdssy0.js → pty-hnbrmyfw.js} +11 -11
- package/dist/chunks/pty-hr9dp009.js +4 -0
- package/dist/chunks/{pty-41q0v4q7.js → pty-hwxg80b8.js} +7 -7
- package/dist/chunks/{pty-02zskd6f.js → pty-jrrn2k62.js} +3 -3
- package/dist/chunks/{pty-0996nyz8.js → pty-jwx4y25k.js} +3 -3
- package/dist/chunks/{pty-6126dgt1.js → pty-k00z28k0.js} +39 -39
- package/dist/chunks/{pty-abkdt1xb.js → pty-k16ay38w.js} +1 -1
- package/dist/chunks/{pty-rxyhbgbe.js → pty-k5pz2tr3.js} +15 -15
- package/dist/chunks/{pty-r8nahq2d.js → pty-kbme4tjs.js} +12 -12
- package/dist/chunks/{pty-ym4367vb.js → pty-khm98422.js} +19 -19
- package/dist/chunks/{pty-khy2t77v.js → pty-kscytsah.js} +30 -30
- package/dist/chunks/{pty-vyqtz9n7.js → pty-ksz0h0wp.js} +1 -1
- package/dist/chunks/{pty-f242nvhy.js → pty-kvne3rde.js} +5 -5
- package/dist/chunks/{pty-xa6by1f1.js → pty-kz49q7tk.js} +19 -19
- package/dist/chunks/{pty-9p3b3m98.js → pty-m27pyyd3.js} +5 -5
- package/dist/chunks/{pty-h91yv7bq.js → pty-m4kj3f5a.js} +16 -16
- package/dist/chunks/{pty-hv7vaf99.js → pty-m72y1cz2.js} +10 -10
- package/dist/chunks/{pty-z5wc9zep.js → pty-mewy3jp3.js} +10 -10
- package/dist/chunks/{pty-88sz8qcd.js → pty-mfhfdr54.js} +3 -3
- package/dist/chunks/{pty-bagg3g1z.js → pty-mzjyw1z2.js} +1 -1
- package/dist/chunks/{pty-qgp720zn.js → pty-n4a39eeb.js} +25 -25
- package/dist/chunks/{pty-yww5gzhe.js → pty-n76fdqym.js} +5 -5
- package/dist/chunks/{pty-d1f48wm0.js → pty-nh799jn3.js} +42 -42
- package/dist/chunks/{pty-7xggmshf.js → pty-nk3rvkbx.js} +6 -6
- package/dist/chunks/{pty-wreggwv7.js → pty-nkd0t4h0.js} +18 -18
- package/dist/chunks/{pty-sr4mx09d.js → pty-nsfnh1mv.js} +9 -9
- package/dist/chunks/{pty-tzaf1sec.js → pty-nwt9sqb3.js} +9 -9
- package/dist/chunks/{pty-gw1k03mf.js → pty-p2hgsd7c.js} +10 -10
- package/dist/chunks/{pty-14p0bf99.js → pty-p93a7xcd.js} +4 -4
- package/dist/chunks/{pty-j935v87r.js → pty-paphc93g.js} +2 -2
- package/dist/chunks/{pty-mtft99cd.js → pty-pecb0brz.js} +3 -3
- package/dist/chunks/{pty-7ce2cjd5.js → pty-phshbkdm.js} +16 -16
- package/dist/chunks/{pty-s4sy206n.js → pty-pks0s0zr.js} +30 -30
- package/dist/chunks/{pty-qq11w61w.js → pty-pmr4s4kc.js} +3 -3
- package/dist/chunks/{pty-jfdrs8g9.js → pty-ptns6nda.js} +10 -10
- package/dist/chunks/{pty-tp2tr8k0.js → pty-ptyjv6sg.js} +3 -3
- package/dist/chunks/{pty-by5v678g.js → pty-q509s3k3.js} +4 -4
- package/dist/chunks/{pty-zvpdk192.js → pty-q8z5f87d.js} +22 -22
- package/dist/chunks/{pty-jfqtm2ew.js → pty-qa3qhgw8.js} +3 -3
- package/dist/chunks/{pty-7dqw4kz8.js → pty-qgn6gcr1.js} +4 -4
- package/dist/chunks/{pty-qzdews7q.js → pty-qn64kb1t.js} +6 -6
- package/dist/chunks/{pty-9ef57syn.js → pty-qsak9770.js} +11 -11
- package/dist/chunks/{pty-rkg39e93.js → pty-qzyph8ek.js} +10 -10
- package/dist/chunks/{pty-q1tx050w.js → pty-r5cznk00.js} +7 -7
- package/dist/chunks/{pty-c9cenec4.js → pty-r6ejgkfw.js} +4 -4
- package/dist/chunks/{pty-bxft0ra9.js → pty-r846xv8j.js} +31 -31
- package/dist/chunks/{pty-cd4mc13g.js → pty-r9babyk8.js} +1 -1
- package/dist/chunks/{pty-rxjhrqx1.js → pty-rarc5met.js} +21 -21
- package/dist/chunks/{pty-3zhfhk0f.js → pty-rbqs1qrs.js} +2 -2
- package/dist/chunks/{pty-76mrr06k.js → pty-rggw41sg.js} +39 -39
- package/dist/chunks/{pty-0gdmqesm.js → pty-rhjbct0v.js} +3 -3
- package/dist/chunks/{pty-81swgkk7.js → pty-rk0rec3h.js} +7 -7
- package/dist/chunks/{pty-pqd1mzxt.js → pty-rpbnx6sk.js} +7 -7
- package/dist/chunks/{pty-0xkh6216.js → pty-rraf0nd7.js} +32 -32
- package/dist/chunks/{pty-bw8xqn9c.js → pty-rs7hs26b.js} +52 -52
- package/dist/chunks/{pty-feebpcf8.js → pty-rvkgvnp4.js} +15 -15
- package/dist/chunks/{pty-b5svzbqe.js → pty-rwzmtr9v.js} +8 -8
- package/dist/chunks/{pty-m2r7xkr0.js → pty-s0r9fgtt.js} +17 -17
- package/dist/chunks/{pty-cjr8y0wq.js → pty-s8zdkf47.js} +16 -16
- package/dist/chunks/{pty-c487kk09.js → pty-s9smgjtn.js} +40 -40
- package/dist/chunks/{pty-eea9n1gg.js → pty-say8dh30.js} +4 -4
- package/dist/chunks/{pty-0jzeq7bg.js → pty-sh4h10fx.js} +7 -7
- package/dist/chunks/{pty-mwva2wqz.js → pty-sj3w9yv9.js} +16 -16
- package/dist/chunks/{pty-v6wk655t.js → pty-snrqdf1w.js} +33 -33
- package/dist/chunks/{pty-m0f7gyab.js → pty-sqmjn1cn.js} +23 -23
- package/dist/chunks/{pty-fpmq6gma.js → pty-t0fxg8b9.js} +3 -3
- package/dist/chunks/{pty-p1wf2k30.js → pty-t0x5rdq8.js} +7 -7
- package/dist/chunks/{pty-cgs7ndjq.js → pty-t5q1ccxn.js} +6 -6
- package/dist/chunks/{pty-2x9w7gwc.js → pty-tfngb0ww.js} +2 -2
- package/dist/chunks/{pty-ajghh6ra.js → pty-tkd1aj9d.js} +4 -4
- package/dist/chunks/{pty-bh8p3ktg.js → pty-ty116xf8.js} +5 -5
- package/dist/chunks/{pty-qr736bxy.js → pty-v2hnet1n.js} +10 -10
- package/dist/chunks/{pty-ezs85qj9.js → pty-v52wsnkd.js} +1 -1
- package/dist/chunks/{pty-3a50zsz9.js → pty-v5d98jas.js} +16 -16
- package/dist/chunks/{pty-9cg0vjy1.js → pty-v5w9803s.js} +7 -7
- package/dist/chunks/{pty-r8febyms.js → pty-vg4rqzx2.js} +15 -15
- package/dist/chunks/{pty-8kcmt1fk.js → pty-vr048kar.js} +7 -7
- package/dist/chunks/{pty-0x1qwe4m.js → pty-vx0zf1rd.js} +8 -8
- package/dist/chunks/{pty-qz49fwgp.js → pty-w4arg62q.js} +5 -5
- package/dist/chunks/{pty-r0xf0e5c.js → pty-w7j91m09.js} +23 -23
- package/dist/chunks/{pty-egkwkxxa.js → pty-wcpsbhns.js} +87 -87
- package/dist/chunks/{pty-xdzdvgbv.js → pty-wfjha01d.js} +18 -18
- package/dist/chunks/{pty-jrvvap85.js → pty-wmzeh62n.js} +20 -20
- package/dist/chunks/{pty-c4twzx9w.js → pty-x0dwkdkr.js} +20 -20
- package/dist/chunks/{pty-pe79rxdj.js → pty-x76s0de8.js} +26 -26
- package/dist/chunks/{pty-yfbmjfv9.js → pty-xhct4fr6.js} +6 -6
- package/dist/chunks/{pty-g254301b.js → pty-xp0rt39m.js} +1 -1
- package/dist/chunks/{pty-p9ts1dg8.js → pty-xzh9rhk3.js} +12 -12
- package/dist/chunks/{pty-fr2caje5.js → pty-y8tez433.js} +36 -36
- package/dist/chunks/{pty-szjmac0q.js → pty-yc5avrgj.js} +20 -20
- package/dist/chunks/{pty-f2n192rq.js → pty-yp2x3t23.js} +3 -3
- package/dist/chunks/{pty-s4enseaf.js → pty-yrznvahk.js} +1 -1
- package/dist/chunks/{pty-v9cmgtcf.js → pty-yv9w4q4m.js} +1 -1
- package/dist/chunks/{pty-cny5rd43.js → pty-yvvvp4gn.js} +7 -7
- package/dist/chunks/{pty-51kcvgxx.js → pty-z2h7x86s.js} +13 -13
- package/dist/chunks/{pty-102jvkd5.js → pty-z2p9cf6c.js} +58 -58
- package/dist/chunks/{pty-29x78va6.js → pty-z63w68vq.js} +4 -4
- package/dist/chunks/{pty-6qw5vjfk.js → pty-z69s9t6b.js} +4 -4
- package/dist/chunks/{pty-1khr35v4.js → pty-zc2nqsz3.js} +25 -25
- package/dist/chunks/{pty-yy158baq.js → pty-zh1p0kdw.js} +9 -9
- package/dist/chunks/{pty-62k5e5wb.js → pty-zm6ygejy.js} +17 -17
- package/dist/chunks/{pty-an126cry.js → pty-zn0t31cj.js} +28 -28
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +63 -63
- package/dist/config/discovery.js +60 -60
- package/dist/config/normalize.js +17 -17
- package/dist/config/plugin/agent.js +94 -94
- package/dist/config/plugin/command.js +175 -175
- package/dist/config/plugin/compaction.js +129 -129
- package/dist/config/plugin/formatter.js +95 -95
- package/dist/config/plugin/image.js +94 -94
- package/dist/config/plugin/instruction.js +67 -67
- package/dist/config/plugin/location-watcher.js +94 -94
- package/dist/config/plugin/mcp.js +101 -101
- package/dist/config/plugin/policy.js +93 -93
- package/dist/config/plugin/provider.js +92 -92
- package/dist/config/plugin/reference.js +96 -96
- package/dist/config/plugin/shell.js +94 -94
- package/dist/config/plugin/skill-file.js +75 -75
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +94 -94
- package/dist/config/plugin/source.js +96 -96
- package/dist/config/plugin/tool-output.js +93 -93
- package/dist/config/plugin/websearch.js +92 -92
- package/dist/config/plugin/worktree.js +96 -96
- package/dist/config/variable.js +2 -2
- package/dist/config.js +99 -99
- package/dist/credential.js +67 -67
- package/dist/database/database.js +53 -53
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +37 -37
- package/dist/database/migration.js +38 -38
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +238 -238
- package/dist/environment/environment.js +66 -66
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +78 -78
- package/dist/file-mutation.js +67 -67
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +189 -189
- package/dist/filesystem/search.js +68 -68
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +69 -69
- package/dist/form.js +69 -69
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +67 -67
- package/dist/generate.js +74 -74
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +2 -2
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +3 -3
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +310 -310
- package/dist/instruction-discovery.js +67 -67
- package/dist/instructions/builtins.js +65 -65
- package/dist/instructions/index.js +3 -3
- package/dist/integration.js +71 -71
- package/dist/job.js +63 -63
- package/dist/kv.js +58 -58
- package/dist/location-activity.js +56 -56
- package/dist/location-mutation.js +30 -30
- package/dist/location-service-map.js +66 -66
- package/dist/location-services.js +308 -308
- package/dist/location.js +67 -67
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +99 -99
- package/dist/mcp/stdio.js +63 -63
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +71 -71
- package/dist/model.js +10 -10
- package/dist/models-dev.js +72 -72
- package/dist/permission/saved.js +64 -64
- package/dist/permission.js +87 -87
- package/dist/persistent-pty/index.js +70 -70
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +182 -182
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +280 -280
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +61 -61
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +76 -76
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +96 -96
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +96 -96
- package/dist/plugin/provider/cloudflare-workers-ai.js +96 -96
- package/dist/plugin/provider/configured.js +94 -94
- package/dist/plugin/provider/digitalocean.js +63 -63
- package/dist/plugin/provider/github-copilot.js +65 -65
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +61 -61
- package/dist/plugin/provider/lmstudio.js +97 -97
- package/dist/plugin/provider/modal.js +64 -64
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +97 -97
- package/dist/plugin/provider/openai.js +64 -64
- package/dist/plugin/provider/opencode.js +64 -64
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +96 -96
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +97 -97
- package/dist/plugin/provider/xai.js +62 -62
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +130 -130
- package/dist/plugin/sdk.js +61 -61
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +111 -111
- package/dist/plugin/supervisor.js +299 -299
- package/dist/plugin/update.js +3 -3
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +64 -64
- package/dist/plugin/vcs/hg.js +64 -64
- package/dist/plugin/warming.js +92 -92
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin.js +194 -194
- package/dist/project/schema.js +7 -7
- package/dist/project.js +68 -68
- package/dist/provider.js +5 -5
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +75 -75
- package/dist/reference/instructions.js +69 -69
- package/dist/reference.js +71 -71
- package/dist/repository-cache.js +62 -62
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +67 -67
- package/dist/rpc.js +64 -64
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +105 -105
- package/dist/session/context.js +121 -121
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +120 -120
- package/dist/session/execution.js +101 -101
- package/dist/session/generate.js +120 -120
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +67 -67
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +59 -59
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +72 -72
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +90 -90
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +105 -105
- package/dist/session/projector.js +65 -65
- package/dist/session/prompt.js +78 -78
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +65 -65
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +192 -192
- package/dist/session/runner/model.js +71 -71
- package/dist/session/runner/retry.js +89 -89
- package/dist/session/runner/step.js +96 -96
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +139 -139
- package/dist/session/shell.js +104 -104
- package/dist/session/skill.js +77 -77
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +67 -67
- package/dist/session/subagent-job.js +174 -174
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +124 -124
- package/dist/session/to-session-error.js +86 -86
- package/dist/session/transfer.js +117 -117
- package/dist/session.js +185 -185
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +7 -7
- package/dist/shell.js +107 -107
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +79 -79
- package/dist/skill.js +84 -84
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +96 -96
- package/dist/tool/plugin/edit.js +92 -92
- package/dist/tool/plugin/glob.js +89 -89
- package/dist/tool/plugin/grep.js +95 -95
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +94 -94
- package/dist/tool/plugin/question.js +77 -77
- package/dist/tool/plugin/read.js +93 -93
- package/dist/tool/plugin/shell.js +180 -180
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +181 -181
- package/dist/tool/plugin/webfetch.js +84 -84
- package/dist/tool/plugin/websearch.js +86 -86
- package/dist/tool/plugin/write.js +94 -94
- package/dist/tool/read-filesystem.js +70 -70
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +3 -3
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +67 -67
- package/dist/websearch.js +67 -67
- package/dist/wellknown/plugin.js +60 -60
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +65 -65
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +298 -298
- package/dist/worktree.js +73 -73
- package/package.json +8 -8
- package/dist/chunks/pty-0mesazry.js +0 -4
- package/dist/chunks/pty-jcst6tya.js +0 -247
- package/dist/chunks/pty-rnevd4w8.js +0 -22
- /package/dist/chunks/{pty-ghrzdqqx.js → pty-23kefcxh.js} +0 -0
- /package/dist/chunks/{pty-5sjkzzsa.js → pty-3zxpfz3n.js} +0 -0
- /package/dist/chunks/{pty-rbygrj0c.js → pty-9nepbqpa.js} +0 -0
- /package/dist/chunks/{pty-60geffh5.js → pty-c3se2jx9.js} +0 -0
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./pty-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./pty-
|
|
6
|
+
} from "./pty-8q7cq0y1.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./pty-
|
|
9
|
+
} from "./pty-49ycyj1k.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./pty-
|
|
13
|
+
} from "./pty-rhjbct0v.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./pty-a1bz86dw.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./pty-
|
|
20
|
+
} from "./pty-cq37gk0t.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./pty-
|
|
25
|
+
} from "./pty-mfhfdr54.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
28
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load3,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load3 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load3, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service79,
|
|
4
4
|
node84
|
|
5
|
-
} from "./pty-
|
|
5
|
+
} from "./pty-b80d24dq.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
7
|
+
Service58,
|
|
8
|
+
node62
|
|
9
|
+
} from "./pty-2d9xefx9.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -16,13 +16,13 @@ var exports_wellknown = {};
|
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event9,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service51,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node54,
|
|
26
26
|
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service51 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event9 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -75,9 +75,9 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
80
|
+
const kv = yield* Service58;
|
|
81
81
|
const bus = yield* Service79;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
109
109
|
if (!changed)
|
|
110
110
|
return false;
|
|
111
111
|
yield* Ref.set(cache, next);
|
|
112
|
-
yield* bus.publish(
|
|
112
|
+
yield* bus.publish(Event9.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service51.of({
|
|
116
116
|
entries: load,
|
|
117
117
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
118
118
|
refresh,
|
|
@@ -125,7 +125,7 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
125
125
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
126
126
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
127
127
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event9.Updated, {});
|
|
129
129
|
return entry;
|
|
130
130
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
131
131
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -138,11 +138,11 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event9.Updated, {});
|
|
142
142
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
143
143
|
resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
146
|
-
var
|
|
146
|
+
var node54 = makeGlobalNode({ service: Service51, layer, deps: [httpClient, node62, node84] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service51, Event9, inspect2, resolve2, node54, exports_wellknown };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-b80d24dq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./pty-
|
|
5
|
+
Service40
|
|
6
|
+
} from "./pty-d4xwsxra.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
8
|
+
Error4
|
|
9
|
+
} from "./pty-kz49q7tk.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./pty-
|
|
11
|
+
Service44
|
|
12
|
+
} from "./pty-bgbx6e98.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./pty-
|
|
15
|
+
} from "./pty-49ycyj1k.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
18
|
} from "./pty-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./pty-
|
|
21
|
+
} from "./pty-p93a7xcd.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
24
|
} from "./pty-tdstcens.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./pty-h03wrkyp.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./pty-
|
|
30
|
+
} from "./pty-tkd1aj9d.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
33
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -37,7 +37,7 @@ var exports_step = {};
|
|
|
37
37
|
__export(exports_step, {
|
|
38
38
|
Outcome: () => Outcome2,
|
|
39
39
|
SessionStep: () => exports_step,
|
|
40
|
-
make: () =>
|
|
40
|
+
make: () => make3
|
|
41
41
|
});
|
|
42
42
|
import {
|
|
43
43
|
AIError,
|
|
@@ -51,11 +51,11 @@ var Outcome2 = Data.taggedEnum();
|
|
|
51
51
|
var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
|
|
52
52
|
var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
|
|
53
53
|
var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
|
|
54
|
-
var
|
|
54
|
+
var make3 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service79;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service40;
|
|
58
|
+
const toolOutput = yield* Service44;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const startSnapshot = yield* snapshots.capture();
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -70,7 +70,7 @@ var make7 = Effect.gen(function* () {
|
|
|
70
70
|
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
71
71
|
const executeTool = (call) => {
|
|
72
72
|
if (input.prepared.request.toolChoice?.type === "none")
|
|
73
|
-
return new
|
|
73
|
+
return new Error4({ message: "Tools are disabled after the maximum agent steps" });
|
|
74
74
|
return input.prepared.executeTool({
|
|
75
75
|
sessionID: input.sessionID,
|
|
76
76
|
agent: input.agent,
|
|
@@ -205,4 +205,4 @@ var classifyToolExits = (settled, runs) => {
|
|
|
205
205
|
return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
|
|
206
206
|
};
|
|
207
207
|
|
|
208
|
-
export { Outcome2,
|
|
208
|
+
export { Outcome2, make3, exports_step };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-b80d24dq.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./pty-
|
|
6
|
+
Event20,
|
|
7
|
+
Service78,
|
|
8
|
+
node83
|
|
9
|
+
} from "./pty-gh03ewrb.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./pty-
|
|
11
|
+
Service50,
|
|
12
|
+
node53
|
|
13
|
+
} from "./pty-ca5anfan.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
16
|
} from "./pty-922hggd3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./pty-
|
|
18
|
+
Service72,
|
|
19
|
+
node77
|
|
20
|
+
} from "./pty-60r077ss.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./pty-
|
|
23
|
+
} from "./pty-yrznvahk.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./pty-
|
|
26
|
+
} from "./pty-q8z5f87d.js";
|
|
27
27
|
import {
|
|
28
28
|
names4,
|
|
29
29
|
discover3
|
|
30
|
-
} from "./pty-
|
|
30
|
+
} from "./pty-9d99dnb1.js";
|
|
31
31
|
import {
|
|
32
32
|
plan2
|
|
33
33
|
} from "./pty-j56e64zr.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} from "./pty-
|
|
35
|
+
Service51,
|
|
36
|
+
Event9,
|
|
37
|
+
node54
|
|
38
|
+
} from "./pty-s0r9fgtt.js";
|
|
39
39
|
import {
|
|
40
40
|
__export
|
|
41
41
|
} from "./pty-9rqn6x4v.js";
|
|
@@ -44,13 +44,13 @@ import {
|
|
|
44
44
|
var exports_config = {};
|
|
45
45
|
__export(exports_config, {
|
|
46
46
|
Config: () => exports_config,
|
|
47
|
-
Options: () =>
|
|
48
|
-
Service: () =>
|
|
47
|
+
Options: () => Options5,
|
|
48
|
+
Service: () => Service49,
|
|
49
49
|
Test: () => Test2,
|
|
50
|
-
configured: () =>
|
|
50
|
+
configured: () => configured5,
|
|
51
51
|
latest: () => latest2,
|
|
52
|
-
layer: () =>
|
|
53
|
-
node: () =>
|
|
52
|
+
layer: () => layer20,
|
|
53
|
+
node: () => node52,
|
|
54
54
|
testLayer: () => testLayer2
|
|
55
55
|
});
|
|
56
56
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -71,14 +71,14 @@ import { Global } from "@opencode/util/global";
|
|
|
71
71
|
function latest2(entries, key) {
|
|
72
72
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
73
73
|
}
|
|
74
|
-
var
|
|
74
|
+
var Options5 = Schema.Struct({
|
|
75
75
|
project: Schema.optional(Schema.Boolean),
|
|
76
76
|
global: Schema.optional(Schema.Boolean),
|
|
77
77
|
file: Schema.optional(Schema.String),
|
|
78
78
|
content: Schema.optional(Schema.String)
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
class
|
|
81
|
+
class Service49 extends Context.Service()("@opencode/Config") {
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -92,15 +92,15 @@ var testLayer2 = (initial = []) => Layer.effectContext(Effect.gen(function* () {
|
|
|
92
92
|
setEntries: (next) => Ref.set(entries, next),
|
|
93
93
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
94
94
|
});
|
|
95
|
-
return Context.empty().pipe(Context.add(
|
|
95
|
+
return Context.empty().pipe(Context.add(Service49, service), Context.add(Test2, service));
|
|
96
96
|
}));
|
|
97
|
-
var
|
|
97
|
+
var layer20 = (options) => Layer.effect(Service49, Effect.gen(function* () {
|
|
98
98
|
const fs = yield* FSUtil.Service;
|
|
99
|
-
const location = yield*
|
|
100
|
-
const watcher = yield*
|
|
99
|
+
const location = yield* Service72;
|
|
100
|
+
const watcher = yield* Service50;
|
|
101
101
|
const bus = yield* Service79;
|
|
102
|
-
const credentials = yield*
|
|
103
|
-
const wellknown = yield*
|
|
102
|
+
const credentials = yield* Service78;
|
|
103
|
+
const wellknown = yield* Service51;
|
|
104
104
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
105
105
|
const decodeOptions = { errors: "all", onExcessProperty: "ignore", propertyOrder: "original" };
|
|
106
106
|
const decodeInfo = Schema.decodeUnknownOption(Info, decodeOptions);
|
|
@@ -223,8 +223,8 @@ var layer24 = (options) => Layer.effect(Service67, Effect.gen(function* () {
|
|
|
223
223
|
}, (effect) => reloadLock.withPermit(effect));
|
|
224
224
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
225
225
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
226
|
-
yield* bus.subscribe(
|
|
227
|
-
yield* bus.subscribe(
|
|
226
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
227
|
+
yield* bus.subscribe(Event9.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
228
228
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
229
229
|
if (!wellknown.snapshot().length)
|
|
230
230
|
return Effect.void;
|
|
@@ -235,20 +235,20 @@ var layer24 = (options) => Layer.effect(Service67, Effect.gen(function* () {
|
|
|
235
235
|
}).pipe(Effect.catchCause((cause) => Effect.logWarning("failed to refresh wellknown config", { cause })));
|
|
236
236
|
})), Effect.forever, Effect.forkScoped({ startImmediately: true }));
|
|
237
237
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
238
|
-
return
|
|
238
|
+
return Service49.of({
|
|
239
239
|
entries: Effect.fnUntraced(function* () {
|
|
240
240
|
return configs;
|
|
241
241
|
}),
|
|
242
242
|
changes: () => Stream.fromPubSub(updates)
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
|
-
function
|
|
245
|
+
function configured5(options) {
|
|
246
246
|
return makeLocationNode({
|
|
247
|
-
service:
|
|
248
|
-
layer:
|
|
249
|
-
deps: [
|
|
247
|
+
service: Service49,
|
|
248
|
+
layer: layer20(options),
|
|
249
|
+
deps: [node53, node84, FSUtil.node, Global.node, node77, node83, node54]
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
|
-
var
|
|
252
|
+
var node52 = configured5();
|
|
253
253
|
|
|
254
|
-
export { latest2,
|
|
254
|
+
export { latest2, Options5, Service49, Test2, testLayer2, layer20, configured5, node52, exports_config };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OAuth3
|
|
3
|
-
} from "./pty-
|
|
3
|
+
} from "./pty-gh03ewrb.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID14,
|
|
6
6
|
MethodID2
|
|
7
|
-
} from "./pty-
|
|
7
|
+
} from "./pty-1qacn438.js";
|
|
8
8
|
import {
|
|
9
9
|
success2,
|
|
10
10
|
error2
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Clock, Deferred, Effect, Option, Schema } from "effect";
|
|
16
16
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
17
|
-
var integrationID =
|
|
17
|
+
var integrationID = ID14.make("poe");
|
|
18
18
|
var methodID = MethodID2.make("browser");
|
|
19
19
|
var clientID = "client_728290227fc048cc9262091a1ea197ea";
|
|
20
20
|
var issuer = "https://poe.com";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./pty-
|
|
4
|
+
} from "./pty-m27pyyd3.js";
|
|
5
5
|
import {
|
|
6
6
|
latest2,
|
|
7
|
-
|
|
8
|
-
} from "./pty-
|
|
7
|
+
Service49
|
|
8
|
+
} from "./pty-s9smgjtn.js";
|
|
9
9
|
import {
|
|
10
10
|
observe2
|
|
11
11
|
} from "./pty-qsdy395h.js";
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
var exports_provider = {};
|
|
18
18
|
__export(exports_provider, {
|
|
19
19
|
ConfigProviderPlugin: () => exports_provider,
|
|
20
|
-
Plugin: () =>
|
|
20
|
+
Plugin: () => Plugin37
|
|
21
21
|
});
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Effect } from "effect";
|
|
25
|
-
var
|
|
25
|
+
var Plugin37 = define({
|
|
26
26
|
id: "opencode.config.provider",
|
|
27
27
|
effect: Effect.fn(function* (ctx) {
|
|
28
|
-
const config = yield*
|
|
28
|
+
const config = yield* Service49;
|
|
29
29
|
const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.catalog.reload())));
|
|
30
30
|
yield* ctx.integration.transform((integrations) => {
|
|
31
31
|
for (const [id, provider] of configuredProviders(loaded.entries)) {
|
|
@@ -155,4 +155,4 @@ function configuredProviders(entries) {
|
|
|
155
155
|
return entries.filter((entry) => entry.type === "document").flatMap((file) => Object.entries(file.info.providers ?? {}));
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
export {
|
|
158
|
+
export { Plugin37, exports_provider };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./pty-
|
|
2
|
+
Service72,
|
|
3
|
+
node77
|
|
4
|
+
} from "./pty-60r077ss.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./pty-kg06axw8.js";
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
} from "./pty-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/formatter.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Formatter: () =>
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
13
|
+
var exports_formatter3 = {};
|
|
14
|
+
__export(exports_formatter3, {
|
|
15
|
+
Formatter: () => exports_formatter3,
|
|
16
|
+
Service: () => Service59,
|
|
17
|
+
node: () => node63
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { ChildProcess } from "effect/unstable/process";
|
|
21
21
|
import path from "path";
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { AppProcess } from "@opencode/util/process";
|
|
24
|
-
class
|
|
24
|
+
class Service59 extends Context.Service()("@opencode/v2/Formatter") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
27
|
-
const location = yield*
|
|
26
|
+
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
27
|
+
const location = yield* Service72;
|
|
28
28
|
const processes = yield* AppProcess.Service;
|
|
29
29
|
const commands = new WeakMap;
|
|
30
30
|
const state = create3({
|
|
@@ -85,12 +85,12 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
85
85
|
}
|
|
86
86
|
return false;
|
|
87
87
|
});
|
|
88
|
-
return
|
|
88
|
+
return Service59.of({ transform: state.transform, reload: state.reload, file });
|
|
89
89
|
}));
|
|
90
|
-
var
|
|
91
|
-
service:
|
|
90
|
+
var node63 = makeLocationNode({
|
|
91
|
+
service: Service59,
|
|
92
92
|
layer,
|
|
93
|
-
deps: [
|
|
93
|
+
deps: [node77, AppProcess.node]
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export {
|
|
96
|
+
export { Service59, node63, exports_formatter3 };
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
Failed2
|
|
5
5
|
} from "./pty-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./pty-
|
|
7
|
+
Service72
|
|
8
|
+
} from "./pty-60r077ss.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./pty-
|
|
10
|
+
Service48
|
|
11
|
+
} from "./pty-6jyd9m4h.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./pty-
|
|
13
|
+
Service59
|
|
14
|
+
} from "./pty-sj3w9yv9.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
Service47,
|
|
17
17
|
readText2,
|
|
18
18
|
syncTextBom2
|
|
19
|
-
} from "./pty-
|
|
19
|
+
} from "./pty-8ns6tfjc.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./pty-
|
|
21
|
+
Service61
|
|
22
|
+
} from "./pty-6vwh2emb.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
Service60,
|
|
25
25
|
resolvePath2
|
|
26
|
-
} from "./pty-
|
|
26
|
+
} from "./pty-phshbkdm.js";
|
|
27
27
|
import {
|
|
28
28
|
fileDiff2
|
|
29
29
|
} from "./pty-6prwharc.js";
|
|
@@ -35,12 +35,12 @@ import {
|
|
|
35
35
|
var exports_patch = {};
|
|
36
36
|
__export(exports_patch, {
|
|
37
37
|
Applied: () => Applied2,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
38
|
+
Input: () => Input9,
|
|
39
|
+
Output: () => Output6,
|
|
40
40
|
PatchTool: () => exports_patch,
|
|
41
|
-
Plugin: () =>
|
|
42
|
-
name: () =>
|
|
43
|
-
toModelContent: () =>
|
|
41
|
+
Plugin: () => Plugin23,
|
|
42
|
+
name: () => name9,
|
|
43
|
+
toModelContent: () => toModelContent5
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai";
|
|
46
46
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
@@ -85,8 +85,8 @@ It is important to remember:
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
// src/tool/plugin/patch.ts
|
|
88
|
-
var
|
|
89
|
-
var
|
|
88
|
+
var name9 = "patch";
|
|
89
|
+
var Input9 = Schema.Struct({
|
|
90
90
|
patchText: Schema.String.annotate({
|
|
91
91
|
description: "The full patch text describing add, update, and delete operations"
|
|
92
92
|
})
|
|
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
|
|
|
96
96
|
resource: Schema.String,
|
|
97
97
|
target: Schema.String
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var Output6 = Schema.Struct({
|
|
100
100
|
applied: Schema.Array(Applied2),
|
|
101
101
|
files: Schema.Array(FileDiff.Info)
|
|
102
102
|
});
|
|
103
|
-
var
|
|
103
|
+
var toModelContent5 = (output) => [
|
|
104
104
|
"Success. Updated the following files:",
|
|
105
105
|
...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
|
|
106
106
|
].join(`
|
|
107
107
|
`);
|
|
108
|
-
var
|
|
108
|
+
var Plugin23 = {
|
|
109
109
|
id: "opencode.tool.patch",
|
|
110
110
|
effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const access = yield*
|
|
113
|
-
const fileMutation = yield*
|
|
114
|
-
const formatter = yield*
|
|
115
|
-
const location = yield*
|
|
116
|
-
const permission = yield*
|
|
111
|
+
const environment = yield* Service48;
|
|
112
|
+
const access = yield* Service60;
|
|
113
|
+
const fileMutation = yield* Service47;
|
|
114
|
+
const formatter = yield* Service59;
|
|
115
|
+
const location = yield* Service72;
|
|
116
|
+
const permission = yield* Service61;
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name9,
|
|
119
119
|
options: { codemode: false, permission: "edit" },
|
|
120
120
|
description: patch_default,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input9,
|
|
122
|
+
output: Output6,
|
|
123
123
|
execute: (input, context) => {
|
|
124
124
|
const applied = [];
|
|
125
125
|
const parsed = Patch.parse(input.patchText);
|
|
@@ -266,7 +266,7 @@ var Plugin4 = {
|
|
|
266
266
|
return { applied, files };
|
|
267
267
|
}).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
|
|
268
268
|
output,
|
|
269
|
-
content:
|
|
269
|
+
content: toModelContent5(output),
|
|
270
270
|
metadata: { files: output.files }
|
|
271
271
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
|
|
272
272
|
}
|
|
@@ -323,4 +323,4 @@ function trimDiff(diff) {
|
|
|
323
323
|
`);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
export {
|
|
326
|
+
export { name9, Input9, Applied2, Output6, toModelContent5, Plugin23, exports_patch };
|