@opencode/core 0.0.0-dev-19399 → 0.0.0-dev-19402
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 +79 -79
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +67 -67
- package/dist/catalog.js +83 -83
- package/dist/chunks/{file-retention-ys9khkza.js → worktree-07gza034.js} +4 -4
- package/dist/chunks/{file-retention-wsp1wrmp.js → worktree-0a6m9zn6.js} +27 -27
- package/dist/chunks/{file-retention-zds35jxt.js → worktree-0bfcx7cw.js} +18 -18
- package/dist/chunks/{file-retention-b9qrp43n.js → worktree-0cj21tsq.js} +7 -7
- package/dist/chunks/{file-retention-dycay7z3.js → worktree-0ddfdf6h.js} +9 -9
- package/dist/chunks/{file-retention-s62ct2st.js → worktree-0hjjfnva.js} +18 -18
- package/dist/chunks/{file-retention-qyc89c7d.js → worktree-0kjjkgrz.js} +4 -4
- package/dist/chunks/{file-retention-h6w9c8ra.js → worktree-0ms7d4ta.js} +13 -13
- package/dist/chunks/{file-retention-0paq2nw3.js → worktree-0paq2nw3.js} +1 -1
- package/dist/chunks/{file-retention-0q0f95c6.js → worktree-0q0f95c6.js} +1 -1
- package/dist/chunks/{file-retention-4t6k5kna.js → worktree-0qzq572y.js} +6 -6
- package/dist/chunks/{file-retention-wk8t53d4.js → worktree-12jxt57q.js} +7 -7
- package/dist/chunks/{file-retention-yp2x3t23.js → worktree-1acjjqhc.js} +4 -4
- package/dist/chunks/{file-retention-t58cf551.js → worktree-1aqychxq.js} +79 -79
- package/dist/chunks/{file-retention-1dazxqgg.js → worktree-1dazxqgg.js} +2 -2
- package/dist/chunks/{file-retention-1eyaby9q.js → worktree-1eyaby9q.js} +2 -2
- package/dist/chunks/{file-retention-as0z8btd.js → worktree-1n39waag.js} +5 -5
- package/dist/chunks/{file-retention-9zswys26.js → worktree-1tjg7tvh.js} +9 -9
- package/dist/chunks/{file-retention-mfqp6xfm.js → worktree-1ygqh575.js} +6 -6
- package/dist/chunks/{file-retention-21r38tys.js → worktree-21r38tys.js} +1 -1
- package/dist/chunks/{file-retention-80kybxvs.js → worktree-22pek6eg.js} +33 -33
- package/dist/chunks/{file-retention-6h73sxmp.js → worktree-2402vzrj.js} +5 -5
- package/dist/chunks/{file-retention-2a5m3afh.js → worktree-2a5m3afh.js} +1 -1
- package/dist/chunks/{file-retention-42932dp7.js → worktree-2t5f0p39.js} +27 -27
- package/dist/chunks/{file-retention-n5mjs6e9.js → worktree-2t5vmbg2.js} +8 -8
- package/dist/chunks/{file-retention-t93xqn98.js → worktree-31n43axm.js} +13 -13
- package/dist/chunks/{file-retention-y0sfg4mt.js → worktree-37fxfkdc.js} +15 -15
- package/dist/chunks/{file-retention-8fyn7nbd.js → worktree-39gq0jsz.js} +12 -12
- package/dist/chunks/{file-retention-r920brwh.js → worktree-3cdjp2z1.js} +6 -6
- package/dist/chunks/{file-retention-64jggb9x.js → worktree-3gvv7fv9.js} +17 -17
- package/dist/chunks/{file-retention-3hepkmqq.js → worktree-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-retention-t399q2xj.js → worktree-3m1vdcah.js} +12 -12
- package/dist/chunks/{file-retention-28wz5byj.js → worktree-3ma48d2q.js} +21 -21
- package/dist/chunks/{file-retention-3smtnn6g.js → worktree-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-retention-3tvqynh2.js → worktree-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-retention-jgn25pc6.js → worktree-47cde2b0.js} +15 -15
- package/dist/chunks/worktree-4arj8dq0.js +462 -0
- package/dist/chunks/{file-retention-68q29sss.js → worktree-4hs0xter.js} +4 -4
- package/dist/chunks/{file-retention-0t7z760j.js → worktree-4rx8c3z8.js} +46 -46
- package/dist/chunks/{file-retention-7qf46qjz.js → worktree-4w6drx90.js} +18 -18
- package/dist/chunks/{file-retention-b527npp7.js → worktree-4zn0m4jw.js} +5 -5
- package/dist/chunks/{file-retention-f26rrdg0.js → worktree-530frpyx.js} +16 -16
- package/dist/chunks/{file-retention-5yes1xn6.js → worktree-5aq7k26p.js} +59 -59
- package/dist/chunks/{file-retention-q3tktawz.js → worktree-5d5n2frr.js} +32 -32
- package/dist/chunks/{file-retention-5daktx2q.js → worktree-5daktx2q.js} +1 -1
- package/dist/chunks/{file-retention-vncycja5.js → worktree-5q02cxx3.js} +4 -4
- package/dist/chunks/{file-retention-8hbfdwcy.js → worktree-5sdemcz3.js} +8 -8
- package/dist/chunks/{file-retention-5t3nmthw.js → worktree-5t3nmthw.js} +2 -2
- package/dist/chunks/{file-retention-4a5dcn9p.js → worktree-5t6qf0dk.js} +11 -11
- package/dist/chunks/{file-retention-669tq793.js → worktree-669tq793.js} +1 -1
- package/dist/chunks/{file-retention-gq3znaq8.js → worktree-68sfsyrr.js} +6 -6
- package/dist/chunks/{file-retention-6jnybvqn.js → worktree-6jnybvqn.js} +2 -2
- package/dist/chunks/{file-retention-6msgmcgs.js → worktree-6msgmcgs.js} +1 -1
- package/dist/chunks/{file-retention-sr2tjpn6.js → worktree-6npnztgt.js} +4 -4
- package/dist/chunks/{file-retention-71q4at8m.js → worktree-71q4at8m.js} +1 -1
- package/dist/chunks/{file-retention-wgczap0h.js → worktree-721cw5cc.js} +4 -4
- package/dist/chunks/{file-retention-73tb2d7t.js → worktree-73tb2d7t.js} +1 -1
- package/dist/chunks/{file-retention-1k2tnacp.js → worktree-75nkg2tt.js} +11 -11
- package/dist/chunks/{file-retention-z7xj2rat.js → worktree-787q5hy4.js} +1 -1
- package/dist/chunks/{file-retention-7bmhse3q.js → worktree-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-retention-7cgw87zy.js → worktree-7d9jba8k.js} +21 -21
- package/dist/chunks/{file-retention-kh9sx4kg.js → worktree-7m5f9412.js} +8 -8
- package/dist/chunks/{file-retention-6pn6hsyv.js → worktree-7x1jk2s0.js} +43 -43
- package/dist/chunks/{file-retention-dy6apmh8.js → worktree-7z7az0f5.js} +4 -4
- package/dist/chunks/{file-retention-9pv0dm11.js → worktree-81swgkk7.js} +9 -9
- package/dist/chunks/{file-retention-b40gkt47.js → worktree-84esvpjp.js} +11 -11
- package/dist/chunks/{file-retention-azbeba8p.js → worktree-87s6j92f.js} +15 -15
- package/dist/chunks/{file-retention-3zqhk2eq.js → worktree-88nd1tx7.js} +23 -23
- package/dist/chunks/{file-retention-mjbqgqxy.js → worktree-89y6ec7x.js} +21 -21
- package/dist/chunks/{file-retention-8d7r5vzw.js → worktree-8d7r5vzw.js} +1 -1
- package/dist/chunks/{file-retention-8g9sv97x.js → worktree-8g9sv97x.js} +7 -7
- package/dist/chunks/{file-retention-avhah0e4.js → worktree-8hyjw9n3.js} +33 -33
- package/dist/chunks/{file-retention-8p4f9s12.js → worktree-8p4f9s12.js} +2 -2
- package/dist/chunks/{file-retention-rz0qknjf.js → worktree-8rkr9qb0.js} +1 -1
- package/dist/chunks/{file-retention-49cgsf1b.js → worktree-8t3tghaa.js} +14 -14
- package/dist/chunks/{file-retention-dqw4nh5k.js → worktree-8tw6vjk5.js} +13 -13
- package/dist/chunks/{file-retention-3fqa324q.js → worktree-9abatgz1.js} +6 -6
- package/dist/chunks/{file-retention-p3ev5vff.js → worktree-9b60vqg3.js} +18 -18
- package/dist/chunks/{file-retention-ywc1rzzj.js → worktree-9df0z3fr.js} +14 -14
- package/dist/chunks/{file-retention-wvcagc7b.js → worktree-9mszsyym.js} +8 -8
- package/dist/chunks/{file-retention-a9x5dmer.js → worktree-9pbhwmzz.js} +35 -35
- package/dist/chunks/{file-retention-ce5fknq2.js → worktree-9w4ppqge.js} +5 -5
- package/dist/chunks/{file-retention-a1bz86dw.js → worktree-a1bz86dw.js} +3 -3
- package/dist/chunks/{file-retention-kmv022h3.js → worktree-a54cm72e.js} +1 -1
- package/dist/chunks/{file-retention-6z5pzs7n.js → worktree-a81erjcz.js} +25 -25
- package/dist/chunks/{file-retention-aaet6srn.js → worktree-aaet6srn.js} +2 -2
- package/dist/chunks/{file-retention-0hrcbwcb.js → worktree-aw7fybkd.js} +5 -5
- package/dist/chunks/{file-retention-b6gygkdw.js → worktree-b6gygkdw.js} +2 -2
- package/dist/chunks/{file-retention-kyk1sghh.js → worktree-b7qepvza.js} +4 -4
- package/dist/chunks/{file-retention-zcrspsvn.js → worktree-baaqp4zd.js} +4 -4
- package/dist/chunks/{file-retention-c89xx54h.js → worktree-bf5zf3k6.js} +23 -23
- package/dist/chunks/{file-retention-bha4atvq.js → worktree-bha4atvq.js} +4 -4
- package/dist/chunks/{file-retention-khze3a3k.js → worktree-bsn55ndq.js} +26 -26
- package/dist/chunks/{file-retention-0ngeez3a.js → worktree-bz2gz0gx.js} +10 -10
- package/dist/chunks/{file-retention-f3ngv102.js → worktree-cavr175a.js} +4 -4
- package/dist/chunks/{file-retention-00mqm9kf.js → worktree-ceanckhm.js} +1 -1
- package/dist/chunks/{file-retention-cfpkc3c9.js → worktree-cfpkc3c9.js} +2 -2
- package/dist/chunks/{file-retention-s6t0rwsm.js → worktree-cwyfgkk1.js} +44 -44
- package/dist/chunks/{file-retention-2ccb660r.js → worktree-d73e9djv.js} +26 -26
- package/dist/chunks/{file-retention-9y2tr22s.js → worktree-d99x89gq.js} +15 -15
- package/dist/chunks/{file-retention-d9sn21bc.js → worktree-d9sn21bc.js} +2 -2
- package/dist/chunks/{file-retention-wa9n8nyq.js → worktree-dep21bfz.js} +2 -2
- package/dist/chunks/{file-retention-mggny1x7.js → worktree-dfzyx3vm.js} +8 -8
- package/dist/chunks/{file-retention-tng3m0ce.js → worktree-dj33xrhc.js} +33 -33
- package/dist/chunks/{file-retention-xn49a5qb.js → worktree-dsk24zyn.js} +24 -24
- package/dist/chunks/worktree-dt3c0xg5.js +22 -0
- package/dist/chunks/worktree-dxj72tfx.js +18 -0
- package/dist/chunks/{file-retention-gzdzd9hw.js → worktree-dz46kn0c.js} +2 -2
- package/dist/chunks/{file-retention-a5axy371.js → worktree-e5sghx2m.js} +2 -2
- package/dist/chunks/{file-retention-qcfsefxz.js → worktree-e7f0s3sx.js} +2 -2
- package/dist/chunks/{file-retention-47gsdddb.js → worktree-e82z9tr0.js} +4 -4
- package/dist/chunks/{file-retention-eaj1djv9.js → worktree-eaj1djv9.js} +1 -1
- package/dist/chunks/{file-retention-jfqtm2ew.js → worktree-edrmdtr5.js} +7 -7
- package/dist/chunks/{file-retention-bqe02a37.js → worktree-efywkr4m.js} +27 -27
- package/dist/chunks/{file-retention-gv5ht3x9.js → worktree-ehzmktfy.js} +20 -20
- package/dist/chunks/{file-retention-2f9a9pt2.js → worktree-enae0pqt.js} +7 -7
- package/dist/chunks/{file-retention-8d7y8amr.js → worktree-et0ngb76.js} +8 -8
- package/dist/chunks/{file-retention-2sc17e8p.js → worktree-etbytr9f.js} +22 -22
- package/dist/chunks/{file-retention-etq0c3wd.js → worktree-etq0c3wd.js} +1 -1
- package/dist/chunks/{file-retention-y7vx5bzy.js → worktree-ex6wht0f.js} +10 -10
- package/dist/chunks/{file-retention-vx5ha92z.js → worktree-f4hvcdyc.js} +16 -16
- package/dist/chunks/{file-retention-epk4gxbx.js → worktree-f59qb7z8.js} +11 -11
- package/dist/chunks/{file-retention-pfn03z7w.js → worktree-f7ng0avf.js} +11 -11
- package/dist/chunks/{file-retention-f828m53h.js → worktree-f828m53h.js} +2 -2
- package/dist/chunks/{file-retention-2zw7ecjk.js → worktree-fan4hwvp.js} +3 -3
- package/dist/chunks/{file-retention-crejgqmn.js → worktree-fbnvfbcr.js} +26 -26
- package/dist/chunks/{file-retention-sxvk7k3m.js → worktree-fdkcz4j4.js} +15 -15
- package/dist/chunks/{file-retention-2xdev6fn.js → worktree-fjsew8y4.js} +38 -38
- package/dist/chunks/{file-retention-sbbkemrk.js → worktree-fmtcp64w.js} +48 -48
- package/dist/chunks/{file-retention-fxbjtjnd.js → worktree-fxbjtjnd.js} +1 -1
- package/dist/chunks/{file-retention-h85c66kh.js → worktree-fxr0k3ej.js} +24 -24
- package/dist/chunks/{file-retention-3n0zfn8x.js → worktree-g1f7p4xr.js} +30 -30
- package/dist/chunks/{file-retention-bs9f176v.js → worktree-g5z572jc.js} +15 -15
- package/dist/chunks/{file-retention-bq1qrpc4.js → worktree-gb17qnes.js} +33 -33
- package/dist/chunks/{file-retention-gd4qta3r.js → worktree-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-retention-gdvy8fx6.js → worktree-gdvy8fx6.js} +1 -1
- package/dist/chunks/{file-retention-hnr5yq9h.js → worktree-gg7pg1rj.js} +5 -5
- package/dist/chunks/{file-retention-9w51vf9e.js → worktree-ggr3x0mq.js} +15 -15
- package/dist/chunks/{file-retention-cqbh4pdx.js → worktree-gqt4stpv.js} +9 -9
- package/dist/chunks/{file-retention-h03wrkyp.js → worktree-h03wrkyp.js} +2 -2
- package/dist/chunks/{file-retention-vmb5wq5w.js → worktree-h1201fn2.js} +20 -20
- package/dist/chunks/{file-retention-h6vf3j39.js → worktree-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-retention-n5er4yqr.js → worktree-hapy5g3w.js} +5 -5
- package/dist/chunks/{file-retention-9ea8tgpj.js → worktree-hcryep5n.js} +9 -9
- package/dist/chunks/{file-retention-tnhmpjvz.js → worktree-hd849z55.js} +3 -3
- package/dist/chunks/{file-retention-nywecryx.js → worktree-hf4cy5d5.js} +11 -11
- package/dist/chunks/{file-retention-hzbc4891.js → worktree-hv82z4gy.js} +9 -9
- package/dist/chunks/{file-retention-dafzyq9v.js → worktree-j47svp76.js} +11 -11
- package/dist/chunks/{file-retention-j56e64zr.js → worktree-j56e64zr.js} +1 -1
- package/dist/chunks/{file-retention-2xd4yy55.js → worktree-j7k24pbc.js} +3 -3
- package/dist/chunks/{file-retention-dagpktc6.js → worktree-j8n86hs1.js} +16 -16
- package/dist/chunks/{file-retention-d892y9cf.js → worktree-jb4hwekh.js} +15 -15
- package/dist/chunks/{file-retention-sxpd662g.js → worktree-jbeqfmv6.js} +24 -24
- package/dist/chunks/{file-retention-jdh6s7jq.js → worktree-jdh6s7jq.js} +1 -1
- package/dist/chunks/{file-retention-6zb5z6tv.js → worktree-jjxpfn67.js} +44 -44
- package/dist/chunks/{file-retention-7wqh3n39.js → worktree-jkzabyxv.js} +8 -8
- package/dist/chunks/{file-retention-46x4mgr1.js → worktree-jnmqjdkf.js} +4 -4
- package/dist/chunks/{file-retention-eaymd3ha.js → worktree-jr0w00x6.js} +40 -40
- package/dist/chunks/{file-retention-mfqd8mcm.js → worktree-jy5v7e4m.js} +17 -17
- package/dist/chunks/{file-retention-xfk4x188.js → worktree-k0kes8vm.js} +20 -20
- package/dist/chunks/{file-retention-q0bhfncr.js → worktree-kexm4n6m.js} +11 -11
- package/dist/chunks/{file-retention-kg06axw8.js → worktree-kg06axw8.js} +1 -1
- package/dist/chunks/{file-retention-cffkaee3.js → worktree-kgxk992x.js} +20 -20
- package/dist/chunks/{file-retention-6q28cnrn.js → worktree-ks9r2606.js} +24 -24
- package/dist/chunks/{file-retention-4066mr2m.js → worktree-kx71qmfd.js} +1 -1
- package/dist/chunks/{file-retention-cyhq2t1m.js → worktree-kyamxspj.js} +6 -6
- package/dist/chunks/{file-retention-yc76z00v.js → worktree-m1m1txre.js} +36 -36
- package/dist/chunks/{file-retention-hwe7x4em.js → worktree-m2manvsf.js} +6 -6
- package/dist/chunks/{file-retention-yj7xg7hy.js → worktree-m2wv8ykr.js} +12 -12
- package/dist/chunks/{file-retention-t69nnh3p.js → worktree-m3g11tvf.js} +4 -4
- package/dist/chunks/{file-retention-m9w0rfyh.js → worktree-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-retention-3szmpfme.js → worktree-mcrth2bg.js} +9 -9
- package/dist/chunks/{file-retention-jwd32b9n.js → worktree-me1mq5zn.js} +23 -23
- package/dist/chunks/{file-retention-mkcjrzeh.js → worktree-mkcjrzeh.js} +1 -1
- package/dist/chunks/{file-retention-45jzk59f.js → worktree-mkyhyqbc.js} +29 -29
- package/dist/chunks/{file-retention-fzbpccza.js → worktree-mmg38rnz.js} +154 -154
- package/dist/chunks/{file-retention-gb71afdr.js → worktree-mw16jd8v.js} +9 -9
- package/dist/chunks/{file-retention-134j3eet.js → worktree-mzbvs37z.js} +7 -7
- package/dist/chunks/{file-retention-c3703spx.js → worktree-n1qkhzt6.js} +15 -15
- package/dist/chunks/{file-retention-t5e54489.js → worktree-n2rf99bc.js} +20 -20
- package/dist/chunks/{file-retention-1e9w7pgh.js → worktree-nbddwgy7.js} +10 -10
- package/dist/chunks/{file-retention-3q5jhvr0.js → worktree-nf98eega.js} +18 -18
- package/dist/chunks/{file-retention-dh5w6jnr.js → worktree-nhpkhfw8.js} +22 -22
- package/dist/chunks/{file-retention-28135z1y.js → worktree-nt7ny3vf.js} +24 -24
- package/dist/chunks/{file-retention-xen8hk45.js → worktree-nx9fcjx2.js} +31 -31
- package/dist/chunks/{file-retention-hxsmq6gn.js → worktree-p1bhyryy.js} +9 -9
- package/dist/chunks/{file-retention-sra9araw.js → worktree-p44d8wdy.js} +5 -5
- package/dist/chunks/{file-retention-6q7bn63r.js → worktree-p6vhw81v.js} +11 -11
- package/dist/chunks/{file-retention-8xy1c3m6.js → worktree-paqdzpve.js} +34 -34
- package/dist/chunks/{file-retention-nqs1mevv.js → worktree-pda56gn5.js} +13 -13
- package/dist/chunks/{file-retention-pjvnvgmy.js → worktree-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-retention-pknna89w.js → worktree-pknna89w.js} +1 -1
- package/dist/chunks/{file-retention-tqn298vm.js → worktree-psyj660w.js} +6 -6
- package/dist/chunks/{file-retention-n8c291r7.js → worktree-pt3jfr41.js} +6 -6
- package/dist/chunks/{file-retention-3bs74w5s.js → worktree-pztj2cvn.js} +14 -14
- package/dist/chunks/{file-retention-q2t36530.js → worktree-q2t36530.js} +2 -2
- package/dist/chunks/{file-retention-ct6nrw4p.js → worktree-q6dht6b8.js} +27 -27
- package/dist/chunks/{file-retention-7dqw4kz8.js → worktree-qgn6gcr1.js} +5 -5
- package/dist/chunks/{file-retention-d6cvva1z.js → worktree-qhrw8p3b.js} +8 -8
- package/dist/chunks/{file-retention-t24p7ex1.js → worktree-qj8a3ybw.js} +4 -4
- package/dist/chunks/{file-retention-qsdy395h.js → worktree-qsdy395h.js} +1 -1
- package/dist/chunks/{file-retention-hd0nvtm3.js → worktree-qsfs49vc.js} +71 -71
- package/dist/chunks/{file-retention-dcj77ap2.js → worktree-qvgcjadf.js} +1 -1
- package/dist/chunks/{file-retention-qwkytnft.js → worktree-qwkytnft.js} +3 -3
- package/dist/chunks/{file-retention-rfnzy394.js → worktree-rfnzy394.js} +1 -1
- package/dist/chunks/{file-retention-48dytv8w.js → worktree-rq2m1hnf.js} +13 -13
- package/dist/chunks/{file-retention-21ryf78v.js → worktree-rzse8s8s.js} +24 -24
- package/dist/chunks/{file-retention-xfr3vftw.js → worktree-sdva1t93.js} +22 -22
- package/dist/chunks/{file-retention-t8scngtx.js → worktree-sfbj4knz.js} +9 -9
- package/dist/chunks/{file-retention-f20n632k.js → worktree-swqq1grb.js} +1 -1
- package/dist/chunks/{file-retention-c3kepfq8.js → worktree-sxc4n3b4.js} +1 -1
- package/dist/chunks/{file-retention-3w0fmcng.js → worktree-t0fxg8b9.js} +5 -5
- package/dist/chunks/{file-retention-mtbzr4rz.js → worktree-t0msmdsn.js} +16 -16
- package/dist/chunks/{file-retention-twy35tz0.js → worktree-t0x5rdq8.js} +9 -9
- package/dist/chunks/{file-retention-sgvet7nx.js → worktree-t5sxkdg8.js} +30 -30
- package/dist/chunks/{file-retention-93nrt0m8.js → worktree-t7pm3pdd.js} +14 -14
- package/dist/chunks/{file-retention-kvx48ts1.js → worktree-t7xstbkq.js} +4 -4
- package/dist/chunks/{file-retention-8zpsgj2b.js → worktree-t8k0wgen.js} +15 -15
- package/dist/chunks/{file-retention-tazgh4e4.js → worktree-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-retention-3gfm5d6h.js → worktree-tby7n86s.js} +40 -40
- package/dist/chunks/{file-retention-tcezcvh9.js → worktree-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-retention-tdstcens.js → worktree-tdstcens.js} +1 -1
- package/dist/chunks/{file-retention-668fh7ad.js → worktree-tezvarmp.js} +9 -9
- package/dist/chunks/{file-retention-kdde0hy3.js → worktree-tfj258z8.js} +26 -26
- package/dist/chunks/{file-retention-gv6a8nnw.js → worktree-th5km1p3.js} +5 -5
- package/dist/chunks/{file-retention-yfw68w0d.js → worktree-trwfvtm6.js} +16 -16
- package/dist/chunks/{file-retention-tvtrv512.js → worktree-tvtrv512.js} +1 -1
- package/dist/chunks/{file-retention-bjgxqrgx.js → worktree-txqj87x6.js} +23 -23
- package/dist/chunks/{file-retention-n0d0h331.js → worktree-ty151b2e.js} +12 -12
- package/dist/chunks/{file-retention-qr8hg4qd.js → worktree-vdehrbvs.js} +33 -33
- package/dist/chunks/{file-retention-veqvce7d.js → worktree-veqvce7d.js} +1 -1
- package/dist/chunks/{file-retention-1827chwd.js → worktree-vh076mqk.js} +13 -13
- package/dist/chunks/{file-retention-ymqytbem.js → worktree-vvgctfdq.js} +12 -12
- package/dist/chunks/{file-retention-vzcthcp8.js → worktree-vzcthcp8.js} +1 -1
- package/dist/chunks/{file-retention-sgwh5nyn.js → worktree-w1ad28wa.js} +8 -8
- package/dist/chunks/{file-retention-w620p5yr.js → worktree-w1cjc361.js} +15 -15
- package/dist/chunks/{file-retention-w1k39n5e.js → worktree-w1k39n5e.js} +1 -1
- package/dist/chunks/{file-retention-zv9rb9jf.js → worktree-w2pgmj82.js} +9 -9
- package/dist/chunks/{file-retention-w3wsvvr9.js → worktree-w3wsvvr9.js} +1 -1
- package/dist/chunks/worktree-w6vhhse3.js +247 -0
- package/dist/chunks/{file-retention-wd87259q.js → worktree-wd87259q.js} +1 -1
- package/dist/chunks/{file-retention-czg3njfj.js → worktree-wnbnthsg.js} +5 -5
- package/dist/chunks/{file-retention-5rg25712.js → worktree-wtkpn8tp.js} +4 -4
- package/dist/chunks/{file-retention-6jpkznw2.js → worktree-x05hx5mx.js} +3 -3
- package/dist/chunks/{file-retention-x1ezjp6w.js → worktree-x1ezjp6w.js} +1 -1
- package/dist/chunks/{file-retention-gw4m2xfm.js → worktree-x3af3qht.js} +9 -9
- package/dist/chunks/{file-retention-asmz7wyz.js → worktree-x3et2xth.js} +8 -8
- package/dist/chunks/{file-retention-x43y2vfs.js → worktree-x43y2vfs.js} +2 -2
- package/dist/chunks/{file-retention-4b4nd6ae.js → worktree-xb08yn7h.js} +26 -26
- package/dist/chunks/{file-retention-q6c7we53.js → worktree-xhm4y6wv.js} +30 -30
- package/dist/chunks/{file-retention-bkew1va1.js → worktree-xjgcvsjt.js} +20 -20
- package/dist/chunks/{file-retention-9j3xz1zz.js → worktree-xkskprjp.js} +25 -25
- package/dist/chunks/{file-retention-xwy71eq2.js → worktree-xvarwbkw.js} +6 -6
- package/dist/chunks/{file-retention-y1fvbwt7.js → worktree-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-retention-5we933ec.js → worktree-y2a9qway.js} +11 -11
- package/dist/chunks/{file-retention-3473k6gv.js → worktree-y2e61msj.js} +34 -34
- package/dist/chunks/{file-retention-qtkc3jn9.js → worktree-y6qp2ybc.js} +30 -30
- package/dist/chunks/{file-retention-y71avatq.js → worktree-y71avatq.js} +1 -1
- package/dist/chunks/{file-retention-kpxhgmm5.js → worktree-y91xqvp5.js} +9 -9
- package/dist/chunks/{file-retention-92fdtcd2.js → worktree-yefxppqx.js} +19 -19
- package/dist/chunks/{file-retention-qqtwvk4z.js → worktree-yr02nea7.js} +6 -6
- package/dist/chunks/{file-retention-yrhqyw5v.js → worktree-yrhqyw5v.js} +1 -1
- package/dist/chunks/{file-retention-yrznvahk.js → worktree-yrznvahk.js} +2 -2
- package/dist/chunks/{file-retention-119b7byg.js → worktree-yse482wb.js} +2 -2
- package/dist/chunks/{file-retention-z0bkrqjs.js → worktree-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-retention-cvktwkpw.js → worktree-z1cvmk2p.js} +10 -10
- package/dist/chunks/{file-retention-64fks2yw.js → worktree-z2333xw5.js} +10 -10
- package/dist/chunks/{file-retention-dezkjabv.js → worktree-z5vzydcd.js} +43 -43
- package/dist/chunks/{file-retention-z63w68vq.js → worktree-z63w68vq.js} +2 -2
- package/dist/chunks/worktree-z926abd4.js +4 -0
- package/dist/chunks/{file-retention-79r1wrqa.js → worktree-z92e5j38.js} +1 -1
- package/dist/chunks/{file-retention-3pbjq009.js → worktree-za9cx4qh.js} +8 -8
- package/dist/chunks/{file-retention-0c7cgf78.js → worktree-zbxt5nxa.js} +15 -15
- package/dist/chunks/{file-retention-sxjpata1.js → worktree-zc2n0ndy.js} +13 -13
- package/dist/chunks/{file-retention-zeh9ct20.js → worktree-zeh9ct20.js} +2 -2
- package/dist/chunks/{file-retention-3xgpxwfp.js → worktree-zez8w2s0.js} +28 -28
- package/dist/chunks/{file-retention-sb3f9prf.js → worktree-zgcjn2bs.js} +21 -21
- package/dist/chunks/{file-retention-zr2ceqn5.js → worktree-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-retention-zxq2ej10.js → worktree-zxq2ej10.js} +1 -1
- package/dist/chunks/{file-retention-j0bxb4ah.js → worktree-zznp8j5v.js} +3 -3
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +117 -117
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +64 -64
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +362 -362
- 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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- 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 +68 -68
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- 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 +6 -6
- package/dist/filesystem/location-watcher.js +222 -222
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +96 -96
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +82 -82
- package/dist/generate.js +91 -91
- 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 +7 -7
- 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 +2 -2
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +353 -353
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +86 -86
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +127 -127
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +350 -350
- package/dist/location.js +82 -82
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +97 -97
- package/dist/mcp/instructions.js +122 -122
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +10 -10
- package/dist/models-dev.js +84 -84
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +70 -70
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +94 -94
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +1 -1
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +324 -324
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +97 -97
- 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/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- 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 +80 -80
- 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 +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +78 -78
- package/dist/plugin/provider/opencode.js +79 -79
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +76 -76
- 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 +117 -117
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +70 -70
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +341 -341
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +7 -7
- 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 +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +83 -83
- package/dist/provider.js +3 -3
- 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 +92 -92
- package/dist/reference/instructions.js +82 -82
- package/dist/reference.js +84 -84
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +129 -129
- package/dist/session/context.js +147 -147
- 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 +213 -213
- package/dist/session/execution.js +124 -124
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +119 -119
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +79 -79
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +149 -149
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +210 -210
- package/dist/session/usage.js +1 -1
- package/dist/session.js +205 -205
- 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 +133 -133
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +102 -102
- package/dist/skill.js +107 -107
- package/dist/snapshot.js +88 -88
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +121 -121
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +115 -115
- package/dist/tool/plugin/question.js +98 -98
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +108 -108
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +105 -105
- package/dist/tool/plugin/websearch.js +109 -109
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +7 -7
- 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 +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 +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 +85 -85
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +75 -75
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/refresh.js +342 -342
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +89 -89
- package/package.json +8 -8
- package/dist/chunks/file-retention-1tmdjs9t.js +0 -462
- package/dist/chunks/file-retention-5ame8c7x.js +0 -247
- package/dist/chunks/file-retention-jqh9b0xq.js +0 -18
- package/dist/chunks/file-retention-qapv375x.js +0 -4
- package/dist/chunks/file-retention-vmv0g9k6.js +0 -22
- /package/dist/chunks/{file-retention-0qkdqm5v.js → worktree-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-retention-0zkw76rk.js → worktree-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-retention-17cy0kzp.js → worktree-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-retention-1cnp2v09.js → worktree-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-retention-1kg9ymc8.js → worktree-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-retention-2710q6r3.js → worktree-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-retention-2axfhc9x.js → worktree-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-retention-2c3vjs8z.js → worktree-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-retention-359p4xyc.js → worktree-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-retention-3asan66x.js → worktree-3asan66x.js} +0 -0
- /package/dist/chunks/{file-retention-3v8g72cx.js → worktree-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-retention-3w5fmr99.js → worktree-3w5fmr99.js} +0 -0
- /package/dist/chunks/{file-retention-3wcehsnq.js → worktree-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-retention-43n2bw4t.js → worktree-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-retention-4knz6hnm.js → worktree-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-retention-4vcrnpx2.js → worktree-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-retention-4y7fprxs.js → worktree-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-retention-53557ph1.js → worktree-53557ph1.js} +0 -0
- /package/dist/chunks/{file-retention-550bvhaj.js → worktree-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-retention-6prwharc.js → worktree-6prwharc.js} +0 -0
- /package/dist/chunks/{file-retention-7akdwqpd.js → worktree-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-retention-7m9af43g.js → worktree-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-retention-822emrt2.js → worktree-822emrt2.js} +0 -0
- /package/dist/chunks/{file-retention-88xbtdfr.js → worktree-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-retention-8n3pysct.js → worktree-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-retention-922hggd3.js → worktree-922hggd3.js} +0 -0
- /package/dist/chunks/{file-retention-9a4afbnw.js → worktree-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-retention-9rqn6x4v.js → worktree-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-retention-a6k6eb26.js → worktree-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-retention-af5trqkr.js → worktree-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-retention-afrmfg78.js → worktree-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-retention-aqzs7mqg.js → worktree-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-retention-atq7p7m5.js → worktree-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-retention-bkyjaxrp.js → worktree-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-retention-bmr6ed5q.js → worktree-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-retention-cf4snx6d.js → worktree-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-retention-cvy3z8tj.js → worktree-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-retention-d9fn303g.js → worktree-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-retention-d9jj8t3e.js → worktree-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-retention-dajrwvna.js → worktree-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-retention-dap0rakb.js → worktree-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-retention-df08tz66.js → worktree-df08tz66.js} +0 -0
- /package/dist/chunks/{file-retention-dy18nga0.js → worktree-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-retention-e5kj55wp.js → worktree-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-retention-e73j6tqm.js → worktree-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-retention-ec1grn59.js → worktree-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-retention-eh3zwz77.js → worktree-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-retention-emrn6kk6.js → worktree-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-retention-f0mxakyp.js → worktree-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-retention-f6n9ztr4.js → worktree-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-retention-faypxj3z.js → worktree-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-retention-fd410y7t.js → worktree-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-retention-fxgpk5d8.js → worktree-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{file-retention-g4wezp1m.js → worktree-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-retention-g86h250q.js → worktree-g86h250q.js} +0 -0
- /package/dist/chunks/{file-retention-gebd4c9n.js → worktree-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-retention-gftt206x.js → worktree-gftt206x.js} +0 -0
- /package/dist/chunks/{file-retention-hjbc5kem.js → worktree-hjbc5kem.js} +0 -0
- /package/dist/chunks/{file-retention-hk9envan.js → worktree-hk9envan.js} +0 -0
- /package/dist/chunks/{file-retention-hrnqkpcd.js → worktree-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{file-retention-j2ntwpah.js → worktree-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-retention-j5zkgpj8.js → worktree-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-retention-j7wq2tw5.js → worktree-j7wq2tw5.js} +0 -0
- /package/dist/chunks/{file-retention-jr7sbwjy.js → worktree-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-retention-jwfs4k6c.js → worktree-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-retention-jzg6c2d5.js → worktree-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-retention-mp448xyj.js → worktree-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-retention-msx8hqn2.js → worktree-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-retention-n05xt0ee.js → worktree-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-retention-n3j8tn72.js → worktree-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-retention-njntx4h6.js → worktree-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-retention-paphc93g.js → worktree-paphc93g.js} +0 -0
- /package/dist/chunks/{file-retention-q3sfg36h.js → worktree-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-retention-q74kybfr.js → worktree-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-retention-qaymkmh1.js → worktree-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-retention-qb87gjwd.js → worktree-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-retention-qfa1cgps.js → worktree-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-retention-qrg20bc0.js → worktree-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-retention-rcb2kzg1.js → worktree-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-retention-sdp7kfr6.js → worktree-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-retention-sk3qaz4a.js → worktree-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{file-retention-ssg3fenm.js → worktree-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-retention-twg0f83k.js → worktree-twg0f83k.js} +0 -0
- /package/dist/chunks/{file-retention-w803qqfp.js → worktree-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-retention-wer8tq1h.js → worktree-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-retention-wtztk69x.js → worktree-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-retention-x0ckcb58.js → worktree-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-retention-x61499pn.js → worktree-x61499pn.js} +0 -0
- /package/dist/chunks/{file-retention-y44na4kk.js → worktree-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-retention-y8cydn3q.js → worktree-y8cydn3q.js} +0 -0
- /package/dist/chunks/{file-retention-ygaqb7jw.js → worktree-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-retention-ym463w8f.js → worktree-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-retention-z9919s4g.js → worktree-z9919s4g.js} +0 -0
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
mergeOverlay2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./worktree-m3g11tvf.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./worktree-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: () => Service61,
|
|
17
17
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
18
|
+
node: () => node66
|
|
19
19
|
});
|
|
20
20
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -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 Service61 extends Context.Service()("@opencode/AISDK") {
|
|
140
140
|
}
|
|
141
|
-
var locationLayer2 = Layer.effect(
|
|
141
|
+
var locationLayer2 = Layer.effect(Service61, 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(Service67, Effect.gen(function* () {
|
|
|
176
176
|
}
|
|
177
177
|
return event;
|
|
178
178
|
});
|
|
179
|
-
const service =
|
|
179
|
+
const service = Service61.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 node66 = makeLocationNode({ service: Service61, layer: locationLayer2, deps: [] });
|
|
813
813
|
|
|
814
|
-
export { InitError2,
|
|
814
|
+
export { InitError2, Service61, locationLayer2, node66, exports_aisdk };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-5t3nmthw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./worktree-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service34,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer15,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node38
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -32,7 +32,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
32
32
|
});
|
|
33
33
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service34 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
36
36
|
}
|
|
37
37
|
var transportError = (message, input) => new AIError({
|
|
38
38
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -56,7 +56,7 @@ var observationFrame = (observation) => {
|
|
|
56
56
|
return Effect.fail(observation.error);
|
|
57
57
|
};
|
|
58
58
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
59
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
59
|
+
var makeLayer2 = (connector) => Layer.effect(Service34, Effect.gen(function* () {
|
|
60
60
|
const scope = yield* Scope.Scope;
|
|
61
61
|
const states = new Map;
|
|
62
62
|
const state = (sessionID) => {
|
|
@@ -356,11 +356,11 @@ var makeLayer2 = (connector) => Layer.effect(Service32, Effect.gen(function* ()
|
|
|
356
356
|
}, { discard: true });
|
|
357
357
|
});
|
|
358
358
|
yield* Effect.addFinalizer(() => closeAll);
|
|
359
|
-
return
|
|
359
|
+
return Service34.of({ bind, close, closeAll });
|
|
360
360
|
}));
|
|
361
|
-
var
|
|
361
|
+
var layer15 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
362
362
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
363
363
|
})));
|
|
364
|
-
var
|
|
364
|
+
var node38 = makeGlobalNode({ service: Service34, layer: layer15, deps: [webSocketConstructor2] });
|
|
365
365
|
|
|
366
|
-
export {
|
|
366
|
+
export { Service34, makeLayer2, layer15, node38, exports_model_transport };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./worktree-fan4hwvp.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./worktree-f828m53h.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./worktree-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service78,
|
|
3
3
|
node83
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./worktree-0kjjkgrz.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service75,
|
|
7
|
+
node80
|
|
8
|
+
} from "./worktree-trwfvtm6.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./worktree-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
Service73,
|
|
14
14
|
node78
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./worktree-1n39waag.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./worktree-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instructions.ts
|
|
21
21
|
var exports_instructions = {};
|
|
22
22
|
__export(exports_instructions, {
|
|
23
|
-
Service: () =>
|
|
23
|
+
Service: () => Service7,
|
|
24
24
|
SessionInstructions: () => exports_instructions,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node10
|
|
26
26
|
});
|
|
27
27
|
import { relative } from "path";
|
|
28
28
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -32,13 +32,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
32
32
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service7 extends Context.Service()("@opencode/SessionInstructions") {
|
|
36
36
|
}
|
|
37
|
-
var layer = Layer.effect(
|
|
37
|
+
var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
38
38
|
const bus = yield* Service78;
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
40
|
const store = yield* Service73;
|
|
41
|
-
const location = yield*
|
|
41
|
+
const location = yield* Service75;
|
|
42
42
|
const root = yield* fs.resolve(location.project.directory);
|
|
43
43
|
const inFlight = yield* Ref.make(new Map);
|
|
44
44
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -84,7 +84,7 @@ ${file.content}`).join(`
|
|
|
84
84
|
return next;
|
|
85
85
|
})));
|
|
86
86
|
});
|
|
87
|
-
return
|
|
87
|
+
return Service7.of({ load });
|
|
88
88
|
}));
|
|
89
89
|
function previouslyInjected(store, sessionID) {
|
|
90
90
|
return Effect.gen(function* () {
|
|
@@ -95,10 +95,10 @@ function previouslyInjected(store, sessionID) {
|
|
|
95
95
|
function describePath(root, path) {
|
|
96
96
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var node10 = makeLocationNode({
|
|
99
99
|
name: "session-instructions",
|
|
100
100
|
layer,
|
|
101
|
-
deps: [node83, FSUtil.node,
|
|
101
|
+
deps: [node83, FSUtil.node, node80, node78]
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
export {
|
|
104
|
+
export { Service7, node10, exports_instructions };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service78
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-0kjjkgrz.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service48
|
|
6
|
+
} from "./worktree-dj33xrhc.js";
|
|
7
7
|
import {
|
|
8
8
|
Error5
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./worktree-8g9sv97x.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service39
|
|
12
|
+
} from "./worktree-vvgctfdq.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./worktree-qwkytnft.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./worktree-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./worktree-b7qepvza.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./worktree-tdstcens.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./worktree-h03wrkyp.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./worktree-68sfsyrr.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./worktree-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/runner/step.ts
|
|
36
36
|
var exports_step = {};
|
|
@@ -54,8 +54,8 @@ var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not r
|
|
|
54
54
|
var make3 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service78;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service48;
|
|
58
|
+
const toolOutput = yield* Service39;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const startSnapshot = yield* snapshots.capture();
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./worktree-cavr175a.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info11
|
|
9
|
+
} from "./worktree-za9cx4qh.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info12
|
|
12
|
+
} from "./worktree-t0fxg8b9.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info10
|
|
15
|
+
} from "./worktree-edrmdtr5.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Info14
|
|
18
|
+
} from "./worktree-p44d8wdy.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./worktree-qgn6gcr1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info8
|
|
24
|
+
} from "./worktree-gg7pg1rj.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Info5
|
|
27
|
+
} from "./worktree-7x1jk2s0.js";
|
|
28
28
|
import {
|
|
29
29
|
migrate2,
|
|
30
30
|
normalizeAction2,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
migrateMcp2,
|
|
34
34
|
migrateProvider2,
|
|
35
35
|
providerID2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./worktree-wtkpn8tp.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./worktree-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/config/normalize.ts
|
|
42
42
|
var exports_normalize = {};
|
|
@@ -84,10 +84,10 @@ function normalize2(input) {
|
|
|
84
84
|
const encoded = {};
|
|
85
85
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
86
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
87
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info5.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
88
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
89
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ? decodeValue(
|
|
90
|
+
const legacyMedia = own(input, "attachment") ? decodeValue(Info12, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
91
91
|
if (legacyMedia !== undefined) {
|
|
92
92
|
const migrated = migrate2({ attachment: legacyMedia }).media;
|
|
93
93
|
if (migrated !== undefined)
|
|
@@ -104,7 +104,7 @@ function normalize2(input) {
|
|
|
104
104
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
105
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
106
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
107
|
+
const legacyCommands = decodeMap(input.command, Info10, ["command"], diagnostics, decodeValue);
|
|
108
108
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
109
|
const migratedCommands = mapValues(legacyCommands, (value) => {
|
|
110
110
|
const migrated = commands2({ value })?.value;
|
|
@@ -112,7 +112,7 @@ function normalize2(input) {
|
|
|
112
112
|
});
|
|
113
113
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
114
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
115
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info11, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
116
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
117
|
const migratedSmallModel = legacySmallModel ? migrate2({ small_model: legacySmallModel }).agents?.title?.model : undefined;
|
|
118
118
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -126,7 +126,7 @@ function normalize2(input) {
|
|
|
126
126
|
model: migratedSmallModel,
|
|
127
127
|
...legacyAgents.title
|
|
128
128
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
129
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info11, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
130
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
131
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
132
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
225
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const server = decodeValue(
|
|
228
|
+
const server = decodeValue(Info14, value, path, diagnostics);
|
|
229
229
|
if (server !== undefined)
|
|
230
230
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
231
|
});
|
|
@@ -421,7 +421,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
421
421
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
422
422
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
423
423
|
return [];
|
|
424
|
-
const provider = decodeValue(
|
|
424
|
+
const provider = decodeValue(Info8, raw, path, diagnostics);
|
|
425
425
|
if (provider === undefined)
|
|
426
426
|
return [];
|
|
427
427
|
const destination = providerID2(name);
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
Service78,
|
|
6
6
|
node83
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./worktree-0kjjkgrz.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event12,
|
|
10
|
+
Service58,
|
|
11
|
+
node63
|
|
12
|
+
} from "./worktree-zez8w2s0.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service75,
|
|
15
|
+
node80
|
|
16
|
+
} from "./worktree-trwfvtm6.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service43,
|
|
19
|
+
node48
|
|
20
|
+
} from "./worktree-rzse8s8s.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID10,
|
|
23
|
+
Service59,
|
|
24
|
+
node64
|
|
25
|
+
} from "./worktree-fxr0k3ej.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./worktree-kg06axw8.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID8,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service57,
|
|
34
|
+
node62
|
|
35
|
+
} from "./worktree-xb08yn7h.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./worktree-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError3,
|
|
45
45
|
Options: () => Options5,
|
|
46
46
|
Prompt: () => Prompt2,
|
|
47
47
|
PromptArgument: () => PromptArgument2,
|
|
@@ -56,7 +56,7 @@ __export(exports_mcp4, {
|
|
|
56
56
|
ServerInfo: () => ServerInfo2,
|
|
57
57
|
ServerInstructions: () => ServerInstructions2,
|
|
58
58
|
ServerName: () => ServerName2,
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service35,
|
|
60
60
|
Status: () => Status2,
|
|
61
61
|
Tool: () => Tool2,
|
|
62
62
|
ToolCallError: () => ToolCallError2,
|
|
@@ -64,7 +64,7 @@ __export(exports_mcp4, {
|
|
|
64
64
|
ToolResultContent: () => ToolResultContent2,
|
|
65
65
|
configured: () => configured5,
|
|
66
66
|
layer: () => layer16,
|
|
67
|
-
node: () =>
|
|
67
|
+
node: () => node39
|
|
68
68
|
});
|
|
69
69
|
import { Mcp } from "@opencode/schema/mcp";
|
|
70
70
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -81,7 +81,7 @@ var Status2 = Mcp.Status;
|
|
|
81
81
|
class ServerInfo2 extends Schema.Class("MCP.ServerInfo")({
|
|
82
82
|
name: ServerName2,
|
|
83
83
|
status: Status2,
|
|
84
|
-
integrationID:
|
|
84
|
+
integrationID: ID8.pipe(Schema.optional)
|
|
85
85
|
}) {
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -147,7 +147,7 @@ var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
|
147
147
|
var ResourceContentPart2 = Mcp.ResourceContentPart;
|
|
148
148
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
149
149
|
|
|
150
|
-
class
|
|
150
|
+
class NotFoundError3 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
151
151
|
server: ServerName2
|
|
152
152
|
}) {
|
|
153
153
|
get message() {
|
|
@@ -165,7 +165,7 @@ var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
|
165
165
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
166
166
|
var cloneConfig = (config) => structuredClone(config);
|
|
167
167
|
|
|
168
|
-
class
|
|
168
|
+
class Service35 extends Context.Service()("@opencode/MCP") {
|
|
169
169
|
}
|
|
170
170
|
var Options5 = Schema.Struct({
|
|
171
171
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -173,13 +173,13 @@ var Options5 = Schema.Struct({
|
|
|
173
173
|
version: Schema.String
|
|
174
174
|
}))
|
|
175
175
|
});
|
|
176
|
-
var layer16 = (options) => Layer.effect(
|
|
177
|
-
const location = yield*
|
|
178
|
-
const environment = yield*
|
|
176
|
+
var layer16 = (options) => Layer.effect(Service35, Effect.gen(function* () {
|
|
177
|
+
const location = yield* Service75;
|
|
178
|
+
const environment = yield* Service43;
|
|
179
179
|
const bus = yield* Service78;
|
|
180
|
-
const forms = yield*
|
|
181
|
-
const integration = yield*
|
|
182
|
-
const credentials = yield*
|
|
180
|
+
const forms = yield* Service59;
|
|
181
|
+
const integration = yield* Service57;
|
|
182
|
+
const credentials = yield* Service58;
|
|
183
183
|
const root = yield* Effect.scope;
|
|
184
184
|
const fork = yield* FiberSet.makeRuntime();
|
|
185
185
|
const entries = new Map;
|
|
@@ -191,7 +191,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
191
191
|
return;
|
|
192
192
|
const remote = entry.config;
|
|
193
193
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
194
|
-
const integrationID =
|
|
194
|
+
const integrationID = ID8.make(suffix);
|
|
195
195
|
entry.integrationID = integrationID;
|
|
196
196
|
owned.add(integrationID);
|
|
197
197
|
const methodID = MethodID2.make(suffix);
|
|
@@ -216,7 +216,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
216
216
|
const name = ServerName2.make(server);
|
|
217
217
|
const entry = entries.get(name);
|
|
218
218
|
if (!entry)
|
|
219
|
-
return yield* new
|
|
219
|
+
return yield* new NotFoundError3({ server: name });
|
|
220
220
|
return { name, entry };
|
|
221
221
|
});
|
|
222
222
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
@@ -315,7 +315,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
315
315
|
const elicitation = {
|
|
316
316
|
create: (input) => Effect.gen(function* () {
|
|
317
317
|
if (input.params.mode === "url") {
|
|
318
|
-
const formID =
|
|
318
|
+
const formID = ID10.create();
|
|
319
319
|
const key = input.server + "\x00" + input.params.elicitationId;
|
|
320
320
|
urlElicitations.set(key, formID);
|
|
321
321
|
return yield* forms.ask({
|
|
@@ -433,7 +433,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
433
433
|
entry.scope = scope;
|
|
434
434
|
const authProvider = yield* connectProvider(entry);
|
|
435
435
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
436
|
-
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
436
|
+
const result = yield* McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service43, environment), Scope.provide(scope), Effect.exit);
|
|
437
437
|
if (Exit.isSuccess(result)) {
|
|
438
438
|
entry.client = result.value.connection;
|
|
439
439
|
entry.tools = result.value.tools.map((def) => toTool(name, entry, def));
|
|
@@ -557,7 +557,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
557
557
|
yield* startServer(name, entry);
|
|
558
558
|
}).pipe(locks.withLock(name));
|
|
559
559
|
});
|
|
560
|
-
fork(bus.subscribe(
|
|
560
|
+
fork(bus.subscribe(Event12.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
561
561
|
const state = create3({
|
|
562
562
|
name: "mcp",
|
|
563
563
|
initial: () => ({
|
|
@@ -587,7 +587,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
587
587
|
concurrency: "unbounded",
|
|
588
588
|
discard: true
|
|
589
589
|
}));
|
|
590
|
-
return
|
|
590
|
+
return Service35.of({
|
|
591
591
|
transform: state.transform,
|
|
592
592
|
reload: state.reload,
|
|
593
593
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -709,12 +709,12 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
709
709
|
}));
|
|
710
710
|
function configured5(options) {
|
|
711
711
|
return makeLocationNode({
|
|
712
|
-
service:
|
|
712
|
+
service: Service35,
|
|
713
713
|
layer: layer16(options),
|
|
714
|
-
deps: [
|
|
714
|
+
deps: [node80, node48, node83, node64, node62, node63]
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
-
var
|
|
717
|
+
var node39 = configured5();
|
|
718
718
|
function toElicitationField(key, property, required) {
|
|
719
719
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
720
720
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -765,4 +765,4 @@ function toElicitationField(key, property, required) {
|
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
-
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2, Tool2, ToolResultContent2, ToolResult2, PromptArgument2, Prompt2, PromptMessage2, PromptResult2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2,
|
|
768
|
+
export { ServerName2, PromptsChanged2, Status2, ServerInfo2, ServerInstructions2, Tool2, ToolResultContent2, ToolResult2, PromptArgument2, Prompt2, PromptMessage2, PromptResult2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContentPart2, ResourceContent2, NotFoundError3, ToolCallError2, Service35, Options5, layer16, configured5, node39, exports_mcp4 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./worktree-f59qb7z8.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./worktree-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin2,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint2
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint2 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin2 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin22 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint2).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin22 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint2, Plugin2, exports_tavily };
|