@opencode/core 0.0.0-dev-20783 → 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 +7 -7
- package/dist/bus.js +74 -74
- package/dist/chunks/{skill-cr3znner.js → file-retention-01m0edtj.js} +13 -13
- package/dist/chunks/file-retention-02wkw50e.js +513 -0
- package/dist/chunks/{skill-dx79gnp7.js → file-retention-0crjjxxx.js} +19 -19
- package/dist/chunks/{skill-bsx3ef4h.js → file-retention-0e3qe3yy.js} +22 -22
- package/dist/chunks/{skill-q0xm7vwc.js → file-retention-0j77ygfz.js} +6 -6
- package/dist/chunks/{skill-0paq2nw3.js → file-retention-0paq2nw3.js} +1 -1
- package/dist/chunks/{skill-485qxas3.js → file-retention-0rfmeyxn.js} +11 -11
- package/dist/chunks/{skill-9kdvs0qs.js → file-retention-0sdx5hkx.js} +20 -20
- package/dist/chunks/{skill-0vbcp93d.js → file-retention-0vbcp93d.js} +2 -2
- package/dist/chunks/{skill-w113ygr5.js → file-retention-0y4k1x12.js} +16 -16
- package/dist/chunks/{skill-z3w57r3v.js → file-retention-15vdfc9c.js} +5 -5
- package/dist/chunks/{skill-1dvck2a7.js → file-retention-1dvck2a7.js} +2 -2
- package/dist/chunks/{skill-taqj60ds.js → file-retention-1f2vccss.js} +44 -44
- package/dist/chunks/{skill-xzzfknmp.js → file-retention-1k45a421.js} +13 -13
- package/dist/chunks/{skill-1p07q0wb.js → file-retention-1p07q0wb.js} +2 -2
- package/dist/chunks/{skill-82n5twj0.js → file-retention-226karrg.js} +35 -35
- package/dist/chunks/{skill-hddss928.js → file-retention-2908y79c.js} +14 -14
- package/dist/chunks/{skill-t8wv525n.js → file-retention-291fq28g.js} +49 -49
- package/dist/chunks/{skill-4ts7tf6z.js → file-retention-2ccvkpx1.js} +2 -2
- package/dist/chunks/{skill-fbh9pqtx.js → file-retention-2ekw743c.js} +1 -1
- package/dist/chunks/{skill-qa7075pb.js → file-retention-2hg7qvzt.js} +5 -5
- package/dist/chunks/{skill-ar95rhcv.js → file-retention-2j3kqcde.js} +20 -20
- package/dist/chunks/{skill-0r3c1bmw.js → file-retention-2k9fjx65.js} +5 -5
- package/dist/chunks/{skill-6707cyp3.js → file-retention-2mqvqnd5.js} +15 -15
- package/dist/chunks/{skill-jehq231j.js → file-retention-2n9hdwqs.js} +20 -20
- package/dist/chunks/{skill-5t3nmthw.js → file-retention-2vvh33eb.js} +3 -3
- package/dist/chunks/{skill-khjasm6z.js → file-retention-2w2dfs1b.js} +15 -15
- package/dist/chunks/{skill-wkmwept5.js → file-retention-32y4ehgv.js} +11 -11
- package/dist/chunks/{skill-070wkmva.js → file-retention-35p49r4v.js} +32 -32
- package/dist/chunks/{skill-fqtvmpfq.js → file-retention-37ea9c2d.js} +8 -8
- package/dist/chunks/{skill-3fc6dm20.js → file-retention-3fc6dm20.js} +1 -1
- package/dist/chunks/{skill-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
- package/dist/chunks/{skill-3hwn7j4h.js → file-retention-3hwn7j4h.js} +2 -2
- package/dist/chunks/{skill-hbtj3vsv.js → file-retention-3pa89wpn.js} +4 -4
- package/dist/chunks/{skill-3smtnn6g.js → file-retention-3smtnn6g.js} +1 -1
- package/dist/chunks/{skill-3tvqynh2.js → file-retention-3tvqynh2.js} +1 -1
- package/dist/chunks/{skill-db2wf4at.js → file-retention-3y377wv9.js} +4 -4
- package/dist/chunks/{skill-3zsf4n22.js → file-retention-3zsf4n22.js} +1 -1
- package/dist/chunks/{skill-6g7e4dd5.js → file-retention-4434d9q2.js} +9 -9
- package/dist/chunks/{skill-hp0b1pmt.js → file-retention-4bzbvhwk.js} +19 -19
- package/dist/chunks/{skill-5gbtv9te.js → file-retention-4re51v5c.js} +94 -94
- package/dist/chunks/{skill-9a1bht1a.js → file-retention-4wnyxfvg.js} +4 -4
- package/dist/chunks/{skill-ys6pq9md.js → file-retention-4x8je4cs.js} +30 -30
- package/dist/chunks/{skill-67j1ykj9.js → file-retention-4zeyygbb.js} +11 -11
- package/dist/chunks/{skill-54ma36ye.js → file-retention-54ma36ye.js} +1 -1
- package/dist/chunks/{skill-k1591j5w.js → file-retention-54vb1344.js} +35 -35
- package/dist/chunks/{skill-mnsdmbv8.js → file-retention-5526gnt0.js} +33 -33
- package/dist/chunks/{skill-57b9ws8p.js → file-retention-57b9ws8p.js} +1 -1
- package/dist/chunks/{skill-4j4tgtq5.js → file-retention-5dkn69vz.js} +4 -4
- package/dist/chunks/file-retention-5fec3t3w.js +31 -0
- package/dist/chunks/{skill-q5bsz0vw.js → file-retention-5g380qbr.js} +32 -32
- package/dist/chunks/{skill-5m9w47nd.js → file-retention-5m9w47nd.js} +1 -1
- package/dist/chunks/{skill-zwdw4kt6.js → file-retention-5shkaybx.js} +15 -15
- package/dist/chunks/{skill-tv7tv5a0.js → file-retention-5sn004hq.js} +19 -19
- package/dist/chunks/{skill-s9vwt7sq.js → file-retention-5w8jzqx5.js} +5 -5
- package/dist/chunks/{skill-9hn6k4tm.js → file-retention-5xtgfte3.js} +8 -8
- package/dist/chunks/{skill-7ab8v4x8.js → file-retention-5z9rmvjz.js} +75 -75
- package/dist/chunks/{skill-cr9n7mfv.js → file-retention-641gya88.js} +3 -3
- package/dist/chunks/{skill-bvyrej0j.js → file-retention-6gaajhts.js} +10 -10
- package/dist/chunks/{skill-6mp9tdn9.js → file-retention-6mbzp12p.js} +40 -40
- package/dist/chunks/{skill-yyf5mnjx.js → file-retention-6wh776qa.js} +6 -6
- package/dist/chunks/{skill-6xb47vfp.js → file-retention-6xb47vfp.js} +1 -1
- package/dist/chunks/{skill-6qpmcf3t.js → file-retention-700ev8gh.js} +37 -37
- package/dist/chunks/{skill-71az546q.js → file-retention-71az546q.js} +2 -2
- package/dist/chunks/{skill-xyafkbt0.js → file-retention-72sxpf59.js} +3 -3
- package/dist/chunks/{skill-561ssg1x.js → file-retention-75w0f5x3.js} +6 -6
- package/dist/chunks/{skill-ytph8xz7.js → file-retention-76g80x4f.js} +3 -3
- package/dist/chunks/{skill-hbyhqfhs.js → file-retention-76rvckpe.js} +5 -5
- package/dist/chunks/{skill-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
- package/dist/chunks/{skill-skv2z4tm.js → file-retention-7cxxxtha.js} +60 -60
- package/dist/chunks/{skill-2k8khapm.js → file-retention-7dqw4kz8.js} +5 -5
- package/dist/chunks/{skill-vzdahvpe.js → file-retention-7fdjvgwr.js} +4 -4
- package/dist/chunks/{skill-f6c7zxgy.js → file-retention-7j5w12p9.js} +35 -35
- package/dist/chunks/{skill-0rkq89b0.js → file-retention-7kk9evys.js} +20 -20
- package/dist/chunks/{skill-ew2ppw2e.js → file-retention-7me7tz75.js} +7 -7
- package/dist/chunks/{skill-6yzz6ydy.js → file-retention-7pj8drkf.js} +23 -23
- package/dist/chunks/{skill-04cccj5a.js → file-retention-81fjg4yx.js} +13 -13
- package/dist/chunks/{skill-qx29skc5.js → file-retention-84wx499v.js} +27 -27
- package/dist/chunks/{skill-vktyeyg6.js → file-retention-85snt3vs.js} +187 -187
- package/dist/chunks/{skill-9pa8tak9.js → file-retention-85xxa1xb.js} +2 -2
- package/dist/chunks/{skill-6ty2jb9x.js → file-retention-87bzfwd4.js} +9 -9
- package/dist/chunks/{skill-e6kg2nsz.js → file-retention-88pgeajf.js} +6 -6
- package/dist/chunks/{skill-8m6m0r52.js → file-retention-8m6m0r52.js} +1 -1
- package/dist/chunks/{skill-4qhq17ss.js → file-retention-8sd5y0hb.js} +29 -29
- package/dist/chunks/{skill-sxzvkvgj.js → file-retention-909p1r3q.js} +6 -6
- package/dist/chunks/{skill-07eh7qw4.js → file-retention-90ncnea0.js} +17 -17
- package/dist/chunks/{skill-1tegpzkj.js → file-retention-998r05vw.js} +50 -50
- package/dist/chunks/{skill-9e5bzkjp.js → file-retention-9e5bzkjp.js} +3 -3
- package/dist/chunks/{skill-hwyt46md.js → file-retention-9hy1eatw.js} +10 -10
- package/dist/chunks/{skill-7fctep6b.js → file-retention-9j1mbtc1.js} +17 -17
- package/dist/chunks/{skill-fm4cwmp6.js → file-retention-9r9w78qs.js} +11 -11
- package/dist/chunks/{skill-v0p69kbt.js → file-retention-a0pnfrft.js} +32 -32
- package/dist/chunks/{skill-h5crbhmb.js → file-retention-a310axxt.js} +11 -11
- package/dist/chunks/{skill-zzg514gs.js → file-retention-a9kdv268.js} +15 -15
- package/dist/chunks/{skill-tg951fdk.js → file-retention-ab8h52gf.js} +33 -33
- package/dist/chunks/{skill-h9s33j2f.js → file-retention-ac7rwfbv.js} +9 -9
- package/dist/chunks/{skill-hpvzebmm.js → file-retention-adm4qcea.js} +32 -32
- package/dist/chunks/{skill-ebjs1f3d.js → file-retention-ath3g41k.js} +45 -45
- package/dist/chunks/{skill-f63q8jpn.js → file-retention-azanj09g.js} +10 -10
- package/dist/chunks/{skill-xrpv627y.js → file-retention-azy71b5p.js} +10 -10
- package/dist/chunks/{skill-msbzkdgs.js → file-retention-b2tc811h.js} +9 -9
- package/dist/chunks/{skill-scgrse2b.js → file-retention-b3f8fkhc.js} +5 -5
- package/dist/chunks/{skill-143qq2q9.js → file-retention-ba07h9gm.js} +3 -3
- package/dist/chunks/{skill-w4y2b1bh.js → file-retention-banfh6zd.js} +24 -24
- package/dist/chunks/{skill-hvferw5v.js → file-retention-bbcm0tyt.js} +87 -87
- package/dist/chunks/{skill-1ygqh575.js → file-retention-bjx1sjef.js} +3 -3
- package/dist/chunks/{skill-faj2svbs.js → file-retention-bkxyw0dr.js} +9 -9
- package/dist/chunks/{skill-bfj3mgeh.js → file-retention-btmq9cxd.js} +19 -19
- package/dist/chunks/{skill-1k80zed8.js → file-retention-btwe4kze.js} +5 -5
- package/dist/chunks/{skill-6krh7jxd.js → file-retention-bzn6nda8.js} +11 -11
- package/dist/chunks/{skill-7x2z0ng4.js → file-retention-cd70q2ry.js} +27 -27
- package/dist/chunks/{skill-6vv39ctp.js → file-retention-ck45pw9k.js} +6 -6
- package/dist/chunks/{skill-58vc7jc3.js → file-retention-d580n77m.js} +13 -13
- package/dist/chunks/{skill-z5cmew6x.js → file-retention-d6w343vm.js} +24 -24
- package/dist/chunks/{skill-6b8kbxwq.js → file-retention-d7x0sh0y.js} +10 -10
- package/dist/chunks/{skill-06jffbs3.js → file-retention-d7zv88p4.js} +19 -19
- package/dist/chunks/{skill-jwcy2c2z.js → file-retention-dpkg50ah.js} +4 -4
- package/dist/chunks/{skill-cvk1gt9h.js → file-retention-dwaxmk1s.js} +23 -23
- package/dist/chunks/{skill-vym1cadz.js → file-retention-dwe8s81y.js} +10 -10
- package/dist/chunks/file-retention-dxj72tfx.js +18 -0
- package/dist/chunks/{skill-5qd3pb7m.js → file-retention-e3qxr5gk.js} +2 -2
- package/dist/chunks/{skill-zt541pk1.js → file-retention-e4ma86vn.js} +12 -12
- package/dist/chunks/{skill-gse9956c.js → file-retention-e4nca66s.js} +5 -5
- package/dist/chunks/{skill-zrt7fk07.js → file-retention-e80jqawr.js} +37 -37
- package/dist/chunks/{skill-cen1dnrb.js → file-retention-ea9a622x.js} +20 -20
- package/dist/chunks/{skill-v3s0gpe2.js → file-retention-ecv6s6zk.js} +28 -28
- package/dist/chunks/{skill-ph5whc14.js → file-retention-eej6y6fw.js} +3 -3
- package/dist/chunks/{skill-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
- package/dist/chunks/{skill-04w8c0ba.js → file-retention-ek3n6pab.js} +19 -19
- package/dist/chunks/{skill-8awwapf3.js → file-retention-enqcm95t.js} +36 -36
- package/dist/chunks/{skill-e337rshx.js → file-retention-eyhnzkb4.js} +5 -5
- package/dist/chunks/{skill-fkxxfd9n.js → file-retention-eynxa54k.js} +46 -46
- package/dist/chunks/file-retention-f2fj5fz0.js +253 -0
- package/dist/chunks/{skill-58sep7qz.js → file-retention-f8d5qev0.js} +13 -13
- package/dist/chunks/{skill-csj3nndk.js → file-retention-fgjzfnyp.js} +5 -5
- package/dist/chunks/{skill-5b4dqe4n.js → file-retention-fhx5vk7x.js} +23 -23
- package/dist/chunks/{skill-0jta6v3t.js → file-retention-fjh3s92b.js} +30 -30
- package/dist/chunks/{skill-w2c8f02a.js → file-retention-fkrcgtjd.js} +10 -10
- package/dist/chunks/{skill-t2fc4mz5.js → file-retention-fm2qvscf.js} +4 -4
- package/dist/chunks/{skill-xxcr61zh.js → file-retention-frf5w0nt.js} +13 -13
- package/dist/chunks/{skill-a4rf0zrw.js → file-retention-fshxsajn.js} +34 -34
- package/dist/chunks/{skill-0vpaabdz.js → file-retention-g7kzsnmy.js} +23 -23
- package/dist/chunks/{skill-5cj392th.js → file-retention-g95216pe.js} +45 -45
- package/dist/chunks/{skill-gd4qta3r.js → file-retention-gd4qta3r.js} +1 -1
- package/dist/chunks/{skill-brak4p4d.js → file-retention-gfe3ax2q.js} +3 -3
- package/dist/chunks/{skill-8d7r5vzw.js → file-retention-gk8qb678.js} +4 -4
- package/dist/chunks/{skill-x3y19w6y.js → file-retention-gw2k9m0t.js} +50 -50
- package/dist/chunks/{skill-dx8p2nff.js → file-retention-gz086qgb.js} +7 -7
- package/dist/chunks/{skill-h2b79v29.js → file-retention-h2b79v29.js} +2 -2
- package/dist/chunks/{skill-2z1v9gjs.js → file-retention-h5qdgnb5.js} +28 -28
- package/dist/chunks/{skill-h6vf3j39.js → file-retention-h6vf3j39.js} +1 -1
- package/dist/chunks/{skill-h7s7r6s9.js → file-retention-h7s7r6s9.js} +2 -2
- package/dist/chunks/{skill-29qym6xz.js → file-retention-h9pnpq88.js} +4 -4
- package/dist/chunks/{skill-hgz4x7wa.js → file-retention-hgz4x7wa.js} +1 -1
- package/dist/chunks/{skill-8x58wqts.js → file-retention-hn2ax6sd.js} +23 -23
- package/dist/chunks/{skill-j2p13e9j.js → file-retention-hnra3d6s.js} +5 -5
- package/dist/chunks/{skill-zz99enan.js → file-retention-hp90m9cj.js} +32 -32
- package/dist/chunks/{skill-93j9r8vr.js → file-retention-hq6c81g9.js} +11 -11
- package/dist/chunks/{skill-en5h7jeg.js → file-retention-hrh521yf.js} +8 -8
- package/dist/chunks/{skill-akepvz7y.js → file-retention-hs4w86ex.js} +7 -7
- package/dist/chunks/{skill-9tqbbpx7.js → file-retention-hs6v00ac.js} +11 -11
- package/dist/chunks/{skill-03g2t9hw.js → file-retention-hymc8p36.js} +8 -8
- package/dist/chunks/{skill-h6vf0ja8.js → file-retention-j4hxg427.js} +4 -4
- package/dist/chunks/{skill-j56e64zr.js → file-retention-j56e64zr.js} +1 -1
- package/dist/chunks/{skill-xt4njr3s.js → file-retention-jhdf29st.js} +1 -1
- package/dist/chunks/{skill-ed1z33yj.js → file-retention-jjenqzg1.js} +52 -52
- package/dist/chunks/{skill-at2p4n3p.js → file-retention-jtmhc97q.js} +62 -62
- package/dist/chunks/{skill-y8cydn3q.js → file-retention-jze0r7bz.js} +3 -8
- package/dist/chunks/{skill-vq2x1gvt.js → file-retention-k3wcbxqn.js} +11 -11
- package/dist/chunks/{skill-vnvshc90.js → file-retention-k430jzx8.js} +19 -19
- package/dist/chunks/{skill-c227t32y.js → file-retention-k79tzb9n.js} +8 -8
- package/dist/chunks/{skill-rqzc1cst.js → file-retention-ka5c30pq.js} +22 -22
- package/dist/chunks/{skill-t98cn88e.js → file-retention-kksd5aqz.js} +28 -28
- package/dist/chunks/{skill-amkdz55e.js → file-retention-kkymj4jt.js} +22 -22
- package/dist/chunks/{skill-2vs2nh1n.js → file-retention-kne8f3cn.js} +4 -4
- package/dist/chunks/{skill-b9m9jd47.js → file-retention-ks6sgrkr.js} +4 -4
- package/dist/chunks/{skill-m3fdjcah.js → file-retention-m3fdjcah.js} +1 -1
- package/dist/chunks/{skill-js8wertj.js → file-retention-m6y8pydv.js} +12 -12
- package/dist/chunks/{skill-3b53nk28.js → file-retention-m8q1dgfp.js} +5 -5
- package/dist/chunks/{skill-40ptwz48.js → file-retention-m91gvp7t.js} +6 -6
- package/dist/chunks/{skill-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
- package/dist/chunks/{skill-9vxq3aev.js → file-retention-mcp2qyd7.js} +23 -23
- package/dist/chunks/{skill-vrrn8f4d.js → file-retention-md08r0z8.js} +22 -22
- package/dist/chunks/{skill-1pn8hfyw.js → file-retention-mm2pt0qe.js} +23 -23
- package/dist/chunks/{skill-3n6qd5yb.js → file-retention-mmsbfapg.js} +1 -1
- package/dist/chunks/{skill-7pk0apss.js → file-retention-msa89gt8.js} +11 -11
- package/dist/chunks/{skill-52v53gqf.js → file-retention-mvsrg00e.js} +35 -35
- package/dist/chunks/{skill-gv54abtn.js → file-retention-mx7expm3.js} +16 -16
- package/dist/chunks/{skill-ge8vx2at.js → file-retention-my8b67cc.js} +11 -11
- package/dist/chunks/{skill-rj9txymb.js → file-retention-n7chjqa1.js} +18 -18
- package/dist/chunks/{skill-6cw3zjxa.js → file-retention-nb1wrey8.js} +36 -36
- package/dist/chunks/{skill-e8jkaw67.js → file-retention-nge58cm1.js} +13 -13
- package/dist/chunks/{skill-674dsst4.js → file-retention-nqj1gben.js} +38 -38
- package/dist/chunks/file-retention-nxaxcbj9.js +26 -0
- package/dist/chunks/{skill-k9bkx1zz.js → file-retention-pdetw647.js} +13 -13
- package/dist/chunks/{skill-p1qmfaz3.js → file-retention-pgdn5y71.js} +25 -25
- package/dist/chunks/{skill-k9cay8kk.js → file-retention-phxa5z0e.js} +7 -7
- package/dist/chunks/{skill-pjvnvgmy.js → file-retention-pjvnvgmy.js} +1 -1
- package/dist/chunks/{skill-pknna89w.js → file-retention-pknna89w.js} +1 -1
- package/dist/chunks/{skill-277eer69.js → file-retention-pmwpe40e.js} +4 -4
- package/dist/chunks/{skill-j6adbkc7.js → file-retention-pq6k9xjj.js} +4 -4
- package/dist/chunks/{skill-mp9rkdz7.js → file-retention-pr54a62y.js} +25 -25
- package/dist/chunks/{skill-3w5fmr99.js → file-retention-pyv0edze.js} +8 -5
- package/dist/chunks/{skill-13zfdqkn.js → file-retention-q3qqjc4j.js} +10 -10
- package/dist/chunks/{skill-1b6q68c3.js → file-retention-q4dve0yc.js} +14 -14
- package/dist/chunks/{skill-pnb89dtp.js → file-retention-qf6etae5.js} +8 -8
- package/dist/chunks/{skill-cwa6csj7.js → file-retention-qmqgtz8f.js} +9 -9
- package/dist/chunks/{skill-qnc92qwc.js → file-retention-qnc92qwc.js} +1 -1
- package/dist/chunks/{skill-qsdy395h.js → file-retention-qsdy395h.js} +1 -1
- package/dist/chunks/{skill-gdyarp84.js → file-retention-qsxkee9e.js} +14 -14
- package/dist/chunks/{skill-2jy61na5.js → file-retention-qthw6f29.js} +11 -11
- package/dist/chunks/{skill-d2zsdd4d.js → file-retention-r2ktrraj.js} +22 -22
- package/dist/chunks/{skill-73tb2d7t.js → file-retention-r2z489rp.js} +4 -4
- package/dist/chunks/{skill-rdw6cm16.js → file-retention-rdw6cm16.js} +1 -1
- package/dist/chunks/{skill-catzw522.js → file-retention-rr9cc36v.js} +11 -11
- package/dist/chunks/{skill-x861zb6t.js → file-retention-rtg4wmet.js} +2 -2
- package/dist/chunks/{skill-v1msdc2e.js → file-retention-ryndta0d.js} +46 -46
- package/dist/chunks/{skill-c0v64yz3.js → file-retention-s4wwhvjv.js} +22 -22
- package/dist/chunks/{skill-02nrjc1r.js → file-retention-s8d7rejh.js} +8 -8
- package/dist/chunks/{skill-maqy4c71.js → file-retention-sd2fp9ec.js} +20 -20
- package/dist/chunks/{skill-y5fhf6z7.js → file-retention-sf9ed94r.js} +17 -17
- package/dist/chunks/{skill-yejs50np.js → file-retention-sfczn6wa.js} +11 -11
- package/dist/chunks/{skill-3y9bq3t8.js → file-retention-spqcpneg.js} +6 -6
- package/dist/chunks/{skill-m4sg2fj5.js → file-retention-sww10ew7.js} +13 -13
- package/dist/chunks/{skill-jvw9kwwj.js → file-retention-t171g2rj.js} +18 -18
- package/dist/chunks/{skill-qcgvqcx7.js → file-retention-t3kgvaqg.js} +26 -26
- package/dist/chunks/{skill-r4cw7mx5.js → file-retention-t5ae1t4b.js} +27 -27
- package/dist/chunks/{skill-ktw141zw.js → file-retention-t8g2rvm9.js} +9 -9
- package/dist/chunks/{skill-tazgh4e4.js → file-retention-tazgh4e4.js} +1 -1
- package/dist/chunks/{skill-tcezcvh9.js → file-retention-tcezcvh9.js} +1 -1
- package/dist/chunks/{skill-tdstcens.js → file-retention-tdstcens.js} +1 -1
- package/dist/chunks/{skill-358bewed.js → file-retention-thygzj8s.js} +41 -41
- package/dist/chunks/{skill-wh6zw745.js → file-retention-tk14y25j.js} +5 -5
- package/dist/chunks/{skill-etq0c3wd.js → file-retention-tyytaxap.js} +2 -2
- package/dist/chunks/{skill-a28va38p.js → file-retention-v7p4zvkq.js} +3 -3
- package/dist/chunks/{skill-frhb8ew0.js → file-retention-v7rdbjkx.js} +45 -45
- package/dist/chunks/{skill-kqj1wybc.js → file-retention-v97fnpgb.js} +5 -5
- package/dist/chunks/{skill-8mfdap3f.js → file-retention-vbrars45.js} +9 -9
- package/dist/chunks/{skill-2xsrshre.js → file-retention-vcn79w6t.js} +3 -3
- package/dist/chunks/{skill-ejdjv965.js → file-retention-vczmck8z.js} +13 -13
- package/dist/chunks/{skill-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
- package/dist/chunks/{skill-ahd542yp.js → file-retention-vwpcpzep.js} +8 -8
- package/dist/chunks/{skill-pj2hw229.js → file-retention-vytaj533.js} +31 -31
- package/dist/chunks/{skill-vzs5sf6e.js → file-retention-vzs5sf6e.js} +1 -1
- package/dist/chunks/{skill-84txncab.js → file-retention-w1eejvng.js} +5 -5
- package/dist/chunks/{skill-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
- package/dist/chunks/{skill-sp8122mt.js → file-retention-waztmdc6.js} +23 -23
- package/dist/chunks/{skill-xq59p7zw.js → file-retention-wcdwbs26.js} +18 -18
- package/dist/chunks/{skill-wd87259q.js → file-retention-wd87259q.js} +1 -1
- package/dist/chunks/{skill-q2frhkde.js → file-retention-wsq1jxfe.js} +32 -32
- package/dist/chunks/{skill-479k0gs5.js → file-retention-wx15gkxh.js} +16 -16
- package/dist/chunks/{skill-g79ggcnn.js → file-retention-wy0w7taj.js} +25 -25
- package/dist/chunks/{skill-77w2ws7p.js → file-retention-x0q3bb0r.js} +32 -32
- package/dist/chunks/{skill-wnz7j1fm.js → file-retention-x47gwdav.js} +11 -11
- package/dist/chunks/{skill-kys722cf.js → file-retention-x799tqys.js} +17 -17
- package/dist/chunks/{skill-gz9w2prw.js → file-retention-xc914k0j.js} +25 -25
- package/dist/chunks/{skill-vsja4zwp.js → file-retention-xdqkszf6.js} +25 -25
- package/dist/chunks/{skill-hyqf44qd.js → file-retention-xhr4eg5m.js} +16 -16
- package/dist/chunks/{skill-m8xkxnzs.js → file-retention-xhvwjgs8.js} +45 -45
- package/dist/chunks/{skill-afv5k542.js → file-retention-xnyn0jx3.js} +16 -16
- package/dist/chunks/{skill-kb1jjea1.js → file-retention-xrmap3r6.js} +7 -9
- package/dist/chunks/{skill-etg2w4gs.js → file-retention-xwfqprxb.js} +13 -13
- package/dist/chunks/{skill-be66sdnk.js → file-retention-xxy9zgkz.js} +25 -25
- package/dist/chunks/{skill-y1fvbwt7.js → file-retention-y1fvbwt7.js} +1 -1
- package/dist/chunks/{skill-t1wsc1h6.js → file-retention-y497myth.js} +3 -3
- package/dist/chunks/{skill-mb5k0437.js → file-retention-y5y4kes7.js} +29 -29
- package/dist/chunks/{skill-bsadxmtb.js → file-retention-y6nv3cb4.js} +26 -26
- package/dist/chunks/{skill-3njy147n.js → file-retention-ycd7fagt.js} +25 -25
- package/dist/chunks/{skill-z4xxkr3n.js → file-retention-ymh22vxa.js} +9 -9
- package/dist/chunks/{skill-1tbv6vyw.js → file-retention-ynmknp8q.js} +19 -21
- package/dist/chunks/{skill-yp2x3t23.js → file-retention-yp2x3t23.js} +1 -1
- package/dist/chunks/{skill-c22p0fvq.js → file-retention-ytt0bby0.js} +10 -10
- package/dist/chunks/{skill-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
- package/dist/chunks/{skill-krsmb9br.js → file-retention-z3db4tjk.js} +21 -21
- package/dist/chunks/{skill-zs4thy15.js → file-retention-z71twgyp.js} +5 -5
- package/dist/chunks/{skill-x9mpd4db.js → file-retention-z7qtbqvc.js} +19 -19
- package/dist/chunks/{skill-8c7secgm.js → file-retention-zfs8ae4p.js} +4 -4
- package/dist/chunks/{skill-zr2ceqn5.js → file-retention-zr2ceqn5.js} +1 -1
- package/dist/chunks/{skill-ydhxanhm.js → file-retention-zrnmd36g.js} +8 -8
- package/dist/chunks/{skill-zxq2ej10.js → file-retention-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +82 -82
- 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 +117 -117
- 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 +117 -117
- 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 +118 -118
- 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 +120 -120
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +86 -86
- package/dist/database/database.js +67 -67
- 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.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 +3 -3
- 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 +1 -1
- package/dist/environment/index.js +96 -96
- 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 +75 -75
- 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 +219 -219
- 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 +13 -13
- package/dist/filesystem.js +107 -107
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +104 -104
- 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 +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 +84 -84
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +90 -90
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +74 -74
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +108 -108
- package/dist/location-service-map.js +87 -87
- package/dist/location-services.js +354 -354
- package/dist/location.js +90 -90
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +92 -92
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +130 -130
- package/dist/mcp/oauth.js +79 -79
- 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 +103 -103
- package/dist/models-dev.js +108 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +118 -118
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +89 -89
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +76 -76
- package/dist/plugin/agent.js +75 -75
- 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 +2 -2
- 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 +118 -118
- 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 +94 -94
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +219 -219
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +91 -91
- package/dist/provider.js +102 -102
- 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 +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +98 -98
- package/dist/rpc.js +87 -87
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +75 -75
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +154 -154
- package/dist/session/diff.js +89 -89
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +89 -89
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +98 -98
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +121 -121
- package/dist/session/model-transport.js +9 -9
- 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 +1 -1
- 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 +104 -104
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +88 -88
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +158 -158
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- 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 +15 -15
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +108 -108
- package/dist/skill.js +115 -115
- package/dist/snapshot.js +92 -92
- 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 +129 -129
- 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 +106 -106
- 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 +111 -111
- 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 +16 -16
- 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 +94 -94
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +90 -90
- package/dist/websearch.js +83 -83
- 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 +83 -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/skill-50mzsvk4.js +0 -41
- package/dist/chunks/skill-8dhds0dv.js +0 -26
- package/dist/chunks/skill-a9m7pnx7.js +0 -513
- package/dist/chunks/skill-e0q146ww.js +0 -253
- package/dist/chunks/skill-ht5y0zrb.js +0 -18
- /package/dist/chunks/{skill-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{skill-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
- /package/dist/chunks/{skill-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
- /package/dist/chunks/{skill-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
- /package/dist/chunks/{skill-1kg9ymc8.js → file-retention-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{skill-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
- /package/dist/chunks/{skill-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
- /package/dist/chunks/{skill-2axfhc9x.js → file-retention-2axfhc9x.js} +0 -0
- /package/dist/chunks/{skill-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{skill-34c7v6d4.js → file-retention-34c7v6d4.js} +0 -0
- /package/dist/chunks/{skill-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
- /package/dist/chunks/{skill-3asan66x.js → file-retention-3asan66x.js} +0 -0
- /package/dist/chunks/{skill-3t0ybcrp.js → file-retention-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{skill-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
- /package/dist/chunks/{skill-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
- /package/dist/chunks/{skill-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
- /package/dist/chunks/{skill-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
- /package/dist/chunks/{skill-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{skill-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
- /package/dist/chunks/{skill-53557ph1.js → file-retention-53557ph1.js} +0 -0
- /package/dist/chunks/{skill-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
- /package/dist/chunks/{skill-6prwharc.js → file-retention-6prwharc.js} +0 -0
- /package/dist/chunks/{skill-6q2bdcd1.js → file-retention-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{skill-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
- /package/dist/chunks/{skill-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
- /package/dist/chunks/{skill-822emrt2.js → file-retention-822emrt2.js} +0 -0
- /package/dist/chunks/{skill-84wd9syh.js → file-retention-84wd9syh.js} +0 -0
- /package/dist/chunks/{skill-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
- /package/dist/chunks/{skill-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
- /package/dist/chunks/{skill-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
- /package/dist/chunks/{skill-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
- /package/dist/chunks/{skill-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{skill-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
- /package/dist/chunks/{skill-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
- /package/dist/chunks/{skill-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
- /package/dist/chunks/{skill-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{skill-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
- /package/dist/chunks/{skill-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{skill-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{skill-bw78ga2c.js → file-retention-bw78ga2c.js} +0 -0
- /package/dist/chunks/{skill-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
- /package/dist/chunks/{skill-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{skill-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
- /package/dist/chunks/{skill-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{skill-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
- /package/dist/chunks/{skill-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
- /package/dist/chunks/{skill-df08tz66.js → file-retention-df08tz66.js} +0 -0
- /package/dist/chunks/{skill-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
- /package/dist/chunks/{skill-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
- /package/dist/chunks/{skill-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
- /package/dist/chunks/{skill-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
- /package/dist/chunks/{skill-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
- /package/dist/chunks/{skill-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
- /package/dist/chunks/{skill-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
- /package/dist/chunks/{skill-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{skill-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
- /package/dist/chunks/{skill-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
- /package/dist/chunks/{skill-fxgpk5d8.js → file-retention-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{skill-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
- /package/dist/chunks/{skill-g86h250q.js → file-retention-g86h250q.js} +0 -0
- /package/dist/chunks/{skill-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
- /package/dist/chunks/{skill-gftt206x.js → file-retention-gftt206x.js} +0 -0
- /package/dist/chunks/{skill-hk9envan.js → file-retention-hk9envan.js} +0 -0
- /package/dist/chunks/{skill-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
- /package/dist/chunks/{skill-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{skill-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
- /package/dist/chunks/{skill-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{skill-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{skill-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{skill-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
- /package/dist/chunks/{skill-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
- /package/dist/chunks/{skill-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
- /package/dist/chunks/{skill-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
- /package/dist/chunks/{skill-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
- /package/dist/chunks/{skill-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
- /package/dist/chunks/{skill-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
- /package/dist/chunks/{skill-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
- /package/dist/chunks/{skill-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
- /package/dist/chunks/{skill-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
- /package/dist/chunks/{skill-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
- /package/dist/chunks/{skill-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
- /package/dist/chunks/{skill-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{skill-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{skill-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
- /package/dist/chunks/{skill-ve7vex1e.js → file-retention-ve7vex1e.js} +0 -0
- /package/dist/chunks/{skill-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
- /package/dist/chunks/{skill-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{skill-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
- /package/dist/chunks/{skill-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
- /package/dist/chunks/{skill-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
- /package/dist/chunks/{skill-x61499pn.js → file-retention-x61499pn.js} +0 -0
- /package/dist/chunks/{skill-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
- /package/dist/chunks/{skill-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
- /package/dist/chunks/{skill-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{skill-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
- /package/dist/chunks/{skill-z5v4ffb3.js → file-retention-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{skill-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-3y377wv9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service84
|
|
6
|
+
} from "./file-retention-m6y8pydv.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event20
|
|
10
|
+
} from "./file-retention-5526gnt0.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID16,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-retention-nb1wrey8.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service77
|
|
20
|
+
} from "./file-retention-226karrg.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID12
|
|
23
|
+
} from "./file-retention-mvsrg00e.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./file-retention-0e3qe3yy.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-retention-hrh521yf.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID8
|
|
33
|
+
} from "./file-retention-cd70q2ry.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./file-retention-54ma36ye.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -65,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
65
65
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
66
66
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
67
67
|
var oauth = (app) => ({
|
|
68
|
-
integrationID:
|
|
68
|
+
integrationID: ID16.make("github-copilot"),
|
|
69
69
|
method: {
|
|
70
70
|
id: methodID,
|
|
71
71
|
type: "oauth",
|
|
@@ -163,8 +163,8 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
167
|
-
const bus = yield*
|
|
166
|
+
const providers = yield* Service77;
|
|
167
|
+
const bus = yield* Service84;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
170
170
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -180,9 +180,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID13.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
|
-
try: () =>
|
|
185
|
+
try: () => load2(url, {
|
|
186
186
|
...provider?.headers,
|
|
187
187
|
Authorization: `Bearer ${credential.refresh}`,
|
|
188
188
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -202,13 +202,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
202
|
editor.method.update(oauth(ctx.app));
|
|
203
203
|
});
|
|
204
204
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID13.githubCopilot);
|
|
206
206
|
if (!item)
|
|
207
207
|
return;
|
|
208
208
|
if (loaded.models) {
|
|
209
209
|
evt.add({
|
|
210
210
|
info: item.provider,
|
|
211
|
-
models: Array.from(
|
|
211
|
+
models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
212
212
|
sourceConnection: loaded.connection
|
|
213
213
|
});
|
|
214
214
|
return;
|
|
@@ -222,17 +222,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
yield* ctx.model.transform((models) => {
|
|
225
|
-
if (models.get(
|
|
226
|
-
models.update(
|
|
225
|
+
if (models.get(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"))) {
|
|
226
|
+
models.update(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"), (model) => {
|
|
227
227
|
model.enabled = false;
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
231
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
232
|
-
yield* bus.subscribe(
|
|
232
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
233
233
|
yield* refresh().pipe(Effect.forkScoped);
|
|
234
234
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
235
|
-
if (evt.model.providerID !==
|
|
235
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
236
236
|
return;
|
|
237
237
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
238
238
|
return;
|
|
@@ -241,7 +241,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
241
241
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
242
242
|
}));
|
|
243
243
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
244
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
245
245
|
return;
|
|
246
246
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
247
247
|
return;
|
|
@@ -251,13 +251,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
251
251
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
252
252
|
if (interaction !== "conversation-agent")
|
|
253
253
|
evt.headers["x-initiator"] = "agent";
|
|
254
|
-
}), { providerID:
|
|
254
|
+
}), { providerID: ID13.githubCopilot });
|
|
255
255
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
256
|
-
if (evt.model.providerID !==
|
|
256
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
257
257
|
return;
|
|
258
258
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
259
259
|
return;
|
|
260
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
260
|
+
const agent = yield* ctx.agent.get({ agentID: ID8.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
261
261
|
return;
|
|
262
262
|
}));
|
|
263
263
|
if (agent?.data.model)
|
|
@@ -268,9 +268,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
268
268
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
|
-
}), { providerID:
|
|
271
|
+
}), { providerID: ID13.githubCopilot });
|
|
272
272
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
273
|
-
if (evt.model.providerID !==
|
|
273
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
274
274
|
return;
|
|
275
275
|
const token = evt.request.headers.get("x-api-key");
|
|
276
276
|
if (!token)
|
|
@@ -278,9 +278,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
278
278
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
279
279
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
280
280
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
281
|
-
}), { providerID:
|
|
281
|
+
}), { providerID: ID13.githubCopilot });
|
|
282
282
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
283
|
-
if (evt.model.providerID !==
|
|
283
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
284
284
|
return;
|
|
285
285
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
286
286
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Plugin4
|
|
3
|
+
} from "./file-retention-vbrars45.js";
|
|
4
|
+
import {
|
|
5
|
+
Plugin3
|
|
6
|
+
} from "./file-retention-azanj09g.js";
|
|
7
|
+
import {
|
|
8
|
+
Plugin2
|
|
9
|
+
} from "./file-retention-9hy1eatw.js";
|
|
10
|
+
import {
|
|
11
|
+
Plugin11
|
|
12
|
+
} from "./file-retention-ymh22vxa.js";
|
|
13
|
+
import {
|
|
14
|
+
Plugin10
|
|
15
|
+
} from "./file-retention-gz086qgb.js";
|
|
16
|
+
|
|
17
|
+
// src/plugin/websearch/index.ts
|
|
18
|
+
var WebSearchPlugins2 = [
|
|
19
|
+
Plugin4,
|
|
20
|
+
Plugin3,
|
|
21
|
+
Plugin2,
|
|
22
|
+
Plugin11,
|
|
23
|
+
Plugin10
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export { WebSearchPlugins2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-2vvh33eb.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service35,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer12,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node38
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
import { AIError, AIErrorReason, TransportError } from "@opencode/ai";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
22
|
import { Cause, Clock, Context, Duration, Effect, Fiber, Layer, Metric, Queue, Scope, Semaphore, Stream } from "effect";
|
|
23
|
-
import { Headers } from "effect/
|
|
24
|
-
import { Socket } from "effect/
|
|
23
|
+
import { Headers } from "effect/http";
|
|
24
|
+
import { Socket } from "effect/socket";
|
|
25
25
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
var ROTATE_AFTER_MS = 55 * 60 * 1000;
|
|
27
27
|
var CONNECT_TIMEOUT = "15 seconds";
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service35 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service35, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service31, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service35.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer12 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node38 = makeGlobalNode({ service: Service35, layer: layer12, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service35, makeLayer2, layer12, node38, exports_model_transport };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-hrh521yf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service84
|
|
6
|
+
} from "./file-retention-m6y8pydv.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event20
|
|
10
|
+
} from "./file-retention-5526gnt0.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-retention-3y377wv9.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID16,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-retention-nb1wrey8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service14
|
|
21
|
+
} from "./file-retention-azy71b5p.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID13,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./file-retention-226karrg.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./file-retention-mvsrg00e.js";
|
|
30
30
|
import {
|
|
31
31
|
ID4,
|
|
32
|
-
|
|
32
|
+
Input13,
|
|
33
33
|
Response2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-retention-fhx5vk7x.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/opencode.ts
|
|
37
37
|
import { Duration, Effect, Equal, Option, Schema, SchemaGetter, Scope, Semaphore, Stream } from "effect";
|
|
38
38
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
39
|
-
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/
|
|
39
|
+
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
40
40
|
import { ConfigPolicy } from "@opencode/schema/config/policy";
|
|
41
41
|
import { ConfigProvider } from "@opencode/schema/config/provider";
|
|
42
42
|
import { Mcp } from "@opencode/schema/mcp";
|
|
@@ -105,7 +105,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
105
105
|
}
|
|
106
106
|
function oauth(http) {
|
|
107
107
|
return {
|
|
108
|
-
integrationID:
|
|
108
|
+
integrationID: ID16.make("opencode"),
|
|
109
109
|
method: {
|
|
110
110
|
id: methodID,
|
|
111
111
|
type: "oauth",
|
|
@@ -169,10 +169,10 @@ function oauth(http) {
|
|
|
169
169
|
var OpencodePlugin2 = define({
|
|
170
170
|
id: "opencode.provider.opencode",
|
|
171
171
|
effect: Effect.fn(function* (ctx) {
|
|
172
|
-
const bus = yield*
|
|
172
|
+
const bus = yield* Service84;
|
|
173
173
|
const client = yield* HttpClient.HttpClient;
|
|
174
174
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
175
|
-
const managed = yield*
|
|
175
|
+
const managed = yield* Service14;
|
|
176
176
|
const scope = yield* Scope.Scope;
|
|
177
177
|
const loading = Semaphore.makeUnsafe(1);
|
|
178
178
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -221,7 +221,7 @@ var OpencodePlugin2 = define({
|
|
|
221
221
|
providers.update(providerID, (provider) => {
|
|
222
222
|
if (source && source.provider !== provider)
|
|
223
223
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
224
|
-
provider.integrationID =
|
|
224
|
+
provider.integrationID = ID16.make("opencode");
|
|
225
225
|
if (item.canonical !== undefined)
|
|
226
226
|
provider.canonical = item.canonical;
|
|
227
227
|
if (item.name !== undefined)
|
|
@@ -287,7 +287,7 @@ var OpencodePlugin2 = define({
|
|
|
287
287
|
sourceConnection: snapshot.connection
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
const item = providers.get(
|
|
290
|
+
const item = providers.get(ID13.opencode);
|
|
291
291
|
if (!item)
|
|
292
292
|
return;
|
|
293
293
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -299,7 +299,7 @@ var OpencodePlugin2 = define({
|
|
|
299
299
|
});
|
|
300
300
|
});
|
|
301
301
|
yield* ctx.model.transform((models) => {
|
|
302
|
-
const item = models.provider.get(
|
|
302
|
+
const item = models.provider.get(ID13.opencode);
|
|
303
303
|
if (!item)
|
|
304
304
|
return;
|
|
305
305
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -333,7 +333,7 @@ var OpencodePlugin2 = define({
|
|
|
333
333
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
334
334
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
335
335
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
336
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
336
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
337
337
|
query: input.query,
|
|
338
338
|
providerID: descriptor.providerID
|
|
339
339
|
}));
|
|
@@ -388,10 +388,10 @@ var OpencodePlugin2 = define({
|
|
|
388
388
|
});
|
|
389
389
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
390
390
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
391
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
391
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID13.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
392
392
|
});
|
|
393
393
|
yield* guard(snapshot);
|
|
394
|
-
yield* bus.subscribe(
|
|
394
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
395
395
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
|
|
396
396
|
})
|
|
397
397
|
});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SQLiteEffectCountBuilder2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-f0mxakyp.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDeleteBase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-retention-w3wsvvr9.js";
|
|
7
7
|
import {
|
|
8
8
|
SQLiteEffectInsertBuilder2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-retention-7bmhse3q.js";
|
|
10
10
|
import {
|
|
11
11
|
SQLiteEffectRelationalQueryBuilder2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-retention-cf4snx6d.js";
|
|
13
13
|
import {
|
|
14
14
|
SQLiteEffectRaw2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-retention-822emrt2.js";
|
|
16
16
|
import {
|
|
17
17
|
SQLiteEffectSelectBuilder2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-retention-wd87259q.js";
|
|
19
19
|
import {
|
|
20
20
|
SQLiteEffectUpdateBuilder2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-retention-m9w0rfyh.js";
|
|
22
22
|
|
|
23
23
|
// src/database/drizzle/sqlite-core/effect/db.ts
|
|
24
24
|
import { Effect } from "effect";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/identity.ts
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin7,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin7 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin15 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin7, exports_identity };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-zrnmd36g.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/lmstudio.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -19,7 +19,7 @@ var RemoteModel = Schema.Struct({
|
|
|
19
19
|
}).pipe(Schema.optional)
|
|
20
20
|
});
|
|
21
21
|
var Response = Schema.Struct({ models: Schema.Array(RemoteModel) });
|
|
22
|
-
var
|
|
22
|
+
var make8 = createLocalProviderPlugin2({
|
|
23
23
|
id: "opencode.provider.lmstudio",
|
|
24
24
|
providerID: "lmstudio",
|
|
25
25
|
name: "LM Studio",
|
|
@@ -38,6 +38,6 @@ var make5 = createLocalProviderPlugin2({
|
|
|
38
38
|
context: item.loaded_instances.length === 0 ? item.max_context_length : Math.min(...item.loaded_instances.map((instance) => instance.config.context_length))
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
|
-
var LMStudioPlugin2 =
|
|
41
|
+
var LMStudioPlugin2 = make8();
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { make8, LMStudioPlugin2 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service67,
|
|
3
|
+
node71
|
|
4
|
+
} from "./file-retention-md08r0z8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service78,
|
|
7
|
+
node82
|
|
8
|
+
} from "./file-retention-sf9ed94r.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service66,
|
|
11
|
+
node70
|
|
12
|
+
} from "./file-retention-1f2vccss.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-retention-zxq2ej10.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/source.ts
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service8,
|
|
26
26
|
empty: () => empty2,
|
|
27
27
|
layer: () => layer6,
|
|
28
|
-
node: () =>
|
|
28
|
+
node: () => node10
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service8 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var layer6 = Layer.effect(
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer6 = Layer.effect(Service8, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service66;
|
|
40
|
+
const watcher = yield* Service67;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service78;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -58,7 +58,7 @@ var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service8.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer6 = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
73
|
+
var node10 = makeLocationNode({
|
|
74
|
+
service: Service8,
|
|
75
75
|
layer: layer6,
|
|
76
|
-
deps: [
|
|
76
|
+
deps: [node70, FSUtil.node, node71, node82]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service8,
|
|
80
|
+
layer: Layer.succeed(Service8, Service8.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service8, layer6, node10, empty2, exports_source };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// src/tool/runtime.ts
|
|
2
|
+
import { emptyInputJsonSchema } from "@opencode/ai/tool";
|
|
2
3
|
import { Tool } from "@opencode/schema/tool";
|
|
3
|
-
import { Cache, Effect, JsonSchema, Schema, SchemaIssue, SchemaRepresentation } from "effect";
|
|
4
|
+
import { Cache, Effect, JsonPointer, JsonSchema, Schema, SchemaIssue, SchemaRepresentation } from "effect";
|
|
4
5
|
import { $ZodType, toJSONSchema } from "zod/v4/core";
|
|
5
6
|
var formatEffectIssues = SchemaIssue.makeFormatterStandardSchemaV1();
|
|
6
7
|
var jsonSchemas = Effect.runSync(Cache.make({
|
|
@@ -111,7 +112,9 @@ var inputJsonSchema = (schema) => {
|
|
|
111
112
|
return {};
|
|
112
113
|
if (isStandardSchema(schema))
|
|
113
114
|
return standardJsonSchema(schema, "input");
|
|
114
|
-
|
|
115
|
+
if (!Schema.isSchema(schema))
|
|
116
|
+
return schema;
|
|
117
|
+
return emptyInputJsonSchema(schema) ?? toJsonSchema(schema);
|
|
115
118
|
};
|
|
116
119
|
var outputJsonSchema = (schema) => {
|
|
117
120
|
if (isStandardSchema(schema))
|
|
@@ -126,7 +129,7 @@ var standardJsonSchema = (schema, io) => {
|
|
|
126
129
|
throw new Error(`Schema vendor "${schema["~standard"].vendor}" does not support JSON Schema conversion`);
|
|
127
130
|
};
|
|
128
131
|
var toJsonSchema = (schema) => {
|
|
129
|
-
const document = Schema.toJsonSchemaDocument(schema);
|
|
132
|
+
const document = Schema.toJsonSchemaDocument(schema, { onExcessProperty: "error" });
|
|
130
133
|
const normalized = flattenAllOf(Object.keys(document.definitions).length === 0 ? document.schema : { ...document.schema, $defs: document.definitions });
|
|
131
134
|
return dropDefinitionsIfResolved(inlineLocalReferences(normalized));
|
|
132
135
|
};
|
|
@@ -158,8 +161,8 @@ var inlineLocalReferences = (value, definitions, seen = new Set) => {
|
|
|
158
161
|
return value;
|
|
159
162
|
const localDefinitions = definitions ?? (isRecord(value.$defs) ? value.$defs : undefined);
|
|
160
163
|
if (typeof value.$ref === "string" && localDefinitions) {
|
|
161
|
-
const
|
|
162
|
-
const name =
|
|
164
|
+
const tokens = JsonPointer.parseUriFragment(value.$ref);
|
|
165
|
+
const name = tokens?.length === 2 && tokens[0] === "$defs" ? tokens[1] : undefined;
|
|
163
166
|
if (name && !seen.has(name)) {
|
|
164
167
|
const target = localDefinitions[name];
|
|
165
168
|
if (target) {
|