@opencode/core 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{location-h6nxw0pd.js → instruction-discovery-029er0hp.js} +6 -6
- package/dist/chunks/{location-qx4vf964.js → instruction-discovery-0a3qk1rf.js} +26 -26
- package/dist/chunks/{location-2h5hbqz0.js → instruction-discovery-0a90bcv0.js} +8 -8
- package/dist/chunks/{location-t44e5ekz.js → instruction-discovery-0e92bpf8.js} +8 -8
- package/dist/chunks/{location-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{location-0q0f95c6.js → instruction-discovery-0q0f95c6.js} +1 -1
- package/dist/chunks/{location-t08nxc7z.js → instruction-discovery-0r7xxs81.js} +23 -23
- package/dist/chunks/{location-xgwrkgz7.js → instruction-discovery-0yy4b7d0.js} +33 -33
- package/dist/chunks/{location-9e4sgp44.js → instruction-discovery-1829bv76.js} +11 -11
- package/dist/chunks/{location-v955qpq7.js → instruction-discovery-18steed6.js} +18 -18
- package/dist/chunks/{location-zhq6vg7a.js → instruction-discovery-19w9qk9n.js} +1 -1
- package/dist/chunks/{location-bwan06ag.js → instruction-discovery-1az6fcmj.js} +11 -11
- package/dist/chunks/{location-4ndgv5gc.js → instruction-discovery-1c2y5bma.js} +11 -11
- package/dist/chunks/{location-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{location-fvezrss0.js → instruction-discovery-1mr1eyme.js} +12 -12
- package/dist/chunks/{location-d4h3m1fk.js → instruction-discovery-1nm9pcrp.js} +21 -21
- package/dist/chunks/{location-mraxsbbc.js → instruction-discovery-1r7c63ym.js} +3 -3
- package/dist/chunks/{location-gap281sm.js → instruction-discovery-1sj4msk3.js} +14 -14
- package/dist/chunks/{location-jnj7tv4d.js → instruction-discovery-1z146pd3.js} +16 -16
- package/dist/chunks/{location-ma15yhyh.js → instruction-discovery-207ajt2h.js} +5 -5
- package/dist/chunks/{location-21r38tys.js → instruction-discovery-21r38tys.js} +1 -1
- package/dist/chunks/{location-ha607pgt.js → instruction-discovery-23wpwp1k.js} +6 -6
- package/dist/chunks/{location-0n6bmg1f.js → instruction-discovery-24p6mxem.js} +13 -13
- package/dist/chunks/{location-mg9k7fh1.js → instruction-discovery-26zmf1pq.js} +22 -22
- package/dist/chunks/{location-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{location-z9037jhe.js → instruction-discovery-2j4ac2f1.js} +11 -11
- package/dist/chunks/{location-genz7rm5.js → instruction-discovery-2jh18hkm.js} +4 -4
- package/dist/chunks/{location-57ez7d0k.js → instruction-discovery-2w6fc0zt.js} +7 -7
- package/dist/chunks/{location-4gw20jm7.js → instruction-discovery-32nwpadc.js} +11 -11
- package/dist/chunks/{location-16fm13tn.js → instruction-discovery-338yd3q8.js} +5 -5
- package/dist/chunks/{location-z0ahgr69.js → instruction-discovery-33msecec.js} +27 -27
- package/dist/chunks/{location-56gdpj1q.js → instruction-discovery-33w4ejhs.js} +6 -6
- package/dist/chunks/{location-g6kf84zp.js → instruction-discovery-36m7pkzw.js} +6 -6
- package/dist/chunks/{location-fkrjvdfc.js → instruction-discovery-378zzhja.js} +31 -31
- package/dist/chunks/{location-k9matq9w.js → instruction-discovery-3bnvp3y0.js} +15 -15
- package/dist/chunks/{location-4y7mzcta.js → instruction-discovery-3c8gbk9s.js} +17 -17
- package/dist/chunks/{location-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-fzkvtrkw.js → instruction-discovery-3nwqm4xm.js} +5 -5
- package/dist/chunks/{location-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-m3dp0h2h.js → instruction-discovery-3vhfgt92.js} +8 -8
- package/dist/chunks/{location-b6f6n79x.js → instruction-discovery-3zj26zxs.js} +9 -9
- package/dist/chunks/{location-aqxshtk7.js → instruction-discovery-444wcx0m.js} +33 -33
- package/dist/chunks/{location-h6r3nrb9.js → instruction-discovery-44h5tttr.js} +4 -4
- package/dist/chunks/{location-80pk4fcb.js → instruction-discovery-45zz8fdq.js} +5 -5
- package/dist/chunks/{location-54nm7ze4.js → instruction-discovery-466w7y98.js} +10 -10
- package/dist/chunks/{location-p6k0w3ef.js → instruction-discovery-48pbfrvk.js} +9 -9
- package/dist/chunks/{location-6qx63egk.js → instruction-discovery-4edzycq9.js} +79 -79
- package/dist/chunks/{location-xg60yd56.js → instruction-discovery-4jdqb6vt.js} +20 -20
- package/dist/chunks/{location-z83nn3gv.js → instruction-discovery-4jq0495n.js} +18 -18
- package/dist/chunks/{location-bccdc2z8.js → instruction-discovery-4jww6vkh.js} +17 -17
- package/dist/chunks/{location-wv7pem94.js → instruction-discovery-4kvj1wzz.js} +10 -10
- package/dist/chunks/{location-njhqdk9p.js → instruction-discovery-4nj4bn9q.js} +2 -2
- package/dist/chunks/instruction-discovery-4v7qdvcn.js +18 -0
- package/dist/chunks/{location-71yarwtx.js → instruction-discovery-56w11rj3.js} +4 -4
- package/dist/chunks/{location-1gfezbxs.js → instruction-discovery-58ka6e3j.js} +30 -30
- package/dist/chunks/{location-ynp65gvm.js → instruction-discovery-5a7yz907.js} +7 -7
- package/dist/chunks/{location-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{location-71zsbp9a.js → instruction-discovery-5p6pg4tj.js} +20 -20
- package/dist/chunks/{location-2qbra9xj.js → instruction-discovery-5rtcdtd1.js} +19 -19
- package/dist/chunks/{location-4gbwy2e3.js → instruction-discovery-5rz2hsq0.js} +7 -7
- package/dist/chunks/{location-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/{location-p84dsdfh.js → instruction-discovery-64s65d1n.js} +8 -8
- package/dist/chunks/{location-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{location-x3589ane.js → instruction-discovery-6a9734zn.js} +29 -29
- package/dist/chunks/{location-d6b8948v.js → instruction-discovery-6bp9km5f.js} +5 -5
- package/dist/chunks/instruction-discovery-6cqkcgv0.js +478 -0
- package/dist/chunks/{location-6h73sxmp.js → instruction-discovery-6h73sxmp.js} +1 -1
- package/dist/chunks/{location-6msgmcgs.js → instruction-discovery-6msgmcgs.js} +1 -1
- package/dist/chunks/{location-mvfsc1pv.js → instruction-discovery-73tb2d7t.js} +3 -3
- package/dist/chunks/{location-53nms1ph.js → instruction-discovery-77m2hw5c.js} +32 -32
- package/dist/chunks/{location-tmq9efvy.js → instruction-discovery-78hbjvp7.js} +18 -18
- package/dist/chunks/{location-pe4p6r2b.js → instruction-discovery-78rb030m.js} +33 -33
- package/dist/chunks/{location-37s12vcn.js → instruction-discovery-78v47nsk.js} +5 -5
- package/dist/chunks/instruction-discovery-7aagt1ep.js +247 -0
- package/dist/chunks/{location-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-4q5m965g.js → instruction-discovery-7j3fq2cw.js} +9 -9
- package/dist/chunks/{location-tsjh32me.js → instruction-discovery-7kvy0jtg.js} +12 -12
- package/dist/chunks/{location-5c0f1prt.js → instruction-discovery-81czwxpn.js} +4 -4
- package/dist/chunks/{location-zyx4eyj3.js → instruction-discovery-88dkmhka.js} +2 -2
- package/dist/chunks/{location-qb3a001x.js → instruction-discovery-88z92y6j.js} +41 -41
- package/dist/chunks/{location-t73kfpst.js → instruction-discovery-8actpy02.js} +13 -13
- package/dist/chunks/{location-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{location-9ykb5v1y.js → instruction-discovery-8hdgcmvp.js} +5 -5
- package/dist/chunks/{location-8p4f9s12.js → instruction-discovery-8p4f9s12.js} +2 -2
- package/dist/chunks/{location-dc94v6gx.js → instruction-discovery-92f49rtq.js} +20 -20
- package/dist/chunks/{location-bkpqdbf1.js → instruction-discovery-9g3d7f2z.js} +26 -26
- package/dist/chunks/{location-n2apd2zv.js → instruction-discovery-9hjja45j.js} +9 -9
- package/dist/chunks/{location-p37cw4rj.js → instruction-discovery-9hn6k4tm.js} +8 -8
- package/dist/chunks/{location-sqjb25rk.js → instruction-discovery-9kyabea7.js} +11 -11
- package/dist/chunks/{location-rvenhx9v.js → instruction-discovery-9n0dsy51.js} +166 -166
- package/dist/chunks/{location-t9tr543n.js → instruction-discovery-9pv03zpw.js} +79 -45
- package/dist/chunks/{location-wpt2rh6k.js → instruction-discovery-9rkevmgk.js} +26 -26
- package/dist/chunks/{location-ejrd0ctn.js → instruction-discovery-9v8385ms.js} +5 -5
- package/dist/chunks/{location-5f0yx823.js → instruction-discovery-9y32njdq.js} +25 -25
- package/dist/chunks/{location-a1bz86dw.js → instruction-discovery-a1bz86dw.js} +3 -3
- package/dist/chunks/{location-r62y7mfn.js → instruction-discovery-a87mck0n.js} +25 -25
- package/dist/chunks/{location-g190xswt.js → instruction-discovery-a8bn8zg0.js} +4 -4
- package/dist/chunks/{location-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{location-y7wqy8pr.js → instruction-discovery-ab258zec.js} +19 -19
- package/dist/chunks/{location-ze4b80hv.js → instruction-discovery-aebc7qpb.js} +32 -32
- package/dist/chunks/{location-a6ntkr4w.js → instruction-discovery-ak3nc98z.js} +4 -4
- package/dist/chunks/{location-a8d2vvnh.js → instruction-discovery-ampvn4qt.js} +6 -6
- package/dist/chunks/{location-g1sxm558.js → instruction-discovery-aq5y8b9e.js} +8 -8
- package/dist/chunks/{location-sr0mbv75.js → instruction-discovery-ay615zsc.js} +12 -12
- package/dist/chunks/{location-yvny6rkw.js → instruction-discovery-b1746fgd.js} +24 -24
- package/dist/chunks/{location-q3fve2xg.js → instruction-discovery-b3y784v2.js} +17 -17
- package/dist/chunks/{location-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{location-xr0yzbqe.js → instruction-discovery-c6nzkrcz.js} +4 -4
- package/dist/chunks/{location-pnbc4b3j.js → instruction-discovery-cbgr23ns.js} +11 -11
- package/dist/chunks/{location-55rvc5qv.js → instruction-discovery-cckk8bsw.js} +28 -28
- package/dist/chunks/{location-cfpkc3c9.js → instruction-discovery-cfpkc3c9.js} +2 -2
- package/dist/chunks/{location-4v7ac2af.js → instruction-discovery-cksv5s6r.js} +26 -26
- package/dist/chunks/{location-cdbvkm1j.js → instruction-discovery-cpaj0n15.js} +5 -5
- package/dist/chunks/{location-ngacfpxr.js → instruction-discovery-cvnk88jx.js} +21 -21
- package/dist/chunks/{location-84fnhy9b.js → instruction-discovery-d7930f8j.js} +10 -10
- package/dist/chunks/{location-etryyd25.js → instruction-discovery-dcjwzqtv.js} +32 -32
- package/dist/chunks/{location-c488s98d.js → instruction-discovery-df9eyrmy.js} +12 -12
- package/dist/chunks/{location-d4he2qe1.js → instruction-discovery-djszqvmq.js} +9 -9
- package/dist/chunks/{location-y71avatq.js → instruction-discovery-dpkg50ah.js} +4 -4
- package/dist/chunks/{location-xfkkasph.js → instruction-discovery-drwq78ky.js} +4 -4
- package/dist/chunks/{location-ppnykba5.js → instruction-discovery-dw8937wj.js} +11 -11
- package/dist/chunks/{location-ge2f9a94.js → instruction-discovery-dwd00071.js} +19 -19
- package/dist/chunks/{location-j311gd59.js → instruction-discovery-dwvzh0g2.js} +9 -9
- package/dist/chunks/{location-k9avtbwf.js → instruction-discovery-e17z8zpc.js} +6 -6
- package/dist/chunks/{location-0cchtpr4.js → instruction-discovery-e4nq6v23.js} +8 -8
- package/dist/chunks/{location-s8367sdj.js → instruction-discovery-eebc2rt6.js} +15 -15
- package/dist/chunks/{location-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-czd7j84z.js → instruction-discovery-em05np38.js} +8 -8
- package/dist/chunks/{location-tcddack9.js → instruction-discovery-emkjygpb.js} +18 -18
- package/dist/chunks/{location-k624arf9.js → instruction-discovery-emzgf0hj.js} +3 -3
- package/dist/chunks/{location-qn4ba14w.js → instruction-discovery-eq23s0y6.js} +5 -5
- package/dist/chunks/{location-t5fxxz44.js → instruction-discovery-etcptmad.js} +26 -26
- package/dist/chunks/{location-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/{location-4kqwnkpq.js → instruction-discovery-f2kqmm63.js} +8 -8
- package/dist/chunks/{location-1bc7s31c.js → instruction-discovery-f7n6j563.js} +17 -17
- package/dist/chunks/{location-f828m53h.js → instruction-discovery-f828m53h.js} +2 -2
- package/dist/chunks/{location-1e34zb65.js → instruction-discovery-fbaqdnvp.js} +20 -20
- package/dist/chunks/{location-shtmkj1w.js → instruction-discovery-fqww2hbw.js} +23 -23
- package/dist/chunks/{location-2jfw170m.js → instruction-discovery-fw3v8b4w.js} +9 -9
- package/dist/chunks/{location-fxbjtjnd.js → instruction-discovery-fxbjtjnd.js} +1 -1
- package/dist/chunks/{location-7cgd0b8x.js → instruction-discovery-g35x6qc6.js} +22 -22
- package/dist/chunks/{location-eqa8eaaa.js → instruction-discovery-g479j9dz.js} +11 -11
- package/dist/chunks/{location-cwwe0xn7.js → instruction-discovery-g8tp2ddb.js} +78 -78
- package/dist/chunks/{location-mf4knkt4.js → instruction-discovery-g9cpt5ca.js} +30 -30
- package/dist/chunks/{location-s8d7rejh.js → instruction-discovery-gbt6w4kb.js} +8 -8
- package/dist/chunks/{location-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-cjdwydd7.js → instruction-discovery-gm9abxbg.js} +13 -13
- package/dist/chunks/{location-6xbxg5de.js → instruction-discovery-gq5rp1wh.js} +6 -6
- package/dist/chunks/{location-rp6d2jqx.js → instruction-discovery-gqt4q109.js} +24 -24
- package/dist/chunks/{location-gv6a8nnw.js → instruction-discovery-gv6a8nnw.js} +2 -2
- package/dist/chunks/{location-cshhrmft.js → instruction-discovery-gwm2cjfp.js} +17 -17
- package/dist/chunks/{location-h03wrkyp.js → instruction-discovery-h03wrkyp.js} +2 -2
- package/dist/chunks/{location-pb8g46v2.js → instruction-discovery-h2vfddx5.js} +42 -42
- package/dist/chunks/{location-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-h6qd4a95.js → instruction-discovery-h7dw0jnp.js} +44 -44
- package/dist/chunks/{location-0ekdksbx.js → instruction-discovery-h9vg4cc6.js} +24 -24
- package/dist/chunks/{location-y16p1w2y.js → instruction-discovery-hes1j7ga.js} +9 -9
- package/dist/chunks/{location-2073epbj.js → instruction-discovery-hj4jgbr8.js} +9 -9
- package/dist/chunks/{location-e8xyxekr.js → instruction-discovery-hnpkfvtv.js} +47 -47
- package/dist/chunks/{location-h896pcm5.js → instruction-discovery-hq8zt1th.js} +4 -4
- package/dist/chunks/{location-k74qzmgf.js → instruction-discovery-hzzav9z2.js} +14 -14
- package/dist/chunks/{location-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{location-41h561sc.js → instruction-discovery-j5rxtxht.js} +7 -8
- package/dist/chunks/{location-6yk9v5a8.js → instruction-discovery-jcehjjw3.js} +4 -4
- package/dist/chunks/{location-v63zasnn.js → instruction-discovery-jg7s3n8r.js} +20 -20
- package/dist/chunks/{location-cyt4mzy8.js → instruction-discovery-jgf81bvk.js} +66 -66
- package/dist/chunks/{location-e4z3td0h.js → instruction-discovery-jk6a9ave.js} +30 -30
- package/dist/chunks/{location-s1tbsnwf.js → instruction-discovery-jyfph6m6.js} +22 -22
- package/dist/chunks/{location-2cg15w2x.js → instruction-discovery-k14vmcg0.js} +13 -13
- package/dist/chunks/{location-jppvw2tx.js → instruction-discovery-k3gnzxs0.js} +5 -5
- package/dist/chunks/{location-1pjkgqc1.js → instruction-discovery-k6rzxkd3.js} +11 -11
- package/dist/chunks/{location-txrndw2w.js → instruction-discovery-k9w3fgz4.js} +25 -25
- package/dist/chunks/{location-44ke2mar.js → instruction-discovery-knb7evpn.js} +2 -2
- package/dist/chunks/{location-vyy93js0.js → instruction-discovery-kqjw8gv6.js} +37 -37
- package/dist/chunks/{location-gvqzdcce.js → instruction-discovery-krxgz8mr.js} +22 -22
- package/dist/chunks/instruction-discovery-m3fdjcah.js +46 -0
- package/dist/chunks/{location-fb7w7frq.js → instruction-discovery-m4cf4vvt.js} +15 -15
- package/dist/chunks/{location-4zwsjqnv.js → instruction-discovery-m837a38g.js} +19 -19
- package/dist/chunks/{location-jpkvw2np.js → instruction-discovery-m8pwhfnp.js} +37 -37
- package/dist/chunks/{location-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-z0e3fq4k.js → instruction-discovery-mbrtjw0c.js} +6 -6
- package/dist/chunks/{location-htqn1cqw.js → instruction-discovery-mjqn40ac.js} +11 -11
- package/dist/chunks/{location-7w99qc9d.js → instruction-discovery-mn7hgmyj.js} +3 -3
- package/dist/chunks/instruction-discovery-mqvgb463.js +26 -0
- package/dist/chunks/{location-c5gn303e.js → instruction-discovery-mqy0jkn2.js} +4 -4
- package/dist/chunks/{location-7d92myjq.js → instruction-discovery-mx7b5mce.js} +39 -39
- package/dist/chunks/{location-26vh48er.js → instruction-discovery-n0tdmknn.js} +7 -7
- package/dist/chunks/{location-st4yk5kb.js → instruction-discovery-n1xefwxf.js} +11 -11
- package/dist/chunks/{location-jrr2ndyj.js → instruction-discovery-n81wkjqj.js} +3 -3
- package/dist/chunks/{location-eshsynjd.js → instruction-discovery-n9bg66xr.js} +28 -28
- package/dist/chunks/{location-weh21y9w.js → instruction-discovery-nn3w8ya3.js} +11 -11
- package/dist/chunks/{location-pnv527nz.js → instruction-discovery-nscznvay.js} +9 -9
- package/dist/chunks/{location-r9mregkx.js → instruction-discovery-nzks3jc8.js} +44 -27
- package/dist/chunks/{location-a1a50ys5.js → instruction-discovery-p44d8wdy.js} +5 -5
- package/dist/chunks/{location-3egkyh9x.js → instruction-discovery-p6hhdbp1.js} +8 -8
- package/dist/chunks/{location-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{location-485fr60v.js → instruction-discovery-pyp2rmkt.js} +16 -16
- package/dist/chunks/{location-5x09agpp.js → instruction-discovery-q2bxhs6b.js} +51 -51
- package/dist/chunks/{location-8n64cbn2.js → instruction-discovery-q581keqr.js} +2 -2
- package/dist/chunks/{location-qc69v8fs.js → instruction-discovery-q60qfh9s.js} +6 -6
- package/dist/chunks/{location-m8dm7px8.js → instruction-discovery-q76b2ped.js} +22 -22
- package/dist/chunks/{location-t5j6jz0m.js → instruction-discovery-qcb68cv5.js} +20 -20
- package/dist/chunks/{location-z188jmp0.js → instruction-discovery-qewbq6bc.js} +13 -13
- package/dist/chunks/{location-607tc6va.js → instruction-discovery-qgn6gcr1.js} +5 -5
- package/dist/chunks/{location-d4091zmr.js → instruction-discovery-qh96k4k1.js} +11 -11
- package/dist/chunks/{location-mz8r4wev.js → instruction-discovery-qjpk9dge.js} +7 -7
- package/dist/chunks/{location-fqb2p7cx.js → instruction-discovery-qm0v3jhh.js} +7 -7
- package/dist/chunks/{location-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{location-snypfz89.js → instruction-discovery-qwy8h0yc.js} +7 -7
- package/dist/chunks/{location-kf09gset.js → instruction-discovery-r1p3dd79.js} +14 -14
- package/dist/chunks/{location-k3rr10ns.js → instruction-discovery-rb6z2mdp.js} +28 -28
- package/dist/chunks/{location-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-2y4tf7d9.js → instruction-discovery-rw15cjs6.js} +7 -7
- package/dist/chunks/{location-9ar5c0cq.js → instruction-discovery-rwk055kb.js} +3 -3
- package/dist/chunks/{location-rzs3gq0x.js → instruction-discovery-rzs3gq0x.js} +1 -1
- package/dist/chunks/{location-d2tce9ap.js → instruction-discovery-s2br5vfy.js} +1 -1
- package/dist/chunks/{location-fe5yr6he.js → instruction-discovery-s84t8sre.js} +20 -20
- package/dist/chunks/{location-eevr0wqz.js → instruction-discovery-ssbpaa97.js} +3 -3
- package/dist/chunks/{location-r54z1mhc.js → instruction-discovery-sxqcr6wk.js} +12 -12
- package/dist/chunks/{location-t9zs3egg.js → instruction-discovery-t9zs3egg.js} +1 -1
- package/dist/chunks/{location-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-s9p11epj.js → instruction-discovery-tbrsbcaz.js} +12 -12
- package/dist/chunks/{location-89znhe33.js → instruction-discovery-tcezcvh9.js} +4 -4
- package/dist/chunks/{location-4wv5y4sh.js → instruction-discovery-td2t4wzh.js} +41 -41
- package/dist/chunks/{location-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{location-9djwnjxj.js → instruction-discovery-tm6j2b42.js} +35 -35
- package/dist/chunks/{location-t56ztj25.js → instruction-discovery-tmp7mf59.js} +24 -24
- package/dist/chunks/{location-ed36h9sa.js → instruction-discovery-tr16pgkv.js} +27 -27
- package/dist/chunks/{location-bd0ss37q.js → instruction-discovery-ts9rs282.js} +15 -15
- package/dist/chunks/{location-7yhrjmqc.js → instruction-discovery-ttdfrrk2.js} +11 -11
- package/dist/chunks/{location-tvtrv512.js → instruction-discovery-tvtrv512.js} +1 -1
- package/dist/chunks/{location-gbxnzk38.js → instruction-discovery-v5w6sppg.js} +32 -32
- package/dist/chunks/{location-72ewdht9.js → instruction-discovery-vcye14pz.js} +40 -32
- package/dist/chunks/{location-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{location-me799xqk.js → instruction-discovery-vx97awvm.js} +31 -31
- package/dist/chunks/{location-ycjgd44k.js → instruction-discovery-vxf6g7p6.js} +5 -5
- package/dist/chunks/{location-z6y26n19.js → instruction-discovery-vyxzcs45.js} +4 -4
- package/dist/chunks/{location-hfdr1yjj.js → instruction-discovery-vyy6cxw9.js} +4 -4
- package/dist/chunks/{location-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{location-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-bjs2yq5f.js → instruction-discovery-w4arg62q.js} +6 -6
- package/dist/chunks/instruction-discovery-wd3es6t1.js +4 -0
- package/dist/chunks/{location-8qwcecfd.js → instruction-discovery-wd3qynhg.js} +1 -1
- package/dist/chunks/{location-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{location-yq2q1mjm.js → instruction-discovery-wjck36vb.js} +3 -3
- package/dist/chunks/{location-1ajyz94d.js → instruction-discovery-wmttgrd3.js} +11 -11
- package/dist/chunks/{location-4pdtgr8m.js → instruction-discovery-x12gwff2.js} +24 -24
- package/dist/chunks/{location-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{location-ckz6mm57.js → instruction-discovery-x33k6nf3.js} +21 -21
- package/dist/chunks/{location-typ6ybs4.js → instruction-discovery-x4hh2yva.js} +27 -27
- package/dist/chunks/{location-zn93437f.js → instruction-discovery-x4ytj6pq.js} +29 -29
- package/dist/chunks/{location-0g8qpgb7.js → instruction-discovery-x83qg319.js} +5 -5
- package/dist/chunks/{location-pg4czqbe.js → instruction-discovery-x9hq217q.js} +33 -33
- package/dist/chunks/{location-x1war47d.js → instruction-discovery-xdbx4t5e.js} +10 -10
- package/dist/chunks/{location-pht46j1j.js → instruction-discovery-xxx2a5sq.js} +8 -8
- package/dist/chunks/{location-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/instruction-discovery-y35sf2j4.js +164 -0
- package/dist/chunks/{location-pfcfnkqj.js → instruction-discovery-y3w6sw4s.js} +5 -5
- package/dist/chunks/{location-x1fxwrpv.js → instruction-discovery-y55yjzpr.js} +51 -51
- package/dist/chunks/{location-nng2ktcm.js → instruction-discovery-y6pbk9jp.js} +2 -2
- package/dist/chunks/{location-818pfwc9.js → instruction-discovery-y7x142mt.js} +8 -8
- package/dist/chunks/{location-b1ppdmtk.js → instruction-discovery-ydzd8ct0.js} +20 -20
- package/dist/chunks/{location-p3qxne8d.js → instruction-discovery-yhj6r7vt.js} +23 -23
- package/dist/chunks/{location-1acjjqhc.js → instruction-discovery-yp2x3t23.js} +4 -4
- package/dist/chunks/{location-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{location-yrznvahk.js → instruction-discovery-yrznvahk.js} +2 -2
- package/dist/chunks/{location-y2bp1sda.js → instruction-discovery-ytfea4mt.js} +14 -14
- package/dist/chunks/{location-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-t7gx2zvx.js → instruction-discovery-z3tdms7e.js} +21 -21
- package/dist/chunks/{location-z63w68vq.js → instruction-discovery-z63w68vq.js} +2 -2
- package/dist/chunks/{location-embw8kgh.js → instruction-discovery-zav06jzw.js} +4 -4
- package/dist/chunks/{location-phz9ppdn.js → instruction-discovery-zdpte8cy.js} +13 -13
- package/dist/chunks/{location-zeh9ct20.js → instruction-discovery-zeh9ct20.js} +2 -2
- package/dist/chunks/{location-nb0t3kxz.js → instruction-discovery-zhv99wwk.js} +14 -14
- package/dist/chunks/{location-7x9k4znd.js → instruction-discovery-zmz7rfv6.js} +49 -49
- package/dist/chunks/{location-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -2
- package/dist/codemode/web.js +10 -0
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -212
- package/dist/config/plugin/compaction.js +159 -158
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +125 -125
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -360
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +73 -73
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -219
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +107 -107
- package/dist/form.js +81 -81
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +100 -100
- 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 +98 -98
- 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 +3 -3
- package/dist/instance.js +354 -353
- package/dist/instruction-discovery.js +82 -82
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +74 -74
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +68 -68
- package/dist/location-activity.js +134 -134
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +353 -352
- package/dist/location.js +80 -80
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +125 -124
- package/dist/mcp/oauth.js +81 -78
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +97 -97
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -79
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +108 -108
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -216
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +328 -327
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +119 -119
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +343 -342
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +226 -225
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -81
- package/dist/provider.js +98 -98
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +86 -86
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -130
- package/dist/session/context.js +151 -150
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +1 -1
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +222 -221
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +150 -149
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +114 -113
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +227 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +125 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +155 -154
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +216 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -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 +15 -15
- package/dist/shell.js +135 -135
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +109 -109
- package/dist/snapshot.js +88 -88
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +122 -121
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +5 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +116 -116
- package/dist/tool/plugin/shell.js +214 -213
- package/dist/tool/plugin/skill.js +110 -110
- package/dist/tool/plugin/subagent.js +218 -217
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -13
- package/dist/types/codemode/web.d.ts +8 -0
- package/dist/types/plugin/identity.d.ts +0 -1
- package/dist/types/tool/plugin/opencode.d.ts +7 -0
- package/dist/types/tool/plugin/subagent.d.ts +3 -1
- 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 +7 -7
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +1 -1
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +77 -77
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/location-0mesazry.js +0 -4
- package/dist/chunks/location-15k3fnp5.js +0 -478
- package/dist/chunks/location-az2ykr48.js +0 -26
- package/dist/chunks/location-by5v678g.js +0 -18
- package/dist/chunks/location-xj85r64f.js +0 -247
- package/dist/chunks/location-z2nspjwn.js +0 -80
- /package/dist/chunks/{location-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-922hggd3.js → instruction-discovery-922hggd3.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-twg0f83k.js → instruction-discovery-twg0f83k.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service39
|
|
7
|
+
} from "./instruction-discovery-h2vfddx5.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service73
|
|
13
|
+
} from "./instruction-discovery-cvnk88jx.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service52
|
|
16
|
+
} from "./instruction-discovery-n1xefwxf.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service55
|
|
19
|
+
} from "./instruction-discovery-zmz7rfv6.js";
|
|
20
20
|
import {
|
|
21
21
|
Service14,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./instruction-discovery-fw3v8b4w.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./instruction-discovery-fxbjtjnd.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service66,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./instruction-discovery-g35x6qc6.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
35
|
+
NotFoundError4,
|
|
36
36
|
Service36
|
|
37
|
-
} from "./
|
|
37
|
+
} from "./instruction-discovery-tm6j2b42.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service21
|
|
40
|
+
} from "./instruction-discovery-g8tp2ddb.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./instruction-discovery-c6nzkrcz.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
49
|
var exports_shell = {};
|
|
50
50
|
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
52
|
+
Input: () => Input11,
|
|
53
|
+
Plugin: () => Plugin13,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name11
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name11 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input11 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -115,19 +115,19 @@ Output is streaming to: ${file}`,
|
|
|
115
115
|
truncated: false,
|
|
116
116
|
status: "running"
|
|
117
117
|
});
|
|
118
|
-
var
|
|
118
|
+
var Plugin13 = {
|
|
119
119
|
id: "opencode.tool.shell",
|
|
120
120
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
121
|
-
const sessions = yield*
|
|
122
|
-
const jobs = yield*
|
|
121
|
+
const sessions = yield* Service21;
|
|
122
|
+
const jobs = yield* Service52;
|
|
123
123
|
const scope = yield* Scope.Scope;
|
|
124
|
-
const environment = yield*
|
|
124
|
+
const environment = yield* Service73;
|
|
125
125
|
const access = yield* Service14;
|
|
126
126
|
const shell = yield* Service36;
|
|
127
|
-
const shellSelect = yield*
|
|
127
|
+
const shellSelect = yield* Service66;
|
|
128
128
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
129
|
-
const permission = yield*
|
|
130
|
-
const config = yield*
|
|
129
|
+
const permission = yield* Service55;
|
|
130
|
+
const config = yield* Service39;
|
|
131
131
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
132
132
|
const source = {
|
|
133
133
|
type: "tool",
|
|
@@ -146,7 +146,7 @@ var Plugin11 = {
|
|
|
146
146
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
147
147
|
if (parsed.commands.length > 0)
|
|
148
148
|
yield* permission.assert({
|
|
149
|
-
action:
|
|
149
|
+
action: name11,
|
|
150
150
|
resources: parsed.commands.map((command) => command.resource),
|
|
151
151
|
save: parsed.commands.map((command) => command.save),
|
|
152
152
|
sessionID: context.sessionID,
|
|
@@ -183,10 +183,10 @@ var Plugin11 = {
|
|
|
183
183
|
yield* jobs.completeBackground(info.notificationID);
|
|
184
184
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
185
185
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
186
|
-
name:
|
|
186
|
+
name: name11,
|
|
187
187
|
options: { codemode: false },
|
|
188
188
|
description: description(),
|
|
189
|
-
input:
|
|
189
|
+
input: Input11,
|
|
190
190
|
output: Output,
|
|
191
191
|
execute: (input, context) => Effect.gen(function* () {
|
|
192
192
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -205,7 +205,7 @@ var Plugin11 = {
|
|
|
205
205
|
const run = Effect.gen(function* () {
|
|
206
206
|
const result = yield* shell.result(info);
|
|
207
207
|
if (!result.capture)
|
|
208
|
-
return yield* new
|
|
208
|
+
return yield* new NotFoundError4({ id: info.id });
|
|
209
209
|
const output = output2(result);
|
|
210
210
|
return {
|
|
211
211
|
...output,
|
|
@@ -219,7 +219,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
219
219
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
220
220
|
const job = yield* jobs.start({
|
|
221
221
|
id: info.id,
|
|
222
|
-
type:
|
|
222
|
+
type: name11,
|
|
223
223
|
title: info.command,
|
|
224
224
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
225
225
|
recovery: {
|
|
@@ -249,7 +249,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
249
249
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
250
250
|
})).pipe(Effect.orDie);
|
|
251
251
|
const hook = (event) => Effect.gen(function* () {
|
|
252
|
-
const tool = event.tools[
|
|
252
|
+
const tool = event.tools[name11];
|
|
253
253
|
if (!tool)
|
|
254
254
|
return;
|
|
255
255
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -260,4 +260,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
260
260
|
})
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
export {
|
|
263
|
+
export { name11, DEFAULT_TIMEOUT_MS2, Input11, Plugin13, exports_shell };
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
deletePatch2,
|
|
8
8
|
countPatch2,
|
|
9
9
|
chunksByFile2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-tazgh4e4.js";
|
|
11
11
|
import {
|
|
12
12
|
Service76
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instruction-discovery-88dkmhka.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./instruction-discovery-92f49rtq.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin/vcs/hg.ts
|
|
22
22
|
var exports_hg = {};
|
|
23
23
|
__export(exports_hg, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin16,
|
|
25
25
|
VcsHgPlugin: () => exports_hg
|
|
26
26
|
});
|
|
27
27
|
import path from "path";
|
|
@@ -30,7 +30,7 @@ import { ChildProcess } from "effect/unstable/process";
|
|
|
30
30
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
31
31
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
32
32
|
import { AppProcess } from "@opencode/util/process";
|
|
33
|
-
var
|
|
33
|
+
var Plugin16 = define({
|
|
34
34
|
id: "opencode.vcs.hg",
|
|
35
35
|
effect: Effect.fn("VcsHgPlugin")(function* (ctx) {
|
|
36
36
|
const location = yield* Service76;
|
|
@@ -188,4 +188,4 @@ function makeHg(proc, worktree) {
|
|
|
188
188
|
return { status, diff, branch, ancestor, cat };
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
-
export {
|
|
191
|
+
export { Plugin16, exports_hg };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ascending2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-tvtrv512.js";
|
|
4
4
|
import {
|
|
5
5
|
Service80,
|
|
6
6
|
node84
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-ssbpaa97.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionMessage2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-gftt206x.js";
|
|
11
11
|
import {
|
|
12
12
|
SessionSchema2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instruction-discovery-mn7hgmyj.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/job.ts
|
|
19
19
|
var exports_job = {};
|
|
20
20
|
__export(exports_job, {
|
|
21
21
|
Job: () => exports_job,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service52,
|
|
23
23
|
make: () => make18,
|
|
24
24
|
node: () => node55
|
|
25
25
|
});
|
|
@@ -50,7 +50,7 @@ var Background = Schema.Struct({
|
|
|
50
50
|
var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
51
51
|
var backgroundPrefix = "job.background/";
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service52 extends Context.Service()("@opencode/Job") {
|
|
54
54
|
}
|
|
55
55
|
function snapshot(job) {
|
|
56
56
|
return {
|
|
@@ -315,7 +315,7 @@ var make18 = Effect.gen(function* () {
|
|
|
315
315
|
return recovered;
|
|
316
316
|
}).pipe(Effect.withSpan("Job.pendingBackground"));
|
|
317
317
|
const completeBackground = Effect.fn("Job.completeBackground")((notificationID) => kv.remove(`${backgroundPrefix}${notificationID}`));
|
|
318
|
-
return
|
|
318
|
+
return Service52.of({
|
|
319
319
|
get,
|
|
320
320
|
start,
|
|
321
321
|
wait,
|
|
@@ -327,7 +327,7 @@ var make18 = Effect.gen(function* () {
|
|
|
327
327
|
completeBackground
|
|
328
328
|
});
|
|
329
329
|
});
|
|
330
|
-
var layer = Layer.effect(
|
|
331
|
-
var node55 = makeGlobalNode({ service:
|
|
330
|
+
var layer = Layer.effect(Service52, make18);
|
|
331
|
+
var node55 = makeGlobalNode({ service: Service52, layer, deps: [node84] });
|
|
332
332
|
|
|
333
|
-
export {
|
|
333
|
+
export { Service52, make18, node55, exports_job };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrations2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-hnpkfvtv.js";
|
|
4
4
|
import {
|
|
5
5
|
schema_gen_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-twg0f83k.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service81,
|
|
3
|
+
node85
|
|
4
|
+
} from "./instruction-discovery-7kvy0jtg.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
Service76,
|
|
11
11
|
node80
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-88dkmhka.js";
|
|
13
13
|
import {
|
|
14
14
|
rewrite2,
|
|
15
|
-
|
|
15
|
+
ID9,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
18
|
+
Service61,
|
|
19
|
+
node64,
|
|
20
|
+
Event13
|
|
21
|
+
} from "./instruction-discovery-58ka6e3j.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/model.ts
|
|
27
27
|
var exports_model2 = {};
|
|
@@ -31,15 +31,15 @@ __export(exports_model2, {
|
|
|
31
31
|
Cost: () => Cost2,
|
|
32
32
|
Event: () => Event12,
|
|
33
33
|
Family: () => Family2,
|
|
34
|
-
ID: () =>
|
|
35
|
-
Info: () =>
|
|
34
|
+
ID: () => ID8,
|
|
35
|
+
Info: () => Info22,
|
|
36
36
|
Model: () => exports_model2,
|
|
37
37
|
ReasoningField: () => ReasoningField2,
|
|
38
38
|
Ref: () => Ref2,
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service60,
|
|
40
40
|
VariantID: () => VariantID2,
|
|
41
41
|
compatibility: () => compatibility2,
|
|
42
|
-
node: () =>
|
|
42
|
+
node: () => node63,
|
|
43
43
|
parse: () => parse4
|
|
44
44
|
});
|
|
45
45
|
import { Model } from "@opencode/schema/model";
|
|
@@ -47,7 +47,7 @@ import { Context, Effect, Layer, Stream } from "effect";
|
|
|
47
47
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
48
48
|
import { freeze } from "immer";
|
|
49
49
|
import { Event as Event12 } from "@opencode/schema/model";
|
|
50
|
-
var
|
|
50
|
+
var ID8 = Model.ID;
|
|
51
51
|
var VariantID2 = Model.VariantID;
|
|
52
52
|
var Family2 = Model.Family;
|
|
53
53
|
var ReasoningField2 = Model.ReasoningField;
|
|
@@ -55,13 +55,13 @@ var Compatibility2 = Model.Compatibility;
|
|
|
55
55
|
var Capabilities2 = Model.Capabilities;
|
|
56
56
|
var Cost2 = Model.Cost;
|
|
57
57
|
var Ref2 = Model.Ref;
|
|
58
|
-
var
|
|
58
|
+
var Info22 = Model.Info;
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service60 extends Context.Service()("@opencode/Model") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const providers = yield*
|
|
64
|
-
const bus = yield*
|
|
62
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
63
|
+
const providers = yield* Service61;
|
|
64
|
+
const bus = yield* Service81;
|
|
65
65
|
const location = yield* Service76;
|
|
66
66
|
let input;
|
|
67
67
|
const state = create3({
|
|
@@ -107,7 +107,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
107
107
|
const models = writable(providerID);
|
|
108
108
|
if (!models)
|
|
109
109
|
return;
|
|
110
|
-
const model = draft(providerID, modelID) ??
|
|
110
|
+
const model = draft(providerID, modelID) ?? Info22.default(providerID, modelID);
|
|
111
111
|
update(model);
|
|
112
112
|
model.id = modelID;
|
|
113
113
|
model.providerID = providerID;
|
|
@@ -198,8 +198,8 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
198
198
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
199
199
|
});
|
|
200
200
|
});
|
|
201
|
-
yield* bus.subscribe(
|
|
202
|
-
return
|
|
201
|
+
yield* bus.subscribe(Event13.Updated).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
202
|
+
return Service60.of({
|
|
203
203
|
transform: (update) => prepare.pipe(Effect.andThen(state.transform(update))),
|
|
204
204
|
reload,
|
|
205
205
|
get: Effect.fn("Model.get")((providerID, modelID) => read().pipe(Effect.map((value) => value.byProvider.get(providerID)?.get(modelID)))),
|
|
@@ -218,7 +218,7 @@ var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
218
218
|
})
|
|
219
219
|
});
|
|
220
220
|
}));
|
|
221
|
-
var
|
|
221
|
+
var node63 = makeLocationNode({ service: Service60, layer, deps: [node64, node85, node80] });
|
|
222
222
|
function compatibility2(input) {
|
|
223
223
|
if (typeof input === "string")
|
|
224
224
|
return { reasoningField: input };
|
|
@@ -229,9 +229,9 @@ function compatibility2(input) {
|
|
|
229
229
|
function parse4(input) {
|
|
230
230
|
const index = input.indexOf("/");
|
|
231
231
|
return {
|
|
232
|
-
providerID:
|
|
233
|
-
modelID:
|
|
232
|
+
providerID: ID9.make(index === -1 ? input : input.slice(0, index)),
|
|
233
|
+
modelID: ID8.make(index === -1 ? "" : input.slice(index + 1))
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
export {
|
|
237
|
+
export { ID8, VariantID2, Family2, ReasoningField2, Compatibility2, Capabilities2, Cost2, Ref2, Info22, Service60, node63, compatibility2, parse4, exports_model2, Event12 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service39
|
|
4
|
+
} from "./instruction-discovery-h2vfddx5.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service38
|
|
7
|
+
} from "./instruction-discovery-1mr1eyme.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/tool-output.ts
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin39
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin39 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service39;
|
|
27
|
+
const output = yield* Service38;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin22 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin39, exports_tool_output };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service11,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node13
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service11 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service11.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node13 = makeGlobalNode({ service: Service11, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service11, node13, exports_discovery };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definition2,
|
|
3
3
|
normalizedName2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-3w5fmr99.js";
|
|
5
|
+
import {
|
|
6
|
+
extension2,
|
|
7
|
+
display2
|
|
8
|
+
} from "./instruction-discovery-m3fdjcah.js";
|
|
5
9
|
import {
|
|
6
10
|
__export
|
|
7
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
8
12
|
|
|
9
13
|
// src/codemode/tool.ts
|
|
10
14
|
var exports_tool2 = {};
|
|
@@ -32,8 +36,8 @@ var ExecuteOutput = Schema.Struct({
|
|
|
32
36
|
files: Schema.Array(ExecuteFile)
|
|
33
37
|
});
|
|
34
38
|
var description = [
|
|
35
|
-
"Run JavaScript in a confined Code Mode runtime to
|
|
36
|
-
"Imports, direct filesystem access, and timers are unavailable
|
|
39
|
+
"Run JavaScript in a confined Code Mode runtime to script tool calls and HTTP requests and compose their results.",
|
|
40
|
+
"`fetch` is available for HTTP requests. Imports, direct filesystem access, and timers are unavailable; all other external access goes through `tools`.",
|
|
37
41
|
"Within `{ code }`, the only callable tools are those explicitly listed in the Code Mode catalog instructions or returned by the `search` function. Inside `{ code }`, ignore tools shown outside the Code Mode catalog. They are not available in the Code Mode runtime.",
|
|
38
42
|
'Call tools through `tools` using only exact paths and signatures from the catalog. Do not infer or normalize tool names; preserve bracket notation such as `tools.<namespace>["tool-name"](input)`.',
|
|
39
43
|
"Prefer an explicit `return`; if omitted, the final top-level expression becomes the result.",
|
|
@@ -51,7 +55,7 @@ var create2 = (inventory, executeTool) => {
|
|
|
51
55
|
const files = yield* Ref.make([]);
|
|
52
56
|
const calls = yield* Ref.make([]);
|
|
53
57
|
const lock = Semaphore.makeUnsafe(1);
|
|
54
|
-
const
|
|
58
|
+
const record = (update) => lock.withPermit(Ref.updateAndGet(calls, update).pipe(Effect.tap((toolCalls) => context.progress({ toolCalls }))));
|
|
55
59
|
const result = yield* runtime(inventory, (name, tool, input) => Effect.gen(function* () {
|
|
56
60
|
const index = yield* Ref.getAndUpdate(callIndex, (index) => index + 1);
|
|
57
61
|
const executed = yield* executeTool(name, tool, input, context);
|
|
@@ -64,27 +68,7 @@ var create2 = (inventory, executeTool) => {
|
|
|
64
68
|
const text = content.flatMap((part) => part.type === "text" ? [part.text] : []).join(`
|
|
65
69
|
`);
|
|
66
70
|
return text === "" ? null : text;
|
|
67
|
-
}),
|
|
68
|
-
onToolCallStart: ({ index, name, input }) => {
|
|
69
|
-
const shown = displayInput(input);
|
|
70
|
-
return updateCalls((items) => {
|
|
71
|
-
const next = [...items];
|
|
72
|
-
next[index] = { tool: name, status: "running", ...shown ? { input: shown } : {} };
|
|
73
|
-
return next;
|
|
74
|
-
});
|
|
75
|
-
},
|
|
76
|
-
onToolCallEnd: ({ index, name, input, outcome }) => {
|
|
77
|
-
const shown = displayInput(input);
|
|
78
|
-
return updateCalls((items) => {
|
|
79
|
-
const next = [...items];
|
|
80
|
-
next[index] = {
|
|
81
|
-
...items[index] ?? { tool: name, ...shown ? { input: shown } : {} },
|
|
82
|
-
status: outcome === "success" ? "completed" : "error"
|
|
83
|
-
};
|
|
84
|
-
return next;
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}).execute(code);
|
|
71
|
+
}), progressHooks(record)).execute(code);
|
|
88
72
|
const toolCalls = yield* Ref.get(calls);
|
|
89
73
|
const collected = (yield* Ref.get(files)).toSorted((left, right) => left.index - right.index).flatMap((item) => item.files);
|
|
90
74
|
const output = formatResult(result);
|
|
@@ -115,6 +99,39 @@ var create2 = (inventory, executeTool) => {
|
|
|
115
99
|
})
|
|
116
100
|
};
|
|
117
101
|
};
|
|
102
|
+
function progressHooks(record) {
|
|
103
|
+
const rows = new WeakMap;
|
|
104
|
+
const start = (call, entry) => record((items) => {
|
|
105
|
+
rows.set(call, items.length);
|
|
106
|
+
return [...items, entry];
|
|
107
|
+
});
|
|
108
|
+
const settle = (call, result) => {
|
|
109
|
+
const index = rows.get(call);
|
|
110
|
+
if (index === undefined)
|
|
111
|
+
return Effect.void;
|
|
112
|
+
return record((items) => {
|
|
113
|
+
const next = [...items];
|
|
114
|
+
next[index] = { ...items[index], status: result.status === "success" ? "completed" : "error" };
|
|
115
|
+
return next;
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
return {
|
|
119
|
+
"tool.before": (call) => {
|
|
120
|
+
const shown = displayInput(call.input);
|
|
121
|
+
return start(call, { tool: call.name, status: "running", ...shown ? { input: shown } : {} });
|
|
122
|
+
},
|
|
123
|
+
"tool.after": settle,
|
|
124
|
+
"extension.before": (call) => {
|
|
125
|
+
switch (call.name) {
|
|
126
|
+
case "fetch":
|
|
127
|
+
return start(call, { tool: call.name, status: "running", input: display2(call.args) });
|
|
128
|
+
default:
|
|
129
|
+
return Effect.void;
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"extension.after": settle
|
|
133
|
+
};
|
|
134
|
+
}
|
|
118
135
|
var catalog2 = (inventory) => {
|
|
119
136
|
const pinned = new Set(Array.from(inventory.tools.values()).filter((registration) => registration.options?.pinned === true).map(qualifiedName));
|
|
120
137
|
const root = { children: new Map };
|
|
@@ -162,7 +179,7 @@ function runtime(inventory, executeTool, hooks) {
|
|
|
162
179
|
});
|
|
163
180
|
}
|
|
164
181
|
const tools = renderTools(root);
|
|
165
|
-
return CodeMode.make({ tools,
|
|
182
|
+
return CodeMode.make({ tools, extensions: [extension2], hooks });
|
|
166
183
|
}
|
|
167
184
|
function getNode(root, path) {
|
|
168
185
|
return path.split(".").reduce((parent, name) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-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: () => Info14,
|
|
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 Info14 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
|
|
68
68
|
|
|
69
|
-
export { Local2, OAuth2, Remote2,
|
|
69
|
+
export { Local2, OAuth2, Remote2, Info14, exports_mcp5 };
|