@opencode/core 2.0.0 → 2.0.1
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 +76 -76
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/catalog.js +84 -84
- package/dist/chunks/{aisdk-native-3wx0ktdp.js → repository-02dev0ez.js} +15 -15
- package/dist/chunks/{aisdk-native-hj31wtn3.js → repository-0k3t14ts.js} +10 -10
- package/dist/chunks/{aisdk-native-76xfeaks.js → repository-0k7wafs3.js} +28 -28
- package/dist/chunks/{aisdk-native-0paq2nw3.js → repository-0paq2nw3.js} +1 -1
- package/dist/chunks/{aisdk-native-0q0f95c6.js → repository-0q0f95c6.js} +1 -1
- package/dist/chunks/{aisdk-native-e6hmchc5.js → repository-0r7yqxbf.js} +5 -5
- package/dist/chunks/{aisdk-native-0fm13a2s.js → repository-0wjw63yk.js} +26 -26
- package/dist/chunks/{aisdk-native-n88zggmf.js → repository-0xfnng1h.js} +18 -18
- package/dist/chunks/{aisdk-native-tpbhnsa4.js → repository-0zkv00cg.js} +29 -29
- package/dist/chunks/{aisdk-native-jz5sxy2v.js → repository-10jtetaj.js} +6 -6
- package/dist/chunks/{aisdk-native-s0hza5ac.js → repository-18e56dsp.js} +4 -4
- package/dist/chunks/{aisdk-native-kwn61asm.js → repository-19c2b9rb.js} +11 -11
- package/dist/chunks/{aisdk-native-mhkvc446.js → repository-1bbkgx8g.js} +3 -3
- package/dist/chunks/{aisdk-native-81rrwt6s.js → repository-1bvekr7f.js} +6 -6
- package/dist/chunks/{aisdk-native-1dazxqgg.js → repository-1dazxqgg.js} +2 -2
- package/dist/chunks/{aisdk-native-ykq8g6tf.js → repository-1g6ktzxp.js} +46 -46
- package/dist/chunks/{aisdk-native-7zdm33ac.js → repository-1gnhqkth.js} +10 -10
- package/dist/chunks/{aisdk-native-v6yxqhem.js → repository-1j4qb6e1.js} +8 -8
- package/dist/chunks/{aisdk-native-6yxvt9sa.js → repository-1jnd8eq9.js} +16 -16
- package/dist/chunks/{aisdk-native-smbad60v.js → repository-1n274c67.js} +15 -15
- package/dist/chunks/{aisdk-native-40s62c95.js → repository-1t2s0wry.js} +5 -5
- package/dist/chunks/{aisdk-native-9r7q4bhe.js → repository-1tjfkw5v.js} +25 -25
- package/dist/chunks/{aisdk-native-h7ch2b13.js → repository-20q8k894.js} +9 -9
- package/dist/chunks/{aisdk-native-n0xcs1rn.js → repository-213v9py0.js} +6 -6
- package/dist/chunks/{aisdk-native-21r38tys.js → repository-21r38tys.js} +1 -1
- package/dist/chunks/{aisdk-native-2402vzrj.js → repository-2402vzrj.js} +1 -1
- package/dist/chunks/{aisdk-native-kns4vs3f.js → repository-27wgnz1z.js} +8 -8
- package/dist/chunks/{aisdk-native-2a5m3afh.js → repository-2a5m3afh.js} +1 -1
- package/dist/chunks/{aisdk-native-fex1jrgj.js → repository-2cgm8dc1.js} +8 -8
- package/dist/chunks/{aisdk-native-ynnjbwyb.js → repository-2fbr18f9.js} +43 -43
- package/dist/chunks/{aisdk-native-607tc6va.js → repository-2k8khapm.js} +5 -5
- package/dist/chunks/{aisdk-native-ge3a0kr9.js → repository-2m84dfka.js} +18 -18
- package/dist/chunks/{aisdk-native-2se0afp6.js → repository-2v08kgv1.js} +23 -23
- package/dist/chunks/{aisdk-native-nhqh66qs.js → repository-2yv9jfkc.js} +12 -12
- package/dist/chunks/{aisdk-native-8a24hghq.js → repository-36564s8r.js} +29 -29
- package/dist/chunks/{aisdk-native-v2ctr6fa.js → repository-386j3b86.js} +15 -15
- package/dist/chunks/{aisdk-native-g27wjat6.js → repository-39fveamk.js} +24 -24
- package/dist/chunks/{aisdk-native-3hepkmqq.js → repository-3hepkmqq.js} +1 -1
- package/dist/chunks/{aisdk-native-qx0n0hnh.js → repository-3ke3s58r.js} +13 -13
- package/dist/chunks/{aisdk-native-ms882c9x.js → repository-3mdgf1e2.js} +24 -24
- package/dist/chunks/{aisdk-native-deehc0cj.js → repository-3seenrp7.js} +9 -9
- package/dist/chunks/{aisdk-native-3smtnn6g.js → repository-3smtnn6g.js} +1 -1
- package/dist/chunks/{aisdk-native-ackkwfcq.js → repository-3tamc9js.js} +23 -23
- package/dist/chunks/{aisdk-native-3tvqynh2.js → repository-3tvqynh2.js} +1 -1
- package/dist/chunks/{aisdk-native-3x8gcmrs.js → repository-3x8gcmrs.js} +3 -3
- package/dist/chunks/{aisdk-native-es98n7aa.js → repository-3yetcf2r.js} +49 -49
- package/dist/chunks/{aisdk-native-15rsv8cs.js → repository-47vy4edm.js} +5 -5
- package/dist/chunks/{aisdk-native-xbrnje9f.js → repository-4e540xxx.js} +5 -5
- package/dist/chunks/{aisdk-native-hf4q8sgp.js → repository-4emgtgzt.js} +22 -22
- package/dist/chunks/{aisdk-native-4y66k410.js → repository-4y66k410.js} +2 -2
- package/dist/chunks/{aisdk-native-rqysayyh.js → repository-51cmmk6m.js} +83 -83
- package/dist/chunks/{aisdk-native-mfqp6xfm.js → repository-56gdpj1q.js} +6 -6
- package/dist/chunks/{aisdk-native-23279rje.js → repository-5892jdtn.js} +8 -8
- package/dist/chunks/{aisdk-native-4b9mceyk.js → repository-58e8mpmb.js} +15 -15
- package/dist/chunks/{aisdk-native-fggaw9y4.js → repository-59j62b79.js} +11 -11
- package/dist/chunks/{aisdk-native-6g46d628.js → repository-5b88mxz1.js} +7 -7
- package/dist/chunks/{aisdk-native-xv61b48b.js → repository-5cy52y0z.js} +6 -6
- package/dist/chunks/{aisdk-native-5daktx2q.js → repository-5daktx2q.js} +1 -1
- package/dist/chunks/{aisdk-native-ch22x6z2.js → repository-5n0sh9d6.js} +7 -7
- package/dist/chunks/{aisdk-native-5t3nmthw.js → repository-5t3nmthw.js} +2 -2
- package/dist/chunks/{aisdk-native-686tv8fb.js → repository-5y5h33xd.js} +8 -8
- package/dist/chunks/{aisdk-native-669tq793.js → repository-669tq793.js} +1 -1
- package/dist/chunks/{aisdk-native-6msgmcgs.js → repository-6msgmcgs.js} +1 -1
- package/dist/chunks/{aisdk-native-dk95gbn1.js → repository-6tpt9h9q.js} +60 -60
- package/dist/chunks/{aisdk-native-6fyvx278.js → repository-6wjjjhy6.js} +17 -17
- package/dist/chunks/{aisdk-native-71q4at8m.js → repository-71q4at8m.js} +1 -1
- package/dist/chunks/{aisdk-native-8qr4v3ea.js → repository-72ds7gf6.js} +32 -32
- package/dist/chunks/{aisdk-native-7bmhse3q.js → repository-7bmhse3q.js} +1 -1
- package/dist/chunks/{aisdk-native-as4zy6vm.js → repository-7zs56f9j.js} +6 -6
- package/dist/chunks/{aisdk-native-8qqh30s3.js → repository-84czwvzw.js} +18 -18
- package/dist/chunks/{aisdk-native-9zvzf66v.js → repository-87v8z91d.js} +8 -8
- package/dist/chunks/{aisdk-native-g5eyeasx.js → repository-88zp0tbv.js} +10 -10
- package/dist/chunks/{aisdk-native-0pb75hch.js → repository-8c7y8dn0.js} +5 -5
- package/dist/chunks/{aisdk-native-8d7r5vzw.js → repository-8d7r5vzw.js} +1 -1
- package/dist/chunks/{aisdk-native-0nzv5c2w.js → repository-8db04et3.js} +8 -8
- package/dist/chunks/{aisdk-native-q5az2q1p.js → repository-8gs4w1fy.js} +30 -30
- package/dist/chunks/{aisdk-native-06x8he3q.js → repository-8gxqpgph.js} +4 -4
- package/dist/chunks/{aisdk-native-vfccn5yp.js → repository-8m31s27t.js} +11 -11
- package/dist/chunks/{aisdk-native-8p4f9s12.js → repository-8p4f9s12.js} +2 -2
- package/dist/chunks/{aisdk-native-82asvwff.js → repository-8vg4n516.js} +14 -14
- package/dist/chunks/{aisdk-native-wbvqwd2e.js → repository-9rs4eqfv.js} +20 -20
- package/dist/chunks/{aisdk-native-rd6pz67j.js → repository-9xb0s4b9.js} +26 -26
- package/dist/chunks/{aisdk-native-xrekznn2.js → repository-9yhr46n3.js} +22 -22
- package/dist/chunks/{aisdk-native-a1bz86dw.js → repository-a1bz86dw.js} +3 -3
- package/dist/chunks/{aisdk-native-vy36sswr.js → repository-a3n1dpj2.js} +9 -9
- package/dist/chunks/{aisdk-native-qm5vd5ej.js → repository-a5h5qkjp.js} +35 -35
- package/dist/chunks/{aisdk-native-82j2mrwz.js → repository-a8ygtzbq.js} +13 -13
- package/dist/chunks/{aisdk-native-b00gradr.js → repository-aa4x36r7.js} +47 -47
- package/dist/chunks/{aisdk-native-aaet6srn.js → repository-aaet6srn.js} +2 -2
- package/dist/chunks/{aisdk-native-b09hzw3k.js → repository-b09hzw3k.js} +2 -2
- package/dist/chunks/{aisdk-native-rga4dawr.js → repository-b0sf2pns.js} +6 -6
- package/dist/chunks/{aisdk-native-x0v86zgp.js → repository-b5n11jz6.js} +15 -15
- package/dist/chunks/{aisdk-native-b6gygkdw.js → repository-b6gygkdw.js} +2 -2
- package/dist/chunks/{aisdk-native-35wynegs.js → repository-b6hy6gkz.js} +2 -2
- package/dist/chunks/{aisdk-native-cvtmmhw6.js → repository-bbarxbyb.js} +1 -1
- package/dist/chunks/{aisdk-native-y6jb2tes.js → repository-bejabbw1.js} +33 -33
- package/dist/chunks/{aisdk-native-d1g6sxjm.js → repository-bkhh0yw4.js} +21 -21
- package/dist/chunks/{aisdk-native-h6t842eb.js → repository-c13f7gjw.js} +36 -36
- package/dist/chunks/{aisdk-native-sjbct61y.js → repository-c968x2fe.js} +8 -8
- package/dist/chunks/{aisdk-native-qjwa214h.js → repository-c9wtqnwj.js} +11 -11
- package/dist/chunks/{aisdk-native-v5dw3fed.js → repository-cabt264k.js} +14 -14
- package/dist/chunks/{aisdk-native-9z45pttg.js → repository-cedwm630.js} +47 -47
- package/dist/chunks/{aisdk-native-cfpkc3c9.js → repository-cfpkc3c9.js} +2 -2
- package/dist/chunks/{aisdk-native-0artwwxx.js → repository-cg1ew3t4.js} +3 -3
- package/dist/chunks/{aisdk-native-844ef7ks.js → repository-cmwkp3r5.js} +4 -4
- package/dist/chunks/{aisdk-native-cq37gk0t.js → repository-cq37gk0t.js} +4 -4
- package/dist/chunks/{aisdk-native-st09aja5.js → repository-csp720wb.js} +25 -25
- package/dist/chunks/{aisdk-native-wf1cyng1.js → repository-ct93djtc.js} +9 -9
- package/dist/chunks/{aisdk-native-ajy029q4.js → repository-d75w7jnc.js} +18 -18
- package/dist/chunks/{aisdk-native-sxnsykqc.js → repository-de42ff3x.js} +36 -36
- package/dist/chunks/{aisdk-native-t0fxg8b9.js → repository-dj9sq318.js} +5 -5
- package/dist/chunks/{aisdk-native-jx8g4evx.js → repository-drknmmyh.js} +9 -9
- package/dist/chunks/{aisdk-native-4exee4de.js → repository-ehajtz8g.js} +11 -11
- package/dist/chunks/{aisdk-native-xpf9b544.js → repository-eprkdeyt.js} +16 -16
- package/dist/chunks/{aisdk-native-etq0c3wd.js → repository-etq0c3wd.js} +1 -1
- package/dist/chunks/{aisdk-native-3v5c85g8.js → repository-evxnsm19.js} +6 -6
- package/dist/chunks/{aisdk-native-gbt8yvwm.js → repository-ext3js1z.js} +16 -16
- package/dist/chunks/{aisdk-native-bp3wckns.js → repository-ezbaq0hv.js} +4 -4
- package/dist/chunks/{aisdk-native-mz6ae2yf.js → repository-eztf1wzg.js} +1 -1
- package/dist/chunks/{aisdk-native-361ty1x8.js → repository-f78hydwg.js} +3 -3
- package/dist/chunks/{aisdk-native-f828m53h.js → repository-f828m53h.js} +2 -2
- package/dist/chunks/{aisdk-native-qfw56etf.js → repository-fcgysgr5.js} +11 -11
- package/dist/chunks/{aisdk-native-k8z4brtb.js → repository-ff9w6xrb.js} +6 -6
- package/dist/chunks/{aisdk-native-gd0e60kd.js → repository-fmdgzt8c.js} +45 -45
- package/dist/chunks/{aisdk-native-h251t0cq.js → repository-fmpkkhtn.js} +18 -18
- package/dist/chunks/{aisdk-native-bqe1qhvg.js → repository-fmvngk0a.js} +26 -26
- package/dist/chunks/{aisdk-native-v9kga7nj.js → repository-fmykz272.js} +7 -7
- package/dist/chunks/{aisdk-native-hamfyrt4.js → repository-fv2d43cy.js} +28 -28
- package/dist/chunks/{aisdk-native-fxbjtjnd.js → repository-fxbjtjnd.js} +1 -1
- package/dist/chunks/{aisdk-native-k996mbzp.js → repository-g0dr00md.js} +32 -32
- package/dist/chunks/{aisdk-native-mjymc32g.js → repository-g190xswt.js} +4 -4
- package/dist/chunks/{aisdk-native-1jdcek6j.js → repository-g4kbd5hn.js} +22 -22
- package/dist/chunks/{aisdk-native-fdv30zvt.js → repository-g8d3gcyj.js} +4 -4
- package/dist/chunks/{aisdk-native-a5fqa70n.js → repository-g8mks886.js} +11 -11
- package/dist/chunks/{aisdk-native-wh6nx8gk.js → repository-g9cr3d5v.js} +4 -4
- package/dist/chunks/{aisdk-native-gd4qta3r.js → repository-gd4qta3r.js} +1 -1
- package/dist/chunks/{aisdk-native-3fc6dm20.js → repository-gdvy8fx6.js} +4 -4
- package/dist/chunks/{aisdk-native-r4kwqy5f.js → repository-gtm8txn9.js} +28 -28
- package/dist/chunks/{aisdk-native-th5km1p3.js → repository-gv6a8nnw.js} +5 -5
- package/dist/chunks/{aisdk-native-axpme2c5.js → repository-gxgjkd0x.js} +17 -17
- package/dist/chunks/{aisdk-native-h03wrkyp.js → repository-h03wrkyp.js} +2 -2
- package/dist/chunks/{aisdk-native-aqpgmyrr.js → repository-h0gkjmvb.js} +13 -13
- package/dist/chunks/{aisdk-native-bxz5a0az.js → repository-h1rn3ct5.js} +87 -87
- package/dist/chunks/{aisdk-native-fjc0rzqy.js → repository-h4e6z68e.js} +15 -15
- package/dist/chunks/{aisdk-native-h6vf3j39.js → repository-h6vf3j39.js} +1 -1
- package/dist/chunks/{aisdk-native-jwx4y25k.js → repository-h71w788e.js} +9 -9
- package/dist/chunks/{aisdk-native-83s1p0p4.js → repository-h90k734v.js} +9 -9
- package/dist/chunks/{aisdk-native-vcmavarf.js → repository-haj0byqn.js} +4 -4
- package/dist/chunks/{aisdk-native-bqaq7pjn.js → repository-he3792rk.js} +29 -29
- package/dist/chunks/{aisdk-native-xkq70t77.js → repository-hj2f0bzq.js} +7 -7
- package/dist/chunks/{aisdk-native-e82z9tr0.js → repository-hjt4xg1x.js} +7 -7
- package/dist/chunks/{aisdk-native-rsym84ch.js → repository-hqjg1cx1.js} +9 -9
- package/dist/chunks/{aisdk-native-mb3974r6.js → repository-hrncarcf.js} +1 -1
- package/dist/chunks/{aisdk-native-twwx0ekz.js → repository-j38hs89b.js} +21 -21
- package/dist/chunks/{aisdk-native-cjg4xdhd.js → repository-j4z2qnee.js} +11 -11
- package/dist/chunks/{aisdk-native-62zc03d1.js → repository-j5346eb1.js} +170 -170
- package/dist/chunks/{aisdk-native-j56e64zr.js → repository-j56e64zr.js} +1 -1
- package/dist/chunks/{aisdk-native-yppnjwr8.js → repository-j5xt7epv.js} +12 -12
- package/dist/chunks/{aisdk-native-zzabxn0f.js → repository-j83byb14.js} +4 -4
- package/dist/chunks/{aisdk-native-pvvztgda.js → repository-j8g7a3j8.js} +8 -8
- package/dist/chunks/{aisdk-native-v3hym01v.js → repository-jby58kjs.js} +13 -13
- package/dist/chunks/{aisdk-native-fx1wdxnv.js → repository-je6c5z5p.js} +9 -9
- package/dist/chunks/repository-jqh9b0xq.js +18 -0
- package/dist/chunks/{aisdk-native-rrbca1ec.js → repository-jwjk52g2.js} +4 -4
- package/dist/chunks/{aisdk-native-rmbt0h7x.js → repository-jzksghxf.js} +28 -28
- package/dist/chunks/{aisdk-native-kg06axw8.js → repository-kg06axw8.js} +1 -1
- package/dist/chunks/{aisdk-native-467byya2.js → repository-kkdm9ajw.js} +5 -5
- package/dist/chunks/{aisdk-native-1xqm2dzv.js → repository-ksjan0t5.js} +13 -13
- package/dist/chunks/{aisdk-native-9jdakqgh.js → repository-ky16kd9n.js} +12 -12
- package/dist/chunks/{aisdk-native-xekzrwwc.js → repository-m2d0j7c0.js} +5 -5
- package/dist/chunks/{aisdk-native-m9w0rfyh.js → repository-m9w0rfyh.js} +1 -1
- package/dist/chunks/{aisdk-native-rdzxvy4m.js → repository-me4pxbk2.js} +32 -32
- package/dist/chunks/{aisdk-native-ra3qct3x.js → repository-mgx963cj.js} +8 -8
- package/dist/chunks/{aisdk-native-whczfbjh.js → repository-mhbk2b8a.js} +15 -15
- package/dist/chunks/repository-mppgq2kn.js +462 -0
- package/dist/chunks/{aisdk-native-21sebrtn.js → repository-mqsc2h20.js} +24 -24
- package/dist/chunks/{aisdk-native-msq0jde0.js → repository-msq0jde0.js} +1 -1
- package/dist/chunks/{aisdk-native-n09f2zd2.js → repository-mw6spqsr.js} +17 -17
- package/dist/chunks/{aisdk-native-2sqe2en6.js → repository-my7gf51c.js} +71 -71
- package/dist/chunks/{aisdk-native-s5ga8gke.js → repository-n4a6bgqk.js} +11 -11
- package/dist/chunks/{aisdk-native-94s48bjb.js → repository-nrk5vjbf.js} +5 -5
- package/dist/chunks/{aisdk-native-jghsd1wz.js → repository-nxamnhdf.js} +12 -12
- package/dist/chunks/{aisdk-native-p33ejz0k.js → repository-p33ejz0k.js} +1 -1
- package/dist/chunks/{aisdk-native-dgf53888.js → repository-p6v0vyws.js} +20 -20
- package/dist/chunks/{aisdk-native-3175eqdp.js → repository-pctvcs1g.js} +16 -16
- package/dist/chunks/{aisdk-native-a1a50ys5.js → repository-pecb0brz.js} +5 -5
- package/dist/chunks/{aisdk-native-265kqrgy.js → repository-peejr10p.js} +1 -1
- package/dist/chunks/{aisdk-native-5pkvz399.js → repository-penaav09.js} +30 -30
- package/dist/chunks/{aisdk-native-9sjxd60t.js → repository-petjzngd.js} +11 -11
- package/dist/chunks/{aisdk-native-wavq5vqb.js → repository-pjrv1sn1.js} +1 -1
- package/dist/chunks/{aisdk-native-pjvnvgmy.js → repository-pjvnvgmy.js} +1 -1
- package/dist/chunks/{aisdk-native-pknna89w.js → repository-pknna89w.js} +1 -1
- package/dist/chunks/{aisdk-native-y9f55719.js → repository-pn143qvt.js} +19 -19
- package/dist/chunks/{aisdk-native-qv308p2a.js → repository-ppq9etn0.js} +35 -35
- package/dist/chunks/{aisdk-native-svw2bsx3.js → repository-pvp1cs2e.js} +18 -18
- package/dist/chunks/{aisdk-native-pt1wzm9p.js → repository-pwf15mvc.js} +4 -4
- package/dist/chunks/{aisdk-native-33n3bzdy.js → repository-pye8sh6e.js} +6 -6
- package/dist/chunks/{aisdk-native-6aywe8nf.js → repository-pzjh8mr9.js} +15 -15
- package/dist/chunks/{aisdk-native-wggajky5.js → repository-q8bcy8ws.js} +2 -2
- package/dist/chunks/{aisdk-native-45smdebh.js → repository-q8rd9qhs.js} +24 -24
- package/dist/chunks/repository-qapv375x.js +4 -0
- package/dist/chunks/repository-qec2v6cx.js +247 -0
- package/dist/chunks/{aisdk-native-bfexjxds.js → repository-qfmvv2sm.js} +3 -3
- package/dist/chunks/{aisdk-native-219neeqh.js → repository-qkrnz1pz.js} +5 -5
- package/dist/chunks/{aisdk-native-ybc7xzk8.js → repository-qrj9d2ct.js} +22 -22
- package/dist/chunks/{aisdk-native-qsdy395h.js → repository-qsdy395h.js} +1 -1
- package/dist/chunks/{aisdk-native-33f8ypwy.js → repository-qt3bdkqw.js} +22 -22
- package/dist/chunks/{aisdk-native-wb8tnnnp.js → repository-r14cnnrw.js} +8 -8
- package/dist/chunks/{aisdk-native-wvvbdh4b.js → repository-r2dfp6se.js} +37 -37
- package/dist/chunks/{aisdk-native-w4arg62q.js → repository-r33ff4dw.js} +6 -6
- package/dist/chunks/{aisdk-native-yp2x3t23.js → repository-r8xr0va3.js} +4 -4
- package/dist/chunks/{aisdk-native-8y0t5gr9.js → repository-r94mrtfv.js} +13 -13
- package/dist/chunks/{aisdk-native-r9mregkx.js → repository-r9mregkx.js} +2 -2
- package/dist/chunks/{aisdk-native-vv78xzwk.js → repository-rg2zvvyz.js} +11 -11
- package/dist/chunks/{aisdk-native-0cpfncfh.js → repository-rgmexsye.js} +11 -11
- package/dist/chunks/{aisdk-native-rhjbct0v.js → repository-rhjbct0v.js} +1 -1
- package/dist/chunks/{aisdk-native-c8k0fn6w.js → repository-rsbh8q26.js} +51 -51
- package/dist/chunks/{aisdk-native-b5vcnazb.js → repository-s2t8c8fj.js} +4 -4
- package/dist/chunks/{aisdk-native-km19zyfq.js → repository-seps633m.js} +21 -21
- package/dist/chunks/{aisdk-native-w69f1nhp.js → repository-sgk3431w.js} +27 -27
- package/dist/chunks/{aisdk-native-39dcxt5x.js → repository-shg3amz7.js} +22 -22
- package/dist/chunks/repository-sj51pd9c.js +22 -0
- package/dist/chunks/{aisdk-native-xbfgt74t.js → repository-sksn9mf1.js} +13 -13
- package/dist/chunks/{aisdk-native-87j3jmrh.js → repository-sm236kpq.js} +11 -11
- package/dist/chunks/{aisdk-native-y9tfvs3x.js → repository-smnv2tch.js} +46 -46
- package/dist/chunks/{aisdk-native-111hscse.js → repository-sztg2hv4.js} +33 -33
- package/dist/chunks/{aisdk-native-t0x5rdq8.js → repository-t0x5rdq8.js} +2 -2
- package/dist/chunks/{aisdk-native-qh3awkqg.js → repository-t2x602yk.js} +18 -18
- package/dist/chunks/{aisdk-native-4kkrbspp.js → repository-t59s3hhv.js} +42 -42
- package/dist/chunks/{aisdk-native-z7tgbaqx.js → repository-tat7nwhe.js} +12 -12
- package/dist/chunks/{aisdk-native-tazgh4e4.js → repository-tazgh4e4.js} +1 -1
- package/dist/chunks/{aisdk-native-tcezcvh9.js → repository-tcezcvh9.js} +1 -1
- package/dist/chunks/{aisdk-native-tdstcens.js → repository-tdstcens.js} +1 -1
- package/dist/chunks/{aisdk-native-wzcb8dk1.js → repository-tkvvdtgj.js} +5 -5
- package/dist/chunks/{aisdk-native-tvtrv512.js → repository-tvtrv512.js} +1 -1
- package/dist/chunks/{aisdk-native-6kyz0a76.js → repository-tx9qvpbt.js} +8 -8
- package/dist/chunks/{aisdk-native-gfewnhh8.js → repository-txzqvs6q.js} +22 -22
- package/dist/chunks/{aisdk-native-9vfhq93a.js → repository-v3v5frkk.js} +31 -31
- package/dist/chunks/{aisdk-native-veqvce7d.js → repository-veqvce7d.js} +1 -1
- package/dist/chunks/{aisdk-native-vzcthcp8.js → repository-vzcthcp8.js} +1 -1
- package/dist/chunks/{aisdk-native-y3z1zdtj.js → repository-w0cvk6jr.js} +22 -22
- package/dist/chunks/{aisdk-native-w3wsvvr9.js → repository-w3wsvvr9.js} +1 -1
- package/dist/chunks/{aisdk-native-4ns3h2re.js → repository-w4axh9wz.js} +4 -4
- package/dist/chunks/{aisdk-native-ghjjbadh.js → repository-w4wc2211.js} +34 -34
- package/dist/chunks/{aisdk-native-83nmqw0w.js → repository-w75dnx21.js} +43 -43
- package/dist/chunks/{aisdk-native-rn79xn25.js → repository-w96k05dy.js} +8 -8
- package/dist/chunks/{aisdk-native-wd87259q.js → repository-wd87259q.js} +1 -1
- package/dist/chunks/{aisdk-native-hyq5kv93.js → repository-wxpch4dk.js} +32 -32
- package/dist/chunks/{aisdk-native-x1ezjp6w.js → repository-x1ezjp6w.js} +1 -1
- package/dist/chunks/{aisdk-native-znwg340w.js → repository-x384g1hs.js} +15 -15
- package/dist/chunks/{aisdk-native-11nvngjf.js → repository-x6rcf4cj.js} +16 -16
- package/dist/chunks/{aisdk-native-pwb5z5tv.js → repository-xhhmv89y.js} +4 -4
- package/dist/chunks/{aisdk-native-vhbgy75s.js → repository-xjmr3883.js} +6 -6
- package/dist/chunks/{aisdk-native-cxvbe4d1.js → repository-xp6wb0v9.js} +23 -23
- package/dist/chunks/{aisdk-native-21vc9929.js → repository-xqzn0vp7.js} +9 -9
- package/dist/chunks/{aisdk-native-em766tcz.js → repository-y1b098n8.js} +9 -9
- package/dist/chunks/{aisdk-native-y1fvbwt7.js → repository-y1fvbwt7.js} +1 -1
- package/dist/chunks/{aisdk-native-btm2ep20.js → repository-y5pstp70.js} +6 -6
- package/dist/chunks/{aisdk-native-y71avatq.js → repository-y71avatq.js} +1 -1
- package/dist/chunks/{aisdk-native-tmmjahvp.js → repository-y973e7aq.js} +13 -13
- package/dist/chunks/{aisdk-native-2scecyhc.js → repository-yahs3f01.js} +43 -43
- package/dist/chunks/{aisdk-native-2q85qjqp.js → repository-yjknk9j9.js} +3 -3
- package/dist/chunks/{aisdk-native-h05a6ep0.js → repository-ykpr0q7c.js} +38 -38
- package/dist/chunks/{aisdk-native-yrhqyw5v.js → repository-yrhqyw5v.js} +1 -1
- package/dist/chunks/{aisdk-native-yrznvahk.js → repository-yrznvahk.js} +2 -2
- package/dist/chunks/{aisdk-native-qb9gpeer.js → repository-yz39bey7.js} +27 -27
- package/dist/chunks/{aisdk-native-z0bkrqjs.js → repository-z0bkrqjs.js} +1 -1
- package/dist/chunks/{aisdk-native-xmvvg8ty.js → repository-z0xnky3q.js} +29 -29
- package/dist/chunks/{aisdk-native-z63w68vq.js → repository-z63w68vq.js} +2 -2
- package/dist/chunks/{aisdk-native-p2fyeaa4.js → repository-za4pw5w1.js} +8 -8
- package/dist/chunks/{aisdk-native-70d2s7af.js → repository-zc2xj3qj.js} +1 -1
- package/dist/chunks/{aisdk-native-as531t2x.js → repository-zdwyj9y5.js} +37 -37
- package/dist/chunks/{aisdk-native-zeh9ct20.js → repository-zeh9ct20.js} +2 -2
- package/dist/chunks/{aisdk-native-zr2ceqn5.js → repository-zr2ceqn5.js} +1 -1
- package/dist/chunks/{aisdk-native-hzekcpqj.js → repository-zr3d0gxg.js} +19 -19
- package/dist/chunks/{aisdk-native-dp3vq9x5.js → repository-ztky2hbm.js} +18 -18
- package/dist/chunks/{aisdk-native-cry8ta6n.js → repository-ztwfyng4.js} +4 -4
- package/dist/chunks/{aisdk-native-zxq2ej10.js → repository-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +80 -80
- package/dist/config/discovery.js +78 -78
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +86 -86
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +115 -115
- package/dist/config/plugin/provider.js +114 -114
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +98 -98
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +118 -118
- package/dist/config/plugin/tool-output.js +116 -116
- package/dist/config/plugin/websearch.js +114 -114
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +120 -120
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +69 -69
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -361
- 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 +89 -89
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +91 -91
- 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 +73 -73
- package/dist/file-access.js +100 -100
- package/dist/file-mutation.js +90 -90
- 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 +2 -2
- package/dist/filesystem/location-watcher.js +217 -217
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +100 -100
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +97 -97
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +83 -83
- package/dist/generate.js +92 -92
- package/dist/git.js +7 -7
- 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 +3 -3
- 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 +352 -352
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +83 -83
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- 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 +134 -134
- package/dist/location-mutation.js +100 -100
- package/dist/location-service-map.js +84 -84
- package/dist/location-services.js +349 -349
- package/dist/location.js +85 -85
- package/dist/mcp/client.js +87 -87
- package/dist/mcp/index.js +102 -102
- package/dist/mcp/instructions.js +121 -121
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +86 -86
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +87 -87
- package/dist/model.js +8 -8
- package/dist/models-dev.js +87 -87
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +75 -75
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +101 -101
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +98 -98
- package/dist/plugin/command.js +95 -95
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +214 -214
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +323 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +98 -98
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/azure.js +119 -119
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +115 -115
- package/dist/plugin/provider/digitalocean.js +80 -80
- 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 +81 -81
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +116 -116
- package/dist/plugin/provider/modal.js +80 -80
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +118 -118
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +81 -81
- package/dist/plugin/provider/opencode.js +80 -80
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +118 -118
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +118 -118
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +157 -157
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +342 -342
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +83 -83
- package/dist/plugin/vcs/hg.js +83 -83
- package/dist/plugin/warming.js +113 -113
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +5 -5
- 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 +85 -85
- package/dist/reference.js +87 -87
- package/dist/repository-cache.js +77 -77
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +82 -82
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +128 -128
- package/dist/session/context.js +148 -148
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -220
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +147 -147
- 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 +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +89 -89
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +114 -114
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +127 -127
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +101 -101
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +86 -86
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +87 -87
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -111
- package/dist/session/runner/step.js +122 -122
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +99 -99
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +204 -204
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +152 -152
- package/dist/session/to-session-error.js +108 -108
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +206 -206
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +103 -103
- package/dist/skill.js +106 -106
- package/dist/snapshot.js +89 -89
- 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 +116 -116
- package/dist/tool/plugin/edit.js +116 -116
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- package/dist/tool/plugin/grep.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +118 -118
- package/dist/tool/plugin/question.js +99 -99
- package/dist/tool/plugin/read.js +122 -122
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +109 -109
- package/dist/tool/plugin/subagent.js +215 -215
- package/dist/tool/plugin/webfetch.js +104 -104
- package/dist/tool/plugin/websearch.js +108 -108
- package/dist/tool/plugin/write.js +118 -118
- package/dist/tool/read-filesystem.js +97 -97
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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 +3 -3
- 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 +4 -4
- 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/vcs/patch.js +1 -1
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +341 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +92 -92
- package/package.json +8 -8
- package/dist/chunks/aisdk-native-0mesazry.js +0 -4
- package/dist/chunks/aisdk-native-1x11rq2a.js +0 -18
- package/dist/chunks/aisdk-native-ees1bheg.js +0 -22
- package/dist/chunks/aisdk-native-sembr0kd.js +0 -462
- package/dist/chunks/aisdk-native-zzet69ff.js +0 -247
- /package/dist/chunks/{aisdk-native-0qkdqm5v.js → repository-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{aisdk-native-0zkw76rk.js → repository-0zkw76rk.js} +0 -0
- /package/dist/chunks/{aisdk-native-17cy0kzp.js → repository-17cy0kzp.js} +0 -0
- /package/dist/chunks/{aisdk-native-1cnp2v09.js → repository-1cnp2v09.js} +0 -0
- /package/dist/chunks/{aisdk-native-1kg9ymc8.js → repository-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{aisdk-native-2710q6r3.js → repository-2710q6r3.js} +0 -0
- /package/dist/chunks/{aisdk-native-2axfhc9x.js → repository-2axfhc9x.js} +0 -0
- /package/dist/chunks/{aisdk-native-2c3vjs8z.js → repository-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{aisdk-native-359p4xyc.js → repository-359p4xyc.js} +0 -0
- /package/dist/chunks/{aisdk-native-3asan66x.js → repository-3asan66x.js} +0 -0
- /package/dist/chunks/{aisdk-native-3v8g72cx.js → repository-3v8g72cx.js} +0 -0
- /package/dist/chunks/{aisdk-native-3w5fmr99.js → repository-3w5fmr99.js} +0 -0
- /package/dist/chunks/{aisdk-native-3wcehsnq.js → repository-3wcehsnq.js} +0 -0
- /package/dist/chunks/{aisdk-native-43n2bw4t.js → repository-43n2bw4t.js} +0 -0
- /package/dist/chunks/{aisdk-native-4knz6hnm.js → repository-4knz6hnm.js} +0 -0
- /package/dist/chunks/{aisdk-native-4vcrnpx2.js → repository-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{aisdk-native-4y7fprxs.js → repository-4y7fprxs.js} +0 -0
- /package/dist/chunks/{aisdk-native-53557ph1.js → repository-53557ph1.js} +0 -0
- /package/dist/chunks/{aisdk-native-550bvhaj.js → repository-550bvhaj.js} +0 -0
- /package/dist/chunks/{aisdk-native-6prwharc.js → repository-6prwharc.js} +0 -0
- /package/dist/chunks/{aisdk-native-7akdwqpd.js → repository-7akdwqpd.js} +0 -0
- /package/dist/chunks/{aisdk-native-7m9af43g.js → repository-7m9af43g.js} +0 -0
- /package/dist/chunks/{aisdk-native-822emrt2.js → repository-822emrt2.js} +0 -0
- /package/dist/chunks/{aisdk-native-88xbtdfr.js → repository-88xbtdfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-8n3pysct.js → repository-8n3pysct.js} +0 -0
- /package/dist/chunks/{aisdk-native-922hggd3.js → repository-922hggd3.js} +0 -0
- /package/dist/chunks/{aisdk-native-9a4afbnw.js → repository-9a4afbnw.js} +0 -0
- /package/dist/chunks/{aisdk-native-9rqn6x4v.js → repository-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{aisdk-native-a6k6eb26.js → repository-a6k6eb26.js} +0 -0
- /package/dist/chunks/{aisdk-native-af5trqkr.js → repository-af5trqkr.js} +0 -0
- /package/dist/chunks/{aisdk-native-afrmfg78.js → repository-afrmfg78.js} +0 -0
- /package/dist/chunks/{aisdk-native-aqzs7mqg.js → repository-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{aisdk-native-atq7p7m5.js → repository-atq7p7m5.js} +0 -0
- /package/dist/chunks/{aisdk-native-bkyjaxrp.js → repository-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{aisdk-native-bmr6ed5q.js → repository-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{aisdk-native-cf4snx6d.js → repository-cf4snx6d.js} +0 -0
- /package/dist/chunks/{aisdk-native-cvy3z8tj.js → repository-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9fn303g.js → repository-d9fn303g.js} +0 -0
- /package/dist/chunks/{aisdk-native-d9jj8t3e.js → repository-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{aisdk-native-dajrwvna.js → repository-dajrwvna.js} +0 -0
- /package/dist/chunks/{aisdk-native-dap0rakb.js → repository-dap0rakb.js} +0 -0
- /package/dist/chunks/{aisdk-native-df08tz66.js → repository-df08tz66.js} +0 -0
- /package/dist/chunks/{aisdk-native-dy18nga0.js → repository-dy18nga0.js} +0 -0
- /package/dist/chunks/{aisdk-native-e5kj55wp.js → repository-e5kj55wp.js} +0 -0
- /package/dist/chunks/{aisdk-native-e73j6tqm.js → repository-e73j6tqm.js} +0 -0
- /package/dist/chunks/{aisdk-native-ec1grn59.js → repository-ec1grn59.js} +0 -0
- /package/dist/chunks/{aisdk-native-eh3zwz77.js → repository-eh3zwz77.js} +0 -0
- /package/dist/chunks/{aisdk-native-emrn6kk6.js → repository-emrn6kk6.js} +0 -0
- /package/dist/chunks/{aisdk-native-f0mxakyp.js → repository-f0mxakyp.js} +0 -0
- /package/dist/chunks/{aisdk-native-f6n9ztr4.js → repository-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{aisdk-native-faypxj3z.js → repository-faypxj3z.js} +0 -0
- /package/dist/chunks/{aisdk-native-fd410y7t.js → repository-fd410y7t.js} +0 -0
- /package/dist/chunks/{aisdk-native-fxgpk5d8.js → repository-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{aisdk-native-g4wezp1m.js → repository-g4wezp1m.js} +0 -0
- /package/dist/chunks/{aisdk-native-g86h250q.js → repository-g86h250q.js} +0 -0
- /package/dist/chunks/{aisdk-native-gebd4c9n.js → repository-gebd4c9n.js} +0 -0
- /package/dist/chunks/{aisdk-native-gftt206x.js → repository-gftt206x.js} +0 -0
- /package/dist/chunks/{aisdk-native-hjbc5kem.js → repository-hjbc5kem.js} +0 -0
- /package/dist/chunks/{aisdk-native-hk9envan.js → repository-hk9envan.js} +0 -0
- /package/dist/chunks/{aisdk-native-hrnqkpcd.js → repository-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{aisdk-native-j2ntwpah.js → repository-j2ntwpah.js} +0 -0
- /package/dist/chunks/{aisdk-native-j5zkgpj8.js → repository-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{aisdk-native-jr7sbwjy.js → repository-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{aisdk-native-jwfs4k6c.js → repository-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{aisdk-native-jzg6c2d5.js → repository-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{aisdk-native-mp448xyj.js → repository-mp448xyj.js} +0 -0
- /package/dist/chunks/{aisdk-native-msx8hqn2.js → repository-msx8hqn2.js} +0 -0
- /package/dist/chunks/{aisdk-native-n05xt0ee.js → repository-n05xt0ee.js} +0 -0
- /package/dist/chunks/{aisdk-native-n3j8tn72.js → repository-n3j8tn72.js} +0 -0
- /package/dist/chunks/{aisdk-native-njntx4h6.js → repository-njntx4h6.js} +0 -0
- /package/dist/chunks/{aisdk-native-paphc93g.js → repository-paphc93g.js} +0 -0
- /package/dist/chunks/{aisdk-native-q3sfg36h.js → repository-q3sfg36h.js} +0 -0
- /package/dist/chunks/{aisdk-native-q74kybfr.js → repository-q74kybfr.js} +0 -0
- /package/dist/chunks/{aisdk-native-qaymkmh1.js → repository-qaymkmh1.js} +0 -0
- /package/dist/chunks/{aisdk-native-qb87gjwd.js → repository-qb87gjwd.js} +0 -0
- /package/dist/chunks/{aisdk-native-qfa1cgps.js → repository-qfa1cgps.js} +0 -0
- /package/dist/chunks/{aisdk-native-qrg20bc0.js → repository-qrg20bc0.js} +0 -0
- /package/dist/chunks/{aisdk-native-rcb2kzg1.js → repository-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{aisdk-native-sdp7kfr6.js → repository-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{aisdk-native-sk3qaz4a.js → repository-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{aisdk-native-ssg3fenm.js → repository-ssg3fenm.js} +0 -0
- /package/dist/chunks/{aisdk-native-twg0f83k.js → repository-twg0f83k.js} +0 -0
- /package/dist/chunks/{aisdk-native-w803qqfp.js → repository-w803qqfp.js} +0 -0
- /package/dist/chunks/{aisdk-native-wer8tq1h.js → repository-wer8tq1h.js} +0 -0
- /package/dist/chunks/{aisdk-native-wtztk69x.js → repository-wtztk69x.js} +0 -0
- /package/dist/chunks/{aisdk-native-x0ckcb58.js → repository-x0ckcb58.js} +0 -0
- /package/dist/chunks/{aisdk-native-x61499pn.js → repository-x61499pn.js} +0 -0
- /package/dist/chunks/{aisdk-native-y44na4kk.js → repository-y44na4kk.js} +0 -0
- /package/dist/chunks/{aisdk-native-y6f0p4jw.js → repository-y6f0p4jw.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8cydn3q.js → repository-y8cydn3q.js} +0 -0
- /package/dist/chunks/{aisdk-native-y8f7s663.js → repository-y8f7s663.js} +0 -0
- /package/dist/chunks/{aisdk-native-ygaqb7jw.js → repository-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{aisdk-native-ym463w8f.js → repository-ym463w8f.js} +0 -0
- /package/dist/chunks/{aisdk-native-z9919s4g.js → repository-z9919s4g.js} +0 -0
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service68,
|
|
9
|
+
node72
|
|
10
|
+
} from "./repository-1gnhqkth.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service66,
|
|
13
|
+
node70
|
|
14
|
+
} from "./repository-6wjjjhy6.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./repository-kg06axw8.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./repository-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error4,
|
|
26
|
+
ID: () => ID6,
|
|
27
|
+
Service: () => Service47,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node52,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID6 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error4 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service47 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service47, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service68;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service66;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error4({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error4({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID6.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -122,25 +122,25 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
122
122
|
for (const [file, snapshot] of input.files) {
|
|
123
123
|
const absolute = path.resolve(worktree, file);
|
|
124
124
|
if (!FSUtil.contains(worktree, absolute))
|
|
125
|
-
return yield* new
|
|
125
|
+
return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
126
126
|
files.set(file, TreeID2.make(snapshot));
|
|
127
127
|
}
|
|
128
128
|
return files;
|
|
129
129
|
});
|
|
130
130
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
131
131
|
if (!enabled())
|
|
132
|
-
return yield* new
|
|
132
|
+
return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
|
|
133
133
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
134
134
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service47.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
137
137
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
138
|
-
var
|
|
139
|
-
service:
|
|
138
|
+
var node52 = makeLocationNode({
|
|
139
|
+
service: Service47,
|
|
140
140
|
layer,
|
|
141
|
-
deps: [FSUtil.node,
|
|
141
|
+
deps: [FSUtil.node, node72, Global.node, node70]
|
|
142
142
|
});
|
|
143
|
-
var
|
|
143
|
+
var noopLayer2 = Layer.succeed(Service47, Service47.of({
|
|
144
144
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
145
145
|
reload: () => Effect.void,
|
|
146
146
|
capture: () => Effect.undefined,
|
|
@@ -149,13 +149,13 @@ var noopLayer3 = Layer.succeed(Service53, Service53.of({
|
|
|
149
149
|
restore: () => Effect.void
|
|
150
150
|
}));
|
|
151
151
|
function failure(operation, cause) {
|
|
152
|
-
if (cause instanceof
|
|
152
|
+
if (cause instanceof Error4 && cause.operation === operation)
|
|
153
153
|
return cause;
|
|
154
|
-
return new
|
|
154
|
+
return new Error4({
|
|
155
155
|
operation,
|
|
156
156
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
157
157
|
cause
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export {
|
|
161
|
+
export { ID6, Error4, Service47, node52, noopLayer2, exports_snapshot2 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service78,
|
|
4
|
+
node83
|
|
5
|
+
} from "./repository-x6rcf4cj.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service63,
|
|
8
|
+
node67
|
|
9
|
+
} from "./repository-ksjan0t5.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event11,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service46,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node51,
|
|
26
26
|
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service46 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event11 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
@@ -75,10 +75,10 @@ var resolveEntry = Effect.fnUntraced(function* (entry, variables) {
|
|
|
75
75
|
});
|
|
76
76
|
var sourcesKey = "wellknown:sources";
|
|
77
77
|
var Sources = Schema.Array(Schema.String);
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
79
79
|
const http = yield* HttpClient.HttpClient;
|
|
80
|
-
const kv = yield*
|
|
81
|
-
const bus = yield*
|
|
80
|
+
const kv = yield* Service63;
|
|
81
|
+
const bus = yield* Service78;
|
|
82
82
|
const cache = yield* Ref.make(new Map);
|
|
83
83
|
const lock = Semaphore.makeUnsafe(1);
|
|
84
84
|
const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
|
|
@@ -109,10 +109,10 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
109
109
|
if (!changed)
|
|
110
110
|
return false;
|
|
111
111
|
yield* Ref.set(cache, next);
|
|
112
|
-
yield* bus.publish(
|
|
112
|
+
yield* bus.publish(Event11.Updated, {});
|
|
113
113
|
return true;
|
|
114
114
|
}, (effect) => lock.withPermit(effect));
|
|
115
|
-
return
|
|
115
|
+
return Service46.of({
|
|
116
116
|
entries: load,
|
|
117
117
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
118
118
|
refresh,
|
|
@@ -125,7 +125,7 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
125
125
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
126
126
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
127
127
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event11.Updated, {});
|
|
129
129
|
return entry;
|
|
130
130
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
131
131
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -138,11 +138,11 @@ var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
|
138
138
|
next.delete(origin);
|
|
139
139
|
return next;
|
|
140
140
|
});
|
|
141
|
-
yield* bus.publish(
|
|
141
|
+
yield* bus.publish(Event11.Updated, {});
|
|
142
142
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
143
143
|
resolve: Effect.fn("WellKnown.resolveEntry")((entry, variables) => resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http)))
|
|
144
144
|
});
|
|
145
145
|
}));
|
|
146
|
-
var
|
|
146
|
+
var node51 = makeGlobalNode({ service: Service46, layer, deps: [httpClient, node67, node83] });
|
|
147
147
|
|
|
148
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
148
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service46, Event11, inspect2, resolve2, node51, exports_wellknown };
|
|
@@ -2,45 +2,45 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./repository-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service66
|
|
8
|
+
} from "./repository-6wjjjhy6.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service65
|
|
11
|
+
} from "./repository-3mdgf1e2.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service14
|
|
14
|
+
} from "./repository-58e8mpmb.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
Service22,
|
|
17
17
|
readText2,
|
|
18
18
|
syncTextBom2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./repository-h0gkjmvb.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service58
|
|
22
|
+
} from "./repository-ykpr0q7c.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
Service19,
|
|
25
25
|
resolvePath2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./repository-pvp1cs2e.js";
|
|
27
27
|
import {
|
|
28
28
|
fileDiff2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./repository-6prwharc.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./repository-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/patch.ts
|
|
35
35
|
var exports_patch = {};
|
|
36
36
|
__export(exports_patch, {
|
|
37
37
|
Applied: () => Applied2,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
38
|
+
Input: () => Input12,
|
|
39
|
+
Output: () => Output8,
|
|
40
40
|
PatchTool: () => exports_patch,
|
|
41
|
-
Plugin: () =>
|
|
42
|
-
name: () =>
|
|
43
|
-
toModelContent: () =>
|
|
41
|
+
Plugin: () => Plugin30,
|
|
42
|
+
name: () => name12,
|
|
43
|
+
toModelContent: () => toModelContent6
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai";
|
|
46
46
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
@@ -85,8 +85,8 @@ It is important to remember:
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
// src/tool/plugin/patch.ts
|
|
88
|
-
var
|
|
89
|
-
var
|
|
88
|
+
var name12 = "patch";
|
|
89
|
+
var Input12 = Schema.Struct({
|
|
90
90
|
patchText: Schema.String.annotate({
|
|
91
91
|
description: "The full patch text describing add, update, and delete operations"
|
|
92
92
|
})
|
|
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
|
|
|
96
96
|
resource: Schema.String,
|
|
97
97
|
target: Schema.String
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var Output8 = Schema.Struct({
|
|
100
100
|
applied: Schema.Array(Applied2),
|
|
101
101
|
files: Schema.Array(FileDiff.Info)
|
|
102
102
|
});
|
|
103
|
-
var
|
|
103
|
+
var toModelContent6 = (output) => [
|
|
104
104
|
"Success. Updated the following files:",
|
|
105
105
|
...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
|
|
106
106
|
].join(`
|
|
107
107
|
`);
|
|
108
|
-
var
|
|
108
|
+
var Plugin30 = {
|
|
109
109
|
id: "opencode.tool.patch",
|
|
110
110
|
effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const access = yield*
|
|
113
|
-
const fileMutation = yield*
|
|
114
|
-
const formatter = yield*
|
|
115
|
-
const location = yield*
|
|
116
|
-
const permission = yield*
|
|
111
|
+
const environment = yield* Service65;
|
|
112
|
+
const access = yield* Service19;
|
|
113
|
+
const fileMutation = yield* Service22;
|
|
114
|
+
const formatter = yield* Service14;
|
|
115
|
+
const location = yield* Service66;
|
|
116
|
+
const permission = yield* Service58;
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name12,
|
|
119
119
|
options: { codemode: false, permission: "edit" },
|
|
120
120
|
description: patch_default,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input12,
|
|
122
|
+
output: Output8,
|
|
123
123
|
execute: (input, context) => {
|
|
124
124
|
const applied = [];
|
|
125
125
|
const parsed = Patch.parse(input.patchText);
|
|
@@ -266,7 +266,7 @@ var Plugin37 = {
|
|
|
266
266
|
return { applied, files };
|
|
267
267
|
}).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
|
|
268
268
|
output,
|
|
269
|
-
content:
|
|
269
|
+
content: toModelContent6(output),
|
|
270
270
|
metadata: { files: output.files }
|
|
271
271
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
|
|
272
272
|
}
|
|
@@ -323,4 +323,4 @@ function trimDiff(diff) {
|
|
|
323
323
|
`);
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
-
export {
|
|
326
|
+
export { name12, Input12, Applied2, Output8, toModelContent6, Plugin30, exports_patch };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service44
|
|
4
|
+
} from "./repository-smnv2tch.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./repository-qsdy395h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-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: () => Plugin14
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin14 = define({
|
|
21
21
|
id: "opencode.config.websearch",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const config = yield*
|
|
23
|
+
const config = yield* Service44;
|
|
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 Plugin17 = define({
|
|
|
32
32
|
})
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { Plugin14, exports_websearch };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID16,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
mergeOverlay2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-pye8sh6e.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/aisdk.ts
|
|
12
12
|
var exports_aisdk = {};
|
|
13
13
|
__export(exports_aisdk, {
|
|
14
14
|
AISDK: () => exports_aisdk,
|
|
15
15
|
InitError: () => InitError2,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service72,
|
|
17
17
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
18
|
+
node: () => node76
|
|
19
19
|
});
|
|
20
20
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -128,7 +128,7 @@ function prepareOptions(model, pkg) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
131
|
-
providerID:
|
|
131
|
+
providerID: ID16,
|
|
132
132
|
cause: Schema.Defect()
|
|
133
133
|
}) {
|
|
134
134
|
}
|
|
@@ -136,9 +136,9 @@ function initError(providerID) {
|
|
|
136
136
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
class
|
|
139
|
+
class Service72 extends Context.Service()("@opencode/AISDK") {
|
|
140
140
|
}
|
|
141
|
-
var locationLayer2 = Layer.effect(
|
|
141
|
+
var locationLayer2 = Layer.effect(Service72, Effect.gen(function* () {
|
|
142
142
|
let sdkHooks = [];
|
|
143
143
|
let languageHooks = [];
|
|
144
144
|
const languages = new Map;
|
|
@@ -176,7 +176,7 @@ var locationLayer2 = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
176
176
|
}
|
|
177
177
|
return event;
|
|
178
178
|
});
|
|
179
|
-
const service =
|
|
179
|
+
const service = Service72.of({
|
|
180
180
|
hook: {
|
|
181
181
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
182
182
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -809,6 +809,6 @@ function providerErrorMessage(error) {
|
|
|
809
809
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
810
810
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
811
811
|
}
|
|
812
|
-
var
|
|
812
|
+
var node76 = makeLocationNode({ service: Service72, layer: locationLayer2, deps: [] });
|
|
813
813
|
|
|
814
|
-
export { InitError2,
|
|
814
|
+
export { InitError2, Service72, locationLayer2, node76, exports_aisdk };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service79
|
|
3
|
+
} from "./repository-8m31s27t.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service52
|
|
6
|
+
} from "./repository-1bvekr7f.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-jqh9b0xq.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-msq0jde0.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-j8g7a3j8.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-g0dr00md.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service28
|
|
21
|
+
} from "./repository-h1rn3ct5.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./repository-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
27
|
var exports_generate = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_generate, {
|
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate3 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
36
|
-
const database = yield*
|
|
35
|
+
const instances = yield* Service52;
|
|
36
|
+
const database = yield* Service79;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service28;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
|