@opencode/core 0.0.0-dev-20784 → 0.0.0-dev-20786
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/{file-retention-nb1wrey8.js → aisdk-native-07kbpjrq.js} +28 -28
- package/dist/chunks/{file-retention-4x8je4cs.js → aisdk-native-0gxvvpwd.js} +30 -30
- package/dist/chunks/{file-retention-0paq2nw3.js → aisdk-native-0paq2nw3.js} +1 -1
- package/dist/chunks/{file-retention-kksd5aqz.js → aisdk-native-0v0s295c.js} +23 -23
- package/dist/chunks/{file-retention-0vbcp93d.js → aisdk-native-0vbcp93d.js} +2 -2
- package/dist/chunks/{file-retention-gw2k9m0t.js → aisdk-native-0wyqa8md.js} +46 -46
- package/dist/chunks/{file-retention-9r9w78qs.js → aisdk-native-12a4gwmx.js} +10 -10
- package/dist/chunks/{file-retention-qsxkee9e.js → aisdk-native-15wbcmej.js} +11 -11
- package/dist/chunks/{file-retention-xhr4eg5m.js → aisdk-native-15ypp5pm.js} +15 -15
- package/dist/chunks/{file-retention-5shkaybx.js → aisdk-native-17sfd86m.js} +12 -12
- package/dist/chunks/{file-retention-yp2x3t23.js → aisdk-native-1acjjqhc.js} +4 -4
- package/dist/chunks/{file-retention-ynmknp8q.js → aisdk-native-1bmjn0qh.js} +11 -11
- package/dist/chunks/{file-retention-z71twgyp.js → aisdk-native-1by08te6.js} +5 -5
- package/dist/chunks/{file-retention-1dvck2a7.js → aisdk-native-1dvck2a7.js} +2 -2
- package/dist/chunks/{file-retention-t8g2rvm9.js → aisdk-native-1gpb38yh.js} +9 -9
- package/dist/chunks/{file-retention-0rfmeyxn.js → aisdk-native-1qnf3m4f.js} +11 -11
- package/dist/chunks/{file-retention-md08r0z8.js → aisdk-native-1s2d77qx.js} +22 -22
- package/dist/chunks/{file-retention-y5y4kes7.js → aisdk-native-1v16s55d.js} +25 -25
- package/dist/chunks/{file-retention-cd70q2ry.js → aisdk-native-208htf4x.js} +24 -24
- package/dist/chunks/{file-retention-x799tqys.js → aisdk-native-22ra1exs.js} +15 -15
- package/dist/chunks/{file-retention-35p49r4v.js → aisdk-native-26jar2tj.js} +34 -34
- package/dist/chunks/{file-retention-85snt3vs.js → aisdk-native-272fdhgb.js} +185 -185
- package/dist/chunks/{file-retention-ek3n6pab.js → aisdk-native-28s5gd9e.js} +16 -16
- package/dist/chunks/{file-retention-nge58cm1.js → aisdk-native-28y8fj81.js} +13 -13
- package/dist/chunks/{file-retention-z7qtbqvc.js → aisdk-native-2brm4zbg.js} +18 -18
- package/dist/chunks/{file-retention-wy0w7taj.js → aisdk-native-2jw6zd4g.js} +21 -21
- package/dist/chunks/{file-retention-mx7expm3.js → aisdk-native-2kf882ja.js} +14 -14
- package/dist/chunks/{file-retention-zfs8ae4p.js → aisdk-native-2m8jawch.js} +4 -4
- package/dist/chunks/{file-retention-gfe3ax2q.js → aisdk-native-2qbapfxp.js} +3 -3
- package/dist/chunks/{file-retention-2vvh33eb.js → aisdk-native-2vvh33eb.js} +2 -2
- package/dist/chunks/{file-retention-mmsbfapg.js → aisdk-native-30wz2v66.js} +1 -1
- package/dist/chunks/{file-retention-fjh3s92b.js → aisdk-native-37d0tkcb.js} +18 -18
- package/dist/chunks/{file-retention-a310axxt.js → aisdk-native-39z47dss.js} +11 -11
- package/dist/chunks/{file-retention-frf5w0nt.js → aisdk-native-3fc3bfk1.js} +15 -15
- package/dist/chunks/{file-retention-3fc6dm20.js → aisdk-native-3fc6dm20.js} +1 -1
- package/dist/chunks/{file-retention-jhdf29st.js → aisdk-native-3g8j9he4.js} +1 -1
- package/dist/chunks/{file-retention-3hepkmqq.js → aisdk-native-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-retention-3hwn7j4h.js → aisdk-native-3hwn7j4h.js} +2 -2
- package/dist/chunks/{file-retention-s4wwhvjv.js → aisdk-native-3sdj3sj0.js} +21 -21
- package/dist/chunks/{file-retention-3smtnn6g.js → aisdk-native-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-retention-3tvqynh2.js → aisdk-native-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-retention-7fdjvgwr.js → aisdk-native-3y8tkwef.js} +1 -1
- package/dist/chunks/{file-retention-3zsf4n22.js → aisdk-native-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-retention-5g380qbr.js → aisdk-native-460xqafy.js} +25 -25
- package/dist/chunks/{file-retention-adm4qcea.js → aisdk-native-4747q1q8.js} +32 -32
- package/dist/chunks/{file-retention-bzn6nda8.js → aisdk-native-499p6055.js} +8 -8
- package/dist/chunks/{file-retention-j4hxg427.js → aisdk-native-4cgsncsb.js} +1 -1
- package/dist/chunks/{file-retention-ks6sgrkr.js → aisdk-native-4dq1w2h4.js} +4 -4
- package/dist/chunks/{file-retention-ab8h52gf.js → aisdk-native-4jbqxnys.js} +33 -33
- package/dist/chunks/{file-retention-msa89gt8.js → aisdk-native-4k5y6bq6.js} +14 -14
- package/dist/chunks/{file-retention-xhvwjgs8.js → aisdk-native-4rqp1pwj.js} +44 -44
- package/dist/chunks/{file-retention-2ccvkpx1.js → aisdk-native-4ts7tf6z.js} +2 -2
- package/dist/chunks/{file-retention-2ekw743c.js → aisdk-native-4w7ta32n.js} +1 -1
- package/dist/chunks/{file-retention-v7rdbjkx.js → aisdk-native-503e0b7w.js} +44 -44
- package/dist/chunks/{file-retention-9j1mbtc1.js → aisdk-native-51hcqn6c.js} +17 -17
- package/dist/chunks/{file-retention-vcn79w6t.js → aisdk-native-5460aaf2.js} +3 -3
- package/dist/chunks/{file-retention-qf6etae5.js → aisdk-native-5kmm60mq.js} +8 -8
- package/dist/chunks/{file-retention-5m9w47nd.js → aisdk-native-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-retention-e3qxr5gk.js → aisdk-native-5qd3pb7m.js} +2 -2
- package/dist/chunks/{file-retention-54vb1344.js → aisdk-native-5vewaszd.js} +35 -35
- package/dist/chunks/{file-retention-e4nca66s.js → aisdk-native-5w80jbce.js} +4 -4
- package/dist/chunks/{file-retention-8sd5y0hb.js → aisdk-native-64z5egxx.js} +26 -26
- package/dist/chunks/{file-retention-pq6k9xjj.js → aisdk-native-65zzszyf.js} +4 -4
- package/dist/chunks/{file-retention-pr54a62y.js → aisdk-native-67xxwmnt.js} +27 -27
- package/dist/chunks/{file-retention-84wx499v.js → aisdk-native-6ejhcdbg.js} +27 -27
- package/dist/chunks/{file-retention-90ncnea0.js → aisdk-native-6etqf7sa.js} +15 -15
- package/dist/chunks/{file-retention-k79tzb9n.js → aisdk-native-6hjx5zpb.js} +8 -8
- package/dist/chunks/{file-retention-2k9fjx65.js → aisdk-native-6kzp9tjq.js} +5 -5
- package/dist/chunks/{file-retention-hp90m9cj.js → aisdk-native-6peqgq5h.js} +32 -32
- package/dist/chunks/{file-retention-h9pnpq88.js → aisdk-native-6q3g8xg3.js} +4 -4
- package/dist/chunks/{file-retention-6xb47vfp.js → aisdk-native-6xb47vfp.js} +1 -1
- package/dist/chunks/{file-retention-vczmck8z.js → aisdk-native-6z0wxtmq.js} +13 -13
- package/dist/chunks/{file-retention-71az546q.js → aisdk-native-71az546q.js} +2 -2
- package/dist/chunks/{file-retention-76rvckpe.js → aisdk-native-76rvckpe.js} +2 -2
- package/dist/chunks/{file-retention-15vdfc9c.js → aisdk-native-78vqgrxr.js} +5 -5
- package/dist/chunks/{file-retention-7bmhse3q.js → aisdk-native-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-retention-1p07q0wb.js → aisdk-native-7fkffz83.js} +2 -2
- package/dist/chunks/{file-retention-enqcm95t.js → aisdk-native-7mt71gmx.js} +36 -36
- package/dist/chunks/{file-retention-72sxpf59.js → aisdk-native-82v73sw7.js} +3 -3
- package/dist/chunks/{file-retention-w1eejvng.js → aisdk-native-84txncab.js} +5 -5
- package/dist/chunks/{file-retention-xrmap3r6.js → aisdk-native-87662kyj.js} +4 -4
- package/dist/chunks/{file-retention-2hg7qvzt.js → aisdk-native-8dff8bqa.js} +5 -5
- package/dist/chunks/{file-retention-8m6m0r52.js → aisdk-native-8m6m0r52.js} +1 -1
- package/dist/chunks/{file-retention-2n9hdwqs.js → aisdk-native-8xkxcnns.js} +26 -26
- package/dist/chunks/{file-retention-909p1r3q.js → aisdk-native-93ygb5af.js} +6 -6
- package/dist/chunks/{file-retention-7pj8drkf.js → aisdk-native-9af9fmhm.js} +21 -21
- package/dist/chunks/{file-retention-9e5bzkjp.js → aisdk-native-9e5bzkjp.js} +3 -3
- package/dist/chunks/{file-retention-5xtgfte3.js → aisdk-native-9hn6k4tm.js} +8 -8
- package/dist/chunks/{file-retention-ka5c30pq.js → aisdk-native-9kr58kvj.js} +20 -20
- package/dist/chunks/{file-retention-fshxsajn.js → aisdk-native-a8zx47k6.js} +30 -30
- package/dist/chunks/{file-retention-88pgeajf.js → aisdk-native-ac67tbtp.js} +4 -4
- package/dist/chunks/{file-retention-y6nv3cb4.js → aisdk-native-acfah2j5.js} +25 -25
- package/dist/chunks/{file-retention-3y377wv9.js → aisdk-native-addxnjmp.js} +4 -4
- package/dist/chunks/{file-retention-sfczn6wa.js → aisdk-native-aeqfavaw.js} +11 -11
- package/dist/chunks/{file-retention-kne8f3cn.js → aisdk-native-afdssyjb.js} +4 -4
- package/dist/chunks/{file-retention-my8b67cc.js → aisdk-native-an357sdh.js} +11 -11
- package/dist/chunks/{file-retention-hq6c81g9.js → aisdk-native-apkkzndf.js} +11 -11
- package/dist/chunks/{file-retention-pgdn5y71.js → aisdk-native-avqnrtf7.js} +24 -24
- package/dist/chunks/{file-retention-1f2vccss.js → aisdk-native-axhcxy2h.js} +43 -43
- package/dist/chunks/{file-retention-226karrg.js → aisdk-native-ayk9hf2m.js} +314 -314
- package/dist/chunks/{file-retention-zrnmd36g.js → aisdk-native-b04tv09v.js} +7 -7
- package/dist/chunks/{file-retention-b3f8fkhc.js → aisdk-native-b3f8fkhc.js} +2 -2
- package/dist/chunks/{file-retention-ck45pw9k.js → aisdk-native-be7zefqj.js} +5 -5
- package/dist/chunks/{file-retention-t3kgvaqg.js → aisdk-native-bfr976yb.js} +23 -23
- package/dist/chunks/{file-retention-bjx1sjef.js → aisdk-native-bjx1sjef.js} +2 -2
- package/dist/chunks/{file-retention-0crjjxxx.js → aisdk-native-bm4kvh4t.js} +16 -16
- package/dist/chunks/{file-retention-d7x0sh0y.js → aisdk-native-bxqk5pf5.js} +9 -9
- package/dist/chunks/aisdk-native-by5v678g.js +18 -0
- package/dist/chunks/{file-retention-2j3kqcde.js → aisdk-native-c1jrcsrx.js} +20 -20
- package/dist/chunks/{file-retention-ath3g41k.js → aisdk-native-cgm4h4aq.js} +40 -40
- package/dist/chunks/{file-retention-d580n77m.js → aisdk-native-chewf014.js} +11 -11
- package/dist/chunks/{file-retention-waztmdc6.js → aisdk-native-cs198y7t.js} +20 -20
- package/dist/chunks/{file-retention-hnra3d6s.js → aisdk-native-cv08xkf1.js} +5 -5
- package/dist/chunks/{file-retention-hs6v00ac.js → aisdk-native-cwbbynvz.js} +11 -11
- package/dist/chunks/{file-retention-7j5w12p9.js → aisdk-native-d05zv93t.js} +35 -35
- package/dist/chunks/{file-retention-ac7rwfbv.js → aisdk-native-da80x6cr.js} +12 -12
- package/dist/chunks/{file-retention-xdqkszf6.js → aisdk-native-dasyzfwa.js} +24 -24
- package/dist/chunks/{file-retention-1k45a421.js → aisdk-native-dehf6d0k.js} +13 -13
- package/dist/chunks/aisdk-native-dkan0d0q.js +253 -0
- package/dist/chunks/{file-retention-d6w343vm.js → aisdk-native-dq5ye1kk.js} +21 -21
- package/dist/chunks/{file-retention-85xxa1xb.js → aisdk-native-drnf6xwf.js} +2 -2
- package/dist/chunks/{file-retention-87bzfwd4.js → aisdk-native-e6rn5k1j.js} +9 -9
- package/dist/chunks/{file-retention-xxy9zgkz.js → aisdk-native-eaq45qha.js} +23 -23
- package/dist/chunks/{file-retention-eej6y6fw.js → aisdk-native-eej6y6fw.js} +2 -2
- package/dist/chunks/{file-retention-k3wcbxqn.js → aisdk-native-eetze1fx.js} +11 -11
- package/dist/chunks/{file-retention-ef5x83kb.js → aisdk-native-ef5x83kb.js} +1 -1
- package/dist/chunks/aisdk-native-efh984b4.js +513 -0
- package/dist/chunks/{file-retention-76g80x4f.js → aisdk-native-ep658q2n.js} +3 -3
- package/dist/chunks/{file-retention-eyhnzkb4.js → aisdk-native-ev6bpwvp.js} +8 -8
- package/dist/chunks/{file-retention-sd2fp9ec.js → aisdk-native-ex9hba4z.js} +18 -18
- package/dist/chunks/{file-retention-fkrcgtjd.js → aisdk-native-f315jnsz.js} +9 -9
- package/dist/chunks/{file-retention-a0pnfrft.js → aisdk-native-f5yvwykz.js} +35 -35
- package/dist/chunks/{file-retention-4wnyxfvg.js → aisdk-native-fb1vsn26.js} +4 -4
- package/dist/chunks/{file-retention-y497myth.js → aisdk-native-fc17kpsq.js} +3 -3
- package/dist/chunks/{file-retention-xnyn0jx3.js → aisdk-native-ffrz43s8.js} +16 -16
- package/dist/chunks/{file-retention-h5qdgnb5.js → aisdk-native-fjp33x3x.js} +24 -24
- package/dist/chunks/{file-retention-sf9ed94r.js → aisdk-native-fk4ssw1m.js} +17 -17
- package/dist/chunks/{file-retention-sww10ew7.js → aisdk-native-fqhxaznx.js} +13 -13
- package/dist/chunks/{file-retention-qmqgtz8f.js → aisdk-native-ft3hqk2c.js} +9 -9
- package/dist/chunks/{file-retention-tk14y25j.js → aisdk-native-g6yfr6ja.js} +5 -5
- package/dist/chunks/{file-retention-t5ae1t4b.js → aisdk-native-g7nn2pxv.js} +19 -19
- package/dist/chunks/{file-retention-32y4ehgv.js → aisdk-native-g8ytx0e6.js} +11 -11
- package/dist/chunks/{file-retention-2mqvqnd5.js → aisdk-native-gabj3pgr.js} +13 -13
- package/dist/chunks/{file-retention-gd4qta3r.js → aisdk-native-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-retention-fhx5vk7x.js → aisdk-native-gghkt8yn.js} +25 -25
- package/dist/chunks/{file-retention-gk8qb678.js → aisdk-native-gk8qb678.js} +1 -1
- package/dist/chunks/{file-retention-ecv6s6zk.js → aisdk-native-gpg00hx0.js} +24 -24
- package/dist/chunks/{file-retention-37ea9c2d.js → aisdk-native-gs3s1a1g.js} +8 -8
- package/dist/chunks/{file-retention-m8q1dgfp.js → aisdk-native-gswcc2e7.js} +5 -5
- package/dist/chunks/{file-retention-h2b79v29.js → aisdk-native-h2b79v29.js} +2 -2
- package/dist/chunks/{file-retention-pdetw647.js → aisdk-native-h5qrb2fe.js} +11 -11
- package/dist/chunks/{file-retention-h6vf3j39.js → aisdk-native-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-retention-h7s7r6s9.js → aisdk-native-h7s7r6s9.js} +2 -2
- package/dist/chunks/aisdk-native-h91mk9a5.js +26 -0
- package/dist/chunks/{file-retention-xc914k0j.js → aisdk-native-h9vx5wsk.js} +24 -24
- package/dist/chunks/{file-retention-hgz4x7wa.js → aisdk-native-hgz4x7wa.js} +1 -1
- package/dist/chunks/{file-retention-6mbzp12p.js → aisdk-native-hq2zzb6q.js} +38 -38
- package/dist/chunks/{file-retention-banfh6zd.js → aisdk-native-hspvnt0q.js} +20 -20
- package/dist/chunks/{file-retention-j56e64zr.js → aisdk-native-j56e64zr.js} +1 -1
- package/dist/chunks/{file-retention-btwe4kze.js → aisdk-native-jhfcm0cr.js} +5 -5
- package/dist/chunks/{file-retention-azy71b5p.js → aisdk-native-jqex0031.js} +10 -10
- package/dist/chunks/{file-retention-azanj09g.js → aisdk-native-jw6c5fet.js} +6 -6
- package/dist/chunks/{file-retention-qthw6f29.js → aisdk-native-jxwj20k3.js} +11 -11
- package/dist/chunks/{file-retention-bkxyw0dr.js → aisdk-native-k7myrtme.js} +9 -9
- package/dist/chunks/{file-retention-7kk9evys.js → aisdk-native-kbnhdetn.js} +18 -18
- package/dist/chunks/{file-retention-mvsrg00e.js → aisdk-native-kecwt4tn.js} +30 -30
- package/dist/chunks/{file-retention-ycd7fagt.js → aisdk-native-kkrkkp85.js} +24 -24
- package/dist/chunks/{file-retention-5z9rmvjz.js → aisdk-native-m0fgvk42.js} +69 -69
- package/dist/chunks/{file-retention-m3fdjcah.js → aisdk-native-m3fdjcah.js} +1 -1
- package/dist/chunks/{file-retention-x0q3bb0r.js → aisdk-native-m3x2bdhe.js} +33 -33
- package/dist/chunks/{file-retention-m9w0rfyh.js → aisdk-native-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-retention-641gya88.js → aisdk-native-mc036365.js} +3 -3
- package/dist/chunks/{file-retention-mcp2qyd7.js → aisdk-native-md6myaa9.js} +23 -23
- package/dist/chunks/{file-retention-x47gwdav.js → aisdk-native-mdbjqyaj.js} +11 -11
- package/dist/chunks/{file-retention-ryndta0d.js → aisdk-native-mjkk500r.js} +42 -42
- package/dist/chunks/{file-retention-spqcpneg.js → aisdk-native-mkne3c2g.js} +6 -6
- package/dist/chunks/{file-retention-mm2pt0qe.js → aisdk-native-mqkg4rby.js} +19 -19
- package/dist/chunks/{file-retention-thygzj8s.js → aisdk-native-msr9p29v.js} +39 -39
- package/dist/chunks/{file-retention-0y4k1x12.js → aisdk-native-mtf65vq0.js} +16 -16
- package/dist/chunks/{file-retention-5fec3t3w.js → aisdk-native-mv3hx7wz.js} +9 -9
- package/dist/chunks/{file-retention-ea9a622x.js → aisdk-native-mvf7faxs.js} +17 -17
- package/dist/chunks/{file-retention-e80jqawr.js → aisdk-native-mw7smfw4.js} +33 -33
- package/dist/chunks/{file-retention-ba07h9gm.js → aisdk-native-my4zabxr.js} +3 -3
- package/dist/chunks/{file-retention-5dkn69vz.js → aisdk-native-n1n192bv.js} +4 -4
- package/dist/chunks/{file-retention-g95216pe.js → aisdk-native-n2gtn2c6.js} +45 -45
- package/dist/chunks/{file-retention-4bzbvhwk.js → aisdk-native-n8ge2gvn.js} +14 -14
- package/dist/chunks/{file-retention-wcdwbs26.js → aisdk-native-nb18fvzg.js} +17 -17
- package/dist/chunks/{file-retention-700ev8gh.js → aisdk-native-nga4q8xv.js} +37 -37
- package/dist/chunks/{file-retention-6gaajhts.js → aisdk-native-nhe0p8k5.js} +10 -10
- package/dist/chunks/{file-retention-r2z489rp.js → aisdk-native-nma959mg.js} +3 -3
- package/dist/chunks/{file-retention-d7zv88p4.js → aisdk-native-nne3m2zy.js} +21 -21
- package/dist/chunks/{file-retention-eynxa54k.js → aisdk-native-nr2zryxx.js} +43 -43
- package/dist/chunks/{file-retention-rtg4wmet.js → aisdk-native-p1qm3m6x.js} +2 -2
- package/dist/chunks/{file-retention-dwe8s81y.js → aisdk-native-p4vh95yg.js} +10 -10
- package/dist/chunks/{file-retention-kkymj4jt.js → aisdk-native-pe642bbt.js} +19 -19
- package/dist/chunks/{file-retention-jtmhc97q.js → aisdk-native-pewx5hyn.js} +55 -55
- package/dist/chunks/{file-retention-pjvnvgmy.js → aisdk-native-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-retention-pknna89w.js → aisdk-native-pknna89w.js} +1 -1
- package/dist/chunks/{file-retention-hrh521yf.js → aisdk-native-pmpekd2n.js} +11 -11
- package/dist/chunks/{file-retention-nqj1gben.js → aisdk-native-py5vy7dm.js} +38 -38
- package/dist/chunks/{file-retention-0j77ygfz.js → aisdk-native-q0xm7vwc.js} +6 -6
- package/dist/chunks/{file-retention-7dqw4kz8.js → aisdk-native-qgn6gcr1.js} +5 -5
- package/dist/chunks/{file-retention-2908y79c.js → aisdk-native-qjscwv07.js} +14 -14
- package/dist/chunks/{file-retention-qnc92qwc.js → aisdk-native-qnc92qwc.js} +1 -1
- package/dist/chunks/{file-retention-57b9ws8p.js → aisdk-native-qqeeq2t9.js} +4 -4
- package/dist/chunks/{file-retention-qsdy395h.js → aisdk-native-qsdy395h.js} +1 -1
- package/dist/chunks/{file-retention-hn2ax6sd.js → aisdk-native-qtsye2my.js} +20 -20
- package/dist/chunks/{file-retention-6wh776qa.js → aisdk-native-qv8r7dn3.js} +6 -6
- package/dist/chunks/{file-retention-4re51v5c.js → aisdk-native-qv8yaqbc.js} +89 -89
- package/dist/chunks/{file-retention-a9kdv268.js → aisdk-native-r5q6fnhn.js} +15 -15
- package/dist/chunks/{file-retention-54ma36ye.js → aisdk-native-r94pvvab.js} +4 -4
- package/dist/chunks/{file-retention-rdw6cm16.js → aisdk-native-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-retention-q4dve0yc.js → aisdk-native-rjknpt6z.js} +11 -11
- package/dist/chunks/{file-retention-998r05vw.js → aisdk-native-rmbbtebd.js} +46 -46
- package/dist/chunks/{file-retention-bbcm0tyt.js → aisdk-native-rnhh7h7z.js} +87 -87
- package/dist/chunks/{file-retention-wx15gkxh.js → aisdk-native-rza4mxkq.js} +16 -16
- package/dist/chunks/{file-retention-e4ma86vn.js → aisdk-native-s3k4yf5k.js} +10 -10
- package/dist/chunks/{file-retention-k430jzx8.js → aisdk-native-s5wyam9r.js} +17 -17
- package/dist/chunks/{file-retention-dwaxmk1s.js → aisdk-native-sam13k9q.js} +19 -19
- package/dist/chunks/{file-retention-m6y8pydv.js → aisdk-native-sfcx648x.js} +4 -4
- package/dist/chunks/{file-retention-fgjzfnyp.js → aisdk-native-sfzddxxv.js} +5 -5
- package/dist/chunks/{file-retention-7cxxxtha.js → aisdk-native-sm55s1mk.js} +56 -56
- package/dist/chunks/{file-retention-ytt0bby0.js → aisdk-native-smd8q5by.js} +10 -10
- package/dist/chunks/{file-retention-rr9cc36v.js → aisdk-native-stth1wwk.js} +11 -11
- package/dist/chunks/{file-retention-xwfqprxb.js → aisdk-native-svzptg8w.js} +11 -11
- package/dist/chunks/{file-retention-wsq1jxfe.js → aisdk-native-sydd57cv.js} +32 -32
- package/dist/chunks/{file-retention-fm2qvscf.js → aisdk-native-t2fc4mz5.js} +4 -4
- package/dist/chunks/{file-retention-jjenqzg1.js → aisdk-native-t3r4kgzb.js} +47 -47
- package/dist/chunks/{file-retention-s8d7rejh.js → aisdk-native-t550f9t1.js} +4 -4
- package/dist/chunks/{file-retention-0e3qe3yy.js → aisdk-native-t9j2ta17.js} +20 -20
- package/dist/chunks/{file-retention-tazgh4e4.js → aisdk-native-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-retention-tcezcvh9.js → aisdk-native-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-retention-tdstcens.js → aisdk-native-tdstcens.js} +1 -1
- package/dist/chunks/{file-retention-q3qqjc4j.js → aisdk-native-tkt1nrm6.js} +10 -10
- package/dist/chunks/{file-retention-9hy1eatw.js → aisdk-native-tm6h5bf4.js} +9 -9
- package/dist/chunks/{file-retention-3pa89wpn.js → aisdk-native-tvmp3rky.js} +4 -4
- package/dist/chunks/{file-retention-t171g2rj.js → aisdk-native-tx74ce77.js} +15 -15
- package/dist/chunks/{file-retention-tyytaxap.js → aisdk-native-tyytaxap.js} +1 -1
- package/dist/chunks/{file-retention-0sdx5hkx.js → aisdk-native-v2b2yc5y.js} +15 -15
- package/dist/chunks/{file-retention-v7p4zvkq.js → aisdk-native-v7p4zvkq.js} +2 -2
- package/dist/chunks/{file-retention-hymc8p36.js → aisdk-native-v8vpn1gg.js} +8 -8
- package/dist/chunks/{file-retention-2w2dfs1b.js → aisdk-native-va1erbf3.js} +15 -15
- package/dist/chunks/{file-retention-pmwpe40e.js → aisdk-native-vbfgae2j.js} +4 -4
- package/dist/chunks/{file-retention-phxa5z0e.js → aisdk-native-vcaj4twf.js} +7 -7
- package/dist/chunks/{file-retention-veqvce7d.js → aisdk-native-veqvce7d.js} +1 -1
- package/dist/chunks/{file-retention-81fjg4yx.js → aisdk-native-vv44hwmw.js} +12 -12
- package/dist/chunks/{file-retention-vzs5sf6e.js → aisdk-native-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-retention-75w0f5x3.js → aisdk-native-w0d4wwxc.js} +6 -6
- package/dist/chunks/{file-retention-w3wsvvr9.js → aisdk-native-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-retention-4zeyygbb.js → aisdk-native-w699qp6n.js} +11 -11
- package/dist/chunks/{file-retention-hs4w86ex.js → aisdk-native-wchfmkx9.js} +7 -7
- package/dist/chunks/{file-retention-wd87259q.js → aisdk-native-wd87259q.js} +1 -1
- package/dist/chunks/{file-retention-v97fnpgb.js → aisdk-native-we7xe3ez.js} +5 -5
- package/dist/chunks/{file-retention-7me7tz75.js → aisdk-native-wppv7xh7.js} +6 -6
- package/dist/chunks/{file-retention-5526gnt0.js → aisdk-native-wxn9ff8g.js} +28 -28
- package/dist/chunks/{file-retention-z3db4tjk.js → aisdk-native-xc6s865b.js} +20 -20
- package/dist/chunks/{file-retention-ymh22vxa.js → aisdk-native-xj4mgpap.js} +5 -5
- package/dist/chunks/{file-retention-01m0edtj.js → aisdk-native-xk74gs42.js} +10 -10
- package/dist/chunks/{file-retention-291fq28g.js → aisdk-native-xx4dt3wm.js} +49 -49
- package/dist/chunks/{file-retention-btmq9cxd.js → aisdk-native-xxw4aevj.js} +19 -19
- package/dist/chunks/{file-retention-y1fvbwt7.js → aisdk-native-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-retention-4434d9q2.js → aisdk-native-y4xh0pmk.js} +9 -9
- package/dist/chunks/{file-retention-dpkg50ah.js → aisdk-native-y71avatq.js} +4 -4
- package/dist/chunks/{file-retention-vbrars45.js → aisdk-native-y9s9xvs6.js} +6 -6
- package/dist/chunks/{file-retention-f8d5qev0.js → aisdk-native-yc829qrg.js} +10 -10
- package/dist/chunks/{file-retention-vytaj533.js → aisdk-native-ydnne5qh.js} +26 -26
- package/dist/chunks/{file-retention-b2tc811h.js → aisdk-native-ye0e6s7b.js} +7 -7
- package/dist/chunks/{file-retention-m91gvp7t.js → aisdk-native-yemq3d8b.js} +6 -6
- package/dist/chunks/{file-retention-g7kzsnmy.js → aisdk-native-ygrztswd.js} +20 -20
- package/dist/chunks/{file-retention-n7chjqa1.js → aisdk-native-yjp304yq.js} +18 -18
- package/dist/chunks/{file-retention-vwpcpzep.js → aisdk-native-yvvvp4gn.js} +8 -8
- package/dist/chunks/{file-retention-z0bkrqjs.js → aisdk-native-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-retention-r2ktrraj.js → aisdk-native-z1kk38nk.js} +22 -22
- package/dist/chunks/{file-retention-gz086qgb.js → aisdk-native-z710t3jr.js} +9 -9
- package/dist/chunks/{file-retention-5w8jzqx5.js → aisdk-native-za30zmz1.js} +5 -5
- package/dist/chunks/{file-retention-5sn004hq.js → aisdk-native-zd75cx22.js} +19 -19
- package/dist/chunks/{file-retention-zr2ceqn5.js → aisdk-native-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-retention-zxq2ej10.js → aisdk-native-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- 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 +115 -115
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +103 -103
- package/dist/config/plugin/skill.js +136 -136
- 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 +116 -116
- 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 +84 -84
- 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 +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +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 +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +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 +13 -13
- package/dist/filesystem.js +103 -103
- 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 +86 -86
- package/dist/instructions/builtins.js +88 -88
- package/dist/instructions/index.js +3 -3
- 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 +132 -132
- 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 +106 -106
- 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 +101 -101
- package/dist/models-dev.js +108 -108
- 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 +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 +115 -115
- 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 +115 -115
- 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 +2 -2
- 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 +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- 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 +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- 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 +98 -98
- 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 +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +82 -82
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- 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 +136 -136
- 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 +215 -215
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +91 -91
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +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 +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 +2 -2
- 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 +165 -165
- 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 +3 -3
- package/dist/session/title.js +158 -158
- package/dist/session/to-session-error.js +112 -112
- package/dist/session/transfer.js +211 -211
- 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 +111 -111
- 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 +127 -127
- 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 +209 -209
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +113 -113
- 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/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 +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +94 -94
- 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 +81 -81
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +90 -90
- package/dist/worktree.js +97 -97
- package/package.json +8 -8
- package/dist/chunks/file-retention-02wkw50e.js +0 -513
- package/dist/chunks/file-retention-dxj72tfx.js +0 -18
- package/dist/chunks/file-retention-f2fj5fz0.js +0 -253
- package/dist/chunks/file-retention-nxaxcbj9.js +0 -26
- /package/dist/chunks/{file-retention-0qkdqm5v.js → aisdk-native-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-retention-0zkw76rk.js → aisdk-native-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-retention-17cy0kzp.js → aisdk-native-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-retention-1cnp2v09.js → aisdk-native-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-retention-1kg9ymc8.js → aisdk-native-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-retention-24dcb14g.js → aisdk-native-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-retention-2710q6r3.js → aisdk-native-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-retention-2axfhc9x.js → aisdk-native-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-retention-2c3vjs8z.js → aisdk-native-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-retention-34c7v6d4.js → aisdk-native-34c7v6d4.js} +0 -0
- /package/dist/chunks/{file-retention-359p4xyc.js → aisdk-native-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-retention-3asan66x.js → aisdk-native-3asan66x.js} +0 -0
- /package/dist/chunks/{file-retention-3t0ybcrp.js → aisdk-native-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{file-retention-3v8g72cx.js → aisdk-native-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-retention-3wcehsnq.js → aisdk-native-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-retention-43n2bw4t.js → aisdk-native-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-retention-4knz6hnm.js → aisdk-native-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-retention-4vcrnpx2.js → aisdk-native-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-retention-4y7fprxs.js → aisdk-native-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-retention-53557ph1.js → aisdk-native-53557ph1.js} +0 -0
- /package/dist/chunks/{file-retention-550bvhaj.js → aisdk-native-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-retention-6prwharc.js → aisdk-native-6prwharc.js} +0 -0
- /package/dist/chunks/{file-retention-6q2bdcd1.js → aisdk-native-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-retention-7akdwqpd.js → aisdk-native-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-retention-7m9af43g.js → aisdk-native-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-retention-822emrt2.js → aisdk-native-822emrt2.js} +0 -0
- /package/dist/chunks/{file-retention-84wd9syh.js → aisdk-native-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-retention-88xbtdfr.js → aisdk-native-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-retention-8n3pysct.js → aisdk-native-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-retention-8wj87zfr.js → aisdk-native-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-retention-9a4afbnw.js → aisdk-native-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-retention-9rqn6x4v.js → aisdk-native-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-retention-a6k6eb26.js → aisdk-native-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-retention-af5trqkr.js → aisdk-native-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-retention-afrmfg78.js → aisdk-native-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-retention-aqzs7mqg.js → aisdk-native-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-retention-atq7p7m5.js → aisdk-native-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-retention-bkyjaxrp.js → aisdk-native-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-retention-bmr6ed5q.js → aisdk-native-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-retention-bw78ga2c.js → aisdk-native-bw78ga2c.js} +0 -0
- /package/dist/chunks/{file-retention-cf4snx6d.js → aisdk-native-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-retention-cvy3z8tj.js → aisdk-native-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-retention-d9fn303g.js → aisdk-native-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-retention-d9jj8t3e.js → aisdk-native-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-retention-dajrwvna.js → aisdk-native-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-retention-dap0rakb.js → aisdk-native-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-retention-df08tz66.js → aisdk-native-df08tz66.js} +0 -0
- /package/dist/chunks/{file-retention-dy18nga0.js → aisdk-native-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-retention-e5kj55wp.js → aisdk-native-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-retention-e73j6tqm.js → aisdk-native-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-retention-ec1grn59.js → aisdk-native-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-retention-eh3zwz77.js → aisdk-native-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-retention-emrn6kk6.js → aisdk-native-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-retention-f0mxakyp.js → aisdk-native-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-retention-f6n9ztr4.js → aisdk-native-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-retention-faypxj3z.js → aisdk-native-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-retention-fd410y7t.js → aisdk-native-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-retention-fxgpk5d8.js → aisdk-native-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{file-retention-g4wezp1m.js → aisdk-native-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-retention-g86h250q.js → aisdk-native-g86h250q.js} +0 -0
- /package/dist/chunks/{file-retention-gebd4c9n.js → aisdk-native-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-retention-gftt206x.js → aisdk-native-gftt206x.js} +0 -0
- /package/dist/chunks/{file-retention-hk9envan.js → aisdk-native-hk9envan.js} +0 -0
- /package/dist/chunks/{file-retention-j2ntwpah.js → aisdk-native-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-retention-j5zkgpj8.js → aisdk-native-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-retention-jjkms2e6.js → aisdk-native-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-retention-jr7sbwjy.js → aisdk-native-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-retention-jwfs4k6c.js → aisdk-native-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-retention-jze0r7bz.js → aisdk-native-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-retention-jzg6c2d5.js → aisdk-native-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-retention-mp448xyj.js → aisdk-native-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-retention-msx8hqn2.js → aisdk-native-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-retention-n05xt0ee.js → aisdk-native-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-retention-n3j8tn72.js → aisdk-native-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-retention-njntx4h6.js → aisdk-native-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-retention-pyv0edze.js → aisdk-native-pyv0edze.js} +0 -0
- /package/dist/chunks/{file-retention-q3sfg36h.js → aisdk-native-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-retention-q74kybfr.js → aisdk-native-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-retention-qaymkmh1.js → aisdk-native-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-retention-qb87gjwd.js → aisdk-native-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-retention-qfa1cgps.js → aisdk-native-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-retention-qg3g05ea.js → aisdk-native-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-retention-qrg20bc0.js → aisdk-native-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-retention-rcb2kzg1.js → aisdk-native-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-retention-sdp7kfr6.js → aisdk-native-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-retention-ssg3fenm.js → aisdk-native-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-retention-ve7vex1e.js → aisdk-native-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-retention-w803qqfp.js → aisdk-native-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-retention-wc3fc9cn.js → aisdk-native-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-retention-wer8tq1h.js → aisdk-native-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-retention-wtztk69x.js → aisdk-native-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-retention-x0ckcb58.js → aisdk-native-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-retention-x61499pn.js → aisdk-native-x61499pn.js} +0 -0
- /package/dist/chunks/{file-retention-y44na4kk.js → aisdk-native-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-retention-y8f7s663.js → aisdk-native-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-retention-ygaqb7jw.js → aisdk-native-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-retention-ym463w8f.js → aisdk-native-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-retention-z5v4ffb3.js → aisdk-native-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-retention-z9919s4g.js → aisdk-native-z9919s4g.js} +0 -0
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-native-2qbapfxp.js";
|
|
5
5
|
import {
|
|
6
6
|
Service84,
|
|
7
7
|
node88
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-native-sfcx648x.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-native-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-native-3zsf4n22.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event19,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID15,
|
|
26
|
+
Info: () => Info26,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service78,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node82
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
35
35
|
import { Credential } from "@opencode/schema/credential";
|
|
36
36
|
import { Integration } from "@opencode/schema/integration";
|
|
37
37
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
38
|
-
var
|
|
38
|
+
var ID15 = Credential.ID;
|
|
39
39
|
var OAuth3 = Credential.OAuth;
|
|
40
40
|
var Key4 = Credential.Key;
|
|
41
41
|
var External2 = Credential.External;
|
|
42
42
|
var Value2 = Credential.Value;
|
|
43
|
-
var
|
|
43
|
+
var Event19 = Credential.Event;
|
|
44
44
|
|
|
45
|
-
class
|
|
46
|
-
id:
|
|
45
|
+
class Info26 extends Schema.Class("Credential.Info")({
|
|
46
|
+
id: ID15,
|
|
47
47
|
integrationID: Integration.ID,
|
|
48
48
|
label: Schema.String,
|
|
49
49
|
value: Value2
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service78 extends Context.Service()("@opencode/Credential") {
|
|
54
54
|
}
|
|
55
|
-
var layer = Layer.effect(
|
|
55
|
+
var layer = Layer.effect(Service78, Effect.gen(function* () {
|
|
56
56
|
const db = (yield* Service85).db;
|
|
57
57
|
const bus = yield* Service84;
|
|
58
58
|
const decode = Schema.decodeUnknownSync(Value2);
|
|
59
59
|
const stored = (row) => {
|
|
60
60
|
if (!row.integration_id)
|
|
61
61
|
return;
|
|
62
|
-
return new
|
|
62
|
+
return new Info26({
|
|
63
63
|
id: row.id,
|
|
64
64
|
integrationID: row.integration_id,
|
|
65
65
|
label: row.label,
|
|
@@ -70,7 +70,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
70
70
|
const credential = stored(row);
|
|
71
71
|
return credential ? [credential] : [];
|
|
72
72
|
});
|
|
73
|
-
return
|
|
73
|
+
return Service78.of({
|
|
74
74
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
75
75
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
76
76
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -78,8 +78,8 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
78
78
|
return row ? stored(row) : undefined;
|
|
79
79
|
}),
|
|
80
80
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
81
|
-
const credential = new
|
|
82
|
-
id: input.id ??
|
|
81
|
+
const credential = new Info26({
|
|
82
|
+
id: input.id ?? ID15.create(),
|
|
83
83
|
integrationID: input.integrationID,
|
|
84
84
|
label: input.label ?? "default",
|
|
85
85
|
value: input.value
|
|
@@ -110,9 +110,9 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
110
110
|
type: credential.value.type,
|
|
111
111
|
active: activated
|
|
112
112
|
});
|
|
113
|
-
yield* bus.publish(
|
|
113
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
114
114
|
if (activated)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event19.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
116
116
|
return credential;
|
|
117
117
|
}),
|
|
118
118
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -132,7 +132,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
132
132
|
})), Effect.orDie);
|
|
133
133
|
if (integrationID) {
|
|
134
134
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
135
|
-
yield* bus.publish(
|
|
135
|
+
yield* bus.publish(Event19.Switched, { integrationID, credentialID: id }, { global: true });
|
|
136
136
|
}
|
|
137
137
|
}),
|
|
138
138
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -164,7 +164,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
164
164
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
165
165
|
});
|
|
166
166
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
167
|
-
yield* bus.publish(
|
|
167
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
168
168
|
}),
|
|
169
169
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
170
170
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -197,12 +197,12 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
197
197
|
active: removed.switched,
|
|
198
198
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
199
199
|
});
|
|
200
|
-
yield* bus.publish(
|
|
200
|
+
yield* bus.publish(Event19.Updated, {}, { global: true });
|
|
201
201
|
if (removed.switched)
|
|
202
|
-
yield* bus.publish(
|
|
202
|
+
yield* bus.publish(Event19.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
203
203
|
})
|
|
204
204
|
});
|
|
205
205
|
}));
|
|
206
|
-
var
|
|
206
|
+
var node82 = makeGlobalNode({ service: Service78, layer, deps: [node89, node88] });
|
|
207
207
|
|
|
208
|
-
export {
|
|
208
|
+
export { ID15, OAuth3, Key4, External2, Value2, Event19, Info26, Service78, node82, exports_credential };
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service65
|
|
3
|
+
} from "./aisdk-native-pewx5hyn.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-native-4vcrnpx2.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-native-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/webfetch.ts
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
19
|
+
Input: () => Input7,
|
|
20
20
|
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin42,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description3,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name7
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
33
|
+
var name7 = "webfetch";
|
|
34
34
|
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description3 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input7 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input11 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input7.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin42 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service65;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name7,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description3,
|
|
104
|
+
input: Input7,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin48 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name7,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name7, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description3, Input7, Plugin42, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-pmpekd2n.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-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: () => Plugin13,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
13
|
endpoint: () => endpoint6
|
|
14
14
|
});
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin13 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -77,4 +77,4 @@ var Plugin11 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export { endpoint6,
|
|
80
|
+
export { endpoint6, Plugin13, exports_tavily };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mergeOverlay2,
|
|
3
3
|
mergeHeaders2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-native-ayk9hf2m.js";
|
|
5
5
|
import {
|
|
6
6
|
mergeCapabilities2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-native-kecwt4tn.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service44
|
|
11
|
+
} from "./aisdk-native-axhcxy2h.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
resolve4
|
|
14
|
+
} from "./aisdk-native-qv8r7dn3.js";
|
|
15
15
|
import {
|
|
16
16
|
observe2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./aisdk-native-qsdy395h.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./aisdk-native-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/config/plugin/provider.ts
|
|
23
23
|
var exports_provider = {};
|
|
@@ -31,7 +31,7 @@ import { Effect } from "effect";
|
|
|
31
31
|
var Plugin22 = define({
|
|
32
32
|
id: "opencode.config.provider",
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
|
-
const config = yield*
|
|
34
|
+
const config = yield* Service44;
|
|
35
35
|
const loaded = yield* observe2(config, ctx.event, ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload())));
|
|
36
36
|
yield* ctx.integration.transform((integrations) => {
|
|
37
37
|
for (const [id, provider] of configuredProviders(loaded.entries)) {
|
|
@@ -175,7 +175,7 @@ var Plugin22 = define({
|
|
|
175
175
|
if (config.variants === undefined && !source?.base)
|
|
176
176
|
models.update(providerID, id, (model) => {
|
|
177
177
|
model.variants = [
|
|
178
|
-
...
|
|
178
|
+
...resolve4({
|
|
179
179
|
...model,
|
|
180
180
|
package: model.package ?? models.provider.get(providerID)?.provider.package
|
|
181
181
|
})
|
|
@@ -1,150 +1,150 @@
|
|
|
1
1
|
import {
|
|
2
2
|
_20260127222353_familiar_lady_ursula_default
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-jzg6c2d5.js";
|
|
4
4
|
import {
|
|
5
5
|
_20260211171708_add_project_commands_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-q3sfg36h.js";
|
|
7
7
|
import {
|
|
8
8
|
_20260213144116_wakeful_the_professor_default
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-native-1cnp2v09.js";
|
|
10
10
|
import {
|
|
11
11
|
_20260225215848_workspace_default
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-native-rcb2kzg1.js";
|
|
13
13
|
import {
|
|
14
14
|
_20260227213759_add_session_workspace_id_default
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-native-msx8hqn2.js";
|
|
16
16
|
import {
|
|
17
17
|
_20260228203230_blue_harpoon_default
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-native-bkyjaxrp.js";
|
|
19
19
|
import {
|
|
20
20
|
_20260303231226_add_workspace_fields_default
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./aisdk-native-g86h250q.js";
|
|
22
22
|
import {
|
|
23
23
|
_20260309230000_move_org_to_state_default
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./aisdk-native-jr7sbwjy.js";
|
|
25
25
|
import {
|
|
26
26
|
_20260312043431_session_message_cursor_default
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./aisdk-native-7m9af43g.js";
|
|
28
28
|
import {
|
|
29
29
|
_20260323234822_events_default
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./aisdk-native-j2ntwpah.js";
|
|
31
31
|
import {
|
|
32
32
|
_20260410174513_workspace_name_default
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./aisdk-native-njntx4h6.js";
|
|
34
34
|
import {
|
|
35
35
|
_20260413175956_chief_energizer_default
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./aisdk-native-qrg20bc0.js";
|
|
37
37
|
import {
|
|
38
38
|
_20260423070820_add_icon_url_override_default
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./aisdk-native-z9919s4g.js";
|
|
40
40
|
import {
|
|
41
41
|
_20260427172553_slow_nightmare_default
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./aisdk-native-43n2bw4t.js";
|
|
43
43
|
import {
|
|
44
44
|
_20260428004200_add_session_path_default
|
|
45
|
-
} from "./
|
|
45
|
+
} from "./aisdk-native-n3j8tn72.js";
|
|
46
46
|
import {
|
|
47
47
|
_20260501142318_next_venus_default
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./aisdk-native-d9jj8t3e.js";
|
|
49
49
|
import {
|
|
50
50
|
_20260504145000_add_sync_owner_default
|
|
51
|
-
} from "./
|
|
51
|
+
} from "./aisdk-native-fd410y7t.js";
|
|
52
52
|
import {
|
|
53
53
|
_20260507164347_add_workspace_time_default
|
|
54
|
-
} from "./
|
|
54
|
+
} from "./aisdk-native-e5kj55wp.js";
|
|
55
55
|
import {
|
|
56
56
|
_20260510033149_session_usage_default
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./aisdk-native-f6n9ztr4.js";
|
|
58
58
|
import {
|
|
59
59
|
_20260511000411_data_migration_state_default
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./aisdk-native-q74kybfr.js";
|
|
61
61
|
import {
|
|
62
62
|
_20260511173437_session_metadata_default
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./aisdk-native-53557ph1.js";
|
|
64
64
|
import {
|
|
65
65
|
_20260601010001_normalize_storage_paths_default
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./aisdk-native-7akdwqpd.js";
|
|
67
67
|
import {
|
|
68
68
|
_20260601202201_amazing_prowler_default
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./aisdk-native-wer8tq1h.js";
|
|
70
70
|
import {
|
|
71
71
|
_20260602002951_lowly_union_jack_default
|
|
72
|
-
} from "./
|
|
72
|
+
} from "./aisdk-native-wtztk69x.js";
|
|
73
73
|
import {
|
|
74
74
|
_20260602182828_add_project_directories_default
|
|
75
|
-
} from "./
|
|
75
|
+
} from "./aisdk-native-ssg3fenm.js";
|
|
76
76
|
import {
|
|
77
77
|
_20260603001617_session_message_projection_indexes_default
|
|
78
|
-
} from "./
|
|
78
|
+
} from "./aisdk-native-2c3vjs8z.js";
|
|
79
79
|
import {
|
|
80
80
|
_20260603040000_session_message_projection_order_default
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./aisdk-native-17cy0kzp.js";
|
|
82
82
|
import {
|
|
83
83
|
_20260603141458_session_input_inbox_default
|
|
84
|
-
} from "./
|
|
84
|
+
} from "./aisdk-native-hk9envan.js";
|
|
85
85
|
import {
|
|
86
86
|
_20260603160727_jittery_ezekiel_stane_default
|
|
87
|
-
} from "./
|
|
87
|
+
} from "./aisdk-native-w803qqfp.js";
|
|
88
88
|
import {
|
|
89
89
|
_20260604172448_event_sourced_session_input_default
|
|
90
|
-
} from "./
|
|
90
|
+
} from "./aisdk-native-jwfs4k6c.js";
|
|
91
91
|
import {
|
|
92
92
|
_20260605003541_add_session_context_snapshot_default
|
|
93
|
-
} from "./
|
|
93
|
+
} from "./aisdk-native-mp448xyj.js";
|
|
94
94
|
import {
|
|
95
95
|
_20260605042240_add_context_epoch_agent_default
|
|
96
|
-
} from "./
|
|
96
|
+
} from "./aisdk-native-aqzs7mqg.js";
|
|
97
97
|
import {
|
|
98
98
|
_20260611035744_credential_default
|
|
99
|
-
} from "./
|
|
99
|
+
} from "./aisdk-native-ygaqb7jw.js";
|
|
100
100
|
import {
|
|
101
101
|
_20260611192811_lush_chimera_default
|
|
102
|
-
} from "./
|
|
102
|
+
} from "./aisdk-native-8n3pysct.js";
|
|
103
103
|
import {
|
|
104
104
|
_20260612174303_project_dir_strategy_default
|
|
105
|
-
} from "./
|
|
105
|
+
} from "./aisdk-native-d9fn303g.js";
|
|
106
106
|
import {
|
|
107
107
|
_20260622142730_simplify_session_context_epoch_default
|
|
108
|
-
} from "./
|
|
108
|
+
} from "./aisdk-native-cvy3z8tj.js";
|
|
109
109
|
import {
|
|
110
110
|
_20260622170816_reset_v2_session_state_default
|
|
111
|
-
} from "./
|
|
111
|
+
} from "./aisdk-native-9a4afbnw.js";
|
|
112
112
|
import {
|
|
113
113
|
_20260622202450_simplify_session_input_default
|
|
114
|
-
} from "./
|
|
114
|
+
} from "./aisdk-native-n05xt0ee.js";
|
|
115
115
|
import {
|
|
116
116
|
_20260804233008_loose_psylocke_default
|
|
117
|
-
} from "./
|
|
117
|
+
} from "./aisdk-native-sdp7kfr6.js";
|
|
118
118
|
import {
|
|
119
119
|
_20260805200742_import_legacy_credentials_default
|
|
120
|
-
} from "./
|
|
120
|
+
} from "./aisdk-native-a6k6eb26.js";
|
|
121
121
|
import {
|
|
122
122
|
_20260808023530_workspace_domain_default
|
|
123
|
-
} from "./
|
|
123
|
+
} from "./aisdk-native-4knz6hnm.js";
|
|
124
124
|
import {
|
|
125
125
|
_20260811161259_execution_claim_attempts_default
|
|
126
|
-
} from "./
|
|
126
|
+
} from "./aisdk-native-df08tz66.js";
|
|
127
127
|
import {
|
|
128
128
|
_20260812181746_session_inbox_default
|
|
129
|
-
} from "./
|
|
129
|
+
} from "./aisdk-native-bmr6ed5q.js";
|
|
130
130
|
import {
|
|
131
131
|
_20260812213948_worktree_default
|
|
132
|
-
} from "./
|
|
132
|
+
} from "./aisdk-native-atq7p7m5.js";
|
|
133
133
|
import {
|
|
134
134
|
_20260819222447_session_viewed_state_default
|
|
135
|
-
} from "./
|
|
135
|
+
} from "./aisdk-native-qb87gjwd.js";
|
|
136
136
|
import {
|
|
137
137
|
_20260823191254_nullable_workspace_binding_default
|
|
138
|
-
} from "./
|
|
138
|
+
} from "./aisdk-native-359p4xyc.js";
|
|
139
139
|
import {
|
|
140
140
|
_20260910120000_clear_v1_session_permission_default
|
|
141
|
-
} from "./
|
|
141
|
+
} from "./aisdk-native-y8f7s663.js";
|
|
142
142
|
import {
|
|
143
143
|
_20260923013825_project_time_active_default
|
|
144
|
-
} from "./
|
|
144
|
+
} from "./aisdk-native-8wj87zfr.js";
|
|
145
145
|
import {
|
|
146
146
|
_20261007190000_azure_cli_external_credential_default
|
|
147
|
-
} from "./
|
|
147
|
+
} from "./aisdk-native-84wd9syh.js";
|
|
148
148
|
|
|
149
149
|
// src/database/migration.gen.ts
|
|
150
150
|
var migrations2 = [
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-native-pmpekd2n.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-native-sfcx648x.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./aisdk-native-wxn9ff8g.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-native-07kbpjrq.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-native-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID12,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-native-ayk9hf2m.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
get4
|
|
26
|
+
} from "./aisdk-native-r94pvvab.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/openai.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -47,7 +47,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
47
47
|
}));
|
|
48
48
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
49
49
|
var browser = (app) => ({
|
|
50
|
-
integrationID:
|
|
50
|
+
integrationID: ID13.make("openai"),
|
|
51
51
|
method: {
|
|
52
52
|
id: browserMethodID,
|
|
53
53
|
type: "oauth",
|
|
@@ -120,7 +120,7 @@ function addressInUse(error) {
|
|
|
120
120
|
return "code" in error && error.code === "EADDRINUSE";
|
|
121
121
|
}
|
|
122
122
|
var headless = (app) => ({
|
|
123
|
-
integrationID:
|
|
123
|
+
integrationID: ID13.make("openai"),
|
|
124
124
|
method: {
|
|
125
125
|
id: headlessMethodID,
|
|
126
126
|
type: "oauth",
|
|
@@ -181,7 +181,7 @@ var OpenAIPlugin2 = define({
|
|
|
181
181
|
});
|
|
182
182
|
yield* load();
|
|
183
183
|
yield* ctx.provider.transform((providers) => {
|
|
184
|
-
const item = providers.get(
|
|
184
|
+
const item = providers.get(ID12.openai);
|
|
185
185
|
if (!item)
|
|
186
186
|
return;
|
|
187
187
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -200,7 +200,7 @@ var OpenAIPlugin2 = define({
|
|
|
200
200
|
});
|
|
201
201
|
});
|
|
202
202
|
yield* ctx.model.transform((models) => {
|
|
203
|
-
for (const model of models.list(
|
|
203
|
+
for (const model of models.list(ID12.openai)) {
|
|
204
204
|
models.update(model.providerID, model.id, (draft) => {
|
|
205
205
|
if (!chatgpt)
|
|
206
206
|
return;
|
|
@@ -230,15 +230,15 @@ var OpenAIPlugin2 = define({
|
|
|
230
230
|
return;
|
|
231
231
|
}));
|
|
232
232
|
evt.headers.originator = "opencode";
|
|
233
|
-
evt.headers["session-id"] = session ?
|
|
234
|
-
}), { providerID:
|
|
233
|
+
evt.headers["session-id"] = session ? get4(session) : evt.sessionID;
|
|
234
|
+
}), { providerID: ID12.openai });
|
|
235
235
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
236
236
|
delete evt.options.maxTokens;
|
|
237
237
|
});
|
|
238
238
|
for (const name of ["context", "compaction"])
|
|
239
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
239
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID12.openai });
|
|
240
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
function headers(contentType, app) {
|