@opencode/core 0.0.0-dev-20265 → 0.0.0-dev-20271
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{instruction-discovery-4m2ax75s.js → schema-02fx2esq.js} +9 -9
- package/dist/chunks/{instruction-discovery-kjk4f8se.js → schema-03rhqhz8.js} +16 -16
- package/dist/chunks/{instruction-discovery-xj9hgx3w.js → schema-0455hjbt.js} +44 -44
- package/dist/chunks/{instruction-discovery-hbs2xy63.js → schema-04pw375h.js} +10 -10
- package/dist/chunks/{instruction-discovery-cw4qawdd.js → schema-057vntkv.js} +20 -20
- package/dist/chunks/{instruction-discovery-a9zhqkh4.js → schema-0eq7hms9.js} +3 -3
- package/dist/chunks/{instruction-discovery-473yxhcv.js → schema-0gxqnvpq.js} +47 -43
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → schema-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-2syk99rx.js → schema-0pj8398s.js} +27 -27
- package/dist/chunks/{instruction-discovery-0v53mg2y.js → schema-0v53mg2y.js} +1 -1
- package/dist/chunks/{instruction-discovery-97akkmbe.js → schema-0vq4p6sw.js} +11 -11
- package/dist/chunks/{instruction-discovery-22x1keze.js → schema-1380s59h.js} +36 -36
- package/dist/chunks/{instruction-discovery-kcp0xdhb.js → schema-153vd5vc.js} +3 -3
- package/dist/chunks/{instruction-discovery-hzrqtver.js → schema-17d68tkq.js} +20 -20
- package/dist/chunks/{instruction-discovery-1cakvm3y.js → schema-1bt4s3y9.js} +26 -26
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → schema-1dazxqgg.js} +2 -2
- package/dist/chunks/{instruction-discovery-0s2j72ky.js → schema-1xys0ebv.js} +11 -11
- package/dist/chunks/{instruction-discovery-ynn26mj8.js → schema-20mv48v8.js} +10 -10
- package/dist/chunks/{instruction-discovery-21r38tys.js → schema-21r38tys.js} +1 -1
- package/dist/chunks/{instruction-discovery-z63w68vq.js → schema-29x78va6.js} +6 -6
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → schema-2a5m3afh.js} +1 -1
- package/dist/chunks/{instruction-discovery-1vzw8yhg.js → schema-2fjb1j7y.js} +13 -13
- package/dist/chunks/{instruction-discovery-7dqw4kz8.js → schema-2k8khapm.js} +5 -5
- package/dist/chunks/{instruction-discovery-1hcjf4ej.js → schema-2nhp9p6w.js} +20 -20
- package/dist/chunks/{instruction-discovery-6sfywj03.js → schema-2phhkb6s.js} +16 -16
- package/dist/chunks/{instruction-discovery-rcf7gz4p.js → schema-2qfec9vm.js} +15 -15
- package/dist/chunks/{instruction-discovery-jj2cz9da.js → schema-2vxy01ew.js} +9 -9
- package/dist/chunks/{instruction-discovery-h2d9aakw.js → schema-32ygzjnf.js} +10 -10
- package/dist/chunks/{instruction-discovery-vcfhc88h.js → schema-34jh91rq.js} +3 -3
- package/dist/chunks/{instruction-discovery-gg3hnhsj.js → schema-3556dn8t.js} +1 -1
- package/dist/chunks/{instruction-discovery-43sv4aqe.js → schema-37y8hjd0.js} +9 -9
- package/dist/chunks/{instruction-discovery-g96gh810.js → schema-3d5p9naq.js} +16 -16
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → schema-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → schema-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-fqk9fphv.js → schema-3m8k6a97.js} +39 -39
- package/dist/chunks/{instruction-discovery-dkzq4e42.js → schema-3r8mb62a.js} +22 -22
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → schema-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → schema-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → schema-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-0kzn65ts.js → schema-4c27qttd.js} +11 -11
- package/dist/chunks/{instruction-discovery-cpj0znwe.js → schema-4dgbcxzg.js} +4 -4
- package/dist/chunks/schema-4nsycqaw.js +507 -0
- package/dist/chunks/{instruction-discovery-rask17kc.js → schema-4py3js73.js} +9 -9
- package/dist/chunks/{instruction-discovery-q3q4fawj.js → schema-4sn99hha.js} +7 -7
- package/dist/chunks/{instruction-discovery-3rpjb0m5.js → schema-4vcqcfh5.js} +3 -3
- package/dist/chunks/{instruction-discovery-895w93kx.js → schema-4y0jsvk1.js} +20 -20
- package/dist/chunks/{instruction-discovery-a81kfqvn.js → schema-4z58m4b4.js} +4 -4
- package/dist/chunks/{instruction-discovery-2xt5mgkb.js → schema-53fn2v7c.js} +21 -21
- package/dist/chunks/schema-54ma36ye.js +13 -0
- package/dist/chunks/{instruction-discovery-5daktx2q.js → schema-5daktx2q.js} +1 -1
- package/dist/chunks/{instruction-discovery-3p7veh30.js → schema-5q0dqpvd.js} +21 -21
- package/dist/chunks/{instruction-discovery-a00r67f6.js → schema-5szbf8m3.js} +22 -22
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → schema-5t3nmthw.js} +2 -2
- package/dist/chunks/{instruction-discovery-6cqrwtgh.js → schema-5z9p70xw.js} +23 -23
- package/dist/chunks/{instruction-discovery-669tq793.js → schema-669tq793.js} +1 -1
- package/dist/chunks/{instruction-discovery-2v08avye.js → schema-6cknckpe.js} +51 -51
- package/dist/chunks/{instruction-discovery-j17xhp8k.js → schema-6kmx0kce.js} +8 -8
- package/dist/chunks/{instruction-discovery-6msgmcgs.js → schema-6msgmcgs.js} +1 -1
- package/dist/chunks/{instruction-discovery-djktq2qc.js → schema-6q1fpb12.js} +15 -15
- package/dist/chunks/{instruction-discovery-h6310vsd.js → schema-6t4hr8r6.js} +4 -4
- package/dist/chunks/{instruction-discovery-xbqt463g.js → schema-6xvpa3dg.js} +22 -22
- package/dist/chunks/{instruction-discovery-595j6h3z.js → schema-6yfh064v.js} +5 -5
- package/dist/chunks/{instruction-discovery-cytmn42c.js → schema-72b9nwr9.js} +12 -12
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → schema-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-tmezhr7e.js → schema-7bshkk6c.js} +7 -7
- package/dist/chunks/schema-7ggrqnkf.js +252 -0
- package/dist/chunks/{instruction-discovery-6vhktk4v.js → schema-7h24643z.js} +4 -4
- package/dist/chunks/{instruction-discovery-yx62cr6m.js → schema-7kaezs2e.js} +11 -11
- package/dist/chunks/{instruction-discovery-70gtrbvz.js → schema-7mrx23rq.js} +4 -4
- package/dist/chunks/{instruction-discovery-7j2qha59.js → schema-7s2tn799.js} +8 -8
- package/dist/chunks/{instruction-discovery-z5ntc05q.js → schema-7w99qc9d.js} +3 -3
- package/dist/chunks/{instruction-discovery-v0534hbg.js → schema-7x2w03m2.js} +32 -32
- package/dist/chunks/{instruction-discovery-xnbjqws6.js → schema-7xsd729g.js} +6 -6
- package/dist/chunks/{instruction-discovery-w1eejvng.js → schema-84txncab.js} +5 -5
- package/dist/chunks/{instruction-discovery-5e10wf8f.js → schema-84zcxbc9.js} +5 -5
- package/dist/chunks/{instruction-discovery-ab9238g2.js → schema-89e39zcy.js} +6 -6
- package/dist/chunks/{instruction-discovery-je1ehb5s.js → schema-89yhyecc.js} +15 -15
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → schema-89znhe33.js} +4 -4
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → schema-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instruction-discovery-dhzgzdmj.js → schema-8dt2nhtf.js} +27 -27
- package/dist/chunks/{instruction-discovery-ashvnr8e.js → schema-8p8sbe40.js} +2 -2
- package/dist/chunks/{instruction-discovery-vyfbn2ge.js → schema-8phqmggh.js} +8 -8
- package/dist/chunks/{instruction-discovery-8ppxfrtw.js → schema-8s4fd4h0.js} +20 -20
- package/dist/chunks/{instruction-discovery-6pc27hjz.js → schema-8sze2n9a.js} +2 -2
- package/dist/chunks/{instruction-discovery-xvp1j2dc.js → schema-8zh4h089.js} +5 -5
- package/dist/chunks/{instruction-discovery-46j82pgy.js → schema-92qe48v5.js} +9 -9
- package/dist/chunks/{instruction-discovery-94ek1h2f.js → schema-94ek1h2f.js} +2 -2
- package/dist/chunks/{instruction-discovery-e5jqtwc8.js → schema-9sp4j3g7.js} +11 -11
- package/dist/chunks/{instruction-discovery-s4frkg89.js → schema-9wcc5pj1.js} +22 -22
- package/dist/chunks/{instruction-discovery-nfk828h3.js → schema-9xq4rgak.js} +4 -4
- package/dist/chunks/{instruction-discovery-aaet6srn.js → schema-aaet6srn.js} +2 -2
- package/dist/chunks/{instruction-discovery-yja9z5zb.js → schema-abbdd1c6.js} +5 -5
- package/dist/chunks/{instruction-discovery-n3cgjj67.js → schema-af49n079.js} +8 -8
- package/dist/chunks/{instruction-discovery-53y6m0t7.js → schema-aqkyva7e.js} +35 -35
- package/dist/chunks/{instruction-discovery-e5x0150z.js → schema-b24dgscy.js} +12 -12
- package/dist/chunks/{instruction-discovery-v5dkyp31.js → schema-b27vhd2z.js} +4 -4
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → schema-b6gygkdw.js} +2 -2
- package/dist/chunks/{instruction-discovery-zzct4swk.js → schema-b7ze0h6m.js} +11 -11
- package/dist/chunks/{instruction-discovery-tzct1v5g.js → schema-b9marwrz.js} +5 -5
- package/dist/chunks/{instruction-discovery-fkg6hj3y.js → schema-bb6qd770.js} +60 -60
- package/dist/chunks/{instruction-discovery-rweyf2z5.js → schema-bbgyx2ca.js} +25 -25
- package/dist/chunks/{instruction-discovery-e5bvbpgf.js → schema-bsthxcff.js} +15 -15
- package/dist/chunks/{instruction-discovery-9ce6tkzz.js → schema-c2ystsw5.js} +11 -11
- package/dist/chunks/{instruction-discovery-pt6k735w.js → schema-c3yncfhe.js} +18 -18
- package/dist/chunks/{instruction-discovery-6rcz3ycw.js → schema-c6qrx7z0.js} +25 -26
- package/dist/chunks/{instruction-discovery-6qs14qev.js → schema-c9c9gefm.js} +93 -93
- package/dist/chunks/{instruction-discovery-vkwyc6cx.js → schema-ccqrgpfr.js} +28 -28
- package/dist/chunks/{instruction-discovery-863rh99d.js → schema-cd1ha9xt.js} +12 -12
- package/dist/chunks/{instruction-discovery-ckecvw8r.js → schema-ckecvw8r.js} +2 -2
- package/dist/chunks/{instruction-discovery-j817qy9h.js → schema-ckz290np.js} +8 -8
- package/dist/chunks/{instruction-discovery-mjtjsyjj.js → schema-cr5r5t3v.js} +5 -5
- package/dist/chunks/{instruction-discovery-mdkfxwd5.js → schema-ctf78ks7.js} +32 -29
- package/dist/chunks/{instruction-discovery-cfqj2t13.js → schema-d20e8vw1.js} +12 -12
- package/dist/chunks/{instruction-discovery-xmfjrgmy.js → schema-d81r50pr.js} +11 -11
- package/dist/chunks/{instruction-discovery-bsqx64w4.js → schema-d9sgy5v4.js} +4 -4
- package/dist/chunks/{instruction-discovery-84trvwea.js → schema-dc6xss86.js} +23 -23
- package/dist/chunks/{instruction-discovery-5n469ean.js → schema-dh89yxex.js} +25 -25
- package/dist/chunks/{instruction-discovery-dmqcgk4z.js → schema-dmqcgk4z.js} +2 -2
- package/dist/chunks/{instruction-discovery-sbpfgvw3.js → schema-dq6warjh.js} +32 -32
- package/dist/chunks/{instruction-discovery-dj9sq318.js → schema-dqmwfghx.js} +5 -5
- package/dist/chunks/{instruction-discovery-c8wg0b7m.js → schema-dya6s92k.js} +18 -18
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → schema-e3qxr5gk.js} +2 -2
- package/dist/chunks/{instruction-discovery-1wg8se0x.js → schema-e5x26qyz.js} +4 -4
- package/dist/chunks/{instruction-discovery-8mxhwd9p.js → schema-eap6v6ka.js} +37 -34
- package/dist/chunks/{instruction-discovery-ecfe7b91.js → schema-ecfe7b91.js} +2 -2
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → schema-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-17razrp5.js → schema-ehpxdd9r.js} +35 -35
- package/dist/chunks/{instruction-discovery-za6yq9hg.js → schema-engkm2d6.js} +5 -5
- package/dist/chunks/{instruction-discovery-s62vt9wz.js → schema-erdgy6bb.js} +29 -29
- package/dist/chunks/{instruction-discovery-tjedn1bk.js → schema-ermxvwhp.js} +4 -4
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → schema-etq0c3wd.js} +1 -1
- package/dist/chunks/{instruction-discovery-av73v616.js → schema-ey8a4wge.js} +8 -8
- package/dist/chunks/{instruction-discovery-d3eanfb0.js → schema-f1dxnh8x.js} +45 -45
- package/dist/chunks/{instruction-discovery-537d2h8y.js → schema-f4ktwvph.js} +17 -17
- package/dist/chunks/{instruction-discovery-817gm3bf.js → schema-fb08v964.js} +18 -18
- package/dist/chunks/{instruction-discovery-591s59y8.js → schema-fdhjyf6e.js} +26 -20
- package/dist/chunks/{instruction-discovery-e1rt1ry9.js → schema-feegf67a.js} +32 -32
- package/dist/chunks/{instruction-discovery-2kvq420b.js → schema-fgdrjr7g.js} +37 -37
- package/dist/chunks/{instruction-discovery-hj0fmptj.js → schema-fgdzjjn8.js} +10 -10
- package/dist/chunks/{instruction-discovery-6n4dhht5.js → schema-fma9b9zx.js} +48 -48
- package/dist/chunks/{instruction-discovery-xt3nzz9d.js → schema-fn5s1xt4.js} +5 -5
- package/dist/chunks/{instruction-discovery-7sf65sz4.js → schema-fwzh61wc.js} +6 -6
- package/dist/chunks/{instruction-discovery-s2k53bmx.js → schema-fzhk56mq.js} +24 -24
- package/dist/chunks/{instruction-discovery-trjjaw7x.js → schema-fzxn0rpd.js} +15 -15
- package/dist/chunks/schema-g6zjmjz7.js +65 -0
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → schema-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-9v1ppqd2.js → schema-gjyhvyzk.js} +11 -11
- package/dist/chunks/{instruction-discovery-j3vzqyes.js → schema-gr5dc40r.js} +14 -14
- package/dist/chunks/{instruction-discovery-gv6a8nnw.js → schema-gv6a8nnw.js} +2 -2
- package/dist/chunks/{instruction-discovery-qz9hsrda.js → schema-gznm14y3.js} +34 -34
- package/dist/chunks/{instruction-discovery-4bt591nm.js → schema-h1nersjm.js} +31 -31
- package/dist/chunks/{instruction-discovery-w34c8dxf.js → schema-h57gm808.js} +15 -15
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → schema-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-0hf9g8pg.js → schema-hdab2k61.js} +6 -6
- package/dist/chunks/{instruction-discovery-2y34zzjz.js → schema-hdzt82x2.js} +4 -4
- package/dist/chunks/{instruction-discovery-r7hsk55y.js → schema-hefng7ga.js} +9 -9
- package/dist/chunks/{instruction-discovery-83c1zak0.js → schema-hh8v5qpg.js} +28 -28
- package/dist/chunks/{instruction-discovery-2qym09dt.js → schema-hm7qa9sr.js} +41 -41
- package/dist/chunks/{instruction-discovery-6g9h627f.js → schema-hs5b19ez.js} +23 -23
- package/dist/chunks/{instruction-discovery-8kg848v7.js → schema-hspndzgs.js} +8 -8
- package/dist/chunks/{instruction-discovery-gprqxqyp.js → schema-htk8gamf.js} +13 -13
- package/dist/chunks/{instruction-discovery-apyhsggy.js → schema-hx3vx9sm.js} +1 -1
- package/dist/chunks/{instruction-discovery-j56e64zr.js → schema-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-xxf3qkd3.js → schema-j575tj3n.js} +89 -89
- package/dist/chunks/{instruction-discovery-90t6c8wy.js → schema-j6de23b5.js} +17 -17
- package/dist/chunks/{instruction-discovery-wqpxpbjy.js → schema-j7wxbxne.js} +11 -11
- package/dist/chunks/{instruction-discovery-yf10kn3d.js → schema-k1qrnqst.js} +8 -8
- package/dist/chunks/{instruction-discovery-2zx654xv.js → schema-k1xs71rw.js} +31 -31
- package/dist/chunks/{instruction-discovery-k3c624dm.js → schema-k3c624dm.js} +3 -3
- package/dist/chunks/{instruction-discovery-6yrwvege.js → schema-kadj03x1.js} +12 -12
- package/dist/chunks/{instruction-discovery-kvfg1y8a.js → schema-kaqvhan9.js} +57 -57
- package/dist/chunks/{instruction-discovery-sddzfvn4.js → schema-kg3nfyrf.js} +8 -8
- package/dist/chunks/{instruction-discovery-35edcz9a.js → schema-kwp4z5r0.js} +15 -15
- package/dist/chunks/{instruction-discovery-8x6s24qq.js → schema-kykxfaeb.js} +14 -14
- package/dist/chunks/{instruction-discovery-qg5st3y5.js → schema-m1v72ch8.js} +21 -21
- package/dist/chunks/{instruction-discovery-2fnzb52j.js → schema-m36xmz2a.js} +27 -27
- package/dist/chunks/{instruction-discovery-yx96p73j.js → schema-m3aacv1r.js} +11 -11
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → schema-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-05dd0hqh.js → schema-m8psntbj.js} +31 -31
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → schema-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-z88c1cht.js → schema-mdhbd56y.js} +7 -7
- package/dist/chunks/{instruction-discovery-1ygqh575.js → schema-mfqp6xfm.js} +6 -6
- package/dist/chunks/{instruction-discovery-mhkvc446.js → schema-mhkvc446.js} +1 -1
- package/dist/chunks/{instruction-discovery-w4cn5rjk.js → schema-mwjz0nk2.js} +13 -13
- package/dist/chunks/{instruction-discovery-41fyejek.js → schema-mx6ypyf3.js} +13 -13
- package/dist/chunks/{instruction-discovery-kdvzk119.js → schema-n1ka8r9d.js} +4 -4
- package/dist/chunks/{instruction-discovery-xqgw658g.js → schema-n4mhh8dh.js} +27 -27
- package/dist/chunks/{instruction-discovery-rs5ja1ks.js → schema-ncfrwhmr.js} +75 -75
- package/dist/chunks/{instruction-discovery-ggwd74jc.js → schema-nng2ktcm.js} +2 -2
- package/dist/chunks/{instruction-discovery-jvf906gc.js → schema-p1xcnqpd.js} +8 -8
- package/dist/chunks/{instruction-discovery-7k0nb5a1.js → schema-p7jp4nkc.js} +5 -5
- package/dist/chunks/{instruction-discovery-s4f9hgft.js → schema-p810a5w3.js} +15 -15
- package/dist/chunks/{instruction-discovery-53qm6swg.js → schema-p97jtcyh.js} +24 -24
- package/dist/chunks/{instruction-discovery-pnvk1zxf.js → schema-phpw85vv.js} +4 -4
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → schema-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → schema-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-hn28mh03.js → schema-pr2shm86.js} +36 -36
- package/dist/chunks/{instruction-discovery-zpjshyj8.js → schema-pstmv2d8.js} +11 -11
- package/dist/chunks/{instruction-discovery-wym4yngj.js → schema-ptstaxe9.js} +6 -6
- package/dist/chunks/{instruction-discovery-t909565e.js → schema-ptt6m9gv.js} +3 -3
- package/dist/chunks/{instruction-discovery-2336b01z.js → schema-q6d53jre.js} +8 -8
- package/dist/chunks/{instruction-discovery-jj6m7t8m.js → schema-q7d6akyq.js} +24 -24
- package/dist/chunks/{instruction-discovery-pper4dcb.js → schema-q8wjb94d.js} +38 -38
- package/dist/chunks/{instruction-discovery-yw8t9dwe.js → schema-qby9dwvd.js} +8 -8
- package/dist/chunks/{instruction-discovery-fhs97t90.js → schema-qg0jgkcp.js} +9 -9
- package/dist/chunks/{instruction-discovery-qmqgtz8f.js → schema-qmqgtz8f.js} +2 -2
- package/dist/chunks/{instruction-discovery-5qe4ms5y.js → schema-qnyr447v.js} +33 -33
- package/dist/chunks/{instruction-discovery-h2r7bbkd.js → schema-qs001aqx.js} +11 -11
- package/dist/chunks/{instruction-discovery-qsdy395h.js → schema-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-jv01nqvq.js → schema-qte5z7bc.js} +5 -5
- package/dist/chunks/{instruction-discovery-fw1dm0ew.js → schema-qtgetkc5.js} +11 -11
- package/dist/chunks/{instruction-discovery-2ngyvhah.js → schema-qvs3yrx0.js} +29 -29
- package/dist/chunks/{instruction-discovery-cyxgkn8e.js → schema-qxs49gs0.js} +22 -22
- package/dist/chunks/{instruction-discovery-1h7vkbsh.js → schema-qze8mdqk.js} +13 -13
- package/dist/chunks/{instruction-discovery-c4tcxkt3.js → schema-r5398wsk.js} +10 -10
- package/dist/chunks/{instruction-discovery-04tp0yna.js → schema-r79r0pmw.js} +18 -18
- package/dist/chunks/schema-rap9a73h.js +18 -0
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → schema-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-76ymgwed.js → schema-rpjgfq5s.js} +9 -9
- package/dist/chunks/{instruction-discovery-0p5r855a.js → schema-rz3d44tq.js} +47 -47
- package/dist/chunks/{instruction-discovery-yrznvahk.js → schema-s4enseaf.js} +2 -2
- package/dist/chunks/{instruction-discovery-vybhs2ww.js → schema-s532705d.js} +9 -9
- package/dist/chunks/{instruction-discovery-664gwng4.js → schema-s5cvb66r.js} +20 -20
- package/dist/chunks/{instruction-discovery-mq1rpz34.js → schema-scw85daj.js} +13 -13
- package/dist/chunks/{instruction-discovery-qzs5w1kq.js → schema-sgj69q70.js} +10 -10
- package/dist/chunks/{instruction-discovery-g73rfvt8.js → schema-szt33nzv.js} +26 -26
- package/dist/chunks/{instruction-discovery-dbrspz9p.js → schema-t1vq5jda.js} +178 -178
- package/dist/chunks/{instruction-discovery-0cg4n3gd.js → schema-t1zhpzyh.js} +23 -23
- package/dist/chunks/{instruction-discovery-gbt6w4kb.js → schema-t550f9t1.js} +6 -6
- package/dist/chunks/{instruction-discovery-a2knq7mb.js → schema-t89k7t2n.js} +3 -3
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → schema-tazgh4e4.js} +1 -1
- package/dist/chunks/schema-tbcx5g6b.js +26 -0
- package/dist/chunks/{instruction-discovery-tdstcens.js → schema-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-7c1hha0p.js → schema-tffeed3q.js} +12 -12
- package/dist/chunks/{instruction-discovery-p37cw4rj.js → schema-tpw6cwsb.js} +8 -8
- package/dist/chunks/{instruction-discovery-tvtrv512.js → schema-tvtrv512.js} +1 -1
- package/dist/chunks/{instruction-discovery-jazqgan2.js → schema-tvzckvfh.js} +19 -19
- package/dist/chunks/{instruction-discovery-1gnz4btn.js → schema-v1z5k6ya.js} +41 -41
- package/dist/chunks/{instruction-discovery-eqggwkkj.js → schema-v4khfddp.js} +24 -24
- package/dist/chunks/{instruction-discovery-veqvce7d.js → schema-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-rjatp68y.js → schema-vfb18kab.js} +15 -15
- package/dist/chunks/{instruction-discovery-kb3k4m85.js → schema-vhe05b2j.js} +18 -18
- package/dist/chunks/{instruction-discovery-bm55brr3.js → schema-vm9szz2v.js} +43 -43
- package/dist/chunks/{instruction-discovery-9ze7f770.js → schema-vnq9hngb.js} +31 -31
- package/dist/chunks/{instruction-discovery-p7xmn451.js → schema-vvyaap0j.js} +1 -1
- package/dist/chunks/{instruction-discovery-vzcthcp8.js → schema-vzcthcp8.js} +1 -1
- package/dist/chunks/{instruction-discovery-0fs6c5ns.js → schema-vzrrchan.js} +17 -17
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → schema-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → schema-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-mfrn2wd3.js → schema-w3xe5wx0.js} +32 -32
- package/dist/chunks/{instruction-discovery-wd3x2cqz.js → schema-wd3x2cqz.js} +2 -2
- package/dist/chunks/{instruction-discovery-wd87259q.js → schema-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-s9z9hht1.js → schema-wfnwj6ew.js} +16 -16
- package/dist/chunks/{instruction-discovery-0jq9fyba.js → schema-wk5z6jzv.js} +9 -9
- package/dist/chunks/{instruction-discovery-23354q28.js → schema-wk7amq94.js} +26 -26
- package/dist/chunks/{instruction-discovery-x1ezjp6w.js → schema-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instruction-discovery-gy42h51d.js → schema-x5rm1qcs.js} +9 -9
- package/dist/chunks/{instruction-discovery-c80srvkw.js → schema-x9685y9e.js} +43 -43
- package/dist/chunks/{instruction-discovery-02hh4n40.js → schema-x9cd31tj.js} +6 -6
- package/dist/chunks/{instruction-discovery-d65zzxh9.js → schema-xdjq0qq8.js} +9 -9
- package/dist/chunks/{instruction-discovery-jw80jp6b.js → schema-xdk9p2qn.js} +21 -21
- package/dist/chunks/{instruction-discovery-drwq78ky.js → schema-xfkkasph.js} +4 -4
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → schema-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-x3r0xrsa.js → schema-y3hxgm3d.js} +15 -15
- package/dist/chunks/{instruction-discovery-73n7g0g0.js → schema-y6b4mn53.js} +23 -23
- package/dist/chunks/{instruction-discovery-y71avatq.js → schema-y71avatq.js} +1 -1
- package/dist/chunks/{instruction-discovery-jx4220gq.js → schema-y7dmryf8.js} +17 -17
- package/dist/chunks/{instruction-discovery-kjxkqgqq.js → schema-y99khw21.js} +3 -3
- package/dist/chunks/{instruction-discovery-r8y742f5.js → schema-yh9brxq5.js} +10 -10
- package/dist/chunks/{instruction-discovery-zdy9tpyw.js → schema-yhka94gb.js} +28 -28
- package/dist/chunks/{instruction-discovery-a46t4z4t.js → schema-ykkt2z7t.js} +19 -19
- package/dist/chunks/{instruction-discovery-0121bcaw.js → schema-ymfmgbr6.js} +10 -10
- package/dist/chunks/{instruction-discovery-ynys59px.js → schema-yntqjfz5.js} +16 -16
- package/dist/chunks/{instruction-discovery-1acjjqhc.js → schema-yp2x3t23.js} +4 -4
- package/dist/chunks/{instruction-discovery-0qmc57sd.js → schema-yr2s5jbd.js} +11 -11
- package/dist/chunks/{instruction-discovery-yrhqyw5v.js → schema-yrhqyw5v.js} +1 -1
- package/dist/chunks/{instruction-discovery-7gvwkz6m.js → schema-yt0fqk68.js} +5 -5
- package/dist/chunks/{instruction-discovery-z07pqspn.js → schema-z07pqspn.js} +3 -3
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → schema-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-nejch2yn.js → schema-za86s8b3.js} +9 -9
- package/dist/chunks/{instruction-discovery-baaqp4zd.js → schema-zav06jzw.js} +4 -4
- package/dist/chunks/{instruction-discovery-zeh9ct20.js → schema-zeh9ct20.js} +2 -2
- package/dist/chunks/{instruction-discovery-sa7x69qd.js → schema-zfzv19x2.js} +35 -35
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → schema-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-7pb776yk.js → schema-zrmtt4x8.js} +3 -3
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → schema-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +215 -214
- package/dist/config/plugin/compaction.js +161 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -370
- 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 +93 -93
- 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 +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +228 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- 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 +91 -91
- 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/id/id.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 +362 -361
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -358
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +102 -102
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +103 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +334 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -94
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +162 -161
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +353 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +226 -225
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +89 -89
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +8 -0
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -132
- package/dist/session/context.js +153 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +225 -224
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +154 -153
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +93 -93
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -117
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +221 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -218
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +106 -106
- package/dist/snapshot.js +91 -91
- 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 +125 -125
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +118 -118
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +216 -215
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +220 -219
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +112 -112
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/types/instructions/builtins.d.ts +1 -2
- package/dist/types/session/affinity.d.ts +4 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +1 -1
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +76 -76
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-726w9f8r.js +0 -26
- package/dist/chunks/instruction-discovery-ce6f651r.js +0 -252
- package/dist/chunks/instruction-discovery-ezddc45f.js +0 -507
- package/dist/chunks/instruction-discovery-pf31ssb9.js +0 -18
- package/dist/chunks/instruction-discovery-tee9eybj.js +0 -63
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → schema-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → schema-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → schema-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → schema-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → schema-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → schema-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → schema-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → schema-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → schema-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → schema-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → schema-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → schema-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → schema-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w5fmr99.js → schema-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → schema-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → schema-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → schema-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → schema-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → schema-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → schema-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → schema-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → schema-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → schema-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → schema-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → schema-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → schema-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → schema-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → schema-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-922hggd3.js → schema-922hggd3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → schema-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → schema-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → schema-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → schema-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → schema-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → schema-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → schema-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → schema-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → schema-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → schema-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → schema-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → schema-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → schema-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → schema-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → schema-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → schema-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → schema-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → schema-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → schema-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → schema-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → schema-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → schema-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → schema-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → schema-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → schema-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → schema-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → schema-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → schema-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → schema-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → schema-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → schema-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hjbc5kem.js → schema-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → schema-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → schema-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → schema-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → schema-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → schema-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → schema-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → schema-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → schema-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → schema-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → schema-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → schema-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → schema-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → schema-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → schema-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → schema-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → schema-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → schema-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → schema-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → schema-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → schema-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → schema-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sk3qaz4a.js → schema-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → schema-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → schema-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → schema-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → schema-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → schema-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → schema-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → schema-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → schema-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8cydn3q.js → schema-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → schema-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → schema-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → schema-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → schema-z9919s4g.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./schema-gr5dc40r.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./schema-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,7 +12,7 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event17,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
@@ -20,20 +20,20 @@ __export(exports_form, {
|
|
|
20
20
|
Info: () => Info29,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError9,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service70,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer24,
|
|
29
|
+
node: () => node73,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event17 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
38
|
var ID14 = Form.ID;
|
|
39
39
|
var Info29 = Form.Info;
|
|
@@ -44,7 +44,7 @@ var State3 = Form.State;
|
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
47
|
+
class NotFoundError9 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
48
|
id: ID14
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
@@ -79,16 +79,16 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service70 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer24 = Layer.effect(Service70, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service83;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError9({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
93
|
const id = input.id ?? ID14.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
@@ -159,9 +159,9 @@ var layer25 = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
159
159
|
closed = true;
|
|
160
160
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
161
161
|
yield* Effect.addFinalizer(() => close);
|
|
162
|
-
return
|
|
162
|
+
return Service70.of({ create, ask, get, list, state, reply, cancel, close });
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
164
|
+
var node73 = makeLocationNode({ service: Service70, layer: layer24, deps: [node87] });
|
|
165
165
|
function validateAnswer2(form, answer) {
|
|
166
166
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
167
167
|
for (const key of Object.keys(answer)) {
|
|
@@ -313,4 +313,4 @@ function isDateTime(value) {
|
|
|
313
313
|
return !Number.isNaN(new Date(value).getTime());
|
|
314
314
|
}
|
|
315
315
|
|
|
316
|
-
export { ID14, Info29, Field2, Fields2, When2, State3, Answer2, Reply3,
|
|
316
|
+
export { ID14, Info29, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError9, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service70, layer24, node73, validateAnswer2, validateFields2, exports_form, Event17 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// src/filesystem/watcher-binding.ts
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
|
-
function
|
|
3
|
+
function load5() {
|
|
4
4
|
const require2 = createRequire(import.meta.url);
|
|
5
5
|
const libc = typeof OPENCODE_LIBC === "undefined" ? undefined : OPENCODE_LIBC;
|
|
6
6
|
return require2(process.env.OPENCODE_PARCEL_WATCHER_PATH ?? `@parcel/watcher-${process.platform}-${process.arch}${process.platform === "linux" ? `-${libc || "glibc"}` : ""}`);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export {
|
|
9
|
+
export { load5 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service78
|
|
3
|
+
} from "./schema-v4khfddp.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/stdio.ts
|
|
9
9
|
var exports_stdio = {};
|
|
@@ -19,7 +19,7 @@ var FORCE_KILL_AFTER = Duration.seconds(2);
|
|
|
19
19
|
var OUTGOING_CAPACITY = 64;
|
|
20
20
|
var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
21
21
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
22
|
-
const environment = yield*
|
|
22
|
+
const environment = yield* Service78;
|
|
23
23
|
const scope = yield* Effect.scope;
|
|
24
24
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
25
25
|
const buffer = new ReadBuffer;
|
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-4dgbcxzg.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service83
|
|
6
|
+
} from "./schema-gr5dc40r.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./schema-qnyr447v.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./schema-7x2w03m2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID12,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service68
|
|
20
|
+
} from "./schema-ehpxdd9r.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID11
|
|
23
|
+
} from "./schema-aqkyva7e.js";
|
|
24
24
|
import {
|
|
25
25
|
load3,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./schema-j7wxbxne.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./schema-gjyhvyzk.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID9
|
|
33
|
+
} from "./schema-n4mhh8dh.js";
|
|
34
|
+
import {
|
|
35
|
+
get5
|
|
36
|
+
} from "./schema-54ma36ye.js";
|
|
34
37
|
|
|
35
38
|
// src/plugin/provider/github-copilot.ts
|
|
36
39
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -62,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
62
65
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
63
66
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
64
67
|
var oauth = (app) => ({
|
|
65
|
-
integrationID:
|
|
68
|
+
integrationID: ID13.make("github-copilot"),
|
|
66
69
|
method: {
|
|
67
70
|
id: methodID,
|
|
68
71
|
type: "oauth",
|
|
@@ -160,8 +163,8 @@ var oauth = (app) => ({
|
|
|
160
163
|
var GithubCopilotPlugin2 = define({
|
|
161
164
|
id: "opencode.provider.github.copilot",
|
|
162
165
|
effect: Effect.fn(function* (ctx) {
|
|
163
|
-
const providers = yield*
|
|
164
|
-
const bus = yield*
|
|
166
|
+
const providers = yield* Service68;
|
|
167
|
+
const bus = yield* Service83;
|
|
165
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
166
169
|
const loaded = {};
|
|
167
170
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -177,7 +180,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
177
180
|
return;
|
|
178
181
|
}
|
|
179
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
180
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID12.githubCopilot);
|
|
181
184
|
const remote = yield* Effect.tryPromise({
|
|
182
185
|
try: () => load3(url, {
|
|
183
186
|
...provider?.headers,
|
|
@@ -199,7 +202,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
199
202
|
editor.method.update(oauth(ctx.app));
|
|
200
203
|
});
|
|
201
204
|
yield* ctx.provider.transform((evt) => {
|
|
202
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID12.githubCopilot);
|
|
203
206
|
if (!item)
|
|
204
207
|
return;
|
|
205
208
|
if (loaded.models) {
|
|
@@ -219,17 +222,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
219
222
|
}
|
|
220
223
|
});
|
|
221
224
|
yield* ctx.model.transform((models) => {
|
|
222
|
-
if (models.get(
|
|
223
|
-
models.update(
|
|
225
|
+
if (models.get(ID12.githubCopilot, ID11.make("gpt-5-chat-latest"))) {
|
|
226
|
+
models.update(ID12.githubCopilot, ID11.make("gpt-5-chat-latest"), (model) => {
|
|
224
227
|
model.enabled = false;
|
|
225
228
|
});
|
|
226
229
|
}
|
|
227
230
|
});
|
|
228
231
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
229
|
-
yield* bus.subscribe(
|
|
232
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
230
233
|
yield* refresh().pipe(Effect.forkScoped);
|
|
231
234
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
232
|
-
if (evt.model.providerID !==
|
|
235
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
233
236
|
return;
|
|
234
237
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
235
238
|
return;
|
|
@@ -238,23 +241,23 @@ var GithubCopilotPlugin2 = define({
|
|
|
238
241
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
239
242
|
}));
|
|
240
243
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
241
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
242
245
|
return;
|
|
243
246
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
244
247
|
return;
|
|
245
248
|
}));
|
|
246
249
|
const interaction = interactionType2(evt.kind, session?.parentID !== undefined);
|
|
247
250
|
evt.headers["X-Interaction-Type"] = interaction;
|
|
248
|
-
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
251
|
+
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
249
252
|
if (interaction !== "conversation-agent")
|
|
250
253
|
evt.headers["x-initiator"] = "agent";
|
|
251
|
-
}), { providerID:
|
|
254
|
+
}), { providerID: ID12.githubCopilot });
|
|
252
255
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
253
|
-
if (evt.model.providerID !==
|
|
256
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
254
257
|
return;
|
|
255
258
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
256
259
|
return;
|
|
257
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
260
|
+
const agent = yield* ctx.agent.get({ agentID: ID9.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
258
261
|
return;
|
|
259
262
|
}));
|
|
260
263
|
if (agent?.data.model)
|
|
@@ -265,9 +268,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
265
268
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
266
269
|
return;
|
|
267
270
|
}));
|
|
268
|
-
}), { providerID:
|
|
271
|
+
}), { providerID: ID12.githubCopilot });
|
|
269
272
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
270
|
-
if (evt.model.providerID !==
|
|
273
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
271
274
|
return;
|
|
272
275
|
const token = evt.request.headers.get("x-api-key");
|
|
273
276
|
if (!token)
|
|
@@ -275,9 +278,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
275
278
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
276
279
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
277
280
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
278
|
-
}), { providerID:
|
|
281
|
+
}), { providerID: ID12.githubCopilot });
|
|
279
282
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
280
|
-
if (evt.model.providerID !==
|
|
283
|
+
if (evt.model.providerID !== ID12.githubCopilot)
|
|
281
284
|
return;
|
|
282
285
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
283
286
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-tdstcens.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/publish-llm-event.ts
|
|
9
9
|
import { Effect, Fiber, Iterable } from "effect";
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./schema-gr5dc40r.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./schema-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
10
|
+
ID13,
|
|
11
|
+
Service69,
|
|
12
|
+
node72,
|
|
13
|
+
Event16
|
|
14
|
+
} from "./schema-7x2w03m2.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./schema-4dgbcxzg.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service79,
|
|
20
|
+
node82
|
|
21
|
+
} from "./schema-2phhkb6s.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./schema-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/aisdk-native.ts
|
|
27
27
|
var exports_aisdk_native = {};
|
|
@@ -37,13 +37,13 @@ var exports_provider3 = {};
|
|
|
37
37
|
__export(exports_provider3, {
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
39
|
Compaction: () => Compaction3,
|
|
40
|
-
Event: () =>
|
|
41
|
-
ID: () =>
|
|
42
|
-
Info: () =>
|
|
40
|
+
Event: () => Event15,
|
|
41
|
+
ID: () => ID12,
|
|
42
|
+
Info: () => Info26,
|
|
43
43
|
LoadError: () => LoadError3,
|
|
44
44
|
Provider: () => exports_provider3,
|
|
45
|
-
Request: () =>
|
|
46
|
-
Service: () =>
|
|
45
|
+
Request: () => Request3,
|
|
46
|
+
Service: () => Service68,
|
|
47
47
|
Settings: () => Settings2,
|
|
48
48
|
Transport: () => Transport2,
|
|
49
49
|
aisdk: () => aisdk2,
|
|
@@ -53,7 +53,7 @@ __export(exports_provider3, {
|
|
|
53
53
|
mergeOverlay: () => mergeOverlay2,
|
|
54
54
|
modelSettings: () => modelSettings2,
|
|
55
55
|
nativeSettings: () => nativeSettings2,
|
|
56
|
-
node: () =>
|
|
56
|
+
node: () => node71,
|
|
57
57
|
packageName: () => packageName2
|
|
58
58
|
});
|
|
59
59
|
import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
|
|
@@ -64,8 +64,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
64
64
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
65
65
|
import { Credential } from "@opencode/schema/credential";
|
|
66
66
|
import { freeze } from "immer";
|
|
67
|
-
import { Event as
|
|
68
|
-
var
|
|
67
|
+
import { Event as Event15 } from "@opencode/schema/provider";
|
|
68
|
+
var ID12 = Provider.ID;
|
|
69
69
|
var AISDK_PREFIX2 = "aisdk:";
|
|
70
70
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
71
71
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -206,13 +206,13 @@ function mergeHeaders2(base, overlay) {
|
|
|
206
206
|
return result;
|
|
207
207
|
}, new Map).values());
|
|
208
208
|
}
|
|
209
|
-
var
|
|
209
|
+
var Request3 = Provider.Request;
|
|
210
210
|
var Compaction3 = Provider.Compaction;
|
|
211
211
|
var Transport2 = Provider.Transport;
|
|
212
212
|
var Settings2 = Provider.Settings;
|
|
213
|
-
var
|
|
213
|
+
var Info26 = Provider.Info;
|
|
214
214
|
|
|
215
|
-
class
|
|
215
|
+
class Service68 extends Context.Service()("@opencode/Provider") {
|
|
216
216
|
}
|
|
217
217
|
var definitions = new WeakMap;
|
|
218
218
|
function index(providerID, models) {
|
|
@@ -225,10 +225,10 @@ function index(providerID, models) {
|
|
|
225
225
|
definitions.set(models, indexes);
|
|
226
226
|
return result;
|
|
227
227
|
}
|
|
228
|
-
var layer = Layer.effect(
|
|
229
|
-
const bus = yield*
|
|
230
|
-
const integrations = yield*
|
|
231
|
-
const location = yield*
|
|
228
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
229
|
+
const bus = yield* Service83;
|
|
230
|
+
const integrations = yield* Service69;
|
|
231
|
+
const location = yield* Service79;
|
|
232
232
|
const state = create3({
|
|
233
233
|
name: "provider",
|
|
234
234
|
initial: () => new Map,
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
239
239
|
const current = records.get(id);
|
|
240
240
|
if (current)
|
|
241
241
|
return current;
|
|
242
|
-
const added = { provider:
|
|
242
|
+
const added = { provider: Info26.empty(id), models: new Map };
|
|
243
243
|
records.set(id, added);
|
|
244
244
|
maps.add(added.models);
|
|
245
245
|
return added;
|
|
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
320
320
|
const available = Array.from(records.values()).filter((record) => {
|
|
321
321
|
if (record.provider.activation === "disabled")
|
|
322
322
|
return false;
|
|
323
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
323
|
+
const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
|
|
324
324
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
325
325
|
return false;
|
|
326
326
|
if (record.provider.activation === "enabled")
|
|
@@ -346,8 +346,8 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
346
346
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
347
347
|
});
|
|
348
348
|
});
|
|
349
|
-
yield* bus.subscribe([
|
|
350
|
-
return
|
|
349
|
+
yield* bus.subscribe([Event16.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
350
|
+
return Service68.of({
|
|
351
351
|
transform: state.transform,
|
|
352
352
|
reload: state.reload,
|
|
353
353
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -356,7 +356,7 @@ var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
356
356
|
snapshot
|
|
357
357
|
});
|
|
358
358
|
}));
|
|
359
|
-
var
|
|
359
|
+
var node71 = makeLocationNode({ service: Service68, layer, deps: [node87, node72, node82] });
|
|
360
360
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
361
361
|
const module = yield* Effect.tryPromise({
|
|
362
362
|
try: () => {
|
|
@@ -625,4 +625,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
625
625
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
626
626
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
627
627
|
|
|
628
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
628
|
+
export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, modelSettings2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info26, Service68, node71, exports_provider3, Event15 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
codeInterpreterArgsSchema2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-eh3zwz77.js";
|
|
4
4
|
import {
|
|
5
5
|
fileSearchArgsSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./schema-e73j6tqm.js";
|
|
7
7
|
import {
|
|
8
8
|
webSearchArgsSchema2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./schema-3wcehsnq.js";
|
|
10
10
|
import {
|
|
11
11
|
webSearchPreviewArgsSchema2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./schema-dap0rakb.js";
|
|
13
13
|
import {
|
|
14
14
|
imageGenerationArgsSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-4y7fprxs.js";
|
|
16
16
|
|
|
17
17
|
// src/github-copilot/responses/openai-responses-prepare-tools.ts
|
|
18
18
|
import {
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./schema-y99khw21.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service83,
|
|
8
|
+
node87
|
|
9
|
+
} from "./schema-gr5dc40r.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./schema-5t3nmthw.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./schema-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./schema-m3aacv1r.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service54,
|
|
21
|
+
node56
|
|
22
|
+
} from "./schema-yntqjfz5.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service29,
|
|
25
|
+
node33
|
|
26
|
+
} from "./schema-j575tj3n.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./schema-tdstcens.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./schema-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/title.ts
|
|
36
36
|
var exports_title = {};
|
|
37
37
|
__export(exports_title, {
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service2,
|
|
39
39
|
SessionTitle: () => exports_title,
|
|
40
40
|
isUntitled: () => isUntitled2,
|
|
41
|
-
layer: () =>
|
|
42
|
-
node: () =>
|
|
41
|
+
layer: () => layer3,
|
|
42
|
+
node: () => node3
|
|
43
43
|
});
|
|
44
44
|
import { isDeepStrictEqual } from "node:util";
|
|
45
45
|
import { LLMClient, LLMEvent, Message, SystemPart } from "@opencode/ai";
|
|
@@ -51,18 +51,18 @@ var MAX_CONTEXT_LENGTH = 8000;
|
|
|
51
51
|
var MAX_FIRST_MESSAGE_LENGTH = 2000;
|
|
52
52
|
var titleChanged = Symbol("Session title changed");
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service2 extends Context.Service()("@opencode/SessionTitle") {
|
|
55
55
|
}
|
|
56
56
|
var truncate = (value) => value.length <= MAX_LENGTH ? value : `${value.slice(0, MAX_LENGTH - 3)}...`;
|
|
57
57
|
var isUntitled2 = (session) => isExactRootFallback({
|
|
58
58
|
title: session.title,
|
|
59
59
|
time: { created: DateTime.toEpochMillis(session.time.created) }
|
|
60
60
|
});
|
|
61
|
-
var
|
|
62
|
-
const bus = yield*
|
|
61
|
+
var layer3 = Layer.effect(Service2, Effect.gen(function* () {
|
|
62
|
+
const bus = yield* Service83;
|
|
63
63
|
const llm = yield* LLMClient.Service;
|
|
64
|
-
const context = yield*
|
|
65
|
-
const store = yield*
|
|
64
|
+
const context = yield* Service29;
|
|
65
|
+
const store = yield* Service54;
|
|
66
66
|
const db = (yield* Service84).db;
|
|
67
67
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
68
68
|
const chunks = [];
|
|
@@ -145,12 +145,12 @@ Recent conversation:
|
|
|
145
145
|
title: truncate(title)
|
|
146
146
|
}, { commit: (sequence) => sequence === expectedSequence ? Effect.void : Effect.die(titleChanged) }).pipe(Effect.catchDefect((defect) => defect === titleChanged ? Effect.void : Effect.die(defect)));
|
|
147
147
|
});
|
|
148
|
-
return
|
|
148
|
+
return Service2.of({ generate });
|
|
149
149
|
}));
|
|
150
|
-
var
|
|
151
|
-
service:
|
|
152
|
-
layer:
|
|
153
|
-
deps: [
|
|
150
|
+
var node3 = makeLocationNode({
|
|
151
|
+
service: Service2,
|
|
152
|
+
layer: layer3,
|
|
153
|
+
deps: [node87, llmClient2, node33, node56, node88]
|
|
154
154
|
});
|
|
155
155
|
|
|
156
|
-
export {
|
|
156
|
+
export { Service2, isUntitled2, layer3, node3, exports_title };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./schema-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/identity.ts
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin34,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin34 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin17 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin34, exports_identity };
|