@opencode/core 0.0.0-dev-20929 → 0.0.0-dev-20930
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 +81 -81
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{file-retention-55bcfe3d.js → vcs-01h1cd23.js} +15 -15
- package/dist/chunks/{file-retention-ev3bmrg9.js → vcs-04p8m0tj.js} +11 -11
- package/dist/chunks/{file-retention-735pkyx8.js → vcs-05en277q.js} +11 -11
- package/dist/chunks/{file-retention-1vezggaq.js → vcs-06x8he3q.js} +4 -4
- package/dist/chunks/{file-retention-txk711dm.js → vcs-085246bx.js} +74 -74
- package/dist/chunks/{file-retention-0vbcp93d.js → vcs-0emb60td.js} +2 -2
- package/dist/chunks/{file-retention-s8d7rejh.js → vcs-0gdmqesm.js} +4 -4
- package/dist/chunks/{file-retention-907r1ggt.js → vcs-0nx0j33j.js} +22 -22
- package/dist/chunks/{file-retention-tx6qfw4f.js → vcs-0r5qpn88.js} +5 -5
- package/dist/chunks/{file-retention-2med2bx9.js → vcs-0r7t0cpv.js} +20 -20
- package/dist/chunks/{file-retention-kectex4s.js → vcs-0sqvq5f5.js} +4 -4
- package/dist/chunks/{file-retention-m2p4v8vp.js → vcs-0tccdhza.js} +13 -13
- package/dist/chunks/{file-retention-bsprd9wx.js → vcs-0ybbsf06.js} +6 -6
- package/dist/chunks/{file-retention-y2d041vx.js → vcs-113dr2ww.js} +28 -28
- package/dist/chunks/{file-retention-jqthvcqb.js → vcs-13d0fw4d.js} +3 -3
- package/dist/chunks/{file-retention-m18jmpv4.js → vcs-17svp89c.js} +3 -3
- package/dist/chunks/{file-retention-s3xwr8sx.js → vcs-19xes010.js} +50 -50
- package/dist/chunks/{file-retention-ft6em78h.js → vcs-1qjaf7q9.js} +11 -11
- package/dist/chunks/{file-retention-4crggz9c.js → vcs-1sh9vfpc.js} +18 -18
- package/dist/chunks/{file-retention-636806x1.js → vcs-1tadxgh6.js} +23 -23
- package/dist/chunks/{file-retention-vc8we0jp.js → vcs-1vv4j6r1.js} +41 -41
- package/dist/chunks/{file-retention-vzkevcde.js → vcs-1x73a69w.js} +10 -10
- package/dist/chunks/{file-retention-h90v2x9d.js → vcs-1y283654.js} +4 -4
- package/dist/chunks/{file-retention-h2p12xqx.js → vcs-202vsb7e.js} +5 -5
- package/dist/chunks/{file-retention-v57f6cf1.js → vcs-2egm12cz.js} +5 -5
- package/dist/chunks/{file-retention-wtmn5hdc.js → vcs-2f2kky6g.js} +23 -23
- package/dist/chunks/{file-retention-me2j8n8g.js → vcs-2fassr37.js} +21 -21
- package/dist/chunks/{file-retention-dwkrr1y0.js → vcs-2haft7pr.js} +7 -7
- package/dist/chunks/{file-retention-7dqw4kz8.js → vcs-2k8khapm.js} +5 -5
- package/dist/chunks/{file-retention-w1vcd0s5.js → vcs-2p0vx0df.js} +27 -27
- package/dist/chunks/{file-retention-hayrfqfs.js → vcs-2p1hpqj8.js} +17 -17
- package/dist/chunks/{file-retention-vzpzjna5.js → vcs-2sbm49xc.js} +10 -10
- package/dist/chunks/{file-retention-r2m716tb.js → vcs-2sejkfem.js} +9 -9
- package/dist/chunks/{file-retention-ycdfbb94.js → vcs-31z5wm9z.js} +13 -13
- package/dist/chunks/{file-retention-p7hqryzx.js → vcs-339z2p0x.js} +35 -35
- package/dist/chunks/{file-retention-1e146akk.js → vcs-3ag8ase7.js} +9 -9
- package/dist/chunks/{file-retention-3fc6dm20.js → vcs-3fc6dm20.js} +1 -1
- package/dist/chunks/{file-retention-3hepkmqq.js → vcs-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-retention-3hwn7j4h.js → vcs-3hwn7j4h.js} +2 -2
- package/dist/chunks/{file-retention-3smtnn6g.js → vcs-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-retention-3tvqynh2.js → vcs-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-retention-gyszyxna.js → vcs-3y45vew5.js} +6 -6
- package/dist/chunks/{file-retention-3zsf4n22.js → vcs-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-retention-94kyw0k2.js → vcs-42wenp1t.js} +22 -22
- package/dist/chunks/{file-retention-ds7q65fv.js → vcs-43x15q73.js} +7 -7
- package/dist/chunks/{file-retention-tnw1c5tq.js → vcs-4gx4de6d.js} +13 -13
- package/dist/chunks/{file-retention-ba3h8fcx.js → vcs-4j5c83jz.js} +32 -32
- package/dist/chunks/{file-retention-h5q10y87.js → vcs-4jy3z28a.js} +38 -38
- package/dist/chunks/{file-retention-7gn0kssx.js → vcs-4myngvt6.js} +26 -26
- package/dist/chunks/{file-retention-407ckzg2.js → vcs-4tjr60b8.js} +5 -5
- package/dist/chunks/{file-retention-4ts7tf6z.js → vcs-4ts7tf6z.js} +2 -2
- package/dist/chunks/{file-retention-0afhz533.js → vcs-50x795jv.js} +11 -11
- package/dist/chunks/{file-retention-54ma36ye.js → vcs-54ma36ye.js} +1 -1
- package/dist/chunks/{file-retention-5m9w47nd.js → vcs-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-retention-546spcd1.js → vcs-5paa9ef2.js} +20 -20
- package/dist/chunks/{file-retention-3gnskmkt.js → vcs-61tjv46k.js} +9 -9
- package/dist/chunks/{file-retention-4gq5n2cv.js → vcs-63g8n8e9.js} +28 -28
- package/dist/chunks/{file-retention-4c3h6hpn.js → vcs-640qxpd1.js} +29 -29
- package/dist/chunks/{file-retention-rwvt0rje.js → vcs-66enaw2c.js} +4 -4
- package/dist/chunks/{file-retention-rrah4c93.js → vcs-6c6pn2sh.js} +31 -31
- package/dist/chunks/{file-retention-kwb98e0r.js → vcs-6cb0k5fs.js} +10 -10
- package/dist/chunks/{file-retention-957n91hd.js → vcs-6fzpscvt.js} +44 -44
- package/dist/chunks/{file-retention-340vahct.js → vcs-6qtegkg3.js} +11 -11
- package/dist/chunks/{file-retention-csxss638.js → vcs-6r0vq68t.js} +19 -19
- package/dist/chunks/{file-retention-hkffa77z.js → vcs-6x89tf4f.js} +4 -4
- package/dist/chunks/{file-retention-6xb47vfp.js → vcs-6xb47vfp.js} +1 -1
- package/dist/chunks/{file-retention-he27pt63.js → vcs-6xcvt31d.js} +1 -1
- package/dist/chunks/{file-retention-q04bhbhf.js → vcs-73hq82r2.js} +3 -3
- package/dist/chunks/{file-retention-775gj3j1.js → vcs-775gj3j1.js} +2 -2
- package/dist/chunks/{file-retention-7bmhse3q.js → vcs-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-retention-2n4tgjth.js → vcs-7pfe8y1s.js} +32 -32
- package/dist/chunks/{file-retention-mxjpgj4j.js → vcs-7rzsvbkj.js} +5 -5
- package/dist/chunks/{file-retention-r7kp6pnd.js → vcs-7t1q934f.js} +9 -9
- package/dist/chunks/{file-retention-2k6rjgm4.js → vcs-7zrk7djy.js} +28 -28
- package/dist/chunks/{file-retention-6hjx5zpb.js → vcs-82rhge12.js} +9 -9
- package/dist/chunks/{file-retention-84txncab.js → vcs-84txncab.js} +1 -1
- package/dist/chunks/{file-retention-9c45fh1a.js → vcs-8714avm2.js} +4 -4
- package/dist/chunks/{file-retention-481njsdn.js → vcs-8aaqm6qj.js} +8 -8
- package/dist/chunks/{file-retention-b59hvs9v.js → vcs-8c5w71gj.js} +4 -4
- package/dist/chunks/{file-retention-jybzg21y.js → vcs-8deh7c6q.js} +9 -9
- package/dist/chunks/{file-retention-w09v0aw8.js → vcs-8h8yzxqj.js} +4 -4
- package/dist/chunks/{file-retention-8m6m0r52.js → vcs-8m6m0r52.js} +1 -1
- package/dist/chunks/{file-retention-9q9s15ep.js → vcs-8qg5srkn.js} +15 -15
- package/dist/chunks/{file-retention-w92k2e0p.js → vcs-8sze2n9a.js} +4 -4
- package/dist/chunks/{file-retention-59frscb3.js → vcs-8xc0ff7b.js} +45 -45
- package/dist/chunks/{file-retention-seeaz0q7.js → vcs-8xwc2may.js} +22 -22
- package/dist/chunks/{file-retention-91qna3x0.js → vcs-91qna3x0.js} +3 -3
- package/dist/chunks/{file-retention-hjz6y5g1.js → vcs-959n08kb.js} +24 -24
- package/dist/chunks/{file-retention-t7z8krvq.js → vcs-9fm9zjg3.js} +35 -35
- package/dist/chunks/{file-retention-dh0dkfdj.js → vcs-9g0h0kex.js} +46 -46
- package/dist/chunks/{file-retention-kdzpz75k.js → vcs-9kyabpxr.js} +29 -29
- package/dist/chunks/{file-retention-b0wd5rnp.js → vcs-9qt0ajd2.js} +4 -4
- package/dist/chunks/{file-retention-rmpdr2rv.js → vcs-9t99p3cv.js} +11 -11
- package/dist/chunks/{file-retention-zy43x3f1.js → vcs-a2rpfkac.js} +4 -4
- package/dist/chunks/{file-retention-b5yxd3qt.js → vcs-a4sqqhtm.js} +89 -89
- package/dist/chunks/{file-retention-vx6rwekq.js → vcs-a5wxatek.js} +5 -5
- package/dist/chunks/{file-retention-5rnnm2b5.js → vcs-a881zpfh.js} +5 -5
- package/dist/chunks/{file-retention-0ys8mqka.js → vcs-ajsx4q8w.js} +28 -28
- package/dist/chunks/{file-retention-wqg9hhs5.js → vcs-avkamz5m.js} +3 -3
- package/dist/chunks/{file-retention-gj6m04kd.js → vcs-axxpgx3s.js} +50 -50
- package/dist/chunks/{file-retention-ckt8v05d.js → vcs-b4a4df0m.js} +11 -11
- package/dist/chunks/{file-retention-nps7y7qb.js → vcs-bjfb5pqm.js} +44 -44
- package/dist/chunks/{file-retention-e5fg3ypj.js → vcs-c07ssfks.js} +36 -36
- package/dist/chunks/{file-retention-p7dmfyes.js → vcs-c3wxzxxt.js} +14 -14
- package/dist/chunks/{file-retention-rj3eygr5.js → vcs-c41wscbt.js} +2 -2
- package/dist/chunks/{file-retention-veczjdfx.js → vcs-c86xa7f1.js} +30 -30
- package/dist/chunks/{file-retention-sa8ekw3f.js → vcs-c8ax2afj.js} +2 -2
- package/dist/chunks/{file-retention-kqwjtgnc.js → vcs-cebgx87p.js} +6 -6
- package/dist/chunks/{file-retention-jmvxywvk.js → vcs-cw35edym.js} +15 -15
- package/dist/chunks/{file-retention-vhwt8443.js → vcs-d4ra3eqj.js} +16 -16
- package/dist/chunks/{file-retention-86jdacch.js → vcs-d688a3nx.js} +5 -5
- package/dist/chunks/{file-retention-18g55aa2.js → vcs-d9jtx293.js} +6 -6
- package/dist/chunks/{file-retention-p7x19tm8.js → vcs-dc9sh8np.js} +13 -13
- package/dist/chunks/{file-retention-tdv47sks.js → vcs-dcw3vkc0.js} +16 -16
- package/dist/chunks/{file-retention-b45jwz77.js → vcs-dn8cvzj6.js} +19 -19
- package/dist/chunks/{file-retention-dqxsqydv.js → vcs-dqxsqydv.js} +1 -1
- package/dist/chunks/{file-retention-fhgh4d8n.js → vcs-drbpyr92.js} +8 -8
- package/dist/chunks/{file-retention-1ehz2ew9.js → vcs-drw8pd7a.js} +13 -13
- package/dist/chunks/{file-retention-9x5x79tj.js → vcs-dtk1yfnn.js} +22 -22
- package/dist/chunks/{file-retention-thtzhryg.js → vcs-dvzj1xmf.js} +15 -15
- package/dist/chunks/{file-retention-dx3tnnnw.js → vcs-e65qf95s.js} +22 -22
- package/dist/chunks/{file-retention-vbnnw6nt.js → vcs-e6xzsx93.js} +9 -9
- package/dist/chunks/{file-retention-ybp4d719.js → vcs-e7yzyp2p.js} +14 -14
- package/dist/chunks/{file-retention-8gtt7xbk.js → vcs-ec9rznf1.js} +26 -26
- package/dist/chunks/{file-retention-e80seqcp.js → vcs-ed1g29hy.js} +3 -3
- package/dist/chunks/{file-retention-6hh8tjw2.js → vcs-edrmdtr5.js} +7 -7
- package/dist/chunks/{file-retention-eej6y6fw.js → vcs-eej6y6fw.js} +2 -2
- package/dist/chunks/{file-retention-ef5x83kb.js → vcs-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-retention-9mkgz3tx.js → vcs-eghc6w1b.js} +2 -2
- package/dist/chunks/{file-retention-zyex8hp5.js → vcs-ekzq6bp1.js} +37 -37
- package/dist/chunks/{file-retention-dk3ttqax.js → vcs-em3yhwbg.js} +17 -17
- package/dist/chunks/{file-retention-c1fqxshp.js → vcs-es1vcfrp.js} +3 -3
- package/dist/chunks/{file-retention-2rp67tjk.js → vcs-ewkyd3xf.js} +1 -1
- package/dist/chunks/{file-retention-30xa71rq.js → vcs-f0y3hrmm.js} +11 -11
- package/dist/chunks/{file-retention-dsq6nq8h.js → vcs-f2rv6855.js} +45 -45
- package/dist/chunks/{file-retention-as5kgg97.js → vcs-f3q0mxg4.js} +18 -18
- package/dist/chunks/{file-retention-57myy5jh.js → vcs-fb8ejb83.js} +5 -5
- package/dist/chunks/{file-retention-vfqqtxae.js → vcs-fdjnkqp0.js} +11 -11
- package/dist/chunks/{file-retention-7fese2vd.js → vcs-fe2tea80.js} +8 -8
- package/dist/chunks/{file-retention-dkv1mbg1.js → vcs-ffjarpe8.js} +4 -4
- package/dist/chunks/{file-retention-y5t31psv.js → vcs-fphvadrz.js} +11 -11
- package/dist/chunks/{file-retention-xcq1t7gv.js → vcs-fx0f4b0e.js} +28 -28
- package/dist/chunks/{file-retention-m1mec9wj.js → vcs-fz2076pd.js} +23 -23
- package/dist/chunks/{file-retention-99ah0z8a.js → vcs-g3et1r9g.js} +19 -19
- package/dist/chunks/{file-retention-6m4cckbz.js → vcs-g7rd7fyk.js} +32 -32
- package/dist/chunks/{file-retention-78s33awm.js → vcs-g7x33k41.js} +20 -20
- package/dist/chunks/{file-retention-bekb0t59.js → vcs-g8n2q3ca.js} +5 -5
- package/dist/chunks/{file-retention-gd4qta3r.js → vcs-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-retention-83s6jst6.js → vcs-ggz4hs15.js} +8 -8
- package/dist/chunks/{file-retention-px57te6p.js → vcs-gw8g3a8n.js} +33 -33
- package/dist/chunks/{file-retention-49w1mq62.js → vcs-h3jhj2xa.js} +22 -22
- package/dist/chunks/{file-retention-x21p8dkz.js → vcs-h4txjgx3.js} +24 -24
- package/dist/chunks/{file-retention-jjtj9qbj.js → vcs-h691v7v0.js} +17 -17
- package/dist/chunks/{file-retention-h6vf3j39.js → vcs-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-retention-h7s7r6s9.js → vcs-h7s7r6s9.js} +2 -2
- package/dist/chunks/{file-retention-scgrse2b.js → vcs-hdkng2sj.js} +5 -5
- package/dist/chunks/{file-retention-3g1hjkyb.js → vcs-hf9zz0cr.js} +45 -45
- package/dist/chunks/{file-retention-hgz4x7wa.js → vcs-hgz4x7wa.js} +1 -1
- package/dist/chunks/{file-retention-0ezdchsb.js → vcs-hr1xc807.js} +52 -52
- package/dist/chunks/{file-retention-9jjdahev.js → vcs-hsv4me1j.js} +11 -11
- package/dist/chunks/{file-retention-k3hdp3hb.js → vcs-hthv5jgd.js} +17 -17
- package/dist/chunks/{file-retention-qdq8tkk0.js → vcs-hyr8tqae.js} +27 -27
- package/dist/chunks/{file-retention-vx3jgdek.js → vcs-hzrfc1p4.js} +3 -3
- package/dist/chunks/{file-retention-kt38yczt.js → vcs-j3k7xgch.js} +14 -14
- package/dist/chunks/{file-retention-6421fqnz.js → vcs-j9mp9csx.js} +31 -31
- package/dist/chunks/{file-retention-ra67jj04.js → vcs-jjwt9gb5.js} +9 -9
- package/dist/chunks/{file-retention-v3ezsmzq.js → vcs-jk9hw03k.js} +17 -17
- package/dist/chunks/{file-retention-68fdjxmn.js → vcs-jqrmqyhf.js} +3 -3
- package/dist/chunks/{file-retention-b3wcjb56.js → vcs-jspk3b6b.js} +12 -12
- package/dist/chunks/{file-retention-8hzkbbdr.js → vcs-jwa44fjy.js} +22 -22
- package/dist/chunks/{file-retention-t9xc6a05.js → vcs-k351gqed.js} +14 -14
- package/dist/chunks/{file-retention-xmdd2d0z.js → vcs-k5stwhrj.js} +13 -13
- package/dist/chunks/{file-retention-z702twya.js → vcs-k6pj38bh.js} +18 -18
- package/dist/chunks/{file-retention-gwh9kr66.js → vcs-kb66r164.js} +9 -9
- package/dist/chunks/{file-retention-pansz36n.js → vcs-kdezk8ga.js} +1 -1
- package/dist/chunks/{file-retention-fxaymqdw.js → vcs-khmqacep.js} +4 -4
- package/dist/chunks/vcs-kvsxepmb.js +26 -0
- package/dist/chunks/{file-retention-qn56gx0x.js → vcs-kxtwbv1b.js} +8 -8
- package/dist/chunks/{file-retention-m9w0rfyh.js → vcs-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-retention-maspj1v3.js → vcs-maspj1v3.js} +1 -1
- package/dist/chunks/{file-retention-tg1sa0zd.js → vcs-mf6tqe69.js} +9 -9
- package/dist/chunks/{file-retention-n8zyss5t.js → vcs-mj8fnwpt.js} +32 -32
- package/dist/chunks/{file-retention-125f3d1c.js → vcs-mng7gjgz.js} +25 -25
- package/dist/chunks/vcs-mrjwzkn5.js +253 -0
- package/dist/chunks/{file-retention-8q4469mq.js → vcs-mx61yyya.js} +37 -37
- package/dist/chunks/{file-retention-3y377wv9.js → vcs-mxvxcxwy.js} +4 -4
- package/dist/chunks/{file-retention-b674v2dg.js → vcs-mz89zh3j.js} +5 -5
- package/dist/chunks/{file-retention-6j520qee.js → vcs-nd2cwz73.js} +27 -27
- package/dist/chunks/{file-retention-szzxx4ta.js → vcs-npb06z3t.js} +26 -26
- package/dist/chunks/{file-retention-ww3rrxb7.js → vcs-nr27fqtv.js} +13 -13
- package/dist/chunks/{file-retention-qby7vps4.js → vcs-ntkdha38.js} +11 -11
- package/dist/chunks/{file-retention-zsr4wwhv.js → vcs-nxe4pcap.js} +4 -4
- package/dist/chunks/{file-retention-9261zm56.js → vcs-p6p0ds8a.js} +4 -4
- package/dist/chunks/{file-retention-bfegkxfd.js → vcs-p8x5jtpv.js} +8 -8
- package/dist/chunks/{file-retention-czfptnv9.js → vcs-pa8pe2x7.js} +4 -4
- package/dist/chunks/{file-retention-pjvnvgmy.js → vcs-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-retention-pknna89w.js → vcs-pknna89w.js} +1 -1
- package/dist/chunks/{file-retention-at1kfnmk.js → vcs-pn3cc07s.js} +8 -8
- package/dist/chunks/{file-retention-harftj5f.js → vcs-pp3afwvg.js} +37 -37
- package/dist/chunks/{file-retention-f3742086.js → vcs-prg9xvqw.js} +11 -11
- package/dist/chunks/{file-retention-3yx7pqq0.js → vcs-ps8k6c3y.js} +18 -18
- package/dist/chunks/{file-retention-y0db3x05.js → vcs-pzfxmw7k.js} +8 -8
- package/dist/chunks/{file-retention-q0xm7vwc.js → vcs-q0xm7vwc.js} +2 -2
- package/dist/chunks/{file-retention-sykc9y4a.js → vcs-q6yya7b3.js} +5 -5
- package/dist/chunks/vcs-qc068m1q.js +18 -0
- package/dist/chunks/{file-retention-fk5agesv.js → vcs-qjh2dgdf.js} +94 -94
- package/dist/chunks/{file-retention-rpgkwa3n.js → vcs-qjx1ax0j.js} +5 -5
- package/dist/chunks/{file-retention-qnc92qwc.js → vcs-qnc92qwc.js} +1 -1
- package/dist/chunks/{file-retention-qsdy395h.js → vcs-qsdy395h.js} +1 -1
- package/dist/chunks/{file-retention-65x8m6dc.js → vcs-qvdcjn92.js} +12 -12
- package/dist/chunks/{file-retention-783ysvwn.js → vcs-qwhbyzhp.js} +9 -9
- package/dist/chunks/{file-retention-rmq5zkvq.js → vcs-r18p0vf7.js} +12 -12
- package/dist/chunks/{file-retention-rdw6cm16.js → vcs-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-retention-4pgvbcj4.js → vcs-s14a018q.js} +18 -18
- package/dist/chunks/{file-retention-w01812f7.js → vcs-sfsey46c.js} +27 -27
- package/dist/chunks/{file-retention-wgyjjdzz.js → vcs-shd9e764.js} +15 -15
- package/dist/chunks/{file-retention-zmjc9nnw.js → vcs-shhyvxrq.js} +13 -13
- package/dist/chunks/{file-retention-htf0g372.js → vcs-snpb5q77.js} +10 -10
- package/dist/chunks/{file-retention-aa66pdc6.js → vcs-sragp8dr.js} +5 -5
- package/dist/chunks/{file-retention-sjj6erxx.js → vcs-srv0gx85.js} +14 -14
- package/dist/chunks/{file-retention-0wg8sbbg.js → vcs-sxzvkvgj.js} +6 -6
- package/dist/chunks/{file-retention-syv4x271.js → vcs-syv4x271.js} +1 -1
- package/dist/chunks/{file-retention-8q5e4pj5.js → vcs-t781ex0h.js} +5 -5
- package/dist/chunks/{file-retention-s728bnse.js → vcs-tam2w0b0.js} +18 -18
- package/dist/chunks/{file-retention-fsmmybzd.js → vcs-tapzysky.js} +25 -25
- package/dist/chunks/{file-retention-tazgh4e4.js → vcs-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-retention-aswnna81.js → vcs-tc4g7eq4.js} +29 -29
- package/dist/chunks/{file-retention-tcezcvh9.js → vcs-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-retention-tdstcens.js → vcs-tdstcens.js} +1 -1
- package/dist/chunks/{file-retention-rny20wd4.js → vcs-tf45wne3.js} +10 -10
- package/dist/chunks/{file-retention-rert0e01.js → vcs-tkb22qbm.js} +2 -2
- package/dist/chunks/{file-retention-tm0kqsz3.js → vcs-tm0kqsz3.js} +1 -1
- package/dist/chunks/{file-retention-56xpv21e.js → vcs-tmwxzkc5.js} +11 -11
- package/dist/chunks/{file-retention-gj9yzh3a.js → vcs-trtty4av.js} +21 -21
- package/dist/chunks/{file-retention-bmr56wjg.js → vcs-txm3e8qz.js} +4 -4
- package/dist/chunks/{file-retention-tyytaxap.js → vcs-tyytaxap.js} +1 -1
- package/dist/chunks/{file-retention-p8rs9c9y.js → vcs-v1c3gq9j.js} +40 -40
- package/dist/chunks/{file-retention-sgzqzbge.js → vcs-v2z9amn0.js} +3 -3
- package/dist/chunks/{file-retention-v7p4zvkq.js → vcs-v7p4zvkq.js} +2 -2
- package/dist/chunks/{file-retention-k3wzykfn.js → vcs-v854f2p9.js} +60 -60
- package/dist/chunks/{file-retention-veqvce7d.js → vcs-veqvce7d.js} +1 -1
- package/dist/chunks/{file-retention-5pyjqqve.js → vcs-vjjaysxc.js} +2 -2
- package/dist/chunks/{file-retention-h5ac4qh6.js → vcs-vpycaasy.js} +22 -22
- package/dist/chunks/{file-retention-vzs5sf6e.js → vcs-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-retention-sy88hhfw.js → vcs-w14c85af.js} +17 -17
- package/dist/chunks/{file-retention-w3wsvvr9.js → vcs-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-retention-130m1mg1.js → vcs-w5a76q94.js} +46 -46
- package/dist/chunks/{file-retention-4cnmy1hv.js → vcs-wb2x3bfx.js} +20 -20
- package/dist/chunks/{file-retention-w8dzr37m.js → vcs-wb44jxr9.js} +14 -14
- package/dist/chunks/{file-retention-wd87259q.js → vcs-wd87259q.js} +1 -1
- package/dist/chunks/{file-retention-ewkrw7p5.js → vcs-wp94metk.js} +53 -53
- package/dist/chunks/{file-retention-0p80cr77.js → vcs-x04y3h7q.js} +23 -23
- package/dist/chunks/{file-retention-k705j66n.js → vcs-x640gzss.js} +21 -21
- package/dist/chunks/{file-retention-tf6k0eez.js → vcs-xc6sx546.js} +11 -11
- package/dist/chunks/{file-retention-4434d9q2.js → vcs-xecxzrdp.js} +9 -9
- package/dist/chunks/{file-retention-57b9ws8p.js → vcs-xfkkasph.js} +7 -7
- package/dist/chunks/{file-retention-td3rcjyz.js → vcs-xhsv9n96.js} +12 -12
- package/dist/chunks/{file-retention-3aqnw6cv.js → vcs-xn2dpj90.js} +18 -18
- package/dist/chunks/{file-retention-erp4xdm0.js → vcs-xsqeaj90.js} +194 -194
- package/dist/chunks/{file-retention-y1fvbwt7.js → vcs-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-retention-y71avatq.js → vcs-y71avatq.js} +1 -1
- package/dist/chunks/{file-retention-hssp2agn.js → vcs-ycdqq8zj.js} +31 -31
- package/dist/chunks/{file-retention-rffv7t3r.js → vcs-yd2v78na.js} +23 -23
- package/dist/chunks/{file-retention-rvdt2200.js → vcs-ymsb3n01.js} +48 -48
- package/dist/chunks/{file-retention-rhraev7y.js → vcs-yp2x3t23.js} +4 -4
- package/dist/chunks/vcs-yq797vpt.js +513 -0
- package/dist/chunks/{file-retention-wjr9rjd7.js → vcs-ywt8jp22.js} +6 -6
- package/dist/chunks/{file-retention-z0bkrqjs.js → vcs-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-retention-d3vx323d.js → vcs-z2qhp8mt.js} +9 -9
- package/dist/chunks/{file-retention-wpyfkh8g.js → vcs-z4zy5fwe.js} +32 -32
- package/dist/chunks/{file-retention-6fptx04m.js → vcs-z67m2mck.js} +6 -6
- package/dist/chunks/{file-retention-3jv2hb3r.js → vcs-z7g9232g.js} +15 -15
- package/dist/chunks/{file-retention-dvkf5cf0.js → vcs-z7k5sp21.js} +22 -22
- package/dist/chunks/{file-retention-w18z4np3.js → vcs-zh36sqcy.js} +29 -29
- package/dist/chunks/{file-retention-zr2ceqn5.js → vcs-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-retention-2w444tzw.js → vcs-zwjz4pbc.js} +3 -3
- package/dist/chunks/{file-retention-zxq2ej10.js → vcs-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +120 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +119 -119
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +4 -4
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +136 -136
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +100 -100
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +99 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +219 -219
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +207 -207
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- 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 +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +95 -95
- 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 +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +212 -212
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- 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 +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/file-retention-4v7qdvcn.js +0 -18
- package/dist/chunks/file-retention-k8hky80b.js +0 -26
- package/dist/chunks/file-retention-my8wm2zc.js +0 -253
- package/dist/chunks/file-retention-zsrsm1dx.js +0 -513
- /package/dist/chunks/{file-retention-0qkdqm5v.js → vcs-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-retention-0zkw76rk.js → vcs-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-retention-17cy0kzp.js → vcs-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-retention-1cnp2v09.js → vcs-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-retention-1kg9ymc8.js → vcs-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-retention-24dcb14g.js → vcs-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-retention-2710q6r3.js → vcs-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-retention-2axfhc9x.js → vcs-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-retention-2bv980vf.js → vcs-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-retention-2c3vjs8z.js → vcs-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-retention-359p4xyc.js → vcs-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-retention-3asan66x.js → vcs-3asan66x.js} +0 -0
- /package/dist/chunks/{file-retention-3t0ybcrp.js → vcs-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{file-retention-3v8g72cx.js → vcs-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-retention-3wcehsnq.js → vcs-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-retention-43n2bw4t.js → vcs-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-retention-4knz6hnm.js → vcs-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-retention-4vcrnpx2.js → vcs-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-retention-4y7fprxs.js → vcs-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-retention-53557ph1.js → vcs-53557ph1.js} +0 -0
- /package/dist/chunks/{file-retention-550bvhaj.js → vcs-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-retention-5qd3pb7m.js → vcs-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-retention-6prwharc.js → vcs-6prwharc.js} +0 -0
- /package/dist/chunks/{file-retention-6q2bdcd1.js → vcs-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-retention-7akdwqpd.js → vcs-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-retention-7m9af43g.js → vcs-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-retention-822emrt2.js → vcs-822emrt2.js} +0 -0
- /package/dist/chunks/{file-retention-84wd9syh.js → vcs-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-retention-88xbtdfr.js → vcs-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-retention-8n3pysct.js → vcs-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-retention-8wj87zfr.js → vcs-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-retention-9a4afbnw.js → vcs-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-retention-9rqn6x4v.js → vcs-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-retention-a6k6eb26.js → vcs-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-retention-af5trqkr.js → vcs-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-retention-afrmfg78.js → vcs-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-retention-aqzs7mqg.js → vcs-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-retention-atq7p7m5.js → vcs-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-retention-bkyjaxrp.js → vcs-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-retention-bmr6ed5q.js → vcs-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-retention-cf4snx6d.js → vcs-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-retention-cvy3z8tj.js → vcs-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-retention-d9fn303g.js → vcs-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-retention-d9jj8t3e.js → vcs-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-retention-dajrwvna.js → vcs-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-retention-dap0rakb.js → vcs-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-retention-df08tz66.js → vcs-df08tz66.js} +0 -0
- /package/dist/chunks/{file-retention-dy18nga0.js → vcs-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-retention-e5kj55wp.js → vcs-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-retention-e73j6tqm.js → vcs-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-retention-ec1grn59.js → vcs-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-retention-eh3zwz77.js → vcs-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-retention-emrn6kk6.js → vcs-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-retention-f0mxakyp.js → vcs-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-retention-f6n9ztr4.js → vcs-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-retention-faypxj3z.js → vcs-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-retention-fd410y7t.js → vcs-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-retention-g4wezp1m.js → vcs-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-retention-g86h250q.js → vcs-g86h250q.js} +0 -0
- /package/dist/chunks/{file-retention-gebd4c9n.js → vcs-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-retention-gftt206x.js → vcs-gftt206x.js} +0 -0
- /package/dist/chunks/{file-retention-hcxmzztb.js → vcs-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-retention-hk9envan.js → vcs-hk9envan.js} +0 -0
- /package/dist/chunks/{file-retention-j2ntwpah.js → vcs-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-retention-j5zkgpj8.js → vcs-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-retention-jjkms2e6.js → vcs-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-retention-jr7sbwjy.js → vcs-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-retention-jwfs4k6c.js → vcs-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-retention-jze0r7bz.js → vcs-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-retention-jzg6c2d5.js → vcs-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-retention-m18g726c.js → vcs-m18g726c.js} +0 -0
- /package/dist/chunks/{file-retention-mp448xyj.js → vcs-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-retention-msx8hqn2.js → vcs-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-retention-n05xt0ee.js → vcs-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-retention-n3j8tn72.js → vcs-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-retention-njntx4h6.js → vcs-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-retention-pkyv6v7h.js → vcs-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{file-retention-pyv0edze.js → vcs-pyv0edze.js} +0 -0
- /package/dist/chunks/{file-retention-q3sfg36h.js → vcs-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-retention-q74kybfr.js → vcs-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-retention-qaymkmh1.js → vcs-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-retention-qb87gjwd.js → vcs-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-retention-qfa1cgps.js → vcs-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-retention-qg3g05ea.js → vcs-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-retention-qrg20bc0.js → vcs-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-retention-rcb2kzg1.js → vcs-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-retention-sdp7kfr6.js → vcs-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-retention-ssg3fenm.js → vcs-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-retention-ve7vex1e.js → vcs-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-retention-w803qqfp.js → vcs-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-retention-wc3fc9cn.js → vcs-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-retention-wer8tq1h.js → vcs-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-retention-wjj7prxr.js → vcs-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-retention-wtztk69x.js → vcs-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-retention-x0ckcb58.js → vcs-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-retention-x61499pn.js → vcs-x61499pn.js} +0 -0
- /package/dist/chunks/{file-retention-y44na4kk.js → vcs-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-retention-y8f7s663.js → vcs-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-retention-ygaqb7jw.js → vcs-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-retention-ym463w8f.js → vcs-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-retention-z5v4ffb3.js → vcs-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-retention-z9919s4g.js → vcs-z9919s4g.js} +0 -0
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID8,
|
|
3
|
+
Service66
|
|
4
|
+
} from "./vcs-vpycaasy.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service68
|
|
8
|
+
} from "./vcs-tc4g7eq4.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service51
|
|
12
|
+
} from "./vcs-6fzpscvt.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./vcs-hzrfc1p4.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service67
|
|
18
|
+
} from "./vcs-dcw3vkc0.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service60
|
|
22
|
+
} from "./vcs-wp94metk.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service26
|
|
25
|
+
} from "./vcs-qjh2dgdf.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./vcs-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
Service10
|
|
31
|
+
} from "./vcs-g3et1r9g.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./vcs-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input4,
|
|
40
|
+
Output: () => Output4,
|
|
41
|
+
Plugin: () => Plugin4,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description3,
|
|
44
|
+
name: () => name4
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name4 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input4 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input2 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output4 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description3 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description2 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin4 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service26;
|
|
93
|
+
const jobs = yield* Service67;
|
|
94
|
+
const agents = yield* Service66;
|
|
95
|
+
const config = yield* Service51;
|
|
96
|
+
const permission = yield* Service60;
|
|
97
|
+
const models = yield* Service68;
|
|
98
|
+
const subagents = yield* Service10;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin37 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name4,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description3,
|
|
121
|
+
input: Input4,
|
|
122
|
+
output: Output4,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin37 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name4,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin37 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID8.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name4 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name4];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name4, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name4, Input4, Output4, description3, Plugin4, exports_subagent };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./vcs-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Info13,
|
|
6
|
+
ID5,
|
|
7
7
|
Name2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./vcs-ajsx4q8w.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service51
|
|
11
|
+
} from "./vcs-6fzpscvt.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./vcs-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/skill.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
17
|
+
var exports_skill3 = {};
|
|
18
|
+
__export(exports_skill3, {
|
|
19
19
|
OpencodeContent: () => OpencodeContent2,
|
|
20
20
|
OpencodeDescription: () => OpencodeDescription2,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin43,
|
|
22
22
|
ReportContent: () => ReportContent2,
|
|
23
|
-
SkillPlugin: () =>
|
|
23
|
+
SkillPlugin: () => exports_skill3
|
|
24
24
|
});
|
|
25
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
26
26
|
import { Effect } from "effect";
|
|
@@ -425,20 +425,20 @@ var OpencodeContent2 = opencode_default;
|
|
|
425
425
|
var ReportContent2 = report_default;
|
|
426
426
|
var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
|
|
427
427
|
var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
|
|
428
|
-
var
|
|
428
|
+
var Plugin43 = define({
|
|
429
429
|
id: "opencode.skill",
|
|
430
430
|
effect: Effect.fn(function* (ctx) {
|
|
431
431
|
const reportContent = yield* reportContentWithDiagnostics(ctx.app);
|
|
432
432
|
yield* ctx.skill.transform((editor) => {
|
|
433
|
-
editor.add(
|
|
434
|
-
id:
|
|
433
|
+
editor.add(Info13.make({
|
|
434
|
+
id: ID5.make("opencode"),
|
|
435
435
|
name: Name2.make("OpenCode"),
|
|
436
436
|
description: OpencodeDescription2,
|
|
437
437
|
path: AbsolutePath2.make("/builtin/opencode.md"),
|
|
438
438
|
content: OpencodeContent2
|
|
439
439
|
}));
|
|
440
|
-
editor.add(
|
|
441
|
-
id:
|
|
440
|
+
editor.add(Info13.make({
|
|
441
|
+
id: ID5.make("report"),
|
|
442
442
|
name: Name2.make("Report"),
|
|
443
443
|
description: REPORT_DESCRIPTION,
|
|
444
444
|
path: AbsolutePath2.make("/builtin/report.md"),
|
|
@@ -467,7 +467,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
|
|
|
467
467
|
`);
|
|
468
468
|
});
|
|
469
469
|
var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
|
|
470
|
-
const config = yield*
|
|
470
|
+
const config = yield* Service51;
|
|
471
471
|
return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
|
|
472
472
|
});
|
|
473
473
|
function terminal() {
|
|
@@ -481,4 +481,4 @@ function shell() {
|
|
|
481
481
|
return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
|
|
482
482
|
}
|
|
483
483
|
|
|
484
|
-
export { OpencodeContent2, ReportContent2, OpencodeDescription2,
|
|
484
|
+
export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin43, exports_skill3 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./vcs-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./vcs-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/mcp.ts
|
|
9
9
|
var exports_mcp5 = {};
|
|
10
10
|
__export(exports_mcp5, {
|
|
11
11
|
ConfigMCPV1: () => exports_mcp5,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info9,
|
|
13
13
|
Local: () => Local2,
|
|
14
14
|
OAuth: () => OAuth2,
|
|
15
15
|
Remote: () => Remote2
|
|
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
|
|
|
64
64
|
description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
|
|
65
65
|
})
|
|
66
66
|
}).annotate({ identifier: "McpRemoteConfig" });
|
|
67
|
-
var
|
|
67
|
+
var Info9 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
|
|
68
68
|
|
|
69
|
-
export { Local2, OAuth2, Remote2,
|
|
69
|
+
export { Local2, OAuth2, Remote2, Info9, exports_mcp5 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service51
|
|
4
|
+
} from "./vcs-6fzpscvt.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service80
|
|
7
|
+
} from "./vcs-gw8g3a8n.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./vcs-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./vcs-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/snapshot.ts
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin24
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin24 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const snapshot = yield*
|
|
26
|
+
const config = yield* Service51;
|
|
27
|
+
const snapshot = yield* Service80;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin12 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin24, exports_snapshot };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./vcs-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./vcs-hzrfc1p4.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./vcs-0ybbsf06.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./vcs-0gdmqesm.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./vcs-es1vcfrp.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./vcs-6x89tf4f.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./vcs-nxe4pcap.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./vcs-9rqn6x4v.js";
|
|
29
29
|
|
|
30
30
|
// src/session/history.ts
|
|
31
31
|
var exports_history = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service77
|
|
3
|
+
} from "./vcs-h4txjgx3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./vcs-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/mcp/stdio.ts
|
|
9
9
|
var exports_stdio = {};
|
|
@@ -21,7 +21,7 @@ var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
|
21
21
|
var EXIT_WAIT = Duration.seconds(1);
|
|
22
22
|
var STDERR_TAIL = 1000;
|
|
23
23
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
24
|
-
const environment = yield*
|
|
24
|
+
const environment = yield* Service77;
|
|
25
25
|
const scope = yield* Effect.scope;
|
|
26
26
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
27
27
|
const buffer = new ReadBuffer;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service71
|
|
3
|
+
} from "./vcs-sfsey46c.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service60
|
|
6
|
+
} from "./vcs-wp94metk.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./vcs-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input14,
|
|
16
16
|
Output: () => Output9,
|
|
17
17
|
Plugin: () => Plugin50,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input14 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output9 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin50 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service71;
|
|
57
|
+
const permission = yield* Service60;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input14,
|
|
63
63
|
output: Output9,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -117,4 +117,4 @@ function toField(question, index) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export { name13, description6,
|
|
120
|
+
export { name13, description6, Input14, Output9, CancelledError2, toModelContent7, Plugin50, exports_question };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./vcs-r18p0vf7.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./vcs-5paa9ef2.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./vcs-3t0ybcrp.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./vcs-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError6,
|
|
20
|
+
Options: () => Options9,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service54,
|
|
23
23
|
UnavailableError: () => UnavailableError2,
|
|
24
|
-
available: () =>
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
24
|
+
available: () => available3,
|
|
25
|
+
configured: () => configured8,
|
|
26
|
+
layer: () => layer22,
|
|
27
|
+
node: () => node56
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -35,8 +35,8 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
import { available as
|
|
39
|
-
var
|
|
38
|
+
import { available as available3 } from "#persistent-pty-binary";
|
|
39
|
+
var Options9 = Schema.Struct({
|
|
40
40
|
handoff: Schema.optional(Handoff),
|
|
41
41
|
root: Schema.optional(Schema.String)
|
|
42
42
|
});
|
|
@@ -46,15 +46,15 @@ class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableE
|
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class NotFoundError6 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
50
50
|
ptyID: Pty.ID
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service54 extends Context.Service()("@opencode/PersistentPty") {
|
|
55
55
|
}
|
|
56
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
57
|
-
const bus = yield*
|
|
56
|
+
var makeLayer = (options = {}) => Layer.effect(Service54, Effect.gen(function* () {
|
|
57
|
+
const bus = yield* Service83;
|
|
58
58
|
const global = yield* Global.Service;
|
|
59
59
|
const context = yield* Effect.context();
|
|
60
60
|
const runFork = Effect.runForkWith(context);
|
|
@@ -76,7 +76,7 @@ var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* (
|
|
|
76
76
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
77
77
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
78
78
|
if (!found)
|
|
79
|
-
return yield* new
|
|
79
|
+
return yield* new NotFoundError6({ ptyID: id });
|
|
80
80
|
return found;
|
|
81
81
|
});
|
|
82
82
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -243,7 +243,7 @@ var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* (
|
|
|
243
243
|
detach: attachment.detach
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
return
|
|
246
|
+
return Service54.of({
|
|
247
247
|
list,
|
|
248
248
|
get,
|
|
249
249
|
create,
|
|
@@ -259,13 +259,13 @@ var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* (
|
|
|
259
259
|
attach
|
|
260
260
|
});
|
|
261
261
|
}));
|
|
262
|
-
var
|
|
263
|
-
var
|
|
264
|
-
service:
|
|
265
|
-
layer: options === undefined ?
|
|
266
|
-
deps: [
|
|
262
|
+
var layer22 = makeLayer();
|
|
263
|
+
var configured8 = (options) => makeGlobalNode({
|
|
264
|
+
service: Service54,
|
|
265
|
+
layer: options === undefined ? layer22 : makeLayer(options),
|
|
266
|
+
deps: [node87, Global.node]
|
|
267
267
|
});
|
|
268
|
-
var
|
|
268
|
+
var node56 = configured8();
|
|
269
269
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
270
270
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
271
271
|
var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options9, UnavailableError2, NotFoundError6, Service54, layer22, configured8, node56, exports_persistent_pty, Handoff2, available3 };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID11,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./vcs-ycdqq8zj.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID10,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info19,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./vcs-tc4g7eq4.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./vcs-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
ModalModels: () =>
|
|
19
|
-
derive: () =>
|
|
20
|
-
get: () =>
|
|
21
|
-
load: () =>
|
|
16
|
+
var exports_models = {};
|
|
17
|
+
__export(exports_models, {
|
|
18
|
+
ModalModels: () => exports_models,
|
|
19
|
+
derive: () => derive2,
|
|
20
|
+
get: () => get2,
|
|
21
|
+
load: () => load2
|
|
22
22
|
});
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Option, Schema } from "effect";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID11.make("modal");
|
|
26
26
|
var ReasoningOption = Schema.Struct({
|
|
27
27
|
type: Schema.Literal("effort"),
|
|
28
28
|
values: Schema.Array(Schema.NullOr(Schema.String))
|
|
@@ -54,10 +54,10 @@ var RemoteModel = Schema.Struct({
|
|
|
54
54
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
55
55
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
56
56
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
57
|
-
async function
|
|
58
|
-
return
|
|
57
|
+
async function get2(baseURL, apiKey, existing) {
|
|
58
|
+
return derive2(baseURL, await load2(baseURL, apiKey), existing);
|
|
59
59
|
}
|
|
60
|
-
async function
|
|
60
|
+
async function load2(baseURL, apiKey) {
|
|
61
61
|
const response = await fetch(`${baseURL.replace(/\/+$/, "")}/models`, {
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`
|
|
@@ -71,12 +71,12 @@ async function load3(baseURL, apiKey) {
|
|
|
71
71
|
return model ? [model] : [];
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function derive2(baseURL, remote, existing) {
|
|
75
75
|
const templates = new Map(existing.map((model) => [model.id, model]));
|
|
76
76
|
const result = new Map;
|
|
77
77
|
for (const item of remote) {
|
|
78
|
-
const template = templates.get(
|
|
79
|
-
const id =
|
|
78
|
+
const template = templates.get(ID10.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
|
|
79
|
+
const id = ID10.make(item.id);
|
|
80
80
|
result.set(id, build(id, item, baseURL, template));
|
|
81
81
|
}
|
|
82
82
|
return result;
|
|
@@ -94,10 +94,10 @@ function limit(value, fallback) {
|
|
|
94
94
|
function build(id, remote, baseURL, previous) {
|
|
95
95
|
const cost = previous?.cost[0];
|
|
96
96
|
const input = previous?.limit.input;
|
|
97
|
-
return
|
|
98
|
-
...
|
|
97
|
+
return Info19.make({
|
|
98
|
+
...Info19.default(providerID, id),
|
|
99
99
|
id,
|
|
100
|
-
modelID:
|
|
100
|
+
modelID: ID10.make(remote.id),
|
|
101
101
|
providerID,
|
|
102
102
|
name: remote.name ?? previous?.name ?? remote.id,
|
|
103
103
|
family: previous?.family,
|
|
@@ -144,4 +144,4 @@ function variants(remote) {
|
|
|
144
144
|
return [...seen.values()];
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
export {
|
|
147
|
+
export { get2, load2, derive2, exports_models };
|