@opencode/core 0.0.0-dev-20250 → 0.0.0-dev-20251
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 +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{tool-qrvqqxe1.js → repository-cache-00gdp0v0.js} +4 -4
- package/dist/chunks/{tool-hmwat8vc.js → repository-cache-04ck8k4k.js} +8 -8
- package/dist/chunks/{tool-5t1f4rw7.js → repository-cache-08fsgfkc.js} +48 -48
- package/dist/chunks/{tool-a12ny575.js → repository-cache-095hcjf8.js} +17 -17
- package/dist/chunks/{tool-jtcj11mm.js → repository-cache-0afkxwjn.js} +6 -6
- package/dist/chunks/{tool-bdnxdzhr.js → repository-cache-0hpw93d1.js} +21 -21
- package/dist/chunks/{tool-dnn8jac4.js → repository-cache-0mwb83qr.js} +24 -24
- package/dist/chunks/{tool-0paq2nw3.js → repository-cache-0paq2nw3.js} +1 -1
- package/dist/chunks/{tool-v5hpcsb0.js → repository-cache-0r7yqxbf.js} +2 -2
- package/dist/chunks/{tool-x0a0yekz.js → repository-cache-0s740jay.js} +26 -26
- package/dist/chunks/{tool-2kw3wt25.js → repository-cache-0thq5hk7.js} +12 -12
- package/dist/chunks/{tool-gf60dj4k.js → repository-cache-0zjqpmkz.js} +28 -28
- package/dist/chunks/{tool-rpayzx76.js → repository-cache-16612zrn.js} +11 -11
- package/dist/chunks/{tool-1dazxqgg.js → repository-cache-1dazxqgg.js} +2 -2
- package/dist/chunks/{tool-zfn0z4x2.js → repository-cache-1sjktwpq.js} +13 -13
- package/dist/chunks/{tool-bfz40jc4.js → repository-cache-1zdwmq57.js} +24 -24
- package/dist/chunks/{tool-esdbr59h.js → repository-cache-204cfetq.js} +8 -8
- package/dist/chunks/{tool-21r38tys.js → repository-cache-21r38tys.js} +1 -1
- package/dist/chunks/{tool-9wey92tn.js → repository-cache-21v4w11m.js} +18 -18
- package/dist/chunks/{tool-2a5m3afh.js → repository-cache-2a5m3afh.js} +1 -1
- package/dist/chunks/{tool-xsdq6bqp.js → repository-cache-2dfz3822.js} +8 -8
- package/dist/chunks/{tool-g18xrwnx.js → repository-cache-2dxkyvt9.js} +5 -5
- package/dist/chunks/{tool-sm965ndy.js → repository-cache-2hr5nhwa.js} +8 -8
- package/dist/chunks/{tool-v6wpha0s.js → repository-cache-2j284yp4.js} +13 -13
- package/dist/chunks/{tool-mbevs47a.js → repository-cache-2wq7vqp7.js} +11 -11
- package/dist/chunks/{tool-xb3vdrw4.js → repository-cache-33189bft.js} +9 -9
- package/dist/chunks/{tool-j2mr6y77.js → repository-cache-341masja.js} +12 -12
- package/dist/chunks/{tool-gvf9bzs6.js → repository-cache-38mz08fy.js} +24 -24
- package/dist/chunks/{tool-tf5z8ds5.js → repository-cache-3b681mbx.js} +75 -75
- package/dist/chunks/{tool-3fc6dm20.js → repository-cache-3fc6dm20.js} +1 -1
- package/dist/chunks/{tool-66ae9dn1.js → repository-cache-3gz738r3.js} +9 -9
- package/dist/chunks/{tool-3hepkmqq.js → repository-cache-3hepkmqq.js} +1 -1
- package/dist/chunks/{tool-vgc515rw.js → repository-cache-3kjs2g8p.js} +11 -11
- package/dist/chunks/{tool-ymc24fzh.js → repository-cache-3nxcgc5r.js} +4 -4
- package/dist/chunks/{tool-n26b57vp.js → repository-cache-3s2gfese.js} +12 -12
- package/dist/chunks/{tool-3smtnn6g.js → repository-cache-3smtnn6g.js} +1 -1
- package/dist/chunks/{tool-3tvqynh2.js → repository-cache-3tvqynh2.js} +1 -1
- package/dist/chunks/{tool-3zsf4n22.js → repository-cache-3zsf4n22.js} +1 -1
- package/dist/chunks/{tool-482tjr68.js → repository-cache-42qtvhfk.js} +3 -3
- package/dist/chunks/{tool-2r0dzprv.js → repository-cache-4bw5k2yb.js} +7 -7
- package/dist/chunks/{tool-at1kfnmk.js → repository-cache-4e8vs6eh.js} +8 -8
- package/dist/chunks/{tool-na49kjq7.js → repository-cache-4hecv8b8.js} +16 -16
- package/dist/chunks/{tool-bz49ytrm.js → repository-cache-4jrabxkn.js} +25 -25
- package/dist/chunks/repository-cache-4jx8qdh8.js +252 -0
- package/dist/chunks/{tool-156zbn1d.js → repository-cache-4nzedb29.js} +6 -6
- package/dist/chunks/{tool-mdyteabe.js → repository-cache-4v283kbg.js} +3 -3
- package/dist/chunks/{tool-339g4gdd.js → repository-cache-4vqxrrhv.js} +22 -22
- package/dist/chunks/{tool-c0pp0gx6.js → repository-cache-53nswxx3.js} +7 -7
- package/dist/chunks/{tool-d5e4twxw.js → repository-cache-54k930pp.js} +10 -10
- package/dist/chunks/{tool-1ygqh575.js → repository-cache-56gdpj1q.js} +9 -9
- package/dist/chunks/{tool-czkrkmgx.js → repository-cache-56pvw0gc.js} +19 -19
- package/dist/chunks/{tool-d9s573fh.js → repository-cache-57ez7d0k.js} +2 -2
- package/dist/chunks/{tool-5daktx2q.js → repository-cache-5daktx2q.js} +1 -1
- package/dist/chunks/{tool-34er3540.js → repository-cache-5heeksrv.js} +26 -26
- package/dist/chunks/{tool-4qn8cb3g.js → repository-cache-5jkg60m6.js} +31 -31
- package/dist/chunks/{tool-3refetkt.js → repository-cache-5k1wcgjw.js} +3 -3
- package/dist/chunks/{tool-44g9bvrf.js → repository-cache-5k7m0c6w.js} +10 -10
- package/dist/chunks/{tool-7s6gk46a.js → repository-cache-5qkxfyep.js} +7 -7
- package/dist/chunks/{tool-5t3nmthw.js → repository-cache-5t3nmthw.js} +2 -2
- package/dist/chunks/{tool-b0vhkd8y.js → repository-cache-5xpznt2d.js} +4 -4
- package/dist/chunks/{tool-228xbxgc.js → repository-cache-5y5fcek4.js} +11 -11
- package/dist/chunks/{tool-tgcnk5sw.js → repository-cache-607q5haz.js} +5 -5
- package/dist/chunks/{tool-7fzckgvn.js → repository-cache-624wfwgz.js} +13 -13
- package/dist/chunks/{tool-s61zg2sx.js → repository-cache-6446sh3b.js} +19 -19
- package/dist/chunks/{tool-669tq793.js → repository-cache-669tq793.js} +1 -1
- package/dist/chunks/{tool-qt4m2w6j.js → repository-cache-676jamrs.js} +10 -10
- package/dist/chunks/{tool-nz49d44e.js → repository-cache-6d5yn9z3.js} +7 -7
- package/dist/chunks/{tool-6msgmcgs.js → repository-cache-6msgmcgs.js} +1 -1
- package/dist/chunks/{tool-w9eep941.js → repository-cache-711hbc5w.js} +15 -15
- package/dist/chunks/{tool-73tb2d7t.js → repository-cache-73tb2d7t.js} +1 -1
- package/dist/chunks/{tool-yde4rd9n.js → repository-cache-74he466x.js} +38 -38
- package/dist/chunks/{tool-crmtq7c0.js → repository-cache-783mvqzv.js} +3 -3
- package/dist/chunks/{tool-mybpd4me.js → repository-cache-7969rh3q.js} +11 -11
- package/dist/chunks/{tool-7bmhse3q.js → repository-cache-7bmhse3q.js} +1 -1
- package/dist/chunks/{tool-qgn6gcr1.js → repository-cache-7dqw4kz8.js} +5 -5
- package/dist/chunks/{tool-nz4rjcy7.js → repository-cache-7esjthxw.js} +1 -1
- package/dist/chunks/{tool-hrrvjwek.js → repository-cache-7gqwc1b4.js} +22 -22
- package/dist/chunks/{tool-xvp1j2dc.js → repository-cache-7pr2hkwv.js} +5 -5
- package/dist/chunks/{tool-nrfagrkx.js → repository-cache-7sw46hvh.js} +3 -3
- package/dist/chunks/{tool-x0jb1jdp.js → repository-cache-7wf5zjhs.js} +36 -36
- package/dist/chunks/{tool-mpyxb9wp.js → repository-cache-810dpybx.js} +10 -10
- package/dist/chunks/{tool-s0k7kba5.js → repository-cache-818pfwc9.js} +8 -8
- package/dist/chunks/{tool-cf1mja65.js → repository-cache-82m37mnf.js} +11 -11
- package/dist/chunks/{tool-hk614gwz.js → repository-cache-8btz10n0.js} +41 -41
- package/dist/chunks/{tool-8d7r5vzw.js → repository-cache-8d7r5vzw.js} +1 -1
- package/dist/chunks/{tool-dejqpjjg.js → repository-cache-8dbf0tjh.js} +13 -13
- package/dist/chunks/{tool-z35gvgt2.js → repository-cache-8fscv17v.js} +27 -27
- package/dist/chunks/{tool-0rban3yw.js → repository-cache-8rvetdvw.js} +10 -10
- package/dist/chunks/{tool-yhrvzzm5.js → repository-cache-8tkd114c.js} +6 -6
- package/dist/chunks/{tool-ph842b28.js → repository-cache-8tsdq50x.js} +4 -4
- package/dist/chunks/{tool-67kma7bn.js → repository-cache-8w20q39n.js} +8 -8
- package/dist/chunks/{tool-m64xvjj1.js → repository-cache-92azg307.js} +5 -5
- package/dist/chunks/{tool-gfvb90ym.js → repository-cache-94ek1h2f.js} +2 -2
- package/dist/chunks/{tool-ab800qgh.js → repository-cache-94js9ang.js} +26 -26
- package/dist/chunks/{tool-r3tsythc.js → repository-cache-95rsh2yr.js} +11 -11
- package/dist/chunks/{tool-mbwany8q.js → repository-cache-9dxvb26p.js} +11 -11
- package/dist/chunks/{tool-j59psk5p.js → repository-cache-9q2zkxzw.js} +10 -10
- package/dist/chunks/{tool-z6x8kbkg.js → repository-cache-9z3rd8yt.js} +9 -9
- package/dist/chunks/{tool-t6f3tx9e.js → repository-cache-9zy2j2cw.js} +16 -16
- package/dist/chunks/{tool-mxw2n1pp.js → repository-cache-a2rma4s4.js} +17 -17
- package/dist/chunks/{tool-y42b8cv2.js → repository-cache-a2w1s5qp.js} +42 -42
- package/dist/chunks/{tool-ff0svapt.js → repository-cache-a3r4dcrj.js} +2 -2
- package/dist/chunks/{tool-aaet6srn.js → repository-cache-aaet6srn.js} +2 -2
- package/dist/chunks/{tool-fz3j06zq.js → repository-cache-ann71p2r.js} +8 -8
- package/dist/chunks/{tool-3m8mva6z.js → repository-cache-avz58b7a.js} +14 -14
- package/dist/chunks/{tool-b6gygkdw.js → repository-cache-b6gygkdw.js} +2 -2
- package/dist/chunks/{tool-hbyhqfhs.js → repository-cache-b7b4ctej.js} +5 -5
- package/dist/chunks/{tool-6jz68697.js → repository-cache-b7evj62n.js} +22 -22
- package/dist/chunks/{tool-g4cac8ef.js → repository-cache-bc1drp7w.js} +21 -21
- package/dist/chunks/{tool-9hn6k4tm.js → repository-cache-br0tr5aq.js} +8 -8
- package/dist/chunks/{tool-wegenthg.js → repository-cache-c80bcpkz.js} +3 -3
- package/dist/chunks/{tool-d86bmrwq.js → repository-cache-ccd57ky6.js} +14 -14
- package/dist/chunks/{tool-gzgv62vm.js → repository-cache-cd6bmxb7.js} +16 -16
- package/dist/chunks/{tool-jdvtaw2e.js → repository-cache-cdf7n074.js} +9 -9
- package/dist/chunks/{tool-7ef2cf21.js → repository-cache-cenxd33d.js} +22 -22
- package/dist/chunks/{tool-54tcyq79.js → repository-cache-ckecvw8r.js} +2 -2
- package/dist/chunks/{tool-z2zvggat.js → repository-cache-cr07tj7n.js} +5 -5
- package/dist/chunks/{tool-t0v30r21.js → repository-cache-cssfr7rf.js} +23 -23
- package/dist/chunks/{tool-f8rqg7d1.js → repository-cache-d5h09cnz.js} +3 -3
- package/dist/chunks/{tool-3kzfkvq2.js → repository-cache-d6tzdhy2.js} +11 -11
- package/dist/chunks/{tool-0t6cxkbd.js → repository-cache-daxk1szt.js} +26 -26
- package/dist/chunks/{tool-9x77fmbz.js → repository-cache-dbv05mm3.js} +4 -4
- package/dist/chunks/{tool-en84zv0j.js → repository-cache-de0jw3qm.js} +8 -8
- package/dist/chunks/{tool-zh4jp52e.js → repository-cache-de5yg9f9.js} +18 -18
- package/dist/chunks/{tool-y71avatq.js → repository-cache-dpkg50ah.js} +4 -4
- package/dist/chunks/{tool-hm0ghfbf.js → repository-cache-dsd739fb.js} +20 -20
- package/dist/chunks/{tool-s8r7tdep.js → repository-cache-dvzrxbsj.js} +22 -22
- package/dist/chunks/{tool-ecfe7b91.js → repository-cache-ecfe7b91.js} +2 -2
- package/dist/chunks/{tool-vkt5fbj2.js → repository-cache-ednp5hmx.js} +5 -5
- package/dist/chunks/{tool-ef5x83kb.js → repository-cache-ef5x83kb.js} +1 -1
- package/dist/chunks/{tool-mbsehe5v.js → repository-cache-eh2mspr1.js} +11 -11
- package/dist/chunks/{tool-pbbypdpt.js → repository-cache-engkf0xy.js} +6 -6
- package/dist/chunks/{tool-etq0c3wd.js → repository-cache-etq0c3wd.js} +1 -1
- package/dist/chunks/{tool-yw2sxgfv.js → repository-cache-ex6p1v7c.js} +6 -6
- package/dist/chunks/{tool-sp6nzby6.js → repository-cache-eypvmx01.js} +15 -15
- package/dist/chunks/{tool-f29mbr7f.js → repository-cache-f29mbr7f.js} +1 -1
- package/dist/chunks/repository-cache-f2zhp4xq.js +26 -0
- package/dist/chunks/{tool-c8hdf53d.js → repository-cache-fbhw4wv7.js} +25 -25
- package/dist/chunks/{tool-853r27ye.js → repository-cache-fd1wgf4c.js} +22 -22
- package/dist/chunks/{tool-awfma6nb.js → repository-cache-fdjyeynq.js} +6 -6
- package/dist/chunks/{tool-8grz10yw.js → repository-cache-fqnfbc6e.js} +13 -13
- package/dist/chunks/{tool-jr28mrxh.js → repository-cache-frqnjdcx.js} +21 -21
- package/dist/chunks/{tool-w0nekgnm.js → repository-cache-fzytvzc7.js} +10 -10
- package/dist/chunks/{tool-a8bn8zg0.js → repository-cache-g190xswt.js} +4 -4
- package/dist/chunks/{tool-bf7nh1j5.js → repository-cache-g56bqvsh.js} +33 -33
- package/dist/chunks/{tool-2sejkfem.js → repository-cache-g6q9qykm.js} +9 -9
- package/dist/chunks/{tool-gd4qta3r.js → repository-cache-gd4qta3r.js} +1 -1
- package/dist/chunks/{tool-hq93snkq.js → repository-cache-ger7gmny.js} +27 -27
- package/dist/chunks/{tool-rvnp213s.js → repository-cache-gfj9m061.js} +13 -13
- package/dist/chunks/{tool-8bqa7fc6.js → repository-cache-gp490jqz.js} +6 -6
- package/dist/chunks/{tool-5q9n4mzc.js → repository-cache-gqbzbbqn.js} +11 -11
- package/dist/chunks/{tool-yyb7tjpc.js → repository-cache-gv6a8nnw.js} +2 -2
- package/dist/chunks/{tool-4gy81ws5.js → repository-cache-h4kyasgq.js} +25 -25
- package/dist/chunks/{tool-tped05vh.js → repository-cache-h4ps4sj8.js} +10 -10
- package/dist/chunks/{tool-7kn0n9pm.js → repository-cache-h4txc3jc.js} +5 -5
- package/dist/chunks/{tool-m096yd83.js → repository-cache-h62cd3wx.js} +6 -6
- package/dist/chunks/{tool-h6r3nrb9.js → repository-cache-h6r3nrb9.js} +1 -1
- package/dist/chunks/{tool-h6vf3j39.js → repository-cache-h6vf3j39.js} +1 -1
- package/dist/chunks/{tool-cdd241tg.js → repository-cache-hpm09z4s.js} +12 -12
- package/dist/chunks/{tool-bt1rrqjq.js → repository-cache-hre11n8q.js} +5 -5
- package/dist/chunks/{tool-fcv60zmd.js → repository-cache-hv03xkvj.js} +14 -14
- package/dist/chunks/{tool-ne3p3r7w.js → repository-cache-j4jqcffg.js} +43 -43
- package/dist/chunks/{tool-7q5pky5y.js → repository-cache-j4mm37g8.js} +4 -4
- package/dist/chunks/{tool-j56e64zr.js → repository-cache-j56e64zr.js} +1 -1
- package/dist/chunks/{tool-6hjx5zpb.js → repository-cache-j58c5xyq.js} +9 -9
- package/dist/chunks/{tool-6bsje7ws.js → repository-cache-jexxy024.js} +3 -3
- package/dist/chunks/{tool-f07bsgse.js → repository-cache-jjjjkqdk.js} +12 -12
- package/dist/chunks/{tool-kne8f3cn.js → repository-cache-jvf3yq6v.js} +4 -4
- package/dist/chunks/{tool-ss7b6637.js → repository-cache-jzy4k8ae.js} +14 -14
- package/dist/chunks/{tool-6ysrkrkr.js → repository-cache-k1qrnqst.js} +8 -8
- package/dist/chunks/{tool-nzks3jc8.js → repository-cache-k3c624dm.js} +3 -3
- package/dist/chunks/{tool-38wrebp5.js → repository-cache-k8rhextm.js} +42 -42
- package/dist/chunks/{tool-zppcctbg.js → repository-cache-kyabrh60.js} +21 -21
- package/dist/chunks/{tool-wr45tetb.js → repository-cache-kzeadhdf.js} +13 -13
- package/dist/chunks/{tool-5g3whhj5.js → repository-cache-m0vw8bcc.js} +8 -8
- package/dist/chunks/{tool-m3fdjcah.js → repository-cache-m3fdjcah.js} +1 -1
- package/dist/chunks/{tool-b9skyj6x.js → repository-cache-m6t25yxw.js} +41 -41
- package/dist/chunks/{tool-6s622yr1.js → repository-cache-m76ak856.js} +12 -12
- package/dist/chunks/{tool-s6667w8r.js → repository-cache-m90fhazv.js} +21 -21
- package/dist/chunks/{tool-m9w0rfyh.js → repository-cache-m9w0rfyh.js} +1 -1
- package/dist/chunks/{tool-k514m870.js → repository-cache-mae0jmk3.js} +12 -12
- package/dist/chunks/{tool-gyb99kyw.js → repository-cache-mb5ynwt8.js} +20 -20
- package/dist/chunks/{tool-2f56s268.js → repository-cache-mcyyrr5k.js} +16 -16
- package/dist/chunks/{tool-n8j3kf0h.js → repository-cache-mecya7nw.js} +9 -9
- package/dist/chunks/{tool-wnys78fq.js → repository-cache-mksgfzgs.js} +3 -3
- package/dist/chunks/{tool-4vxt5jt3.js → repository-cache-mmm9tkaz.js} +16 -16
- package/dist/chunks/{tool-5r4dt47c.js → repository-cache-mmvzmsg4.js} +10 -10
- package/dist/chunks/{tool-sx3y5fj3.js → repository-cache-mp442rew.js} +9 -9
- package/dist/chunks/{tool-rrkxh1xc.js → repository-cache-mqzwkyay.js} +8 -8
- package/dist/chunks/{tool-089t50vm.js → repository-cache-ms63ke08.js} +26 -26
- package/dist/chunks/{tool-mx9vqzsb.js → repository-cache-mx9vqzsb.js} +1 -1
- package/dist/chunks/{tool-tw8msnma.js → repository-cache-mzppa8ta.js} +33 -33
- package/dist/chunks/{tool-azhaj76f.js → repository-cache-naa9ps5d.js} +8 -8
- package/dist/chunks/{tool-zq0me3ea.js → repository-cache-nb9cp8r9.js} +14 -14
- package/dist/chunks/{tool-b8mzk2bb.js → repository-cache-nhwg6c1p.js} +2 -2
- package/dist/chunks/{tool-hegd5844.js → repository-cache-njd2epf3.js} +66 -66
- package/dist/chunks/{tool-j15mfg1p.js → repository-cache-nqnxh7mc.js} +4 -4
- package/dist/chunks/{tool-evbd4bna.js → repository-cache-p9r301nf.js} +4 -4
- package/dist/chunks/{tool-bhnv13g4.js → repository-cache-pbn1wd6z.js} +1 -1
- package/dist/chunks/{tool-pjvnvgmy.js → repository-cache-pjvnvgmy.js} +1 -1
- package/dist/chunks/{tool-pknna89w.js → repository-cache-pknna89w.js} +1 -1
- package/dist/chunks/{tool-sx1n432n.js → repository-cache-pmr4s4kc.js} +4 -4
- package/dist/chunks/{tool-f7j90zp2.js → repository-cache-pnv527nz.js} +9 -9
- package/dist/chunks/{tool-hvcfnpzs.js → repository-cache-pp9kfcev.js} +13 -13
- package/dist/chunks/{tool-8sze2n9a.js → repository-cache-py3kkmfq.js} +6 -6
- package/dist/chunks/{tool-z6zc42bw.js → repository-cache-q5862mkf.js} +18 -18
- package/dist/chunks/{tool-ya67rv83.js → repository-cache-q68kj198.js} +15 -15
- package/dist/chunks/{tool-v9azycg2.js → repository-cache-q8a22tjh.js} +126 -126
- package/dist/chunks/{tool-nb8f0xyk.js → repository-cache-q8ha9487.js} +25 -25
- package/dist/chunks/{tool-j45tg8np.js → repository-cache-qbf4b4ne.js} +32 -32
- package/dist/chunks/repository-cache-qc068m1q.js +18 -0
- package/dist/chunks/{tool-qan9v5dp.js → repository-cache-qc3t3aka.js} +10 -10
- package/dist/chunks/{tool-0z09521w.js → repository-cache-qfr8erz8.js} +2 -2
- package/dist/chunks/{tool-24ajxhwn.js → repository-cache-qj04qr5m.js} +12 -12
- package/dist/chunks/{tool-q87t05d4.js → repository-cache-qmys0th1.js} +12 -12
- package/dist/chunks/{tool-qsdy395h.js → repository-cache-qsdy395h.js} +1 -1
- package/dist/chunks/{tool-1rtbc53y.js → repository-cache-qy8njgtj.js} +1 -1
- package/dist/chunks/{tool-xh1mjdjn.js → repository-cache-r6ryweq5.js} +12 -12
- package/dist/chunks/{tool-rdw6cm16.js → repository-cache-rdw6cm16.js} +1 -1
- package/dist/chunks/{tool-rk1r2hx8.js → repository-cache-rk1r2hx8.js} +1 -1
- package/dist/chunks/{tool-v7z2bvyd.js → repository-cache-rk7s9xkn.js} +4 -4
- package/dist/chunks/{tool-92dd2pjn.js → repository-cache-rt54a6x5.js} +11 -11
- package/dist/chunks/{tool-s8d7rejh.js → repository-cache-s8d7rejh.js} +1 -1
- package/dist/chunks/{tool-zab19jja.js → repository-cache-scv7p57g.js} +9 -9
- package/dist/chunks/{tool-c1741tf2.js → repository-cache-t1ap8zfg.js} +3 -3
- package/dist/chunks/{tool-8096wrwr.js → repository-cache-t2ctsxfp.js} +16 -16
- package/dist/chunks/{tool-95n4m8dv.js → repository-cache-t984fh1y.js} +31 -31
- package/dist/chunks/{tool-tazgh4e4.js → repository-cache-tazgh4e4.js} +1 -1
- package/dist/chunks/{tool-tcezcvh9.js → repository-cache-tcezcvh9.js} +1 -1
- package/dist/chunks/{tool-tdstcens.js → repository-cache-tdstcens.js} +1 -1
- package/dist/chunks/repository-cache-te7y3fhr.js +507 -0
- package/dist/chunks/{tool-3zf7ee43.js → repository-cache-tmvara0k.js} +5 -5
- package/dist/chunks/{tool-jeknfs5c.js → repository-cache-tn0aqsam.js} +5 -5
- package/dist/chunks/{tool-8qmd1pgy.js → repository-cache-tpp3t0gy.js} +23 -23
- package/dist/chunks/{tool-tvtrv512.js → repository-cache-tvtrv512.js} +1 -1
- package/dist/chunks/{tool-tw1518mg.js → repository-cache-v2907cfy.js} +30 -30
- package/dist/chunks/{tool-qm0v3jhh.js → repository-cache-v5dkyp31.js} +7 -7
- package/dist/chunks/{tool-572k1pdw.js → repository-cache-vbdvtmb9.js} +40 -40
- package/dist/chunks/{tool-pj0sbgvb.js → repository-cache-vbq8pb5b.js} +2 -2
- package/dist/chunks/{tool-veqvce7d.js → repository-cache-veqvce7d.js} +1 -1
- package/dist/chunks/{tool-q7pmkv96.js → repository-cache-vj03c95h.js} +8 -8
- package/dist/chunks/{tool-rkg3eda0.js → repository-cache-vjjxy6yb.js} +3 -3
- package/dist/chunks/{tool-2844q2j5.js → repository-cache-vkbpj0nk.js} +3 -3
- package/dist/chunks/{tool-kvny42nn.js → repository-cache-vsk39x9d.js} +4 -4
- package/dist/chunks/{tool-bgyet4nh.js → repository-cache-vtvqn5z4.js} +15 -15
- package/dist/chunks/{tool-vzcthcp8.js → repository-cache-vzcthcp8.js} +1 -1
- package/dist/chunks/{tool-vzs5sf6e.js → repository-cache-vzs5sf6e.js} +1 -1
- package/dist/chunks/{tool-84txncab.js → repository-cache-w1eejvng.js} +5 -5
- package/dist/chunks/{tool-w3wsvvr9.js → repository-cache-w3wsvvr9.js} +1 -1
- package/dist/chunks/{tool-psazpmmj.js → repository-cache-wd3x2cqz.js} +2 -2
- package/dist/chunks/{tool-qk7cxx71.js → repository-cache-wd844a8w.js} +1 -1
- package/dist/chunks/{tool-wd87259q.js → repository-cache-wd87259q.js} +1 -1
- package/dist/chunks/{tool-x9k16b3s.js → repository-cache-whb4syhh.js} +34 -34
- package/dist/chunks/{tool-st6ezctj.js → repository-cache-wqr5pdt5.js} +19 -19
- package/dist/chunks/{tool-nap39a15.js → repository-cache-wsb67xeh.js} +7 -7
- package/dist/chunks/{tool-c2zqmqqh.js → repository-cache-wvjcvcce.js} +11 -11
- package/dist/chunks/{tool-sx8pbsn3.js → repository-cache-wyy8ccsm.js} +1 -1
- package/dist/chunks/{tool-fy2gbg5p.js → repository-cache-wzkj2gsv.js} +19 -19
- package/dist/chunks/{tool-x1ezjp6w.js → repository-cache-x1ezjp6w.js} +1 -1
- package/dist/chunks/{tool-xfkkasph.js → repository-cache-xfkkasph.js} +1 -1
- package/dist/chunks/{tool-k2pkt5dm.js → repository-cache-xgacp4m0.js} +5 -5
- package/dist/chunks/{tool-xkntkrq7.js → repository-cache-xkntkrq7.js} +2 -2
- package/dist/chunks/{tool-k7j7s7sa.js → repository-cache-xs7kd0ff.js} +4 -4
- package/dist/chunks/{tool-mc0emygj.js → repository-cache-xsm8rsnb.js} +20 -20
- package/dist/chunks/{tool-tscedkbb.js → repository-cache-xyq4pa26.js} +17 -17
- package/dist/chunks/{tool-y1fvbwt7.js → repository-cache-y1fvbwt7.js} +1 -1
- package/dist/chunks/{tool-gxf934mz.js → repository-cache-y98nvmkd.js} +8 -8
- package/dist/chunks/{tool-0tdgw0ar.js → repository-cache-ydybzatt.js} +12 -12
- package/dist/chunks/{tool-yp2x3t23.js → repository-cache-yp2x3t23.js} +1 -1
- package/dist/chunks/{tool-5595mwca.js → repository-cache-ypx6w206.js} +65 -65
- package/dist/chunks/{tool-yrhqyw5v.js → repository-cache-yrhqyw5v.js} +1 -1
- package/dist/chunks/{tool-yrznvahk.js → repository-cache-yrznvahk.js} +2 -2
- package/dist/chunks/{tool-snak5hvk.js → repository-cache-ytvanp1b.js} +6 -6
- package/dist/chunks/{tool-bjtzbw4r.js → repository-cache-z07pqspn.js} +3 -3
- package/dist/chunks/{tool-z0bkrqjs.js → repository-cache-z0bkrqjs.js} +1 -1
- package/dist/chunks/{tool-z63w68vq.js → repository-cache-z63w68vq.js} +2 -2
- package/dist/chunks/{tool-t8fp8shj.js → repository-cache-z7nxtzsb.js} +6 -6
- package/dist/chunks/{tool-rq775frq.js → repository-cache-zeh9ct20.js} +2 -2
- package/dist/chunks/{tool-2756h3zt.js → repository-cache-zprs8td4.js} +20 -20
- package/dist/chunks/{tool-zr2ceqn5.js → repository-cache-zr2ceqn5.js} +1 -1
- package/dist/chunks/{tool-ymxbe15q.js → repository-cache-zvxrxhcq.js} +7 -7
- package/dist/chunks/{tool-h7yw06f0.js → repository-cache-zx6r7hdw.js} +4 -4
- package/dist/chunks/{tool-zxq2ej10.js → repository-cache-zxq2ej10.js} +1 -1
- package/dist/chunks/{tool-zqvbpqdr.js → repository-cache-zz56t2w7.js} +11 -11
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +77 -77
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +364 -364
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +93 -93
- 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 +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +98 -98
- package/dist/form.js +74 -74
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- 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 +91 -91
- 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 +1 -1
- package/dist/instance.js +357 -357
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +80 -80
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +129 -129
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +358 -358
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +108 -108
- package/dist/mcp/instructions.js +128 -128
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +72 -72
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +99 -99
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- 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 +94 -94
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +94 -94
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +161 -161
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +93 -93
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +91 -91
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- 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 +218 -218
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +151 -151
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +82 -82
- 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 +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +115 -115
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +1 -1
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +81 -81
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +100 -100
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +127 -127
- package/dist/tool/plugin/edit.js +116 -116
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +120 -120
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +12 -12
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- 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 +2 -2
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +94 -94
- package/package.json +8 -8
- package/dist/chunks/tool-8dc69bj5.js +0 -507
- package/dist/chunks/tool-ht5y0zrb.js +0 -18
- package/dist/chunks/tool-kvsn2a38.js +0 -252
- package/dist/chunks/tool-nd24615b.js +0 -26
- /package/dist/chunks/{tool-0qkdqm5v.js → repository-cache-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{tool-0zkw76rk.js → repository-cache-0zkw76rk.js} +0 -0
- /package/dist/chunks/{tool-17cy0kzp.js → repository-cache-17cy0kzp.js} +0 -0
- /package/dist/chunks/{tool-1cnp2v09.js → repository-cache-1cnp2v09.js} +0 -0
- /package/dist/chunks/{tool-1kg9ymc8.js → repository-cache-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{tool-24dcb14g.js → repository-cache-24dcb14g.js} +0 -0
- /package/dist/chunks/{tool-2710q6r3.js → repository-cache-2710q6r3.js} +0 -0
- /package/dist/chunks/{tool-2axfhc9x.js → repository-cache-2axfhc9x.js} +0 -0
- /package/dist/chunks/{tool-2c3vjs8z.js → repository-cache-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{tool-34c7v6d4.js → repository-cache-34c7v6d4.js} +0 -0
- /package/dist/chunks/{tool-359p4xyc.js → repository-cache-359p4xyc.js} +0 -0
- /package/dist/chunks/{tool-3asan66x.js → repository-cache-3asan66x.js} +0 -0
- /package/dist/chunks/{tool-3v8g72cx.js → repository-cache-3v8g72cx.js} +0 -0
- /package/dist/chunks/{tool-3w5fmr99.js → repository-cache-3w5fmr99.js} +0 -0
- /package/dist/chunks/{tool-3wcehsnq.js → repository-cache-3wcehsnq.js} +0 -0
- /package/dist/chunks/{tool-43n2bw4t.js → repository-cache-43n2bw4t.js} +0 -0
- /package/dist/chunks/{tool-4knz6hnm.js → repository-cache-4knz6hnm.js} +0 -0
- /package/dist/chunks/{tool-4vcrnpx2.js → repository-cache-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{tool-4y7fprxs.js → repository-cache-4y7fprxs.js} +0 -0
- /package/dist/chunks/{tool-53557ph1.js → repository-cache-53557ph1.js} +0 -0
- /package/dist/chunks/{tool-550bvhaj.js → repository-cache-550bvhaj.js} +0 -0
- /package/dist/chunks/{tool-5qd3pb7m.js → repository-cache-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{tool-6prwharc.js → repository-cache-6prwharc.js} +0 -0
- /package/dist/chunks/{tool-7akdwqpd.js → repository-cache-7akdwqpd.js} +0 -0
- /package/dist/chunks/{tool-7m9af43g.js → repository-cache-7m9af43g.js} +0 -0
- /package/dist/chunks/{tool-822emrt2.js → repository-cache-822emrt2.js} +0 -0
- /package/dist/chunks/{tool-88xbtdfr.js → repository-cache-88xbtdfr.js} +0 -0
- /package/dist/chunks/{tool-8n3pysct.js → repository-cache-8n3pysct.js} +0 -0
- /package/dist/chunks/{tool-8wj87zfr.js → repository-cache-8wj87zfr.js} +0 -0
- /package/dist/chunks/{tool-922hggd3.js → repository-cache-922hggd3.js} +0 -0
- /package/dist/chunks/{tool-9a4afbnw.js → repository-cache-9a4afbnw.js} +0 -0
- /package/dist/chunks/{tool-9rqn6x4v.js → repository-cache-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{tool-a6k6eb26.js → repository-cache-a6k6eb26.js} +0 -0
- /package/dist/chunks/{tool-af5trqkr.js → repository-cache-af5trqkr.js} +0 -0
- /package/dist/chunks/{tool-afrmfg78.js → repository-cache-afrmfg78.js} +0 -0
- /package/dist/chunks/{tool-aqzs7mqg.js → repository-cache-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{tool-atq7p7m5.js → repository-cache-atq7p7m5.js} +0 -0
- /package/dist/chunks/{tool-bkyjaxrp.js → repository-cache-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{tool-bmr6ed5q.js → repository-cache-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{tool-cf4snx6d.js → repository-cache-cf4snx6d.js} +0 -0
- /package/dist/chunks/{tool-cvy3z8tj.js → repository-cache-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{tool-d9fn303g.js → repository-cache-d9fn303g.js} +0 -0
- /package/dist/chunks/{tool-d9jj8t3e.js → repository-cache-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{tool-dajrwvna.js → repository-cache-dajrwvna.js} +0 -0
- /package/dist/chunks/{tool-dap0rakb.js → repository-cache-dap0rakb.js} +0 -0
- /package/dist/chunks/{tool-df08tz66.js → repository-cache-df08tz66.js} +0 -0
- /package/dist/chunks/{tool-dy18nga0.js → repository-cache-dy18nga0.js} +0 -0
- /package/dist/chunks/{tool-e5kj55wp.js → repository-cache-e5kj55wp.js} +0 -0
- /package/dist/chunks/{tool-e73j6tqm.js → repository-cache-e73j6tqm.js} +0 -0
- /package/dist/chunks/{tool-ec1grn59.js → repository-cache-ec1grn59.js} +0 -0
- /package/dist/chunks/{tool-eh3zwz77.js → repository-cache-eh3zwz77.js} +0 -0
- /package/dist/chunks/{tool-emrn6kk6.js → repository-cache-emrn6kk6.js} +0 -0
- /package/dist/chunks/{tool-f0mxakyp.js → repository-cache-f0mxakyp.js} +0 -0
- /package/dist/chunks/{tool-f6n9ztr4.js → repository-cache-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{tool-faypxj3z.js → repository-cache-faypxj3z.js} +0 -0
- /package/dist/chunks/{tool-fd410y7t.js → repository-cache-fd410y7t.js} +0 -0
- /package/dist/chunks/{tool-fxgpk5d8.js → repository-cache-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{tool-g4wezp1m.js → repository-cache-g4wezp1m.js} +0 -0
- /package/dist/chunks/{tool-g86h250q.js → repository-cache-g86h250q.js} +0 -0
- /package/dist/chunks/{tool-gebd4c9n.js → repository-cache-gebd4c9n.js} +0 -0
- /package/dist/chunks/{tool-gftt206x.js → repository-cache-gftt206x.js} +0 -0
- /package/dist/chunks/{tool-hjbc5kem.js → repository-cache-hjbc5kem.js} +0 -0
- /package/dist/chunks/{tool-hk9envan.js → repository-cache-hk9envan.js} +0 -0
- /package/dist/chunks/{tool-j2ntwpah.js → repository-cache-j2ntwpah.js} +0 -0
- /package/dist/chunks/{tool-j5zkgpj8.js → repository-cache-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{tool-jjkms2e6.js → repository-cache-jjkms2e6.js} +0 -0
- /package/dist/chunks/{tool-jr7sbwjy.js → repository-cache-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{tool-jwfs4k6c.js → repository-cache-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{tool-jzg6c2d5.js → repository-cache-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{tool-mp448xyj.js → repository-cache-mp448xyj.js} +0 -0
- /package/dist/chunks/{tool-msx8hqn2.js → repository-cache-msx8hqn2.js} +0 -0
- /package/dist/chunks/{tool-n05xt0ee.js → repository-cache-n05xt0ee.js} +0 -0
- /package/dist/chunks/{tool-n3j8tn72.js → repository-cache-n3j8tn72.js} +0 -0
- /package/dist/chunks/{tool-njntx4h6.js → repository-cache-njntx4h6.js} +0 -0
- /package/dist/chunks/{tool-q3sfg36h.js → repository-cache-q3sfg36h.js} +0 -0
- /package/dist/chunks/{tool-q74kybfr.js → repository-cache-q74kybfr.js} +0 -0
- /package/dist/chunks/{tool-qaymkmh1.js → repository-cache-qaymkmh1.js} +0 -0
- /package/dist/chunks/{tool-qb87gjwd.js → repository-cache-qb87gjwd.js} +0 -0
- /package/dist/chunks/{tool-qfa1cgps.js → repository-cache-qfa1cgps.js} +0 -0
- /package/dist/chunks/{tool-qg3g05ea.js → repository-cache-qg3g05ea.js} +0 -0
- /package/dist/chunks/{tool-qrg20bc0.js → repository-cache-qrg20bc0.js} +0 -0
- /package/dist/chunks/{tool-rcb2kzg1.js → repository-cache-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{tool-sdp7kfr6.js → repository-cache-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{tool-sk3qaz4a.js → repository-cache-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{tool-ssg3fenm.js → repository-cache-ssg3fenm.js} +0 -0
- /package/dist/chunks/{tool-w803qqfp.js → repository-cache-w803qqfp.js} +0 -0
- /package/dist/chunks/{tool-wc3fc9cn.js → repository-cache-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{tool-wer8tq1h.js → repository-cache-wer8tq1h.js} +0 -0
- /package/dist/chunks/{tool-wtztk69x.js → repository-cache-wtztk69x.js} +0 -0
- /package/dist/chunks/{tool-x0ckcb58.js → repository-cache-x0ckcb58.js} +0 -0
- /package/dist/chunks/{tool-x61499pn.js → repository-cache-x61499pn.js} +0 -0
- /package/dist/chunks/{tool-y44na4kk.js → repository-cache-y44na4kk.js} +0 -0
- /package/dist/chunks/{tool-y8cydn3q.js → repository-cache-y8cydn3q.js} +0 -0
- /package/dist/chunks/{tool-y8f7s663.js → repository-cache-y8f7s663.js} +0 -0
- /package/dist/chunks/{tool-ygaqb7jw.js → repository-cache-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{tool-ym463w8f.js → repository-cache-ym463w8f.js} +0 -0
- /package/dist/chunks/{tool-z9919s4g.js → repository-cache-z9919s4g.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID14,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service76,
|
|
4
|
+
node80
|
|
5
|
+
} from "./repository-cache-xyq4pa26.js";
|
|
6
6
|
import {
|
|
7
7
|
ID13,
|
|
8
8
|
isAISDK2,
|
|
@@ -12,23 +12,23 @@ import {
|
|
|
12
12
|
modelSettings2,
|
|
13
13
|
mergeOverlay2,
|
|
14
14
|
mergeHeaders2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service75,
|
|
16
|
+
node79
|
|
17
|
+
} from "./repository-cache-mcyyrr5k.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service62,
|
|
20
|
+
node66
|
|
21
|
+
} from "./repository-cache-3gz738r3.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID6,
|
|
24
24
|
VariantID2,
|
|
25
25
|
Ref2,
|
|
26
26
|
Service58,
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
node61
|
|
28
|
+
} from "./repository-cache-m90fhazv.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/model-resolver.ts
|
|
34
34
|
var exports_model_resolver = {};
|
|
@@ -37,15 +37,15 @@ __export(exports_model_resolver, {
|
|
|
37
37
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
38
38
|
ModelInitializationError: () => ModelInitializationError2,
|
|
39
39
|
ModelResolver: () => exports_model_resolver,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service57,
|
|
41
41
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
42
42
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
43
43
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
44
44
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
45
45
|
fromCatalogModel: () => fromCatalogModel2,
|
|
46
46
|
hasPackage: () => hasPackage2,
|
|
47
|
-
layer: () =>
|
|
48
|
-
node: () =>
|
|
47
|
+
layer: () => layer23,
|
|
48
|
+
node: () => node60,
|
|
49
49
|
resolveModel: () => resolveModel2,
|
|
50
50
|
withVariant: () => withVariant2
|
|
51
51
|
});
|
|
@@ -56,7 +56,7 @@ import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
|
56
56
|
import { Npm } from "@opencode/util/npm";
|
|
57
57
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
58
58
|
providerID: ID13,
|
|
59
|
-
modelID:
|
|
59
|
+
modelID: ID6,
|
|
60
60
|
variant: VariantID2
|
|
61
61
|
}) {
|
|
62
62
|
get message() {
|
|
@@ -66,7 +66,7 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
66
66
|
|
|
67
67
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
68
68
|
providerID: ID13,
|
|
69
|
-
modelID:
|
|
69
|
+
modelID: ID6,
|
|
70
70
|
package: Schema.String
|
|
71
71
|
}) {
|
|
72
72
|
get message() {
|
|
@@ -77,7 +77,7 @@ var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
|
77
77
|
|
|
78
78
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
79
79
|
providerID: ID13,
|
|
80
|
-
modelID:
|
|
80
|
+
modelID: ID6,
|
|
81
81
|
package: Schema.String,
|
|
82
82
|
detail: Schema.String
|
|
83
83
|
}) {
|
|
@@ -88,7 +88,7 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
88
88
|
|
|
89
89
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
90
90
|
providerID: ID13,
|
|
91
|
-
modelID:
|
|
91
|
+
modelID: ID6,
|
|
92
92
|
package: Schema.String,
|
|
93
93
|
phase: InitializationPhase2,
|
|
94
94
|
detail: Schema.String
|
|
@@ -100,7 +100,7 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
100
100
|
|
|
101
101
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
102
102
|
providerID: ID13,
|
|
103
|
-
modelID:
|
|
103
|
+
modelID: ID6,
|
|
104
104
|
variables: Schema.Array(Schema.String)
|
|
105
105
|
}) {
|
|
106
106
|
get message() {
|
|
@@ -110,7 +110,7 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
110
110
|
|
|
111
111
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
112
112
|
providerID: ID13,
|
|
113
|
-
modelID:
|
|
113
|
+
modelID: ID6,
|
|
114
114
|
route: Schema.String
|
|
115
115
|
}) {
|
|
116
116
|
get message() {
|
|
@@ -118,7 +118,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
class
|
|
121
|
+
class Service57 extends Context.Service()("@opencode/ModelResolver") {
|
|
122
122
|
}
|
|
123
123
|
var withVariant2 = (model, variantID) => {
|
|
124
124
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -258,12 +258,12 @@ var causeMessage = (cause) => {
|
|
|
258
258
|
};
|
|
259
259
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
260
260
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
261
|
-
var
|
|
262
|
-
const providers = yield*
|
|
261
|
+
var layer23 = Layer.effect(Service57, Effect.gen(function* () {
|
|
262
|
+
const providers = yield* Service75;
|
|
263
263
|
const models = yield* Service58;
|
|
264
|
-
const integrations = yield*
|
|
264
|
+
const integrations = yield* Service76;
|
|
265
265
|
const npm = yield* Npm.Service;
|
|
266
|
-
const aisdk = yield*
|
|
266
|
+
const aisdk = yield* Service62;
|
|
267
267
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
268
268
|
const provider = yield* providers.get(selected.providerID);
|
|
269
269
|
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID14.make(selected.providerID));
|
|
@@ -293,7 +293,7 @@ var layer21 = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
293
293
|
chunkTimeout: provider?.settings?.chunkTimeout
|
|
294
294
|
};
|
|
295
295
|
});
|
|
296
|
-
return
|
|
296
|
+
return Service57.of({
|
|
297
297
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
298
298
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find(hasPackage2))));
|
|
299
299
|
if (!selected)
|
|
@@ -310,10 +310,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
310
310
|
const name = packageName2(packageName);
|
|
311
311
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
312
312
|
}
|
|
313
|
-
var
|
|
314
|
-
service:
|
|
315
|
-
layer:
|
|
316
|
-
deps: [
|
|
313
|
+
var node60 = makeLocationNode({
|
|
314
|
+
service: Service57,
|
|
315
|
+
layer: layer23,
|
|
316
|
+
deps: [node79, node61, node80, Npm.node, node66]
|
|
317
317
|
});
|
|
318
318
|
|
|
319
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
319
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service57, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer23, node60, exports_model_resolver };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service6,
|
|
13
|
+
node: () => node8
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service6 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service6.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node8 = makeLocationNode({ service: Service6, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service6, node8, exports_location_watcher_policy };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service78
|
|
3
|
+
} from "./repository-cache-mp442rew.js";
|
|
4
4
|
import {
|
|
5
5
|
Service70
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-q5862mkf.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service21
|
|
14
|
+
} from "./repository-cache-fbhw4wv7.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch2 = {};
|
|
21
|
+
__export(exports_websearch2, {
|
|
22
|
+
Input: () => Input3,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin21,
|
|
25
|
+
WebSearchTool: () => exports_websearch2,
|
|
26
|
+
description: () => description2,
|
|
27
|
+
name: () => name3
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name3 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description2 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input3 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin21 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
52
|
const permission = yield* Service70;
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
53
|
+
const forms = yield* Service78;
|
|
54
|
+
const websearch = yield* Service21;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name3,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description2,
|
|
59
|
+
input: Input3,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name3,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name3];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name3, NO_RESULTS2, description2, Input3, Plugin21, exports_websearch2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service59,
|
|
6
|
+
node62
|
|
7
|
+
} from "./repository-cache-frqnjdcx.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service14,
|
|
17
|
+
node: () => node16,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service14 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service59;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service14.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node16 = makeLocationNode({ service: Service14, layer, deps: [node62] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service14, readText2, syncTextBom2, node16, exports_file_mutation };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service46
|
|
3
|
+
} from "./repository-cache-bc1drp7w.js";
|
|
4
4
|
import {
|
|
5
5
|
Service45
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-mx9vqzsb.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-cache-qc068m1q.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -20,7 +20,7 @@ __export(exports_command3, {
|
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
22
|
const instances = yield* Service45;
|
|
23
|
-
const commands = yield* awaitActivation2.pipe(Effect.andThen(
|
|
23
|
+
const commands = yield* awaitActivation2.pipe(Effect.andThen(Service46), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service52
|
|
3
|
+
} from "./repository-cache-74he466x.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service6
|
|
6
|
+
} from "./repository-cache-g6q9qykm.js";
|
|
7
7
|
import {
|
|
8
8
|
observe2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-cache-qsdy395h.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/config/plugin/location-watcher.ts
|
|
15
15
|
var exports_location_watcher2 = {};
|
|
16
16
|
__export(exports_location_watcher2, {
|
|
17
17
|
ConfigLocationWatcherPlugin: () => exports_location_watcher2,
|
|
18
|
-
Plugin: () =>
|
|
18
|
+
Plugin: () => Plugin15
|
|
19
19
|
});
|
|
20
20
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
21
21
|
import { Effect } from "effect";
|
|
22
|
-
var
|
|
22
|
+
var Plugin15 = define({
|
|
23
23
|
id: "opencode.config.location-watcher",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
26
|
-
const policy = yield*
|
|
25
|
+
const config = yield* Service52;
|
|
26
|
+
const policy = yield* Service6;
|
|
27
27
|
const loaded = yield* observe2(config, ctx.event, policy.reload());
|
|
28
28
|
yield* policy.transform((editor) => {
|
|
29
29
|
for (const entry of loaded.entries) {
|
|
@@ -35,4 +35,4 @@ var Plugin40 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin15, exports_location_watcher2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-vbq8pb5b.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service19
|
|
9
|
+
} from "./repository-cache-jjjjkqdk.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service7
|
|
12
|
+
} from "./repository-cache-3s2gfese.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-cache-2a5m3afh.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service5
|
|
27
|
+
} from "./repository-cache-q68kj198.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input6,
|
|
36
|
+
Plugin: () => Plugin24,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name6,
|
|
39
|
+
toModelContent: () => toModelContent3
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name6 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input6 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin24 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service5;
|
|
62
|
+
const access = yield* Service19;
|
|
63
|
+
const sessionInstructions = yield* Service7;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
65
|
const location = yield* Service80;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name6,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input6,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -112,7 +112,7 @@ var Plugin18 = {
|
|
|
112
112
|
return { output: result.content, path: result.path };
|
|
113
113
|
}).pipe(Effect.map((result) => ({
|
|
114
114
|
output: result.output,
|
|
115
|
-
content:
|
|
115
|
+
content: toModelContent3(result.path, input.offset, result.output),
|
|
116
116
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
117
117
|
})), Effect.mapError((error) => {
|
|
118
118
|
if (error instanceof ToolFailure)
|
|
@@ -145,7 +145,7 @@ ${suggestions.join(`
|
|
|
145
145
|
});
|
|
146
146
|
})
|
|
147
147
|
};
|
|
148
|
-
var
|
|
148
|
+
var toModelContent3 = (path, offset, output) => {
|
|
149
149
|
if (output.type === "file" && output.encoding === "base64")
|
|
150
150
|
return [
|
|
151
151
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -181,4 +181,4 @@ var toModelContent2 = (path, offset, output) => {
|
|
|
181
181
|
`);
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { name6, Input6, Plugin24, toModelContent3, exports_read };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID6,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-cache-m90fhazv.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service52
|
|
7
|
+
} from "./repository-cache-74he466x.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-cache-ex6p1v7c.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/ollama.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -45,12 +45,12 @@ var ShowResponse = Schema.Struct({
|
|
|
45
45
|
});
|
|
46
46
|
var discovery = new Map;
|
|
47
47
|
var discoveryLock = Semaphore.makeUnsafe(1);
|
|
48
|
-
function
|
|
48
|
+
function make7(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
49
49
|
return define({
|
|
50
50
|
id: "opencode.provider.ollama",
|
|
51
51
|
effect: Effect.fn(function* (ctx) {
|
|
52
52
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
53
|
-
const config = yield*
|
|
53
|
+
const config = yield* Service52;
|
|
54
54
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
55
55
|
const loaded = { models: [], hash: "[]" };
|
|
56
56
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -77,7 +77,7 @@ function make5(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
|
77
77
|
});
|
|
78
78
|
for (const item of loaded.models) {
|
|
79
79
|
providers.models.update(providerID, item.model, (model) => {
|
|
80
|
-
model.modelID =
|
|
80
|
+
model.modelID = ID6.make(item.model);
|
|
81
81
|
model.name = item.name || item.model;
|
|
82
82
|
model.family = item.show.details?.family ? Family2.make(item.show.details.family) : item.details.family ? Family2.make(item.details.family) : undefined;
|
|
83
83
|
model.capabilities = {
|
|
@@ -151,7 +151,7 @@ function make5(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
var OllamaPlugin2 =
|
|
154
|
+
var OllamaPlugin2 = make7();
|
|
155
155
|
function configured(entries, origin) {
|
|
156
156
|
const settings = foldSettings2(entries, providerID, undefined);
|
|
157
157
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
@@ -170,4 +170,4 @@ function configured(entries, origin) {
|
|
|
170
170
|
return { baseURL, apiKey, tagsEndpoint, showEndpoint: url.toString() };
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
export {
|
|
173
|
+
export { make7, OllamaPlugin2 };
|