@opencode/core 0.0.0-dev-1216 → 0.0.0-dev-1220
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 +86 -86
- package/dist/aisdk-native.js +1 -1
- package/dist/aisdk.js +109 -109
- package/dist/app.js +9 -9
- package/dist/artifact.js +258 -259
- package/dist/bus.js +80 -80
- package/dist/chunks/{model-retry-034tev2y.js → location-service-map-034tev2y.js} +2 -2
- package/dist/chunks/{model-retry-bb3pv0r8.js → location-service-map-035wadpx.js} +7 -7
- package/dist/chunks/{model-retry-4rx53fa9.js → location-service-map-04b11r13.js} +54 -54
- package/dist/chunks/{model-retry-3j862yd2.js → location-service-map-08v7z8bj.js} +4 -4
- package/dist/chunks/{model-retry-9wc9780e.js → location-service-map-0czm8y1n.js} +7 -7
- package/dist/chunks/{model-retry-8zqzm5np.js → location-service-map-0eyg86wb.js} +12 -12
- package/dist/chunks/{model-retry-0fvxehme.js → location-service-map-0fvxehme.js} +2 -2
- package/dist/chunks/{model-retry-0ma9gw4f.js → location-service-map-0ma9gw4f.js} +2 -2
- package/dist/chunks/{model-retry-y3jkqygv.js → location-service-map-0njmt8zh.js} +39 -39
- package/dist/chunks/{model-retry-eg34w9c3.js → location-service-map-0np7wz4e.js} +4 -4
- package/dist/chunks/{model-retry-6wvdj9kp.js → location-service-map-0z8gvv1t.js} +19 -19
- package/dist/chunks/{model-retry-w6sqcs8d.js → location-service-map-15eetdmc.js} +29 -29
- package/dist/chunks/{model-retry-1aqsckx4.js → location-service-map-1aqsckx4.js} +1 -1
- package/dist/chunks/{model-retry-1aryjtsy.js → location-service-map-1aryjtsy.js} +1 -1
- package/dist/chunks/{model-retry-1ep2p91f.js → location-service-map-1ep2p91f.js} +2 -2
- package/dist/chunks/{model-retry-7bgajff9.js → location-service-map-1j8v57a6.js} +91 -94
- package/dist/chunks/{model-retry-fm88cqwd.js → location-service-map-1j92jnza.js} +19 -19
- package/dist/chunks/{model-retry-h7mck9ey.js → location-service-map-1rb6r5aa.js} +11 -11
- package/dist/chunks/{model-retry-cerajcym.js → location-service-map-1svrgee7.js} +4 -4
- package/dist/chunks/{model-retry-c6fbha32.js → location-service-map-1wmegvp4.js} +14 -14
- package/dist/chunks/{model-retry-1x2knyw4.js → location-service-map-1x2knyw4.js} +1 -1
- package/dist/chunks/{model-retry-vb8zbt9n.js → location-service-map-1ymvpjxg.js} +7 -7
- package/dist/chunks/{model-retry-5zrxpy3q.js → location-service-map-1yq9hg58.js} +5 -5
- package/dist/chunks/{model-retry-ejazfhce.js → location-service-map-26qqgt6g.js} +20 -20
- package/dist/chunks/{model-retry-kyc0r0ht.js → location-service-map-26z536aq.js} +7 -7
- package/dist/chunks/{model-retry-ke6ptzrg.js → location-service-map-28b4bne6.js} +6 -6
- package/dist/chunks/{model-retry-b9902ptq.js → location-service-map-2d9nbxqm.js} +3 -3
- package/dist/chunks/{model-retry-2fc7eemy.js → location-service-map-2fc7eemy.js} +1 -1
- package/dist/chunks/{model-retry-evy3hmsj.js → location-service-map-2j0c0bkd.js} +10 -10
- package/dist/chunks/{model-retry-m998j73k.js → location-service-map-2j8622j5.js} +15 -15
- package/dist/chunks/{model-retry-2prt43t7.js → location-service-map-2prt43t7.js} +1 -1
- package/dist/chunks/{model-retry-ggx84v7x.js → location-service-map-2s9mae96.js} +6 -6
- package/dist/chunks/{model-retry-9907wfrv.js → location-service-map-2y8q1569.js} +9 -9
- package/dist/chunks/{model-retry-pnwsrq7c.js → location-service-map-31avdb49.js} +8 -8
- package/dist/chunks/{model-retry-brz3f9n9.js → location-service-map-34h2w1vr.js} +18 -18
- package/dist/chunks/{model-retry-0a8xczw5.js → location-service-map-35bxypg0.js} +21 -21
- package/dist/chunks/{model-retry-e8xb975w.js → location-service-map-3ex1ss0s.js} +5 -5
- package/dist/chunks/{model-retry-3hepkmqq.js → location-service-map-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-retry-2jk2eaf8.js → location-service-map-3jsxda5g.js} +8 -8
- package/dist/chunks/{model-retry-3nnrz6f6.js → location-service-map-3nnrz6f6.js} +1 -1
- package/dist/chunks/{model-retry-3qevzq3v.js → location-service-map-3qevzq3v.js} +4 -4
- package/dist/chunks/{model-retry-4tmv59f3.js → location-service-map-3r0557xv.js} +22 -22
- package/dist/chunks/{model-retry-v5w4jpez.js → location-service-map-3rdts4z3.js} +6 -6
- package/dist/chunks/{model-retry-sh9dx4s1.js → location-service-map-40y6dtc2.js} +4 -4
- package/dist/chunks/{model-retry-40za9wsf.js → location-service-map-40za9wsf.js} +2 -2
- package/dist/chunks/{model-retry-g8n6nxn7.js → location-service-map-43wnwdt1.js} +33 -33
- package/dist/chunks/{model-retry-w03ds3y6.js → location-service-map-46h6vd96.js} +8 -8
- package/dist/chunks/{model-retry-jfvyzykx.js → location-service-map-48pqttyc.js} +16 -16
- package/dist/chunks/{model-retry-4dx1dgte.js → location-service-map-4dx1dgte.js} +1 -1
- package/dist/chunks/{model-retry-4f25tdd0.js → location-service-map-4f25tdd0.js} +1 -1
- package/dist/chunks/{model-retry-cx8yve48.js → location-service-map-4jrz2103.js} +25 -25
- package/dist/chunks/{model-retry-baefqw34.js → location-service-map-4k5g9167.js} +1 -1
- package/dist/chunks/{model-retry-4pyp9zr9.js → location-service-map-4pyp9zr9.js} +1 -1
- package/dist/chunks/{model-retry-bhrptrfq.js → location-service-map-4r9t3qge.js} +27 -27
- package/dist/chunks/{model-retry-4v008n1t.js → location-service-map-4v008n1t.js} +1 -1
- package/dist/chunks/{model-retry-4vzr2b15.js → location-service-map-4vzr2b15.js} +3 -3
- package/dist/chunks/{model-retry-jx75pjbb.js → location-service-map-4wpen61a.js} +21 -21
- package/dist/chunks/{model-retry-zkybrta7.js → location-service-map-53c7sqv0.js} +6 -6
- package/dist/chunks/{model-retry-b8gjcvbw.js → location-service-map-55khavy8.js} +2 -2
- package/dist/chunks/{model-retry-p9jvgf3w.js → location-service-map-58wf94jx.js} +6 -6
- package/dist/chunks/{model-retry-mesdejg4.js → location-service-map-595th08f.js} +26 -26
- package/dist/chunks/{model-retry-rpqdece5.js → location-service-map-5gg1twsx.js} +4 -4
- package/dist/chunks/{model-retry-5xadkbnd.js → location-service-map-5hzkr2ah.js} +16 -16
- package/dist/chunks/{model-retry-fkqnmv7m.js → location-service-map-5m3xrn1j.js} +9 -9
- package/dist/chunks/{model-retry-5m9w47nd.js → location-service-map-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-retry-0gx6fzah.js → location-service-map-5sans6bz.js} +10 -10
- package/dist/chunks/{model-retry-zr3s1x67.js → location-service-map-5tf8xt83.js} +38 -38
- package/dist/chunks/{model-retry-30swr9rt.js → location-service-map-5ve5n6vy.js} +19 -19
- package/dist/chunks/{model-retry-3gjensde.js → location-service-map-5w4prsbk.js} +14 -14
- package/dist/chunks/{model-retry-gbm37efj.js → location-service-map-682r9fgy.js} +10 -10
- package/dist/chunks/{model-retry-4wxtepaa.js → location-service-map-6c2edk9s.js} +5 -5
- package/dist/chunks/{model-retry-ybv2sjse.js → location-service-map-6ez86e1h.js} +20 -20
- package/dist/chunks/{model-retry-d28v9scs.js → location-service-map-6h8vcvjm.js} +9 -9
- package/dist/chunks/{model-retry-s70c1f4z.js → location-service-map-6njqpc4h.js} +12 -12
- package/dist/chunks/{model-retry-kpjr6knp.js → location-service-map-6sm4rdnh.js} +9 -9
- package/dist/chunks/location-service-map-73rcrfx8.js +587 -0
- package/dist/chunks/{model-retry-30qkek6h.js → location-service-map-756txk4v.js} +17 -17
- package/dist/chunks/{model-retry-67zhfnr5.js → location-service-map-78p2h4ex.js} +5 -5
- package/dist/chunks/{model-retry-7bmhse3q.js → location-service-map-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-retry-jn02p7w8.js → location-service-map-7hvbm4vg.js} +30 -30
- package/dist/chunks/{model-retry-0ddtt1rb.js → location-service-map-7npyf6h4.js} +19 -19
- package/dist/chunks/{model-retry-96j1qp1j.js → location-service-map-7rkp71zx.js} +36 -36
- package/dist/chunks/{model-retry-7w2ypzdf.js → location-service-map-7w2ypzdf.js} +1 -1
- package/dist/chunks/{model-retry-7weczvnd.js → location-service-map-7weczvnd.js} +1 -1
- package/dist/chunks/{model-retry-w5v5zxbk.js → location-service-map-7y2v4hfe.js} +8 -8
- package/dist/chunks/location-service-map-7yv5xa0k.js +18 -0
- package/dist/chunks/{model-retry-80mg3ag8.js → location-service-map-80mg3ag8.js} +3 -3
- package/dist/chunks/{model-retry-80pdk984.js → location-service-map-80pdk984.js} +1 -1
- package/dist/chunks/{model-retry-1k2wffy4.js → location-service-map-81y1mrna.js} +11 -11
- package/dist/chunks/{model-retry-85jq8dht.js → location-service-map-85jq8dht.js} +1 -1
- package/dist/chunks/{model-retry-qv7g05k4.js → location-service-map-86sgqceh.js} +5 -5
- package/dist/chunks/{model-retry-vzep8vzj.js → location-service-map-87gmjfrb.js} +12 -12
- package/dist/chunks/{model-retry-ggq1y9n4.js → location-service-map-88pq2e61.js} +17 -17
- package/dist/chunks/{model-retry-8b3vzgkx.js → location-service-map-8b3vzgkx.js} +1 -1
- package/dist/chunks/{model-retry-pr9etnbc.js → location-service-map-8f92b62n.js} +23 -23
- package/dist/chunks/{model-retry-j6vesw1n.js → location-service-map-8fbd74bt.js} +11 -11
- package/dist/chunks/{model-retry-8kjyvwy5.js → location-service-map-8kjyvwy5.js} +1 -1
- package/dist/chunks/{model-retry-hq1yfezb.js → location-service-map-8qcty0p0.js} +10 -10
- package/dist/chunks/{model-retry-963hk181.js → location-service-map-8rh7wfkh.js} +9 -9
- package/dist/chunks/{model-retry-8sxe6kv8.js → location-service-map-8sxe6kv8.js} +2 -2
- package/dist/chunks/{model-retry-90bxm3w0.js → location-service-map-8vehvdj9.js} +16 -16
- package/dist/chunks/{model-retry-y2wfh8nz.js → location-service-map-8vyvqb1j.js} +10 -10
- package/dist/chunks/{model-retry-8wtp7s3z.js → location-service-map-8wtp7s3z.js} +1 -1
- package/dist/chunks/{model-retry-7mxcsx9x.js → location-service-map-8ytffmf3.js} +13 -13
- package/dist/chunks/{model-retry-8zv0xmg5.js → location-service-map-8zv0xmg5.js} +1 -1
- package/dist/chunks/{model-retry-90ct6wq4.js → location-service-map-90ct6wq4.js} +1 -1
- package/dist/chunks/{model-retry-d5z41q63.js → location-service-map-93sjg7bj.js} +1 -1
- package/dist/chunks/{model-retry-56zc6607.js → location-service-map-9f01b31z.js} +12 -12
- package/dist/chunks/{model-retry-7zxbyqhz.js → location-service-map-9fy2xype.js} +17 -17
- package/dist/chunks/{model-retry-5g9v6hdw.js → location-service-map-9ry2hy7r.js} +18 -18
- package/dist/chunks/{model-retry-ebqkfy2r.js → location-service-map-a5qrcs7y.js} +6 -6
- package/dist/chunks/{model-retry-k08th43v.js → location-service-map-a6ahad7w.js} +10 -10
- package/dist/chunks/{model-retry-qpqdpqrv.js → location-service-map-ae45krb0.js} +11 -11
- package/dist/chunks/{model-retry-f761xza1.js → location-service-map-am7ngvf1.js} +40 -40
- package/dist/chunks/{model-retry-qdc1w9ks.js → location-service-map-amkza0xb.js} +24 -24
- package/dist/chunks/{model-retry-xd5qa272.js → location-service-map-avhm30cb.js} +45 -58
- package/dist/chunks/{model-retry-ayjs7tqn.js → location-service-map-ayjs7tqn.js} +2 -2
- package/dist/chunks/{model-retry-n320gsn2.js → location-service-map-azqdag7d.js} +4 -4
- package/dist/chunks/{model-retry-j1aj7ka8.js → location-service-map-b9xk4a2d.js} +19 -19
- package/dist/chunks/{model-retry-ge0z7z6r.js → location-service-map-b9yhhwa8.js} +20 -20
- package/dist/chunks/{model-retry-r61v17gv.js → location-service-map-bjdfaaqt.js} +49 -49
- package/dist/chunks/{model-retry-yybgvvmq.js → location-service-map-brv6mkyx.js} +4 -4
- package/dist/chunks/{model-retry-dc3sk665.js → location-service-map-ccr7e384.js} +59 -59
- package/dist/chunks/{model-retry-a1832zrw.js → location-service-map-ckwsx23f.js} +40 -40
- package/dist/chunks/{model-retry-ye051wpe.js → location-service-map-crhr9065.js} +5 -5
- package/dist/chunks/{model-retry-a52bkq65.js → location-service-map-cvjm9kyy.js} +78 -78
- package/dist/chunks/{model-retry-cwrgdav8.js → location-service-map-cwrgdav8.js} +2 -2
- package/dist/chunks/{model-retry-nn2nd58t.js → location-service-map-cxab28sr.js} +5 -5
- package/dist/chunks/{model-retry-31c9mc6y.js → location-service-map-cysnk3h2.js} +20 -20
- package/dist/chunks/{model-retry-6h8nkgjb.js → location-service-map-cz0wf6jj.js} +18 -18
- package/dist/chunks/{model-retry-cj2zr1px.js → location-service-map-d01nznqf.js} +7 -7
- package/dist/chunks/{model-retry-d4v9tmah.js → location-service-map-d4v9tmah.js} +2 -2
- package/dist/chunks/{model-retry-q8hw2skb.js → location-service-map-dd3s6rjc.js} +9 -9
- package/dist/chunks/{model-retry-hy8c1z76.js → location-service-map-ddvn7d3w.js} +8 -8
- package/dist/chunks/{model-retry-s5g14t6y.js → location-service-map-dnfbfcty.js} +3 -3
- package/dist/chunks/{model-retry-dt77769w.js → location-service-map-dt77769w.js} +1 -1
- package/dist/chunks/{model-retry-exwhc5hz.js → location-service-map-e174pryb.js} +8 -8
- package/dist/chunks/{model-retry-zmmx3t8v.js → location-service-map-e4ecj54z.js} +48 -48
- package/dist/chunks/{model-retry-a1qwck5h.js → location-service-map-eam2557n.js} +8 -8
- package/dist/chunks/{model-retry-w71w1vyw.js → location-service-map-eb8c6fze.js} +47 -47
- package/dist/chunks/{model-retry-eqw4pqj1.js → location-service-map-eqw4pqj1.js} +2 -2
- package/dist/chunks/{model-retry-h0nvnzve.js → location-service-map-erj42gt4.js} +13 -13
- package/dist/chunks/{model-retry-qbqyqs78.js → location-service-map-ertr84a8.js} +13 -13
- package/dist/chunks/{model-retry-fcskamac.js → location-service-map-eww617aq.js} +11 -11
- package/dist/chunks/{model-retry-48vkv2zp.js → location-service-map-ext3f0g2.js} +30 -30
- package/dist/chunks/{model-retry-8vb53tx0.js → location-service-map-f37kewrv.js} +37 -37
- package/dist/chunks/{model-retry-pv9k69qc.js → location-service-map-f6fg6vvn.js} +84 -84
- package/dist/chunks/{model-retry-rhg4046s.js → location-service-map-f6hn2jkf.js} +12 -12
- package/dist/chunks/{model-retry-n4chev15.js → location-service-map-f985r6kr.js} +27 -27
- package/dist/chunks/{model-retry-ywb0hxgs.js → location-service-map-f9r5vc5m.js} +28 -28
- package/dist/chunks/{model-retry-pkbe14me.js → location-service-map-fbtyzv9j.js} +34 -34
- package/dist/chunks/{model-retry-t84ct0bh.js → location-service-map-fd4wsrfy.js} +6 -6
- package/dist/chunks/{model-retry-fg9p65nk.js → location-service-map-fg9p65nk.js} +2 -2
- package/dist/chunks/{model-retry-k34er33s.js → location-service-map-fhywfw5q.js} +18 -18
- package/dist/chunks/{model-retry-n3na61j9.js → location-service-map-fmjsjtqm.js} +4 -4
- package/dist/chunks/{model-retry-aemyyd40.js → location-service-map-fv8ygwk0.js} +5 -5
- package/dist/chunks/{model-retry-dv57xqt1.js → location-service-map-fvpd8xf4.js} +5 -5
- package/dist/chunks/{model-retry-1yped5qa.js → location-service-map-fznmdakp.js} +4 -4
- package/dist/chunks/{model-retry-ea4xbpys.js → location-service-map-g444w85h.js} +2 -2
- package/dist/chunks/{model-retry-tp1jb13k.js → location-service-map-g4txs7zc.js} +7 -7
- package/dist/chunks/{model-retry-xg7gtsp9.js → location-service-map-g6axqj60.js} +6 -6
- package/dist/chunks/{model-retry-yydqqga9.js → location-service-map-g9ndtp1p.js} +4 -4
- package/dist/chunks/{model-retry-380f7ky3.js → location-service-map-gbaqg25w.js} +10 -10
- package/dist/chunks/{model-retry-gbjdnr5j.js → location-service-map-gbjdnr5j.js} +2 -2
- package/dist/chunks/{model-retry-m8prejn4.js → location-service-map-gbt004k4.js} +10 -10
- package/dist/chunks/{model-retry-5cgn0v09.js → location-service-map-geem5nsj.js} +14 -14
- package/dist/chunks/{model-retry-881fy3d8.js → location-service-map-gfrnab9p.js} +21 -21
- package/dist/chunks/{model-retry-ghrv1g9c.js → location-service-map-ghrv1g9c.js} +1 -1
- package/dist/chunks/{model-retry-mzj1qzjq.js → location-service-map-gjnfhh6c.js} +28 -28
- package/dist/chunks/location-service-map-gkb3m8fg.js +16 -0
- package/dist/chunks/{model-retry-gmemj5zs.js → location-service-map-gmemj5zs.js} +1 -1
- package/dist/chunks/{model-retry-nw314s9d.js → location-service-map-gnkw4dwe.js} +2 -2
- package/dist/chunks/{model-retry-gxs71cxp.js → location-service-map-gxs71cxp.js} +1 -1
- package/dist/chunks/{model-retry-n0q6v9g9.js → location-service-map-gyrf1n0c.js} +4 -4
- package/dist/chunks/{model-retry-cb67h20a.js → location-service-map-gz69975a.js} +5 -5
- package/dist/chunks/{model-retry-evbf0h8n.js → location-service-map-h002b5k3.js} +4 -4
- package/dist/chunks/{model-retry-48sb3xry.js → location-service-map-h4yybdgt.js} +9 -9
- package/dist/chunks/{model-retry-phy3xrma.js → location-service-map-h55fmb1a.js} +11 -11
- package/dist/chunks/{model-retry-1abx79xn.js → location-service-map-h6wjw172.js} +6 -6
- package/dist/chunks/{model-retry-aq5rdsap.js → location-service-map-h76s4kjs.js} +39 -39
- package/dist/chunks/{model-retry-hgzwgvze.js → location-service-map-hgzwgvze.js} +2 -2
- package/dist/chunks/{model-retry-zdty93sz.js → location-service-map-hjrsm6gr.js} +4 -4
- package/dist/chunks/{model-retry-nq3gw3nz.js → location-service-map-hmnadmg1.js} +32 -32
- package/dist/chunks/{model-retry-pm5952we.js → location-service-map-hmxtna5r.js} +63 -63
- package/dist/chunks/location-service-map-hqbjgxtf.js +26 -0
- package/dist/chunks/{model-retry-jht64jd1.js → location-service-map-j376ae4e.js} +7 -7
- package/dist/chunks/{model-retry-20px12h8.js → location-service-map-j9ne08cm.js} +6 -6
- package/dist/chunks/{model-retry-wt8qw9kc.js → location-service-map-jahcymnp.js} +15 -15
- package/dist/chunks/{model-retry-px7qpgcn.js → location-service-map-jbca85dn.js} +4 -4
- package/dist/chunks/{model-retry-c8xv9zc0.js → location-service-map-jeww68x2.js} +9 -9
- package/dist/chunks/{model-retry-a4fgwpxr.js → location-service-map-jgg5a07m.js} +23 -23
- package/dist/chunks/{model-retry-j3n8xjy6.js → location-service-map-jgrd23gk.js} +7 -7
- package/dist/chunks/{model-retry-09rceteh.js → location-service-map-jhw46fwd.js} +7 -7
- package/dist/chunks/{model-retry-bhfd478d.js → location-service-map-jkdcm5hg.js} +4 -4
- package/dist/chunks/{model-retry-jm70asfg.js → location-service-map-jm70asfg.js} +1 -1
- package/dist/chunks/{model-retry-4sp0pwej.js → location-service-map-jmv1ywcg.js} +23 -23
- package/dist/chunks/{model-retry-0dy226kc.js → location-service-map-jqk89bd7.js} +51 -51
- package/dist/chunks/{model-retry-w4xw9ac5.js → location-service-map-js6668m3.js} +4 -4
- package/dist/chunks/{model-retry-5zzzgtm0.js → location-service-map-jvqb0g9x.js} +11 -11
- package/dist/chunks/{model-retry-twhtcdx9.js → location-service-map-jxd6f16v.js} +4 -4
- package/dist/chunks/{model-retry-3r1ydfdn.js → location-service-map-jxsy4av0.js} +14 -14
- package/dist/chunks/{model-retry-gyfe4a17.js → location-service-map-k3mzzvn2.js} +28 -28
- package/dist/chunks/{model-retry-qfz6bxfd.js → location-service-map-k46dd5bg.js} +4 -4
- package/dist/chunks/location-service-map-k908hcrc.js +273 -0
- package/dist/chunks/{model-retry-3ryz99p0.js → location-service-map-k98yejja.js} +5 -5
- package/dist/chunks/{model-retry-kxamksb3.js → location-service-map-keja7rv1.js} +9 -9
- package/dist/chunks/{model-retry-f7bpy73v.js → location-service-map-kkg6023m.js} +8 -8
- package/dist/chunks/{model-retry-pzj8t5rk.js → location-service-map-kpebncjk.js} +11 -11
- package/dist/chunks/{model-retry-aq6k3cf3.js → location-service-map-krvaf23f.js} +17 -17
- package/dist/chunks/{model-retry-kt3bjfbg.js → location-service-map-kt3bjfbg.js} +1 -1
- package/dist/chunks/{model-retry-kzczzf4v.js → location-service-map-kzczzf4v.js} +1 -1
- package/dist/chunks/{model-retry-azmzce5q.js → location-service-map-m0mdkbcd.js} +11 -11
- package/dist/chunks/{model-retry-m1714858.js → location-service-map-m1714858.js} +1 -1
- package/dist/chunks/{model-retry-agje4kmn.js → location-service-map-m3dfmqn8.js} +7 -7
- package/dist/chunks/{model-retry-m4p4r8nc.js → location-service-map-m4p4r8nc.js} +1 -1
- package/dist/chunks/{model-retry-tck9nc1r.js → location-service-map-m69zetst.js} +26 -26
- package/dist/chunks/{model-retry-wsy64217.js → location-service-map-m770pykc.js} +17 -17
- package/dist/chunks/{model-retry-m90tx7mw.js → location-service-map-m90tx7mw.js} +1 -1
- package/dist/chunks/{model-retry-m9w0rfyh.js → location-service-map-m9w0rfyh.js} +1 -1
- package/dist/chunks/{model-retry-2cnxsjyc.js → location-service-map-ma5b68np.js} +28 -28
- package/dist/chunks/{model-retry-mb7mbhnz.js → location-service-map-mb7mbhnz.js} +3 -3
- package/dist/chunks/{model-retry-e3qgsftg.js → location-service-map-me99kem2.js} +5 -5
- package/dist/chunks/{model-retry-0zvwhvr5.js → location-service-map-mecckpwv.js} +8 -8
- package/dist/chunks/{model-retry-v32atjwq.js → location-service-map-mgmgpmkj.js} +30 -30
- package/dist/chunks/{model-retry-a0pwz2ja.js → location-service-map-mje8hwz2.js} +14 -14
- package/dist/chunks/{model-retry-pqr3184k.js → location-service-map-ne36spdb.js} +14 -14
- package/dist/chunks/{model-retry-8cja266h.js → location-service-map-nhnsmwa2.js} +19 -19
- package/dist/chunks/{model-retry-adg8bb2p.js → location-service-map-nmvs1w2h.js} +21 -21
- package/dist/chunks/{model-retry-d3q9v104.js → location-service-map-nnbdc6m0.js} +1 -1
- package/dist/chunks/{model-retry-4dk3ggh9.js → location-service-map-nxw1zf8h.js} +4 -4
- package/dist/chunks/{model-retry-dvjpmffy.js → location-service-map-p3wjgdtj.js} +14 -14
- package/dist/chunks/{model-retry-srb5ekkn.js → location-service-map-p4x8wqyz.js} +18 -18
- package/dist/chunks/{model-retry-pvjmct39.js → location-service-map-p7zpdpm1.js} +6 -6
- package/dist/chunks/{model-retry-gzet49gd.js → location-service-map-p9bnptzw.js} +28 -28
- package/dist/chunks/{model-retry-ec77n7yf.js → location-service-map-pa86bx7k.js} +17 -17
- package/dist/chunks/{model-retry-gh5gjszb.js → location-service-map-pb695e6y.js} +40 -40
- package/dist/chunks/{model-retry-qeg6dv9a.js → location-service-map-pk7zej4a.js} +15 -15
- package/dist/chunks/{model-retry-pknna89w.js → location-service-map-pknna89w.js} +1 -1
- package/dist/chunks/{model-retry-329aeaw0.js → location-service-map-pm1efkmx.js} +57 -57
- package/dist/chunks/{model-retry-rja7p7xq.js → location-service-map-pnk364rs.js} +3 -3
- package/dist/chunks/{model-retry-g1x3338p.js → location-service-map-psb1wzhv.js} +3 -3
- package/dist/chunks/{model-retry-42je62vc.js → location-service-map-psrhxzkz.js} +3 -3
- package/dist/chunks/{model-retry-6ab8246z.js → location-service-map-ptr45ne2.js} +7 -7
- package/dist/chunks/{model-retry-gny4fw8g.js → location-service-map-pzapmsw9.js} +17 -17
- package/dist/chunks/{model-retry-cn285h91.js → location-service-map-q11srg2a.js} +8 -8
- package/dist/chunks/{model-retry-93sddvhm.js → location-service-map-q2qnwv2q.js} +14 -14
- package/dist/chunks/{model-retry-wha2430v.js → location-service-map-q2r16wj1.js} +3 -3
- package/dist/chunks/{model-retry-tv9fhf77.js → location-service-map-q5nhhrfg.js} +3 -3
- package/dist/chunks/{model-retry-fjr1tg8h.js → location-service-map-q904er84.js} +33 -33
- package/dist/chunks/{model-retry-93fz3ark.js → location-service-map-q9btxw33.js} +11 -11
- package/dist/chunks/{model-retry-630f57dr.js → location-service-map-qh7cn1xx.js} +15 -15
- package/dist/chunks/{model-retry-9wp8fvve.js → location-service-map-qp2996hh.js} +5 -5
- package/dist/chunks/{model-retry-qp7r0hxv.js → location-service-map-qp7r0hxv.js} +1 -1
- package/dist/chunks/{model-retry-rv31kkjr.js → location-service-map-r7yf6cnn.js} +6 -6
- package/dist/chunks/{model-retry-tenwd8mx.js → location-service-map-r8awm2rp.js} +15 -15
- package/dist/chunks/{model-retry-w89hjt3b.js → location-service-map-r8brma3d.js} +15 -15
- package/dist/chunks/{model-retry-a3dc5jdz.js → location-service-map-razzrrby.js} +5 -5
- package/dist/chunks/{model-retry-rb9dy4dg.js → location-service-map-rb9dy4dg.js} +1 -1
- package/dist/chunks/{model-retry-0ext5n9t.js → location-service-map-rfdg5dmq.js} +11 -11
- package/dist/chunks/{model-retry-rgc9cx3e.js → location-service-map-rgc9cx3e.js} +2 -2
- package/dist/chunks/{model-retry-2cc0zt21.js → location-service-map-rn0w7wg1.js} +21 -21
- package/dist/chunks/{model-retry-x19yfq7e.js → location-service-map-rw8egndv.js} +31 -31
- package/dist/chunks/{model-retry-ad21tgm2.js → location-service-map-s1ba0vj0.js} +4 -4
- package/dist/chunks/{model-retry-k28r1t9f.js → location-service-map-s2g09ryt.js} +26 -29
- package/dist/chunks/{model-retry-xxfjb0zd.js → location-service-map-s345ggan.js} +13 -13
- package/dist/chunks/{model-retry-s47rahr7.js → location-service-map-s47rahr7.js} +1 -1
- package/dist/chunks/{model-retry-vfy39f1m.js → location-service-map-s4csrqb1.js} +25 -25
- package/dist/chunks/{model-retry-8xvx9gbc.js → location-service-map-s615zsdr.js} +15 -15
- package/dist/chunks/{model-retry-fng6r8ys.js → location-service-map-s8hsdmb3.js} +24 -24
- package/dist/chunks/{model-retry-sp5gfv0g.js → location-service-map-sb1d3bsy.js} +27 -27
- package/dist/chunks/{model-retry-sbya78hr.js → location-service-map-sbya78hr.js} +1 -1
- package/dist/chunks/{model-retry-hjs6kb92.js → location-service-map-sfnbsatt.js} +44 -44
- package/dist/chunks/{model-retry-rmfzdfxf.js → location-service-map-sm910czp.js} +16 -16
- package/dist/chunks/{model-retry-35xwmx6k.js → location-service-map-sp43w917.js} +12 -12
- package/dist/chunks/{model-retry-svcy3p9a.js → location-service-map-svcy3p9a.js} +1 -1
- package/dist/chunks/{model-retry-4jyt793m.js → location-service-map-swghd0xk.js} +2 -2
- package/dist/chunks/{model-retry-qacp188h.js → location-service-map-swmqj1es.js} +8 -8
- package/dist/chunks/{model-retry-y9dg44tb.js → location-service-map-szdxz5vf.js} +20 -20
- package/dist/chunks/{model-retry-47q1swan.js → location-service-map-t03vbevb.js} +22 -22
- package/dist/chunks/{model-retry-9rqfe4ad.js → location-service-map-t48jrnqq.js} +3 -3
- package/dist/chunks/{model-retry-8rt25ezk.js → location-service-map-t62dywgn.js} +6 -6
- package/dist/chunks/{model-retry-a0vpc40p.js → location-service-map-tbgsf036.js} +169 -169
- package/dist/chunks/{model-retry-tbpn7jtk.js → location-service-map-tbpn7jtk.js} +1 -1
- package/dist/chunks/{model-retry-tczq8hjw.js → location-service-map-tczq8hjw.js} +1 -1
- package/dist/chunks/{model-retry-e6h0js2y.js → location-service-map-tmxr2s7a.js} +8 -8
- package/dist/chunks/{model-retry-mrjhcth0.js → location-service-map-tqq8e0e3.js} +2 -2
- package/dist/chunks/{model-retry-denh2jb2.js → location-service-map-ts5j28rr.js} +6 -6
- package/dist/chunks/{model-retry-tvtps2q9.js → location-service-map-tvtps2q9.js} +1 -1
- package/dist/chunks/{model-retry-twssxy5n.js → location-service-map-twssxy5n.js} +2 -2
- package/dist/chunks/{model-retry-9q8g9sv8.js → location-service-map-v0t96s7a.js} +4 -4
- package/dist/chunks/{model-retry-v2r1d0zg.js → location-service-map-v2r1d0zg.js} +1 -1
- package/dist/chunks/{model-retry-2e32zktp.js → location-service-map-va1p1kqg.js} +15 -15
- package/dist/chunks/{model-retry-5x3grz7y.js → location-service-map-vas4244f.js} +12 -12
- package/dist/chunks/{model-retry-432cy2ab.js → location-service-map-vcdn6g4d.js} +17 -17
- package/dist/chunks/{model-retry-vjf35v1f.js → location-service-map-vjf35v1f.js} +1 -1
- package/dist/chunks/{model-retry-vjhrddsw.js → location-service-map-vjhrddsw.js} +2 -2
- package/dist/chunks/{model-retry-gdq3b2dw.js → location-service-map-vnn2f0te.js} +33 -33
- package/dist/chunks/{model-retry-sd1es34h.js → location-service-map-vq33ceav.js} +8 -8
- package/dist/chunks/{model-retry-weexxn37.js → location-service-map-vvs86ggc.js} +2 -2
- package/dist/chunks/{model-retry-g6fhsb58.js → location-service-map-vypd0943.js} +8 -8
- package/dist/chunks/{model-retry-99z197m3.js → location-service-map-w26zvd0j.js} +3 -3
- package/dist/chunks/{model-retry-w3wsvvr9.js → location-service-map-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-retry-jns4gqy7.js → location-service-map-w9w8mt4n.js} +4 -4
- package/dist/chunks/{model-retry-wakvkjy4.js → location-service-map-wakvkjy4.js} +1 -1
- package/dist/chunks/{model-retry-ff9rbk43.js → location-service-map-wb2pmb95.js} +6 -9
- package/dist/chunks/{model-retry-wd87259q.js → location-service-map-wd87259q.js} +1 -1
- package/dist/chunks/{model-retry-wegkxhrn.js → location-service-map-wegkxhrn.js} +2 -2
- package/dist/chunks/{model-retry-g5cw3qgb.js → location-service-map-wf30e74t.js} +9 -9
- package/dist/chunks/{model-retry-e2fbpykw.js → location-service-map-whm5zz1t.js} +24 -24
- package/dist/chunks/{model-retry-h99kpe06.js → location-service-map-wt5scvyx.js} +20 -20
- package/dist/chunks/{model-retry-50380zjw.js → location-service-map-wvc2mr1n.js} +11 -11
- package/dist/chunks/{model-retry-k2w93ba9.js → location-service-map-wyx40t4c.js} +30 -30
- package/dist/chunks/{model-retry-3syj8115.js → location-service-map-x4mywqhm.js} +23 -23
- package/dist/chunks/{model-retry-xacrkbdt.js → location-service-map-xacrkbdt.js} +1 -1
- package/dist/chunks/{model-retry-m91bny15.js → location-service-map-xb8jhjsn.js} +15 -15
- package/dist/chunks/{model-retry-s9xvbj60.js → location-service-map-xbkzc6k0.js} +6 -6
- package/dist/chunks/{model-retry-bstexjd6.js → location-service-map-xd9cc171.js} +5 -5
- package/dist/chunks/{model-retry-1b2cxmga.js → location-service-map-xhkdczkv.js} +11 -11
- package/dist/chunks/{model-retry-3adw4bt5.js → location-service-map-xjbsd7zy.js} +9 -9
- package/dist/chunks/{model-retry-xjr6c8m4.js → location-service-map-xjr6c8m4.js} +1 -1
- package/dist/chunks/{model-retry-edapz20f.js → location-service-map-xn1x61je.js} +3 -3
- package/dist/chunks/{model-retry-m9a9fe6f.js → location-service-map-xrx499nq.js} +8 -8
- package/dist/chunks/{model-retry-02fhhstm.js → location-service-map-xwc195j0.js} +5 -5
- package/dist/chunks/{model-retry-2fp0jt6s.js → location-service-map-y7z3rpdg.js} +30 -30
- package/dist/chunks/{model-retry-caeva7y1.js → location-service-map-y8gddqc4.js} +14 -14
- package/dist/chunks/{model-retry-yb20nhc3.js → location-service-map-yb20nhc3.js} +1 -1
- package/dist/chunks/{model-retry-vrkt2gzc.js → location-service-map-yb82w2a1.js} +25 -25
- package/dist/chunks/{model-retry-jcz74541.js → location-service-map-ybws1qgk.js} +6 -6
- package/dist/chunks/{model-retry-pwjd9d5z.js → location-service-map-yhr036sq.js} +22 -22
- package/dist/chunks/{model-retry-tve6atr2.js → location-service-map-ymkxf774.js} +26 -26
- package/dist/chunks/{model-retry-yr705xyq.js → location-service-map-yr705xyq.js} +1 -1
- package/dist/chunks/{model-retry-x2vkwk6x.js → location-service-map-ytjqcjc1.js} +1 -1
- package/dist/chunks/{model-retry-yvtc2x31.js → location-service-map-yvtc2x31.js} +1 -1
- package/dist/chunks/{model-retry-z0wbgq7s.js → location-service-map-z0wbgq7s.js} +1 -1
- package/dist/chunks/location-service-map-z4nh6wq0.js +334 -0
- package/dist/chunks/{model-retry-cvht37xw.js → location-service-map-za9b4crp.js} +21 -21
- package/dist/chunks/{model-retry-jzyf28t6.js → location-service-map-zamccnb2.js} +24 -24
- package/dist/chunks/{model-retry-ze75qvmd.js → location-service-map-ze75qvmd.js} +3 -3
- package/dist/chunks/{model-retry-2v3capeq.js → location-service-map-zggd4859.js} +11 -11
- package/dist/chunks/{model-retry-cc6s66e5.js → location-service-map-zhh8k8xm.js} +13 -13
- package/dist/chunks/{model-retry-esn0ce8j.js → location-service-map-zkpv5a2h.js} +12 -12
- package/dist/chunks/{model-retry-7cf5w11a.js → location-service-map-zm807etq.js} +5 -5
- package/dist/chunks/{model-retry-xxf442y8.js → location-service-map-zqyjms4e.js} +31 -31
- package/dist/chunks/{model-retry-6e4ngh43.js → location-service-map-zr1wmh0k.js} +20 -20
- package/dist/chunks/{model-retry-g1m8att5.js → location-service-map-zzaqb64w.js} +26 -26
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +149 -149
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +156 -156
- package/dist/command.js +96 -96
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +1 -1
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +113 -113
- package/dist/config/plugin/agent.js +132 -132
- package/dist/config/plugin/command.js +245 -246
- package/dist/config/plugin/compaction.js +174 -174
- package/dist/config/plugin/compatibility.js +154 -154
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +132 -132
- package/dist/config/plugin/image.js +131 -131
- package/dist/config/plugin/instruction.js +131 -131
- package/dist/config/plugin/location-watcher.js +131 -131
- package/dist/config/plugin/mcp.js +142 -142
- package/dist/config/plugin/policy.js +131 -131
- package/dist/config/plugin/provider.js +131 -131
- package/dist/config/plugin/reference.js +133 -133
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +150 -150
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +155 -155
- package/dist/config/plugin/snapshot.js +131 -131
- package/dist/config/plugin/source.js +135 -135
- package/dist/config/plugin/tool-output.js +132 -132
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +133 -133
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +136 -136
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +94 -94
- package/dist/database/batch.js +1 -1
- package/dist/database/database.js +77 -77
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +78 -78
- 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/v1-migration.bun.js +105 -105
- package/dist/effect/app-node-builder.js +448 -449
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +107 -107
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +81 -81
- package/dist/file-access.js +161 -161
- package/dist/file-mutation.js +108 -108
- package/dist/file-retention.js +1 -1
- package/dist/file-write.js +165 -165
- 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/file-watch.js +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +256 -257
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +113 -113
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +116 -116
- package/dist/flag.js +132 -132
- package/dist/form.js +91 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +121 -121
- package/dist/git.js +11 -11
- package/dist/github-copilot/models.js +113 -113
- package/dist/image/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +439 -440
- package/dist/instruction-discovery.js +93 -93
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +100 -100
- package/dist/job/list.js +7 -7
- package/dist/job/recovery.js +2 -2
- package/dist/job/sql.js +2 -2
- package/dist/job.js +90 -90
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +184 -185
- package/dist/location-lifecycle.js +154 -154
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +436 -437
- package/dist/location.js +102 -102
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +159 -159
- package/dist/mcp/connection.js +106 -106
- package/dist/mcp/index.js +149 -149
- package/dist/mcp/instructions.js +190 -190
- package/dist/mcp/oauth.js +106 -94
- package/dist/mcp/pool.js +112 -112
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +160 -160
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +113 -113
- package/dist/model-resolver.js +113 -113
- package/dist/model-retry.js +1 -1
- package/dist/model.js +112 -112
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +112 -112
- package/dist/oauth/page.js +1 -1
- package/dist/oauth/redirect.js +1 -1
- package/dist/permission/saved.js +89 -89
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +151 -151
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +95 -95
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +85 -85
- package/dist/plugin/command.js +144 -144
- package/dist/plugin/fork-notice.js +3 -3
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +249 -250
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +416 -417
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +111 -111
- package/dist/plugin/module.js +130 -130
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +150 -150
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +107 -107
- package/dist/plugin/provider/azure.js +134 -134
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +135 -135
- package/dist/plugin/provider/claude-agent/aisdk.js +118 -118
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +5 -5
- package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +149 -149
- package/dist/plugin/provider/claude-agent/instructions.js +113 -113
- package/dist/plugin/provider/claude-agent/integration.js +116 -116
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +4 -4
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +1 -1
- package/dist/plugin/provider/claude-agent/provider.js +109 -109
- package/dist/plugin/provider/claude-agent/session.js +111 -111
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +131 -131
- package/dist/plugin/provider/cloudflare-workers-ai.js +131 -131
- package/dist/plugin/provider/configured.js +127 -127
- package/dist/plugin/provider/credential-settings.js +88 -88
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +110 -110
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +112 -112
- package/dist/plugin/provider/gitlab.js +111 -111
- package/dist/plugin/provider/google-vertex.js +128 -128
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +144 -144
- package/dist/plugin/provider/local.js +141 -141
- package/dist/plugin/provider/modal.js +109 -109
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +142 -142
- package/dist/plugin/provider/openai-context-caps.js +107 -107
- package/dist/plugin/provider/openai.js +135 -135
- package/dist/plugin/provider/opencode-watches.js +4 -4
- package/dist/plugin/provider/opencode.js +162 -162
- package/dist/plugin/provider/openrouter.js +105 -105
- package/dist/plugin/provider/poe.js +91 -91
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +87 -87
- package/dist/plugin/provider/sap-ai-core.js +105 -105
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +133 -133
- package/dist/plugin/provider/vllm.js +144 -144
- package/dist/plugin/provider/xai.js +105 -105
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +241 -241
- package/dist/plugin/sdk.js +89 -89
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +151 -151
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +428 -429
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +4 -4
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +107 -107
- package/dist/plugin/warming.js +131 -131
- package/dist/plugin/websearch/exa.js +8 -8
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +10 -10
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +9 -9
- package/dist/plugin/websearch/provider.js +1 -1
- package/dist/plugin/websearch/tavily.js +7 -7
- package/dist/plugin/websearch/tinyfish.js +9 -9
- package/dist/plugin.js +260 -261
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +103 -103
- package/dist/provider.js +109 -109
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +113 -113
- package/dist/reference/instructions.js +99 -99
- package/dist/reference.js +101 -101
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +254 -255
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +268 -269
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +135 -135
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +176 -176
- package/dist/session/context.js +206 -206
- package/dist/session/diff.js +101 -101
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +268 -280
- package/dist/session/execution/subagent-report.js +144 -145
- package/dist/session/execution.js +173 -174
- package/dist/session/generate.js +208 -208
- package/dist/session/history.js +140 -140
- package/dist/session/inbox.js +149 -149
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +88 -88
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +145 -145
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +172 -172
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +175 -176
- package/dist/session/projector.js +147 -148
- package/dist/session/prompt.js +152 -152
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +143 -143
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +261 -262
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +115 -115
- package/dist/session/runner/publish-llm-event.js +154 -154
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +167 -167
- package/dist/session/runner/to-llm-message.js +141 -141
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +193 -194
- package/dist/session/shell.js +149 -149
- package/dist/session/skill.js +151 -151
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +85 -85
- package/dist/session/store.js +144 -144
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +172 -173
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +210 -210
- package/dist/session/to-session-error.js +153 -153
- package/dist/session/transfer.js +253 -254
- package/dist/session/usage.js +1 -1
- package/dist/session.js +249 -250
- package/dist/shared-cache.js +5 -5
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +151 -151
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +155 -155
- package/dist/skill.js +156 -156
- package/dist/snapshot.js +104 -104
- package/dist/state.js +3 -3
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +187 -187
- package/dist/tool/plugin/artifact.js +242 -243
- package/dist/tool/plugin/edit.js +171 -171
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +175 -175
- package/dist/tool/plugin/grep.js +174 -174
- package/dist/tool/plugin/image-generate.js +255 -256
- package/dist/tool/plugin/mcp-events.js +166 -166
- package/dist/tool/plugin/mcp-resource.js +168 -168
- package/dist/tool/plugin/opencode.js +167 -167
- package/dist/tool/plugin/patch.js +164 -164
- package/dist/tool/plugin/question.js +148 -148
- package/dist/tool/plugin/read.js +176 -176
- package/dist/tool/plugin/schedule.js +260 -261
- package/dist/tool/plugin/shell.js +249 -250
- package/dist/tool/plugin/skill.js +155 -155
- package/dist/tool/plugin/subagent.js +251 -252
- package/dist/tool/plugin/todo.js +157 -157
- package/dist/tool/plugin/webfetch.js +155 -155
- package/dist/tool/plugin/websearch.js +157 -157
- package/dist/tool/plugin/write.js +172 -172
- package/dist/tool/read-filesystem.js +114 -114
- package/dist/tool/runtime.js +1 -1
- package/dist/tool/search.js +109 -109
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +164 -164
- package/dist/types/shell.d.ts +2 -2
- package/dist/types/tool/plugin/subagent.d.ts +0 -1
- package/dist/usage-limits.js +100 -100
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +106 -106
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +105 -105
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +99 -99
- package/dist/websearch.js +99 -99
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +92 -92
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +111 -111
- package/package.json +9 -9
- package/dist/chunks/model-retry-0qyw66gp.js +0 -273
- package/dist/chunks/model-retry-7enabm5z.js +0 -26
- package/dist/chunks/model-retry-d77dj7jw.js +0 -18
- package/dist/chunks/model-retry-jaq18jgp.js +0 -16
- package/dist/chunks/model-retry-tn2h78aa.js +0 -40
- package/dist/chunks/model-retry-wnyqvj32.js +0 -378
- package/dist/chunks/model-retry-zgxh77gy.js +0 -587
- package/dist/session/subagent-metadata.js +0 -18
- package/dist/types/session/subagent-metadata.d.ts +0 -22
- /package/dist/chunks/{model-retry-0qkdqm5v.js → location-service-map-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-retry-0zkw76rk.js → location-service-map-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-retry-17cy0kzp.js → location-service-map-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-retry-1cnp2v09.js → location-service-map-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-retry-1kah00gy.js → location-service-map-1kah00gy.js} +0 -0
- /package/dist/chunks/{model-retry-24dcb14g.js → location-service-map-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-retry-2710q6r3.js → location-service-map-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-retry-2c3vjs8z.js → location-service-map-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-retry-359p4xyc.js → location-service-map-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-retry-3v8g72cx.js → location-service-map-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-retry-43n2bw4t.js → location-service-map-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-retry-4knz6hnm.js → location-service-map-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-retry-4qk9sjk2.js → location-service-map-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{model-retry-53557ph1.js → location-service-map-53557ph1.js} +0 -0
- /package/dist/chunks/{model-retry-5w3e23ze.js → location-service-map-5w3e23ze.js} +0 -0
- /package/dist/chunks/{model-retry-6agm2x70.js → location-service-map-6agm2x70.js} +0 -0
- /package/dist/chunks/{model-retry-6prwharc.js → location-service-map-6prwharc.js} +0 -0
- /package/dist/chunks/{model-retry-6q2bdcd1.js → location-service-map-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-retry-7akdwqpd.js → location-service-map-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-retry-7m9af43g.js → location-service-map-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-retry-7rvsyqjv.js → location-service-map-7rvsyqjv.js} +0 -0
- /package/dist/chunks/{model-retry-822emrt2.js → location-service-map-822emrt2.js} +0 -0
- /package/dist/chunks/{model-retry-84wd9syh.js → location-service-map-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-retry-88xbtdfr.js → location-service-map-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-retry-8n3pysct.js → location-service-map-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-retry-8wj87zfr.js → location-service-map-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-retry-9a4afbnw.js → location-service-map-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-retry-9rqn6x4v.js → location-service-map-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-retry-aqzs7mqg.js → location-service-map-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-retry-atq7p7m5.js → location-service-map-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-retry-beh6qq61.js → location-service-map-beh6qq61.js} +0 -0
- /package/dist/chunks/{model-retry-bkyjaxrp.js → location-service-map-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-retry-bmr6ed5q.js → location-service-map-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-retry-cf4snx6d.js → location-service-map-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-retry-cqv5kn06.js → location-service-map-cqv5kn06.js} +0 -0
- /package/dist/chunks/{model-retry-cvy3z8tj.js → location-service-map-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-retry-d9fn303g.js → location-service-map-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-retry-d9jj8t3e.js → location-service-map-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-retry-df08tz66.js → location-service-map-df08tz66.js} +0 -0
- /package/dist/chunks/{model-retry-dy18nga0.js → location-service-map-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-retry-e5kj55wp.js → location-service-map-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-retry-ean2d8b5.js → location-service-map-ean2d8b5.js} +0 -0
- /package/dist/chunks/{model-retry-ec1grn59.js → location-service-map-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-retry-emrn6kk6.js → location-service-map-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-retry-f0mxakyp.js → location-service-map-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-retry-f6n9ztr4.js → location-service-map-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-retry-faypxj3z.js → location-service-map-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-retry-fd410y7t.js → location-service-map-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-retry-fkpq3x5p.js → location-service-map-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{model-retry-g86h250q.js → location-service-map-g86h250q.js} +0 -0
- /package/dist/chunks/{model-retry-gebd4c9n.js → location-service-map-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-retry-gftt206x.js → location-service-map-gftt206x.js} +0 -0
- /package/dist/chunks/{model-retry-hcxmzztb.js → location-service-map-hcxmzztb.js} +0 -0
- /package/dist/chunks/{model-retry-hk9envan.js → location-service-map-hk9envan.js} +0 -0
- /package/dist/chunks/{model-retry-j2ntwpah.js → location-service-map-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-retry-jjkms2e6.js → location-service-map-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-retry-jr7sbwjy.js → location-service-map-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-retry-jwfs4k6c.js → location-service-map-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-retry-jwr30sdr.js → location-service-map-jwr30sdr.js} +0 -0
- /package/dist/chunks/{model-retry-jzg6c2d5.js → location-service-map-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-retry-m18g726c.js → location-service-map-m18g726c.js} +0 -0
- /package/dist/chunks/{model-retry-mp448xyj.js → location-service-map-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-retry-msx8hqn2.js → location-service-map-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-retry-n05xt0ee.js → location-service-map-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-retry-n3j8tn72.js → location-service-map-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-retry-nh4v3znn.js → location-service-map-nh4v3znn.js} +0 -0
- /package/dist/chunks/{model-retry-njntx4h6.js → location-service-map-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-retry-p71gwv9c.js → location-service-map-p71gwv9c.js} +0 -0
- /package/dist/chunks/{model-retry-q3sfg36h.js → location-service-map-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-retry-q74kybfr.js → location-service-map-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-retry-qb87gjwd.js → location-service-map-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-retry-qfa1cgps.js → location-service-map-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-retry-qg3g05ea.js → location-service-map-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-retry-qrg20bc0.js → location-service-map-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-retry-rcb2kzg1.js → location-service-map-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-retry-sdp7kfr6.js → location-service-map-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-retry-ssg3fenm.js → location-service-map-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-retry-syrav9an.js → location-service-map-syrav9an.js} +0 -0
- /package/dist/chunks/{model-retry-t03h4f5z.js → location-service-map-t03h4f5z.js} +0 -0
- /package/dist/chunks/{model-retry-ty7weeps.js → location-service-map-ty7weeps.js} +0 -0
- /package/dist/chunks/{model-retry-v2dnd5dt.js → location-service-map-v2dnd5dt.js} +0 -0
- /package/dist/chunks/{model-retry-ve7vex1e.js → location-service-map-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-retry-vtarvj67.js → location-service-map-vtarvj67.js} +0 -0
- /package/dist/chunks/{model-retry-w803qqfp.js → location-service-map-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-retry-wc3fc9cn.js → location-service-map-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-retry-wer8tq1h.js → location-service-map-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-retry-wtztk69x.js → location-service-map-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-retry-x4th4bpe.js → location-service-map-x4th4bpe.js} +0 -0
- /package/dist/chunks/{model-retry-y44na4kk.js → location-service-map-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-retry-y8f7s663.js → location-service-map-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-retry-ygaqb7jw.js → location-service-map-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-retry-z5v4ffb3.js → location-service-map-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-retry-z9919s4g.js → location-service-map-z9919s4g.js} +0 -0
- /package/dist/chunks/{model-retry-zxpyjp51.js → location-service-map-zxpyjp51.js} +0 -0
- /package/dist/chunks/{model-retry-zz5vv3aq.js → location-service-map-zz5vv3aq.js} +0 -0
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID13,
|
|
3
3
|
Service67
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-service-map-keja7rv1.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service84
|
|
7
|
+
} from "./location-service-map-pzapmsw9.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service77
|
|
10
|
+
} from "./location-service-map-jqk89bd7.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service75,
|
|
13
13
|
args2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-service-map-nhnsmwa2.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service28
|
|
17
|
+
} from "./location-service-map-1j8v57a6.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service12
|
|
20
|
+
} from "./location-service-map-b9yhhwa8.js";
|
|
21
21
|
import {
|
|
22
22
|
parseOption2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-service-map-80pdk984.js";
|
|
24
24
|
import {
|
|
25
25
|
observeSources2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-service-map-tvtps2q9.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/config/plugin/command.ts
|
|
32
32
|
var exports_command2 = {};
|
|
33
33
|
__export(exports_command2, {
|
|
34
34
|
ConfigCommandPlugin: () => exports_command2,
|
|
35
|
-
Plugin: () =>
|
|
35
|
+
Plugin: () => Plugin52
|
|
36
36
|
});
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
38
38
|
import { ConfigCommand } from "@opencode/schema/config/command";
|
|
@@ -43,10 +43,10 @@ import { ChildProcess } from "effect/process";
|
|
|
43
43
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
44
44
|
var decodeCommand = SchemaParser.decodeUnknownResult(ConfigCommand.Info);
|
|
45
45
|
var formatIssue = SchemaIssue.makeFormatterDefault();
|
|
46
|
-
var
|
|
46
|
+
var Plugin52 = define({
|
|
47
47
|
id: "opencode.config.command",
|
|
48
48
|
effect: Effect.fn(function* (ctx) {
|
|
49
|
-
const config = yield*
|
|
49
|
+
const config = yield* Service77;
|
|
50
50
|
const fs = yield* FSUtil.Service;
|
|
51
51
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
52
52
|
if (entry.type === "document")
|
|
@@ -56,12 +56,12 @@ var Plugin45 = define({
|
|
|
56
56
|
const commands = yield* loadDirectory(fs, entry.path);
|
|
57
57
|
return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
|
|
58
58
|
});
|
|
59
|
-
const location = yield*
|
|
59
|
+
const location = yield* Service84;
|
|
60
60
|
const processes = yield* AppProcess.Service;
|
|
61
|
-
const shell = yield*
|
|
62
|
-
const sessions = yield*
|
|
61
|
+
const shell = yield* Service75;
|
|
62
|
+
const sessions = yield* Service28;
|
|
63
63
|
const agents = yield* Service67;
|
|
64
|
-
const subagents = yield*
|
|
64
|
+
const subagents = yield* Service12;
|
|
65
65
|
const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
|
|
66
66
|
return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
|
|
67
67
|
});
|
|
@@ -210,4 +210,4 @@ var argumentRegex = /\$(?:ARGUMENTS|([1-9]\d*))/g;
|
|
|
210
210
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
211
211
|
var shellRegex = /!`([^`]+)`/g;
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Plugin52, exports_command2 };
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create4
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-service-map-40y6dtc2.js";
|
|
4
4
|
import {
|
|
5
5
|
match3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-service-map-1aqsckx4.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service76,
|
|
9
|
+
node77
|
|
10
|
+
} from "./location-service-map-eam2557n.js";
|
|
11
11
|
import {
|
|
12
12
|
Service64,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
node65
|
|
14
|
+
} from "./location-service-map-f985r6kr.js";
|
|
15
15
|
import {
|
|
16
16
|
definition2,
|
|
17
17
|
execute3,
|
|
18
18
|
normalizeContent2,
|
|
19
19
|
normalizedName2,
|
|
20
20
|
effectiveName2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./location-service-map-7rvsyqjv.js";
|
|
22
22
|
import {
|
|
23
23
|
create3,
|
|
24
24
|
catalog2,
|
|
25
25
|
check2,
|
|
26
26
|
qualifiedName2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-service-map-kkg6023m.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service57,
|
|
30
|
+
node58
|
|
31
|
+
} from "./location-service-map-5m3xrn1j.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool.ts
|
|
37
37
|
var exports_tool = {};
|
|
38
38
|
__export(exports_tool, {
|
|
39
39
|
CallID: () => CallID2,
|
|
40
40
|
Content: () => Content3,
|
|
41
|
-
Error: () =>
|
|
41
|
+
Error: () => Error2,
|
|
42
42
|
FileContent: () => FileContent3,
|
|
43
43
|
RegistrationError: () => RegistrationError2,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service44,
|
|
45
45
|
TextContent: () => TextContent2,
|
|
46
46
|
Tool: () => exports_tool,
|
|
47
|
-
node: () =>
|
|
47
|
+
node: () => node47
|
|
48
48
|
});
|
|
49
|
-
import { CallID as CallID2, Content as Content3, Error as
|
|
49
|
+
import { CallID as CallID2, Content as Content3, Error as Error2, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
|
|
50
50
|
import { ToolDefinition } from "@opencode/ai/effect";
|
|
51
51
|
import { Tool } from "@opencode/schema/tool";
|
|
52
52
|
import { Context, Effect, Layer, Ref, Result, Schema, SchemaIssue } from "effect";
|
|
@@ -57,11 +57,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
57
57
|
}) {
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service44 extends Context.Service()("@opencode/Tool") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const hooks = yield*
|
|
64
|
-
const image = yield*
|
|
62
|
+
var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
63
|
+
const hooks = yield* Service76;
|
|
64
|
+
const image = yield* Service57;
|
|
65
65
|
const permission = yield* Service64;
|
|
66
66
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
67
67
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
@@ -190,7 +190,7 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
190
190
|
}), { discard: true });
|
|
191
191
|
}
|
|
192
192
|
});
|
|
193
|
-
return
|
|
193
|
+
return Service44.of({
|
|
194
194
|
transform: state.transform,
|
|
195
195
|
reload: state.reload,
|
|
196
196
|
list: () => Effect.sync(() => Array.from(state.get().tools.values())),
|
|
@@ -324,10 +324,10 @@ function namespaceError(name) {
|
|
|
324
324
|
return;
|
|
325
325
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
326
326
|
}
|
|
327
|
-
var
|
|
328
|
-
service:
|
|
327
|
+
var node47 = makeLocationNode({
|
|
328
|
+
service: Service44,
|
|
329
329
|
layer,
|
|
330
|
-
deps: [
|
|
330
|
+
deps: [node77, node58, node65]
|
|
331
331
|
});
|
|
332
332
|
|
|
333
|
-
export { RegistrationError2,
|
|
333
|
+
export { RegistrationError2, Service44, node47, exports_tool, CallID2, Content3, Error2, FileContent3, TextContent2 };
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NonNegativeInt2,
|
|
3
|
+
PositiveInt2,
|
|
4
|
+
RelativePath2
|
|
5
|
+
} from "./location-service-map-z5v4ffb3.js";
|
|
6
|
+
import {
|
|
7
|
+
Service79,
|
|
8
|
+
node80
|
|
9
|
+
} from "./location-service-map-26qqgt6g.js";
|
|
10
|
+
import {
|
|
11
|
+
Content4
|
|
12
|
+
} from "./location-service-map-ext3f0g2.js";
|
|
13
|
+
import {
|
|
14
|
+
detect2
|
|
15
|
+
} from "./location-service-map-4pyp9zr9.js";
|
|
16
|
+
import {
|
|
17
|
+
__export
|
|
18
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
19
|
+
|
|
20
|
+
// src/tool/read-filesystem.ts
|
|
21
|
+
var exports_read_filesystem = {};
|
|
22
|
+
__export(exports_read_filesystem, {
|
|
23
|
+
BinaryFileError: () => BinaryFileError2,
|
|
24
|
+
DirectoryOffsetError: () => DirectoryOffsetError2,
|
|
25
|
+
FileContent: () => FileContent2,
|
|
26
|
+
ListEntry: () => ListEntry3,
|
|
27
|
+
ListPage: () => ListPage2,
|
|
28
|
+
MAX_MEDIA_INGEST_BYTES: () => MAX_MEDIA_INGEST_BYTES2,
|
|
29
|
+
MAX_READ_BYTES: () => MAX_READ_BYTES2,
|
|
30
|
+
MAX_READ_LINES: () => MAX_READ_LINES2,
|
|
31
|
+
MEDIA_MIMES: () => MEDIA_MIMES2,
|
|
32
|
+
MediaIngestLimitError: () => MediaIngestLimitError2,
|
|
33
|
+
PageInput: () => PageInput2,
|
|
34
|
+
PathKindError: () => PathKindError2,
|
|
35
|
+
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
+
Service: () => Service38,
|
|
37
|
+
TextPage: () => TextPage2,
|
|
38
|
+
node: () => node41,
|
|
39
|
+
read: () => read2
|
|
40
|
+
});
|
|
41
|
+
import path from "path";
|
|
42
|
+
import { pathToFileURL } from "url";
|
|
43
|
+
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
44
|
+
import { Context, Effect, Layer, Schema } from "effect";
|
|
45
|
+
import { lookup } from "mime-types";
|
|
46
|
+
var MAX_READ_LINES2 = 2000;
|
|
47
|
+
var MAX_READ_BYTES2 = 50 * 1024;
|
|
48
|
+
var MAX_MEDIA_INGEST_BYTES2 = 20 * 1024 * 1024;
|
|
49
|
+
var FIRST_CHUNK = 256 * 1024;
|
|
50
|
+
var TAIL_LINES = 100;
|
|
51
|
+
var MAX_LINE_LENGTH = 2000;
|
|
52
|
+
var LINE_BYTES = 4 * (MAX_LINE_LENGTH + 1);
|
|
53
|
+
var MAX_LINE_SUFFIX = `... (line truncated to ${MAX_LINE_LENGTH} chars)`;
|
|
54
|
+
var MEDIA_MIMES2 = new Set(["image/png", "image/jpeg", "image/gif", "image/webp", "application/pdf"]);
|
|
55
|
+
|
|
56
|
+
class BinaryFileError2 extends Schema.TaggedError()("ReadTool.BinaryFileError", {
|
|
57
|
+
resource: Schema.String
|
|
58
|
+
}) {
|
|
59
|
+
get message() {
|
|
60
|
+
return `Cannot read binary file: ${this.resource}`;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
class MediaIngestLimitError2 extends Schema.TaggedError()("ReadTool.MediaIngestLimitError", {
|
|
65
|
+
resource: Schema.String,
|
|
66
|
+
maximumBytes: Schema.Number
|
|
67
|
+
}) {
|
|
68
|
+
get message() {
|
|
69
|
+
return `Media exceeds ${this.maximumBytes} byte ingestion limit: ${this.resource}`;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
class PathKindError2 extends Schema.TaggedError()("ReadTool.PathKindError", {
|
|
74
|
+
resource: Schema.String,
|
|
75
|
+
expected: Schema.Literals(["a file", "a file or directory"])
|
|
76
|
+
}) {
|
|
77
|
+
get message() {
|
|
78
|
+
return `Path is not ${this.expected}: ${this.resource}`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
class DirectoryOffsetError2 extends Schema.TaggedError()("ReadTool.DirectoryOffsetError", {
|
|
83
|
+
resource: Schema.String
|
|
84
|
+
}) {
|
|
85
|
+
get message() {
|
|
86
|
+
return `A negative offset only works for files, and ${this.resource} is a directory`;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
var PageInput2 = Schema.Struct({
|
|
90
|
+
offset: Schema.optionalKey(Schema.Int),
|
|
91
|
+
limit: Schema.optionalKey(NonNegativeInt2)
|
|
92
|
+
});
|
|
93
|
+
var FileContent2 = Schema.Struct({
|
|
94
|
+
type: Schema.Literal("file"),
|
|
95
|
+
...Content4.fields
|
|
96
|
+
}).annotate({ identifier: "ReadTool.FileContent" });
|
|
97
|
+
|
|
98
|
+
class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
99
|
+
type: Schema.Literal("text-page"),
|
|
100
|
+
content: Schema.String,
|
|
101
|
+
mime: Schema.String,
|
|
102
|
+
offset: PositiveInt2,
|
|
103
|
+
truncated: Schema.Boolean,
|
|
104
|
+
next: Schema.optionalKey(PositiveInt2)
|
|
105
|
+
}) {
|
|
106
|
+
}
|
|
107
|
+
var ListEntry3 = Schema.Struct({
|
|
108
|
+
path: RelativePath2,
|
|
109
|
+
type: Schema.Literals(["file", "directory", "symlink"])
|
|
110
|
+
}).annotate({ identifier: "ReadTool.ListEntry" });
|
|
111
|
+
|
|
112
|
+
class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
113
|
+
type: Schema.Literal("list-page"),
|
|
114
|
+
entries: Schema.Array(ListEntry3),
|
|
115
|
+
truncated: Schema.Boolean,
|
|
116
|
+
next: Schema.optionalKey(PositiveInt2)
|
|
117
|
+
}) {
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class Service38 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
121
|
+
}
|
|
122
|
+
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
123
|
+
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
124
|
+
const virtual = resource.startsWith("skill://");
|
|
125
|
+
const first = yield* files.read(input, { offset: 0, length: FIRST_CHUNK }).pipe(Effect.catchTag("Environment.WrongKind", (error) => Effect.gen(function* () {
|
|
126
|
+
if (error.actual !== "directory")
|
|
127
|
+
return yield* new PathKindError2({ resource, expected: "a file or directory" });
|
|
128
|
+
if (page.offset !== undefined && page.offset < 0)
|
|
129
|
+
return yield* new DirectoryOffsetError2({ resource });
|
|
130
|
+
return yield* files.list(input).pipe(Effect.map((entries) => list(entries, page, virtual ? "/" : path.sep)), Effect.catchTag("Environment.WrongKind", () => Effect.fail(new PathKindError2({ resource, expected: "a file or directory" }))));
|
|
131
|
+
})));
|
|
132
|
+
if (first instanceof ListPage2)
|
|
133
|
+
return first;
|
|
134
|
+
const media = detect2(first.bytes);
|
|
135
|
+
if (MEDIA_MIMES2.has(media)) {
|
|
136
|
+
if (first.info.size > MAX_MEDIA_INGEST_BYTES2)
|
|
137
|
+
return yield* new MediaIngestLimitError2({ resource, maximumBytes: MAX_MEDIA_INGEST_BYTES2 });
|
|
138
|
+
const whole = yield* readFile(files, input, resource);
|
|
139
|
+
return {
|
|
140
|
+
type: "file",
|
|
141
|
+
uri: virtual ? resource : pathToFileURL(input).href,
|
|
142
|
+
name: virtual ? path.posix.basename(input) : path.basename(input),
|
|
143
|
+
content: Buffer.from(whole.bytes).toString("base64"),
|
|
144
|
+
encoding: "base64",
|
|
145
|
+
mime: media
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
const paged = first.info.size > MAX_READ_BYTES2 || page.offset !== undefined || page.limit !== undefined;
|
|
149
|
+
if (!paged) {
|
|
150
|
+
if (first.bytes.includes(0))
|
|
151
|
+
return yield* new BinaryFileError2({ resource });
|
|
152
|
+
return {
|
|
153
|
+
type: "file",
|
|
154
|
+
uri: virtual ? resource : pathToFileURL(input).href,
|
|
155
|
+
name: virtual ? path.posix.basename(input) : path.basename(input),
|
|
156
|
+
content: new TextDecoder().decode(first.bytes).split(`
|
|
157
|
+
`).map(clampLine).join(`
|
|
158
|
+
`),
|
|
159
|
+
encoding: "utf8",
|
|
160
|
+
mime: mimeType(input)
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
return yield* textPage(files, input, resource, first, page);
|
|
164
|
+
});
|
|
165
|
+
var readFile = (files, input, resource, range) => files.read(input, range).pipe(Effect.catchTag("Environment.WrongKind", () => Effect.fail(new PathKindError2({ resource, expected: "a file" }))));
|
|
166
|
+
var textPage = Effect.fnUntraced(function* (files, input, resource, first, page) {
|
|
167
|
+
const requested = page.offset || 1;
|
|
168
|
+
const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
|
|
169
|
+
const checkpoints = [];
|
|
170
|
+
const entries = [];
|
|
171
|
+
let size = 0;
|
|
172
|
+
let from = requested;
|
|
173
|
+
let tail = false;
|
|
174
|
+
let consumed = 0;
|
|
175
|
+
let next;
|
|
176
|
+
let firstNul = Infinity;
|
|
177
|
+
const decoder = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
178
|
+
const range = (offset, length) => readFile(files, input, resource, { offset, length });
|
|
179
|
+
const reread = Effect.fnUntraced(function* (offset, length) {
|
|
180
|
+
const { bytes } = yield* range(offset, length);
|
|
181
|
+
if (bytes.length === length)
|
|
182
|
+
return bytes;
|
|
183
|
+
const result = new Uint8Array(length);
|
|
184
|
+
result.set(bytes);
|
|
185
|
+
let filled = bytes.length;
|
|
186
|
+
while (filled < length) {
|
|
187
|
+
const more = yield* range(offset + filled, length - filled);
|
|
188
|
+
if (more.bytes.length === 0)
|
|
189
|
+
break;
|
|
190
|
+
result.set(more.bytes, filled);
|
|
191
|
+
filled += more.bytes.length;
|
|
192
|
+
}
|
|
193
|
+
return result.subarray(0, filled);
|
|
194
|
+
});
|
|
195
|
+
const collect = Effect.fnUntraced(function* (point, chunk) {
|
|
196
|
+
let start = point.start;
|
|
197
|
+
let local = Math.max(0, start - point.byte);
|
|
198
|
+
for (let line = point.firstLine;line < from && local < chunk.length; local++) {
|
|
199
|
+
if (chunk[local] !== 10)
|
|
200
|
+
continue;
|
|
201
|
+
line++;
|
|
202
|
+
start = point.byte + local + 1;
|
|
203
|
+
}
|
|
204
|
+
for (let line = Math.max(point.firstLine, from);line <= point.lastLine; line++) {
|
|
205
|
+
if (!tail && (entries.length >= limit || size >= MAX_READ_BYTES2)) {
|
|
206
|
+
next = line;
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const lf = chunk.indexOf(10, local);
|
|
210
|
+
const end = point.byte + (lf < 0 ? chunk.length : lf);
|
|
211
|
+
const length = Math.min(LINE_BYTES, end - start);
|
|
212
|
+
const bytes = start >= point.byte ? chunk.subarray(start - point.byte, start - point.byte + length) : start + length <= first.bytes.length ? first.bytes.subarray(start, start + length) : yield* reread(start, length);
|
|
213
|
+
let text = decoder.decode(bytes);
|
|
214
|
+
if (text.startsWith("\uFEFF") && (start === 0 || !tail && line === from && first.bytes.length < first.info.size))
|
|
215
|
+
text = text.slice(1);
|
|
216
|
+
text = clampLine(text.endsWith("\r") ? text.slice(0, -1) : text);
|
|
217
|
+
const cost = Buffer.byteLength(text) + (entries.length > 0 ? 1 : 0);
|
|
218
|
+
if (!tail && size + cost > MAX_READ_BYTES2) {
|
|
219
|
+
next = line;
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
entries.push(text);
|
|
223
|
+
size += cost;
|
|
224
|
+
consumed = end + Number(lf >= 0);
|
|
225
|
+
local = lf + 1;
|
|
226
|
+
start = end + 1;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
let byte = 0;
|
|
230
|
+
let total = 0;
|
|
231
|
+
let start = 0;
|
|
232
|
+
let chunk = first.bytes;
|
|
233
|
+
let lastByte = 0;
|
|
234
|
+
while (chunk.length > 0) {
|
|
235
|
+
lastByte = byte;
|
|
236
|
+
if (firstNul === Infinity) {
|
|
237
|
+
const nul = chunk.indexOf(0);
|
|
238
|
+
if (nul >= 0)
|
|
239
|
+
firstNul = byte + nul;
|
|
240
|
+
}
|
|
241
|
+
let count = 0;
|
|
242
|
+
for (let i = 0;i < chunk.length; i++)
|
|
243
|
+
count += Number(chunk[i] === 10);
|
|
244
|
+
if (count > 0) {
|
|
245
|
+
const point = { byte, length: chunk.length, firstLine: total + 1, start, lastLine: total + count };
|
|
246
|
+
checkpoints.push(point);
|
|
247
|
+
total += count;
|
|
248
|
+
if (requested > 0 && total >= requested)
|
|
249
|
+
yield* collect(point, chunk);
|
|
250
|
+
start = byte + chunk.lastIndexOf(10) + 1;
|
|
251
|
+
}
|
|
252
|
+
byte += chunk.length;
|
|
253
|
+
if (next === undefined && (entries.length >= limit || size >= MAX_READ_BYTES2) && consumed < byte)
|
|
254
|
+
next = requested + entries.length;
|
|
255
|
+
if (next !== undefined || byte >= first.info.size)
|
|
256
|
+
break;
|
|
257
|
+
const more = yield* range(byte, FIRST_CHUNK);
|
|
258
|
+
if (more.bytes.length === 0)
|
|
259
|
+
break;
|
|
260
|
+
chunk = more.bytes;
|
|
261
|
+
}
|
|
262
|
+
if (next === undefined && start < byte) {
|
|
263
|
+
total++;
|
|
264
|
+
const point = { byte: lastByte, length: chunk.length, firstLine: total, start, lastLine: total };
|
|
265
|
+
checkpoints.push(point);
|
|
266
|
+
if (requested > 0 && total >= requested)
|
|
267
|
+
yield* collect(point, chunk);
|
|
268
|
+
}
|
|
269
|
+
if (requested < 0 || requested > total) {
|
|
270
|
+
tail = requested > total;
|
|
271
|
+
from = Math.max(1, total + 1 + (tail ? -Math.min(page.limit || TAIL_LINES, TAIL_LINES) : requested));
|
|
272
|
+
for (const point of checkpoints) {
|
|
273
|
+
if (point.lastLine < from)
|
|
274
|
+
continue;
|
|
275
|
+
const bytes = point.byte === 0 ? first.bytes : point.byte === lastByte ? chunk : yield* reread(point.byte, point.length);
|
|
276
|
+
yield* collect(point, bytes);
|
|
277
|
+
if (next !== undefined)
|
|
278
|
+
break;
|
|
279
|
+
}
|
|
280
|
+
if (tail) {
|
|
281
|
+
while (size > MAX_READ_BYTES2) {
|
|
282
|
+
size -= Buffer.byteLength(entries.shift() ?? "") + 1;
|
|
283
|
+
from++;
|
|
284
|
+
}
|
|
285
|
+
consumed = byte;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
if (firstNul < consumed)
|
|
289
|
+
return yield* new BinaryFileError2({ resource });
|
|
290
|
+
return new TextPage2({
|
|
291
|
+
type: "text-page",
|
|
292
|
+
content: entries.join(`
|
|
293
|
+
`),
|
|
294
|
+
mime: mimeType(input),
|
|
295
|
+
offset: from,
|
|
296
|
+
truncated: next !== undefined,
|
|
297
|
+
...next === undefined ? {} : { next }
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
var list = (items, page, sep = path.sep) => {
|
|
301
|
+
const offset = page.offset || 1;
|
|
302
|
+
const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
|
|
303
|
+
const visible = items.flatMap((item) => item.type === "other" ? [] : [
|
|
304
|
+
ListEntry3.make({
|
|
305
|
+
path: RelativePath2.make(item.name + (item.type === "directory" ? sep : "")),
|
|
306
|
+
type: item.type
|
|
307
|
+
})
|
|
308
|
+
]).sort((a, b) => a.type === "directory" ? b.type === "directory" ? a.path.localeCompare(b.path) : -1 : b.type === "directory" ? 1 : a.path.localeCompare(b.path));
|
|
309
|
+
const selected = visible.slice(offset - 1, offset - 1 + limit);
|
|
310
|
+
const truncated = offset - 1 + selected.length < visible.length;
|
|
311
|
+
return new ListPage2({
|
|
312
|
+
type: "list-page",
|
|
313
|
+
entries: selected,
|
|
314
|
+
truncated,
|
|
315
|
+
...truncated ? { next: offset + selected.length } : {}
|
|
316
|
+
});
|
|
317
|
+
};
|
|
318
|
+
var clampLine = (line) => {
|
|
319
|
+
if (line.length <= MAX_LINE_LENGTH)
|
|
320
|
+
return line;
|
|
321
|
+
const code = line.charCodeAt(MAX_LINE_LENGTH - 1);
|
|
322
|
+
const end = code >= 55296 && code <= 56319 ? MAX_LINE_LENGTH - 1 : MAX_LINE_LENGTH;
|
|
323
|
+
return line.slice(0, end) + MAX_LINE_SUFFIX;
|
|
324
|
+
};
|
|
325
|
+
var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
326
|
+
const environment = yield* Service79;
|
|
327
|
+
return Service38.of({
|
|
328
|
+
list: environment.files.list,
|
|
329
|
+
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
330
|
+
});
|
|
331
|
+
}));
|
|
332
|
+
var node41 = makeLocationNode({ service: Service38, layer, deps: [node80] });
|
|
333
|
+
|
|
334
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, PathKindError2, DirectoryOffsetError2, PageInput2, FileContent2, TextPage2, ListEntry3, ListPage2, Service38, read2, node41, exports_read_filesystem };
|
|
@@ -2,32 +2,32 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service93,
|
|
4
4
|
node95
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-service-map-nxw1zf8h.js";
|
|
6
6
|
import {
|
|
7
7
|
Key3,
|
|
8
8
|
unavailable3,
|
|
9
9
|
removed2,
|
|
10
|
-
|
|
10
|
+
make32,
|
|
11
11
|
diffByKey2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-service-map-t62dywgn.js";
|
|
13
13
|
import {
|
|
14
14
|
create4
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-service-map-40y6dtc2.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-service-map-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/instruction-discovery.ts
|
|
21
21
|
var exports_instruction_discovery = {};
|
|
22
22
|
__export(exports_instruction_discovery, {
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event8,
|
|
24
24
|
File: () => File2,
|
|
25
25
|
InstructionDiscovery: () => exports_instruction_discovery,
|
|
26
26
|
Options: () => Options4,
|
|
27
|
-
Service: () =>
|
|
28
|
-
configured: () =>
|
|
29
|
-
layer: () =>
|
|
30
|
-
node: () =>
|
|
27
|
+
Service: () => Service43,
|
|
28
|
+
configured: () => configured4,
|
|
29
|
+
layer: () => layer20,
|
|
30
|
+
node: () => node46
|
|
31
31
|
});
|
|
32
32
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
33
33
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ class File2 extends Schema.Class("InstructionDiscovery.File")({
|
|
|
39
39
|
}
|
|
40
40
|
var Files = Schema.Array(File2);
|
|
41
41
|
var key = Key3.make("core/instructions");
|
|
42
|
-
var
|
|
42
|
+
var Event8 = {
|
|
43
43
|
Updated: ephemeral2({ type: "instruction-discovery.updated", schema: {} })
|
|
44
44
|
};
|
|
45
45
|
var Options4 = Schema.Struct({
|
|
@@ -47,9 +47,9 @@ var Options4 = Schema.Struct({
|
|
|
47
47
|
global: Schema.optional(Schema.Boolean)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service43 extends Context.Service()("@opencode/InstructionDiscovery") {
|
|
51
51
|
}
|
|
52
|
-
var
|
|
52
|
+
var layer20 = (options) => Layer.effect(Service43, Effect.gen(function* () {
|
|
53
53
|
const bus = yield* Service93;
|
|
54
54
|
const state = create4({
|
|
55
55
|
name: "instruction-discovery",
|
|
@@ -69,9 +69,9 @@ var layer21 = (options) => Layer.effect(Service63, Effect.gen(function* () {
|
|
|
69
69
|
editor.available = false;
|
|
70
70
|
}
|
|
71
71
|
}),
|
|
72
|
-
notify: () => bus.publish(
|
|
72
|
+
notify: () => bus.publish(Event8.Updated, {}).pipe(Effect.asVoid)
|
|
73
73
|
});
|
|
74
|
-
const source = (value) =>
|
|
74
|
+
const source = (value) => make32({
|
|
75
75
|
key,
|
|
76
76
|
codec: Schema.toCodecJson(Files),
|
|
77
77
|
read: Effect.succeed(value),
|
|
@@ -87,7 +87,7 @@ var layer21 = (options) => Layer.effect(Service63, Effect.gen(function* () {
|
|
|
87
87
|
return unavailable3;
|
|
88
88
|
return Array.from(current.files.values());
|
|
89
89
|
});
|
|
90
|
-
return
|
|
90
|
+
return Service43.of({
|
|
91
91
|
project: options?.project !== false,
|
|
92
92
|
global: options?.global !== false,
|
|
93
93
|
transform: state.transform,
|
|
@@ -101,14 +101,14 @@ var layer21 = (options) => Layer.effect(Service63, Effect.gen(function* () {
|
|
|
101
101
|
})
|
|
102
102
|
});
|
|
103
103
|
}));
|
|
104
|
-
function
|
|
104
|
+
function configured4(options) {
|
|
105
105
|
return makeLocationNode({
|
|
106
|
-
service:
|
|
107
|
-
layer:
|
|
106
|
+
service: Service43,
|
|
107
|
+
layer: layer20(options),
|
|
108
108
|
deps: [node95]
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
var
|
|
111
|
+
var node46 = configured4();
|
|
112
112
|
function render(files) {
|
|
113
113
|
return files.map((file) => `Instructions from: ${file.path}
|
|
114
114
|
${file.content}`).join(`
|
|
@@ -140,4 +140,4 @@ ${render([after])}`;
|
|
|
140
140
|
`);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
export { File2,
|
|
143
|
+
export { File2, Event8, Options4, Service43, layer20, configured4, node46, exports_instruction_discovery };
|