@opencode/core 2.2.1 → 2.2.2
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 +91 -88
- package/dist/aisdk-native.js +101 -98
- package/dist/aisdk.js +107 -104
- package/dist/app.js +9 -9
- package/dist/bus.js +83 -80
- package/dist/chunks/{credential-sh6m4nea.js → session-014m13nx.js} +18 -18
- package/dist/chunks/{credential-034tev2y.js → session-034tev2y.js} +2 -2
- package/dist/chunks/{credential-dkxwsr1g.js → session-04e5fydp.js} +1 -1
- package/dist/chunks/{credential-pybyazwk.js → session-0b3avwgb.js} +9 -9
- package/dist/chunks/{credential-p755an0a.js → session-0h3385jp.js} +3 -2
- package/dist/chunks/{credential-nycpe6mm.js → session-0jkhv5fd.js} +32 -32
- package/dist/chunks/{credential-8s8ht7fz.js → session-0k31egm0.js} +4 -4
- package/dist/chunks/{credential-v1jfr34d.js → session-0n8a0ffz.js} +6 -6
- package/dist/chunks/{credential-j71pyjxy.js → session-0rn5673z.js} +8 -8
- package/dist/chunks/session-0s6ncdyq.js +26 -0
- package/dist/chunks/{credential-93e1rsjq.js → session-0xedkqrk.js} +17 -17
- package/dist/chunks/{credential-y8rhj72b.js → session-0yyf9pa6.js} +12 -12
- package/dist/chunks/{credential-np3cybhk.js → session-107zh63q.js} +3 -3
- package/dist/chunks/{credential-tc4qgq7j.js → session-1347qshx.js} +11 -11
- package/dist/chunks/{credential-b2dk96k1.js → session-14bt511q.js} +64 -25
- package/dist/chunks/{credential-491m2zwm.js → session-1a21k8vn.js} +11 -11
- package/dist/chunks/{credential-xpryanwe.js → session-1c1q46gq.js} +43 -43
- package/dist/chunks/{credential-1ep2p91f.js → session-1ep2p91f.js} +2 -2
- package/dist/chunks/{credential-etcm32bf.js → session-1g08w5qk.js} +278 -69
- package/dist/chunks/{credential-n3gyxhch.js → session-1ga2wj5n.js} +28 -28
- package/dist/chunks/session-1kah00gy.js +13 -0
- package/dist/chunks/{credential-xt0z8zst.js → session-1kn6jdkn.js} +4 -4
- package/dist/chunks/{credential-44wjxh8g.js → session-1m6jkbyv.js} +11 -11
- package/dist/chunks/{credential-mpsc7bv4.js → session-1p2sk048.js} +11 -11
- package/dist/chunks/{credential-1x2knyw4.js → session-1x2knyw4.js} +1 -1
- package/dist/chunks/{credential-204s3925.js → session-204s3925.js} +1 -1
- package/dist/chunks/{credential-zfad7fba.js → session-214k5kca.js} +73 -73
- package/dist/chunks/session-25h84942.js +17 -0
- package/dist/chunks/{credential-e71x36jh.js → session-29e51n1b.js} +14 -14
- package/dist/chunks/{credential-4czk4k18.js → session-2bg8s655.js} +39 -39
- package/dist/chunks/{credential-0hgyyj2f.js → session-2ekes0ek.js} +13 -13
- package/dist/chunks/{credential-dcgwasx3.js → session-2fxvvp3e.js} +28 -28
- package/dist/chunks/{credential-9axz1114.js → session-2kg89srt.js} +4 -4
- package/dist/chunks/session-2tfsq0e5.js +222 -0
- package/dist/chunks/{credential-yv7s2sp4.js → session-2vpr0s80.js} +3 -3
- package/dist/chunks/{credential-hqxkkta1.js → session-2zp5a6yg.js} +3 -3
- package/dist/chunks/{credential-v55n1npn.js → session-306wmwj5.js} +30 -30
- package/dist/chunks/{credential-qyh39dz8.js → session-3d1dxbz0.js} +5 -5
- package/dist/chunks/{credential-v8h33378.js → session-3fm477c7.js} +3 -3
- package/dist/chunks/{credential-3hepkmqq.js → session-3hepkmqq.js} +1 -1
- package/dist/chunks/{credential-3nnrz6f6.js → session-3nnrz6f6.js} +1 -1
- package/dist/chunks/{credential-nm4377q9.js → session-3ntfh06s.js} +8 -8
- package/dist/chunks/{credential-e14rv8n7.js → session-3z1690bs.js} +45 -45
- package/dist/chunks/{credential-40za9wsf.js → session-40za9wsf.js} +2 -2
- package/dist/chunks/{credential-6qh3pn8d.js → session-42qtrm15.js} +25 -25
- package/dist/chunks/{credential-gx1r7nq1.js → session-4bev3xhy.js} +12 -12
- package/dist/chunks/{credential-v3n3vpwq.js → session-4cyw8nx1.js} +28 -28
- package/dist/chunks/{credential-3sf9fkhp.js → session-4p4bzch3.js} +3 -3
- package/dist/chunks/{credential-4pyp9zr9.js → session-4pyp9zr9.js} +1 -1
- package/dist/chunks/{credential-4v008n1t.js → session-4v008n1t.js} +1 -1
- package/dist/chunks/{credential-p1njj0by.js → session-4w3brme9.js} +9 -9
- package/dist/chunks/{credential-gfk2zkvt.js → session-4x23c0v6.js} +22 -22
- package/dist/chunks/{credential-mpewzr3m.js → session-511h5e8a.js} +42 -42
- package/dist/chunks/{credential-qxpk38rz.js → session-5ac4cxmk.js} +10 -10
- package/dist/chunks/{credential-h0gszfyz.js → session-5aytyrt3.js} +11 -11
- package/dist/chunks/{credential-5m9w47nd.js → session-5m9w47nd.js} +1 -1
- package/dist/chunks/{credential-sar30ebp.js → session-5q32avkb.js} +21 -21
- package/dist/chunks/{credential-tchg2t0x.js → session-5sh8dy76.js} +24 -24
- package/dist/chunks/{credential-nr0dnw6m.js → session-5svmm7fm.js} +16 -5
- package/dist/chunks/{credential-2d25yes2.js → session-5v99ekdb.js} +19 -19
- package/dist/chunks/{credential-wp68tbf9.js → session-5w1z1d8q.js} +50 -50
- package/dist/chunks/{credential-zdn46m04.js → session-6cahmqzr.js} +7 -7
- package/dist/chunks/{credential-6esdw8yj.js → session-6esdw8yj.js} +1 -1
- package/dist/chunks/{credential-qvbj290y.js → session-6hy9r9dj.js} +8 -8
- package/dist/chunks/{credential-bsefsz8j.js → session-6hybw9g3.js} +5 -5
- package/dist/chunks/{credential-nmw1n2a0.js → session-6k3pn0ym.js} +21 -21
- package/dist/chunks/{credential-xj3m7ras.js → session-6kff7ze5.js} +19 -19
- package/dist/chunks/{credential-pqqhbn30.js → session-6kj7g8xp.js} +27 -27
- package/dist/chunks/{credential-xkrp785j.js → session-6kxp06hb.js} +7 -7
- package/dist/chunks/{credential-p1pcd2wf.js → session-6zwd6715.js} +13 -13
- package/dist/chunks/{credential-kyzgttvd.js → session-74sxx59s.js} +9 -9
- package/dist/chunks/{credential-76cb1hcw.js → session-76cb1hcw.js} +1 -1
- package/dist/chunks/{credential-7bmhse3q.js → session-7bmhse3q.js} +1 -1
- package/dist/chunks/{credential-agqd6nxz.js → session-7sdtxe0n.js} +4 -4
- package/dist/chunks/{credential-1jakw16s.js → session-7stb81gk.js} +2 -1
- package/dist/chunks/{credential-mg801ykt.js → session-7svxnz6h.js} +15 -15
- package/dist/chunks/{credential-qbfny989.js → session-7tt92bnf.js} +23 -23
- package/dist/chunks/{credential-7w2ypzdf.js → session-7w2ypzdf.js} +1 -1
- package/dist/chunks/{credential-fneb0zf4.js → session-83bdf6kd.js} +50 -50
- package/dist/chunks/{credential-n3tfvvbp.js → session-83y1ztr9.js} +2 -2
- package/dist/chunks/{credential-v4mmdv09.js → session-84041qcw.js} +26 -26
- package/dist/chunks/{credential-9f8nz412.js → session-8gej5d5g.js} +32 -32
- package/dist/chunks/{credential-8jztxfpf.js → session-8jztxfpf.js} +1 -1
- package/dist/chunks/{credential-303mq5q0.js → session-8p2jpvs0.js} +39 -27
- package/dist/chunks/{credential-14f8gty7.js → session-8wqqaqzt.js} +4 -4
- package/dist/chunks/{credential-8wtp7s3z.js → session-8wtp7s3z.js} +1 -1
- package/dist/chunks/{credential-90zstvax.js → session-90zstvax.js} +1 -1
- package/dist/chunks/{credential-ghrzdqqx.js → session-994b2pxg.js} +5 -5
- package/dist/chunks/{credential-6te9kxba.js → session-99awmhkb.js} +12 -12
- package/dist/chunks/{credential-9z9tayqc.js → session-9f3sjfep.js} +9 -9
- package/dist/chunks/{credential-q8djhvnf.js → session-9y9v7zvr.js} +38 -38
- package/dist/chunks/{credential-9d99svmd.js → session-a1vq38jw.js} +5 -5
- package/dist/chunks/{credential-cth8y227.js → session-a3r0se63.js} +8 -8
- package/dist/chunks/{credential-tqnhxgm9.js → session-a4zme8rz.js} +29 -29
- package/dist/chunks/{credential-jyeaxm3w.js → session-afm1mqfd.js} +22 -22
- package/dist/chunks/{credential-dkj2h5cm.js → session-ajs99hkw.js} +12 -12
- package/dist/chunks/{credential-1hayz8ad.js → session-apc99ahs.js} +21 -21
- package/dist/chunks/{credential-7dyk5r5p.js → session-aq8fvkrh.js} +17 -17
- package/dist/chunks/{credential-3kdbrncp.js → session-avgzkss2.js} +5 -5
- package/dist/chunks/{credential-ayjs7tqn.js → session-ayjs7tqn.js} +2 -2
- package/dist/chunks/{credential-65m06x48.js → session-b3vf0bc4.js} +9 -9
- package/dist/chunks/{credential-b6x8f3en.js → session-b5z3fqjc.js} +16 -16
- package/dist/chunks/{credential-b6vsg801.js → session-b6vsg801.js} +2 -2
- package/dist/chunks/{credential-wa091f1c.js → session-ba56jx13.js} +44 -44
- package/dist/chunks/{credential-539dw32x.js → session-btnkw9ag.js} +4 -4
- package/dist/chunks/{credential-4hn0zw0c.js → session-c0j43jcq.js} +17 -17
- package/dist/chunks/{credential-br0kkpnn.js → session-c6x7d2ts.js} +7 -7
- package/dist/chunks/{credential-hw81h15x.js → session-cbvv2732.js} +19 -19
- package/dist/chunks/{credential-a81capfc.js → session-cf4j1xxh.js} +11 -11
- package/dist/chunks/{credential-0gmzdafk.js → session-cp0d67wz.js} +37 -37
- package/dist/chunks/{credential-zxfqvegw.js → session-csjqfz54.js} +7 -7
- package/dist/chunks/{credential-cwrgdav8.js → session-cwrgdav8.js} +2 -2
- package/dist/chunks/{credential-0hy252xp.js → session-cxzp2bsp.js} +21 -21
- package/dist/chunks/{credential-a7vdyqvq.js → session-d0zcdp69.js} +13 -13
- package/dist/chunks/{credential-ssfehs1z.js → session-d2887f8n.js} +4 -4
- package/dist/chunks/{credential-d4v9tmah.js → session-d4v9tmah.js} +2 -2
- package/dist/chunks/{credential-d77dj7jw.js → session-d77dj7jw.js} +1 -1
- package/dist/chunks/{credential-wmzrz68n.js → session-d7htzk6m.js} +4 -4
- package/dist/chunks/{credential-gx98ktag.js → session-ddp1c6wr.js} +18 -18
- package/dist/chunks/{credential-12dezc3d.js → session-dh8t6pa0.js} +23 -23
- package/dist/chunks/{credential-82nhjx58.js → session-dp6am7n6.js} +2 -2
- package/dist/chunks/{credential-dt77769w.js → session-dt77769w.js} +1 -1
- package/dist/chunks/{credential-q91aphyp.js → session-dwpz7zn0.js} +3 -3
- package/dist/chunks/{credential-zhyc4r0c.js → session-e2e8g6me.js} +11 -11
- package/dist/chunks/{credential-sv6qbdb8.js → session-e3me9f8n.js} +38 -38
- package/dist/chunks/{credential-e834z07m.js → session-e834z07m.js} +1 -1
- package/dist/chunks/{credential-dajrwvna.js → session-ean2d8b5.js} +1 -1
- package/dist/chunks/{credential-yap2aqf7.js → session-epet3xcy.js} +40 -40
- package/dist/chunks/{credential-dk3hpat9.js → session-eq0bj8vr.js} +10 -10
- package/dist/chunks/{credential-bwva959e.js → session-et8sht6e.js} +35 -35
- package/dist/chunks/{credential-k8qb7q2x.js → session-evmcva0v.js} +11 -11
- package/dist/chunks/{credential-ayq7z3yq.js → session-ewzp24hx.js} +16 -16
- package/dist/chunks/{credential-zr9ea7v2.js → session-f1bbj6f0.js} +18 -18
- package/dist/chunks/{credential-3tcpaccq.js → session-f3t0m2cs.js} +5 -5
- package/dist/chunks/{credential-m8683jv8.js → session-f4177rbw.js} +12 -12
- package/dist/chunks/{credential-5e4fvpp9.js → session-f52hekk8.js} +6 -6
- package/dist/chunks/{credential-fffv3p7h.js → session-fffv3p7h.js} +1 -1
- package/dist/chunks/{credential-fqx72tyj.js → session-fg8bmn5r.js} +21 -21
- package/dist/chunks/{credential-fg9p65nk.js → session-fg9p65nk.js} +2 -2
- package/dist/chunks/{credential-5zpj5z5z.js → session-fydb03qw.js} +10 -10
- package/dist/chunks/{credential-fznmdakp.js → session-fznmdakp.js} +1 -1
- package/dist/chunks/{credential-r96ere88.js → session-g1e2r5aa.js} +4 -4
- package/dist/chunks/{credential-v1fpgjhe.js → session-g3p0pw3f.js} +22 -22
- package/dist/chunks/{credential-0473z1ea.js → session-g5y8y9ka.js} +4 -4
- package/dist/chunks/{credential-1mdvq69k.js → session-gc07wgt0.js} +42 -25
- package/dist/chunks/{credential-pbbktnbz.js → session-gd8sx287.js} +4 -4
- package/dist/chunks/{credential-ndnqagje.js → session-gk8m8gwv.js} +24 -24
- package/dist/chunks/{credential-6vyrcjf5.js → session-gvfwbdg5.js} +18 -18
- package/dist/chunks/{credential-apyyhtqv.js → session-gvj3fga6.js} +31 -31
- package/dist/chunks/{credential-fpg34aj9.js → session-gyka3hze.js} +16 -16
- package/dist/chunks/{credential-1p97rsrw.js → session-h45rwca9.js} +88 -86
- package/dist/chunks/{credential-vqew4rxv.js → session-h57hnx26.js} +8 -8
- package/dist/chunks/{credential-g9r4jbb8.js → session-h7rsa5h4.js} +22 -22
- package/dist/chunks/{credential-bgtvwfds.js → session-hc4wny2n.js} +11 -11
- package/dist/chunks/{credential-mxqz9txa.js → session-hfmn2zba.js} +10 -10
- package/dist/chunks/{credential-r0yr0wbs.js → session-hh7kjqtw.js} +2 -1
- package/dist/chunks/{credential-pnr9fk74.js → session-hht3wrh4.js} +12 -12
- package/dist/chunks/{credential-s3r7jzb8.js → session-hj48n5g3.js} +11 -11
- package/dist/chunks/{credential-c0xjp2a3.js → session-hjnjc3ts.js} +8 -8
- package/dist/chunks/{credential-sm0vs1nj.js → session-hjpa6ehn.js} +22 -22
- package/dist/chunks/{credential-mvd85fn1.js → session-hjvvwd9m.js} +68 -56
- package/dist/chunks/{credential-g4hd4tqj.js → session-hm2g1pam.js} +336 -336
- package/dist/chunks/{credential-hpg1pkwy.js → session-hpg1pkwy.js} +1 -1
- package/dist/chunks/{credential-jzyke2ba.js → session-hqqbfxm4.js} +11 -11
- package/dist/chunks/{credential-8411r79r.js → session-hvktc1vq.js} +9 -9
- package/dist/chunks/{credential-kmzgegqq.js → session-hy8c1z76.js} +8 -8
- package/dist/chunks/{credential-010tfxz5.js → session-j3v6xgsf.js} +71 -51
- package/dist/chunks/{credential-kgxvfcjx.js → session-j6pgq882.js} +5 -5
- package/dist/chunks/{credential-fh43wqrx.js → session-jcjsjw6m.js} +20 -20
- package/dist/chunks/{credential-rzd5m2bc.js → session-jcnk5dbh.js} +17 -17
- package/dist/chunks/{credential-jfaecv01.js → session-jfaecv01.js} +1 -1
- package/dist/chunks/{credential-cjqs9axx.js → session-jhdr5shj.js} +11 -11
- package/dist/chunks/{credential-6xtf9y56.js → session-jrzhkn60.js} +35 -35
- package/dist/chunks/{credential-rm3qbz2f.js → session-js3ekr85.js} +13 -13
- package/dist/chunks/{credential-jtnps1zs.js → session-jtnps1zs.js} +2 -2
- package/dist/chunks/{credential-1p6bnm4j.js → session-jw3xc4w3.js} +30 -30
- package/dist/chunks/{credential-87bz1bn4.js → session-k7fyma4a.js} +14 -14
- package/dist/chunks/{credential-k814nvkf.js → session-k814nvkf.js} +1 -1
- package/dist/chunks/{credential-k9zkdd2y.js → session-k9zkdd2y.js} +1 -1
- package/dist/chunks/{credential-g5nf4rjy.js → session-kb90rkdq.js} +17 -17
- package/dist/chunks/{credential-313ht5vg.js → session-kmshagc5.js} +15 -15
- package/dist/chunks/{credential-2r6emfn3.js → session-kr5yk018.js} +4 -4
- package/dist/chunks/{credential-we7ts2z8.js → session-krdv82ye.js} +4 -4
- package/dist/chunks/{credential-kt3bjfbg.js → session-kt3bjfbg.js} +1 -1
- package/dist/chunks/{credential-zk58pg8w.js → session-kxbt2msb.js} +12 -12
- package/dist/chunks/{credential-fwp9mfc9.js → session-ky596kc3.js} +4 -4
- package/dist/chunks/{credential-m1714858.js → session-m1714858.js} +1 -1
- package/dist/chunks/{credential-acns5kb5.js → session-m6br695y.js} +15 -15
- package/dist/chunks/{credential-m9w0rfyh.js → session-m9w0rfyh.js} +1 -1
- package/dist/chunks/{credential-gg8p9cgs.js → session-mb7mbhnz.js} +17 -4
- package/dist/chunks/{credential-s7gmm2q3.js → session-mg356nz4.js} +3 -3
- package/dist/chunks/{credential-0yrc0qsb.js → session-mjzr7bcb.js} +19 -19
- package/dist/chunks/{credential-8ecyv6n4.js → session-mwqmxszj.js} +12 -12
- package/dist/chunks/{credential-ntx01z7a.js → session-mz14xksf.js} +27 -27
- package/dist/chunks/{credential-0yf36v3f.js → session-mzx60t1x.js} +63 -59
- package/dist/chunks/{credential-5sc8268w.js → session-n05pjf0z.js} +47 -47
- package/dist/chunks/{credential-xr858cgz.js → session-n5f56dyg.js} +31 -31
- package/dist/chunks/{credential-2ktpft3m.js → session-n5szpsx2.js} +17 -17
- package/dist/chunks/{credential-j9m7wknr.js → session-n9f4a7bt.js} +22 -22
- package/dist/chunks/{credential-nah043kf.js → session-nah043kf.js} +1 -1
- package/dist/chunks/{credential-8ppy984g.js → session-ng70ej78.js} +10 -10
- package/dist/chunks/{credential-mc5t9a7x.js → session-nma643tt.js} +11 -11
- package/dist/chunks/{credential-ge9gsrez.js → session-nqmf97tx.js} +31 -31
- package/dist/chunks/{credential-f7s46jf6.js → session-ntqvm2fg.js} +3 -3
- package/dist/chunks/{credential-1egdjfep.js → session-nz2ac0f6.js} +6 -6
- package/dist/chunks/{credential-p015t6z3.js → session-p015t6z3.js} +2 -2
- package/dist/chunks/{credential-x8c5qhdb.js → session-p58rp8mt.js} +27 -27
- package/dist/chunks/{credential-p7vhpwh8.js → session-p7vhpwh8.js} +1 -1
- package/dist/chunks/{credential-fpap23jy.js → session-p916h210.js} +28 -28
- package/dist/chunks/{credential-zgy820yb.js → session-pcve4y50.js} +53 -53
- package/dist/chunks/{credential-e1n7p4ag.js → session-pfhvw22f.js} +6 -6
- package/dist/chunks/{credential-2fbmf7r0.js → session-pj80she1.js} +3 -3
- package/dist/chunks/{credential-pknna89w.js → session-pknna89w.js} +1 -1
- package/dist/chunks/{credential-96zj6efe.js → session-prh1gakp.js} +76 -76
- package/dist/chunks/session-prveawz9.js +257 -0
- package/dist/chunks/{credential-xxw17ph9.js → session-py1kgbbs.js} +18 -18
- package/dist/chunks/{credential-va3vstze.js → session-qg5z9cfk.js} +33 -33
- package/dist/chunks/{credential-eth7w1ws.js → session-qn0q7ss9.js} +31 -31
- package/dist/chunks/{credential-qp7r0hxv.js → session-qp7r0hxv.js} +1 -1
- package/dist/chunks/{credential-qqvy8y24.js → session-qqvy8y24.js} +1 -1
- package/dist/chunks/{credential-k98prhpv.js → session-qtbtp5y4.js} +4 -4
- package/dist/chunks/{credential-fds3jynx.js → session-qvfyc67n.js} +14 -14
- package/dist/chunks/{credential-3t284k5r.js → session-r0543gnn.js} +39 -39
- package/dist/chunks/{credential-f3erva9m.js → session-r4pw3xq2.js} +5 -5
- package/dist/chunks/{credential-r542h3bh.js → session-r542h3bh.js} +1 -1
- package/dist/chunks/{credential-rb9dy4dg.js → session-rb9dy4dg.js} +1 -1
- package/dist/chunks/{credential-qmpcwza3.js → session-rbc1s8g1.js} +32 -16
- package/dist/chunks/{credential-4fes9nxq.js → session-rd86k9nx.js} +9 -9
- package/dist/chunks/{credential-jcqm84fr.js → session-rjnacbrz.js} +9 -9
- package/dist/chunks/{credential-kaa2rt48.js → session-rkc457kn.js} +9 -9
- package/dist/chunks/{credential-rt5dr6hb.js → session-rt5dr6hb.js} +1 -1
- package/dist/chunks/{credential-hn4sj8vd.js → session-rwvswa9y.js} +6 -6
- package/dist/chunks/{credential-sa3fpqfw.js → session-sa3fpqfw.js} +2 -2
- package/dist/chunks/{credential-t3wbeppe.js → session-sj8cf4xn.js} +18 -18
- package/dist/chunks/{credential-2agjkr66.js → session-skhfmn6d.js} +23 -23
- package/dist/chunks/{credential-sqjzf8x2.js → session-sqjzf8x2.js} +1 -1
- package/dist/chunks/{credential-myztnk54.js → session-stkk57rt.js} +21 -0
- package/dist/chunks/{credential-svcy3p9a.js → session-svcy3p9a.js} +1 -1
- package/dist/chunks/session-t03h4f5z.js +16 -0
- package/dist/chunks/{credential-tczq8hjw.js → session-tczq8hjw.js} +1 -1
- package/dist/chunks/{credential-pnvhe9nj.js → session-teh5t5jp.js} +11 -11
- package/dist/chunks/{credential-4f3e2fe5.js → session-tf0cgyr6.js} +48 -48
- package/dist/chunks/{credential-b5pzs38m.js → session-tg9kr0y0.js} +24 -24
- package/dist/chunks/{credential-mqqd3hk5.js → session-tj6nb54t.js} +6 -6
- package/dist/chunks/{credential-xwyk9x3x.js → session-tjand230.js} +27 -27
- package/dist/chunks/{credential-qgtmjkbw.js → session-tkfkfkf0.js} +23 -23
- package/dist/chunks/{credential-anaq8tyr.js → session-tkgn6n4e.js} +27 -27
- package/dist/chunks/{credential-gxz26haq.js → session-tp4q3xqc.js} +8 -8
- package/dist/chunks/{credential-j63f8txt.js → session-ts17rpp3.js} +29 -29
- package/dist/chunks/{credential-twssxy5n.js → session-twssxy5n.js} +2 -2
- package/dist/chunks/session-ty7weeps.js +28 -0
- package/dist/chunks/{credential-arc1qckg.js → session-v1mxzh7z.js} +34 -34
- package/dist/chunks/{credential-sdb9e0vb.js → session-v27eh5cj.js} +13 -13
- package/dist/chunks/{credential-v2r1d0zg.js → session-v2r1d0zg.js} +1 -1
- package/dist/chunks/{credential-rc1hggec.js → session-v35fmwg5.js} +28 -28
- package/dist/chunks/{credential-w1wt7qh1.js → session-v8vd993n.js} +8 -8
- package/dist/chunks/{credential-26x8chrq.js → session-vaq1yek0.js} +6 -6
- package/dist/chunks/{credential-qc3z06b5.js → session-vp9b3xr6.js} +53 -19
- package/dist/chunks/{credential-z54nca32.js → session-vre2328q.js} +27 -27
- package/dist/chunks/{credential-hpcxzwwk.js → session-vyevn7ez.js} +5 -5
- package/dist/chunks/{credential-7yt5s0f0.js → session-w1g6eztn.js} +36 -36
- package/dist/chunks/{credential-w3wsvvr9.js → session-w3wsvvr9.js} +1 -1
- package/dist/chunks/{credential-tt2179fk.js → session-w8cbkq7x.js} +9 -9
- package/dist/chunks/{credential-wakvkjy4.js → session-wakvkjy4.js} +1 -1
- package/dist/chunks/{credential-wd87259q.js → session-wd87259q.js} +1 -1
- package/dist/chunks/{credential-rgzggw2r.js → session-wegkxhrn.js} +6 -2
- package/dist/chunks/{credential-e23z2b6q.js → session-wgy4vw39.js} +12 -12
- package/dist/chunks/{credential-wnhgecwx.js → session-wnhgecwx.js} +1 -1
- package/dist/chunks/{credential-9r0x1bva.js → session-wrd39zd3.js} +9 -9
- package/dist/chunks/{credential-s9fv6dbg.js → session-wtem00hm.js} +5 -5
- package/dist/chunks/{credential-5macz2df.js → session-wvphax15.js} +33 -33
- package/dist/chunks/{credential-kcg78dnn.js → session-wwgpyqzb.js} +9 -9
- package/dist/chunks/{credential-d8q8hp8x.js → session-wzytqp0z.js} +23 -23
- package/dist/chunks/{credential-05gcnbx9.js → session-x15zq3xe.js} +7 -7
- package/dist/chunks/{credential-szazyy8v.js → session-x78h82an.js} +43 -43
- package/dist/chunks/{credential-gkw5tmj9.js → session-x7sfbxcq.js} +1 -1
- package/dist/chunks/{credential-t42546yy.js → session-x968pprt.js} +19 -19
- package/dist/chunks/{credential-xd9cc171.js → session-xd9cc171.js} +1 -1
- package/dist/chunks/{credential-cac0wmbb.js → session-xk2zn0cv.js} +4 -4
- package/dist/chunks/{credential-m37sd98t.js → session-xnh55p1t.js} +5 -5
- package/dist/chunks/{credential-7jad4yjq.js → session-xq6kn9sb.js} +25 -25
- package/dist/chunks/{credential-hby6rmzj.js → session-xvk346a2.js} +26 -26
- package/dist/chunks/{credential-j5gjnx76.js → session-y5qd0fdx.js} +19 -19
- package/dist/chunks/{credential-yara3q77.js → session-yara3q77.js} +2 -2
- package/dist/chunks/{credential-yb20nhc3.js → session-yb20nhc3.js} +1 -1
- package/dist/chunks/{credential-1x73k67a.js → session-ycbkkxa6.js} +6 -6
- package/dist/chunks/{credential-xy0fx19g.js → session-yg4xtd5c.js} +23 -23
- package/dist/chunks/{credential-xfg2wzq9.js → session-yk92hh7b.js} +25 -25
- package/dist/chunks/{credential-ymz7p2c9.js → session-ymz7p2c9.js} +3 -3
- package/dist/chunks/{credential-5jandae5.js → session-yne29hzv.js} +16 -16
- package/dist/chunks/{credential-f5ydn5fg.js → session-ynx6mseh.js} +11 -11
- package/dist/chunks/{credential-3j1m3tq4.js → session-yt5wjcy6.js} +5 -5
- package/dist/chunks/{credential-grghrhjz.js → session-yv82jfb9.js} +20 -20
- package/dist/chunks/{credential-prsrv2zx.js → session-yvdwn3rt.js} +15 -15
- package/dist/chunks/{credential-rchdkk7p.js → session-yxtp6v20.js} +2 -2
- package/dist/chunks/{credential-5k74q2xq.js → session-yy77v243.js} +189 -189
- package/dist/chunks/{credential-89bbjwma.js → session-z1gzwszr.js} +11 -11
- package/dist/chunks/{credential-z38nccrw.js → session-z38nccrw.js} +1 -1
- package/dist/chunks/{credential-svmg43vj.js → session-z9dbc4cd.js} +20 -20
- package/dist/chunks/{credential-g38vz1ag.js → session-zqzhvas5.js} +15 -15
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +95 -92
- package/dist/config/discovery.js +94 -91
- package/dist/config/integration.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +111 -108
- package/dist/config/plugin/agent.js +125 -122
- package/dist/config/plugin/command.js +223 -220
- package/dist/config/plugin/compaction.js +166 -163
- package/dist/config/plugin/compatibility.js +146 -143
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +126 -123
- package/dist/config/plugin/image.js +125 -122
- package/dist/config/plugin/instruction.js +125 -122
- package/dist/config/plugin/location-watcher.js +127 -124
- package/dist/config/plugin/mcp.js +132 -129
- package/dist/config/plugin/policy.js +127 -124
- package/dist/config/plugin/provider.js +126 -123
- package/dist/config/plugin/reference.js +127 -124
- package/dist/config/plugin/shell.js +127 -124
- package/dist/config/plugin/skill-file.js +142 -139
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +149 -146
- package/dist/config/plugin/snapshot.js +125 -122
- package/dist/config/plugin/source.js +128 -125
- package/dist/config/plugin/tool-output.js +126 -123
- package/dist/config/plugin/websearch.js +126 -123
- package/dist/config/plugin/worktree.js +127 -124
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -125
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +93 -90
- package/dist/database/database.js +76 -73
- 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 +6 -0
- package/dist/database/migration/20261029073502_session_time_busy.js +6 -0
- package/dist/database/migration/20261029165540_schedule_checks.js +6 -0
- package/dist/database/migration.gen.js +59 -56
- package/dist/database/migration.js +61 -58
- 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 +2 -1
- package/dist/database/v1-migration.bun.js +104 -101
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +390 -385
- 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 -102
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +105 -102
- 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 +84 -81
- package/dist/file-access.js +148 -145
- package/dist/file-mutation.js +106 -103
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +90 -87
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +238 -235
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +111 -108
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +112 -109
- package/dist/form.js +94 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -92
- package/dist/generate.js +115 -112
- package/dist/git.js +11 -11
- 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 +111 -108
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/notice.js +8 -0
- 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 +381 -376
- package/dist/instruction-discovery.js +94 -91
- package/dist/instructions/builtins.js +99 -96
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +99 -96
- package/dist/job.js +88 -85
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +83 -80
- package/dist/location-activity.js +170 -167
- package/dist/location-lifecycle.js +146 -143
- package/dist/location-service-map.js +98 -95
- package/dist/location-services.js +378 -373
- package/dist/location.js +101 -98
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -100
- package/dist/mcp/index.js +119 -116
- package/dist/mcp/instructions.js +170 -167
- package/dist/mcp/oauth.js +88 -85
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +102 -99
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +111 -108
- package/dist/model-resolver.js +111 -108
- package/dist/model-retry.js +1 -1
- package/dist/model.js +112 -109
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +120 -117
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +92 -89
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +153 -148
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +98 -93
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -82
- package/dist/plugin/agent.js +84 -81
- package/dist/plugin/command.js +112 -109
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +229 -226
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +357 -346
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +109 -106
- package/dist/plugin/module.js +125 -122
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +142 -139
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +103 -100
- package/dist/plugin/provider/azure.js +123 -120
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +125 -122
- package/dist/plugin/provider/cloudflare-ai-gateway.js +123 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +123 -120
- package/dist/plugin/provider/configured.js +121 -118
- package/dist/plugin/provider/credential-settings.js +84 -81
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +105 -102
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +107 -104
- package/dist/plugin/provider/gitlab.js +106 -103
- package/dist/plugin/provider/google-vertex.js +122 -119
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +88 -85
- package/dist/plugin/provider/lmstudio.js +132 -129
- package/dist/plugin/provider/local.js +131 -128
- package/dist/plugin/provider/modal.js +104 -101
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +134 -131
- package/dist/plugin/provider/openai-context-caps.js +102 -99
- package/dist/plugin/provider/openai.js +125 -122
- package/dist/plugin/provider/opencode.js +128 -125
- package/dist/plugin/provider/openrouter.js +103 -100
- package/dist/plugin/provider/poe.js +89 -86
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +103 -100
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +124 -121
- package/dist/plugin/provider/vllm.js +134 -131
- package/dist/plugin/provider/xai.js +103 -100
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +176 -173
- package/dist/plugin/sdk.js +80 -77
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +143 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +365 -360
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +98 -95
- package/dist/plugin/vcs/hg.js +98 -95
- package/dist/plugin/verbosity.js +105 -102
- package/dist/plugin/warming.js +123 -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 +2 -2
- 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 +236 -233
- 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 +102 -99
- package/dist/provider.js +111 -108
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +110 -107
- package/dist/reference/instructions.js +100 -97
- package/dist/reference.js +98 -95
- package/dist/repository-cache.js +92 -89
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -106
- package/dist/rpc.js +98 -95
- package/dist/schedule/check.js +248 -0
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +251 -228
- 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 +136 -123
- package/dist/session/command.js +84 -81
- package/dist/session/compaction.js +166 -163
- package/dist/session/context.js +188 -185
- package/dist/session/diff.js +100 -97
- 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 +242 -232
- package/dist/session/execution.js +156 -153
- package/dist/session/generate.js +192 -189
- package/dist/session/history.js +140 -129
- package/dist/session/inbox.js +144 -141
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +89 -86
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +136 -133
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +159 -156
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -153
- package/dist/session/projector.js +136 -133
- package/dist/session/prompt.js +144 -141
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +134 -131
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +243 -240
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +112 -109
- package/dist/session/runner/publish-llm-event.js +145 -142
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +158 -155
- package/dist/session/runner/to-llm-message.js +132 -129
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +176 -173
- package/dist/session/shell.js +139 -136
- package/dist/session/skill.js +143 -140
- package/dist/session/sql.js +7 -5
- package/dist/session/stats.js +116 -81
- package/dist/session/store.js +137 -134
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +223 -220
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +196 -193
- package/dist/session/to-session-error.js +144 -141
- package/dist/session/transfer.js +253 -227
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -220
- 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 +141 -138
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +147 -144
- package/dist/skill.js +148 -145
- package/dist/snapshot.js +101 -98
- 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 +169 -166
- package/dist/tool/plugin/edit.js +160 -157
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +164 -161
- package/dist/tool/plugin/grep.js +156 -153
- package/dist/tool/plugin/image-generate.js +233 -229
- package/dist/tool/plugin/mcp-resource.js +158 -155
- package/dist/tool/plugin/opencode.js +157 -154
- package/dist/tool/plugin/patch.js +162 -159
- package/dist/tool/plugin/question.js +142 -139
- package/dist/tool/plugin/read.js +165 -162
- package/dist/tool/plugin/schedule.js +239 -220
- package/dist/tool/plugin/shell.js +228 -225
- package/dist/tool/plugin/skill.js +153 -150
- package/dist/tool/plugin/subagent.js +228 -225
- package/dist/tool/plugin/todo.js +143 -140
- package/dist/tool/plugin/webfetch.js +149 -146
- package/dist/tool/plugin/websearch.js +151 -148
- package/dist/tool/plugin/write.js +162 -159
- package/dist/tool/read-filesystem.js +114 -111
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/config/plugin/command.d.ts +1 -1
- package/dist/types/database/migration/20261029002625_session_part.d.ts +3 -0
- package/dist/types/database/migration/20261029073502_session_time_busy.d.ts +3 -0
- package/dist/types/database/migration/20261029165540_schedule_checks.d.ts +3 -0
- package/dist/types/image/notice.d.ts +7 -0
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/location-activity.d.ts +1 -1
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/permission.d.ts +10 -0
- package/dist/types/persistent-pty/index.d.ts +7 -1
- package/dist/types/plugin/command.d.ts +1 -1
- package/dist/types/plugin/host.d.ts +2 -2
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/models-dev.d.ts +1 -1
- package/dist/types/schedule/check.d.ts +46 -0
- package/dist/types/schedule/sql.d.ts +75 -1
- package/dist/types/schedule.d.ts +4 -147
- package/dist/types/session/blob.d.ts +884 -17
- package/dist/types/session/compaction.d.ts +1 -1
- package/dist/types/session/execution/restart.d.ts +1 -1
- package/dist/types/session/execution.d.ts +1 -1
- package/dist/types/session/history.d.ts +1165 -1
- package/dist/types/session/revert.d.ts +2 -2
- package/dist/types/session/runner/step.d.ts +1 -1
- package/dist/types/session/schema.d.ts +1 -0
- package/dist/types/session/session.d.ts +1 -1
- package/dist/types/session/sql.d.ts +252 -0
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +1 -0
- package/dist/types/tool/mcp.d.ts +1 -1
- package/dist/types/tool/plugin/image-generate.d.ts +2 -1
- package/dist/types/tool/plugin/schedule.d.ts +28 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -1
- package/dist/usage-limits.js +99 -96
- 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 +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +104 -101
- package/dist/v1/config/permission.js +3 -3
- 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/variant.js +105 -102
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +101 -98
- package/dist/voice.js +100 -97
- package/dist/websearch.js +94 -91
- package/dist/wellknown/plugin.js +86 -83
- package/dist/wellknown.js +89 -86
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +92 -89
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +101 -98
- package/dist/worktree.js +110 -107
- package/package.json +12 -12
- package/dist/chunks/credential-bs2ewjth.js +0 -26
- package/dist/chunks/credential-zdy8es89.js +0 -257
- /package/dist/chunks/{credential-0qkdqm5v.js → session-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{credential-0zkw76rk.js → session-0zkw76rk.js} +0 -0
- /package/dist/chunks/{credential-17cy0kzp.js → session-17cy0kzp.js} +0 -0
- /package/dist/chunks/{credential-1cnp2v09.js → session-1cnp2v09.js} +0 -0
- /package/dist/chunks/{credential-24dcb14g.js → session-24dcb14g.js} +0 -0
- /package/dist/chunks/{credential-2710q6r3.js → session-2710q6r3.js} +0 -0
- /package/dist/chunks/{credential-2bv980vf.js → session-2bv980vf.js} +0 -0
- /package/dist/chunks/{credential-2c3vjs8z.js → session-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{credential-359p4xyc.js → session-359p4xyc.js} +0 -0
- /package/dist/chunks/{credential-3asan66x.js → session-3asan66x.js} +0 -0
- /package/dist/chunks/{credential-3v8g72cx.js → session-3v8g72cx.js} +0 -0
- /package/dist/chunks/{credential-3wcehsnq.js → session-3wcehsnq.js} +0 -0
- /package/dist/chunks/{credential-43n2bw4t.js → session-43n2bw4t.js} +0 -0
- /package/dist/chunks/{credential-4knz6hnm.js → session-4knz6hnm.js} +0 -0
- /package/dist/chunks/{credential-4vcrnpx2.js → session-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{credential-4y7fprxs.js → session-4y7fprxs.js} +0 -0
- /package/dist/chunks/{credential-53557ph1.js → session-53557ph1.js} +0 -0
- /package/dist/chunks/{credential-550bvhaj.js → session-550bvhaj.js} +0 -0
- /package/dist/chunks/{credential-5w3e23ze.js → session-5w3e23ze.js} +0 -0
- /package/dist/chunks/{credential-6prwharc.js → session-6prwharc.js} +0 -0
- /package/dist/chunks/{credential-6q2bdcd1.js → session-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{credential-7akdwqpd.js → session-7akdwqpd.js} +0 -0
- /package/dist/chunks/{credential-7m9af43g.js → session-7m9af43g.js} +0 -0
- /package/dist/chunks/{credential-822emrt2.js → session-822emrt2.js} +0 -0
- /package/dist/chunks/{credential-84wd9syh.js → session-84wd9syh.js} +0 -0
- /package/dist/chunks/{credential-88xbtdfr.js → session-88xbtdfr.js} +0 -0
- /package/dist/chunks/{credential-8n3pysct.js → session-8n3pysct.js} +0 -0
- /package/dist/chunks/{credential-8wj87zfr.js → session-8wj87zfr.js} +0 -0
- /package/dist/chunks/{credential-9a4afbnw.js → session-9a4afbnw.js} +0 -0
- /package/dist/chunks/{credential-9rqn6x4v.js → session-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{credential-a058387c.js → session-a058387c.js} +0 -0
- /package/dist/chunks/{credential-a6k6eb26.js → session-a6k6eb26.js} +0 -0
- /package/dist/chunks/{credential-af5trqkr.js → session-af5trqkr.js} +0 -0
- /package/dist/chunks/{credential-afrmfg78.js → session-afrmfg78.js} +0 -0
- /package/dist/chunks/{credential-aqzs7mqg.js → session-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{credential-atq7p7m5.js → session-atq7p7m5.js} +0 -0
- /package/dist/chunks/{credential-beh6qq61.js → session-beh6qq61.js} +0 -0
- /package/dist/chunks/{credential-bkyjaxrp.js → session-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{credential-bmr6ed5q.js → session-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{credential-cf4snx6d.js → session-cf4snx6d.js} +0 -0
- /package/dist/chunks/{credential-cqv5kn06.js → session-cqv5kn06.js} +0 -0
- /package/dist/chunks/{credential-cvy3z8tj.js → session-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{credential-d9fn303g.js → session-d9fn303g.js} +0 -0
- /package/dist/chunks/{credential-d9jj8t3e.js → session-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{credential-dap0rakb.js → session-dap0rakb.js} +0 -0
- /package/dist/chunks/{credential-df08tz66.js → session-df08tz66.js} +0 -0
- /package/dist/chunks/{credential-dy18nga0.js → session-dy18nga0.js} +0 -0
- /package/dist/chunks/{credential-e5kj55wp.js → session-e5kj55wp.js} +0 -0
- /package/dist/chunks/{credential-e73j6tqm.js → session-e73j6tqm.js} +0 -0
- /package/dist/chunks/{credential-ec1grn59.js → session-ec1grn59.js} +0 -0
- /package/dist/chunks/{credential-eh3zwz77.js → session-eh3zwz77.js} +0 -0
- /package/dist/chunks/{credential-emrn6kk6.js → session-emrn6kk6.js} +0 -0
- /package/dist/chunks/{credential-f0mxakyp.js → session-f0mxakyp.js} +0 -0
- /package/dist/chunks/{credential-f6n9ztr4.js → session-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{credential-faypxj3z.js → session-faypxj3z.js} +0 -0
- /package/dist/chunks/{credential-fd410y7t.js → session-fd410y7t.js} +0 -0
- /package/dist/chunks/{credential-fkpq3x5p.js → session-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{credential-g4wezp1m.js → session-g4wezp1m.js} +0 -0
- /package/dist/chunks/{credential-g86h250q.js → session-g86h250q.js} +0 -0
- /package/dist/chunks/{credential-gebd4c9n.js → session-gebd4c9n.js} +0 -0
- /package/dist/chunks/{credential-gftt206x.js → session-gftt206x.js} +0 -0
- /package/dist/chunks/{credential-hcxmzztb.js → session-hcxmzztb.js} +0 -0
- /package/dist/chunks/{credential-hk9envan.js → session-hk9envan.js} +0 -0
- /package/dist/chunks/{credential-j2ntwpah.js → session-j2ntwpah.js} +0 -0
- /package/dist/chunks/{credential-j5zkgpj8.js → session-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{credential-jjkms2e6.js → session-jjkms2e6.js} +0 -0
- /package/dist/chunks/{credential-jr7sbwjy.js → session-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{credential-jwfs4k6c.js → session-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{credential-jwr30sdr.js → session-jwr30sdr.js} +0 -0
- /package/dist/chunks/{credential-jze0r7bz.js → session-jze0r7bz.js} +0 -0
- /package/dist/chunks/{credential-jzg6c2d5.js → session-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{credential-m18g726c.js → session-m18g726c.js} +0 -0
- /package/dist/chunks/{credential-mp448xyj.js → session-mp448xyj.js} +0 -0
- /package/dist/chunks/{credential-msx8hqn2.js → session-msx8hqn2.js} +0 -0
- /package/dist/chunks/{credential-n05xt0ee.js → session-n05xt0ee.js} +0 -0
- /package/dist/chunks/{credential-n3j8tn72.js → session-n3j8tn72.js} +0 -0
- /package/dist/chunks/{credential-ncqqe42p.js → session-ncqqe42p.js} +0 -0
- /package/dist/chunks/{credential-nh4v3znn.js → session-nh4v3znn.js} +0 -0
- /package/dist/chunks/{credential-njntx4h6.js → session-njntx4h6.js} +0 -0
- /package/dist/chunks/{credential-p71gwv9c.js → session-p71gwv9c.js} +0 -0
- /package/dist/chunks/{credential-q3sfg36h.js → session-q3sfg36h.js} +0 -0
- /package/dist/chunks/{credential-q74kybfr.js → session-q74kybfr.js} +0 -0
- /package/dist/chunks/{credential-qaymkmh1.js → session-qaymkmh1.js} +0 -0
- /package/dist/chunks/{credential-qb87gjwd.js → session-qb87gjwd.js} +0 -0
- /package/dist/chunks/{credential-qfa1cgps.js → session-qfa1cgps.js} +0 -0
- /package/dist/chunks/{credential-qg3g05ea.js → session-qg3g05ea.js} +0 -0
- /package/dist/chunks/{credential-qrg20bc0.js → session-qrg20bc0.js} +0 -0
- /package/dist/chunks/{credential-rcb2kzg1.js → session-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{credential-sdp7kfr6.js → session-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{credential-ssg3fenm.js → session-ssg3fenm.js} +0 -0
- /package/dist/chunks/{credential-ve7vex1e.js → session-ve7vex1e.js} +0 -0
- /package/dist/chunks/{credential-w803qqfp.js → session-w803qqfp.js} +0 -0
- /package/dist/chunks/{credential-wc3fc9cn.js → session-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{credential-wer8tq1h.js → session-wer8tq1h.js} +0 -0
- /package/dist/chunks/{credential-wtztk69x.js → session-wtztk69x.js} +0 -0
- /package/dist/chunks/{credential-x0ckcb58.js → session-x0ckcb58.js} +0 -0
- /package/dist/chunks/{credential-x61499pn.js → session-x61499pn.js} +0 -0
- /package/dist/chunks/{credential-y44na4kk.js → session-y44na4kk.js} +0 -0
- /package/dist/chunks/{credential-y8f7s663.js → session-y8f7s663.js} +0 -0
- /package/dist/chunks/{credential-ygaqb7jw.js → session-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{credential-z5v4ffb3.js → session-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{credential-z9919s4g.js → session-z9919s4g.js} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./session-204s3925.js";
|
|
4
4
|
import {
|
|
5
5
|
which2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./session-qaymkmh1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./session-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
|
-
Options: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Options: () => Options5,
|
|
15
|
+
Service: () => Service47,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured6,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
|
-
list: () =>
|
|
21
|
+
list: () => list3,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name17,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node50,
|
|
25
25
|
ps: () => ps2,
|
|
26
|
-
resolve: () =>
|
|
26
|
+
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { readFile } from "fs/promises";
|
|
@@ -43,11 +43,11 @@ var META = {
|
|
|
43
43
|
sh: { login: true },
|
|
44
44
|
zsh: { login: true }
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var Options5 = Schema.Struct({
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service47 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
|
|
|
164
164
|
}
|
|
165
165
|
var defaultConfigured;
|
|
166
166
|
var defaultCompatible;
|
|
167
|
-
function
|
|
167
|
+
function resolve2(input, configShell, options, bin) {
|
|
168
168
|
const filter = input.priority === "compat" ? { compatible: true } : undefined;
|
|
169
169
|
if (configShell)
|
|
170
170
|
return select(configShell, options, filter, bin);
|
|
@@ -180,15 +180,15 @@ function resolve4(input, configShell, options, bin) {
|
|
|
180
180
|
defaultConfigured = { bin, value };
|
|
181
181
|
return value;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
resolve2.reset = () => {
|
|
184
184
|
defaultConfigured = undefined;
|
|
185
185
|
defaultCompatible = undefined;
|
|
186
186
|
};
|
|
187
|
-
async function
|
|
187
|
+
async function list3(options, bin) {
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service79, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service47.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
|
-
resolve: (input) => Effect.sync(() =>
|
|
206
|
-
list: () => Effect.promise(() =>
|
|
205
|
+
resolve: (input) => Effect.sync(() => resolve2(input, state.get().shell, options, global.bin)),
|
|
206
|
+
list: () => Effect.promise(() => list3(options, global.bin))
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
return makeLocationNode({ service:
|
|
209
|
+
function configured6(options) {
|
|
210
|
+
return makeLocationNode({ service: Service47, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node50 = configured6();
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Options5, Service47, gitbash2, name17, login2, ps2, args2, environment2, resolve2, list3, configured6, node50, exports_select };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./session-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service70
|
|
7
|
+
} from "./session-tf0cgyr6.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./session-svcy3p9a.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service61
|
|
13
|
+
} from "./session-tg9kr0y0.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service56
|
|
16
|
+
} from "./session-b5z3fqjc.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service65
|
|
19
|
+
} from "./session-j3v6xgsf.js";
|
|
20
20
|
import {
|
|
21
21
|
Service18,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./session-kb90rkdq.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./session-k814nvkf.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service47,
|
|
32
32
|
name17
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./session-4x23c0v6.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError7,
|
|
36
|
+
Service45
|
|
37
|
+
} from "./session-n05pjf0z.js";
|
|
38
38
|
import {
|
|
39
39
|
Service25
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./session-h45rwca9.js";
|
|
41
41
|
import {
|
|
42
42
|
scan3
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./session-d7htzk6m.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./session-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell2 = {};
|
|
50
|
+
__export(exports_shell2, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input9,
|
|
53
|
+
Plugin: () => Plugin48,
|
|
54
|
+
ShellTool: () => exports_shell2,
|
|
55
|
+
name: () => name9
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
59
|
import { shellParserWasm } from "#shell-parser-wasm";
|
|
60
|
-
var
|
|
60
|
+
var name9 = "shell";
|
|
61
61
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
62
62
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
63
63
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -71,7 +71,7 @@ var description = (shell) => [
|
|
|
71
71
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
72
72
|
"Background commands return immediately, and you will be notified when they complete."
|
|
73
73
|
].join(" ");
|
|
74
|
-
var
|
|
74
|
+
var Input9 = Schema.Struct({
|
|
75
75
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
76
76
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
77
77
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -117,19 +117,19 @@ Output is streaming to: ${file}`,
|
|
|
117
117
|
truncated: false,
|
|
118
118
|
status: "running"
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Plugin48 = {
|
|
121
121
|
id: "opencode.tool.shell",
|
|
122
122
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
123
123
|
const sessions = yield* Service25;
|
|
124
|
-
const jobs = yield*
|
|
124
|
+
const jobs = yield* Service56;
|
|
125
125
|
const scope = yield* Scope.Scope;
|
|
126
|
-
const environment = yield*
|
|
126
|
+
const environment = yield* Service61;
|
|
127
127
|
const access = yield* Service18;
|
|
128
|
-
const shell = yield*
|
|
129
|
-
const shellSelect = yield*
|
|
128
|
+
const shell = yield* Service45;
|
|
129
|
+
const shellSelect = yield* Service47;
|
|
130
130
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
131
|
-
const permission = yield*
|
|
132
|
-
const config = yield*
|
|
131
|
+
const permission = yield* Service65;
|
|
132
|
+
const config = yield* Service70;
|
|
133
133
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
134
134
|
const source = {
|
|
135
135
|
type: "tool",
|
|
@@ -148,7 +148,7 @@ var Plugin29 = {
|
|
|
148
148
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
149
149
|
if (parsed.commands.length > 0)
|
|
150
150
|
yield* permission.assert({
|
|
151
|
-
action:
|
|
151
|
+
action: name9,
|
|
152
152
|
resources: parsed.commands.map((command) => command.resource),
|
|
153
153
|
save: parsed.commands.map((command) => command.save),
|
|
154
154
|
sessionID: context.sessionID,
|
|
@@ -185,10 +185,10 @@ var Plugin29 = {
|
|
|
185
185
|
yield* jobs.completeBackground(info.notificationID);
|
|
186
186
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
187
187
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
188
|
-
name:
|
|
188
|
+
name: name9,
|
|
189
189
|
options: { codemode: false },
|
|
190
190
|
description: description(),
|
|
191
|
-
input:
|
|
191
|
+
input: Input9,
|
|
192
192
|
output: Output,
|
|
193
193
|
execute: (input, context) => Effect.gen(function* () {
|
|
194
194
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -211,7 +211,7 @@ var Plugin29 = {
|
|
|
211
211
|
const run = Effect.gen(function* () {
|
|
212
212
|
const result = yield* shell.result(info);
|
|
213
213
|
if (!result.capture)
|
|
214
|
-
return yield* new
|
|
214
|
+
return yield* new NotFoundError7({ id: info.id });
|
|
215
215
|
const output = output2(result);
|
|
216
216
|
return {
|
|
217
217
|
...output,
|
|
@@ -225,7 +225,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
225
225
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
226
226
|
const job = yield* jobs.start({
|
|
227
227
|
id: info.id,
|
|
228
|
-
type:
|
|
228
|
+
type: name9,
|
|
229
229
|
title: info.command,
|
|
230
230
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
231
231
|
recovery: {
|
|
@@ -255,7 +255,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
255
255
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
256
256
|
})).pipe(Effect.orDie);
|
|
257
257
|
const hook = (event) => Effect.gen(function* () {
|
|
258
|
-
const tool = event.tools[
|
|
258
|
+
const tool = event.tools[name9];
|
|
259
259
|
if (!tool)
|
|
260
260
|
return;
|
|
261
261
|
tool.description = description(name17(yield* compatibleShell));
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export {
|
|
269
|
+
export { name9, DEFAULT_TIMEOUT_MS2, Input9, Plugin48, exports_shell2 };
|
|
@@ -5,24 +5,24 @@ import {
|
|
|
5
5
|
emptyPatch2,
|
|
6
6
|
splitGitPatch2,
|
|
7
7
|
chunksByFile2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./session-rb9dy4dg.js";
|
|
9
9
|
import {
|
|
10
10
|
gitExecutable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./session-sa3fpqfw.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service77
|
|
14
|
+
} from "./session-c0j43jcq.js";
|
|
15
15
|
import {
|
|
16
16
|
DiffError2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./session-5sh8dy76.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./session-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/vcs/git.ts
|
|
23
23
|
var exports_git = {};
|
|
24
24
|
__export(exports_git, {
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin4,
|
|
26
26
|
VcsGitPlugin: () => exports_git
|
|
27
27
|
});
|
|
28
28
|
import { randomUUID } from "crypto";
|
|
@@ -33,10 +33,10 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
import { ChildProcess } from "effect/process";
|
|
35
35
|
import { AppProcess } from "@opencode/util/process";
|
|
36
|
-
var
|
|
36
|
+
var Plugin4 = define({
|
|
37
37
|
id: "opencode.vcs.git",
|
|
38
38
|
effect: Effect.fn("VcsGitPlugin")(function* (ctx) {
|
|
39
|
-
const location = yield*
|
|
39
|
+
const location = yield* Service77;
|
|
40
40
|
if (location.vcs && location.vcs.type !== "git")
|
|
41
41
|
return;
|
|
42
42
|
const processes = yield* AppProcess.Service;
|
|
@@ -588,4 +588,4 @@ var track = Effect.fnUntraced(function* (ctx, ref, options) {
|
|
|
588
588
|
return yield* diffAgainstRef(ctx, ref, options);
|
|
589
589
|
});
|
|
590
590
|
|
|
591
|
-
export {
|
|
591
|
+
export { Plugin4, exports_git };
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service36
|
|
6
|
+
} from "./session-pcve4y50.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service65
|
|
9
|
+
} from "./session-j3v6xgsf.js";
|
|
10
10
|
import {
|
|
11
11
|
MEDIA_MIMES2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./session-y5qd0fdx.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./session-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/tool/plugin/mcp-resource.ts
|
|
18
18
|
var exports_mcp_resource = {};
|
|
19
19
|
__export(exports_mcp_resource, {
|
|
20
20
|
McpResourceTools: () => exports_mcp_resource,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin42
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
|
-
var
|
|
25
|
+
var Plugin42 = {
|
|
26
26
|
id: "opencode.tools.mcp-resources",
|
|
27
27
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
28
|
-
const mcp = yield*
|
|
29
|
-
const permission = yield*
|
|
28
|
+
const mcp = yield* Service36;
|
|
29
|
+
const permission = yield* Service65;
|
|
30
30
|
yield* ctx.tool.transform((editor) => {
|
|
31
31
|
editor.add({
|
|
32
32
|
name: "list_mcp_resources",
|
|
@@ -96,4 +96,4 @@ var Plugin28 = {
|
|
|
96
96
|
})
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin42, exports_mcp_resource };
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./session-2vpr0s80.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./session-1ep2p91f.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./session-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
ConflictError: () => ConflictError2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
NotFoundError: () =>
|
|
16
|
+
ID: () => ID10,
|
|
17
|
+
Info: () => Info15,
|
|
18
|
+
NotFoundError: () => NotFoundError11,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service67,
|
|
21
|
+
node: () => node70
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { isSqlError } from "effect/sql/SqlError";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID10 = PermissionSaved.ID;
|
|
29
|
+
var Info15 = PermissionSaved.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
32
|
-
id:
|
|
31
|
+
class NotFoundError11 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
32
|
+
id: ID10
|
|
33
33
|
}) {
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError", {
|
|
37
|
-
id:
|
|
37
|
+
id: ID10,
|
|
38
38
|
action: Schema.String,
|
|
39
39
|
resource: Schema.String
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service67 extends Context.Service()("@opencode/PermissionSaved") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
46
46
|
const db = (yield* Service87).db;
|
|
47
47
|
const list = Effect.fnUntraced(function* (input) {
|
|
48
48
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -52,7 +52,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
52
52
|
if (!input.resources.length)
|
|
53
53
|
return;
|
|
54
54
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
55
|
-
id:
|
|
55
|
+
id: ID10.create(),
|
|
56
56
|
project_id: input.projectID,
|
|
57
57
|
action: input.action,
|
|
58
58
|
resource
|
|
@@ -61,18 +61,18 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
61
61
|
const update = Effect.fn("PermissionSaved.update")(function* (input) {
|
|
62
62
|
const current = yield* db.select().from(PermissionTable2).where(eq(PermissionTable2.id, input.id)).get().pipe(Effect.orDie);
|
|
63
63
|
if (!current)
|
|
64
|
-
return yield* new
|
|
64
|
+
return yield* new NotFoundError11({ id: input.id });
|
|
65
65
|
const action = input.action ?? current.action;
|
|
66
66
|
const resource = input.resource ?? current.resource;
|
|
67
67
|
const updated = yield* db.update(PermissionTable2).set({ action, resource }).where(eq(PermissionTable2.id, input.id)).returning().get().pipe(Effect.catchIf(isUniqueViolation, () => new ConflictError2({ id: input.id, action, resource })), Effect.catchTag("EffectDrizzleQueryError", (error) => Effect.die(error)));
|
|
68
68
|
if (!updated)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError11({ id: input.id });
|
|
70
70
|
return info(updated);
|
|
71
71
|
});
|
|
72
72
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
73
73
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return Service67.of({ list, add, update, remove });
|
|
76
76
|
}));
|
|
77
77
|
var isUniqueViolation = (error) => {
|
|
78
78
|
const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
|
|
@@ -90,6 +90,6 @@ var info = (row) => ({
|
|
|
90
90
|
updated: DateTime.makeUnsafe(row.time_updated)
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
var
|
|
93
|
+
var node70 = makeGlobalNode({ service: Service67, layer, deps: [node91] });
|
|
94
94
|
|
|
95
|
-
export {
|
|
95
|
+
export { ID10, Info15, NotFoundError11, ConflictError2, Service67, node70, exports_saved };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./session-hht3wrh4.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./session-rb9dy4dg.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./session-5w1z1d8q.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service77,
|
|
15
|
+
node81
|
|
16
|
+
} from "./session-c0j43jcq.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./session-204s3925.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./session-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/vcs.ts
|
|
26
26
|
var exports_vcs = {};
|
|
@@ -29,19 +29,19 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info7,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service19,
|
|
36
36
|
Untracked: () => Untracked2,
|
|
37
37
|
Vcs: () => exports_vcs,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node22
|
|
39
39
|
});
|
|
40
40
|
import path from "path";
|
|
41
41
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
42
42
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
43
43
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
44
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
44
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info7, Mode as Mode2, Untracked as Untracked2 } from "@opencode/schema/vcs";
|
|
45
45
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
46
46
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
47
47
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -55,12 +55,12 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
55
55
|
}) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
class
|
|
58
|
+
class Service19 extends Context.Service()("@opencode/Vcs") {
|
|
59
59
|
}
|
|
60
|
-
var layer = Layer.effect(
|
|
60
|
+
var layer = Layer.effect(Service19, Effect.gen(function* () {
|
|
61
61
|
const fs = yield* FSUtil.Service;
|
|
62
|
-
const location = yield*
|
|
63
|
-
const bus = yield*
|
|
62
|
+
const location = yield* Service77;
|
|
63
|
+
const bus = yield* Service83;
|
|
64
64
|
const root = yield* Effect.scope;
|
|
65
65
|
const fork = yield* FiberSet.makeRuntime();
|
|
66
66
|
const vcs = location.vcs;
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
72
72
|
canonical: location.project.canonical,
|
|
73
73
|
...vcs ? { store: vcs.store } : {}
|
|
74
74
|
};
|
|
75
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
75
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info7));
|
|
76
76
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
77
77
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
78
78
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -130,7 +130,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
130
130
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
131
131
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return Service19.of({
|
|
134
134
|
transform: state.transform,
|
|
135
135
|
reload: state.reload,
|
|
136
136
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -189,10 +189,10 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}));
|
|
192
|
-
var
|
|
193
|
-
service:
|
|
192
|
+
var node22 = makeLocationNode({
|
|
193
|
+
service: Service19,
|
|
194
194
|
layer,
|
|
195
|
-
deps: [FSUtil.node,
|
|
195
|
+
deps: [FSUtil.node, node81, node87]
|
|
196
196
|
});
|
|
197
197
|
|
|
198
|
-
export { Base2, BranchList2, FileStatus2,
|
|
198
|
+
export { Base2, BranchList2, FileStatus2, Info7, Mode2, Untracked2, DiffError2, InitializeError2, Service19, node22, exports_vcs };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./session-f52hekk8.js";
|
|
5
5
|
import {
|
|
6
6
|
AuthorizationError2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./session-qn0q7ss9.js";
|
|
8
8
|
import {
|
|
9
9
|
CorrectedError2,
|
|
10
10
|
BlockedError2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./session-j3v6xgsf.js";
|
|
12
12
|
import {
|
|
13
13
|
VariantUnavailableError2,
|
|
14
14
|
UnsupportedPackageError2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
ModelInitializationError2,
|
|
17
17
|
UnresolvedProviderVariablesError2,
|
|
18
18
|
UnsupportedCompactionError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./session-3z1690bs.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./session-n5szpsx2.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai/effect";
|
|
@@ -41,6 +41,8 @@ var BUDGET_LIMIT_MESSAGE = "Workspace usage limit reached. Model use is paused u
|
|
|
41
41
|
var MODEL_BUDGET_LIMIT_MESSAGE = "You've reached the spend limit for this model. Switch models to keep going.";
|
|
42
42
|
function toSessionError2(cause) {
|
|
43
43
|
if (cause instanceof AIError) {
|
|
44
|
+
if (cause.reason.body?.includes("subscription_sharing_usage_limit_exceeded"))
|
|
45
|
+
return providerError("provider.chatgpt-limit", cause.reason);
|
|
44
46
|
switch (cause.reason._tag) {
|
|
45
47
|
case "RateLimit":
|
|
46
48
|
return providerError("provider.rate-limit", cause.reason);
|
|
@@ -51,6 +53,8 @@ function toSessionError2(cause) {
|
|
|
51
53
|
return { ...providerError("provider.free-limit", cause.reason), message: FREE_USAGE_LIMIT_MESSAGE };
|
|
52
54
|
if (cause.reason.body?.includes("BudgetLimitError"))
|
|
53
55
|
return budgetLimit(cause.reason);
|
|
56
|
+
if (cause.reason.body?.includes("GoUsageLimitError"))
|
|
57
|
+
return goLimit(cause.reason);
|
|
54
58
|
return providerError("provider.quota", cause.reason);
|
|
55
59
|
case "ContentPolicy":
|
|
56
60
|
return providerError("provider.content-filter", cause.reason);
|
|
@@ -109,6 +113,13 @@ function budgetLimit(reason) {
|
|
|
109
113
|
return { ...providerError("provider.model-budget-limit", reason), message: MODEL_BUDGET_LIMIT_MESSAGE };
|
|
110
114
|
return { ...providerError("provider.budget-limit", reason), message: BUDGET_LIMIT_MESSAGE };
|
|
111
115
|
}
|
|
116
|
+
function goLimit(reason) {
|
|
117
|
+
const name = /"limitName"\s*:\s*"([^"]+)"/.exec(reason.body ?? "")?.[1];
|
|
118
|
+
return {
|
|
119
|
+
...providerError("provider.go-limit", reason),
|
|
120
|
+
message: `OpenCode Go ${name ? `${name} ` : ""}usage limit reached. Switch to a free model, or turn on Extra Usage on the Go page in OpenCode Console to keep going.`
|
|
121
|
+
};
|
|
122
|
+
}
|
|
112
123
|
function providerError(type, reason) {
|
|
113
124
|
const status = reason.http?.status;
|
|
114
125
|
const retryAfterMs = "retryAfterMs" in reason ? reason.retryAfterMs : undefined;
|