@opencode/core 0.0.0-dev-21651 → 0.0.0-dev-21654
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{persistent-pty-034tev2y.js → repository-cache-034tev2y.js} +2 -2
- package/dist/chunks/{persistent-pty-799ckdtf.js → repository-cache-0421tmwc.js} +9 -9
- package/dist/chunks/{persistent-pty-gtwwgaxd.js → repository-cache-05t45fgn.js} +20 -20
- package/dist/chunks/{persistent-pty-tndygt87.js → repository-cache-06ne1vpq.js} +9 -9
- package/dist/chunks/{persistent-pty-8rcbafry.js → repository-cache-0j8j5tyq.js} +3 -3
- package/dist/chunks/{persistent-pty-4h1ntjay.js → repository-cache-0k1p4s69.js} +7 -7
- package/dist/chunks/{persistent-pty-xz8jn1n5.js → repository-cache-0m0bmnz6.js} +47 -47
- package/dist/chunks/{persistent-pty-5dzbshvg.js → repository-cache-0xdzzbfj.js} +4 -4
- package/dist/chunks/{persistent-pty-xmb6acqt.js → repository-cache-12dpmfar.js} +11 -11
- package/dist/chunks/{persistent-pty-5kfkg5r8.js → repository-cache-1711wf45.js} +12 -12
- package/dist/chunks/{persistent-pty-zgfrp2wc.js → repository-cache-18fakw40.js} +26 -26
- package/dist/chunks/{persistent-pty-0r8hms5j.js → repository-cache-1914d4m2.js} +34 -34
- package/dist/chunks/{persistent-pty-66hjg21n.js → repository-cache-1d7c9p74.js} +37 -37
- package/dist/chunks/{persistent-pty-kgeqanye.js → repository-cache-1djcyy3s.js} +18 -18
- package/dist/chunks/{persistent-pty-1ep2p91f.js → repository-cache-1ep2p91f.js} +2 -2
- package/dist/chunks/{persistent-pty-xcarn5dh.js → repository-cache-1erzekvj.js} +4 -4
- package/dist/chunks/{persistent-pty-2aabkt2r.js → repository-cache-1q4dac4t.js} +11 -11
- package/dist/chunks/{persistent-pty-sd1t0gyg.js → repository-cache-1qbwk3vx.js} +1 -1
- package/dist/chunks/{persistent-pty-53fkqhzs.js → repository-cache-1vg1fscw.js} +9 -9
- package/dist/chunks/{persistent-pty-1x2knyw4.js → repository-cache-1x2knyw4.js} +1 -1
- package/dist/chunks/{persistent-pty-etps9a87.js → repository-cache-1xj3kh2r.js} +22 -22
- package/dist/chunks/{persistent-pty-7xcfq1ha.js → repository-cache-1ytqv3fd.js} +6 -6
- package/dist/chunks/{persistent-pty-vrpz8t5t.js → repository-cache-207ajt2h.js} +5 -5
- package/dist/chunks/{persistent-pty-64tk1142.js → repository-cache-27bs79w9.js} +2 -2
- package/dist/chunks/{persistent-pty-qyt594kh.js → repository-cache-2vt8hxhk.js} +24 -24
- package/dist/chunks/{persistent-pty-2z1j29yd.js → repository-cache-2z1j29yd.js} +1 -1
- package/dist/chunks/{persistent-pty-7yz8t82k.js → repository-cache-316j7v8e.js} +5 -5
- package/dist/chunks/{persistent-pty-1h6ms3ts.js → repository-cache-336ztn5g.js} +38 -38
- package/dist/chunks/{persistent-pty-c3z1dwp4.js → repository-cache-362gf1js.js} +32 -32
- package/dist/chunks/{persistent-pty-br64vc86.js → repository-cache-36sdsjr1.js} +4 -4
- package/dist/chunks/{persistent-pty-rf77k6n7.js → repository-cache-3bp279dk.js} +21 -21
- package/dist/chunks/{persistent-pty-s9ty2h8k.js → repository-cache-3f8v07ch.js} +9 -9
- package/dist/chunks/{persistent-pty-j975cw6z.js → repository-cache-3gh72xqr.js} +4 -4
- package/dist/chunks/{persistent-pty-3hepkmqq.js → repository-cache-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-m3kqm4cm.js → repository-cache-3hq0yj39.js} +2 -2
- package/dist/chunks/{persistent-pty-3kdbrncp.js → repository-cache-3kdbrncp.js} +2 -2
- package/dist/chunks/{persistent-pty-3nnrz6f6.js → repository-cache-3nnrz6f6.js} +1 -1
- package/dist/chunks/{persistent-pty-ww71evjc.js → repository-cache-3pmyxw75.js} +20 -20
- package/dist/chunks/{persistent-pty-27zy431c.js → repository-cache-48zhenr1.js} +4 -4
- package/dist/chunks/{persistent-pty-p8zvtb4f.js → repository-cache-4ay36gmp.js} +16 -16
- package/dist/chunks/{persistent-pty-4v008n1t.js → repository-cache-4v008n1t.js} +1 -1
- package/dist/chunks/{persistent-pty-4xvmh7wp.js → repository-cache-4xvmh7wp.js} +3 -3
- package/dist/chunks/{persistent-pty-j4mbz3fw.js → repository-cache-507qjdd6.js} +10 -10
- package/dist/chunks/{persistent-pty-a4ab7jhs.js → repository-cache-5555hpps.js} +3 -3
- package/dist/chunks/{persistent-pty-mqpc6sp9.js → repository-cache-57t7dmdr.js} +18 -18
- package/dist/chunks/{persistent-pty-cn8x8bav.js → repository-cache-5agv5pnb.js} +9 -9
- package/dist/chunks/{persistent-pty-96jdb81n.js → repository-cache-5azq9rsq.js} +3 -3
- package/dist/chunks/{persistent-pty-7vhe8rph.js → repository-cache-5dnrgg7g.js} +17 -17
- package/dist/chunks/{persistent-pty-2ex3p3f1.js → repository-cache-5jjy01jh.js} +14 -14
- package/dist/chunks/{persistent-pty-xqtsmx9f.js → repository-cache-5jrgt8vn.js} +18 -18
- package/dist/chunks/{persistent-pty-5m9w47nd.js → repository-cache-5m9w47nd.js} +1 -1
- package/dist/chunks/{persistent-pty-z6k1srac.js → repository-cache-5n23vyzy.js} +11 -11
- package/dist/chunks/{persistent-pty-65xym8dq.js → repository-cache-5qdsq766.js} +21 -21
- package/dist/chunks/{persistent-pty-5zrxpy3q.js → repository-cache-5zrxpy3q.js} +1 -1
- package/dist/chunks/{persistent-pty-5r569r17.js → repository-cache-64mfsmgx.js} +13 -13
- package/dist/chunks/repository-cache-6bshxcsx.js +18 -0
- package/dist/chunks/{persistent-pty-mb72d0pe.js → repository-cache-6d6xnsqa.js} +5 -5
- package/dist/chunks/{persistent-pty-6esdw8yj.js → repository-cache-6esdw8yj.js} +1 -1
- package/dist/chunks/{persistent-pty-vxsjar9r.js → repository-cache-6g7sbevv.js} +9 -9
- package/dist/chunks/{persistent-pty-7q3wyea1.js → repository-cache-6n4ac7kc.js} +25 -25
- package/dist/chunks/{persistent-pty-csnq1vx8.js → repository-cache-6nw1th37.js} +4 -4
- package/dist/chunks/{persistent-pty-6pjqjmy2.js → repository-cache-6pjqjmy2.js} +1 -1
- package/dist/chunks/{persistent-pty-b3dt0wfc.js → repository-cache-6tnd2r5t.js} +78 -78
- package/dist/chunks/{persistent-pty-s2dg58v9.js → repository-cache-6y1pjz6k.js} +11 -11
- package/dist/chunks/{persistent-pty-nah043kf.js → repository-cache-770pw0s1.js} +4 -4
- package/dist/chunks/{persistent-pty-s6p20e1k.js → repository-cache-7bg5w1mh.js} +7 -7
- package/dist/chunks/{persistent-pty-7bmhse3q.js → repository-cache-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-avrfdzax.js → repository-cache-7epm6vve.js} +16 -16
- package/dist/chunks/{persistent-pty-dpyjajp2.js → repository-cache-7vxtg88a.js} +27 -27
- package/dist/chunks/{persistent-pty-7w2ypzdf.js → repository-cache-7w2ypzdf.js} +1 -1
- package/dist/chunks/{persistent-pty-w7s37af3.js → repository-cache-7y79ykyn.js} +7 -7
- package/dist/chunks/{persistent-pty-rth52m3v.js → repository-cache-882abr6x.js} +11 -11
- package/dist/chunks/{persistent-pty-2hep2db8.js → repository-cache-8ev1pcqt.js} +11 -11
- package/dist/chunks/{persistent-pty-5vgcj10y.js → repository-cache-8nyf59xc.js} +6 -6
- package/dist/chunks/{persistent-pty-8wtp7s3z.js → repository-cache-8wtp7s3z.js} +1 -1
- package/dist/chunks/{persistent-pty-d8qd4w10.js → repository-cache-8ykqf5wm.js} +11 -11
- package/dist/chunks/{persistent-pty-91rj84md.js → repository-cache-91rj84md.js} +1 -1
- package/dist/chunks/{persistent-pty-dpy78jr7.js → repository-cache-95a59wgr.js} +28 -28
- package/dist/chunks/{persistent-pty-xx92f0z9.js → repository-cache-98vm4ve1.js} +3 -3
- package/dist/chunks/{persistent-pty-dkq45v8d.js → repository-cache-997dsrmm.js} +8 -8
- package/dist/chunks/{persistent-pty-998yhzzq.js → repository-cache-998yhzzq.js} +3 -3
- package/dist/chunks/{persistent-pty-g45kmxae.js → repository-cache-9db9x33r.js} +12 -12
- package/dist/chunks/{persistent-pty-acqhz89c.js → repository-cache-9jt80rn9.js} +35 -35
- package/dist/chunks/{persistent-pty-8tqac9jx.js → repository-cache-9r40bkxv.js} +8 -8
- package/dist/chunks/{persistent-pty-mgn9jeqr.js → repository-cache-a10bphs2.js} +88 -88
- package/dist/chunks/{persistent-pty-zntgk0c3.js → repository-cache-a93j7cb6.js} +18 -18
- package/dist/chunks/{persistent-pty-qq9errcn.js → repository-cache-ae12v80k.js} +32 -32
- package/dist/chunks/{persistent-pty-14x9rdgq.js → repository-cache-ajjhf6jy.js} +24 -24
- package/dist/chunks/{persistent-pty-h1fcnfrv.js → repository-cache-apz0gy3j.js} +14 -14
- package/dist/chunks/{persistent-pty-ayjs7tqn.js → repository-cache-ayjs7tqn.js} +2 -2
- package/dist/chunks/{persistent-pty-b0mv4wxm.js → repository-cache-b0mv4wxm.js} +2 -2
- package/dist/chunks/{persistent-pty-b6vsg801.js → repository-cache-b6vsg801.js} +2 -2
- package/dist/chunks/{persistent-pty-qkzpeykj.js → repository-cache-bbwsfe1r.js} +18 -18
- package/dist/chunks/{persistent-pty-44etcz8n.js → repository-cache-bee3dq4t.js} +5 -5
- package/dist/chunks/{persistent-pty-nf6qtgmx.js → repository-cache-bfknhky6.js} +17 -17
- package/dist/chunks/{persistent-pty-amwp0aeg.js → repository-cache-bgjq6n3s.js} +48 -48
- package/dist/chunks/{persistent-pty-ar2j3j0f.js → repository-cache-bjhzkqyk.js} +4 -4
- package/dist/chunks/{persistent-pty-3pjdfsqh.js → repository-cache-bkp072jg.js} +8 -8
- package/dist/chunks/{persistent-pty-z18nf20h.js → repository-cache-bqwdyg2t.js} +9 -9
- package/dist/chunks/{persistent-pty-bstexjd6.js → repository-cache-bstexjd6.js} +1 -1
- package/dist/chunks/{persistent-pty-c0ahb6m2.js → repository-cache-bwsq2f4f.js} +48 -48
- package/dist/chunks/{persistent-pty-ak32zwvb.js → repository-cache-bx39zcgj.js} +11 -11
- package/dist/chunks/{persistent-pty-1689f439.js → repository-cache-bygpv8tp.js} +5 -5
- package/dist/chunks/{persistent-pty-h9gq6eq0.js → repository-cache-c1wt3632.js} +2 -2
- package/dist/chunks/{persistent-pty-h4ja5x6t.js → repository-cache-c295kw9q.js} +6 -6
- package/dist/chunks/{persistent-pty-c3cfh5w6.js → repository-cache-c3cfh5w6.js} +2 -2
- package/dist/chunks/{persistent-pty-1z6jjy5p.js → repository-cache-c8666r4c.js} +6 -6
- package/dist/chunks/{persistent-pty-c9t2ty9q.js → repository-cache-c9t2ty9q.js} +1 -1
- package/dist/chunks/{persistent-pty-zkvx2ye6.js → repository-cache-cb840yf6.js} +22 -22
- package/dist/chunks/{persistent-pty-ptp6ncr1.js → repository-cache-cegnsd8m.js} +33 -33
- package/dist/chunks/{persistent-pty-d4v9tmah.js → repository-cache-d4v9tmah.js} +2 -2
- package/dist/chunks/{persistent-pty-b0wr9pq4.js → repository-cache-d5p6tmrf.js} +14 -14
- package/dist/chunks/{persistent-pty-0gxwnce6.js → repository-cache-d79ca6ae.js} +14 -14
- package/dist/chunks/{persistent-pty-4v888qby.js → repository-cache-d8zqpry0.js} +10 -10
- package/dist/chunks/{persistent-pty-a9ya4442.js → repository-cache-daa7zsg6.js} +35 -35
- package/dist/chunks/{persistent-pty-xcawzme1.js → repository-cache-dapvcjq1.js} +22 -22
- package/dist/chunks/{persistent-pty-2bky7t1z.js → repository-cache-dexpzvpz.js} +66 -66
- package/dist/chunks/{persistent-pty-3837d0nm.js → repository-cache-dgc6zgst.js} +5 -5
- package/dist/chunks/{persistent-pty-b430ghfg.js → repository-cache-dqfcynkm.js} +48 -48
- package/dist/chunks/{persistent-pty-04qzb6ng.js → repository-cache-dvhq7cxa.js} +18 -18
- package/dist/chunks/{persistent-pty-ap300940.js → repository-cache-dy4mqkt9.js} +4 -4
- package/dist/chunks/{persistent-pty-z5ya83ez.js → repository-cache-e34d40ft.js} +15 -15
- package/dist/chunks/{persistent-pty-5qd3pb7m.js → repository-cache-e3qxr5gk.js} +2 -2
- package/dist/chunks/{persistent-pty-w9w8mt4n.js → repository-cache-e45fk36t.js} +4 -4
- package/dist/chunks/{persistent-pty-e834z07m.js → repository-cache-e834z07m.js} +1 -1
- package/dist/chunks/{persistent-pty-tmd1r8tg.js → repository-cache-e8pm465n.js} +4 -4
- package/dist/chunks/{persistent-pty-ef5x83kb.js → repository-cache-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-wjj9j73p.js → repository-cache-efrks8s7.js} +35 -35
- package/dist/chunks/{persistent-pty-gd1vvcjv.js → repository-cache-epb2tz48.js} +6 -6
- package/dist/chunks/{persistent-pty-4dzz3k2c.js → repository-cache-epqvz6sp.js} +10 -10
- package/dist/chunks/{persistent-pty-b25rcpjn.js → repository-cache-etxarc0c.js} +5 -5
- package/dist/chunks/{persistent-pty-knck272c.js → repository-cache-ex2c5m6n.js} +24 -24
- package/dist/chunks/{persistent-pty-4nnbnrz1.js → repository-cache-f1d6w5yp.js} +11 -11
- package/dist/chunks/{persistent-pty-3z6cn8x0.js → repository-cache-f2kxhge1.js} +15 -15
- package/dist/chunks/{persistent-pty-2dwppexq.js → repository-cache-fayv5fjb.js} +44 -44
- package/dist/chunks/{persistent-pty-p5fvs1tf.js → repository-cache-fbmv4zkf.js} +32 -32
- package/dist/chunks/{persistent-pty-jcq455ft.js → repository-cache-fera0h98.js} +10 -10
- package/dist/chunks/{persistent-pty-fffv3p7h.js → repository-cache-fffv3p7h.js} +1 -1
- package/dist/chunks/{persistent-pty-77ffb5fa.js → repository-cache-fhcyw9er.js} +5 -5
- package/dist/chunks/{persistent-pty-fznmdakp.js → repository-cache-fznmdakp.js} +1 -1
- package/dist/chunks/{persistent-pty-hqqyr421.js → repository-cache-g3dxjs5g.js} +28 -28
- package/dist/chunks/{persistent-pty-1ncazf2z.js → repository-cache-g4nys0an.js} +19 -19
- package/dist/chunks/{persistent-pty-0vawvjhj.js → repository-cache-g4y5gz37.js} +6 -6
- package/dist/chunks/{persistent-pty-g5h9c0rr.js → repository-cache-g5h9c0rr.js} +2 -2
- package/dist/chunks/{persistent-pty-m37sd98t.js → repository-cache-g7esga4v.js} +7 -7
- package/dist/chunks/{persistent-pty-epts1v3z.js → repository-cache-g8ptsmqj.js} +14 -14
- package/dist/chunks/{persistent-pty-msgnwe08.js → repository-cache-g96fpxa4.js} +4 -4
- package/dist/chunks/{persistent-pty-57y9frfy.js → repository-cache-ga3nj1ct.js} +11 -11
- package/dist/chunks/{persistent-pty-c97kafxv.js → repository-cache-gvq5deds.js} +12 -12
- package/dist/chunks/{persistent-pty-wgxpxc97.js → repository-cache-h04fff7h.js} +40 -40
- package/dist/chunks/{persistent-pty-506rfma8.js → repository-cache-h0prck52.js} +14 -14
- package/dist/chunks/{persistent-pty-jc99n3kj.js → repository-cache-h5q3bctd.js} +20 -20
- package/dist/chunks/{persistent-pty-y4rx9zcm.js → repository-cache-hfwb91mh.js} +22 -22
- package/dist/chunks/{persistent-pty-mr4m2xt3.js → repository-cache-hgyydanp.js} +32 -32
- package/dist/chunks/{persistent-pty-pnb0v8tr.js → repository-cache-hpfjxvqq.js} +19 -19
- package/dist/chunks/{persistent-pty-kqnnmbvx.js → repository-cache-hv3v4m8k.js} +34 -34
- package/dist/chunks/{persistent-pty-2m6p7yk7.js → repository-cache-hvnf17n2.js} +19 -19
- package/dist/chunks/repository-cache-hwag7jbr.js +523 -0
- package/dist/chunks/{persistent-pty-603avsaw.js → repository-cache-hy96gn3p.js} +11 -11
- package/dist/chunks/{persistent-pty-j113cymg.js → repository-cache-j113cymg.js} +1 -1
- package/dist/chunks/{persistent-pty-yw5cr2kg.js → repository-cache-j1sdj48j.js} +24 -24
- package/dist/chunks/{persistent-pty-231a8wys.js → repository-cache-j49x6kf4.js} +8 -8
- package/dist/chunks/{persistent-pty-4b0snw21.js → repository-cache-j5c0nw1x.js} +14 -14
- package/dist/chunks/{persistent-pty-wjfsv5vx.js → repository-cache-j623kct8.js} +184 -184
- package/dist/chunks/{persistent-pty-rmt6m6se.js → repository-cache-jcqm84fr.js} +9 -9
- package/dist/chunks/{persistent-pty-ep8g8f2q.js → repository-cache-jgzdw78p.js} +18 -18
- package/dist/chunks/{persistent-pty-kedzwwnr.js → repository-cache-jkg2pe84.js} +4 -4
- package/dist/chunks/{persistent-pty-w2jp9fqe.js → repository-cache-js4fqk0b.js} +32 -32
- package/dist/chunks/{persistent-pty-yte8j0g9.js → repository-cache-js82nf9k.js} +14 -14
- package/dist/chunks/{persistent-pty-8y3ed661.js → repository-cache-jsqqb0ba.js} +9 -9
- package/dist/chunks/{persistent-pty-9e7skq3b.js → repository-cache-jz5m0jmz.js} +57 -57
- package/dist/chunks/{persistent-pty-k814nvkf.js → repository-cache-k814nvkf.js} +1 -1
- package/dist/chunks/{persistent-pty-k0c2abhw.js → repository-cache-kmpm0sjp.js} +13 -13
- package/dist/chunks/{persistent-pty-epv93m9y.js → repository-cache-kpyf14q1.js} +15 -15
- package/dist/chunks/{persistent-pty-8zn70gxd.js → repository-cache-kq1mzbp8.js} +24 -24
- package/dist/chunks/{persistent-pty-n9qkr232.js → repository-cache-ks3wwvy5.js} +9 -9
- package/dist/chunks/{persistent-pty-3b8pv6kk.js → repository-cache-kzkf7na7.js} +25 -25
- package/dist/chunks/{persistent-pty-m1714858.js → repository-cache-m1714858.js} +1 -1
- package/dist/chunks/{persistent-pty-630bcr6j.js → repository-cache-m1gzeghs.js} +13 -13
- package/dist/chunks/repository-cache-m2yjxv7r.js +26 -0
- package/dist/chunks/{persistent-pty-vt63w9ze.js → repository-cache-m8wgw1ap.js} +20 -20
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → repository-cache-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-4jq3hvv0.js → repository-cache-majbhfqf.js} +8 -8
- package/dist/chunks/{persistent-pty-9p9xqj3m.js → repository-cache-masd7ga8.js} +8 -8
- package/dist/chunks/{persistent-pty-maspj1v3.js → repository-cache-maspj1v3.js} +1 -1
- package/dist/chunks/{persistent-pty-97arjhc9.js → repository-cache-mkadae17.js} +21 -21
- package/dist/chunks/{persistent-pty-jrqenxex.js → repository-cache-mt89smwx.js} +11 -11
- package/dist/chunks/{persistent-pty-n0p0277s.js → repository-cache-n0p0277s.js} +1 -1
- package/dist/chunks/{persistent-pty-v568fy96.js → repository-cache-n3mttp9c.js} +39 -39
- package/dist/chunks/{persistent-pty-xzhmj86d.js → repository-cache-n6q34c7t.js} +4 -4
- package/dist/chunks/{persistent-pty-a4316p25.js → repository-cache-nn952gpa.js} +27 -27
- package/dist/chunks/{persistent-pty-4s573z1s.js → repository-cache-nvvc4vjs.js} +4 -4
- package/dist/chunks/{persistent-pty-p015t6z3.js → repository-cache-p015t6z3.js} +2 -2
- package/dist/chunks/{persistent-pty-fvc4bqe2.js → repository-cache-pacbbjc0.js} +5 -5
- package/dist/chunks/{persistent-pty-dh62xe4r.js → repository-cache-pc1v25hk.js} +3 -3
- package/dist/chunks/{persistent-pty-pknna89w.js → repository-cache-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-kjzbhe9f.js → repository-cache-pkwzrktv.js} +25 -25
- package/dist/chunks/{persistent-pty-jmz0pryv.js → repository-cache-pq54n2x2.js} +17 -17
- package/dist/chunks/{persistent-pty-nvk1va1n.js → repository-cache-q8f5hf3a.js} +33 -33
- package/dist/chunks/{persistent-pty-1xxray5a.js → repository-cache-q92ejtxw.js} +30 -30
- package/dist/chunks/{persistent-pty-hsn14kaz.js → repository-cache-q9vkgwxm.js} +50 -50
- package/dist/chunks/{persistent-pty-qjgzc4b4.js → repository-cache-qjgzc4b4.js} +1 -1
- package/dist/chunks/{persistent-pty-z5dq5ktq.js → repository-cache-qjx0zx6g.js} +28 -28
- package/dist/chunks/{persistent-pty-2f50b9jg.js → repository-cache-qkxp7296.js} +1 -1
- package/dist/chunks/repository-cache-qnhptmb8.js +257 -0
- package/dist/chunks/{persistent-pty-mcbaxyan.js → repository-cache-qnst15rb.js} +13 -13
- package/dist/chunks/{persistent-pty-p0tsr9h6.js → repository-cache-qqg9c0kv.js} +4 -4
- package/dist/chunks/{persistent-pty-r0yr0wbs.js → repository-cache-r0yr0wbs.js} +1 -1
- package/dist/chunks/{persistent-pty-k6e6yg7w.js → repository-cache-r4xyerk1.js} +47 -47
- package/dist/chunks/{persistent-pty-rb9dy4dg.js → repository-cache-rb9dy4dg.js} +1 -1
- package/dist/chunks/{persistent-pty-qqef8819.js → repository-cache-rdcxq6dg.js} +35 -35
- package/dist/chunks/{persistent-pty-wqb48wsw.js → repository-cache-rfkydm6q.js} +45 -45
- package/dist/chunks/{persistent-pty-rt5dr6hb.js → repository-cache-rt5dr6hb.js} +1 -1
- package/dist/chunks/{persistent-pty-d622t3vc.js → repository-cache-ry1q6mjw.js} +17 -17
- package/dist/chunks/{persistent-pty-z600r55a.js → repository-cache-s1bnsxce.js} +35 -35
- package/dist/chunks/{persistent-pty-ypqy3h3f.js → repository-cache-s1s90sgh.js} +11 -11
- package/dist/chunks/{persistent-pty-hffck5p6.js → repository-cache-s2dpb278.js} +36 -36
- package/dist/chunks/{persistent-pty-c4970w7t.js → repository-cache-s2pfznc4.js} +6 -6
- package/dist/chunks/{persistent-pty-d2dx6a7h.js → repository-cache-s7kyse9r.js} +9 -9
- package/dist/chunks/{persistent-pty-437171mk.js → repository-cache-scxnsnp9.js} +12 -12
- package/dist/chunks/{persistent-pty-26d30kmm.js → repository-cache-shmxrrpn.js} +26 -26
- package/dist/chunks/{persistent-pty-n8ys9nef.js → repository-cache-spy53wnz.js} +25 -25
- package/dist/chunks/{persistent-pty-sqjzf8x2.js → repository-cache-sqjzf8x2.js} +1 -1
- package/dist/chunks/{persistent-pty-10jwkg0d.js → repository-cache-sqtvtx7d.js} +22 -22
- package/dist/chunks/{persistent-pty-m9458166.js → repository-cache-ss1jzj40.js} +33 -33
- package/dist/chunks/{persistent-pty-9k8g54ar.js → repository-cache-sy5y9pr1.js} +14 -14
- package/dist/chunks/{persistent-pty-3y9jhrfk.js → repository-cache-t746b1c9.js} +15 -15
- package/dist/chunks/{persistent-pty-9nc01p2h.js → repository-cache-taa02m37.js} +13 -13
- package/dist/chunks/{persistent-pty-tczq8hjw.js → repository-cache-tczq8hjw.js} +1 -1
- package/dist/chunks/{persistent-pty-5s24fm1p.js → repository-cache-tjze7m48.js} +14 -14
- package/dist/chunks/{persistent-pty-pb7j0m6g.js → repository-cache-tmmqa6ew.js} +17 -17
- package/dist/chunks/{persistent-pty-2xk6ct32.js → repository-cache-tqwxcfvf.js} +23 -23
- package/dist/chunks/{persistent-pty-v1smpbvx.js → repository-cache-trtfktz1.js} +25 -25
- package/dist/chunks/{persistent-pty-gsnt20he.js → repository-cache-tsfhzs96.js} +25 -25
- package/dist/chunks/{persistent-pty-tw8zr1ps.js → repository-cache-tw8zr1ps.js} +1 -1
- package/dist/chunks/{persistent-pty-twv2r8f4.js → repository-cache-twv2r8f4.js} +2 -2
- package/dist/chunks/{persistent-pty-6wm2ekws.js → repository-cache-txs3q12t.js} +24 -24
- package/dist/chunks/{persistent-pty-nbtna00v.js → repository-cache-v0r2q4dy.js} +23 -23
- package/dist/chunks/{persistent-pty-v2r1d0zg.js → repository-cache-v2r1d0zg.js} +1 -1
- package/dist/chunks/{persistent-pty-jfjbts63.js → repository-cache-v5gy4fh6.js} +8 -8
- package/dist/chunks/{persistent-pty-q7hewr9v.js → repository-cache-v9snnrq5.js} +24 -24
- package/dist/chunks/{persistent-pty-vd3b3yk9.js → repository-cache-vd3b3yk9.js} +1 -1
- package/dist/chunks/{persistent-pty-3k9f0r09.js → repository-cache-vdkq80q2.js} +22 -22
- package/dist/chunks/{persistent-pty-veqvce7d.js → repository-cache-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-8xz0jfv3.js → repository-cache-vhv0edzw.js} +6 -6
- package/dist/chunks/{persistent-pty-vm0wcjea.js → repository-cache-vm0wcjea.js} +2 -2
- package/dist/chunks/{persistent-pty-ncjgtf7q.js → repository-cache-vmvx5n1d.js} +11 -11
- package/dist/chunks/{persistent-pty-4pa8nav4.js → repository-cache-vx3jgdek.js} +3 -3
- package/dist/chunks/{persistent-pty-18qnwgya.js → repository-cache-w12njt9q.js} +5 -5
- package/dist/chunks/{persistent-pty-5enarcya.js → repository-cache-w2eysc6j.js} +6 -6
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → repository-cache-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-76cb1hcw.js → repository-cache-w8qtt4th.js} +4 -4
- package/dist/chunks/{persistent-pty-0a4e2wep.js → repository-cache-w9kbxh01.js} +19 -19
- package/dist/chunks/{persistent-pty-wakvkjy4.js → repository-cache-wakvkjy4.js} +1 -1
- package/dist/chunks/{persistent-pty-ssg99487.js → repository-cache-wcqq4kvm.js} +37 -37
- package/dist/chunks/{persistent-pty-wd87259q.js → repository-cache-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-f2m57aq3.js → repository-cache-wjjhfpfw.js} +7 -7
- package/dist/chunks/{persistent-pty-mgqesnpe.js → repository-cache-x14n6813.js} +10 -10
- package/dist/chunks/{persistent-pty-evvj0048.js → repository-cache-x588deh8.js} +6 -6
- package/dist/chunks/{persistent-pty-qwe9t09h.js → repository-cache-x5qs9jyb.js} +34 -34
- package/dist/chunks/{persistent-pty-kzatpa33.js → repository-cache-xfffv0qn.js} +36 -36
- package/dist/chunks/{persistent-pty-qycnq4qn.js → repository-cache-xj361v57.js} +19 -19
- package/dist/chunks/{persistent-pty-wbrbrqnn.js → repository-cache-xjz1c7y8.js} +3 -3
- package/dist/chunks/{persistent-pty-n8km3ktm.js → repository-cache-xmav9z9e.js} +25 -25
- package/dist/chunks/{persistent-pty-a4extrcm.js → repository-cache-xq0cmmmd.js} +15 -15
- package/dist/chunks/{persistent-pty-6g0s59t4.js → repository-cache-xqaf1wtx.js} +16 -16
- package/dist/chunks/{persistent-pty-zx0t21mj.js → repository-cache-xqwqgje7.js} +13 -13
- package/dist/chunks/{persistent-pty-ws8qaw4q.js → repository-cache-y85xtnja.js} +23 -23
- package/dist/chunks/{persistent-pty-yb20nhc3.js → repository-cache-yb20nhc3.js} +1 -1
- package/dist/chunks/{persistent-pty-tg1vr1qt.js → repository-cache-ydsespw1.js} +8 -8
- package/dist/chunks/{persistent-pty-9mw7dhxy.js → repository-cache-ygxwp2qk.js} +57 -57
- package/dist/chunks/{persistent-pty-4ccqqpnm.js → repository-cache-ykqsc6sd.js} +12 -12
- package/dist/chunks/{persistent-pty-79fsmkt2.js → repository-cache-ytbmzjv3.js} +12 -12
- package/dist/chunks/{persistent-pty-cmtp12gq.js → repository-cache-yxeqx0e7.js} +9 -9
- package/dist/chunks/{persistent-pty-jefvzq89.js → repository-cache-yyb6gzd4.js} +11 -11
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → repository-cache-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-gbkbh0za.js → repository-cache-z2wxp724.js} +33 -33
- package/dist/chunks/{persistent-pty-z38nccrw.js → repository-cache-z38nccrw.js} +1 -1
- package/dist/chunks/{persistent-pty-m8qqb4k3.js → repository-cache-z5gn6yp1.js} +40 -40
- package/dist/chunks/{persistent-pty-c5mdmb7d.js → repository-cache-z5k5qppw.js} +9 -9
- package/dist/chunks/{persistent-pty-zkg84ctx.js → repository-cache-zkg84ctx.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +117 -117
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +89 -89
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +106 -106
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +109 -109
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -360
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +159 -159
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +119 -119
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +115 -115
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +162 -162
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +224 -224
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +91 -91
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -101
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +164 -164
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +130 -130
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +139 -139
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +217 -217
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-d77dj7jw.js +0 -18
- package/dist/chunks/persistent-pty-ddefqdxn.js +0 -257
- package/dist/chunks/persistent-pty-dj18ndtz.js +0 -26
- package/dist/chunks/persistent-pty-fzppqy49.js +0 -523
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → repository-cache-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → repository-cache-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → repository-cache-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → repository-cache-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → repository-cache-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → repository-cache-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2bv980vf.js → repository-cache-2bv980vf.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → repository-cache-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → repository-cache-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → repository-cache-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → repository-cache-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → repository-cache-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → repository-cache-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → repository-cache-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → repository-cache-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → repository-cache-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → repository-cache-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → repository-cache-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-5fjb7ams.js → repository-cache-5fjb7ams.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → repository-cache-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-6q2bdcd1.js → repository-cache-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → repository-cache-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → repository-cache-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → repository-cache-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-84wd9syh.js → repository-cache-84wd9syh.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → repository-cache-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → repository-cache-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → repository-cache-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → repository-cache-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → repository-cache-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a058387c.js → repository-cache-a058387c.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → repository-cache-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → repository-cache-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → repository-cache-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → repository-cache-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → repository-cache-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → repository-cache-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → repository-cache-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → repository-cache-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → repository-cache-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → repository-cache-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → repository-cache-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → repository-cache-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → repository-cache-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → repository-cache-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → repository-cache-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → repository-cache-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → repository-cache-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → repository-cache-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → repository-cache-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → repository-cache-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → repository-cache-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → repository-cache-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → repository-cache-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → repository-cache-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → repository-cache-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → repository-cache-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → repository-cache-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → repository-cache-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hcxmzztb.js → repository-cache-hcxmzztb.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → repository-cache-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → repository-cache-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → repository-cache-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → repository-cache-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → repository-cache-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → repository-cache-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jze0r7bz.js → repository-cache-jze0r7bz.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → repository-cache-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-m18g726c.js → repository-cache-m18g726c.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → repository-cache-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → repository-cache-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → repository-cache-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → repository-cache-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → repository-cache-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-pkyv6v7h.js → repository-cache-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → repository-cache-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → repository-cache-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → repository-cache-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → repository-cache-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → repository-cache-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → repository-cache-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → repository-cache-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → repository-cache-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → repository-cache-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → repository-cache-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ve7vex1e.js → repository-cache-ve7vex1e.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → repository-cache-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → repository-cache-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → repository-cache-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wjj7prxr.js → repository-cache-wjj7prxr.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → repository-cache-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → repository-cache-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → repository-cache-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → repository-cache-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → repository-cache-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → repository-cache-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → repository-cache-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z5v4ffb3.js → repository-cache-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → repository-cache-z9919s4g.js} +0 -0
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-qjgzc4b4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service84,
|
|
6
|
+
node88
|
|
7
|
+
} from "./repository-cache-ykqsc6sd.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service80,
|
|
11
|
+
node84
|
|
12
|
+
} from "./repository-cache-z2wxp724.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service81,
|
|
15
|
+
node85
|
|
16
|
+
} from "./repository-cache-g8ptsmqj.js";
|
|
17
17
|
import {
|
|
18
|
-
Service65,
|
|
19
|
-
node68
|
|
20
|
-
} from "./persistent-pty-14x9rdgq.js";
|
|
21
|
-
import {
|
|
22
|
-
ID11,
|
|
23
18
|
Service72,
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
19
|
+
node74
|
|
20
|
+
} from "./repository-cache-ajjhf6jy.js";
|
|
21
|
+
import {
|
|
22
|
+
ID15,
|
|
23
|
+
Service79,
|
|
24
|
+
node83
|
|
25
|
+
} from "./repository-cache-g3dxjs5g.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./repository-cache-vd3b3yk9.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service78,
|
|
34
|
+
node82
|
|
35
|
+
} from "./repository-cache-ss1jzj40.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
@@ -49,12 +49,12 @@ __export(exports_mcp4, {
|
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service34,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
55
|
configured: () => configured3,
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
56
|
+
layer: () => layer15,
|
|
57
|
+
node: () => node38
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -104,7 +104,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
104
104
|
var endpointLoads = makeUnsafe2();
|
|
105
105
|
var cloneConfig = (config) => structuredClone(config);
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service34 extends Context.Service()("@opencode/MCP") {
|
|
108
108
|
}
|
|
109
109
|
var Options3 = Schema.Struct({
|
|
110
110
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -112,13 +112,13 @@ var Options3 = Schema.Struct({
|
|
|
112
112
|
version: Schema.String
|
|
113
113
|
}))
|
|
114
114
|
});
|
|
115
|
-
var
|
|
116
|
-
const location = yield*
|
|
117
|
-
const environment = yield*
|
|
118
|
-
const bus = yield*
|
|
119
|
-
const forms = yield*
|
|
120
|
-
const integration = yield*
|
|
121
|
-
const credentials = yield*
|
|
115
|
+
var layer15 = (options) => Layer.effect(Service34, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service81;
|
|
117
|
+
const environment = yield* Service72;
|
|
118
|
+
const bus = yield* Service84;
|
|
119
|
+
const forms = yield* Service79;
|
|
120
|
+
const integration = yield* Service78;
|
|
121
|
+
const credentials = yield* Service80;
|
|
122
122
|
const root = yield* Effect.scope;
|
|
123
123
|
const fork = yield* FiberSet.makeRuntime();
|
|
124
124
|
const entries = new Map;
|
|
@@ -132,7 +132,7 @@ var layer16 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
132
132
|
return;
|
|
133
133
|
const remote = entry.config;
|
|
134
134
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
135
|
-
const integrationID =
|
|
135
|
+
const integrationID = ID14.make(suffix);
|
|
136
136
|
entry.integrationID = integrationID;
|
|
137
137
|
owned.add(integrationID);
|
|
138
138
|
const methodID = MethodID2.make(suffix);
|
|
@@ -148,7 +148,7 @@ var layer16 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
148
148
|
method: { id: methodID, type: "oauth", label: name },
|
|
149
149
|
authorize: () => Effect.gen(function* () {
|
|
150
150
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
151
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
151
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service80, credentials));
|
|
152
152
|
})
|
|
153
153
|
});
|
|
154
154
|
}).pipe(Scope.provide(scope));
|
|
@@ -163,12 +163,12 @@ var layer16 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
163
163
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
164
164
|
return;
|
|
165
165
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
166
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
166
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service80, credentials));
|
|
167
167
|
});
|
|
168
168
|
const elicitation = {
|
|
169
169
|
create: (input) => Effect.gen(function* () {
|
|
170
170
|
if (input.params.mode === "url") {
|
|
171
|
-
const formID =
|
|
171
|
+
const formID = ID15.create();
|
|
172
172
|
const elicitationID = input.params.elicitationId;
|
|
173
173
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
174
174
|
if (key)
|
|
@@ -271,7 +271,7 @@ var layer16 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
271
271
|
entry.scope = scope;
|
|
272
272
|
const authProvider = yield* connectProvider(entry);
|
|
273
273
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
274
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
274
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service72, environment), Scope.provide(scope));
|
|
275
275
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
276
276
|
if (Exit.isSuccess(result)) {
|
|
277
277
|
entry.client = result.value.connection;
|
|
@@ -372,7 +372,7 @@ var layer16 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
372
372
|
let closed = false;
|
|
373
373
|
const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
|
|
374
374
|
closed = true;
|
|
375
|
-
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
375
|
+
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service72, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
|
|
376
376
|
const register = Effect.gen(function* () {
|
|
377
377
|
if (closed) {
|
|
378
378
|
yield* Scope.close(scope, Exit.void);
|
|
@@ -447,7 +447,7 @@ var layer16 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
447
447
|
yield* startServer(name, entry);
|
|
448
448
|
}).pipe(locks.withLock(name));
|
|
449
449
|
});
|
|
450
|
-
fork(bus.subscribe(
|
|
450
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
451
451
|
const state = create3({
|
|
452
452
|
name: "mcp",
|
|
453
453
|
initial: () => ({
|
|
@@ -473,7 +473,7 @@ var layer16 = (options) => Layer.effect(Service37, Effect.gen(function* () {
|
|
|
473
473
|
}),
|
|
474
474
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
475
475
|
});
|
|
476
|
-
return
|
|
476
|
+
return Service34.of({
|
|
477
477
|
transform: state.transform,
|
|
478
478
|
reload: state.reload,
|
|
479
479
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -603,12 +603,12 @@ function mergeCatalogs(catalogs) {
|
|
|
603
603
|
}
|
|
604
604
|
function configured3(options) {
|
|
605
605
|
return makeLocationNode({
|
|
606
|
-
service:
|
|
607
|
-
layer:
|
|
608
|
-
deps: [
|
|
606
|
+
service: Service34,
|
|
607
|
+
layer: layer15(options),
|
|
608
|
+
deps: [node85, node74, node88, node83, node82, node84]
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
|
-
var
|
|
611
|
+
var node38 = configured3();
|
|
612
612
|
function toElicitationField(key, property, required) {
|
|
613
613
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
614
614
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -659,4 +659,4 @@ function toElicitationField(key, property, required) {
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
|
|
662
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2,
|
|
662
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2, Service34, Options3, layer15, configured3, node38, exports_mcp4 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service64
|
|
4
|
+
} from "./repository-cache-bgjq6n3s.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service63
|
|
7
|
+
} from "./repository-cache-3f8v07ch.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-cache-6pjqjmy2.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/tool-output.ts
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin23
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin23 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service64;
|
|
27
|
+
const output = yield* Service63;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin10 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin23, exports_tool_output };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID14,
|
|
3
|
+
Service78
|
|
4
|
+
} from "./repository-cache-ss1jzj40.js";
|
|
5
5
|
|
|
6
6
|
// src/plugin/provider/llmgateway.ts
|
|
7
7
|
import { Effect } from "effect";
|
|
@@ -9,7 +9,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
9
9
|
var LLMGatewayPlugin2 = define({
|
|
10
10
|
id: "opencode.provider.llmgateway",
|
|
11
11
|
effect: Effect.fn(function* (ctx) {
|
|
12
|
-
const integrations = yield*
|
|
12
|
+
const integrations = yield* Service78;
|
|
13
13
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
14
14
|
yield* ctx.provider.transform((evt) => {
|
|
15
15
|
for (const item of evt.list()) {
|
|
@@ -19,7 +19,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
19
19
|
continue;
|
|
20
20
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
21
21
|
continue;
|
|
22
|
-
if (!configured.has(
|
|
22
|
+
if (!configured.has(ID14.make(item.provider.id)))
|
|
23
23
|
continue;
|
|
24
24
|
evt.update(item.provider.id, (provider) => {
|
|
25
25
|
provider.headers = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
kept2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-v2r1d0zg.js";
|
|
4
4
|
import {
|
|
5
5
|
NativeWindow2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-507qjdd6.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/to-llm-message.ts
|
|
9
9
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make19,
|
|
14
|
+
node: () => node76,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make19 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node76 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error5, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make19, RegistryService2, registry2, registryNode2, node76, exports_driver };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/project/schema.ts
|
|
9
9
|
var exports_schema = {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
policy3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-n0p0277s.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionEvent2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-ec1grn59.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/retry.ts
|
|
12
12
|
var exports_retry = {};
|
|
13
13
|
__export(exports_retry, {
|
|
14
14
|
SessionRunnerRetry: () => exports_retry,
|
|
15
15
|
isRetryable: () => isRetryable2,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make9,
|
|
17
17
|
policy: () => policy2
|
|
18
18
|
});
|
|
19
19
|
import { isRetryable as isRetryable2 } from "@opencode/ai";
|
|
@@ -39,7 +39,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
|
|
|
39
39
|
return { retry: true, attempt: next.attempt, delay: normalized };
|
|
40
40
|
});
|
|
41
41
|
});
|
|
42
|
-
var
|
|
42
|
+
var make9 = (bus, sessionID) => Effect.gen(function* () {
|
|
43
43
|
const decide = yield* policy2(sessionID);
|
|
44
44
|
const wait = (input) => Effect.gen(function* () {
|
|
45
45
|
const scheduled = yield* Clock.currentTimeMillis;
|
|
@@ -56,4 +56,4 @@ var make10 = (bus, sessionID) => Effect.gen(function* () {
|
|
|
56
56
|
return { decide, wait };
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
export { isRetryable2, policy2,
|
|
59
|
+
export { isRetryable2, policy2, make9, exports_retry };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
+
Service84,
|
|
4
|
+
node88
|
|
5
|
+
} from "./repository-cache-ykqsc6sd.js";
|
|
6
|
+
import {
|
|
3
7
|
Service85,
|
|
4
8
|
node89
|
|
5
|
-
} from "./
|
|
6
|
-
import {
|
|
7
|
-
Service75,
|
|
8
|
-
node79
|
|
9
|
-
} from "./persistent-pty-jcq455ft.js";
|
|
9
|
+
} from "./repository-cache-fera0h98.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event12,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service66,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node68,
|
|
26
|
+
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -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 Service66 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event12 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -57,7 +57,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
57
57
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
58
58
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.timeout(requestTimeout), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
59
59
|
});
|
|
60
|
-
var
|
|
60
|
+
var resolve2 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
61
61
|
const manifest = yield* inspect2(input.origin);
|
|
62
62
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
63
63
|
});
|
|
@@ -79,10 +79,10 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
85
|
-
const bus = yield*
|
|
84
|
+
const kv = yield* Service85;
|
|
85
|
+
const bus = yield* Service84;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
88
88
|
const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event12.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service66.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event12.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event12.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node68 = makeGlobalNode({ service: Service66, layer, deps: [httpClient, node89, node88] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service66, Event12, inspect2, resolve2, node68, exports_wellknown };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service84,
|
|
3
|
+
node88
|
|
4
|
+
} from "./repository-cache-ykqsc6sd.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./repository-cache-e34d40ft.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-cache-a058387c.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError2,
|
|
20
|
+
Options: () => Options2,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
available: () =>
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
22
|
+
Service: () => Service20,
|
|
23
|
+
UnavailableError: () => UnavailableError2,
|
|
24
|
+
available: () => available2,
|
|
25
|
+
configured: () => configured2,
|
|
26
|
+
layer: () => layer10,
|
|
27
|
+
node: () => node23
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -34,26 +34,26 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
34
34
|
import { Global } from "@opencode/util/global";
|
|
35
35
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
36
36
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
37
|
-
import { available as
|
|
38
|
-
var
|
|
37
|
+
import { available as available2 } from "#persistent-pty-binary";
|
|
38
|
+
var Options2 = Schema.Struct({
|
|
39
39
|
handoff: Schema.optional(Handoff),
|
|
40
40
|
root: Schema.optional(Schema.String)
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
44
44
|
message: Schema.String
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class NotFoundError2 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
49
49
|
ptyID: Pty.ID
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service20 extends Context.Service()("@opencode/PersistentPty") {
|
|
54
54
|
}
|
|
55
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
56
|
-
const bus = yield*
|
|
55
|
+
var makeLayer = (options = {}) => Layer.effect(Service20, Effect.gen(function* () {
|
|
56
|
+
const bus = yield* Service84;
|
|
57
57
|
const global = yield* Global.Service;
|
|
58
58
|
const context = yield* Effect.context();
|
|
59
59
|
const runFork = Effect.runForkWith(context);
|
|
@@ -75,7 +75,7 @@ var makeLayer = (options = {}) => Layer.effect(Service69, Effect.gen(function* (
|
|
|
75
75
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
76
76
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
77
77
|
if (!found)
|
|
78
|
-
return yield* new
|
|
78
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
79
79
|
return found;
|
|
80
80
|
});
|
|
81
81
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -165,7 +165,7 @@ var makeLayer = (options = {}) => Layer.effect(Service69, Effect.gen(function* (
|
|
|
165
165
|
});
|
|
166
166
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
167
167
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
168
|
-
return yield* new
|
|
168
|
+
return yield* new UnavailableError2({ message: "lines must be an integer between 1 and 65535" });
|
|
169
169
|
const id = current.get(sessionID);
|
|
170
170
|
if (!id)
|
|
171
171
|
return null;
|
|
@@ -242,7 +242,7 @@ var makeLayer = (options = {}) => Layer.effect(Service69, Effect.gen(function* (
|
|
|
242
242
|
detach: attachment.detach
|
|
243
243
|
};
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return Service20.of({
|
|
246
246
|
list,
|
|
247
247
|
get,
|
|
248
248
|
create,
|
|
@@ -258,17 +258,17 @@ var makeLayer = (options = {}) => Layer.effect(Service69, Effect.gen(function* (
|
|
|
258
258
|
attach
|
|
259
259
|
});
|
|
260
260
|
}));
|
|
261
|
-
var
|
|
262
|
-
var
|
|
263
|
-
service:
|
|
264
|
-
layer: options === undefined ?
|
|
265
|
-
deps: [
|
|
261
|
+
var layer10 = makeLayer();
|
|
262
|
+
var configured2 = (options) => makeGlobalNode({
|
|
263
|
+
service: Service20,
|
|
264
|
+
layer: options === undefined ? layer10 : makeLayer(options),
|
|
265
|
+
deps: [node88, Global.node]
|
|
266
266
|
});
|
|
267
|
-
var
|
|
267
|
+
var node23 = configured2();
|
|
268
268
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
269
269
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
270
|
-
var unexpected = (response) => Effect.fail(new
|
|
271
|
-
var unavailable = (error) => new
|
|
270
|
+
var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
271
|
+
var unavailable = (error) => new UnavailableError2({ message: error instanceof Error ? error.message : String(error) });
|
|
272
272
|
function toInfo(value) {
|
|
273
273
|
const status = value.lifecycle.status;
|
|
274
274
|
return {
|
|
@@ -300,4 +300,4 @@ function fromID(value) {
|
|
|
300
300
|
return parsed;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export {
|
|
303
|
+
export { Options2, UnavailableError2, NotFoundError2, Service20, layer10, configured2, node23, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/worktree/directory.ts
|
|
9
9
|
var exports_directory = {};
|