@opencode/core 0.0.0-dev-20782 → 0.0.0-dev-20784
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 +84 -84
- package/dist/aisdk-native.js +90 -90
- package/dist/aisdk.js +95 -95
- package/dist/app.js +9 -9
- package/dist/bus.js +70 -70
- package/dist/chunks/{instruction-discovery-360mpsp8.js → file-retention-01m0edtj.js} +11 -11
- package/dist/chunks/file-retention-02wkw50e.js +513 -0
- package/dist/chunks/{instruction-discovery-3zb3e7qp.js → file-retention-0crjjxxx.js} +18 -18
- package/dist/chunks/{instruction-discovery-44cwas1f.js → file-retention-0e3qe3yy.js} +14 -14
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → file-retention-0j77ygfz.js} +6 -6
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-rzzn19w1.js → file-retention-0rfmeyxn.js} +11 -11
- package/dist/chunks/{instruction-discovery-e9z206xw.js → file-retention-0sdx5hkx.js} +16 -16
- package/dist/chunks/{instruction-discovery-0vbcp93d.js → file-retention-0vbcp93d.js} +2 -2
- package/dist/chunks/{instruction-discovery-n61x7dr3.js → file-retention-0y4k1x12.js} +10 -10
- package/dist/chunks/{instruction-discovery-kkna0xt5.js → file-retention-15vdfc9c.js} +3 -3
- package/dist/chunks/{instruction-discovery-1dvck2a7.js → file-retention-1dvck2a7.js} +2 -2
- package/dist/chunks/{instruction-discovery-t2jc4d6d.js → file-retention-1f2vccss.js} +36 -36
- package/dist/chunks/{instruction-discovery-q0fzxeza.js → file-retention-1k45a421.js} +11 -11
- package/dist/chunks/{instruction-discovery-8sze2n9a.js → file-retention-1p07q0wb.js} +8 -8
- package/dist/chunks/{instruction-discovery-963fmf73.js → file-retention-226karrg.js} +15 -15
- package/dist/chunks/{instruction-discovery-1r358xma.js → file-retention-2908y79c.js} +14 -14
- package/dist/chunks/{instruction-discovery-axjmkx9q.js → file-retention-291fq28g.js} +49 -49
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → file-retention-2ccvkpx1.js} +2 -2
- package/dist/chunks/{instruction-discovery-smdct0jd.js → file-retention-2ekw743c.js} +1 -1
- package/dist/chunks/{instruction-discovery-9b00c1fb.js → file-retention-2hg7qvzt.js} +5 -5
- package/dist/chunks/{instruction-discovery-zyc9an2m.js → file-retention-2j3kqcde.js} +22 -22
- package/dist/chunks/{instruction-discovery-gj71zhbs.js → file-retention-2k9fjx65.js} +5 -5
- package/dist/chunks/{instruction-discovery-c2kcpa0d.js → file-retention-2mqvqnd5.js} +13 -13
- package/dist/chunks/{instruction-discovery-np756ma8.js → file-retention-2n9hdwqs.js} +28 -28
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → file-retention-2vvh33eb.js} +3 -3
- package/dist/chunks/{instruction-discovery-ta6js1ab.js → file-retention-2w2dfs1b.js} +13 -13
- package/dist/chunks/{instruction-discovery-rwp39ykb.js → file-retention-32y4ehgv.js} +11 -11
- package/dist/chunks/{instruction-discovery-z6qhsg7w.js → file-retention-35p49r4v.js} +29 -29
- package/dist/chunks/{instruction-discovery-0xezjjjn.js → file-retention-37ea9c2d.js} +8 -8
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → file-retention-3hwn7j4h.js} +5 -5
- package/dist/chunks/{instruction-discovery-k5ycpxe4.js → file-retention-3pa89wpn.js} +4 -4
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-3y377wv9.js → file-retention-3y377wv9.js} +1 -1
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → file-retention-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-4434d9q2.js → file-retention-4434d9q2.js} +2 -2
- package/dist/chunks/{instruction-discovery-pb4fdh5c.js → file-retention-4bzbvhwk.js} +15 -15
- package/dist/chunks/{instruction-discovery-rv5n7j43.js → file-retention-4re51v5c.js} +79 -79
- package/dist/chunks/{instruction-discovery-9wfzrxmy.js → file-retention-4wnyxfvg.js} +4 -4
- package/dist/chunks/{instruction-discovery-bcmjx010.js → file-retention-4x8je4cs.js} +25 -25
- package/dist/chunks/{instruction-discovery-bxvqbgr6.js → file-retention-4zeyygbb.js} +11 -11
- package/dist/chunks/{instruction-discovery-r94pvvab.js → file-retention-54ma36ye.js} +4 -4
- package/dist/chunks/{instruction-discovery-79vj9ttj.js → file-retention-54vb1344.js} +33 -33
- package/dist/chunks/{instruction-discovery-wxbrt247.js → file-retention-5526gnt0.js} +5 -5
- package/dist/chunks/{instruction-discovery-xfkkasph.js → file-retention-57b9ws8p.js} +7 -7
- package/dist/chunks/{instruction-discovery-zsr4wwhv.js → file-retention-5dkn69vz.js} +4 -4
- package/dist/chunks/file-retention-5fec3t3w.js +31 -0
- package/dist/chunks/{instruction-discovery-7rna5akc.js → file-retention-5g380qbr.js} +12 -12
- package/dist/chunks/{instruction-discovery-5m9w47nd.js → file-retention-5m9w47nd.js} +1 -1
- package/dist/chunks/{instruction-discovery-j9ckj638.js → file-retention-5shkaybx.js} +15 -15
- package/dist/chunks/{instruction-discovery-pgnspfd3.js → file-retention-5sn004hq.js} +19 -19
- package/dist/chunks/{instruction-discovery-79edx0mb.js → file-retention-5w8jzqx5.js} +3 -3
- package/dist/chunks/{instruction-discovery-5yzzbxa7.js → file-retention-5xtgfte3.js} +8 -8
- package/dist/chunks/{instruction-discovery-x4fwsepj.js → file-retention-5z9rmvjz.js} +63 -63
- package/dist/chunks/{instruction-discovery-kfab6w5x.js → file-retention-641gya88.js} +1 -1
- package/dist/chunks/{instruction-discovery-0we0h601.js → file-retention-6gaajhts.js} +11 -11
- package/dist/chunks/{instruction-discovery-z2k32cdp.js → file-retention-6mbzp12p.js} +30 -30
- package/dist/chunks/{instruction-discovery-cqmz66tp.js → file-retention-6wh776qa.js} +3 -3
- package/dist/chunks/{instruction-discovery-6xb47vfp.js → file-retention-6xb47vfp.js} +1 -1
- package/dist/chunks/{instruction-discovery-2geymwnw.js → file-retention-700ev8gh.js} +35 -35
- package/dist/chunks/{instruction-discovery-71az546q.js → file-retention-71az546q.js} +2 -2
- package/dist/chunks/{instruction-discovery-qxjc9qry.js → file-retention-72sxpf59.js} +3 -3
- package/dist/chunks/{instruction-discovery-y7bnjqap.js → file-retention-75w0f5x3.js} +6 -6
- package/dist/chunks/{instruction-discovery-wcham18f.js → file-retention-76g80x4f.js} +3 -3
- package/dist/chunks/{instruction-discovery-f62qkzqr.js → file-retention-76rvckpe.js} +5 -5
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-8xfrtn2e.js → file-retention-7cxxxtha.js} +47 -47
- package/dist/chunks/{instruction-discovery-0jwsre1p.js → file-retention-7dqw4kz8.js} +5 -5
- package/dist/chunks/{instruction-discovery-fcr3mt8k.js → file-retention-7fdjvgwr.js} +4 -4
- package/dist/chunks/{instruction-discovery-n7akkzww.js → file-retention-7j5w12p9.js} +33 -33
- package/dist/chunks/{instruction-discovery-8n1xcq6q.js → file-retention-7kk9evys.js} +4 -4
- package/dist/chunks/{instruction-discovery-xg6qg3nm.js → file-retention-7me7tz75.js} +4 -4
- package/dist/chunks/{instruction-discovery-tf0c2awf.js → file-retention-7pj8drkf.js} +11 -11
- package/dist/chunks/{instruction-discovery-yfhn5nrx.js → file-retention-81fjg4yx.js} +6 -6
- package/dist/chunks/{instruction-discovery-gdgw3x5a.js → file-retention-84wx499v.js} +28 -28
- package/dist/chunks/{instruction-discovery-q83947zm.js → file-retention-85snt3vs.js} +125 -125
- package/dist/chunks/{instruction-discovery-5pyjqqve.js → file-retention-85xxa1xb.js} +2 -2
- package/dist/chunks/{instruction-discovery-sezbf1v0.js → file-retention-87bzfwd4.js} +9 -9
- package/dist/chunks/{instruction-discovery-6k2hc147.js → file-retention-88pgeajf.js} +6 -6
- package/dist/chunks/{instruction-discovery-8m6m0r52.js → file-retention-8m6m0r52.js} +1 -1
- package/dist/chunks/{instruction-discovery-af40zjcf.js → file-retention-8sd5y0hb.js} +24 -24
- package/dist/chunks/{instruction-discovery-tcay1cqt.js → file-retention-909p1r3q.js} +6 -6
- package/dist/chunks/{instruction-discovery-x0jg5t32.js → file-retention-90ncnea0.js} +15 -15
- package/dist/chunks/{instruction-discovery-sw89crrp.js → file-retention-998r05vw.js} +14 -14
- package/dist/chunks/{instruction-discovery-9e5bzkjp.js → file-retention-9e5bzkjp.js} +3 -3
- package/dist/chunks/{instruction-discovery-8swzzhdb.js → file-retention-9hy1eatw.js} +7 -7
- package/dist/chunks/{instruction-discovery-c7w2daa3.js → file-retention-9j1mbtc1.js} +15 -15
- package/dist/chunks/{instruction-discovery-49eq2tc2.js → file-retention-9r9w78qs.js} +9 -9
- package/dist/chunks/{instruction-discovery-60p1zxrk.js → file-retention-a0pnfrft.js} +34 -34
- package/dist/chunks/{instruction-discovery-chrxq3ex.js → file-retention-a310axxt.js} +16 -16
- package/dist/chunks/{instruction-discovery-nh9cv99v.js → file-retention-a9kdv268.js} +13 -13
- package/dist/chunks/{instruction-discovery-63fhbdq2.js → file-retention-ab8h52gf.js} +26 -26
- package/dist/chunks/{instruction-discovery-27zpda9y.js → file-retention-ac7rwfbv.js} +12 -12
- package/dist/chunks/{instruction-discovery-5fnjcay5.js → file-retention-adm4qcea.js} +32 -32
- package/dist/chunks/{instruction-discovery-cdpzxgfg.js → file-retention-ath3g41k.js} +38 -38
- package/dist/chunks/{instruction-discovery-rxkxex79.js → file-retention-azanj09g.js} +10 -10
- package/dist/chunks/{instruction-discovery-8vsr9pta.js → file-retention-azy71b5p.js} +10 -10
- package/dist/chunks/{instruction-discovery-f4284ta9.js → file-retention-b2tc811h.js} +7 -7
- package/dist/chunks/{instruction-discovery-scgrse2b.js → file-retention-b3f8fkhc.js} +5 -5
- package/dist/chunks/{instruction-discovery-vx3jgdek.js → file-retention-ba07h9gm.js} +3 -3
- package/dist/chunks/{instruction-discovery-vd95wqeb.js → file-retention-banfh6zd.js} +18 -18
- package/dist/chunks/{instruction-discovery-57dh3qy1.js → file-retention-bbcm0tyt.js} +73 -73
- package/dist/chunks/{instruction-discovery-1ygqh575.js → file-retention-bjx1sjef.js} +3 -3
- package/dist/chunks/{instruction-discovery-kvjzkr2v.js → file-retention-bkxyw0dr.js} +9 -9
- package/dist/chunks/{instruction-discovery-b08h51y8.js → file-retention-btmq9cxd.js} +11 -11
- package/dist/chunks/{instruction-discovery-e9ga1v8m.js → file-retention-btwe4kze.js} +2 -2
- package/dist/chunks/{instruction-discovery-602dh00x.js → file-retention-bzn6nda8.js} +11 -11
- package/dist/chunks/{instruction-discovery-50q9psn3.js → file-retention-cd70q2ry.js} +24 -24
- package/dist/chunks/{instruction-discovery-ckj0avjx.js → file-retention-ck45pw9k.js} +4 -4
- package/dist/chunks/{instruction-discovery-v23r60sg.js → file-retention-d580n77m.js} +11 -11
- package/dist/chunks/{instruction-discovery-hv4axfbz.js → file-retention-d6w343vm.js} +17 -17
- package/dist/chunks/{instruction-discovery-8a6ws7jr.js → file-retention-d7x0sh0y.js} +10 -10
- package/dist/chunks/{instruction-discovery-q5mm4580.js → file-retention-d7zv88p4.js} +14 -14
- package/dist/chunks/{instruction-discovery-dpkg50ah.js → file-retention-dpkg50ah.js} +1 -1
- package/dist/chunks/{instruction-discovery-a75c3n10.js → file-retention-dwaxmk1s.js} +11 -11
- package/dist/chunks/{instruction-discovery-pwtcwx0t.js → file-retention-dwe8s81y.js} +8 -8
- package/dist/chunks/file-retention-dxj72tfx.js +18 -0
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → file-retention-e3qxr5gk.js} +2 -2
- package/dist/chunks/{instruction-discovery-egtbwj3m.js → file-retention-e4ma86vn.js} +10 -10
- package/dist/chunks/{instruction-discovery-3hmxmgkr.js → file-retention-e4nca66s.js} +5 -5
- package/dist/chunks/{instruction-discovery-9tw9cr0p.js → file-retention-e80jqawr.js} +16 -16
- package/dist/chunks/{instruction-discovery-fqyzxfb3.js → file-retention-ea9a622x.js} +8 -8
- package/dist/chunks/{instruction-discovery-gn494k17.js → file-retention-ecv6s6zk.js} +24 -24
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → file-retention-eej6y6fw.js} +6 -6
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-0stc2z4v.js → file-retention-ek3n6pab.js} +10 -10
- package/dist/chunks/{instruction-discovery-c8dqtw9g.js → file-retention-enqcm95t.js} +36 -36
- package/dist/chunks/{instruction-discovery-10r2mgvp.js → file-retention-eyhnzkb4.js} +3 -3
- package/dist/chunks/{instruction-discovery-5dnsm7b1.js → file-retention-eynxa54k.js} +44 -44
- package/dist/chunks/file-retention-f2fj5fz0.js +253 -0
- package/dist/chunks/{instruction-discovery-0vbd7zxx.js → file-retention-f8d5qev0.js} +10 -10
- package/dist/chunks/{instruction-discovery-f51fnx13.js → file-retention-fgjzfnyp.js} +5 -5
- package/dist/chunks/{instruction-discovery-a11hgr5e.js → file-retention-fhx5vk7x.js} +26 -26
- package/dist/chunks/{instruction-discovery-4cdv1at0.js → file-retention-fjh3s92b.js} +24 -24
- package/dist/chunks/{instruction-discovery-1kemzmpx.js → file-retention-fkrcgtjd.js} +8 -8
- package/dist/chunks/{instruction-discovery-v5dkyp31.js → file-retention-fm2qvscf.js} +4 -4
- package/dist/chunks/{instruction-discovery-8tj7q0dk.js → file-retention-frf5w0nt.js} +15 -15
- package/dist/chunks/{instruction-discovery-mreyc66c.js → file-retention-fshxsajn.js} +27 -27
- package/dist/chunks/{instruction-discovery-gf7945dc.js → file-retention-g7kzsnmy.js} +14 -14
- package/dist/chunks/{instruction-discovery-y6wkewnn.js → file-retention-g95216pe.js} +45 -45
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-qkf3nnpx.js → file-retention-gfe3ax2q.js} +3 -3
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → file-retention-gk8qb678.js} +4 -4
- package/dist/chunks/{instruction-discovery-at8ypwft.js → file-retention-gw2k9m0t.js} +14 -14
- package/dist/chunks/{instruction-discovery-r96p2y56.js → file-retention-gz086qgb.js} +10 -10
- package/dist/chunks/{instruction-discovery-h2b79v29.js → file-retention-h2b79v29.js} +2 -2
- package/dist/chunks/{instruction-discovery-z4p89hhw.js → file-retention-h5qdgnb5.js} +22 -22
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-31xfzrxg.js → file-retention-h7s7r6s9.js} +5 -5
- package/dist/chunks/{instruction-discovery-44ak30pa.js → file-retention-h9pnpq88.js} +4 -4
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → file-retention-hgz4x7wa.js} +4 -4
- package/dist/chunks/{instruction-discovery-pb85jpk7.js → file-retention-hn2ax6sd.js} +21 -21
- package/dist/chunks/{instruction-discovery-btgar8yp.js → file-retention-hnra3d6s.js} +5 -5
- package/dist/chunks/{instruction-discovery-mjxe5z4k.js → file-retention-hp90m9cj.js} +30 -30
- package/dist/chunks/{instruction-discovery-y1tpmgde.js → file-retention-hq6c81g9.js} +11 -11
- package/dist/chunks/{instruction-discovery-bpf208j3.js → file-retention-hrh521yf.js} +11 -11
- package/dist/chunks/{instruction-discovery-ystf5kkg.js → file-retention-hs4w86ex.js} +7 -7
- package/dist/chunks/{instruction-discovery-qqynch2e.js → file-retention-hs6v00ac.js} +11 -11
- package/dist/chunks/{instruction-discovery-gge0vm43.js → file-retention-hymc8p36.js} +8 -8
- package/dist/chunks/{instruction-discovery-1tjztkak.js → file-retention-j4hxg427.js} +4 -4
- package/dist/chunks/{instruction-discovery-j56e64zr.js → file-retention-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-he27pt63.js → file-retention-jhdf29st.js} +1 -1
- package/dist/chunks/{instruction-discovery-synadcw7.js → file-retention-jjenqzg1.js} +40 -40
- package/dist/chunks/{instruction-discovery-hq1vq67z.js → file-retention-jtmhc97q.js} +49 -49
- package/dist/chunks/{instruction-discovery-y8cydn3q.js → file-retention-jze0r7bz.js} +3 -8
- package/dist/chunks/{instruction-discovery-3ax2ysvz.js → file-retention-k3wcbxqn.js} +4 -4
- package/dist/chunks/{instruction-discovery-sv19v7sb.js → file-retention-k430jzx8.js} +12 -12
- package/dist/chunks/{instruction-discovery-r9w3djhf.js → file-retention-k79tzb9n.js} +8 -8
- package/dist/chunks/{instruction-discovery-s5zmf07f.js → file-retention-ka5c30pq.js} +20 -20
- package/dist/chunks/{instruction-discovery-cqs6vem1.js → file-retention-kksd5aqz.js} +28 -28
- package/dist/chunks/{instruction-discovery-k3wb8j43.js → file-retention-kkymj4jt.js} +16 -16
- package/dist/chunks/{instruction-discovery-t7n9q6bq.js → file-retention-kne8f3cn.js} +4 -4
- package/dist/chunks/{instruction-discovery-bm9y40sw.js → file-retention-ks6sgrkr.js} +2 -2
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → file-retention-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-17mpb7fd.js → file-retention-m6y8pydv.js} +4 -4
- package/dist/chunks/{instruction-discovery-syz74wzn.js → file-retention-m8q1dgfp.js} +3 -3
- package/dist/chunks/{instruction-discovery-r3q6pmcz.js → file-retention-m91gvp7t.js} +6 -6
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-xmqf1fmd.js → file-retention-mcp2qyd7.js} +17 -17
- package/dist/chunks/{instruction-discovery-y8vrn31s.js → file-retention-md08r0z8.js} +24 -24
- package/dist/chunks/{instruction-discovery-cqchcp8x.js → file-retention-mm2pt0qe.js} +11 -11
- package/dist/chunks/{instruction-discovery-8b5rhhee.js → file-retention-mmsbfapg.js} +1 -1
- package/dist/chunks/{instruction-discovery-4j5x2wz8.js → file-retention-msa89gt8.js} +14 -14
- package/dist/chunks/{instruction-discovery-nj2dn555.js → file-retention-mvsrg00e.js} +19 -19
- package/dist/chunks/{instruction-discovery-e8529jhe.js → file-retention-mx7expm3.js} +14 -14
- package/dist/chunks/{instruction-discovery-6nsn052z.js → file-retention-my8b67cc.js} +11 -11
- package/dist/chunks/{instruction-discovery-xrx0vcgk.js → file-retention-n7chjqa1.js} +15 -15
- package/dist/chunks/{instruction-discovery-8stx3s0r.js → file-retention-nb1wrey8.js} +7 -7
- package/dist/chunks/{instruction-discovery-9w7chaj1.js → file-retention-nge58cm1.js} +13 -13
- package/dist/chunks/{instruction-discovery-akv18b54.js → file-retention-nqj1gben.js} +20 -20
- package/dist/chunks/file-retention-nxaxcbj9.js +26 -0
- package/dist/chunks/{instruction-discovery-9av7h1n2.js → file-retention-pdetw647.js} +11 -11
- package/dist/chunks/{instruction-discovery-gh15yn4h.js → file-retention-pgdn5y71.js} +16 -16
- package/dist/chunks/{instruction-discovery-t2vr066h.js → file-retention-phxa5z0e.js} +7 -7
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → file-retention-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-d858xzj7.js → file-retention-pmwpe40e.js} +4 -4
- package/dist/chunks/{instruction-discovery-xvg5nvxt.js → file-retention-pq6k9xjj.js} +4 -4
- package/dist/chunks/{instruction-discovery-0ged7w62.js → file-retention-pr54a62y.js} +24 -24
- package/dist/chunks/{instruction-discovery-3w5fmr99.js → file-retention-pyv0edze.js} +8 -5
- package/dist/chunks/{instruction-discovery-2wdw534y.js → file-retention-q3qqjc4j.js} +8 -8
- package/dist/chunks/{instruction-discovery-686tktas.js → file-retention-q4dve0yc.js} +9 -9
- package/dist/chunks/{instruction-discovery-9bvphjpv.js → file-retention-qf6etae5.js} +8 -8
- package/dist/chunks/{instruction-discovery-m8w6th39.js → file-retention-qmqgtz8f.js} +9 -9
- package/dist/chunks/{instruction-discovery-qnc92qwc.js → file-retention-qnc92qwc.js} +1 -1
- package/dist/chunks/{instruction-discovery-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-65b4pyhp.js → file-retention-qsxkee9e.js} +14 -14
- package/dist/chunks/{instruction-discovery-qkmtz0t6.js → file-retention-qthw6f29.js} +11 -11
- package/dist/chunks/{instruction-discovery-n2rqx0tz.js → file-retention-r2ktrraj.js} +19 -19
- package/dist/chunks/{instruction-discovery-73tb2d7t.js → file-retention-r2z489rp.js} +4 -4
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-qq85v7zp.js → file-retention-rr9cc36v.js} +9 -9
- package/dist/chunks/{instruction-discovery-xk4rh883.js → file-retention-rtg4wmet.js} +2 -2
- package/dist/chunks/{instruction-discovery-t5yd8hbr.js → file-retention-ryndta0d.js} +9 -9
- package/dist/chunks/{instruction-discovery-1k2smawz.js → file-retention-s4wwhvjv.js} +13 -13
- package/dist/chunks/{instruction-discovery-s8d7rejh.js → file-retention-s8d7rejh.js} +1 -1
- package/dist/chunks/{instruction-discovery-6qskr82s.js → file-retention-sd2fp9ec.js} +13 -13
- package/dist/chunks/{instruction-discovery-w7vtn5sw.js → file-retention-sf9ed94r.js} +2 -2
- package/dist/chunks/{instruction-discovery-4rkyb0s7.js → file-retention-sfczn6wa.js} +8 -8
- package/dist/chunks/{instruction-discovery-kyktj0vd.js → file-retention-spqcpneg.js} +6 -6
- package/dist/chunks/{instruction-discovery-p2783dtm.js → file-retention-sww10ew7.js} +13 -13
- package/dist/chunks/{instruction-discovery-34qpsr95.js → file-retention-t171g2rj.js} +8 -8
- package/dist/chunks/{instruction-discovery-t323t0gb.js → file-retention-t3kgvaqg.js} +2 -2
- package/dist/chunks/{instruction-discovery-zpj5ct35.js → file-retention-t5ae1t4b.js} +25 -25
- package/dist/chunks/{instruction-discovery-yhq47pcp.js → file-retention-t8g2rvm9.js} +7 -7
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
- package/dist/chunks/{instruction-discovery-tdstcens.js → file-retention-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-feetnjr6.js → file-retention-thygzj8s.js} +27 -27
- package/dist/chunks/{instruction-discovery-4xpgt2w9.js → file-retention-tk14y25j.js} +5 -5
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → file-retention-tyytaxap.js} +2 -2
- package/dist/chunks/{instruction-discovery-aaet6srn.js → file-retention-v7p4zvkq.js} +9 -9
- package/dist/chunks/{instruction-discovery-7ryxxm4b.js → file-retention-v7rdbjkx.js} +25 -25
- package/dist/chunks/{instruction-discovery-2as4tx64.js → file-retention-v97fnpgb.js} +1 -1
- package/dist/chunks/{instruction-discovery-ze5v0a14.js → file-retention-vbrars45.js} +9 -9
- package/dist/chunks/{instruction-discovery-s69ykywc.js → file-retention-vcn79w6t.js} +3 -3
- package/dist/chunks/{instruction-discovery-x4mjcayf.js → file-retention-vczmck8z.js} +13 -13
- package/dist/chunks/{instruction-discovery-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-89bb6baa.js → file-retention-vwpcpzep.js} +8 -8
- package/dist/chunks/{instruction-discovery-x34zhfjm.js → file-retention-vytaj533.js} +26 -26
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → file-retention-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-w1eejvng.js → file-retention-w1eejvng.js} +1 -1
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-68vyckmv.js → file-retention-waztmdc6.js} +20 -20
- package/dist/chunks/{instruction-discovery-6ws5tars.js → file-retention-wcdwbs26.js} +18 -18
- package/dist/chunks/{instruction-discovery-wd87259q.js → file-retention-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-z8bhx33c.js → file-retention-wsq1jxfe.js} +34 -34
- package/dist/chunks/{instruction-discovery-6caak1jq.js → file-retention-wx15gkxh.js} +16 -16
- package/dist/chunks/{instruction-discovery-cfxa9as9.js → file-retention-wy0w7taj.js} +9 -9
- package/dist/chunks/{instruction-discovery-rp2ppsw4.js → file-retention-x0q3bb0r.js} +26 -26
- package/dist/chunks/{instruction-discovery-0m8hv4nh.js → file-retention-x47gwdav.js} +11 -11
- package/dist/chunks/{instruction-discovery-ycjk77ae.js → file-retention-x799tqys.js} +15 -15
- package/dist/chunks/{instruction-discovery-eb5z6jr7.js → file-retention-xc914k0j.js} +24 -24
- package/dist/chunks/{instruction-discovery-a1ct5nee.js → file-retention-xdqkszf6.js} +16 -16
- package/dist/chunks/{instruction-discovery-d2q60j7m.js → file-retention-xhr4eg5m.js} +12 -12
- package/dist/chunks/{instruction-discovery-tm3atzj4.js → file-retention-xhvwjgs8.js} +42 -42
- package/dist/chunks/{instruction-discovery-wjz06c0c.js → file-retention-xnyn0jx3.js} +14 -14
- package/dist/chunks/{instruction-discovery-857eprax.js → file-retention-xrmap3r6.js} +7 -9
- package/dist/chunks/{instruction-discovery-m59p890d.js → file-retention-xwfqprxb.js} +7 -7
- package/dist/chunks/{instruction-discovery-avcq3x7p.js → file-retention-xxy9zgkz.js} +20 -20
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-g4f17vch.js → file-retention-y497myth.js} +1 -1
- package/dist/chunks/{instruction-discovery-5th9bftb.js → file-retention-y5y4kes7.js} +58 -37
- package/dist/chunks/{instruction-discovery-ykqrqqm6.js → file-retention-y6nv3cb4.js} +24 -24
- package/dist/chunks/{instruction-discovery-ncjwbx8b.js → file-retention-ycd7fagt.js} +24 -24
- package/dist/chunks/{instruction-discovery-aecw5y3e.js → file-retention-ymh22vxa.js} +9 -9
- package/dist/chunks/{instruction-discovery-1tbv6vyw.js → file-retention-ynmknp8q.js} +19 -21
- package/dist/chunks/{instruction-discovery-1acjjqhc.js → file-retention-yp2x3t23.js} +4 -4
- package/dist/chunks/{instruction-discovery-h4wwbfpj.js → file-retention-ytt0bby0.js} +10 -10
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-zhz6d7qj.js → file-retention-z3db4tjk.js} +21 -21
- package/dist/chunks/{instruction-discovery-1swkvkvd.js → file-retention-z71twgyp.js} +1 -1
- package/dist/chunks/{instruction-discovery-fd3yny95.js → file-retention-z7qtbqvc.js} +19 -19
- package/dist/chunks/{instruction-discovery-rz911c4y.js → file-retention-zfs8ae4p.js} +4 -4
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-h0xvqqwh.js → file-retention-zrnmd36g.js} +6 -6
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +78 -78
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +100 -100
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +206 -206
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +119 -119
- package/dist/config/plugin/mcp.js +124 -124
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +119 -119
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +120 -120
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +118 -118
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +122 -122
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +74 -74
- package/dist/database/database.js +67 -67
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration.gen.js +50 -50
- package/dist/database/migration.js +52 -52
- 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 +4 -4
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +4 -4
- package/dist/database/sqlite.workerd.js +4 -4
- package/dist/database/v1-migration.bun.js +77 -77
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -366
- 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 +94 -94
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +3 -3
- package/dist/environment/index.js +98 -98
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +2 -2
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +71 -71
- package/dist/file-access.js +105 -105
- package/dist/file-mutation.js +95 -95
- 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 +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +104 -104
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +103 -103
- package/dist/form.js +71 -71
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +104 -104
- package/dist/git.js +6 -6
- 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 +100 -100
- 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 +357 -357
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +78 -78
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +74 -74
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +104 -104
- package/dist/location-service-map.js +87 -87
- package/dist/location-services.js +354 -354
- package/dist/location.js +82 -82
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +98 -98
- package/dist/mcp/instructions.js +124 -124
- package/dist/mcp/oauth.js +76 -76
- package/dist/mcp/stdio.js +91 -91
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +100 -100
- package/dist/model-resolver.js +99 -99
- package/dist/model.js +97 -97
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +114 -114
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -76
- package/dist/plugin/agent.js +73 -73
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +329 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +97 -97
- package/dist/plugin/module.js +118 -118
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +103 -103
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +91 -91
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +95 -95
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -113
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +94 -94
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +96 -96
- package/dist/plugin/provider/gitlab.js +94 -94
- package/dist/plugin/provider/google-vertex.js +114 -114
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +79 -79
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/local.js +114 -114
- package/dist/plugin/provider/modal.js +93 -93
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai.js +96 -96
- package/dist/plugin/provider/opencode.js +98 -98
- package/dist/plugin/provider/openrouter.js +92 -92
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +80 -80
- package/dist/plugin/provider/prompt-cache-key.js +91 -91
- package/dist/plugin/provider/sap-ai-core.js +92 -92
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -116
- package/dist/plugin/provider/vercel.js +91 -91
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +92 -92
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/sdk.js +77 -77
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +87 -87
- package/dist/plugin/vcs/hg.js +87 -87
- package/dist/plugin/verbosity.js +94 -94
- package/dist/plugin/warming.js +115 -115
- 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 +2 -2
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +215 -215
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -81
- package/dist/provider.js +96 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -92
- package/dist/reference/instructions.js +90 -90
- package/dist/reference.js +92 -92
- package/dist/repository-cache.js +82 -82
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +87 -87
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +75 -75
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +89 -89
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +153 -153
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +85 -85
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +80 -80
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +87 -87
- package/dist/session/prompt.js +106 -106
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +91 -91
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +99 -99
- package/dist/session/runner/publish-llm-event.js +114 -114
- 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 +163 -163
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +106 -106
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +158 -158
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +208 -208
- package/dist/session/usage.js +1 -1
- package/dist/session.js +210 -210
- 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 +131 -131
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +113 -113
- package/dist/snapshot.js +94 -94
- 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 +121 -121
- package/dist/tool/plugin/edit.js +121 -121
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +125 -125
- package/dist/tool/plugin/grep.js +125 -125
- package/dist/tool/plugin/mcp-resource.js +118 -118
- package/dist/tool/plugin/opencode.js +110 -110
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +126 -126
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +114 -114
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +115 -115
- package/dist/tool/plugin/write.js +123 -123
- package/dist/tool/read-filesystem.js +101 -101
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/bus.d.ts +2 -2
- package/dist/types/database/database.d.ts +1 -1
- package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +1 -1
- package/dist/types/database/drizzle/effect-sqlite/session.d.ts +2 -2
- package/dist/types/database/drizzle/sqlite-core/effect/db.d.ts +1 -1
- package/dist/types/database/drizzle/sqlite-core/effect/session.d.ts +1 -1
- package/dist/types/database/sqlite.bun.d.ts +1 -1
- package/dist/types/database/sqlite.d.ts +4 -4
- package/dist/types/database/sqlite.node.d.ts +1 -1
- package/dist/types/database/sqlite.workerd.d.ts +1 -1
- package/dist/types/effect/app-node-platform.d.ts +1 -1
- package/dist/types/effect/websocket-constructor.d.ts +1 -1
- package/dist/types/environment/driver.d.ts +1 -1
- package/dist/types/environment/environment.d.ts +1 -1
- package/dist/types/environment/exec-defaults.d.ts +1 -1
- package/dist/types/environment/local.d.ts +1 -1
- package/dist/types/environment/unavailable.d.ts +7 -7
- package/dist/types/models-dev.d.ts +1 -1
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/provider/azure.d.ts +1 -1
- package/dist/types/plugin/provider/chatgpt.d.ts +2 -2
- package/dist/types/plugin/provider/digitalocean.d.ts +1 -1
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
- package/dist/types/plugin/provider/local.d.ts +4 -4
- package/dist/types/plugin/provider/ollama.d.ts +2 -2
- package/dist/types/plugin/provider/opencode.d.ts +1 -1
- package/dist/types/plugin/provider/poe.d.ts +1 -1
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/provider/vllm.d.ts +2 -2
- package/dist/types/plugin/websearch/exa.d.ts +1 -1
- package/dist/types/plugin/websearch/firecrawl.d.ts +1 -1
- package/dist/types/plugin/websearch/index.d.ts +1 -1
- package/dist/types/plugin/websearch/mcp.d.ts +2 -2
- package/dist/types/plugin/websearch/parallel.d.ts +1 -1
- package/dist/types/plugin/websearch/tavily.d.ts +1 -1
- package/dist/types/plugin/websearch/tinyfish.d.ts +1 -1
- package/dist/types/session/diff.d.ts +1 -1
- package/dist/types/session/history.d.ts +5 -5
- package/dist/types/session/inbox.d.ts +10 -10
- package/dist/types/session/instruction-entry.d.ts +2 -2
- package/dist/types/session/instruction-state.d.ts +10 -10
- package/dist/types/session/model-transport.d.ts +1 -1
- package/dist/types/tool/http-body.d.ts +2 -2
- package/dist/types/tool/plugin/webfetch.d.ts +1 -1
- package/dist/types/v1/config/agent.d.ts +6 -66
- package/dist/types/v1/config/migrate.d.ts +1 -1
- package/dist/types/v1/config/permission.d.ts +5 -53
- package/dist/types/wellknown.d.ts +1 -1
- 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/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +93 -93
- package/dist/v1/config/permission.js +9 -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/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +90 -90
- package/dist/websearch.js +85 -85
- package/dist/wellknown/plugin.js +77 -77
- package/dist/wellknown.js +82 -82
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +85 -83
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +90 -90
- package/dist/worktree.js +95 -95
- package/package.json +13 -12
- package/dist/chunks/instruction-discovery-4n467418.js +0 -26
- package/dist/chunks/instruction-discovery-50mzsvk4.js +0 -41
- package/dist/chunks/instruction-discovery-gvycgm0h.js +0 -253
- package/dist/chunks/instruction-discovery-jqh9b0xq.js +0 -18
- package/dist/chunks/instruction-discovery-nhyhg56g.js +0 -513
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → file-retention-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → file-retention-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3t0ybcrp.js → file-retention-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → file-retention-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → file-retention-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → file-retention-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → file-retention-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-84wd9syh.js → file-retention-84wd9syh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bw78ga2c.js → file-retention-bw78ga2c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → file-retention-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → file-retention-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → file-retention-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → file-retention-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ve7vex1e.js → file-retention-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → file-retention-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → file-retention-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-retention-m6y8pydv.js";
|
|
5
5
|
import {
|
|
6
6
|
Service78,
|
|
7
7
|
node82
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-retention-sf9ed94r.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
Service63,
|
|
11
11
|
login2,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
node66
|
|
13
|
+
} from "./file-retention-r2ktrraj.js";
|
|
14
14
|
import {
|
|
15
15
|
lazy2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-retention-88xbtdfr.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
@@ -26,11 +26,11 @@ __export(exports_pty, {
|
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
27
|
ID: () => ID2,
|
|
28
28
|
Info: () => Info2,
|
|
29
|
-
NotFoundError: () =>
|
|
29
|
+
NotFoundError: () => NotFoundError2,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service16,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node18
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -44,7 +44,7 @@ var Info2 = Pty.Info;
|
|
|
44
44
|
var CreateInput2 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
|
-
class
|
|
47
|
+
class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
48
|
ptyID: ID2
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
@@ -54,12 +54,12 @@ class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service16 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
60
60
|
const bus = yield* Service84;
|
|
61
61
|
const location = yield* Service78;
|
|
62
|
-
const shell = yield*
|
|
62
|
+
const shell = yield* Service63;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
96
96
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
97
97
|
const session = sessions.get(id);
|
|
98
98
|
if (!session)
|
|
99
|
-
return yield* new
|
|
99
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
100
100
|
return session;
|
|
101
101
|
});
|
|
102
102
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service21, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service16.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node18 = makeLocationNode({
|
|
273
|
+
service: Service16,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [node88, node82,
|
|
275
|
+
deps: [node88, node82, node66]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export { ID2, Info2, CreateInput2, UpdateInput2,
|
|
278
|
+
export { ID2, Info2, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service16, node18, exports_pty, Event3 };
|
|
@@ -1,44 +1,50 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Failed2
|
|
3
|
+
} from "./file-retention-hgz4x7wa.js";
|
|
4
|
+
import {
|
|
5
|
+
execDefaults2
|
|
6
|
+
} from "./file-retention-eej6y6fw.js";
|
|
1
7
|
import {
|
|
2
8
|
Service85,
|
|
3
9
|
node89
|
|
4
|
-
} from "./
|
|
10
|
+
} from "./file-retention-gfe3ax2q.js";
|
|
5
11
|
import {
|
|
6
12
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
13
|
+
} from "./file-retention-dpkg50ah.js";
|
|
8
14
|
import {
|
|
9
15
|
Binding2,
|
|
10
16
|
RegistryService2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
17
|
+
node69
|
|
18
|
+
} from "./file-retention-m91gvp7t.js";
|
|
13
19
|
import {
|
|
14
20
|
WorkspaceTable2
|
|
15
|
-
} from "./
|
|
21
|
+
} from "./file-retention-faypxj3z.js";
|
|
16
22
|
import {
|
|
17
23
|
__export
|
|
18
|
-
} from "./
|
|
24
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
19
25
|
|
|
20
26
|
// src/workspace.ts
|
|
21
27
|
var exports_workspace = {};
|
|
22
28
|
__export(exports_workspace, {
|
|
23
29
|
CreateConflict: () => CreateConflict2,
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
26
|
-
NotFound: () =>
|
|
27
|
-
Service: () =>
|
|
30
|
+
ID: () => ID11,
|
|
31
|
+
Info: () => Info14,
|
|
32
|
+
NotFound: () => NotFound2,
|
|
33
|
+
Service: () => Service65,
|
|
28
34
|
Workspace: () => exports_workspace,
|
|
29
|
-
configured: () =>
|
|
30
|
-
node: () =>
|
|
35
|
+
configured: () => configured8,
|
|
36
|
+
node: () => node68
|
|
31
37
|
});
|
|
32
38
|
import { Workspace } from "@opencode/schema/workspace";
|
|
33
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
34
40
|
import { eq } from "drizzle-orm";
|
|
35
41
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
36
42
|
import { systemError } from "effect/PlatformError";
|
|
37
|
-
import { make } from "effect/
|
|
38
|
-
var
|
|
43
|
+
import { make } from "effect/process/ChildProcessSpawner";
|
|
44
|
+
var ID11 = Workspace.ID;
|
|
39
45
|
|
|
40
|
-
class
|
|
41
|
-
id:
|
|
46
|
+
class Info14 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID11,
|
|
42
48
|
provider: Schema.String,
|
|
43
49
|
binding: Binding2,
|
|
44
50
|
createdAt: Schema.Number,
|
|
@@ -46,24 +52,24 @@ class Info15 extends Schema.Class("Workspace.Info")({
|
|
|
46
52
|
}) {
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
class
|
|
55
|
+
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID11 }) {
|
|
50
56
|
}
|
|
51
57
|
|
|
52
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
53
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID11,
|
|
54
60
|
provider: Schema.String,
|
|
55
61
|
existingProvider: Schema.String
|
|
56
62
|
}) {
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
class
|
|
65
|
+
class Service65 extends Context.Service()("@opencode/Workspace") {
|
|
60
66
|
}
|
|
61
|
-
var
|
|
62
|
-
service:
|
|
67
|
+
var configured8 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service65,
|
|
63
69
|
layer: layer(options),
|
|
64
|
-
deps: [node89,
|
|
70
|
+
deps: [node89, node69]
|
|
65
71
|
});
|
|
66
|
-
var layer = (options) => Layer.effect(
|
|
72
|
+
var layer = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
67
73
|
const db = (yield* Service85).db;
|
|
68
74
|
const registry = yield* RegistryService2;
|
|
69
75
|
const lifetime = yield* Scope.Scope;
|
|
@@ -76,11 +82,11 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
76
82
|
const load = Effect.fn("Workspace.load")(function* (workspaceID) {
|
|
77
83
|
const row = yield* find(workspaceID);
|
|
78
84
|
if (!row)
|
|
79
|
-
return yield* new
|
|
85
|
+
return yield* new NotFound2({ workspaceID });
|
|
80
86
|
return row;
|
|
81
87
|
});
|
|
82
88
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
83
|
-
const info = (row, binding) => new
|
|
89
|
+
const info = (row, binding) => new Info14({
|
|
84
90
|
id: row.id,
|
|
85
91
|
provider: row.provider,
|
|
86
92
|
binding,
|
|
@@ -123,6 +129,10 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
123
129
|
const connection = {
|
|
124
130
|
driver,
|
|
125
131
|
environment,
|
|
132
|
+
files: {
|
|
133
|
+
...execDefaults2(environment.spawner),
|
|
134
|
+
...environment.overrides
|
|
135
|
+
},
|
|
126
136
|
saveBinding: persistBinding,
|
|
127
137
|
lastActivity: yield* Ref.make(now),
|
|
128
138
|
active: yield* Ref.make(0),
|
|
@@ -154,9 +164,9 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
154
164
|
yield* Scope.close(connection.scope, Exit.void);
|
|
155
165
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
156
166
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
157
|
-
return
|
|
167
|
+
return Service65.of({
|
|
158
168
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
159
|
-
const workspaceID = input.id ??
|
|
169
|
+
const workspaceID = input.id ?? ID11.create();
|
|
160
170
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
161
171
|
if (existing) {
|
|
162
172
|
if (existing.provider === input.provider)
|
|
@@ -183,28 +193,39 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
183
193
|
}),
|
|
184
194
|
provision,
|
|
185
195
|
connect: Effect.fn("Workspace.connect")(function* (workspaceID) {
|
|
186
|
-
const
|
|
196
|
+
const acquire = Effect.acquireRelease(Effect.suspend(() => connections.has(workspaceID) ? Effect.void : provision(workspaceID)).pipe(Effect.andThen(locks.withLock(workspaceID)(Effect.gen(function* () {
|
|
187
197
|
const connection = yield* open(workspaceID);
|
|
188
198
|
yield* Ref.set(connection.lastActivity, yield* Clock.currentTimeMillis);
|
|
189
199
|
yield* Ref.update(connection.active, (active) => active + 1);
|
|
190
200
|
return connection;
|
|
191
|
-
}))), Effect.
|
|
201
|
+
})))), (connection) => locks.withLock(workspaceID)(Effect.gen(function* () {
|
|
202
|
+
yield* Ref.update(connection.active, (active) => active - 1);
|
|
203
|
+
yield* Ref.set(connection.lastActivity, yield* Clock.currentTimeMillis);
|
|
204
|
+
})));
|
|
205
|
+
const spawner = make((command) => acquire.pipe(Effect.mapError((cause) => systemError({
|
|
192
206
|
_tag: "Unknown",
|
|
193
207
|
module: "Workspace",
|
|
194
208
|
method: "spawn",
|
|
195
209
|
description: `Failed to wake workspace ${workspaceID}`,
|
|
196
210
|
cause
|
|
197
|
-
}))
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
211
|
+
})), Effect.flatMap((connection) => connection.environment.spawner.spawn(command))));
|
|
212
|
+
const withFiles = (path, use) => Effect.scoped(acquire.pipe(Effect.mapError((cause) => new Failed2({ path, cause })), Effect.flatMap((connection) => use(connection.files))));
|
|
213
|
+
const overrides = {
|
|
214
|
+
read: (path, range) => withFiles(path, (files) => files.read(path, range)),
|
|
215
|
+
write: (path, bytes) => withFiles(path, (files) => files.write(path, bytes)),
|
|
216
|
+
stat: (path) => withFiles(path, (files) => files.stat(path)),
|
|
217
|
+
list: (path) => withFiles(path, (files) => files.list(path)),
|
|
218
|
+
remove: (path) => withFiles(path, (files) => files.remove(path)),
|
|
219
|
+
move: (from, to) => withFiles(from, (files) => files.move(from, to)),
|
|
220
|
+
mkdir: (path) => withFiles(path, (files) => files.mkdir(path))
|
|
221
|
+
};
|
|
222
|
+
return { spawner, overrides };
|
|
202
223
|
}),
|
|
203
224
|
destroy: Effect.fn("Workspace.destroy")(function* (workspaceID) {
|
|
204
225
|
const attempt = attempts.get(workspaceID);
|
|
205
226
|
if (attempt) {
|
|
206
227
|
attempts.delete(workspaceID);
|
|
207
|
-
Deferred.doneUnsafe(attempt, Exit.fail(new
|
|
228
|
+
Deferred.doneUnsafe(attempt, Exit.fail(new NotFound2({ workspaceID })));
|
|
208
229
|
}
|
|
209
230
|
return yield* locks.withLock(workspaceID)(Effect.gen(function* () {
|
|
210
231
|
const row = yield* find(workspaceID);
|
|
@@ -221,6 +242,6 @@ var layer = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
221
242
|
})
|
|
222
243
|
});
|
|
223
244
|
}));
|
|
224
|
-
var
|
|
245
|
+
var node68 = configured8();
|
|
225
246
|
|
|
226
|
-
export {
|
|
247
|
+
export { ID11, Info14, NotFound2, CreateConflict2, Service65, configured8, node68, exports_workspace };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID8,
|
|
3
|
+
Service57
|
|
4
|
+
} from "./file-retention-cd70q2ry.js";
|
|
5
5
|
import {
|
|
6
6
|
Service78
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-retention-sf9ed94r.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service66
|
|
10
|
+
} from "./file-retention-1f2vccss.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service63,
|
|
13
13
|
args2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-r2ktrraj.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service27
|
|
17
|
+
} from "./file-retention-4re51v5c.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service11
|
|
20
|
+
} from "./file-retention-5sn004hq.js";
|
|
21
21
|
import {
|
|
22
22
|
parseOption2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-retention-8m6m0r52.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/config/plugin/command.ts
|
|
29
29
|
var exports_command2 = {};
|
|
30
30
|
__export(exports_command2, {
|
|
31
31
|
ConfigCommandPlugin: () => exports_command2,
|
|
32
|
-
Plugin: () =>
|
|
32
|
+
Plugin: () => Plugin29
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { ConfigCommand } from "@opencode/schema/config/command";
|
|
@@ -38,13 +38,13 @@ import { Provider } from "@opencode/schema/provider";
|
|
|
38
38
|
import { AppProcess } from "@opencode/util/process";
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Effect, Option, PubSub, Schema, Stream } from "effect";
|
|
41
|
-
import { ChildProcess } from "effect/
|
|
41
|
+
import { ChildProcess } from "effect/process";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
43
|
var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
|
|
44
|
-
var
|
|
44
|
+
var Plugin29 = define({
|
|
45
45
|
id: "opencode.config.command",
|
|
46
46
|
effect: Effect.fn(function* (ctx) {
|
|
47
|
-
const config = yield*
|
|
47
|
+
const config = yield* Service66;
|
|
48
48
|
const fs = yield* FSUtil.Service;
|
|
49
49
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
50
50
|
if (entry.type === "document")
|
|
@@ -56,10 +56,10 @@ var Plugin37 = define({
|
|
|
56
56
|
});
|
|
57
57
|
const location = yield* Service78;
|
|
58
58
|
const processes = yield* AppProcess.Service;
|
|
59
|
-
const shell = yield*
|
|
60
|
-
const sessions = yield*
|
|
61
|
-
const agents = yield*
|
|
62
|
-
const subagents = yield*
|
|
59
|
+
const shell = yield* Service63;
|
|
60
|
+
const sessions = yield* Service27;
|
|
61
|
+
const agents = yield* Service57;
|
|
62
|
+
const subagents = yield* Service11;
|
|
63
63
|
const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
|
|
64
64
|
return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ var Plugin37 = define({
|
|
|
80
80
|
name,
|
|
81
81
|
description: command.description,
|
|
82
82
|
execute: (input) => Effect.gen(function* () {
|
|
83
|
-
const agent = command.agent === undefined ? undefined :
|
|
83
|
+
const agent = command.agent === undefined ? undefined : ID8.make(command.agent);
|
|
84
84
|
const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
|
|
85
85
|
const model = command.model === undefined ? commandAgent?.model : {
|
|
86
86
|
id: Model.ID.make(command.model.model),
|
|
@@ -204,4 +204,4 @@ var placeholderRegex = /\$(\d+)/g;
|
|
|
204
204
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
205
205
|
var shellRegex = /!`([^`]+)`/g;
|
|
206
206
|
|
|
207
|
-
export {
|
|
207
|
+
export { Plugin29, exports_command2 };
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
NotFound3,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2,
|
|
5
5
|
typeFollowing2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-hgz4x7wa.js";
|
|
7
7
|
import {
|
|
8
8
|
execDefaults2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-retention-eej6y6fw.js";
|
|
10
10
|
import {
|
|
11
11
|
makeLocalDriver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-retention-3hwn7j4h.js";
|
|
13
13
|
import {
|
|
14
14
|
makeMemoryDriver2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-retention-v7p4zvkq.js";
|
|
16
16
|
import {
|
|
17
17
|
Service78,
|
|
18
18
|
node82
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-retention-sf9ed94r.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service65,
|
|
22
|
+
node68
|
|
23
|
+
} from "./file-retention-y5y4kes7.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/environment/environment.ts
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service64,
|
|
33
|
+
node: () => node67
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
37
37
|
import { Context, Effect, Layer } from "effect";
|
|
38
|
-
import { ChildProcessSpawner } from "effect/
|
|
38
|
+
import { ChildProcessSpawner } from "effect/process/ChildProcessSpawner";
|
|
39
39
|
|
|
40
40
|
// src/environment/index.ts
|
|
41
41
|
var exports_environment3 = {};
|
|
42
42
|
__export(exports_environment3, {
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
|
-
NotFound: () =>
|
|
46
|
-
Service: () =>
|
|
45
|
+
NotFound: () => NotFound3,
|
|
46
|
+
Service: () => Service64,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node67,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service64 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
65
|
const location = yield* Service78;
|
|
66
|
-
const workspace = yield*
|
|
66
|
+
const workspace = yield* Service65;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service64.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node67 = makeLocationNode({
|
|
71
|
+
service: Service64,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node, node82,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node82, node68]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service64, node67, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-hrh521yf.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin11,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint6
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
|
-
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/
|
|
18
|
-
var
|
|
17
|
+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
18
|
+
var endpoint6 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin11 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin5 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint6).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin5 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint6, Plugin11, exports_tavily };
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Entries2,
|
|
6
|
+
Info16
|
|
7
|
+
} from "./file-retention-5fec3t3w.js";
|
|
7
8
|
import {
|
|
8
9
|
__export
|
|
9
|
-
} from "./
|
|
10
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
10
11
|
|
|
11
12
|
// src/v1/config/agent.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigAgentV1: () =>
|
|
15
|
-
Info: () =>
|
|
13
|
+
var exports_agent4 = {};
|
|
14
|
+
__export(exports_agent4, {
|
|
15
|
+
ConfigAgentV1: () => exports_agent4,
|
|
16
|
+
Info: () => Info15
|
|
16
17
|
});
|
|
17
18
|
import { Schema, SchemaGetter } from "effect";
|
|
18
19
|
var Color = Schema.Union([
|
|
@@ -27,7 +28,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
27
28
|
temperature: Schema.optional(Schema.Finite),
|
|
28
29
|
top_p: Schema.optional(Schema.Finite),
|
|
29
30
|
prompt: Schema.optional(Schema.String),
|
|
30
|
-
tools: Schema.optional(
|
|
31
|
+
tools: Schema.optional(Entries2(Schema.Boolean)).annotate({
|
|
31
32
|
description: "@deprecated Use 'permission' field instead"
|
|
32
33
|
}),
|
|
33
34
|
disable: Schema.optional(Schema.Boolean),
|
|
@@ -44,7 +45,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
44
45
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
45
46
|
}),
|
|
46
47
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
47
|
-
permission: Schema.optional(
|
|
48
|
+
permission: Schema.optional(Info16)
|
|
48
49
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
49
50
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
50
51
|
var normalize = (agent) => {
|
|
@@ -53,22 +54,19 @@ var normalize = (agent) => {
|
|
|
53
54
|
if (!KNOWN_KEYS.has(key))
|
|
54
55
|
options[key] = value;
|
|
55
56
|
}
|
|
56
|
-
const permission =
|
|
57
|
-
for (const [tool, enabled] of
|
|
57
|
+
const permission = new Map;
|
|
58
|
+
for (const [tool, enabled] of agent.tools ?? []) {
|
|
58
59
|
const action = enabled ? "allow" : "deny";
|
|
59
|
-
|
|
60
|
-
permission.edit = action;
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
permission[tool] = action;
|
|
60
|
+
permission.set(tool === "write" || tool === "patch" ? "edit" : tool, action);
|
|
64
61
|
}
|
|
65
|
-
|
|
62
|
+
for (const [key, rule] of agent.permission ?? [])
|
|
63
|
+
permission.set(key, rule);
|
|
66
64
|
const steps = agent.steps ?? agent.maxSteps;
|
|
67
|
-
return { ...agent, options, permission, ...steps !== undefined ? { steps } : {} };
|
|
65
|
+
return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
|
|
68
66
|
};
|
|
69
|
-
var
|
|
67
|
+
var Info15 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
|
|
70
68
|
decode: SchemaGetter.transform(normalize),
|
|
71
69
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
72
70
|
})).annotate({ identifier: "AgentConfig" });
|
|
73
71
|
|
|
74
|
-
export {
|
|
72
|
+
export { Info15, exports_agent4 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/run-coordinator.ts
|
|
6
6
|
var exports_run_coordinator = {};
|
|
7
7
|
__export(exports_run_coordinator, {
|
|
8
8
|
SessionRunCoordinator: () => exports_run_coordinator,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make16
|
|
10
10
|
});
|
|
11
11
|
import { Deferred, Effect, Fiber, FiberSet } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make16 = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
15
|
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -89,4 +89,4 @@ var make17 = (options) => Effect.gen(function* () {
|
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
export {
|
|
92
|
+
export { make16, exports_run_coordinator };
|