@opencode/core 0.0.0-dev-20937 → 0.0.0-dev-20942
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{persistent-pty-xavrby79.js → file-retention-05tpr10a.js} +30 -30
- package/dist/chunks/{persistent-pty-qjpydtwq.js → file-retention-0kfbqg2w.js} +18 -18
- package/dist/chunks/{persistent-pty-jyjec5pm.js → file-retention-0mm9aq32.js} +9 -9
- package/dist/chunks/{persistent-pty-q19v3jy8.js → file-retention-0q9t857t.js} +12 -12
- package/dist/chunks/{persistent-pty-n46vsstj.js → file-retention-0r268gnr.js} +20 -20
- package/dist/chunks/{persistent-pty-jfyemz75.js → file-retention-0sds4y2c.js} +4 -4
- package/dist/chunks/{persistent-pty-2fefz355.js → file-retention-0sqg52g8.js} +3 -3
- package/dist/chunks/{persistent-pty-0vbcp93d.js → file-retention-0vbcp93d.js} +2 -2
- package/dist/chunks/{persistent-pty-7dy85ahw.js → file-retention-0ybbsf06.js} +3 -3
- package/dist/chunks/{persistent-pty-0vcybtwp.js → file-retention-0z785y98.js} +5 -5
- package/dist/chunks/{persistent-pty-4ptbeewn.js → file-retention-14pza5e5.js} +15 -15
- package/dist/chunks/{persistent-pty-7wr0x2e1.js → file-retention-15skk8qm.js} +5 -5
- package/dist/chunks/{persistent-pty-ps6pky97.js → file-retention-16dn4b4s.js} +11 -11
- package/dist/chunks/{persistent-pty-h7a7kf2s.js → file-retention-18fd3ek7.js} +9 -9
- package/dist/chunks/{persistent-pty-1x9n7tq6.js → file-retention-1a73za0v.js} +20 -20
- package/dist/chunks/{persistent-pty-r8xr0va3.js → file-retention-1acjjqhc.js} +4 -4
- package/dist/chunks/{persistent-pty-f0qmkbgb.js → file-retention-1eevk08k.js} +33 -33
- package/dist/chunks/{persistent-pty-f9g0v0hr.js → file-retention-1g9xdg8x.js} +11 -11
- package/dist/chunks/{persistent-pty-btec747f.js → file-retention-1nwxscpy.js} +5 -5
- package/dist/chunks/{persistent-pty-jgwt99nb.js → file-retention-1zh1deve.js} +24 -24
- package/dist/chunks/{persistent-pty-5ezgg5db.js → file-retention-25v44x7c.js} +14 -14
- package/dist/chunks/{persistent-pty-p21xj058.js → file-retention-2dyz0se9.js} +8 -8
- package/dist/chunks/{persistent-pty-yckpheek.js → file-retention-2hb1hzkz.js} +8 -8
- package/dist/chunks/{persistent-pty-qgn6gcr1.js → file-retention-2k8khapm.js} +5 -5
- package/dist/chunks/{persistent-pty-j5xh64qr.js → file-retention-2q8c0gm7.js} +9 -9
- package/dist/chunks/{persistent-pty-gnj9fvyd.js → file-retention-2rgzsac1.js} +37 -37
- package/dist/chunks/{persistent-pty-82vtwhxh.js → file-retention-31rj2qjy.js} +2 -2
- package/dist/chunks/{persistent-pty-39hks32a.js → file-retention-3871rra9.js} +15 -15
- package/dist/chunks/{persistent-pty-b7j3e6pa.js → file-retention-39hwbmyw.js} +7 -7
- package/dist/chunks/{persistent-pty-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-pnzf6mjf.js → file-retention-3g8j9he4.js} +1 -1
- package/dist/chunks/{persistent-pty-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-3hwn7j4h.js → file-retention-3hwn7j4h.js} +2 -2
- package/dist/chunks/{persistent-pty-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-6p35b456.js → file-retention-3wqa21f4.js} +42 -42
- package/dist/chunks/{persistent-pty-3zsf4n22.js → file-retention-3zsf4n22.js} +1 -1
- package/dist/chunks/{persistent-pty-cvptpfc1.js → file-retention-40pk6sm4.js} +13 -13
- package/dist/chunks/{persistent-pty-1xcwx3z5.js → file-retention-40vewkxf.js} +14 -14
- package/dist/chunks/{persistent-pty-n6x6pftj.js → file-retention-40x333fm.js} +9 -9
- package/dist/chunks/{persistent-pty-gbcjpggj.js → file-retention-41s9fba0.js} +5 -5
- package/dist/chunks/{persistent-pty-a6j09gve.js → file-retention-435seeeq.js} +10 -10
- package/dist/chunks/{persistent-pty-vj0jr9wj.js → file-retention-446yyhqh.js} +10 -10
- package/dist/chunks/{persistent-pty-7gx041tx.js → file-retention-4a0nv7mx.js} +8 -8
- package/dist/chunks/{persistent-pty-5cyrq552.js → file-retention-4as9fy9y.js} +16 -16
- package/dist/chunks/{persistent-pty-srr87szr.js → file-retention-4azv87ky.js} +41 -41
- package/dist/chunks/{persistent-pty-00w32bjw.js → file-retention-4jhykbxs.js} +11 -11
- package/dist/chunks/{persistent-pty-t7xq1rvx.js → file-retention-4r69bb8y.js} +35 -35
- package/dist/chunks/{persistent-pty-72p8e540.js → file-retention-4rxxd1r4.js} +15 -15
- package/dist/chunks/{persistent-pty-4ts7tf6z.js → file-retention-4ts7tf6z.js} +2 -2
- package/dist/chunks/{persistent-pty-8zyt8ee3.js → file-retention-4ys16hhx.js} +11 -11
- package/dist/chunks/{persistent-pty-54ma36ye.js → file-retention-54ma36ye.js} +1 -1
- package/dist/chunks/{persistent-pty-j2rccnrs.js → file-retention-5cewxaxe.js} +40 -40
- package/dist/chunks/{persistent-pty-03n1tc15.js → file-retention-5dva4nqc.js} +13 -13
- package/dist/chunks/{persistent-pty-ks74khch.js → file-retention-5e311j32.js} +10 -10
- package/dist/chunks/{persistent-pty-61f1rm4z.js → file-retention-5eswzrp4.js} +11 -11
- package/dist/chunks/{persistent-pty-wh6zw745.js → file-retention-5fykfdj7.js} +5 -5
- package/dist/chunks/{persistent-pty-5p6442zs.js → file-retention-5jgv69fp.js} +27 -27
- package/dist/chunks/{persistent-pty-5m9w47nd.js → file-retention-5m9w47nd.js} +1 -1
- package/dist/chunks/{persistent-pty-8tbra83x.js → file-retention-5mt7hsf0.js} +23 -23
- package/dist/chunks/{persistent-pty-ktje05cm.js → file-retention-5rgrjwfp.js} +14 -14
- package/dist/chunks/{persistent-pty-0zp98w4j.js → file-retention-5yv5nces.js} +25 -25
- package/dist/chunks/{persistent-pty-2xgh33vh.js → file-retention-669k5jt6.js} +9 -9
- package/dist/chunks/{persistent-pty-rknzs0pv.js → file-retention-6eavwtyb.js} +4 -4
- package/dist/chunks/{persistent-pty-44633wsm.js → file-retention-6fkh8xy1.js} +13 -13
- package/dist/chunks/{persistent-pty-5qn1sdvx.js → file-retention-6haxr8ea.js} +22 -22
- package/dist/chunks/{persistent-pty-2trkh6np.js → file-retention-6qjg7hna.js} +87 -87
- package/dist/chunks/{persistent-pty-6xb47vfp.js → file-retention-6xb47vfp.js} +1 -1
- package/dist/chunks/{persistent-pty-2wpj3g3y.js → file-retention-723bwzaz.js} +20 -20
- package/dist/chunks/{persistent-pty-70nermmm.js → file-retention-73vmrfwz.js} +8 -8
- package/dist/chunks/{persistent-pty-0qr5aqrb.js → file-retention-75b647qr.js} +11 -11
- package/dist/chunks/{persistent-pty-775gj3j1.js → file-retention-775gj3j1.js} +2 -2
- package/dist/chunks/{persistent-pty-1yd7h3h8.js → file-retention-77f241gp.js} +11 -11
- package/dist/chunks/{persistent-pty-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-q1z3k24c.js → file-retention-7cx4vzts.js} +18 -18
- package/dist/chunks/{persistent-pty-9c3np669.js → file-retention-7j2qha59.js} +8 -8
- package/dist/chunks/{persistent-pty-q403dv8b.js → file-retention-7s6e2gqc.js} +11 -11
- package/dist/chunks/{persistent-pty-6hh8tjw2.js → file-retention-7sbkp4xb.js} +4 -4
- package/dist/chunks/{persistent-pty-wywgz7yf.js → file-retention-7vkfvfth.js} +5 -5
- package/dist/chunks/{persistent-pty-0am50sx2.js → file-retention-7zcan07s.js} +18 -18
- package/dist/chunks/{persistent-pty-84txncab.js → file-retention-84txncab.js} +1 -1
- package/dist/chunks/{persistent-pty-gn2hzv84.js → file-retention-8ga4z34x.js} +4 -4
- package/dist/chunks/{persistent-pty-8m6m0r52.js → file-retention-8m6m0r52.js} +1 -1
- package/dist/chunks/{persistent-pty-fxyf9cvj.js → file-retention-8wdak1ws.js} +9 -9
- package/dist/chunks/{persistent-pty-p0f5k013.js → file-retention-8zb64j11.js} +17 -17
- package/dist/chunks/{persistent-pty-fxzrhysn.js → file-retention-92fgxspj.js} +22 -22
- package/dist/chunks/{persistent-pty-bmr56wjg.js → file-retention-97aeaand.js} +4 -4
- package/dist/chunks/{persistent-pty-6x86d912.js → file-retention-9bh8zfva.js} +20 -20
- package/dist/chunks/{persistent-pty-47jkzegy.js → file-retention-9hwaqfsw.js} +5 -5
- package/dist/chunks/{persistent-pty-4bvfn350.js → file-retention-a1ncabta.js} +15 -15
- package/dist/chunks/{persistent-pty-a7ty8w9d.js → file-retention-a8rhqsqt.js} +19 -19
- package/dist/chunks/{persistent-pty-665ar7wd.js → file-retention-ajf5mpmj.js} +16 -16
- package/dist/chunks/{persistent-pty-y4ysphz6.js → file-retention-aq9v1yk8.js} +8 -8
- package/dist/chunks/{persistent-pty-9e043kpb.js → file-retention-b6zthw97.js} +7 -7
- package/dist/chunks/{persistent-pty-7b703rd1.js → file-retention-b7nwgrxc.js} +9 -9
- package/dist/chunks/{persistent-pty-wjr9rjd7.js → file-retention-bjx1sjef.js} +6 -6
- package/dist/chunks/{persistent-pty-jc88bv27.js → file-retention-btx3r6p2.js} +1 -1
- package/dist/chunks/{persistent-pty-c1fqxshp.js → file-retention-c1fqxshp.js} +3 -3
- package/dist/chunks/{persistent-pty-d6pcz0gg.js → file-retention-cez8prm9.js} +28 -28
- package/dist/chunks/{persistent-pty-b4dvx6h6.js → file-retention-cmhbsh7h.js} +9 -9
- package/dist/chunks/{persistent-pty-ahyazdm1.js → file-retention-cskx99g3.js} +10 -10
- package/dist/chunks/{persistent-pty-3cn3rqbv.js → file-retention-d36v90fm.js} +21 -21
- package/dist/chunks/{persistent-pty-tfzngn12.js → file-retention-d858xzj7.js} +4 -4
- package/dist/chunks/{persistent-pty-nj0667en.js → file-retention-d8x9ac8g.js} +9 -9
- package/dist/chunks/{persistent-pty-y71avatq.js → file-retention-dpkg50ah.js} +4 -4
- package/dist/chunks/{persistent-pty-dqxsqydv.js → file-retention-dqxsqydv.js} +1 -1
- package/dist/chunks/{persistent-pty-k0ygvxbw.js → file-retention-dvgz8sw6.js} +13 -13
- package/dist/chunks/{persistent-pty-1f47wwge.js → file-retention-e19s4p51.js} +14 -14
- package/dist/chunks/{persistent-pty-drfjywk0.js → file-retention-e7amzs41.js} +35 -35
- package/dist/chunks/{persistent-pty-3bpg6ayp.js → file-retention-e7db086s.js} +15 -15
- package/dist/chunks/{persistent-pty-nma959mg.js → file-retention-e80seqcp.js} +3 -3
- package/dist/chunks/{persistent-pty-xt80aqtf.js → file-retention-ec7x0vjc.js} +11 -11
- package/dist/chunks/{persistent-pty-3p1npsa0.js → file-retention-edmybrtw.js} +9 -9
- package/dist/chunks/{persistent-pty-hyr9f9q8.js → file-retention-ee1d3bc0.js} +4 -4
- package/dist/chunks/{persistent-pty-eej6y6fw.js → file-retention-eej6y6fw.js} +2 -2
- package/dist/chunks/{persistent-pty-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-52hb404k.js → file-retention-eqkxs06z.js} +6 -6
- package/dist/chunks/{persistent-pty-aw0hqjv5.js → file-retention-et2ajke8.js} +5 -5
- package/dist/chunks/{persistent-pty-ndsavt52.js → file-retention-ex8zzqeq.js} +6 -6
- package/dist/chunks/{persistent-pty-3b6v4h4h.js → file-retention-eyhqsmd4.js} +21 -21
- package/dist/chunks/{persistent-pty-3gvkq4wt.js → file-retention-f15m0rqx.js} +36 -36
- package/dist/chunks/{persistent-pty-v0es1rhs.js → file-retention-fpecnkgp.js} +9 -9
- package/dist/chunks/{persistent-pty-0y3vaskv.js → file-retention-fpmaxxag.js} +29 -29
- package/dist/chunks/{persistent-pty-xc69xq2b.js → file-retention-fr99x9ny.js} +4 -4
- package/dist/chunks/{persistent-pty-ckb424nk.js → file-retention-frww510k.js} +16 -16
- package/dist/chunks/{persistent-pty-3x6xxj8b.js → file-retention-fxjt2768.js} +27 -27
- package/dist/chunks/{persistent-pty-n6289bjf.js → file-retention-fyn8kjq9.js} +4 -4
- package/dist/chunks/{persistent-pty-v1vh7s4p.js → file-retention-g686f6pq.js} +9 -9
- package/dist/chunks/{persistent-pty-p6pn945e.js → file-retention-g7nsaq0x.js} +5 -5
- package/dist/chunks/{persistent-pty-6xckhbd5.js → file-retention-gce79w0q.js} +15 -15
- package/dist/chunks/{persistent-pty-xwwprt46.js → file-retention-gcp2mfh0.js} +37 -37
- package/dist/chunks/{persistent-pty-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-vzx2zc0c.js → file-retention-gm7t6352.js} +21 -21
- package/dist/chunks/{persistent-pty-76ft3k67.js → file-retention-gtndzxs8.js} +6 -6
- package/dist/chunks/file-retention-gyfpmg79.js +513 -0
- package/dist/chunks/{persistent-pty-dktjxkrs.js → file-retention-gyqy5ynx.js} +12 -12
- package/dist/chunks/{persistent-pty-9bf5zc4x.js → file-retention-h3tdde96.js} +5 -5
- package/dist/chunks/{persistent-pty-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-h7s7r6s9.js → file-retention-h7s7r6s9.js} +2 -2
- package/dist/chunks/{persistent-pty-6t4hr8r6.js → file-retention-h9pnpq88.js} +4 -4
- package/dist/chunks/{persistent-pty-6ps25b0n.js → file-retention-hdh09p32.js} +30 -30
- package/dist/chunks/{persistent-pty-9q61t9bb.js → file-retention-hfbyhya8.js} +10 -10
- package/dist/chunks/{persistent-pty-hgz4x7wa.js → file-retention-hgz4x7wa.js} +1 -1
- package/dist/chunks/{persistent-pty-14vpxn5n.js → file-retention-hkyn7844.js} +12 -12
- package/dist/chunks/{persistent-pty-eqzdnr9z.js → file-retention-hn388zxv.js} +7 -7
- package/dist/chunks/{persistent-pty-my4zabxr.js → file-retention-hzrfc1p4.js} +3 -3
- package/dist/chunks/{persistent-pty-j09zfasm.js → file-retention-j09zfasm.js} +3 -3
- package/dist/chunks/{persistent-pty-8k5hgken.js → file-retention-j19a5jgs.js} +39 -39
- package/dist/chunks/{persistent-pty-2hwj1jz1.js → file-retention-j1cs4cyb.js} +8 -8
- package/dist/chunks/{persistent-pty-vdvtxv0g.js → file-retention-j4aw79wa.js} +11 -11
- package/dist/chunks/{persistent-pty-cnzj44q3.js → file-retention-j6vf2ekd.js} +32 -32
- package/dist/chunks/{persistent-pty-8b8hkdbs.js → file-retention-j90fxacf.js} +4 -4
- package/dist/chunks/{persistent-pty-jgdrbmt3.js → file-retention-jd45p87c.js} +11 -11
- package/dist/chunks/{persistent-pty-c5v1qfaa.js → file-retention-jdgbktbp.js} +16 -16
- package/dist/chunks/{persistent-pty-7fkffz83.js → file-retention-jws6fkes.js} +6 -6
- package/dist/chunks/{persistent-pty-1t9yseh2.js → file-retention-jz0k2p3h.js} +1 -1
- package/dist/chunks/{persistent-pty-f1ptmd3h.js → file-retention-k1e0smkv.js} +22 -22
- package/dist/chunks/{persistent-pty-6v3seq1s.js → file-retention-k6skys1a.js} +27 -27
- package/dist/chunks/{persistent-pty-hq3c8me3.js → file-retention-khmqacep.js} +4 -4
- package/dist/chunks/{persistent-pty-01xwdrbs.js → file-retention-kmdwr4me.js} +23 -23
- package/dist/chunks/{persistent-pty-0b5g1ynf.js → file-retention-kqx1b4hy.js} +4 -4
- package/dist/chunks/{persistent-pty-62hh516m.js → file-retention-m4gecbe4.js} +17 -17
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-maspj1v3.js → file-retention-maspj1v3.js} +1 -1
- package/dist/chunks/{persistent-pty-7adpgck7.js → file-retention-mdarrdwd.js} +21 -21
- package/dist/chunks/file-retention-mj3g6zxa.js +26 -0
- package/dist/chunks/{persistent-pty-hsze8q5r.js → file-retention-mw4d6y5r.js} +22 -22
- package/dist/chunks/{persistent-pty-x661k3y3.js → file-retention-mxvxcxwy.js} +4 -4
- package/dist/chunks/{persistent-pty-yrcj3v3g.js → file-retention-n1n192bv.js} +4 -4
- package/dist/chunks/{persistent-pty-yekxr4c4.js → file-retention-n287d4xt.js} +9 -9
- package/dist/chunks/{persistent-pty-ar70kgkx.js → file-retention-n59p6y9a.js} +19 -19
- package/dist/chunks/{persistent-pty-bfegkxfd.js → file-retention-n61013np.js} +8 -8
- package/dist/chunks/{persistent-pty-edba61cy.js → file-retention-n79qwtgz.js} +4 -4
- package/dist/chunks/file-retention-naf4pan3.js +253 -0
- package/dist/chunks/{persistent-pty-np2sj7ey.js → file-retention-ncj7h78a.js} +15 -15
- package/dist/chunks/{persistent-pty-ztymdx1h.js → file-retention-nm94rf1q.js} +34 -34
- package/dist/chunks/{persistent-pty-cvh30w1t.js → file-retention-nphzgfkn.js} +8 -8
- package/dist/chunks/{persistent-pty-7z8gtjjz.js → file-retention-nq94dzyn.js} +31 -31
- package/dist/chunks/{persistent-pty-8c29c89x.js → file-retention-p0ys1q4f.js} +26 -26
- package/dist/chunks/{persistent-pty-p37cw4rj.js → file-retention-p37cw4rj.js} +1 -1
- package/dist/chunks/{persistent-pty-jhkvzc7c.js → file-retention-p65ms1vq.js} +36 -36
- package/dist/chunks/{persistent-pty-rzbw1wh1.js → file-retention-p9ap5cqx.js} +5 -5
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → file-retention-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-ga7w5vhm.js → file-retention-pq3rt767.js} +20 -20
- package/dist/chunks/{persistent-pty-s8gdcm4v.js → file-retention-pqndxp19.js} +19 -19
- package/dist/chunks/{persistent-pty-0jq9fyba.js → file-retention-prq7hedt.js} +2 -2
- package/dist/chunks/{persistent-pty-vq1vq1pz.js → file-retention-prsa3t1d.js} +13 -13
- package/dist/chunks/{persistent-pty-q0xm7vwc.js → file-retention-q0xm7vwc.js} +2 -2
- package/dist/chunks/{persistent-pty-ygdgyted.js → file-retention-q24annen.js} +22 -22
- package/dist/chunks/{persistent-pty-ny626te7.js → file-retention-q45354m6.js} +51 -51
- package/dist/chunks/{persistent-pty-e2hjzebn.js → file-retention-q5asdkn4.js} +4 -4
- package/dist/chunks/{persistent-pty-daczpnj7.js → file-retention-q6eg0k98.js} +24 -24
- package/dist/chunks/{persistent-pty-mfn7r7q5.js → file-retention-qcwpqs5z.js} +36 -36
- package/dist/chunks/{persistent-pty-s35p70fk.js → file-retention-qf3sw13q.js} +15 -15
- package/dist/chunks/{persistent-pty-ft3hqk2c.js → file-retention-qmqgtz8f.js} +9 -9
- package/dist/chunks/{persistent-pty-qnc92qwc.js → file-retention-qnc92qwc.js} +1 -1
- package/dist/chunks/{persistent-pty-qqeeq2t9.js → file-retention-qqeeq2t9.js} +1 -1
- package/dist/chunks/{persistent-pty-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-1krq413r.js → file-retention-qwtabkpy.js} +63 -63
- package/dist/chunks/{persistent-pty-kqmdx8a1.js → file-retention-qyny12st.js} +30 -30
- package/dist/chunks/{persistent-pty-edsxfdja.js → file-retention-qzn251n6.js} +45 -45
- package/dist/chunks/{persistent-pty-xznnwr43.js → file-retention-r69hmf80.js} +3 -3
- package/dist/chunks/{persistent-pty-mbnm49ss.js → file-retention-r7jsjf7n.js} +18 -18
- package/dist/chunks/{persistent-pty-4h2m9zb6.js → file-retention-r89cnx03.js} +28 -28
- package/dist/chunks/{persistent-pty-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
- package/dist/chunks/{persistent-pty-rert0e01.js → file-retention-rert0e01.js} +2 -2
- package/dist/chunks/{persistent-pty-t550f9t1.js → file-retention-rhjbct0v.js} +4 -4
- package/dist/chunks/{persistent-pty-rj3eygr5.js → file-retention-rj3eygr5.js} +2 -2
- package/dist/chunks/{persistent-pty-eywhswxm.js → file-retention-rwjc2fa2.js} +17 -17
- package/dist/chunks/{persistent-pty-exa14g4z.js → file-retention-s43z9shx.js} +40 -40
- package/dist/chunks/{persistent-pty-sa8ekw3f.js → file-retention-sa8ekw3f.js} +2 -2
- package/dist/chunks/{persistent-pty-b3f8fkhc.js → file-retention-scgrse2b.js} +5 -5
- package/dist/chunks/{persistent-pty-fb4jddjg.js → file-retention-sdvx1mbw.js} +28 -28
- package/dist/chunks/{persistent-pty-ektp8tg9.js → file-retention-se9xw6gp.js} +44 -44
- package/dist/chunks/{persistent-pty-9wg5kvhm.js → file-retention-srqxjqm4.js} +32 -32
- package/dist/chunks/{persistent-pty-5p2z92et.js → file-retention-ste2g9xd.js} +24 -24
- package/dist/chunks/{persistent-pty-7edj3kns.js → file-retention-sym5gnkg.js} +10 -10
- package/dist/chunks/{persistent-pty-syv4x271.js → file-retention-syv4x271.js} +1 -1
- package/dist/chunks/{persistent-pty-c5h28w7d.js → file-retention-t130c1zw.js} +14 -14
- package/dist/chunks/{persistent-pty-rpb78f7n.js → file-retention-t7xt8fdv.js} +14 -14
- package/dist/chunks/{persistent-pty-y6r2wh3k.js → file-retention-t9ms93eq.js} +4 -4
- package/dist/chunks/{persistent-pty-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-xvbq8549.js → file-retention-tbs2b1r3.js} +50 -50
- package/dist/chunks/{persistent-pty-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
- package/dist/chunks/{persistent-pty-tdstcens.js → file-retention-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-zbrwp585.js → file-retention-te81bscz.js} +84 -84
- package/dist/chunks/{persistent-pty-tm0kqsz3.js → file-retention-tm0kqsz3.js} +1 -1
- package/dist/chunks/{persistent-pty-qcqd9rc7.js → file-retention-tpkar9pb.js} +6 -6
- package/dist/chunks/{persistent-pty-x3m0m08t.js → file-retention-ty59shy6.js} +11 -11
- package/dist/chunks/{persistent-pty-tyytaxap.js → file-retention-tyytaxap.js} +1 -1
- package/dist/chunks/{persistent-pty-6f2f4s94.js → file-retention-v0ysa0d7.js} +24 -24
- package/dist/chunks/{persistent-pty-wq46ym2m.js → file-retention-v3zpe7p0.js} +16 -16
- package/dist/chunks/{persistent-pty-smz920yp.js → file-retention-v44g6hkp.js} +20 -20
- package/dist/chunks/{persistent-pty-2htx4yfm.js → file-retention-v4x2qbf5.js} +183 -183
- package/dist/chunks/{persistent-pty-ta2j4myx.js → file-retention-v7jgca5q.js} +13 -13
- package/dist/chunks/{persistent-pty-v7p4zvkq.js → file-retention-v7p4zvkq.js} +2 -2
- package/dist/chunks/{persistent-pty-skxkwqjc.js → file-retention-v8astjmg.js} +11 -11
- package/dist/chunks/{persistent-pty-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-fcrkf1sy.js → file-retention-vf43qnnt.js} +3 -3
- package/dist/chunks/{persistent-pty-68re2sfv.js → file-retention-vgx3m274.js} +9 -9
- package/dist/chunks/{persistent-pty-rcxkwv5z.js → file-retention-vh8vpv80.js} +35 -35
- package/dist/chunks/{persistent-pty-drnf6xwf.js → file-retention-vjjaysxc.js} +2 -2
- package/dist/chunks/{persistent-pty-ch5477sr.js → file-retention-vky1pj73.js} +3 -3
- package/dist/chunks/file-retention-vnkjks7b.js +18 -0
- package/dist/chunks/{persistent-pty-xxt2ezqw.js → file-retention-vt6xeprm.js} +6 -6
- package/dist/chunks/{persistent-pty-b1cw1a7d.js → file-retention-vyzme5k3.js} +3 -3
- package/dist/chunks/{persistent-pty-vzs5sf6e.js → file-retention-vzs5sf6e.js} +1 -1
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-qdvny7dy.js → file-retention-w8dgvwfp.js} +27 -27
- package/dist/chunks/{persistent-pty-yqvrnr2h.js → file-retention-wcgb8dbp.js} +28 -28
- package/dist/chunks/{persistent-pty-wd87259q.js → file-retention-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-jr7m0hjh.js → file-retention-wetwxakw.js} +26 -26
- package/dist/chunks/{persistent-pty-d160jaae.js → file-retention-wg8xnydk.js} +17 -17
- package/dist/chunks/{persistent-pty-2n4cckq3.js → file-retention-wnk72qpq.js} +8 -8
- package/dist/chunks/{persistent-pty-mx23yqv3.js → file-retention-wt7qt3d1.js} +13 -13
- package/dist/chunks/{persistent-pty-0pqkak0b.js → file-retention-x12kyyz4.js} +22 -22
- package/dist/chunks/{persistent-pty-qt5cx30b.js → file-retention-x4k30q0e.js} +11 -11
- package/dist/chunks/{persistent-pty-rd6hvg0x.js → file-retention-x93z75qz.js} +14 -14
- package/dist/chunks/{persistent-pty-pg2ndnc9.js → file-retention-x9gghrjv.js} +16 -16
- package/dist/chunks/{persistent-pty-gxa4nkdc.js → file-retention-xfdm5xcv.js} +20 -20
- package/dist/chunks/{persistent-pty-n0xa7jmz.js → file-retention-xvan7b2r.js} +1 -1
- package/dist/chunks/{persistent-pty-j21wy7w8.js → file-retention-xwe4by6a.js} +43 -43
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-94ca0bep.js → file-retention-yd4bzqjj.js} +5 -5
- package/dist/chunks/{persistent-pty-y2c486td.js → file-retention-yekfqxw6.js} +26 -26
- package/dist/chunks/{persistent-pty-44qhy1zg.js → file-retention-yh7v3mca.js} +21 -21
- package/dist/chunks/{persistent-pty-888zv9rh.js → file-retention-ym491c0h.js} +15 -15
- package/dist/chunks/{persistent-pty-gwdw6jm9.js → file-retention-ynb9zb2f.js} +25 -25
- package/dist/chunks/{persistent-pty-pf1ma0zm.js → file-retention-yzweyr9r.js} +34 -34
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-j01738gb.js → file-retention-z2zw7h45.js} +18 -18
- package/dist/chunks/{persistent-pty-1a261xpc.js → file-retention-zp5az1r9.js} +13 -13
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
- package/dist/chunks/{persistent-pty-19gs2232.js → file-retention-zxs2600w.js} +20 -20
- package/dist/chunks/{persistent-pty-n5cr7t3t.js → file-retention-zy3senqm.js} +34 -34
- 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 +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- 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 +16 -16
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- 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 +222 -222
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- 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 +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 +359 -359
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +77 -77
- 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 +100 -100
- 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 +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +105 -105
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +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 +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- 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 +115 -115
- 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 +124 -124
- 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 +127 -127
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +99 -99
- 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 +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +2 -2
- 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 +116 -116
- 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 +224 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +97 -97
- 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 +87 -87
- package/dist/reference.js +93 -93
- 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 +133 -133
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +216 -216
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +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 +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +132 -132
- 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 +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- 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 +130 -130
- 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 +119 -119
- 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 +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- 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 +7 -7
- package/dist/tool.js +16 -16
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-9j9hkdkf.js +0 -253
- package/dist/chunks/persistent-pty-dmn839hr.js +0 -26
- package/dist/chunks/persistent-pty-j54e1hd7.js +0 -513
- package/dist/chunks/persistent-pty-v1faaxn9.js +0 -18
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2bv980vf.js → file-retention-2bv980vf.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → file-retention-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3t0ybcrp.js → file-retention-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → file-retention-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-5qd3pb7m.js → file-retention-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → file-retention-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-6q2bdcd1.js → file-retention-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → file-retention-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-84wd9syh.js → file-retention-84wd9syh.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → file-retention-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → file-retention-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → file-retention-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hcxmzztb.js → file-retention-hcxmzztb.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → file-retention-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jze0r7bz.js → file-retention-jze0r7bz.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-m18g726c.js → file-retention-m18g726c.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-pkyv6v7h.js → file-retention-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{persistent-pty-pyv0edze.js → file-retention-pyv0edze.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ve7vex1e.js → file-retention-ve7vex1e.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wjj7prxr.js → file-retention-wjj7prxr.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → file-retention-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z5v4ffb3.js → file-retention-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-0sqg52g8.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-dpkg50ah.js";
|
|
8
8
|
import {
|
|
9
9
|
Service84,
|
|
10
10
|
node88
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-6eavwtyb.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessage2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-retention-gftt206x.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionSchema2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-retention-hzrfc1p4.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionMessageTable2,
|
|
23
23
|
SessionInboxTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./file-retention-c1fqxshp.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/session/inbox.ts
|
|
30
30
|
var exports_inbox = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_inbox, {
|
|
|
32
32
|
Compaction: () => Compaction2,
|
|
33
33
|
CompactionPayload: () => CompactionPayload2,
|
|
34
34
|
Delivery: () => Delivery2,
|
|
35
|
-
Info: () =>
|
|
35
|
+
Info: () => Info13,
|
|
36
36
|
Item: () => Item2,
|
|
37
37
|
LifecycleConflict: () => LifecycleConflict2,
|
|
38
38
|
Move: () => Move2,
|
|
39
39
|
MovePayload: () => MovePayload2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service55,
|
|
41
41
|
SessionInbox: () => exports_inbox,
|
|
42
42
|
Synthetic: () => Synthetic2,
|
|
43
43
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -45,12 +45,12 @@ __export(exports_inbox, {
|
|
|
45
45
|
UserPayload: () => UserPayload2,
|
|
46
46
|
find: () => find2,
|
|
47
47
|
has: () => has2,
|
|
48
|
-
layer: () =>
|
|
48
|
+
layer: () => layer23,
|
|
49
49
|
list: () => list3,
|
|
50
|
-
make: () =>
|
|
50
|
+
make: () => make18,
|
|
51
51
|
moveIDs: () => moveIDs2,
|
|
52
52
|
nextPromotable: () => nextPromotable2,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node58,
|
|
54
54
|
projectAdmitted: () => projectAdmitted2,
|
|
55
55
|
projectCancelled: () => projectCancelled2,
|
|
56
56
|
projectDelivered: () => projectDelivered2,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
Compaction as Compaction2,
|
|
66
66
|
CompactionPayload as CompactionPayload2,
|
|
67
67
|
Delivery as Delivery2,
|
|
68
|
-
Info as
|
|
68
|
+
Info as Info13,
|
|
69
69
|
Item as Item2,
|
|
70
70
|
Move as Move2,
|
|
71
71
|
MovePayload as MovePayload2,
|
|
@@ -151,9 +151,9 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
151
151
|
return yield* new LifecycleConflict2({ id });
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
class
|
|
154
|
+
class Service55 extends Context.Service()("@opencode/SessionInbox") {
|
|
155
155
|
}
|
|
156
|
-
var
|
|
156
|
+
var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
157
157
|
const database = yield* Service85;
|
|
158
158
|
const db = database.db;
|
|
159
159
|
const bus = yield* Service84;
|
|
@@ -173,7 +173,7 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
173
173
|
inboxID: request.id,
|
|
174
174
|
sessionID: request.sessionID,
|
|
175
175
|
item: request.item
|
|
176
|
-
}).pipe(Effect.map((event) =>
|
|
176
|
+
}).pipe(Effect.map((event) => Info13.make({
|
|
177
177
|
id: request.id,
|
|
178
178
|
sessionID: request.sessionID,
|
|
179
179
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -227,8 +227,8 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
227
227
|
queue
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
var
|
|
231
|
-
var
|
|
230
|
+
var layer23 = Layer.effect(Service55, make18());
|
|
231
|
+
var node58 = makeGlobalNode({ service: Service55, layer: layer23, deps: [node89, node88] });
|
|
232
232
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
233
233
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
234
234
|
if (message !== undefined)
|
|
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
326
326
|
return rows;
|
|
327
327
|
}));
|
|
328
328
|
|
|
329
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
329
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info13, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service55, make18, layer23, node58, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85,
|
|
6
6
|
node89
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-0sqg52g8.js";
|
|
8
8
|
import {
|
|
9
9
|
Service84,
|
|
10
10
|
node88
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-6eavwtyb.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service82,
|
|
14
|
+
node86
|
|
15
|
+
} from "./file-retention-gyqy5ynx.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID17,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info28,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event20,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-retention-fpecnkgp.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-retention-rj3eygr5.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-retention-sa8ekw3f.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
39
|
+
ID: () => ID16,
|
|
40
|
+
Info: () => Info27,
|
|
41
41
|
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service81,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node85,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID16 = ID17;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info27 = Info28;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
65
|
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
-
projectID:
|
|
66
|
+
projectID: ID16
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service81 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,9 +98,9 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service81, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service82;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
105
|
const bus = yield* Service84;
|
|
106
106
|
const db = (yield* Service85).db;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event20.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID16.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -173,7 +173,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
173
173
|
if (!row)
|
|
174
174
|
return yield* new NotFoundError11({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event20.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID16.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID16.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID16.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID16.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -248,7 +248,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
248
248
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
249
249
|
return {
|
|
250
250
|
previous,
|
|
251
|
-
id: id ??
|
|
251
|
+
id: id ?? ID16.global,
|
|
252
252
|
directory: worktree,
|
|
253
253
|
vcs: { type: "hg", store }
|
|
254
254
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* persist({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID16.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* persist({
|
|
282
|
-
id:
|
|
282
|
+
id: ID16.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID16.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service81.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node85 = makeGlobalNode({
|
|
310
|
+
service: Service81,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [node88, node89, FSUtil.node,
|
|
312
|
+
deps: [node88, node89, FSUtil.node, node86, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service81;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node85]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID16, Vcs2, Current2, Info27, UpdateInput3, NotFoundError11, root2, Service81, node85, sweepNode2, exports_project };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definition2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-pyv0edze.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/tool-input-repair.ts
|
|
9
9
|
var exports_tool_input_repair = {};
|
|
10
10
|
__export(exports_tool_input_repair, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin10,
|
|
12
12
|
ToolInputRepairPlugin: () => exports_tool_input_repair
|
|
13
13
|
});
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Effect, Option, Predicate, Schema } from "effect";
|
|
16
16
|
var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
|
|
17
17
|
var maxDepth = 6;
|
|
18
|
-
var
|
|
18
|
+
var Plugin10 = define({
|
|
19
19
|
id: "opencode.tool.input.repair",
|
|
20
20
|
effect: (ctx) => ctx.tool.hook("execute.before", (event) => Effect.gen(function* () {
|
|
21
21
|
if (event.tool === "execute")
|
|
@@ -120,4 +120,4 @@ function repairArray(value, schema, root, depth) {
|
|
|
120
120
|
return compatible ? [repaired] : value;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { Plugin10, exports_tool_input_repair };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-6eavwtyb.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
evaluate2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-retention-e7amzs41.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/skill.ts
|
|
16
16
|
var exports_skill5 = {};
|
|
17
17
|
__export(exports_skill5, {
|
|
18
18
|
DirectorySource: () => DirectorySource2,
|
|
19
19
|
EmbeddedSource: () => EmbeddedSource2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Info: () =>
|
|
20
|
+
Event: () => Event10,
|
|
21
|
+
ID: () => ID6,
|
|
22
|
+
Info: () => Info14,
|
|
23
23
|
Name: () => Name2,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service61,
|
|
25
25
|
Skill: () => exports_skill5,
|
|
26
|
-
Source: () =>
|
|
26
|
+
Source: () => Source3,
|
|
27
27
|
UrlSource: () => UrlSource2,
|
|
28
|
-
available: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
available: () => available3,
|
|
29
|
+
node: () => node64,
|
|
30
30
|
prepare: () => prepare3,
|
|
31
31
|
toModelOutput: () => toModelOutput3
|
|
32
32
|
});
|
|
@@ -34,15 +34,15 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { Context, Effect, Layer } from "effect";
|
|
36
36
|
import { Skill } from "@opencode/schema/skill";
|
|
37
|
-
import { Event as
|
|
37
|
+
import { Event as Event10 } from "@opencode/schema/skill";
|
|
38
38
|
var DirectorySource2 = Skill.DirectorySource;
|
|
39
39
|
var UrlSource2 = Skill.UrlSource;
|
|
40
40
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
41
|
+
var Source3 = Skill.Source;
|
|
42
|
+
var Info14 = Skill.Info;
|
|
43
|
+
var ID6 = Skill.ID;
|
|
44
44
|
var Name2 = Skill.Name;
|
|
45
|
-
var
|
|
45
|
+
var available3 = (skills, permissions) => skills.filter((skill) => evaluate2("skill", skill.id, permissions).effect !== "deny");
|
|
46
46
|
var toModelOutput3 = (skill, files) => {
|
|
47
47
|
const directory = path.dirname(skill.path);
|
|
48
48
|
return [
|
|
@@ -71,33 +71,33 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
|
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
class
|
|
74
|
+
class Service61 extends Context.Service()("@opencode/Skill") {
|
|
75
75
|
}
|
|
76
|
-
var layer = Layer.effect(
|
|
76
|
+
var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
77
77
|
const bus = yield* Service84;
|
|
78
78
|
const state = create3({
|
|
79
79
|
name: "skill",
|
|
80
80
|
initial: () => ({ skills: new Map }),
|
|
81
81
|
editor: (editor) => ({
|
|
82
82
|
list: () => Array.from(editor.skills.values()),
|
|
83
|
-
get: (id) => editor.skills.get(
|
|
83
|
+
get: (id) => editor.skills.get(ID6.make(id)),
|
|
84
84
|
add: (skill) => {
|
|
85
85
|
editor.skills.set(skill.id, { ...skill });
|
|
86
86
|
},
|
|
87
87
|
update: (id, update) => {
|
|
88
|
-
const current = editor.skills.get(
|
|
88
|
+
const current = editor.skills.get(ID6.make(id));
|
|
89
89
|
if (!current)
|
|
90
90
|
return;
|
|
91
91
|
update(current);
|
|
92
|
-
current.id =
|
|
92
|
+
current.id = ID6.make(id);
|
|
93
93
|
},
|
|
94
94
|
remove: (id) => {
|
|
95
|
-
editor.skills.delete(
|
|
95
|
+
editor.skills.delete(ID6.make(id));
|
|
96
96
|
}
|
|
97
97
|
}),
|
|
98
98
|
notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
|
|
99
99
|
});
|
|
100
|
-
return
|
|
100
|
+
return Service61.of({
|
|
101
101
|
transform: state.transform,
|
|
102
102
|
reload: state.reload,
|
|
103
103
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -108,10 +108,10 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
108
108
|
})
|
|
109
109
|
});
|
|
110
110
|
}));
|
|
111
|
-
var
|
|
112
|
-
service:
|
|
111
|
+
var node64 = makeLocationNode({
|
|
112
|
+
service: Service61,
|
|
113
113
|
layer,
|
|
114
114
|
deps: [node88]
|
|
115
115
|
});
|
|
116
116
|
|
|
117
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2,
|
|
117
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source3, Info14, ID6, Name2, available3, toModelOutput3, prepare3, Service61, node64, exports_skill5, Event10 };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-7s6e2gqc.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-6eavwtyb.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event18
|
|
10
|
+
} from "./file-retention-x12kyyz4.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID12,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-ym491c0h.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-retention-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID11,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-retention-k1e0smkv.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-retention-54ma36ye.js";
|
|
27
27
|
import {
|
|
28
28
|
configuredSettings2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./file-retention-n79qwtgz.js";
|
|
30
30
|
|
|
31
31
|
// src/plugin/provider/openai.ts
|
|
32
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -50,7 +50,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
50
50
|
}));
|
|
51
51
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
52
52
|
var browser = (app) => ({
|
|
53
|
-
integrationID:
|
|
53
|
+
integrationID: ID12.make("openai"),
|
|
54
54
|
method: {
|
|
55
55
|
id: browserMethodID,
|
|
56
56
|
type: "oauth",
|
|
@@ -123,7 +123,7 @@ function addressInUse(error) {
|
|
|
123
123
|
return "code" in error && error.code === "EADDRINUSE";
|
|
124
124
|
}
|
|
125
125
|
var headless = (app) => ({
|
|
126
|
-
integrationID:
|
|
126
|
+
integrationID: ID12.make("openai"),
|
|
127
127
|
method: {
|
|
128
128
|
id: headlessMethodID,
|
|
129
129
|
type: "oauth",
|
|
@@ -165,7 +165,7 @@ var headless = (app) => ({
|
|
|
165
165
|
}),
|
|
166
166
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
167
167
|
});
|
|
168
|
-
var
|
|
168
|
+
var OpenAIPlugin3 = define({
|
|
169
169
|
id: "opencode.provider.openai",
|
|
170
170
|
effect: Effect.fn(function* (ctx) {
|
|
171
171
|
const bus = yield* Service84;
|
|
@@ -183,9 +183,9 @@ var OpenAIPlugin2 = define({
|
|
|
183
183
|
editor.method.update(headless(ctx.app));
|
|
184
184
|
});
|
|
185
185
|
yield* load();
|
|
186
|
-
const configured = yield* configuredSettings2(
|
|
186
|
+
const configured = yield* configuredSettings2(ID11.openai);
|
|
187
187
|
yield* ctx.provider.transform((providers) => {
|
|
188
|
-
const item = providers.get(
|
|
188
|
+
const item = providers.get(ID11.openai);
|
|
189
189
|
if (!item)
|
|
190
190
|
return;
|
|
191
191
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -205,7 +205,7 @@ var OpenAIPlugin2 = define({
|
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
207
|
yield* ctx.model.transform((models) => {
|
|
208
|
-
for (const model of models.list(
|
|
208
|
+
for (const model of models.list(ID11.openai)) {
|
|
209
209
|
models.update(model.providerID, model.id, (draft) => {
|
|
210
210
|
if (!chatgpt)
|
|
211
211
|
return;
|
|
@@ -236,14 +236,14 @@ var OpenAIPlugin2 = define({
|
|
|
236
236
|
}));
|
|
237
237
|
evt.headers.originator = "opencode";
|
|
238
238
|
evt.headers["session-id"] = session ? get5(session) : evt.sessionID;
|
|
239
|
-
}), { providerID:
|
|
239
|
+
}), { providerID: ID11.openai });
|
|
240
240
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
241
241
|
delete evt.options.maxTokens;
|
|
242
242
|
});
|
|
243
243
|
for (const name of ["context", "compaction"])
|
|
244
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
244
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID11.openai });
|
|
245
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
246
|
-
yield* bus.subscribe(
|
|
246
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID12.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
249
|
function headers(contentType, app) {
|
|
@@ -334,4 +334,4 @@ function claim(token) {
|
|
|
334
334
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
|
-
export {
|
|
337
|
+
export { OpenAIPlugin3 };
|