@opencode/core 2.0.8 → 2.0.10
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 +82 -82
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +68 -68
- package/dist/chunks/{provider-8a7sh5jm.js → instruction-discovery-00f3x6kk.js} +10 -10
- package/dist/chunks/{provider-v5fds5j5.js → instruction-discovery-0283kbqh.js} +36 -36
- package/dist/chunks/instruction-discovery-0ewc2kk9.js +492 -0
- package/dist/chunks/{provider-8b2r4c2a.js → instruction-discovery-0nbz58nf.js} +14 -14
- package/dist/chunks/{provider-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{provider-0q0f95c6.js → instruction-discovery-0q0f95c6.js} +1 -1
- package/dist/chunks/{provider-w8jt0a6r.js → instruction-discovery-0w5wrk1e.js} +11 -11
- package/dist/chunks/{provider-r4xt06hn.js → instruction-discovery-0xkqznxb.js} +14 -14
- package/dist/chunks/{provider-1gfgk62c.js → instruction-discovery-166kng33.js} +8 -8
- package/dist/chunks/{provider-yp2x3t23.js → instruction-discovery-1acjjqhc.js} +4 -4
- package/dist/chunks/{provider-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{provider-fqj9nv8j.js → instruction-discovery-1h80sv90.js} +8 -8
- package/dist/chunks/{provider-21r38tys.js → instruction-discovery-21r38tys.js} +1 -1
- package/dist/chunks/{provider-2402vzrj.js → instruction-discovery-2402vzrj.js} +1 -1
- package/dist/chunks/{provider-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{provider-dwn3ee68.js → instruction-discovery-2b0j0akk.js} +15 -15
- package/dist/chunks/{provider-d8rms5sb.js → instruction-discovery-2emjftfm.js} +9 -9
- package/dist/chunks/{provider-7bmx80wk.js → instruction-discovery-2f0bjgcj.js} +5 -5
- package/dist/chunks/{provider-ftrz1f8n.js → instruction-discovery-2hyz8f76.js} +13 -13
- package/dist/chunks/{provider-mdyjdwxf.js → instruction-discovery-2pqv22kz.js} +42 -42
- package/dist/chunks/{provider-2p6av61j.js → instruction-discovery-2x03qapy.js} +14 -14
- package/dist/chunks/{provider-mfqp6xfm.js → instruction-discovery-33w4ejhs.js} +9 -9
- package/dist/chunks/{provider-rj0ypf2k.js → instruction-discovery-358hwc82.js} +64 -33
- package/dist/chunks/instruction-discovery-3bc8czyk.js +123 -0
- package/dist/chunks/{provider-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{provider-f9y7tnx7.js → instruction-discovery-3gncs5t7.js} +5 -5
- package/dist/chunks/{provider-mh1qkymb.js → instruction-discovery-3hdyanjz.js} +4 -4
- package/dist/chunks/{provider-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{provider-pjbk54rp.js → instruction-discovery-3j8hfepr.js} +20 -20
- package/dist/chunks/{provider-8xvmqg79.js → instruction-discovery-3k8qww1e.js} +5 -5
- package/dist/chunks/{provider-zpx63w9z.js → instruction-discovery-3q5ajc3h.js} +15 -15
- package/dist/chunks/{provider-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{provider-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{provider-2sfvcfsn.js → instruction-discovery-3xkhh9p9.js} +6 -6
- package/dist/chunks/{provider-0qwa4caw.js → instruction-discovery-3yhy2zja.js} +27 -27
- package/dist/chunks/{provider-4dgbcxzg.js → instruction-discovery-44h5tttr.js} +4 -4
- package/dist/chunks/{provider-mmr7bq34.js → instruction-discovery-44ke2mar.js} +8 -8
- package/dist/chunks/{provider-81zyrma5.js → instruction-discovery-4chzm3y4.js} +23 -23
- package/dist/chunks/{provider-37y816cy.js → instruction-discovery-4gjfpxjb.js} +27 -27
- package/dist/chunks/{provider-byyezdhj.js → instruction-discovery-4jmq01rm.js} +19 -16
- package/dist/chunks/{provider-72376wrz.js → instruction-discovery-4jqdxkh4.js} +6 -6
- package/dist/chunks/{provider-2hd5d5xt.js → instruction-discovery-5b1c2xrt.js} +32 -32
- package/dist/chunks/instruction-discovery-5cec8wvt.js +65 -0
- package/dist/chunks/{provider-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{provider-e3qxr5gk.js → instruction-discovery-5qd3pb7m.js} +2 -2
- package/dist/chunks/{provider-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/{provider-5zwdrvn4.js → instruction-discovery-602rhm03.js} +87 -87
- package/dist/chunks/{provider-j22bfhxa.js → instruction-discovery-608vgrw9.js} +8 -8
- package/dist/chunks/{provider-aj1d5q5j.js → instruction-discovery-613k581x.js} +3 -3
- package/dist/chunks/instruction-discovery-619r8v3y.js +18 -0
- package/dist/chunks/{provider-7k1xech5.js → instruction-discovery-61y8ydm4.js} +15 -15
- package/dist/chunks/{provider-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{provider-0xrq8eqy.js → instruction-discovery-675x382x.js} +30 -30
- package/dist/chunks/{provider-vakcje41.js → instruction-discovery-6ez32nay.js} +23 -23
- package/dist/chunks/{provider-19vf66h0.js → instruction-discovery-6hh8tjw2.js} +4 -4
- package/dist/chunks/{provider-5npzb8nr.js → instruction-discovery-6jc59fwf.js} +30 -30
- package/dist/chunks/{provider-6msgmcgs.js → instruction-discovery-6msgmcgs.js} +1 -1
- package/dist/chunks/{provider-76p4c97e.js → instruction-discovery-6t298p2h.js} +12 -12
- package/dist/chunks/{provider-hafdg6x7.js → instruction-discovery-6v953fwr.js} +35 -35
- package/dist/chunks/{provider-qahhm8db.js → instruction-discovery-6ve6nwe8.js} +33 -33
- package/dist/chunks/{provider-h4v1hw2f.js → instruction-discovery-74hc6zjm.js} +13 -13
- package/dist/chunks/{provider-2q8c0gm7.js → instruction-discovery-76ymgwed.js} +9 -9
- package/dist/chunks/{provider-f466az3m.js → instruction-discovery-7a024e9s.js} +4 -4
- package/dist/chunks/instruction-discovery-7bhafz2c.js +26 -0
- package/dist/chunks/{provider-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{provider-7dqw4kz8.js → instruction-discovery-7dqw4kz8.js} +1 -1
- package/dist/chunks/{provider-d683g0r8.js → instruction-discovery-7er823xf.js} +14 -12
- package/dist/chunks/{provider-fygkmg88.js → instruction-discovery-7h1sjwf0.js} +26 -26
- package/dist/chunks/{provider-xc59sqye.js → instruction-discovery-7n580yh3.js} +21 -21
- package/dist/chunks/{provider-mwp3erwx.js → instruction-discovery-7n97fvxd.js} +32 -33
- package/dist/chunks/{provider-rmbwqpd3.js → instruction-discovery-7n9bf5pw.js} +21 -21
- package/dist/chunks/{provider-t5a1ectr.js → instruction-discovery-83vtq193.js} +33 -33
- package/dist/chunks/{provider-729zp0dx.js → instruction-discovery-85vxkr0v.js} +12 -12
- package/dist/chunks/{provider-tjqem147.js → instruction-discovery-86swmg3n.js} +20 -20
- package/dist/chunks/{provider-dcykxfvx.js → instruction-discovery-879n9jmk.js} +24 -24
- package/dist/chunks/{provider-nn8rne3z.js → instruction-discovery-88afv84h.js} +20 -20
- package/dist/chunks/{provider-1npfg0xs.js → instruction-discovery-8ancw64n.js} +7 -7
- package/dist/chunks/{provider-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{provider-mpvph0fb.js → instruction-discovery-8dw5wh32.js} +15 -15
- package/dist/chunks/{provider-91g84dh8.js → instruction-discovery-8jbq9hes.js} +57 -57
- package/dist/chunks/{provider-dj2t23y0.js → instruction-discovery-8p4f9s12.js} +2 -2
- package/dist/chunks/{provider-tgv2tnbf.js → instruction-discovery-8t6e0b0v.js} +32 -32
- package/dist/chunks/{provider-0p838j47.js → instruction-discovery-90pjtq3h.js} +28 -28
- package/dist/chunks/{provider-6cdpcxhv.js → instruction-discovery-9cc9anwb.js} +17 -17
- package/dist/chunks/{provider-eg8s060n.js → instruction-discovery-9dz1p9rk.js} +23 -23
- package/dist/chunks/{provider-phh6jpcy.js → instruction-discovery-9eanvfav.js} +11 -11
- package/dist/chunks/{provider-n69ejct9.js → instruction-discovery-9ejvnjvn.js} +14 -14
- package/dist/chunks/{provider-34v9mh2z.js → instruction-discovery-9ezfcjjb.js} +24 -22
- package/dist/chunks/{provider-4m1f7c2g.js → instruction-discovery-9mqj70kv.js} +26 -26
- package/dist/chunks/{provider-dj316k4n.js → instruction-discovery-9nye1eq2.js} +17 -17
- package/dist/chunks/{provider-2a6rn6yr.js → instruction-discovery-9r15s34d.js} +6 -6
- package/dist/chunks/{provider-5c4hm403.js → instruction-discovery-a1bz86dw.js} +3 -3
- package/dist/chunks/{provider-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{provider-d9s573fh.js → instruction-discovery-aamtrqep.js} +9 -9
- package/dist/chunks/{provider-1rcq3xh2.js → instruction-discovery-ac8tgttd.js} +1 -1
- package/dist/chunks/{provider-09nc05e3.js → instruction-discovery-aef544xx.js} +11 -11
- package/dist/chunks/{provider-rvm9em84.js → instruction-discovery-ajsekwcw.js} +3 -3
- package/dist/chunks/{provider-zzdnm867.js → instruction-discovery-akbnj5qn.js} +33 -33
- package/dist/chunks/{provider-2tw8fa6w.js → instruction-discovery-asz6v789.js} +4 -4
- package/dist/chunks/{provider-9sbrwvac.js → instruction-discovery-avkbmwsy.js} +15 -15
- package/dist/chunks/{provider-1p7te6jw.js → instruction-discovery-b04b8x2j.js} +8 -8
- package/dist/chunks/{provider-887z4k6m.js → instruction-discovery-b2e0z9zn.js} +24 -24
- package/dist/chunks/{provider-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{provider-cynhgza1.js → instruction-discovery-bktznpht.js} +4 -4
- package/dist/chunks/{provider-0esb4psk.js → instruction-discovery-bm2neq56.js} +5 -5
- package/dist/chunks/{provider-qh2stzd9.js → instruction-discovery-bqqzw0hf.js} +21 -21
- package/dist/chunks/{provider-gzbkpp9m.js → instruction-discovery-bscb95cy.js} +4 -4
- package/dist/chunks/{provider-kdqk7nms.js → instruction-discovery-btvztn5x.js} +11 -11
- package/dist/chunks/{provider-38kvz03f.js → instruction-discovery-bz601h0x.js} +35 -35
- package/dist/chunks/{provider-gs0zj1fa.js → instruction-discovery-c3624e00.js} +46 -46
- package/dist/chunks/{provider-ga5vg9fv.js → instruction-discovery-c3tdqdrt.js} +3 -3
- package/dist/chunks/{provider-e38px6ch.js → instruction-discovery-ce5k5wzz.js} +7 -7
- package/dist/chunks/{provider-m0jqrx5p.js → instruction-discovery-cfpkc3c9.js} +2 -2
- package/dist/chunks/{provider-vxx6ayt4.js → instruction-discovery-cfvjb44z.js} +18 -18
- package/dist/chunks/{provider-7qkw4ngt.js → instruction-discovery-cg91q9kc.js} +30 -30
- package/dist/chunks/instruction-discovery-ct6qbr07.js +39 -0
- package/dist/chunks/{provider-tq1x5cnr.js → instruction-discovery-cvcaxerb.js} +9 -9
- package/dist/chunks/{provider-rey5gbxv.js → instruction-discovery-cwa6csj7.js} +9 -9
- package/dist/chunks/{provider-j14a3kcd.js → instruction-discovery-cznsp2nq.js} +13 -13
- package/dist/chunks/{provider-6pwmqge3.js → instruction-discovery-d6rcy142.js} +9 -9
- package/dist/chunks/{provider-5vcg79ee.js → instruction-discovery-d8kx0zbg.js} +5 -5
- package/dist/chunks/{provider-54ttrj93.js → instruction-discovery-dar8xkhn.js} +43 -43
- package/dist/chunks/{provider-vsd9rkc3.js → instruction-discovery-dfzt6fvr.js} +41 -41
- package/dist/chunks/{provider-1d5f8fmh.js → instruction-discovery-dkqv5z6m.js} +16 -16
- package/dist/chunks/{provider-7w99qc9d.js → instruction-discovery-dm1py9b3.js} +3 -3
- package/dist/chunks/{provider-g0445xdp.js → instruction-discovery-dv1qgsyq.js} +8 -8
- package/dist/chunks/{provider-1f8ext69.js → instruction-discovery-e6d0ha4g.js} +6 -6
- package/dist/chunks/{provider-0ne02q5f.js → instruction-discovery-eex107wk.js} +11 -11
- package/dist/chunks/{provider-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{provider-e9a3e76h.js → instruction-discovery-egb2ktr5.js} +37 -37
- package/dist/chunks/{provider-txcxdz33.js → instruction-discovery-ej4t27pe.js} +21 -20
- package/dist/chunks/{provider-wvf0gkq1.js → instruction-discovery-emsk5da5.js} +16 -16
- package/dist/chunks/{provider-erw5rpbs.js → instruction-discovery-erw5rpbs.js} +2 -2
- package/dist/chunks/{provider-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/{provider-5yqhmvcr.js → instruction-discovery-eytmhgbm.js} +44 -44
- package/dist/chunks/{provider-hdnk95c8.js → instruction-discovery-f828m53h.js} +2 -2
- package/dist/chunks/{provider-e2v82dka.js → instruction-discovery-f9denjqp.js} +16 -16
- package/dist/chunks/{provider-5sf0enm2.js → instruction-discovery-fhxv1a93.js} +17 -17
- package/dist/chunks/{provider-fxbjtjnd.js → instruction-discovery-fxbjtjnd.js} +1 -1
- package/dist/chunks/{provider-mh5wyt4r.js → instruction-discovery-g2c1x2np.js} +22 -22
- package/dist/chunks/{provider-67dmnq4v.js → instruction-discovery-g5y5zy0d.js} +16 -16
- package/dist/chunks/{provider-nng2ktcm.js → instruction-discovery-g84cjvn9.js} +2 -2
- package/dist/chunks/{provider-8r5fzj69.js → instruction-discovery-g9jxtwsa.js} +20 -20
- package/dist/chunks/{provider-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{provider-nctzvp07.js → instruction-discovery-gk3vz0r5.js} +6 -6
- package/dist/chunks/{provider-01gts7tv.js → instruction-discovery-gm5rkd8a.js} +19 -16
- package/dist/chunks/{provider-yyb7tjpc.js → instruction-discovery-gv6a8nnw.js} +2 -2
- package/dist/chunks/{provider-0t25cr4h.js → instruction-discovery-gvayqkxb.js} +9 -9
- package/dist/chunks/{provider-nsk5ek41.js → instruction-discovery-gxtdrkx9.js} +8 -8
- package/dist/chunks/{provider-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{provider-cnkj3bkk.js → instruction-discovery-h7e5g0tn.js} +6 -6
- package/dist/chunks/{provider-7q56wrxt.js → instruction-discovery-hac7hjft.js} +4 -4
- package/dist/chunks/{provider-sdbkfcvv.js → instruction-discovery-hfdr1yjj.js} +4 -4
- package/dist/chunks/{provider-psbrwbtd.js → instruction-discovery-hnr5yq9h.js} +5 -5
- package/dist/chunks/{provider-ts2x07a1.js → instruction-discovery-hqmr0w3b.js} +1 -1
- package/dist/chunks/{provider-p0b4ytnr.js → instruction-discovery-j15mfg1p.js} +4 -4
- package/dist/chunks/{provider-1qjdpwr6.js → instruction-discovery-j1cm15th.js} +9 -9
- package/dist/chunks/{provider-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{provider-h90v2x9d.js → instruction-discovery-j5rxtxht.js} +4 -4
- package/dist/chunks/{provider-eymf4g3t.js → instruction-discovery-jdt3tpmz.js} +9 -9
- package/dist/chunks/{provider-brwwdzr5.js → instruction-discovery-jfhnzpnz.js} +5 -5
- package/dist/chunks/{provider-88r4h6e3.js → instruction-discovery-jmpaezdp.js} +24 -24
- package/dist/chunks/{provider-actjby0x.js → instruction-discovery-jmsev7ka.js} +20 -20
- package/dist/chunks/{provider-xc81b6ma.js → instruction-discovery-jyp3kw9k.js} +44 -45
- package/dist/chunks/{provider-k3kkjkzr.js → instruction-discovery-k04kmmpg.js} +9 -9
- package/dist/chunks/{provider-k3c624dm.js → instruction-discovery-k3c624dm.js} +3 -3
- package/dist/chunks/{provider-s0hza5ac.js → instruction-discovery-keat3kjn.js} +4 -4
- package/dist/chunks/{provider-fva1abr5.js → instruction-discovery-kg7bac54.js} +7 -7
- package/dist/chunks/{provider-w4qe0sa0.js → instruction-discovery-kh8f0xxh.js} +4 -4
- package/dist/chunks/{provider-knkst9z5.js → instruction-discovery-kr0f3pk7.js} +27 -27
- package/dist/chunks/{provider-cxvz4c6f.js → instruction-discovery-krc273y1.js} +24 -24
- package/dist/chunks/{provider-xm667kcd.js → instruction-discovery-m0t09dx6.js} +11 -11
- package/dist/chunks/{provider-m3fdjcah.js → instruction-discovery-m3fdjcah.js} +1 -1
- package/dist/chunks/{provider-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{provider-j028xdjb.js → instruction-discovery-mhkvc446.js} +3 -3
- package/dist/chunks/{provider-2sraqb63.js → instruction-discovery-mtes310f.js} +2 -2
- package/dist/chunks/{provider-4c30dr7a.js → instruction-discovery-n7s9zdv0.js} +3 -3
- package/dist/chunks/{provider-0t0bcxwx.js → instruction-discovery-n8rdxf8a.js} +17 -17
- package/dist/chunks/{provider-qwd61y7s.js → instruction-discovery-n9qab9s6.js} +5 -5
- package/dist/chunks/{provider-ds9fva7f.js → instruction-discovery-nr56gd40.js} +24 -24
- package/dist/chunks/{provider-4z99h2j9.js → instruction-discovery-nw99nb3t.js} +37 -37
- package/dist/chunks/{provider-3y2ngnym.js → instruction-discovery-nyc5627e.js} +4 -4
- package/dist/chunks/{provider-y35pc762.js → instruction-discovery-nzyysdrx.js} +11 -11
- package/dist/chunks/{provider-p28j5sbe.js → instruction-discovery-p28j5sbe.js} +2 -2
- package/dist/chunks/{provider-fd13sxf6.js → instruction-discovery-p2s2r1mh.js} +12 -12
- package/dist/chunks/{provider-x1az8410.js → instruction-discovery-p2tee6fj.js} +52 -47
- package/dist/chunks/{provider-3ck6fvg6.js → instruction-discovery-p9zrypfp.js} +43 -34
- package/dist/chunks/{provider-fy6z0q13.js → instruction-discovery-pa5qep2r.js} +3 -3
- package/dist/chunks/{provider-cg1g2n28.js → instruction-discovery-pe93tcjs.js} +11 -11
- package/dist/chunks/{provider-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{provider-tfyty9ze.js → instruction-discovery-pjxdx4mm.js} +22 -22
- package/dist/chunks/{provider-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{provider-9wpgsbre.js → instruction-discovery-pnv527nz.js} +9 -9
- package/dist/chunks/{provider-kb20yxx5.js → instruction-discovery-pw383ktz.js} +11 -11
- package/dist/chunks/{provider-t7n9q6bq.js → instruction-discovery-q5asdkn4.js} +4 -4
- package/dist/chunks/{provider-qq9garkb.js → instruction-discovery-q5gw3b6m.js} +41 -41
- package/dist/chunks/{provider-80nc4spm.js → instruction-discovery-q5rhn9x0.js} +13 -13
- package/dist/chunks/{provider-9a3rawad.js → instruction-discovery-q7mf5hpb.js} +15 -15
- package/dist/chunks/{provider-enbew5pp.js → instruction-discovery-q7v7wfgv.js} +25 -25
- package/dist/chunks/{provider-3gdftj2q.js → instruction-discovery-qcaqy7wg.js} +70 -70
- package/dist/chunks/{provider-wtkpzfnv.js → instruction-discovery-qerev8b0.js} +5 -5
- package/dist/chunks/{provider-t51qk8jz.js → instruction-discovery-qj8eh1ht.js} +21 -21
- package/dist/chunks/{provider-bmwcfc8x.js → instruction-discovery-qrp1b8bd.js} +32 -32
- package/dist/chunks/{provider-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{provider-rdkgddmz.js → instruction-discovery-r1hypjdz.js} +25 -24
- package/dist/chunks/{provider-8m9ckcb3.js → instruction-discovery-r65q7ntx.js} +5 -5
- package/dist/chunks/{provider-gagp2ybg.js → instruction-discovery-rbw5mngh.js} +24 -24
- package/dist/chunks/{provider-kpt0jdz6.js → instruction-discovery-rdhcp51z.js} +19 -19
- package/dist/chunks/{provider-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{provider-f3n8kt47.js → instruction-discovery-rgpxpbmw.js} +20 -20
- package/dist/chunks/{provider-w4axh9wz.js → instruction-discovery-rtv6ahp9.js} +6 -6
- package/dist/chunks/{provider-xth1q62c.js → instruction-discovery-rv831twb.js} +28 -28
- package/dist/chunks/{provider-r963ve15.js → instruction-discovery-s1sage10.js} +13 -13
- package/dist/chunks/{provider-v1q7vfww.js → instruction-discovery-s38x4d8v.js} +9 -9
- package/dist/chunks/{provider-t550f9t1.js → instruction-discovery-s8d7rejh.js} +4 -4
- package/dist/chunks/{provider-w1f0rjtr.js → instruction-discovery-sayy388w.js} +14 -14
- package/dist/chunks/{provider-mr9xcrcq.js → instruction-discovery-sfrfpg6k.js} +1 -1
- package/dist/chunks/{provider-1wbt76dk.js → instruction-discovery-srznzmvh.js} +183 -182
- package/dist/chunks/{provider-vhmx8meg.js → instruction-discovery-sv108vp7.js} +87 -87
- package/dist/chunks/{provider-8ke5vzqq.js → instruction-discovery-t1v9ezhy.js} +3 -3
- package/dist/chunks/{provider-xsrj88ys.js → instruction-discovery-t7wbtjm8.js} +20 -20
- package/dist/chunks/{provider-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{provider-tcezcvh9.js → instruction-discovery-tcezcvh9.js} +1 -1
- package/dist/chunks/{provider-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{provider-15r2v9gh.js → instruction-discovery-tffpjmpm.js} +46 -46
- package/dist/chunks/{provider-rscy38nb.js → instruction-discovery-tpnbm2pw.js} +16 -16
- package/dist/chunks/{provider-tvtrv512.js → instruction-discovery-tvtrv512.js} +1 -1
- package/dist/chunks/{provider-hhbk8mpt.js → instruction-discovery-v0bj2g81.js} +20 -20
- package/dist/chunks/{provider-7mhwkgkf.js → instruction-discovery-v51q15sg.js} +11 -11
- package/dist/chunks/{provider-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{provider-yymhtj63.js → instruction-discovery-vfmrq4xs.js} +4 -4
- package/dist/chunks/{provider-v4x1eedp.js → instruction-discovery-vh032p2r.js} +20 -20
- package/dist/chunks/{provider-nwsdknbg.js → instruction-discovery-vh6ze0n0.js} +16 -16
- package/dist/chunks/{provider-csf2jhsg.js → instruction-discovery-vj81g6vn.js} +4 -4
- package/dist/chunks/{provider-bct739vz.js → instruction-discovery-vncycja5.js} +4 -4
- package/dist/chunks/{provider-xpyadjc6.js → instruction-discovery-vsw37vpp.js} +7 -7
- package/dist/chunks/{provider-mt181yvh.js → instruction-discovery-vx2n8xqp.js} +3 -3
- package/dist/chunks/{provider-fkdcvybx.js → instruction-discovery-vxj4hqrj.js} +49 -49
- package/dist/chunks/{provider-awdcnpvv.js → instruction-discovery-vz6m5ypj.js} +24 -24
- package/dist/chunks/{provider-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{provider-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{provider-j4g63x3f.js → instruction-discovery-w3x9v1nk.js} +8 -8
- package/dist/chunks/{provider-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{provider-kp8q1t60.js → instruction-discovery-wk5z6jzv.js} +9 -9
- package/dist/chunks/{provider-rjcfzdhg.js → instruction-discovery-wke66r7v.js} +28 -28
- package/dist/chunks/{provider-6e4qnhr8.js → instruction-discovery-wx01sddp.js} +11 -11
- package/dist/chunks/{provider-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{provider-qqeeq2t9.js → instruction-discovery-xfkkasph.js} +7 -7
- package/dist/chunks/{provider-m4t7fw5x.js → instruction-discovery-xmwzbncj.js} +11 -11
- package/dist/chunks/{provider-351g3160.js → instruction-discovery-xpce3g2p.js} +5 -5
- package/dist/chunks/instruction-discovery-xsyztx04.js +252 -0
- package/dist/chunks/{provider-t5kkkbc4.js → instruction-discovery-xw5ftbys.js} +19 -19
- package/dist/chunks/{provider-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{provider-667yc4c2.js → instruction-discovery-y1qpbc5j.js} +55 -55
- package/dist/chunks/{provider-drdkww6h.js → instruction-discovery-y27t24zj.js} +7 -7
- package/dist/chunks/{provider-kj5jsdb7.js → instruction-discovery-y6a3b6rc.js} +47 -47
- package/dist/chunks/{provider-zjv98bwp.js → instruction-discovery-y6k2m0kz.js} +35 -35
- package/dist/chunks/{provider-y71avatq.js → instruction-discovery-y71avatq.js} +1 -1
- package/dist/chunks/{provider-ejmhj0m2.js → instruction-discovery-ya3xcbg8.js} +13 -13
- package/dist/chunks/{provider-wsdt1w6c.js → instruction-discovery-ybsbh40w.js} +16 -16
- package/dist/chunks/{provider-rsc2j7te.js → instruction-discovery-yjjxgcgg.js} +15 -15
- package/dist/chunks/{provider-p8qz4fmk.js → instruction-discovery-ym99va62.js} +3 -3
- package/dist/chunks/{provider-q43a4jj4.js → instruction-discovery-ypfrwztw.js} +9 -9
- package/dist/chunks/{provider-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{provider-s4enseaf.js → instruction-discovery-yrznvahk.js} +2 -2
- package/dist/chunks/{provider-jwbqhvyy.js → instruction-discovery-yt0fqk68.js} +5 -5
- package/dist/chunks/{provider-9vsnydsb.js → instruction-discovery-yt3zqrbx.js} +10 -10
- package/dist/chunks/{provider-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{provider-cm7tjn9h.js → instruction-discovery-z2q93yfq.js} +11 -11
- package/dist/chunks/{provider-mz9p79zm.js → instruction-discovery-z3ynxe6c.js} +18 -18
- package/dist/chunks/{provider-29x78va6.js → instruction-discovery-z63w68vq.js} +6 -6
- package/dist/chunks/{provider-m7nn889r.js → instruction-discovery-z85zpx68.js} +38 -38
- package/dist/chunks/{provider-rq775frq.js → instruction-discovery-zeh9ct20.js} +2 -2
- package/dist/chunks/{provider-0b3fz7z6.js → instruction-discovery-zehy6wad.js} +27 -27
- package/dist/chunks/{provider-4g86yzmg.js → instruction-discovery-zgt6sveh.js} +27 -27
- package/dist/chunks/{provider-s6cyt6ak.js → instruction-discovery-zr0cc4jg.js} +15 -15
- package/dist/chunks/{provider-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{provider-11psvd52.js → instruction-discovery-zrwqjd9x.js} +15 -15
- package/dist/chunks/{provider-b5x7220n.js → instruction-discovery-zshvb8bj.js} +10 -10
- package/dist/chunks/{provider-hyybwahv.js → instruction-discovery-zthbd08v.js} +27 -27
- package/dist/chunks/{provider-ep4ghje0.js → instruction-discovery-zvpwq5n9.js} +10 -18
- package/dist/chunks/{provider-0gapa1rm.js → instruction-discovery-zw4pk1bw.js} +5 -5
- package/dist/chunks/{provider-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +78 -78
- package/dist/config/discovery.js +81 -81
- 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 -213
- package/dist/config/plugin/compaction.js +161 -161
- 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 +124 -124
- 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 +123 -123
- 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 +82 -82
- package/dist/database/database.js +65 -65
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -366
- 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 +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 +69 -69
- package/dist/file-access.js +103 -103
- 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 +224 -224
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +99 -99
- package/dist/form.js +79 -79
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +104 -104
- 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 +5 -5
- package/dist/instance.js +359 -357
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -354
- package/dist/location.js +88 -88
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +123 -123
- package/dist/mcp/oauth.js +77 -77
- 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 +95 -95
- package/dist/model.js +99 -99
- 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 +114 -114
- 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/compaction.js +135 -0
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +330 -328
- 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 +4 -4
- 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 +119 -119
- 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 +93 -93
- 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 +119 -119
- 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 +73 -73
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +138 -138
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -347
- package/dist/plugin/tool-input-repair.js +9 -0
- package/dist/plugin/update.js +6 -6
- 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 +6 -6
- 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 +222 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +89 -89
- package/dist/provider.js +106 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +91 -91
- 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 +135 -135
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +220 -220
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +89 -89
- 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 +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- 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 +230 -230
- 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 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -171
- 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 -209
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +216 -216
- 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 +15 -15
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +111 -111
- package/dist/snapshot.js +92 -92
- 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 +124 -124
- 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 +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +106 -106
- package/dist/tool/plugin/read.js +122 -122
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +105 -105
- package/dist/tool/plugin/websearch.js +113 -113
- 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 -14
- package/dist/types/agent.d.ts +14 -1
- package/dist/types/aisdk.d.ts +5 -5
- package/dist/types/config/plugin/command.d.ts +1 -1
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/job.d.ts +3 -0
- package/dist/types/model-resolver.d.ts +7 -6
- package/dist/types/model.d.ts +46 -14
- package/dist/types/plugin/compaction.d.ts +3 -0
- package/dist/types/plugin/internal.d.ts +2 -2
- package/dist/types/plugin/provider/configured.d.ts +2 -6
- package/dist/types/plugin/tool-input-repair.d.ts +2 -0
- package/dist/types/provider.d.ts +66 -15
- package/dist/types/session/compaction.d.ts +16 -1
- package/dist/types/session/execution/restart.d.ts +1 -1
- package/dist/types/session/history.d.ts +8 -8
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -1
- package/dist/types/tool.d.ts +3 -0
- package/dist/types/v1/config/migrate.d.ts +24 -20
- 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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +90 -90
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- 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/provider-1admmex6.js +0 -252
- package/dist/chunks/provider-1kc6bgj5.js +0 -478
- package/dist/chunks/provider-bnyd0tae.js +0 -65
- package/dist/chunks/provider-h7j2c3yy.js +0 -26
- package/dist/chunks/provider-v1faaxn9.js +0 -18
- /package/dist/chunks/{provider-0mesazry.js → instruction-discovery-0mesazry.js} +0 -0
- /package/dist/chunks/{provider-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{provider-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{provider-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{provider-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{provider-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{provider-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{provider-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{provider-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{provider-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{provider-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{provider-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{provider-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{provider-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{provider-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{provider-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{provider-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{provider-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{provider-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{provider-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{provider-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{provider-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{provider-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{provider-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{provider-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{provider-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{provider-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{provider-922hggd3.js → instruction-discovery-922hggd3.js} +0 -0
- /package/dist/chunks/{provider-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{provider-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{provider-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{provider-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{provider-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{provider-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{provider-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{provider-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{provider-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{provider-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{provider-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{provider-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{provider-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{provider-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{provider-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{provider-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{provider-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{provider-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{provider-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{provider-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{provider-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{provider-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{provider-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{provider-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{provider-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{provider-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{provider-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{provider-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{provider-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{provider-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{provider-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{provider-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{provider-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{provider-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{provider-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{provider-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{provider-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{provider-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{provider-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{provider-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{provider-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{provider-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{provider-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{provider-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{provider-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{provider-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{provider-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{provider-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{provider-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{provider-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{provider-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{provider-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{provider-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{provider-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{provider-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{provider-twg0f83k.js → instruction-discovery-twg0f83k.js} +0 -0
- /package/dist/chunks/{provider-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{provider-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{provider-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{provider-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{provider-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{provider-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{provider-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{provider-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{provider-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{provider-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{provider-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{provider-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82,
|
|
3
3
|
node86
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-nyc5627e.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Agent: () =>
|
|
13
|
+
var exports_agent4 = {};
|
|
14
|
+
__export(exports_agent4, {
|
|
15
|
+
Agent: () => exports_agent4,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
18
|
-
ID: () =>
|
|
19
|
-
Info: () =>
|
|
17
|
+
Event: () => Event17,
|
|
18
|
+
ID: () => ID12,
|
|
19
|
+
Info: () => Info27,
|
|
20
20
|
Name: () => Name3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service74,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node78
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Array, Context, Effect, Layer } from "effect";
|
|
28
28
|
import { Agent } from "@opencode/schema/agent";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
import { Event as
|
|
30
|
+
import { Event as Event17 } from "@opencode/schema/agent";
|
|
31
31
|
var SHELL_OUTPUT_GLOB = (data) => path.join(data, "shell", "*", "*");
|
|
32
32
|
var TOOL_OUTPUT_GLOB = (data) => path.join(data, "tool-output", "*");
|
|
33
|
-
var
|
|
33
|
+
var ID12 = Agent.ID;
|
|
34
34
|
var Name3 = Agent.Name;
|
|
35
|
-
var defaultID2 =
|
|
35
|
+
var defaultID2 = ID12.make("build");
|
|
36
36
|
var Color2 = Agent.Color;
|
|
37
|
-
var
|
|
37
|
+
var Info27 = Agent.Info;
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service74 extends Context.Service()("@opencode/Agent") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
42
42
|
const bus = yield* Service82;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const permissions = [
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
57
57
|
editor.default = id;
|
|
58
58
|
},
|
|
59
59
|
update: (id, fn) => {
|
|
60
|
-
const defaults =
|
|
60
|
+
const defaults = Info27.default(id);
|
|
61
61
|
const current = editor.agents.get(id) ?? {
|
|
62
62
|
...defaults,
|
|
63
63
|
permissions: [...defaults.permissions, ...permissions]
|
|
@@ -79,7 +79,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
79
79
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
80
80
|
if (configured)
|
|
81
81
|
return configured;
|
|
82
|
-
const build = selectable(data.agents.get(
|
|
82
|
+
const build = selectable(data.agents.get(ID12.make("build")));
|
|
83
83
|
if (build)
|
|
84
84
|
return build;
|
|
85
85
|
for (const agent of data.agents.values()) {
|
|
@@ -88,7 +88,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
88
88
|
return fallback;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return Service74.of({
|
|
92
92
|
transform: state.transform,
|
|
93
93
|
reload: state.reload,
|
|
94
94
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -96,12 +96,12 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
96
96
|
}),
|
|
97
97
|
resolve: Effect.fnUntraced(function* (id) {
|
|
98
98
|
if (id !== undefined)
|
|
99
|
-
return state.get().agents.get(
|
|
99
|
+
return state.get().agents.get(ID12.make(id));
|
|
100
100
|
return selectedDefault();
|
|
101
101
|
}),
|
|
102
102
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
103
103
|
if (id !== undefined) {
|
|
104
|
-
const selected =
|
|
104
|
+
const selected = ID12.make(id);
|
|
105
105
|
return { id: selected, info: state.get().agents.get(selected) };
|
|
106
106
|
}
|
|
107
107
|
const info = selectedDefault();
|
|
@@ -116,6 +116,6 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
118
|
}));
|
|
119
|
-
var
|
|
119
|
+
var node78 = makeLocationNode({ service: Service74, layer, deps: [node86, Global.node] });
|
|
120
120
|
|
|
121
|
-
export {
|
|
121
|
+
export { ID12, Name3, defaultID2, Color2, Info27, Service74, node78, exports_agent4, Event17 };
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
4
|
empty3,
|
|
5
|
-
|
|
5
|
+
make21,
|
|
6
6
|
diffByKey2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./instruction-discovery-s8d7rejh.js";
|
|
8
8
|
import {
|
|
9
9
|
evaluate2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-8jbq9hes.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service39,
|
|
13
|
+
node42
|
|
14
|
+
} from "./instruction-discovery-vxj4hqrj.js";
|
|
15
15
|
import {
|
|
16
16
|
namespace2,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
name13
|
|
18
|
+
} from "./instruction-discovery-kr0f3pk7.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
22
22
|
|
|
23
23
|
// src/mcp/instructions.ts
|
|
24
24
|
var exports_instructions4 = {};
|
|
25
25
|
__export(exports_instructions4, {
|
|
26
26
|
McpInstructions: () => exports_instructions4,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service36,
|
|
28
28
|
layer: () => layer12,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node39
|
|
30
30
|
});
|
|
31
31
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
32
32
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -62,16 +62,16 @@ var update = (previous, current) => {
|
|
|
62
62
|
`);
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service36 extends Context.Service()("@opencode/McpInstructions") {
|
|
66
66
|
}
|
|
67
|
-
var layer12 = Layer.effect(
|
|
68
|
-
const mcp = yield*
|
|
69
|
-
return
|
|
67
|
+
var layer12 = Layer.effect(Service36, Effect.gen(function* () {
|
|
68
|
+
const mcp = yield* Service39;
|
|
69
|
+
return Service36.of({
|
|
70
70
|
load: Effect.fn("McpInstructions.load")(function* (selection) {
|
|
71
71
|
const agent = selection.info;
|
|
72
72
|
if (!agent)
|
|
73
73
|
return empty3;
|
|
74
|
-
const source = (value) =>
|
|
74
|
+
const source = (value) => make21({
|
|
75
75
|
key: Key3.make("core/mcp-guidance"),
|
|
76
76
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
77
77
|
read: Effect.succeed(value),
|
|
@@ -90,7 +90,7 @@ var layer12 = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
90
90
|
const codemode = owned[0]?.codemode !== false;
|
|
91
91
|
if (codemode && !canExecute)
|
|
92
92
|
return [];
|
|
93
|
-
if (!owned.some((tool) => evaluate2(
|
|
93
|
+
if (!owned.some((tool) => evaluate2(name13(tool.server, tool.name), "*", agent.permissions).effect !== "deny"))
|
|
94
94
|
return [];
|
|
95
95
|
return [
|
|
96
96
|
codemode ? { server: item.server, instructions: item.instructions } : { server: item.server, instructions: item.instructions, codemode: false }
|
|
@@ -100,6 +100,6 @@ var layer12 = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
102
|
}));
|
|
103
|
-
var
|
|
103
|
+
var node39 = makeLocationNode({ service: Service36, layer: layer12, deps: [node42] });
|
|
104
104
|
|
|
105
|
-
export {
|
|
105
|
+
export { Service36, layer12, node39, exports_instructions4 };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service82
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-nyc5627e.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service42
|
|
6
|
+
} from "./instruction-discovery-akbnj5qn.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Error4
|
|
9
|
+
} from "./instruction-discovery-r1hypjdz.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service70
|
|
12
|
+
} from "./instruction-discovery-p2s2r1mh.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-s38x4d8v.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./instruction-discovery-7a024e9s.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instruction-discovery-tdstcens.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./instruction-discovery-erw5rpbs.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./instruction-discovery-gk3vz0r5.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/runner/step.ts
|
|
36
36
|
var exports_step = {};
|
|
37
37
|
__export(exports_step, {
|
|
38
38
|
Outcome: () => Outcome2,
|
|
39
39
|
SessionStep: () => exports_step,
|
|
40
|
-
make: () =>
|
|
40
|
+
make: () => make3
|
|
41
41
|
});
|
|
42
42
|
import {
|
|
43
43
|
AIError,
|
|
@@ -51,11 +51,11 @@ var Outcome2 = Data.taggedEnum();
|
|
|
51
51
|
var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
|
|
52
52
|
var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
|
|
53
53
|
var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
|
|
54
|
-
var
|
|
54
|
+
var make3 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service82;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service42;
|
|
58
|
+
const toolOutput = yield* Service70;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const startSnapshot = yield* snapshots.capture();
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -71,7 +71,7 @@ var make8 = Effect.gen(function* () {
|
|
|
71
71
|
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
72
72
|
const executeTool = (call) => {
|
|
73
73
|
if (input.prepared.request.toolChoice?.type === "none")
|
|
74
|
-
return new
|
|
74
|
+
return new Error4({ message: "Tools are disabled after the maximum agent steps" });
|
|
75
75
|
return input.prepared.executeTool({
|
|
76
76
|
sessionID: input.sessionID,
|
|
77
77
|
agent: input.agent,
|
|
@@ -209,4 +209,4 @@ var classifyToolExits = (settled, runs) => {
|
|
|
209
209
|
return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
export { Outcome2,
|
|
212
|
+
export { Outcome2, make3, exports_step };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make20,
|
|
14
|
+
node: () => node72,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make20 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node72 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error5, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make20, RegistryService2, registry2, registryNode2, node72, exports_driver };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service71
|
|
3
|
+
} from "./instruction-discovery-8jbq9hes.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID6,
|
|
6
6
|
Name2,
|
|
7
7
|
toModelOutput3,
|
|
8
8
|
prepare3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service46
|
|
10
|
+
} from "./instruction-discovery-879n9jmk.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/skill.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
Input: () =>
|
|
19
|
-
Output: () =>
|
|
20
|
-
Plugin: () =>
|
|
21
|
-
SkillTool: () =>
|
|
22
|
-
description: () =>
|
|
23
|
-
name: () =>
|
|
16
|
+
var exports_skill = {};
|
|
17
|
+
__export(exports_skill, {
|
|
18
|
+
Input: () => Input8,
|
|
19
|
+
Output: () => Output6,
|
|
20
|
+
Plugin: () => Plugin8,
|
|
21
|
+
SkillTool: () => exports_skill,
|
|
22
|
+
description: () => description4,
|
|
23
|
+
name: () => name8,
|
|
24
24
|
toModelOutput: () => toModelOutput2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai";
|
|
27
27
|
import { Effect, Schema } from "effect";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
id:
|
|
29
|
+
var name8 = "skill";
|
|
30
|
+
var Input8 = Schema.Struct({
|
|
31
|
+
id: ID6.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
|
|
32
32
|
});
|
|
33
|
-
var
|
|
33
|
+
var Output6 = Schema.Struct({
|
|
34
34
|
name: Name2,
|
|
35
35
|
directory: Schema.String,
|
|
36
36
|
output: Schema.String
|
|
37
37
|
});
|
|
38
|
-
var
|
|
38
|
+
var description4 = [
|
|
39
39
|
"Load a specialized skill's instructions and resources into the current conversation when the task at hand matches its description.",
|
|
40
40
|
"",
|
|
41
41
|
"The skill ID must match an available skill or a skill explicitly referenced by the user."
|
|
@@ -43,25 +43,25 @@ var description5 = [
|
|
|
43
43
|
`);
|
|
44
44
|
var toModelOutput2 = toModelOutput3;
|
|
45
45
|
var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
|
|
46
|
-
var
|
|
46
|
+
var Plugin8 = {
|
|
47
47
|
id: "opencode.tool.skill",
|
|
48
48
|
effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const skills = yield*
|
|
51
|
-
const permission = yield*
|
|
50
|
+
const skills = yield* Service46;
|
|
51
|
+
const permission = yield* Service71;
|
|
52
52
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
53
|
-
name:
|
|
53
|
+
name: name8,
|
|
54
54
|
options: { codemode: false },
|
|
55
|
-
description:
|
|
56
|
-
input:
|
|
57
|
-
output:
|
|
55
|
+
description: description4,
|
|
56
|
+
input: Input8,
|
|
57
|
+
output: Output6,
|
|
58
58
|
execute: (input, context) => Effect.gen(function* () {
|
|
59
59
|
const skill = yield* skills.get(input.id);
|
|
60
60
|
if (!skill)
|
|
61
61
|
return yield* unableToLoad(input.id);
|
|
62
62
|
return yield* Effect.gen(function* () {
|
|
63
63
|
yield* permission.assert({
|
|
64
|
-
action:
|
|
64
|
+
action: name8,
|
|
65
65
|
resources: [skill.id],
|
|
66
66
|
save: [skill.id],
|
|
67
67
|
sessionID: context.sessionID,
|
|
@@ -79,4 +79,4 @@ var Plugin45 = {
|
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { name8, Input8, Output6, description4, toModelOutput2, Plugin8, exports_skill };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service58,
|
|
3
|
+
node61,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instruction-discovery-9eanvfav.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service56,
|
|
8
|
+
node59
|
|
9
|
+
} from "./instruction-discovery-9r15s34d.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service13
|
|
12
|
+
} from "./instruction-discovery-5cec8wvt.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-xsyztx04.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service58, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service13);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node59.replace(Layer.succeed(Service56, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node61.replace(Layer.succeed(Service58, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-dm1py9b3.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
12
|
+
var exports_error2 = {};
|
|
13
|
+
__export(exports_error2, {
|
|
14
14
|
AgentNotFoundError: () => AgentNotFoundError2,
|
|
15
15
|
AttachmentError: () => AttachmentError2,
|
|
16
16
|
BusyError: () => BusyError2,
|
|
@@ -19,9 +19,9 @@ __export(exports_error, {
|
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
20
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
21
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
|
-
NotFoundError: () =>
|
|
22
|
+
NotFoundError: () => NotFoundError9,
|
|
23
23
|
PromptConflictError: () => PromptConflictError2,
|
|
24
|
-
SessionErrors: () =>
|
|
24
|
+
SessionErrors: () => exports_error2,
|
|
25
25
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
26
26
|
StepFailedError: () => StepFailedError2,
|
|
27
27
|
SyntheticConflictError: () => SyntheticConflictError2,
|
|
@@ -32,7 +32,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
32
32
|
import { Skill } from "@opencode/schema/skill";
|
|
33
33
|
import { SessionError } from "@opencode/schema/session-error";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class NotFoundError9 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
36
36
|
sessionID: SessionSchema2.ID
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
@@ -123,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
123
123
|
}) {
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export {
|
|
126
|
+
export { NotFoundError9, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, UserInterruptedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instructions/index.ts
|
|
6
6
|
var exports_instructions6 = {};
|
|
@@ -18,7 +18,7 @@ __export(exports_instructions6, {
|
|
|
18
18
|
diffByKey: () => diffByKey2,
|
|
19
19
|
empty: () => empty3,
|
|
20
20
|
hash: () => hash2,
|
|
21
|
-
make: () =>
|
|
21
|
+
make: () => make21,
|
|
22
22
|
read: () => read3,
|
|
23
23
|
removed: () => removed2,
|
|
24
24
|
renderInitial: () => renderInitial2,
|
|
@@ -50,7 +50,7 @@ class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKey
|
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
var empty3 = [];
|
|
53
|
-
function
|
|
53
|
+
function make21(source) {
|
|
54
54
|
const decode = Schema.decodeUnknownOption(source.codec);
|
|
55
55
|
const encode = Schema.encodeSync(source.codec);
|
|
56
56
|
const initial = (value) => requireText(source.key, "initial", source.render.initial(value));
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3,
|
|
196
|
+
export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make21, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instruction-discovery-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service67,
|
|
8
|
+
node70
|
|
9
|
+
} from "./instruction-discovery-jmpaezdp.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-8d7r5vzw.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
@@ -20,8 +20,8 @@ __export(exports_ripgrep, {
|
|
|
20
20
|
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service18,
|
|
24
|
+
node: () => node20
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service18 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
63
|
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service67;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -92,7 +92,7 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
93
|
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service18.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service20, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node20 = makeLocationNode({ service: Service18, layer, deps: [node70, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export { Error2, InvalidPatternError2,
|
|
180
|
+
export { Error2, InvalidPatternError2, Service18, node20, exports_ripgrep };
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
SQLiteEffectPreparedQuery2,
|
|
3
3
|
SQLiteEffectSession2,
|
|
4
4
|
SQLiteEffectTransaction2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instruction-discovery-mtes310f.js";
|
|
6
6
|
|
|
7
7
|
// src/database/drizzle/effect-sqlite/session.ts
|
|
8
8
|
import * as Context from "effect/Context";
|