@opencode/core 0.0.0-dev-19887 → 0.0.0-dev-19894
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 +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/{variant-5hrxhm7r.js → location-lifecycle-00b8gsc2.js} +32 -32
- package/dist/chunks/{variant-1hc11dc4.js → location-lifecycle-06dxphr1.js} +4 -4
- package/dist/chunks/{variant-27qaaqv4.js → location-lifecycle-06pedn7m.js} +30 -30
- package/dist/chunks/{variant-9cgekm8q.js → location-lifecycle-08cxtdw8.js} +32 -32
- package/dist/chunks/{variant-a6mn06rp.js → location-lifecycle-0b2jrrme.js} +13 -13
- package/dist/chunks/{variant-vvhhcha4.js → location-lifecycle-0ct2ft9s.js} +23 -23
- package/dist/chunks/{variant-9vw53jv9.js → location-lifecycle-0g5kjbpy.js} +33 -33
- package/dist/chunks/{variant-02nrjc1r.js → location-lifecycle-0gdmqesm.js} +8 -8
- package/dist/chunks/{variant-ekqy63t1.js → location-lifecycle-0gz940bd.js} +9 -9
- package/dist/chunks/{variant-9jzp6rtr.js → location-lifecycle-0jq9fyba.js} +9 -9
- package/dist/chunks/{variant-0paq2nw3.js → location-lifecycle-0paq2nw3.js} +1 -1
- package/dist/chunks/{variant-aa6hsmkn.js → location-lifecycle-0pq4d6yy.js} +10 -10
- package/dist/chunks/{variant-0q0f95c6.js → location-lifecycle-0q0f95c6.js} +1 -1
- package/dist/chunks/{variant-mz35w27a.js → location-lifecycle-14a3xf5h.js} +17 -17
- package/dist/chunks/{variant-c73kwvag.js → location-lifecycle-1ah0ee7v.js} +6 -6
- package/dist/chunks/{variant-1dazxqgg.js → location-lifecycle-1dazxqgg.js} +2 -2
- package/dist/chunks/{variant-ehrsfzb1.js → location-lifecycle-1e8jm6ep.js} +20 -20
- package/dist/chunks/{variant-cftckq0s.js → location-lifecycle-1krxbagm.js} +36 -36
- package/dist/chunks/{variant-fqwnfb02.js → location-lifecycle-1m851fz5.js} +15 -15
- package/dist/chunks/{variant-pdbczg48.js → location-lifecycle-1mer2z42.js} +17 -17
- package/dist/chunks/{variant-wq301bav.js → location-lifecycle-1tj20jfk.js} +26 -26
- package/dist/chunks/{variant-tgqfcp4w.js → location-lifecycle-1vmxbjpt.js} +6 -6
- package/dist/chunks/{variant-kkavjeyb.js → location-lifecycle-1w0pc04v.js} +15 -15
- package/dist/chunks/{variant-amg8rfa2.js → location-lifecycle-1zsecf4k.js} +11 -11
- package/dist/chunks/{variant-21r38tys.js → location-lifecycle-21r38tys.js} +1 -1
- package/dist/chunks/{variant-1kzy0zmf.js → location-lifecycle-21r66r60.js} +32 -32
- package/dist/chunks/{variant-2402vzrj.js → location-lifecycle-2402vzrj.js} +1 -1
- package/dist/chunks/{variant-2a5m3afh.js → location-lifecycle-2a5m3afh.js} +1 -1
- package/dist/chunks/{variant-mqp0p4ed.js → location-lifecycle-2axye2ft.js} +3 -3
- package/dist/chunks/{variant-fr6qf1zc.js → location-lifecycle-2c293f3h.js} +8 -8
- package/dist/chunks/{variant-41jardw5.js → location-lifecycle-2cfefjf7.js} +42 -42
- package/dist/chunks/{variant-28mf290z.js → location-lifecycle-2cmdkyhw.js} +3 -3
- package/dist/chunks/{variant-qgn6gcr1.js → location-lifecycle-2k8khapm.js} +5 -5
- package/dist/chunks/{variant-yqtmxgrc.js → location-lifecycle-2q3ccgdz.js} +22 -22
- package/dist/chunks/{variant-mx58xnyt.js → location-lifecycle-2r3zh37g.js} +9 -9
- package/dist/chunks/{variant-mzsct20j.js → location-lifecycle-2w3b2ebc.js} +7 -7
- package/dist/chunks/{variant-x62bxqam.js → location-lifecycle-2w7gr4k3.js} +24 -24
- package/dist/chunks/{variant-b552dcrd.js → location-lifecycle-318dhbth.js} +18 -18
- package/dist/chunks/{variant-cpy6gm2a.js → location-lifecycle-35agz59w.js} +6 -6
- package/dist/chunks/{variant-v30pefx0.js → location-lifecycle-36b1949e.js} +13 -13
- package/dist/chunks/{variant-c78bbtc9.js → location-lifecycle-3cfzdc8e.js} +5 -5
- package/dist/chunks/{variant-097skfh9.js → location-lifecycle-3cq1aq8e.js} +11 -11
- package/dist/chunks/{variant-3fc6dm20.js → location-lifecycle-3fc6dm20.js} +1 -1
- package/dist/chunks/{variant-qwkytnft.js → location-lifecycle-3fn9vj2a.js} +6 -6
- package/dist/chunks/{variant-9m0akj9h.js → location-lifecycle-3gybahgz.js} +17 -17
- package/dist/chunks/{variant-3hepkmqq.js → location-lifecycle-3hepkmqq.js} +1 -1
- package/dist/chunks/{variant-m9rt4wgq.js → location-lifecycle-3qkj39pp.js} +6 -6
- package/dist/chunks/{variant-3smtnn6g.js → location-lifecycle-3smtnn6g.js} +1 -1
- package/dist/chunks/{variant-3tvqynh2.js → location-lifecycle-3tvqynh2.js} +1 -1
- package/dist/chunks/{variant-yzx8t958.js → location-lifecycle-3vfjkkqt.js} +4 -4
- package/dist/chunks/{variant-ms2v0qr0.js → location-lifecycle-3ykewcag.js} +20 -20
- package/dist/chunks/{variant-8ank75fn.js → location-lifecycle-428ep8fh.js} +8 -8
- package/dist/chunks/{variant-j6g6334x.js → location-lifecycle-4efcx757.js} +11 -11
- package/dist/chunks/{variant-w4axh9wz.js → location-lifecycle-4ns3h2re.js} +4 -4
- package/dist/chunks/{variant-a3dggatn.js → location-lifecycle-4rapdxbm.js} +8 -8
- package/dist/chunks/{variant-1hr2mhh3.js → location-lifecycle-4vn8gs9z.js} +10 -10
- package/dist/chunks/location-lifecycle-4x0xy3ak.js +492 -0
- package/dist/chunks/{variant-mfqp6xfm.js → location-lifecycle-56gdpj1q.js} +6 -6
- package/dist/chunks/{variant-x3aw69dw.js → location-lifecycle-58jf2b5n.js} +24 -24
- package/dist/chunks/{variant-jb9mn43j.js → location-lifecycle-5cgvgbkt.js} +19 -19
- package/dist/chunks/{variant-5daktx2q.js → location-lifecycle-5daktx2q.js} +1 -1
- package/dist/chunks/{variant-kpzqpbrb.js → location-lifecycle-5feghaxz.js} +39 -39
- package/dist/chunks/{variant-cpj0znwe.js → location-lifecycle-5mtzsd3b.js} +4 -4
- package/dist/chunks/{variant-9vfjrq5h.js → location-lifecycle-5n6s9hm6.js} +10 -10
- package/dist/chunks/{variant-cfaphf43.js → location-lifecycle-5s2p338g.js} +5 -5
- package/dist/chunks/{variant-5t3nmthw.js → location-lifecycle-5t3nmthw.js} +2 -2
- package/dist/chunks/{variant-sr4j9exx.js → location-lifecycle-5vcjqd34.js} +13 -13
- package/dist/chunks/{variant-xy0kj34c.js → location-lifecycle-5ygjede2.js} +8 -8
- package/dist/chunks/{variant-t36nynp6.js → location-lifecycle-600vrq00.js} +21 -21
- package/dist/chunks/{variant-yz0zb41s.js → location-lifecycle-62qat4sn.js} +4 -4
- package/dist/chunks/{variant-669tq793.js → location-lifecycle-669tq793.js} +1 -1
- package/dist/chunks/{variant-62y7kwp4.js → location-lifecycle-66baz8ka.js} +9 -9
- package/dist/chunks/{variant-v4ke4x03.js → location-lifecycle-6eyfberv.js} +24 -24
- package/dist/chunks/{variant-5v7tkgjc.js → location-lifecycle-6g52q5q2.js} +6 -6
- package/dist/chunks/{variant-g8d3gcyj.js → location-lifecycle-6hh8tjw2.js} +7 -7
- package/dist/chunks/{variant-6msgmcgs.js → location-lifecycle-6msgmcgs.js} +1 -1
- package/dist/chunks/{variant-jtazzn7t.js → location-lifecycle-6q7a50ek.js} +12 -12
- package/dist/chunks/{variant-48wt5vck.js → location-lifecycle-76782hfa.js} +11 -11
- package/dist/chunks/{variant-7bmhse3q.js → location-lifecycle-7bmhse3q.js} +1 -1
- package/dist/chunks/{variant-rnjj76x0.js → location-lifecycle-7dseyta3.js} +29 -29
- package/dist/chunks/{variant-39bnkv12.js → location-lifecycle-7hvhjnef.js} +20 -20
- package/dist/chunks/{variant-5sm13ap8.js → location-lifecycle-7j8v41s3.js} +38 -38
- package/dist/chunks/{variant-90cg2g8q.js → location-lifecycle-7t48jg8f.js} +3 -3
- package/dist/chunks/{variant-k6eqzays.js → location-lifecycle-89s9kgby.js} +18 -18
- package/dist/chunks/{variant-tcezcvh9.js → location-lifecycle-89znhe33.js} +4 -4
- package/dist/chunks/{variant-kq76qga6.js → location-lifecycle-8cptxgqr.js} +8 -8
- package/dist/chunks/{variant-ffe81100.js → location-lifecycle-8d6xnbxe.js} +7 -7
- package/dist/chunks/{variant-8d7r5vzw.js → location-lifecycle-8d7r5vzw.js} +1 -1
- package/dist/chunks/{variant-516vmk6c.js → location-lifecycle-8kb38tbd.js} +24 -24
- package/dist/chunks/{variant-fka5stg3.js → location-lifecycle-8m81rpck.js} +26 -26
- package/dist/chunks/{variant-15nepkqg.js → location-lifecycle-8n69n882.js} +8 -8
- package/dist/chunks/{variant-k3kfa9gp.js → location-lifecycle-8n7ya8jg.js} +3 -3
- package/dist/chunks/{variant-nad2v9ex.js → location-lifecycle-8nfn27r0.js} +23 -23
- package/dist/chunks/{variant-8p4f9s12.js → location-lifecycle-8p4f9s12.js} +2 -2
- package/dist/chunks/{variant-tfsfntr4.js → location-lifecycle-8t7cv3nq.js} +17 -17
- package/dist/chunks/{variant-swskkvne.js → location-lifecycle-92ayrrn7.js} +16 -16
- package/dist/chunks/{variant-gg31f38h.js → location-lifecycle-92r5vq45.js} +184 -184
- package/dist/chunks/{variant-xg9t41r3.js → location-lifecycle-96rw58h8.js} +2 -2
- package/dist/chunks/{variant-0gz9grtj.js → location-lifecycle-9a30k7dn.js} +11 -11
- package/dist/chunks/{variant-9r15s34d.js → location-lifecycle-9ae44cfy.js} +6 -6
- package/dist/chunks/{variant-915gmmzb.js → location-lifecycle-9cy2qm6f.js} +9 -9
- package/dist/chunks/{variant-8eg5n7pr.js → location-lifecycle-9gew6ke4.js} +3 -3
- package/dist/chunks/{variant-6skrka6j.js → location-lifecycle-9vjfyag7.js} +19 -19
- package/dist/chunks/location-lifecycle-9x5t835t.js +252 -0
- package/dist/chunks/{variant-g3dn61zq.js → location-lifecycle-9xrddee8.js} +17 -17
- package/dist/chunks/{variant-a1bz86dw.js → location-lifecycle-a1bz86dw.js} +3 -3
- package/dist/chunks/{variant-z4n4vdj7.js → location-lifecycle-a79avww4.js} +30 -30
- package/dist/chunks/{variant-xdrba4jw.js → location-lifecycle-a881zpfh.js} +9 -9
- package/dist/chunks/{variant-aaet6srn.js → location-lifecycle-aaet6srn.js} +2 -2
- package/dist/chunks/{variant-t6zx2q9y.js → location-lifecycle-ag38rq08.js} +17 -17
- package/dist/chunks/{variant-4qd323fw.js → location-lifecycle-agdtkq8n.js} +23 -23
- package/dist/chunks/{variant-s0nvp0g4.js → location-lifecycle-aght5zda.js} +87 -87
- package/dist/chunks/{variant-e6qgb6k4.js → location-lifecycle-ah45zszs.js} +41 -41
- package/dist/chunks/{variant-jsxtg3j8.js → location-lifecycle-aj2gph7f.js} +40 -40
- package/dist/chunks/{variant-htdv981f.js → location-lifecycle-aja1kpp3.js} +14 -14
- package/dist/chunks/{variant-ayn9mra6.js → location-lifecycle-ajcqkwnf.js} +10 -10
- package/dist/chunks/{variant-81swgkk7.js → location-lifecycle-atcatw0c.js} +9 -9
- package/dist/chunks/{variant-brn88sfy.js → location-lifecycle-atmhrajx.js} +15 -15
- package/dist/chunks/{variant-1gd24jtv.js → location-lifecycle-azbd23ze.js} +11 -11
- package/dist/chunks/{variant-t54f161w.js → location-lifecycle-b3td3swv.js} +1 -1
- package/dist/chunks/{variant-b6gygkdw.js → location-lifecycle-b6gygkdw.js} +2 -2
- package/dist/chunks/{variant-150yg2gd.js → location-lifecycle-b7b4ctej.js} +5 -5
- package/dist/chunks/{variant-1t1pnz9z.js → location-lifecycle-b7skvr2w.js} +12 -12
- package/dist/chunks/{variant-9dd9xg2p.js → location-lifecycle-bcsq46nn.js} +20 -20
- package/dist/chunks/{variant-h5wsamaq.js → location-lifecycle-begp2na7.js} +20 -20
- package/dist/chunks/{variant-1gd09dgh.js → location-lifecycle-bfwjxbj5.js} +26 -26
- package/dist/chunks/{variant-0x8f21sw.js → location-lifecycle-bjc8ma1j.js} +17 -17
- package/dist/chunks/{variant-mr2zf1rc.js → location-lifecycle-bneryqg7.js} +8 -8
- package/dist/chunks/{variant-hnx7q02n.js → location-lifecycle-bwz7508e.js} +15 -15
- package/dist/chunks/{variant-2jz473v5.js → location-lifecycle-bz85s9hh.js} +1 -1
- package/dist/chunks/{variant-a3gwct9m.js → location-lifecycle-c8kta4n6.js} +15 -15
- package/dist/chunks/{variant-cfpkc3c9.js → location-lifecycle-cfpkc3c9.js} +2 -2
- package/dist/chunks/{variant-93dczpz5.js → location-lifecycle-ch9rpgww.js} +11 -11
- package/dist/chunks/{variant-c765mh8b.js → location-lifecycle-cpneeje0.js} +8 -8
- package/dist/chunks/{variant-pfjwdz76.js → location-lifecycle-crahewxf.js} +7 -7
- package/dist/chunks/{variant-rzfvqdtr.js → location-lifecycle-cygrf01w.js} +32 -32
- package/dist/chunks/{variant-6a52w1rv.js → location-lifecycle-d24axzz0.js} +7 -7
- package/dist/chunks/{variant-c8mrws9h.js → location-lifecycle-d2sxwqa1.js} +11 -11
- package/dist/chunks/{variant-q10etjjv.js → location-lifecycle-d6w1d759.js} +5 -5
- package/dist/chunks/{variant-9g8a7bky.js → location-lifecycle-dhc7fjat.js} +18 -18
- package/dist/chunks/{variant-z8jac80z.js → location-lifecycle-dqdee38h.js} +22 -22
- package/dist/chunks/{variant-57b9ws8p.js → location-lifecycle-drwq78ky.js} +5 -5
- package/dist/chunks/{variant-qhcyyzn5.js → location-lifecycle-dv1b5hnc.js} +4 -4
- package/dist/chunks/{variant-ehewexsg.js → location-lifecycle-dx7cz548.js} +11 -11
- package/dist/chunks/{variant-ycs2q99w.js → location-lifecycle-e4gx0yxa.js} +27 -27
- package/dist/chunks/{variant-cpa7r820.js → location-lifecycle-e5kr9kgh.js} +8 -8
- package/dist/chunks/{variant-dvsy15m8.js → location-lifecycle-eb9hbpar.js} +20 -20
- package/dist/chunks/{variant-7f3ctpdg.js → location-lifecycle-ees997fz.js} +20 -20
- package/dist/chunks/{variant-ef5x83kb.js → location-lifecycle-ef5x83kb.js} +1 -1
- package/dist/chunks/{variant-07dehahr.js → location-lifecycle-ejnxb373.js} +47 -47
- package/dist/chunks/{variant-27d62n88.js → location-lifecycle-em2jr9mj.js} +13 -13
- package/dist/chunks/{variant-erw5rpbs.js → location-lifecycle-erw5rpbs.js} +2 -2
- package/dist/chunks/{variant-94q2vb6w.js → location-lifecycle-es6ymm0f.js} +9 -9
- package/dist/chunks/{variant-dy8yawtr.js → location-lifecycle-etn8yy9q.js} +55 -55
- package/dist/chunks/{variant-etq0c3wd.js → location-lifecycle-etq0c3wd.js} +1 -1
- package/dist/chunks/{variant-xbzbcj9a.js → location-lifecycle-f3r43bhh.js} +4 -4
- package/dist/chunks/{variant-f828m53h.js → location-lifecycle-f828m53h.js} +2 -2
- package/dist/chunks/{variant-7qvbcjd2.js → location-lifecycle-fbpmdm9b.js} +24 -24
- package/dist/chunks/{variant-cx02vxsr.js → location-lifecycle-fdd9a936.js} +5 -5
- package/dist/chunks/{variant-k8fevvw5.js → location-lifecycle-fddp59hc.js} +22 -22
- package/dist/chunks/{variant-cg8ytmw3.js → location-lifecycle-fde1cms4.js} +9 -9
- package/dist/chunks/{variant-xfdrc2qg.js → location-lifecycle-fkjmw100.js} +8 -8
- package/dist/chunks/{variant-g9k4x51g.js → location-lifecycle-frvteen9.js} +15 -15
- package/dist/chunks/{variant-gb29kbhr.js → location-lifecycle-ftp936sg.js} +13 -13
- package/dist/chunks/{variant-3pkp6ed2.js → location-lifecycle-fvzswx9a.js} +6 -6
- package/dist/chunks/{variant-fxbjtjnd.js → location-lifecycle-fxbjtjnd.js} +1 -1
- package/dist/chunks/{variant-cmwkp3r5.js → location-lifecycle-g0445xdp.js} +4 -4
- package/dist/chunks/{variant-epcvb57q.js → location-lifecycle-g3xf870q.js} +84 -84
- package/dist/chunks/{variant-20d59fy3.js → location-lifecycle-gd0h8cq1.js} +28 -28
- package/dist/chunks/{variant-gd4qta3r.js → location-lifecycle-gd4qta3r.js} +1 -1
- package/dist/chunks/{variant-y6dnbhqf.js → location-lifecycle-gg245rpa.js} +39 -39
- package/dist/chunks/{variant-vg2pwr63.js → location-lifecycle-gg7mxwnh.js} +25 -25
- package/dist/chunks/{variant-vf1cc59j.js → location-lifecycle-ggs1y8br.js} +31 -31
- package/dist/chunks/{variant-1fv74gqc.js → location-lifecycle-gs88pkvr.js} +6 -6
- package/dist/chunks/{variant-gv6a8nnw.js → location-lifecycle-gv6a8nnw.js} +2 -2
- package/dist/chunks/{variant-jap74bcr.js → location-lifecycle-h040sa7w.js} +22 -22
- package/dist/chunks/{variant-bxqmztkz.js → location-lifecycle-h2h79dva.js} +16 -16
- package/dist/chunks/{variant-8wxt10s7.js → location-lifecycle-h36cdnfm.js} +12 -12
- package/dist/chunks/{variant-zj09a0ew.js → location-lifecycle-h6jr292a.js} +4 -4
- package/dist/chunks/{variant-h6vf3j39.js → location-lifecycle-h6vf3j39.js} +1 -1
- package/dist/chunks/{variant-j4sd9pby.js → location-lifecycle-hb1m031k.js} +37 -37
- package/dist/chunks/{variant-hs5kqjts.js → location-lifecycle-hh5sdbys.js} +5 -5
- package/dist/chunks/{variant-b7p55gh1.js → location-lifecycle-hk6farcs.js} +4 -4
- package/dist/chunks/{variant-572jzhdq.js → location-lifecycle-hmpcbkgd.js} +70 -70
- package/dist/chunks/location-lifecycle-ht5y0zrb.js +18 -0
- package/dist/chunks/{variant-x9mtwtp0.js → location-lifecycle-hwvyndb6.js} +4 -4
- package/dist/chunks/{variant-j56e64zr.js → location-lifecycle-j56e64zr.js} +1 -1
- package/dist/chunks/{variant-xf4yhzac.js → location-lifecycle-jc1e48xp.js} +26 -26
- package/dist/chunks/{variant-tfzngn12.js → location-lifecycle-jewzahs7.js} +4 -4
- package/dist/chunks/location-lifecycle-jqaz7hb4.js +26 -0
- package/dist/chunks/{variant-tkfgnrzv.js → location-lifecycle-jtexvcen.js} +23 -23
- package/dist/chunks/{variant-c3t2bp3a.js → location-lifecycle-jz8czyh7.js} +21 -21
- package/dist/chunks/{variant-sbnsh8k5.js → location-lifecycle-k0gdq8ga.js} +8 -8
- package/dist/chunks/{variant-88405f1d.js → location-lifecycle-k2nq7ztr.js} +11 -11
- package/dist/chunks/{variant-v0aj06hd.js → location-lifecycle-k9bmr3a1.js} +20 -20
- package/dist/chunks/{variant-hj7e2epa.js → location-lifecycle-kd541efj.js} +16 -16
- package/dist/chunks/{variant-dvqvac0p.js → location-lifecycle-kq8bx7xq.js} +38 -38
- package/dist/chunks/{variant-m3fdjcah.js → location-lifecycle-m3fdjcah.js} +1 -1
- package/dist/chunks/{variant-8pccpkv9.js → location-lifecycle-m549exyf.js} +12 -12
- package/dist/chunks/{variant-9wzaqa2h.js → location-lifecycle-m6q5faa9.js} +11 -11
- package/dist/chunks/{variant-m9w0rfyh.js → location-lifecycle-m9w0rfyh.js} +1 -1
- package/dist/chunks/{variant-6ztqgmqc.js → location-lifecycle-mh5cgvr5.js} +32 -32
- package/dist/chunks/{variant-ttyd8st6.js → location-lifecycle-mqdmt1va.js} +5 -5
- package/dist/chunks/{variant-43epg6g5.js → location-lifecycle-mtjt07v8.js} +11 -11
- package/dist/chunks/{variant-mhkvc446.js → location-lifecycle-mvfsc1pv.js} +3 -3
- package/dist/chunks/{variant-085d9kjp.js → location-lifecycle-nfyg7my7.js} +6 -6
- package/dist/chunks/{variant-m145exmz.js → location-lifecycle-nxw9x78p.js} +11 -11
- package/dist/chunks/{variant-nzks3jc8.js → location-lifecycle-nzks3jc8.js} +3 -3
- package/dist/chunks/{variant-x8reb4st.js → location-lifecycle-p0bbwx7d.js} +17 -17
- package/dist/chunks/{variant-j7wq2tw5.js → location-lifecycle-pb07aktf.js} +3 -3
- package/dist/chunks/{variant-d0x602ma.js → location-lifecycle-pbv0yjjw.js} +11 -11
- package/dist/chunks/{variant-d212tg40.js → location-lifecycle-pgsazkxm.js} +5 -5
- package/dist/chunks/{variant-pjvnvgmy.js → location-lifecycle-pjvnvgmy.js} +1 -1
- package/dist/chunks/{variant-pknna89w.js → location-lifecycle-pknna89w.js} +1 -1
- package/dist/chunks/{variant-kpc0mqwz.js → location-lifecycle-pr20cmdv.js} +14 -14
- package/dist/chunks/{variant-2y34zzjz.js → location-lifecycle-q5nw5m1n.js} +6 -6
- package/dist/chunks/location-lifecycle-qapv375x.js +4 -0
- package/dist/chunks/{variant-5w4ft1qc.js → location-lifecycle-qbd2ms54.js} +30 -30
- package/dist/chunks/{variant-jw80jp6b.js → location-lifecycle-qj8eh1ht.js} +4 -4
- package/dist/chunks/{variant-94yyaa2b.js → location-lifecycle-qmxwecnf.js} +12 -12
- package/dist/chunks/{variant-jdjqvkac.js → location-lifecycle-qnz5ymak.js} +25 -25
- package/dist/chunks/{variant-qsdy395h.js → location-lifecycle-qsdy395h.js} +1 -1
- package/dist/chunks/{variant-ecmqvc26.js → location-lifecycle-qwyffd8f.js} +10 -10
- package/dist/chunks/{variant-3cc71383.js → location-lifecycle-qxhyk1pg.js} +26 -26
- package/dist/chunks/{variant-rdw6cm16.js → location-lifecycle-rdw6cm16.js} +1 -1
- package/dist/chunks/{variant-3g2czk59.js → location-lifecycle-rk5jd2b3.js} +28 -28
- package/dist/chunks/{variant-jdwv10rw.js → location-lifecycle-sa53s2va.js} +8 -8
- package/dist/chunks/{variant-f5pacdp8.js → location-lifecycle-sc1q6wgr.js} +4 -4
- package/dist/chunks/{variant-jgv4nkbw.js → location-lifecycle-sgvsg5c7.js} +20 -20
- package/dist/chunks/{variant-mtmgf2mp.js → location-lifecycle-snq071ae.js} +3 -3
- package/dist/chunks/{variant-93c7gg90.js → location-lifecycle-sntz0pcz.js} +54 -54
- package/dist/chunks/{variant-66cq7m8j.js → location-lifecycle-ssdf6eb6.js} +17 -17
- package/dist/chunks/{variant-ttqh24zm.js → location-lifecycle-t2az9yje.js} +4 -4
- package/dist/chunks/{variant-jsghq5te.js → location-lifecycle-t7ac428t.js} +11 -11
- package/dist/chunks/{variant-00z3vp5f.js → location-lifecycle-t9zs3egg.js} +4 -4
- package/dist/chunks/{variant-f4cxmw91.js → location-lifecycle-taw5yzha.js} +7 -7
- package/dist/chunks/{variant-tazgh4e4.js → location-lifecycle-tazgh4e4.js} +1 -1
- package/dist/chunks/{variant-p28j5sbe.js → location-lifecycle-tbz0fdvh.js} +5 -5
- package/dist/chunks/{variant-tdstcens.js → location-lifecycle-tdstcens.js} +1 -1
- package/dist/chunks/{variant-31vzqgg6.js → location-lifecycle-ttjk2wdc.js} +18 -18
- package/dist/chunks/{variant-tvtrv512.js → location-lifecycle-tvtrv512.js} +1 -1
- package/dist/chunks/{variant-6dtxgrp9.js → location-lifecycle-tzbte7z6.js} +9 -9
- package/dist/chunks/{variant-4mszv00j.js → location-lifecycle-v52rr7b3.js} +32 -32
- package/dist/chunks/{variant-jdng17b1.js → location-lifecycle-vdtc3ka7.js} +37 -37
- package/dist/chunks/{variant-veqvce7d.js → location-lifecycle-veqvce7d.js} +1 -1
- package/dist/chunks/{variant-fxqygnfa.js → location-lifecycle-vkxpz7g2.js} +4 -4
- package/dist/chunks/{variant-3mvav4ey.js → location-lifecycle-vs79q017.js} +43 -43
- package/dist/chunks/{variant-vzcthcp8.js → location-lifecycle-vzcthcp8.js} +1 -1
- package/dist/chunks/{variant-w3wsvvr9.js → location-lifecycle-w3wsvvr9.js} +1 -1
- package/dist/chunks/{variant-6jd4s47c.js → location-lifecycle-w9kyydez.js} +50 -50
- package/dist/chunks/{variant-yjptyezs.js → location-lifecycle-wbkyxrgf.js} +5 -5
- package/dist/chunks/{variant-wd87259q.js → location-lifecycle-wd87259q.js} +1 -1
- package/dist/chunks/{variant-x1ezjp6w.js → location-lifecycle-x1ezjp6w.js} +1 -1
- package/dist/chunks/{variant-r80zjrs5.js → location-lifecycle-x27mk1f7.js} +2 -2
- package/dist/chunks/{variant-etkqpky2.js → location-lifecycle-xdc3mw17.js} +25 -25
- package/dist/chunks/{variant-8svftxcg.js → location-lifecycle-xgw5arqg.js} +38 -38
- package/dist/chunks/{variant-qg0jgkcp.js → location-lifecycle-xk747vep.js} +9 -9
- package/dist/chunks/{variant-a1nrrezy.js → location-lifecycle-xnftke6g.js} +44 -44
- package/dist/chunks/{variant-sh8m3jxd.js → location-lifecycle-xse2s150.js} +32 -32
- package/dist/chunks/{variant-6tt6f4cv.js → location-lifecycle-xz20991e.js} +5 -5
- package/dist/chunks/{variant-y1fvbwt7.js → location-lifecycle-y1fvbwt7.js} +1 -1
- package/dist/chunks/{variant-y71avatq.js → location-lifecycle-y71avatq.js} +1 -1
- package/dist/chunks/{variant-64gzdevb.js → location-lifecycle-yc7a5kvr.js} +42 -42
- package/dist/chunks/{variant-1acjjqhc.js → location-lifecycle-yp2x3t23.js} +4 -4
- package/dist/chunks/{variant-yrhqyw5v.js → location-lifecycle-yrhqyw5v.js} +1 -1
- package/dist/chunks/location-lifecycle-yrsab33h.js +65 -0
- package/dist/chunks/{variant-yrznvahk.js → location-lifecycle-yrznvahk.js} +2 -2
- package/dist/chunks/{variant-hkfg6fzm.js → location-lifecycle-yt0fqk68.js} +5 -5
- package/dist/chunks/{variant-nrg4g80p.js → location-lifecycle-z07d95xm.js} +8 -8
- package/dist/chunks/{variant-9rfbr6hz.js → location-lifecycle-z0868ay8.js} +10 -10
- package/dist/chunks/{variant-z0bkrqjs.js → location-lifecycle-z0bkrqjs.js} +1 -1
- package/dist/chunks/{variant-s857ash9.js → location-lifecycle-z2qbjhyn.js} +5 -5
- package/dist/chunks/{variant-z63w68vq.js → location-lifecycle-z63w68vq.js} +2 -2
- package/dist/chunks/{variant-zeh9ct20.js → location-lifecycle-zeh9ct20.js} +2 -2
- package/dist/chunks/{variant-yg6nt6v4.js → location-lifecycle-zex37ywk.js} +5 -5
- package/dist/chunks/{variant-278hf439.js → location-lifecycle-zjbv19xv.js} +1 -1
- package/dist/chunks/{variant-khnj79zv.js → location-lifecycle-zm4vrf7k.js} +3 -3
- package/dist/chunks/{variant-p8cqx264.js → location-lifecycle-zmv6dkz3.js} +7 -7
- package/dist/chunks/{variant-zr2ceqn5.js → location-lifecycle-zr2ceqn5.js} +1 -1
- package/dist/chunks/{variant-0wjn3002.js → location-lifecycle-zvfsx9q6.js} +4 -4
- package/dist/chunks/{variant-zxq2ej10.js → location-lifecycle-zxq2ej10.js} +1 -1
- package/dist/chunks/{variant-eeycyz4a.js → location-lifecycle-zysgr26p.js} +19 -19
- package/dist/chunks/{variant-rx7r49gh.js → location-lifecycle-zz4e6p7j.js} +12 -12
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +124 -124
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +120 -120
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +141 -141
- package/dist/config/plugin/snapshot.js +120 -120
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +92 -92
- 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 +69 -69
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +4 -4
- package/dist/filesystem/location-watcher.js +226 -226
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +107 -107
- package/dist/form.js +85 -85
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +102 -102
- 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 +90 -90
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -356
- package/dist/location.js +88 -88
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +99 -99
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -112
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +85 -85
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/compaction.js +130 -130
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +119 -119
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +119 -119
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +87 -87
- package/dist/provider.js +100 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +86 -86
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +78 -78
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -220
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +74 -74
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +83 -83
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +216 -216
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +90 -90
- 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 +126 -126
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- 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 +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +77 -77
- 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 +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/variant-0mesazry.js +0 -4
- package/dist/chunks/variant-313b5xwg.js +0 -26
- package/dist/chunks/variant-4v7qdvcn.js +0 -18
- package/dist/chunks/variant-7p374f9a.js +0 -65
- package/dist/chunks/variant-t8sg433j.js +0 -252
- package/dist/chunks/variant-zs17qpra.js +0 -492
- /package/dist/chunks/{variant-0qkdqm5v.js → location-lifecycle-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{variant-0zkw76rk.js → location-lifecycle-0zkw76rk.js} +0 -0
- /package/dist/chunks/{variant-17cy0kzp.js → location-lifecycle-17cy0kzp.js} +0 -0
- /package/dist/chunks/{variant-1cnp2v09.js → location-lifecycle-1cnp2v09.js} +0 -0
- /package/dist/chunks/{variant-1kg9ymc8.js → location-lifecycle-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{variant-24dcb14g.js → location-lifecycle-24dcb14g.js} +0 -0
- /package/dist/chunks/{variant-2710q6r3.js → location-lifecycle-2710q6r3.js} +0 -0
- /package/dist/chunks/{variant-2axfhc9x.js → location-lifecycle-2axfhc9x.js} +0 -0
- /package/dist/chunks/{variant-2c3vjs8z.js → location-lifecycle-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{variant-359p4xyc.js → location-lifecycle-359p4xyc.js} +0 -0
- /package/dist/chunks/{variant-3asan66x.js → location-lifecycle-3asan66x.js} +0 -0
- /package/dist/chunks/{variant-3v8g72cx.js → location-lifecycle-3v8g72cx.js} +0 -0
- /package/dist/chunks/{variant-3w5fmr99.js → location-lifecycle-3w5fmr99.js} +0 -0
- /package/dist/chunks/{variant-3wcehsnq.js → location-lifecycle-3wcehsnq.js} +0 -0
- /package/dist/chunks/{variant-43n2bw4t.js → location-lifecycle-43n2bw4t.js} +0 -0
- /package/dist/chunks/{variant-4knz6hnm.js → location-lifecycle-4knz6hnm.js} +0 -0
- /package/dist/chunks/{variant-4vcrnpx2.js → location-lifecycle-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{variant-4y7fprxs.js → location-lifecycle-4y7fprxs.js} +0 -0
- /package/dist/chunks/{variant-53557ph1.js → location-lifecycle-53557ph1.js} +0 -0
- /package/dist/chunks/{variant-550bvhaj.js → location-lifecycle-550bvhaj.js} +0 -0
- /package/dist/chunks/{variant-5qd3pb7m.js → location-lifecycle-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{variant-6prwharc.js → location-lifecycle-6prwharc.js} +0 -0
- /package/dist/chunks/{variant-7akdwqpd.js → location-lifecycle-7akdwqpd.js} +0 -0
- /package/dist/chunks/{variant-7m9af43g.js → location-lifecycle-7m9af43g.js} +0 -0
- /package/dist/chunks/{variant-822emrt2.js → location-lifecycle-822emrt2.js} +0 -0
- /package/dist/chunks/{variant-88xbtdfr.js → location-lifecycle-88xbtdfr.js} +0 -0
- /package/dist/chunks/{variant-8n3pysct.js → location-lifecycle-8n3pysct.js} +0 -0
- /package/dist/chunks/{variant-922hggd3.js → location-lifecycle-922hggd3.js} +0 -0
- /package/dist/chunks/{variant-9a4afbnw.js → location-lifecycle-9a4afbnw.js} +0 -0
- /package/dist/chunks/{variant-9rqn6x4v.js → location-lifecycle-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{variant-a6k6eb26.js → location-lifecycle-a6k6eb26.js} +0 -0
- /package/dist/chunks/{variant-af5trqkr.js → location-lifecycle-af5trqkr.js} +0 -0
- /package/dist/chunks/{variant-afrmfg78.js → location-lifecycle-afrmfg78.js} +0 -0
- /package/dist/chunks/{variant-aqzs7mqg.js → location-lifecycle-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{variant-atq7p7m5.js → location-lifecycle-atq7p7m5.js} +0 -0
- /package/dist/chunks/{variant-bkyjaxrp.js → location-lifecycle-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{variant-bmr6ed5q.js → location-lifecycle-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{variant-cf4snx6d.js → location-lifecycle-cf4snx6d.js} +0 -0
- /package/dist/chunks/{variant-cvy3z8tj.js → location-lifecycle-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{variant-d9fn303g.js → location-lifecycle-d9fn303g.js} +0 -0
- /package/dist/chunks/{variant-d9jj8t3e.js → location-lifecycle-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{variant-dajrwvna.js → location-lifecycle-dajrwvna.js} +0 -0
- /package/dist/chunks/{variant-dap0rakb.js → location-lifecycle-dap0rakb.js} +0 -0
- /package/dist/chunks/{variant-df08tz66.js → location-lifecycle-df08tz66.js} +0 -0
- /package/dist/chunks/{variant-dy18nga0.js → location-lifecycle-dy18nga0.js} +0 -0
- /package/dist/chunks/{variant-e5kj55wp.js → location-lifecycle-e5kj55wp.js} +0 -0
- /package/dist/chunks/{variant-e73j6tqm.js → location-lifecycle-e73j6tqm.js} +0 -0
- /package/dist/chunks/{variant-ec1grn59.js → location-lifecycle-ec1grn59.js} +0 -0
- /package/dist/chunks/{variant-eh3zwz77.js → location-lifecycle-eh3zwz77.js} +0 -0
- /package/dist/chunks/{variant-emrn6kk6.js → location-lifecycle-emrn6kk6.js} +0 -0
- /package/dist/chunks/{variant-f0mxakyp.js → location-lifecycle-f0mxakyp.js} +0 -0
- /package/dist/chunks/{variant-f6n9ztr4.js → location-lifecycle-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{variant-faypxj3z.js → location-lifecycle-faypxj3z.js} +0 -0
- /package/dist/chunks/{variant-fd410y7t.js → location-lifecycle-fd410y7t.js} +0 -0
- /package/dist/chunks/{variant-fxgpk5d8.js → location-lifecycle-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{variant-g4wezp1m.js → location-lifecycle-g4wezp1m.js} +0 -0
- /package/dist/chunks/{variant-g86h250q.js → location-lifecycle-g86h250q.js} +0 -0
- /package/dist/chunks/{variant-gebd4c9n.js → location-lifecycle-gebd4c9n.js} +0 -0
- /package/dist/chunks/{variant-gftt206x.js → location-lifecycle-gftt206x.js} +0 -0
- /package/dist/chunks/{variant-hjbc5kem.js → location-lifecycle-hjbc5kem.js} +0 -0
- /package/dist/chunks/{variant-hk9envan.js → location-lifecycle-hk9envan.js} +0 -0
- /package/dist/chunks/{variant-j2ntwpah.js → location-lifecycle-j2ntwpah.js} +0 -0
- /package/dist/chunks/{variant-j5zkgpj8.js → location-lifecycle-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{variant-jjkms2e6.js → location-lifecycle-jjkms2e6.js} +0 -0
- /package/dist/chunks/{variant-jr7sbwjy.js → location-lifecycle-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{variant-jwfs4k6c.js → location-lifecycle-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{variant-jzg6c2d5.js → location-lifecycle-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{variant-mp448xyj.js → location-lifecycle-mp448xyj.js} +0 -0
- /package/dist/chunks/{variant-msx8hqn2.js → location-lifecycle-msx8hqn2.js} +0 -0
- /package/dist/chunks/{variant-n05xt0ee.js → location-lifecycle-n05xt0ee.js} +0 -0
- /package/dist/chunks/{variant-n3j8tn72.js → location-lifecycle-n3j8tn72.js} +0 -0
- /package/dist/chunks/{variant-njntx4h6.js → location-lifecycle-njntx4h6.js} +0 -0
- /package/dist/chunks/{variant-q3sfg36h.js → location-lifecycle-q3sfg36h.js} +0 -0
- /package/dist/chunks/{variant-q74kybfr.js → location-lifecycle-q74kybfr.js} +0 -0
- /package/dist/chunks/{variant-qaymkmh1.js → location-lifecycle-qaymkmh1.js} +0 -0
- /package/dist/chunks/{variant-qb87gjwd.js → location-lifecycle-qb87gjwd.js} +0 -0
- /package/dist/chunks/{variant-qfa1cgps.js → location-lifecycle-qfa1cgps.js} +0 -0
- /package/dist/chunks/{variant-qg3g05ea.js → location-lifecycle-qg3g05ea.js} +0 -0
- /package/dist/chunks/{variant-qrg20bc0.js → location-lifecycle-qrg20bc0.js} +0 -0
- /package/dist/chunks/{variant-rcb2kzg1.js → location-lifecycle-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{variant-sdp7kfr6.js → location-lifecycle-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{variant-sk3qaz4a.js → location-lifecycle-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{variant-ssg3fenm.js → location-lifecycle-ssg3fenm.js} +0 -0
- /package/dist/chunks/{variant-twg0f83k.js → location-lifecycle-twg0f83k.js} +0 -0
- /package/dist/chunks/{variant-w803qqfp.js → location-lifecycle-w803qqfp.js} +0 -0
- /package/dist/chunks/{variant-wc3fc9cn.js → location-lifecycle-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{variant-wer8tq1h.js → location-lifecycle-wer8tq1h.js} +0 -0
- /package/dist/chunks/{variant-wtztk69x.js → location-lifecycle-wtztk69x.js} +0 -0
- /package/dist/chunks/{variant-x0ckcb58.js → location-lifecycle-x0ckcb58.js} +0 -0
- /package/dist/chunks/{variant-x61499pn.js → location-lifecycle-x61499pn.js} +0 -0
- /package/dist/chunks/{variant-y44na4kk.js → location-lifecycle-y44na4kk.js} +0 -0
- /package/dist/chunks/{variant-y8cydn3q.js → location-lifecycle-y8cydn3q.js} +0 -0
- /package/dist/chunks/{variant-y8f7s663.js → location-lifecycle-y8f7s663.js} +0 -0
- /package/dist/chunks/{variant-ygaqb7jw.js → location-lifecycle-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{variant-ym463w8f.js → location-lifecycle-ym463w8f.js} +0 -0
- /package/dist/chunks/{variant-z9919s4g.js → location-lifecycle-z9919s4g.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID10
|
|
3
|
+
} from "./location-lifecycle-v52rr7b3.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/prompt-cache-key.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.model.transform((models) => {
|
|
26
26
|
for (const id of providerIDs) {
|
|
27
|
-
const providerID =
|
|
27
|
+
const providerID = ID10.make(id);
|
|
28
28
|
for (const model of models.list(providerID)) {
|
|
29
29
|
models.update(model.providerID, model.id, (draft) => {
|
|
30
30
|
draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Info9,
|
|
6
|
+
ID4,
|
|
7
7
|
Name2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-lifecycle-dqdee38h.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service51
|
|
11
|
+
} from "./location-lifecycle-2cfefjf7.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/skill.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
17
|
+
var exports_skill3 = {};
|
|
18
|
+
__export(exports_skill3, {
|
|
19
19
|
OpencodeContent: () => OpencodeContent2,
|
|
20
20
|
OpencodeDescription: () => OpencodeDescription2,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin44,
|
|
22
22
|
ReportContent: () => ReportContent2,
|
|
23
|
-
SkillPlugin: () =>
|
|
23
|
+
SkillPlugin: () => exports_skill3
|
|
24
24
|
});
|
|
25
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
26
26
|
import { Effect } from "effect";
|
|
@@ -425,20 +425,20 @@ var OpencodeContent2 = opencode_default;
|
|
|
425
425
|
var ReportContent2 = report_default;
|
|
426
426
|
var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
|
|
427
427
|
var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
|
|
428
|
-
var
|
|
428
|
+
var Plugin44 = define({
|
|
429
429
|
id: "opencode.skill",
|
|
430
430
|
effect: Effect.fn(function* (ctx) {
|
|
431
431
|
const reportContent = yield* reportContentWithDiagnostics(ctx.app);
|
|
432
432
|
yield* ctx.skill.transform((editor) => {
|
|
433
|
-
editor.add(
|
|
434
|
-
id:
|
|
433
|
+
editor.add(Info9.make({
|
|
434
|
+
id: ID4.make("opencode"),
|
|
435
435
|
name: Name2.make("OpenCode"),
|
|
436
436
|
description: OpencodeDescription2,
|
|
437
437
|
path: AbsolutePath2.make("/builtin/opencode.md"),
|
|
438
438
|
content: OpencodeContent2
|
|
439
439
|
}));
|
|
440
|
-
editor.add(
|
|
441
|
-
id:
|
|
440
|
+
editor.add(Info9.make({
|
|
441
|
+
id: ID4.make("report"),
|
|
442
442
|
name: Name2.make("Report"),
|
|
443
443
|
description: REPORT_DESCRIPTION,
|
|
444
444
|
path: AbsolutePath2.make("/builtin/report.md"),
|
|
@@ -466,7 +466,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
|
|
|
466
466
|
`);
|
|
467
467
|
});
|
|
468
468
|
var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
|
|
469
|
-
const config = yield*
|
|
469
|
+
const config = yield* Service51;
|
|
470
470
|
return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
|
|
471
471
|
});
|
|
472
472
|
function terminal() {
|
|
@@ -480,4 +480,4 @@ function shell() {
|
|
|
480
480
|
return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
export { OpencodeContent2, ReportContent2, OpencodeDescription2,
|
|
483
|
+
export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin44, exports_skill3 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/filesystem/protected.ts
|
|
6
6
|
var exports_protected = {};
|
|
7
7
|
__export(exports_protected, {
|
|
8
8
|
Protected: () => exports_protected,
|
|
9
9
|
isHome: () => isHome2,
|
|
10
|
-
names: () =>
|
|
10
|
+
names: () => names4,
|
|
11
11
|
paths: () => paths2
|
|
12
12
|
});
|
|
13
13
|
import os from "os";
|
|
@@ -41,7 +41,7 @@ var DARWIN_LIBRARY = [
|
|
|
41
41
|
];
|
|
42
42
|
var DARWIN_ROOT = ["/.DocumentRevisions-V100", "/.Spotlight-V100", "/.Trashes", "/.fseventsd"];
|
|
43
43
|
var WIN32_HOME = ["AppData", "Downloads", "Desktop", "Documents", "Pictures", "Music", "Videos", "OneDrive"];
|
|
44
|
-
function
|
|
44
|
+
function names4() {
|
|
45
45
|
if (process.platform === "darwin")
|
|
46
46
|
return new Set(DARWIN_HOME);
|
|
47
47
|
if (process.platform === "win32")
|
|
@@ -60,4 +60,4 @@ function paths2() {
|
|
|
60
60
|
return [];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export { isHome2,
|
|
63
|
+
export { isHome2, names4, paths2, exports_protected };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service51
|
|
4
|
+
} from "./location-lifecycle-2cfefjf7.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-qsdy395h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/config/plugin/websearch.ts
|
|
13
13
|
var exports_websearch = {};
|
|
14
14
|
__export(exports_websearch, {
|
|
15
15
|
ConfigWebSearchPlugin: () => exports_websearch,
|
|
16
|
-
Plugin: () =>
|
|
16
|
+
Plugin: () => Plugin13
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin13 = define({
|
|
21
21
|
id: "opencode.config.websearch",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const config = yield*
|
|
23
|
+
const config = yield* Service51;
|
|
24
24
|
const loaded = yield* observe2(config, ctx.event, ctx.websearch.reload());
|
|
25
25
|
yield* ctx.websearch.transform((websearch) => {
|
|
26
26
|
const selection = latest2(loaded.entries, "websearch");
|
|
@@ -32,4 +32,4 @@ var Plugin6 = define({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Plugin13, exports_websearch };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID9,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-a79avww4.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service51
|
|
7
|
+
} from "./location-lifecycle-2cfefjf7.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-fvzswx9a.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/lmstudio.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -36,7 +36,7 @@ function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
36
36
|
id: "opencode.provider.lmstudio",
|
|
37
37
|
effect: Effect.fn(function* (ctx) {
|
|
38
38
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service51;
|
|
40
40
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
41
41
|
const loaded = { models: [], hash: "[]" };
|
|
42
42
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -63,7 +63,7 @@ function make7(origin = "http://127.0.0.1:1234", interval = "30 seconds") {
|
|
|
63
63
|
});
|
|
64
64
|
for (const item of loaded.models) {
|
|
65
65
|
providers.models.update(providerID, item.key, (model) => {
|
|
66
|
-
model.modelID =
|
|
66
|
+
model.modelID = ID9.make(item.key);
|
|
67
67
|
model.name = item.display_name || item.key;
|
|
68
68
|
model.family = item.architecture ? Family2.make(item.architecture) : undefined;
|
|
69
69
|
model.capabilities = {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-2axye2ft.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-y71avatq.js";
|
|
8
8
|
import {
|
|
9
9
|
Binding2,
|
|
10
10
|
RegistryService2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
node77
|
|
12
|
+
} from "./location-lifecycle-4ns3h2re.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkspaceTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-faypxj3z.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/workspace.ts
|
|
21
21
|
var exports_workspace = {};
|
|
22
22
|
__export(exports_workspace, {
|
|
23
23
|
CreateConflict: () => CreateConflict2,
|
|
24
|
-
ID: () =>
|
|
25
|
-
Info: () =>
|
|
24
|
+
ID: () => ID12,
|
|
25
|
+
Info: () => Info28,
|
|
26
26
|
NotFound: () => NotFound3,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service73,
|
|
28
28
|
Workspace: () => exports_workspace,
|
|
29
29
|
configured: () => configured11,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node76
|
|
31
31
|
});
|
|
32
32
|
import { Workspace } from "@opencode/schema/workspace";
|
|
33
33
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,10 +35,10 @@ import { eq } from "drizzle-orm";
|
|
|
35
35
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
36
36
|
import { systemError } from "effect/PlatformError";
|
|
37
37
|
import { make } from "effect/unstable/process/ChildProcessSpawner";
|
|
38
|
-
var
|
|
38
|
+
var ID12 = Workspace.ID;
|
|
39
39
|
|
|
40
|
-
class
|
|
41
|
-
id:
|
|
40
|
+
class Info28 extends Schema.Class("Workspace.Info")({
|
|
41
|
+
id: ID12,
|
|
42
42
|
provider: Schema.String,
|
|
43
43
|
binding: Binding2,
|
|
44
44
|
createdAt: Schema.Number,
|
|
@@ -46,24 +46,24 @@ class Info30 extends Schema.Class("Workspace.Info")({
|
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
49
|
+
class NotFound3 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID12 }) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
53
|
-
workspaceID:
|
|
53
|
+
workspaceID: ID12,
|
|
54
54
|
provider: Schema.String,
|
|
55
55
|
existingProvider: Schema.String
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service73 extends Context.Service()("@opencode/Workspace") {
|
|
60
60
|
}
|
|
61
61
|
var configured11 = (options = {}) => makeGlobalNode({
|
|
62
|
-
service:
|
|
62
|
+
service: Service73,
|
|
63
63
|
layer: layer(options),
|
|
64
|
-
deps: [node87,
|
|
64
|
+
deps: [node87, node77]
|
|
65
65
|
});
|
|
66
|
-
var layer = (options) => Layer.effect(
|
|
66
|
+
var layer = (options) => Layer.effect(Service73, Effect.gen(function* () {
|
|
67
67
|
const db = (yield* Service83).db;
|
|
68
68
|
const registry = yield* RegistryService2;
|
|
69
69
|
const lifetime = yield* Scope.Scope;
|
|
@@ -80,7 +80,7 @@ var layer = (options) => Layer.effect(Service77, Effect.gen(function* () {
|
|
|
80
80
|
return row;
|
|
81
81
|
});
|
|
82
82
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
83
|
-
const info = (row, binding) => new
|
|
83
|
+
const info = (row, binding) => new Info28({
|
|
84
84
|
id: row.id,
|
|
85
85
|
provider: row.provider,
|
|
86
86
|
binding,
|
|
@@ -154,9 +154,9 @@ var layer = (options) => Layer.effect(Service77, Effect.gen(function* () {
|
|
|
154
154
|
yield* Scope.close(connection.scope, Exit.void);
|
|
155
155
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
156
156
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
157
|
-
return
|
|
157
|
+
return Service73.of({
|
|
158
158
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
159
|
-
const workspaceID = input.id ??
|
|
159
|
+
const workspaceID = input.id ?? ID12.create();
|
|
160
160
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
161
161
|
if (existing) {
|
|
162
162
|
if (existing.provider === input.provider)
|
|
@@ -221,6 +221,6 @@ var layer = (options) => Layer.effect(Service77, Effect.gen(function* () {
|
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
223
|
}));
|
|
224
|
-
var
|
|
224
|
+
var node76 = configured11();
|
|
225
225
|
|
|
226
|
-
export {
|
|
226
|
+
export { ID12, Info28, NotFound3, CreateConflict2, Service73, configured11, node76, exports_workspace };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-5mtzsd3b.js";
|
|
4
4
|
import {
|
|
5
5
|
Service82
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-62qat4sn.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./location-lifecycle-qbd2ms54.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID15,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-ggs1y8br.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID10,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service66
|
|
20
|
+
} from "./location-lifecycle-v52rr7b3.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID9
|
|
23
|
+
} from "./location-lifecycle-a79avww4.js";
|
|
24
24
|
import {
|
|
25
25
|
load3,
|
|
26
26
|
derive3
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-lifecycle-mtjt07v8.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-lifecycle-d2sxwqa1.js";
|
|
31
31
|
|
|
32
32
|
// src/plugin/provider/github-copilot.ts
|
|
33
33
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -59,7 +59,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
59
59
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
60
60
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
61
61
|
var oauth = (app) => ({
|
|
62
|
-
integrationID:
|
|
62
|
+
integrationID: ID15.make("github-copilot"),
|
|
63
63
|
method: {
|
|
64
64
|
id: methodID,
|
|
65
65
|
type: "oauth",
|
|
@@ -157,7 +157,7 @@ var oauth = (app) => ({
|
|
|
157
157
|
var GithubCopilotPlugin2 = define({
|
|
158
158
|
id: "opencode.provider.github.copilot",
|
|
159
159
|
effect: Effect.fn(function* (ctx) {
|
|
160
|
-
const providers = yield*
|
|
160
|
+
const providers = yield* Service66;
|
|
161
161
|
const bus = yield* Service82;
|
|
162
162
|
const loading = Semaphore.makeUnsafe(1);
|
|
163
163
|
const loaded = {};
|
|
@@ -173,7 +173,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
175
175
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
176
|
-
const provider = yield* providers.get(
|
|
176
|
+
const provider = yield* providers.get(ID10.githubCopilot);
|
|
177
177
|
const remote = yield* Effect.tryPromise({
|
|
178
178
|
try: () => load3(url, {
|
|
179
179
|
...provider?.headers,
|
|
@@ -194,7 +194,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
194
194
|
editor.method.update(oauth(ctx.app));
|
|
195
195
|
});
|
|
196
196
|
yield* ctx.provider.transform((evt) => {
|
|
197
|
-
const item = evt.get(
|
|
197
|
+
const item = evt.get(ID10.githubCopilot);
|
|
198
198
|
if (!item)
|
|
199
199
|
return;
|
|
200
200
|
if (loaded.models) {
|
|
@@ -214,17 +214,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
214
214
|
}
|
|
215
215
|
});
|
|
216
216
|
yield* ctx.model.transform((models) => {
|
|
217
|
-
if (models.get(
|
|
218
|
-
models.update(
|
|
217
|
+
if (models.get(ID10.githubCopilot, ID9.make("gpt-5-chat-latest"))) {
|
|
218
|
+
models.update(ID10.githubCopilot, ID9.make("gpt-5-chat-latest"), (model) => {
|
|
219
219
|
model.enabled = false;
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
224
|
-
yield* bus.subscribe(
|
|
224
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID15.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
225
225
|
yield* refresh().pipe(Effect.forkScoped);
|
|
226
226
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
227
|
-
if (evt.model.providerID !==
|
|
227
|
+
if (evt.model.providerID !== ID10.githubCopilot)
|
|
228
228
|
return;
|
|
229
229
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
230
230
|
return;
|
|
@@ -233,7 +233,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
233
233
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
234
234
|
}));
|
|
235
235
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
236
|
-
if (evt.model.providerID !==
|
|
236
|
+
if (evt.model.providerID !== ID10.githubCopilot)
|
|
237
237
|
return;
|
|
238
238
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
239
239
|
return;
|
|
@@ -243,9 +243,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
243
243
|
evt.headers["X-Interaction-Id"] = evt.sessionID;
|
|
244
244
|
if (interaction !== "conversation-agent")
|
|
245
245
|
evt.headers["x-initiator"] = "agent";
|
|
246
|
-
}), { providerID:
|
|
246
|
+
}), { providerID: ID10.githubCopilot });
|
|
247
247
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
248
|
-
if (evt.model.providerID !==
|
|
248
|
+
if (evt.model.providerID !== ID10.githubCopilot)
|
|
249
249
|
return;
|
|
250
250
|
const token = evt.request.headers.get("x-api-key");
|
|
251
251
|
if (!token)
|
|
@@ -253,9 +253,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
253
253
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
254
254
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
255
255
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
256
|
-
}), { providerID:
|
|
256
|
+
}), { providerID: ID10.githubCopilot });
|
|
257
257
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
258
|
-
if (evt.model.providerID !==
|
|
258
|
+
if (evt.model.providerID !== ID10.githubCopilot)
|
|
259
259
|
return;
|
|
260
260
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
261
261
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service43,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node45
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service43 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service43, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service43.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service39, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node45 = makeGlobalNode({ service: Service43, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service43, node45, exports_environment };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrations2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-ejnxb373.js";
|
|
4
4
|
import {
|
|
5
5
|
schema_gen_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-twg0f83k.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service59
|
|
3
|
+
} from "./location-lifecycle-etn8yy9q.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-4vcrnpx2.js";
|
|
8
8
|
import {
|
|
9
9
|
collectBoundedResponseBody2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-3v8g72cx.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-lifecycle-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: () =>
|
|
20
|
-
MAX_RESPONSE_BYTES: () =>
|
|
19
|
+
Input: () => Input10,
|
|
20
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin30,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
|
-
description: () =>
|
|
25
|
+
description: () => description4,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name10
|
|
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/unstable/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var name10 = "webfetch";
|
|
34
|
+
var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
|
-
var
|
|
37
|
+
var description4 = `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 Input10 = 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 Input6 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input10.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
|
|
|
79
79
|
throw new Error("URL must use http:// or https://");
|
|
80
80
|
};
|
|
81
81
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
82
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
82
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
|
|
83
83
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
84
84
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
85
85
|
var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin30 = {
|
|
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* Service59;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name10,
|
|
102
102
|
options: { codemode: false },
|
|
103
|
-
description:
|
|
104
|
-
input:
|
|
103
|
+
description: description4,
|
|
104
|
+
input: Input10,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin42 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name10,
|
|
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 { name10, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description4, Input10, Plugin30, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
absoluteColumn2,
|
|
3
3
|
absoluteArrayColumn2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-6msgmcgs.js";
|
|
5
5
|
import {
|
|
6
6
|
Timestamps2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-qfa1cgps.js";
|
|
8
8
|
|
|
9
9
|
// src/project/sql.ts
|
|
10
10
|
import { isNotNull, isNull, ne, or } from "drizzle-orm";
|