@opencode/core 0.0.0-dev-21812 → 0.0.0-dev-21817
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 +87 -87
- package/dist/aisdk-native.js +94 -94
- package/dist/aisdk.js +100 -100
- package/dist/app.js +9 -9
- package/dist/bus.js +77 -77
- package/dist/chunks/{integration-033a0jkt.js → image-033a0jkt.js} +1 -1
- package/dist/chunks/{integration-034tev2y.js → image-034tev2y.js} +2 -2
- package/dist/chunks/{integration-q820hr6k.js → image-05nfgzjq.js} +10 -10
- package/dist/chunks/{integration-v3v80szh.js → image-07vs3nj0.js} +10 -10
- package/dist/chunks/{integration-7msw3csv.js → image-0gc146vq.js} +28 -28
- package/dist/chunks/{integration-1ghdp8kk.js → image-0m97cnkj.js} +34 -34
- package/dist/chunks/{integration-jtp9n393.js → image-0r1vx8v5.js} +31 -31
- package/dist/chunks/{integration-74yt0vzq.js → image-0s5s6e2d.js} +55 -55
- package/dist/chunks/{integration-vs2m3t8d.js → image-0tg8k0ws.js} +18 -18
- package/dist/chunks/{integration-kqy4hbwk.js → image-0xms9gce.js} +88 -88
- package/dist/chunks/{integration-g4netsws.js → image-13a2mh91.js} +16 -16
- package/dist/chunks/{integration-9kg5w032.js → image-160yv0cs.js} +8 -8
- package/dist/chunks/{integration-hwx3r6b1.js → image-16hjntf9.js} +15 -15
- package/dist/chunks/{integration-cpvd08na.js → image-184a1rnm.js} +7 -7
- package/dist/chunks/{integration-1ep2p91f.js → image-1ep2p91f.js} +2 -2
- package/dist/chunks/{integration-wr8dn7z1.js → image-1f7agfq0.js} +5 -5
- package/dist/chunks/{integration-ez61m5xe.js → image-1fwkns73.js} +5 -5
- package/dist/chunks/{integration-z2qbjhyn.js → image-1nwxscpy.js} +5 -5
- package/dist/chunks/{integration-m676x6pr.js → image-1w13evse.js} +17 -17
- package/dist/chunks/{integration-1x2knyw4.js → image-1x2knyw4.js} +1 -1
- package/dist/chunks/{integration-v9ez2kgh.js → image-1yq9hg58.js} +5 -5
- package/dist/chunks/{integration-xap91x1p.js → image-24xfnb6j.js} +13 -13
- package/dist/chunks/{integration-9e9qdt9b.js → image-2mrxht5b.js} +13 -13
- package/dist/chunks/{integration-r9478m04.js → image-2nj0wjyp.js} +2 -2
- package/dist/chunks/{integration-hhn1e55x.js → image-2yw6w8fw.js} +8 -8
- package/dist/chunks/{integration-d9f8cqns.js → image-2z1fntxb.js} +16 -16
- package/dist/chunks/{integration-2z1j29yd.js → image-2z1j29yd.js} +1 -1
- package/dist/chunks/{integration-a9jemgtr.js → image-2z7erwjw.js} +3 -3
- package/dist/chunks/{integration-fkgr69m7.js → image-31r5thkn.js} +13 -13
- package/dist/chunks/{integration-enar5c8c.js → image-326fkxd2.js} +27 -27
- package/dist/chunks/{integration-32s59e8p.js → image-32s59e8p.js} +2 -2
- package/dist/chunks/{integration-b68fg4f6.js → image-35fhh73b.js} +32 -32
- package/dist/chunks/{integration-s7xmnr8t.js → image-36qx82yz.js} +6 -6
- package/dist/chunks/{integration-cqjv9nck.js → image-37cktt0g.js} +29 -29
- package/dist/chunks/{integration-mmhxtjpe.js → image-3gqz1bk6.js} +19 -19
- package/dist/chunks/{integration-3hepkmqq.js → image-3hepkmqq.js} +1 -1
- package/dist/chunks/{integration-ndw46kc6.js → image-3n1ttctm.js} +11 -11
- package/dist/chunks/{integration-3nnrz6f6.js → image-3nnrz6f6.js} +1 -1
- package/dist/chunks/{integration-zmwx25fz.js → image-3t73xeyv.js} +2 -2
- package/dist/chunks/{integration-22vn2tfc.js → image-3zqzrtkk.js} +51 -51
- package/dist/chunks/{integration-fzjtn9cy.js → image-40p0fyqq.js} +4 -4
- package/dist/chunks/{integration-sjc0rtcr.js → image-4ad74sg8.js} +35 -35
- package/dist/chunks/{integration-7xwzfpqh.js → image-4jnmqarr.js} +13 -13
- package/dist/chunks/{integration-3vj2p3vv.js → image-4sxex0rx.js} +14 -14
- package/dist/chunks/{integration-4v008n1t.js → image-4v008n1t.js} +1 -1
- package/dist/chunks/{integration-qjj39fzk.js → image-4v1m73gd.js} +35 -35
- package/dist/chunks/{integration-ns4tg1vk.js → image-4wc3fxck.js} +30 -30
- package/dist/chunks/{integration-4xvmh7wp.js → image-4xvmh7wp.js} +3 -3
- package/dist/chunks/{integration-62ecjyyq.js → image-4xy1sasq.js} +24 -24
- package/dist/chunks/{integration-yc8z54tz.js → image-4z67m3qv.js} +25 -25
- package/dist/chunks/{integration-xkpbrv2c.js → image-51xz9zrd.js} +30 -30
- package/dist/chunks/{integration-5m9w47nd.js → image-5m9w47nd.js} +1 -1
- package/dist/chunks/{integration-b6vsg801.js → image-5nnwax6m.js} +5 -5
- package/dist/chunks/{integration-e3qxr5gk.js → image-5qd3pb7m.js} +2 -2
- package/dist/chunks/{integration-w22yp63b.js → image-5qv54f7z.js} +9 -9
- package/dist/chunks/{integration-24dnymca.js → image-5sdj1qr8.js} +9 -9
- package/dist/chunks/{integration-2qzjejty.js → image-5sf4bm6j.js} +17 -17
- package/dist/chunks/{integration-ewf8e1z3.js → image-62tfx8ce.js} +9 -9
- package/dist/chunks/{integration-zrdtx4x3.js → image-68zmakm4.js} +14 -14
- package/dist/chunks/image-6b8sz5eq.js +517 -0
- package/dist/chunks/{integration-6esdw8yj.js → image-6esdw8yj.js} +1 -1
- package/dist/chunks/{integration-6pjqjmy2.js → image-6pjqjmy2.js} +1 -1
- package/dist/chunks/{integration-zwmk0vgz.js → image-6r4vkcek.js} +8 -8
- package/dist/chunks/{integration-6a013r1n.js → image-6vep9ays.js} +26 -26
- package/dist/chunks/{integration-2jzy5gvp.js → image-6xd8dker.js} +17 -17
- package/dist/chunks/image-6zjm2phc.js +18 -0
- package/dist/chunks/{integration-xm8dep68.js → image-73jz4da7.js} +18 -18
- package/dist/chunks/{integration-h4k78rza.js → image-75jwphnh.js} +51 -51
- package/dist/chunks/{integration-qqfn68em.js → image-76md86nq.js} +22 -22
- package/dist/chunks/{integration-nah043kf.js → image-770pw0s1.js} +4 -4
- package/dist/chunks/{integration-7bmhse3q.js → image-7bmhse3q.js} +1 -1
- package/dist/chunks/{integration-21wsmemr.js → image-7ce27r81.js} +13 -13
- package/dist/chunks/{integration-pvhdzchd.js → image-7chq9j9h.js} +23 -23
- package/dist/chunks/{integration-xs0pgsh6.js → image-7ecx6m67.js} +5 -5
- package/dist/chunks/{integration-s8hzhf5a.js → image-7gwka3rf.js} +8 -8
- package/dist/chunks/{integration-pmz7p4sy.js → image-7vp7j2yf.js} +4 -4
- package/dist/chunks/{integration-7w2ypzdf.js → image-7w2ypzdf.js} +1 -1
- package/dist/chunks/{integration-jh0qv5w1.js → image-80de0dpk.js} +15 -15
- package/dist/chunks/{integration-nhfzsa1p.js → image-87r11qxp.js} +7 -7
- package/dist/chunks/{integration-azcb3gk3.js → image-8anjt5n3.js} +16 -16
- package/dist/chunks/{integration-k4z47hf4.js → image-8j5cfpkk.js} +11 -11
- package/dist/chunks/{integration-n0p57zwx.js → image-8satscgr.js} +15 -15
- package/dist/chunks/{integration-z7wnyb4t.js → image-8tmbg2kp.js} +5 -5
- package/dist/chunks/{integration-8wtp7s3z.js → image-8wtp7s3z.js} +1 -1
- package/dist/chunks/{integration-w1qfq64t.js → image-8zef63vm.js} +1 -1
- package/dist/chunks/{integration-27z7tz04.js → image-91ht5475.js} +20 -20
- package/dist/chunks/{integration-91rj84md.js → image-91rj84md.js} +1 -1
- package/dist/chunks/{integration-4vgk4w6a.js → image-98hqkj1t.js} +21 -21
- package/dist/chunks/{integration-998yhzzq.js → image-998yhzzq.js} +3 -3
- package/dist/chunks/{integration-zx7azpzt.js → image-9bdme720.js} +22 -22
- package/dist/chunks/{integration-9cx9sm2q.js → image-9cx9sm2q.js} +1 -1
- package/dist/chunks/{integration-582km8zz.js → image-9m4m3tqa.js} +12 -12
- package/dist/chunks/{integration-3qncy4kt.js → image-9r6cxg0d.js} +3 -3
- package/dist/chunks/{integration-c445b2ma.js → image-9tmx0py5.js} +18 -18
- package/dist/chunks/{integration-cdpx3xqr.js → image-a4y6e5tc.js} +28 -28
- package/dist/chunks/{integration-qr09n5wa.js → image-acgs9a2s.js} +1 -1
- package/dist/chunks/{integration-77zdhryd.js → image-afasrztg.js} +10 -10
- package/dist/chunks/{integration-mn0kbaek.js → image-asvpa677.js} +27 -27
- package/dist/chunks/{integration-ayjs7tqn.js → image-ayjs7tqn.js} +2 -2
- package/dist/chunks/{integration-b0mv4wxm.js → image-b0mv4wxm.js} +2 -2
- package/dist/chunks/{integration-mnx664ps.js → image-b0zs6kwq.js} +46 -46
- package/dist/chunks/{integration-a5hswdc1.js → image-b5fch5tq.js} +31 -31
- package/dist/chunks/{integration-rrewaqtd.js → image-bfrs3k34.js} +4 -4
- package/dist/chunks/{integration-ej3th1h3.js → image-bh6xg5j5.js} +9 -9
- package/dist/chunks/{integration-c3nr5wcj.js → image-bjf48tk7.js} +11 -11
- package/dist/chunks/{integration-zzdv5d93.js → image-bjhzkqyk.js} +4 -4
- package/dist/chunks/{integration-nw3gns4q.js → image-bjzxnqba.js} +81 -81
- package/dist/chunks/{integration-7jv8arzj.js → image-br0sk681.js} +25 -25
- package/dist/chunks/{integration-yh280zkr.js → image-c1expc71.js} +21 -21
- package/dist/chunks/{integration-cvx8nhbw.js → image-c98vtka0.js} +19 -19
- package/dist/chunks/{integration-mtkfycnh.js → image-c9t2ty9q.js} +4 -4
- package/dist/chunks/{integration-bmavx65t.js → image-ca52p5rq.js} +24 -24
- package/dist/chunks/{integration-0v8grjzs.js → image-cc7p5mm7.js} +14 -14
- package/dist/chunks/{integration-x5jmwpjz.js → image-cfvcma3s.js} +43 -43
- package/dist/chunks/{integration-xjdsgsgc.js → image-cymceqyh.js} +17 -17
- package/dist/chunks/{integration-4739vc91.js → image-d29abm0w.js} +11 -11
- package/dist/chunks/{integration-d4v9tmah.js → image-d4v9tmah.js} +2 -2
- package/dist/chunks/{integration-m7g89f9n.js → image-djkw662e.js} +4 -4
- package/dist/chunks/{integration-0p88zpcm.js → image-dk5xnaxx.js} +4 -4
- package/dist/chunks/{integration-sztnemvs.js → image-dvx5xhvb.js} +19 -19
- package/dist/chunks/{integration-hd3k4wz8.js → image-e45fk36t.js} +4 -4
- package/dist/chunks/{integration-mvc3vb2a.js → image-e7xzzatt.js} +12 -12
- package/dist/chunks/{integration-e834z07m.js → image-e834z07m.js} +1 -1
- package/dist/chunks/{integration-pq8a5ftn.js → image-eq0jjftn.js} +32 -32
- package/dist/chunks/{integration-eegzrrtz.js → image-ers7egr9.js} +13 -13
- package/dist/chunks/{integration-2a7m102q.js → image-esj9r7gb.js} +16 -16
- package/dist/chunks/{integration-wf2cyww0.js → image-etdykhby.js} +5 -5
- package/dist/chunks/{integration-s8p4z092.js → image-ewbwv8zd.js} +11 -11
- package/dist/chunks/{integration-6a7ezx2c.js → image-f6a8s9j6.js} +12 -12
- package/dist/chunks/{integration-zzpc27z9.js → image-f7jaqbwj.js} +60 -60
- package/dist/chunks/{integration-aevv1b27.js → image-fbqneh5y.js} +21 -21
- package/dist/chunks/{integration-fffv3p7h.js → image-fffv3p7h.js} +1 -1
- package/dist/chunks/{integration-8vg666x5.js → image-fgfynbdy.js} +2 -2
- package/dist/chunks/{integration-1nys593y.js → image-fjw90z1x.js} +10 -10
- package/dist/chunks/{integration-vcz53cnc.js → image-fmt5mq3p.js} +15 -15
- package/dist/chunks/{integration-ns1gkfmt.js → image-frqw5egg.js} +11 -11
- package/dist/chunks/{integration-0h8y3ex8.js → image-fznmdakp.js} +4 -4
- package/dist/chunks/{integration-g5h9c0rr.js → image-g5h9c0rr.js} +2 -2
- package/dist/chunks/{integration-5v3c0w31.js → image-g5n2wz6e.js} +32 -32
- package/dist/chunks/{integration-jdfk1cmv.js → image-g5sxpg0e.js} +25 -25
- package/dist/chunks/image-gbhxq8h0.js +26 -0
- package/dist/chunks/{integration-6285fq4d.js → image-gq3cesnx.js} +8 -8
- package/dist/chunks/{integration-pa7nwqm2.js → image-gtns7z1w.js} +1 -1
- package/dist/chunks/{integration-8wht8kc5.js → image-gwv49t1j.js} +5 -5
- package/dist/chunks/{integration-mpg7afbk.js → image-gy2mam1y.js} +4 -4
- package/dist/chunks/{integration-099h1hwj.js → image-gympdgax.js} +6 -6
- package/dist/chunks/{integration-3myyj9jx.js → image-h83evwjx.js} +21 -21
- package/dist/chunks/{integration-gjw4pr93.js → image-hcmp2j52.js} +11 -11
- package/dist/chunks/{integration-af0k6e03.js → image-hdfrs5mg.js} +9 -9
- package/dist/chunks/{integration-f9bma1qn.js → image-hdprjw5h.js} +12 -12
- package/dist/chunks/{integration-fcvr1d3d.js → image-hh06m4mq.js} +28 -28
- package/dist/chunks/{integration-j113cymg.js → image-j113cymg.js} +1 -1
- package/dist/chunks/{integration-mzzay4f0.js → image-j62djdb6.js} +12 -12
- package/dist/chunks/{integration-q0sfsmmy.js → image-j95naedj.js} +52 -52
- package/dist/chunks/{integration-e5dqjz6v.js → image-jchrqzf6.js} +4 -4
- package/dist/chunks/{integration-6yretb28.js → image-jheynnxb.js} +11 -11
- package/dist/chunks/{integration-sp4szsb6.js → image-jhhnbm9k.js} +9 -9
- package/dist/chunks/{integration-dd3y08z3.js → image-jhj078t7.js} +18 -18
- package/dist/chunks/{integration-r7xar5ns.js → image-jj9caqwr.js} +11 -11
- package/dist/chunks/{integration-tq47yr9q.js → image-jjg5yz1h.js} +9 -9
- package/dist/chunks/{integration-kjg0r6wn.js → image-jnew0sa6.js} +10 -10
- package/dist/chunks/{integration-2k41ftbf.js → image-jxmjtapz.js} +9 -9
- package/dist/chunks/{integration-k814nvkf.js → image-k814nvkf.js} +1 -1
- package/dist/chunks/{integration-ncys0ejx.js → image-kep8e7gv.js} +47 -47
- package/dist/chunks/{integration-43sfaggh.js → image-kmw1we2g.js} +58 -58
- package/dist/chunks/{integration-mh81y02m.js → image-knsqv29b.js} +9 -9
- package/dist/chunks/{integration-gs020t2a.js → image-kr6h56mz.js} +3 -3
- package/dist/chunks/{integration-kt3bjfbg.js → image-kt3bjfbg.js} +1 -1
- package/dist/chunks/{integration-m1714858.js → image-m1714858.js} +1 -1
- package/dist/chunks/{integration-h27fzsgv.js → image-m53nxytj.js} +28 -28
- package/dist/chunks/{integration-8x2emzdm.js → image-m9a097ew.js} +21 -21
- package/dist/chunks/{integration-m9w0rfyh.js → image-m9w0rfyh.js} +1 -1
- package/dist/chunks/{integration-maspj1v3.js → image-maspj1v3.js} +1 -1
- package/dist/chunks/{integration-k3knae48.js → image-mb69sj47.js} +8 -8
- package/dist/chunks/{integration-ehfeyf7e.js → image-mbxehrxz.js} +6 -6
- package/dist/chunks/{integration-7ye4ae45.js → image-me7kxg3j.js} +8 -8
- package/dist/chunks/{integration-kxgkgtx4.js → image-mgcbmcs2.js} +4 -4
- package/dist/chunks/{integration-m5e9s2n3.js → image-mjvp2mh8.js} +17 -17
- package/dist/chunks/{integration-xgb9jx38.js → image-mn53dk4j.js} +6 -6
- package/dist/chunks/{integration-1cymfj1p.js → image-ms29xhn4.js} +27 -27
- package/dist/chunks/{integration-ta7szm67.js → image-mwm3htwg.js} +11 -11
- package/dist/chunks/{integration-1xcgmt4f.js → image-mz3rk0b0.js} +28 -28
- package/dist/chunks/{integration-6es4hneh.js → image-n37ne1mj.js} +12 -12
- package/dist/chunks/{integration-yyqzfxc7.js → image-nev9sh8h.js} +2 -2
- package/dist/chunks/{integration-gt45kfe9.js → image-nn9s4rnw.js} +11 -11
- package/dist/chunks/{integration-weewmp9q.js → image-nssth8b2.js} +25 -25
- package/dist/chunks/{integration-bh1et42v.js → image-nszthedh.js} +3 -3
- package/dist/chunks/{integration-q0x40dkk.js → image-nv9yd4aq.js} +9 -9
- package/dist/chunks/{integration-1txcpx25.js → image-nw37va1b.js} +30 -30
- package/dist/chunks/{integration-z8ym8esj.js → image-ny9zvw5p.js} +15 -15
- package/dist/chunks/{integration-p015t6z3.js → image-p015t6z3.js} +2 -2
- package/dist/chunks/{integration-txmkmbh1.js → image-pa402c6d.js} +11 -11
- package/dist/chunks/{integration-pacbbjc0.js → image-pacbbjc0.js} +2 -2
- package/dist/chunks/{integration-bvafcta0.js → image-pdbd51ba.js} +4 -4
- package/dist/chunks/{integration-5qee7q8k.js → image-pdvd7m1f.js} +20 -20
- package/dist/chunks/{integration-9r1sq0hf.js → image-pg44jm9h.js} +51 -51
- package/dist/chunks/{integration-pknna89w.js → image-pknna89w.js} +1 -1
- package/dist/chunks/{integration-kyjtz1sy.js → image-prd1yy6a.js} +1 -1
- package/dist/chunks/{integration-pzh119na.js → image-prfjjx5x.js} +18 -18
- package/dist/chunks/{integration-414jxfdf.js → image-q228ra72.js} +23 -23
- package/dist/chunks/{integration-bdx4kxdv.js → image-q5cww84q.js} +21 -21
- package/dist/chunks/{integration-t63ar4cc.js → image-qb6v4vc1.js} +31 -31
- package/dist/chunks/{integration-9cdp65mn.js → image-qdk12pb8.js} +14 -14
- package/dist/chunks/{integration-wb5aj4gb.js → image-qdq5fnth.js} +32 -32
- package/dist/chunks/{integration-qjgzc4b4.js → image-qjgzc4b4.js} +1 -1
- package/dist/chunks/{integration-1smgd7ca.js → image-qnq98bxd.js} +7 -7
- package/dist/chunks/{integration-kv3ttt63.js → image-qpkxdm9j.js} +37 -37
- package/dist/chunks/{integration-y8bhjcew.js → image-qt5zzp9n.js} +21 -21
- package/dist/chunks/{integration-5bffra33.js → image-qv58hjd6.js} +3 -3
- package/dist/chunks/{integration-6gyjkw7v.js → image-qvhf4eb3.js} +19 -19
- package/dist/chunks/{integration-jr035f3y.js → image-qx116f43.js} +14 -14
- package/dist/chunks/{integration-r0yr0wbs.js → image-r0yr0wbs.js} +1 -1
- package/dist/chunks/{integration-m2xmg036.js → image-r2bs0s4v.js} +26 -26
- package/dist/chunks/{integration-1qx3pmcb.js → image-r2xd4ew5.js} +6 -6
- package/dist/chunks/{integration-w2eysc6j.js → image-r41sfy63.js} +6 -6
- package/dist/chunks/{integration-r542h3bh.js → image-r542h3bh.js} +1 -1
- package/dist/chunks/{integration-rb9dy4dg.js → image-rb9dy4dg.js} +1 -1
- package/dist/chunks/{integration-rjnacbrz.js → image-rjnacbrz.js} +2 -2
- package/dist/chunks/{integration-dggevncg.js → image-rq7797r7.js} +39 -39
- package/dist/chunks/{integration-rt5dr6hb.js → image-rt5dr6hb.js} +1 -1
- package/dist/chunks/{integration-w22292kr.js → image-rxyj7snx.js} +45 -45
- package/dist/chunks/{integration-hd1zzqtm.js → image-s1zj6bzn.js} +10 -10
- package/dist/chunks/{integration-dwwyec8z.js → image-s2pfznc4.js} +6 -6
- package/dist/chunks/{integration-g8dxatgd.js → image-s4x4f4r4.js} +14 -14
- package/dist/chunks/{integration-btjvwe70.js → image-s5psx021.js} +16 -16
- package/dist/chunks/{integration-sa3fpqfw.js → image-sa3fpqfw.js} +2 -2
- package/dist/chunks/{integration-k02enjmv.js → image-seg26xp6.js} +3 -3
- package/dist/chunks/{integration-sqjzf8x2.js → image-sqjzf8x2.js} +1 -1
- package/dist/chunks/{integration-2m9ncb4x.js → image-stk41r0w.js} +2 -2
- package/dist/chunks/{integration-6d6xnsqa.js → image-sv2aw4yq.js} +5 -5
- package/dist/chunks/{integration-8wc2fpae.js → image-szcgc7h4.js} +5 -5
- package/dist/chunks/{integration-jry8eft3.js → image-t6s00cw5.js} +28 -28
- package/dist/chunks/{integration-tczq8hjw.js → image-tczq8hjw.js} +1 -1
- package/dist/chunks/{integration-jjpbn9y3.js → image-tm2402v8.js} +17 -17
- package/dist/chunks/{integration-e2p6x81g.js → image-trdpwh3n.js} +25 -25
- package/dist/chunks/{integration-my4zabxr.js → image-ts7mkfs9.js} +3 -3
- package/dist/chunks/{integration-twv2r8f4.js → image-twv2r8f4.js} +2 -2
- package/dist/chunks/{integration-qmxyfk6f.js → image-v1c3zz2b.js} +6 -6
- package/dist/chunks/{integration-v2r1d0zg.js → image-v2r1d0zg.js} +1 -1
- package/dist/chunks/{integration-c5vw9ajk.js → image-vcjzr598.js} +35 -35
- package/dist/chunks/{integration-vd3b3yk9.js → image-vd3b3yk9.js} +1 -1
- package/dist/chunks/{integration-veqvce7d.js → image-veqvce7d.js} +1 -1
- package/dist/chunks/{integration-dr0fct71.js → image-vfm5f3jw.js} +19 -19
- package/dist/chunks/{integration-e5gw6wwr.js → image-vm0wcjea.js} +10 -10
- package/dist/chunks/{integration-vmfhgzt5.js → image-vmfhgzt5.js} +1 -1
- package/dist/chunks/{integration-mw8s5zmh.js → image-vprwmse2.js} +22 -22
- package/dist/chunks/{integration-z7qgckdk.js → image-vy169t87.js} +48 -48
- package/dist/chunks/{integration-w3wsvvr9.js → image-w3wsvvr9.js} +1 -1
- package/dist/chunks/{integration-76cb1hcw.js → image-w8qtt4th.js} +4 -4
- package/dist/chunks/{integration-wakvkjy4.js → image-wakvkjy4.js} +1 -1
- package/dist/chunks/{integration-wd87259q.js → image-wd87259q.js} +1 -1
- package/dist/chunks/{integration-kj42jrrq.js → image-wdc9bbpj.js} +32 -32
- package/dist/chunks/{integration-8b714bza.js → image-we1bjw9z.js} +8 -8
- package/dist/chunks/{integration-8zgwz0zm.js → image-wkazdzfr.js} +11 -11
- package/dist/chunks/{integration-mmx1mfjr.js → image-wqscedq8.js} +9 -9
- package/dist/chunks/{integration-4wvhc9k4.js → image-wrjr8pqm.js} +25 -25
- package/dist/chunks/{integration-mdp36yda.js → image-wyc60a8y.js} +3 -3
- package/dist/chunks/{integration-x38zy5q9.js → image-x20p7pmj.js} +10 -10
- package/dist/chunks/{integration-7d9wahhq.js → image-x22ax0pw.js} +20 -20
- package/dist/chunks/{integration-2wvpxzhr.js → image-x77sr07r.js} +7 -7
- package/dist/chunks/{integration-xd9cc171.js → image-xd9cc171.js} +1 -1
- package/dist/chunks/{integration-nt2e7ypv.js → image-xft7rm5f.js} +9 -9
- package/dist/chunks/{integration-54emna5z.js → image-xjd998z8.js} +21 -21
- package/dist/chunks/{integration-4pw98qd4.js → image-xsvq7cjt.js} +4 -4
- package/dist/chunks/{integration-ek9rkj5r.js → image-xt2t3akc.js} +187 -187
- package/dist/chunks/{integration-8aqd9tw0.js → image-xxd5pr01.js} +41 -41
- package/dist/chunks/image-y6d7k03n.js +261 -0
- package/dist/chunks/{integration-nsew6na4.js → image-y82bb1at.js} +7 -7
- package/dist/chunks/{integration-yb20nhc3.js → image-yb20nhc3.js} +1 -1
- package/dist/chunks/{integration-1bs2cpw9.js → image-yd49en6q.js} +27 -27
- package/dist/chunks/{integration-gjatpjy7.js → image-ydwgre56.js} +24 -24
- package/dist/chunks/{integration-pp110xbz.js → image-ye8ddrkf.js} +6 -6
- package/dist/chunks/{integration-w3ewejsb.js → image-ymr836y3.js} +17 -17
- package/dist/chunks/{integration-tep6g6t6.js → image-yx7jxc79.js} +2 -2
- package/dist/chunks/{integration-z0bkrqjs.js → image-z0bkrqjs.js} +1 -1
- package/dist/chunks/{integration-z38nccrw.js → image-z38nccrw.js} +1 -1
- package/dist/chunks/{integration-n6y7mxjs.js → image-z418xn19.js} +14 -14
- package/dist/chunks/{integration-3zmhjc9p.js → image-z7ksd8kv.js} +28 -28
- package/dist/chunks/{integration-s4vbq7v2.js → image-zcs1bfp9.js} +22 -22
- package/dist/chunks/{integration-rkpdfm1f.js → image-zdpw5xas.js} +31 -31
- package/dist/chunks/{integration-z9kr5gn7.js → image-ze5bwnkk.js} +9 -9
- package/dist/chunks/{integration-j4a3jt28.js → image-zg4bxvx0.js} +15 -15
- package/dist/chunks/{integration-3k0zbkzd.js → image-zjcmeswb.js} +24 -24
- package/dist/chunks/{integration-zkg84ctx.js → image-zkg84ctx.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +89 -89
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +104 -104
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +216 -216
- package/dist/config/plugin/compaction.js +157 -157
- package/dist/config/plugin/compatibility.js +137 -137
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +107 -107
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +140 -140
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +70 -70
- 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.gen.js +53 -53
- package/dist/database/migration.js +55 -55
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +97 -97
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +374 -374
- 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 +98 -98
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +100 -100
- 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 +78 -78
- package/dist/file-access.js +109 -109
- package/dist/file-mutation.js +99 -99
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +104 -104
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +109 -109
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +92 -92
- package/dist/generate.js +110 -110
- 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 +96 -96
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +365 -365
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +92 -92
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +93 -93
- package/dist/job.js +82 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +77 -77
- package/dist/location-activity.js +161 -161
- package/dist/location-lifecycle.js +108 -108
- package/dist/location-service-map.js +91 -91
- package/dist/location-services.js +362 -362
- package/dist/location.js +94 -94
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +96 -96
- package/dist/mcp/index.js +114 -114
- package/dist/mcp/instructions.js +141 -141
- package/dist/mcp/oauth.js +82 -82
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +95 -95
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +96 -96
- package/dist/model-resolver.js +104 -104
- package/dist/model-retry.js +1 -1
- package/dist/model.js +105 -105
- package/dist/models-dev.js +112 -112
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +118 -118
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +79 -79
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +107 -107
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +220 -220
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +101 -101
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +107 -107
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +95 -95
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +98 -98
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +100 -100
- package/dist/plugin/provider/gitlab.js +98 -98
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +82 -82
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +97 -97
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai-context-caps.js +95 -95
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +104 -104
- package/dist/plugin/provider/openrouter.js +96 -96
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +83 -83
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +96 -96
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +95 -95
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +96 -96
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +171 -171
- package/dist/plugin/sdk.js +80 -80
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +91 -91
- package/dist/plugin/vcs/hg.js +91 -91
- package/dist/plugin/verbosity.js +98 -98
- package/dist/plugin/warming.js +116 -116
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +231 -231
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +95 -95
- package/dist/provider.js +96 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +94 -94
- package/dist/repository-cache.js +86 -86
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +100 -100
- package/dist/rpc.js +91 -91
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +78 -78
- package/dist/session/compaction.js +141 -141
- package/dist/session/context.js +167 -167
- package/dist/session/diff.js +93 -93
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +226 -226
- package/dist/session/execution.js +131 -131
- package/dist/session/generate.js +167 -167
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +99 -99
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +125 -125
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +135 -135
- package/dist/session/projector.js +93 -93
- package/dist/session/prompt.js +110 -110
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +99 -99
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +105 -105
- package/dist/session/runner/publish-llm-event.js +118 -118
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +129 -129
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +108 -108
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +214 -214
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +165 -165
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +222 -222
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +8 -8
- 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 +134 -134
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +112 -112
- package/dist/skill.js +117 -117
- package/dist/snapshot.js +96 -96
- 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 +138 -138
- package/dist/tool/plugin/edit.js +125 -125
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +127 -127
- package/dist/tool/plugin/grep.js +129 -129
- package/dist/tool/plugin/mcp-resource.js +129 -129
- package/dist/tool/plugin/opencode.js +114 -114
- package/dist/tool/plugin/patch.js +123 -123
- package/dist/tool/plugin/question.js +108 -108
- package/dist/tool/plugin/read.js +130 -130
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +116 -116
- package/dist/tool/plugin/subagent.js +221 -221
- package/dist/tool/plugin/todo.js +140 -140
- package/dist/tool/plugin/webfetch.js +116 -116
- package/dist/tool/plugin/websearch.js +115 -115
- package/dist/tool/plugin/write.js +127 -127
- package/dist/tool/read-filesystem.js +103 -103
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +16 -16
- package/dist/usage-limits.js +91 -91
- 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 +7 -7
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +97 -97
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +98 -98
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +94 -94
- package/dist/voice.js +90 -90
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +80 -80
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -86
- 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 +94 -94
- package/dist/worktree.js +101 -101
- package/package.json +8 -8
- package/dist/chunks/integration-a4baghsc.js +0 -26
- package/dist/chunks/integration-a610t88q.js +0 -18
- package/dist/chunks/integration-kpsjcb79.js +0 -517
- package/dist/chunks/integration-twhys2c4.js +0 -261
- /package/dist/chunks/{integration-0qkdqm5v.js → image-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{integration-0zkw76rk.js → image-0zkw76rk.js} +0 -0
- /package/dist/chunks/{integration-17cy0kzp.js → image-17cy0kzp.js} +0 -0
- /package/dist/chunks/{integration-1cnp2v09.js → image-1cnp2v09.js} +0 -0
- /package/dist/chunks/{integration-24dcb14g.js → image-24dcb14g.js} +0 -0
- /package/dist/chunks/{integration-2710q6r3.js → image-2710q6r3.js} +0 -0
- /package/dist/chunks/{integration-2bv980vf.js → image-2bv980vf.js} +0 -0
- /package/dist/chunks/{integration-2c3vjs8z.js → image-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{integration-359p4xyc.js → image-359p4xyc.js} +0 -0
- /package/dist/chunks/{integration-3asan66x.js → image-3asan66x.js} +0 -0
- /package/dist/chunks/{integration-3v8g72cx.js → image-3v8g72cx.js} +0 -0
- /package/dist/chunks/{integration-3wcehsnq.js → image-3wcehsnq.js} +0 -0
- /package/dist/chunks/{integration-43n2bw4t.js → image-43n2bw4t.js} +0 -0
- /package/dist/chunks/{integration-4knz6hnm.js → image-4knz6hnm.js} +0 -0
- /package/dist/chunks/{integration-4vcrnpx2.js → image-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{integration-4y7fprxs.js → image-4y7fprxs.js} +0 -0
- /package/dist/chunks/{integration-53557ph1.js → image-53557ph1.js} +0 -0
- /package/dist/chunks/{integration-550bvhaj.js → image-550bvhaj.js} +0 -0
- /package/dist/chunks/{integration-5fjb7ams.js → image-5fjb7ams.js} +0 -0
- /package/dist/chunks/{integration-6prwharc.js → image-6prwharc.js} +0 -0
- /package/dist/chunks/{integration-6q2bdcd1.js → image-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{integration-7akdwqpd.js → image-7akdwqpd.js} +0 -0
- /package/dist/chunks/{integration-7m9af43g.js → image-7m9af43g.js} +0 -0
- /package/dist/chunks/{integration-822emrt2.js → image-822emrt2.js} +0 -0
- /package/dist/chunks/{integration-84wd9syh.js → image-84wd9syh.js} +0 -0
- /package/dist/chunks/{integration-88xbtdfr.js → image-88xbtdfr.js} +0 -0
- /package/dist/chunks/{integration-8n3pysct.js → image-8n3pysct.js} +0 -0
- /package/dist/chunks/{integration-8wj87zfr.js → image-8wj87zfr.js} +0 -0
- /package/dist/chunks/{integration-9a4afbnw.js → image-9a4afbnw.js} +0 -0
- /package/dist/chunks/{integration-9rqn6x4v.js → image-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{integration-a058387c.js → image-a058387c.js} +0 -0
- /package/dist/chunks/{integration-a6k6eb26.js → image-a6k6eb26.js} +0 -0
- /package/dist/chunks/{integration-af5trqkr.js → image-af5trqkr.js} +0 -0
- /package/dist/chunks/{integration-afrmfg78.js → image-afrmfg78.js} +0 -0
- /package/dist/chunks/{integration-aqzs7mqg.js → image-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{integration-atq7p7m5.js → image-atq7p7m5.js} +0 -0
- /package/dist/chunks/{integration-bkyjaxrp.js → image-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{integration-bmr6ed5q.js → image-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{integration-cf4snx6d.js → image-cf4snx6d.js} +0 -0
- /package/dist/chunks/{integration-cqv5kn06.js → image-cqv5kn06.js} +0 -0
- /package/dist/chunks/{integration-cvy3z8tj.js → image-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{integration-d9fn303g.js → image-d9fn303g.js} +0 -0
- /package/dist/chunks/{integration-d9jj8t3e.js → image-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{integration-dajrwvna.js → image-dajrwvna.js} +0 -0
- /package/dist/chunks/{integration-dap0rakb.js → image-dap0rakb.js} +0 -0
- /package/dist/chunks/{integration-df08tz66.js → image-df08tz66.js} +0 -0
- /package/dist/chunks/{integration-dy18nga0.js → image-dy18nga0.js} +0 -0
- /package/dist/chunks/{integration-e5kj55wp.js → image-e5kj55wp.js} +0 -0
- /package/dist/chunks/{integration-e73j6tqm.js → image-e73j6tqm.js} +0 -0
- /package/dist/chunks/{integration-ec1grn59.js → image-ec1grn59.js} +0 -0
- /package/dist/chunks/{integration-eh3zwz77.js → image-eh3zwz77.js} +0 -0
- /package/dist/chunks/{integration-emrn6kk6.js → image-emrn6kk6.js} +0 -0
- /package/dist/chunks/{integration-f0mxakyp.js → image-f0mxakyp.js} +0 -0
- /package/dist/chunks/{integration-f6n9ztr4.js → image-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{integration-faypxj3z.js → image-faypxj3z.js} +0 -0
- /package/dist/chunks/{integration-fd410y7t.js → image-fd410y7t.js} +0 -0
- /package/dist/chunks/{integration-g4wezp1m.js → image-g4wezp1m.js} +0 -0
- /package/dist/chunks/{integration-g86h250q.js → image-g86h250q.js} +0 -0
- /package/dist/chunks/{integration-gebd4c9n.js → image-gebd4c9n.js} +0 -0
- /package/dist/chunks/{integration-gftt206x.js → image-gftt206x.js} +0 -0
- /package/dist/chunks/{integration-hcxmzztb.js → image-hcxmzztb.js} +0 -0
- /package/dist/chunks/{integration-hk9envan.js → image-hk9envan.js} +0 -0
- /package/dist/chunks/{integration-j2ntwpah.js → image-j2ntwpah.js} +0 -0
- /package/dist/chunks/{integration-j5zkgpj8.js → image-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{integration-jjkms2e6.js → image-jjkms2e6.js} +0 -0
- /package/dist/chunks/{integration-jr7sbwjy.js → image-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{integration-jwfs4k6c.js → image-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{integration-jwr30sdr.js → image-jwr30sdr.js} +0 -0
- /package/dist/chunks/{integration-jze0r7bz.js → image-jze0r7bz.js} +0 -0
- /package/dist/chunks/{integration-jzg6c2d5.js → image-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{integration-m18g726c.js → image-m18g726c.js} +0 -0
- /package/dist/chunks/{integration-mp448xyj.js → image-mp448xyj.js} +0 -0
- /package/dist/chunks/{integration-msx8hqn2.js → image-msx8hqn2.js} +0 -0
- /package/dist/chunks/{integration-n05xt0ee.js → image-n05xt0ee.js} +0 -0
- /package/dist/chunks/{integration-n3j8tn72.js → image-n3j8tn72.js} +0 -0
- /package/dist/chunks/{integration-njntx4h6.js → image-njntx4h6.js} +0 -0
- /package/dist/chunks/{integration-pkyv6v7h.js → image-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{integration-q3sfg36h.js → image-q3sfg36h.js} +0 -0
- /package/dist/chunks/{integration-q74kybfr.js → image-q74kybfr.js} +0 -0
- /package/dist/chunks/{integration-qaymkmh1.js → image-qaymkmh1.js} +0 -0
- /package/dist/chunks/{integration-qb87gjwd.js → image-qb87gjwd.js} +0 -0
- /package/dist/chunks/{integration-qfa1cgps.js → image-qfa1cgps.js} +0 -0
- /package/dist/chunks/{integration-qg3g05ea.js → image-qg3g05ea.js} +0 -0
- /package/dist/chunks/{integration-qrg20bc0.js → image-qrg20bc0.js} +0 -0
- /package/dist/chunks/{integration-rcb2kzg1.js → image-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{integration-sdp7kfr6.js → image-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{integration-ssg3fenm.js → image-ssg3fenm.js} +0 -0
- /package/dist/chunks/{integration-ve7vex1e.js → image-ve7vex1e.js} +0 -0
- /package/dist/chunks/{integration-w803qqfp.js → image-w803qqfp.js} +0 -0
- /package/dist/chunks/{integration-wc3fc9cn.js → image-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{integration-wer8tq1h.js → image-wer8tq1h.js} +0 -0
- /package/dist/chunks/{integration-wjj7prxr.js → image-wjj7prxr.js} +0 -0
- /package/dist/chunks/{integration-wtztk69x.js → image-wtztk69x.js} +0 -0
- /package/dist/chunks/{integration-x0ckcb58.js → image-x0ckcb58.js} +0 -0
- /package/dist/chunks/{integration-x61499pn.js → image-x61499pn.js} +0 -0
- /package/dist/chunks/{integration-y44na4kk.js → image-y44na4kk.js} +0 -0
- /package/dist/chunks/{integration-y8f7s663.js → image-y8f7s663.js} +0 -0
- /package/dist/chunks/{integration-ygaqb7jw.js → image-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{integration-ym463w8f.js → image-ym463w8f.js} +0 -0
- /package/dist/chunks/{integration-z5v4ffb3.js → image-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{integration-z9919s4g.js → image-z9919s4g.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service87,
|
|
6
6
|
node91
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./image-seg26xp6.js";
|
|
8
|
+
import {
|
|
9
|
+
Service85,
|
|
10
|
+
node89
|
|
11
|
+
} from "./image-9m4m3tqa.js";
|
|
8
12
|
import {
|
|
9
13
|
Service86,
|
|
10
14
|
node90
|
|
11
|
-
} from "./
|
|
12
|
-
import {
|
|
13
|
-
Service78,
|
|
14
|
-
node82
|
|
15
|
-
} from "./integration-mzzay4f0.js";
|
|
15
|
+
} from "./image-j62djdb6.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID18,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info30,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event20,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./image-hdfrs5mg.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./image-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./image-ayjs7tqn.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./image-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID17,
|
|
40
|
+
Info: () => Info29,
|
|
41
|
+
NotFoundError: () => NotFoundError12,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service84,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node88,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID17 = ID18;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info29 = Info30;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError12 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID17
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service84 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,11 +98,11 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service86;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
|
-
const bus = yield*
|
|
105
|
+
const bus = yield* Service85;
|
|
106
106
|
const db = (yield* Service87).db;
|
|
107
107
|
const announcing = new Set;
|
|
108
108
|
const persist = Effect.fnUntraced(function* (project) {
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event20.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID17.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
174
|
+
return yield* new NotFoundError12({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event20.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID17.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID17.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const gitDiscover = Effect.fnUntraced(function* (dotGit) {
|
|
229
229
|
const repo = yield* git.repo.discover(AbsolutePath2.make(path.dirname(dotGit)));
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
239
239
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), fallback(repo.worktree));
|
|
240
240
|
const resolved = {
|
|
241
241
|
previous,
|
|
242
|
-
id: id ??
|
|
242
|
+
id: id ?? ID17.global,
|
|
243
243
|
directory: repo.worktree,
|
|
244
244
|
canonical,
|
|
245
245
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -264,7 +264,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
264
264
|
return;
|
|
265
265
|
const node = result.stdout.toString("utf8").split(`
|
|
266
266
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
267
|
-
return node ?
|
|
267
|
+
return node ? ID17.make(node) : undefined;
|
|
268
268
|
});
|
|
269
269
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
270
270
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -272,7 +272,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
272
272
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
273
273
|
return {
|
|
274
274
|
previous,
|
|
275
|
-
id: id ??
|
|
275
|
+
id: id ?? ID17.global,
|
|
276
276
|
directory: worktree,
|
|
277
277
|
vcs: { type: "hg", store: dotHg }
|
|
278
278
|
};
|
|
@@ -299,7 +299,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
299
299
|
});
|
|
300
300
|
}
|
|
301
301
|
return yield* save({
|
|
302
|
-
id:
|
|
302
|
+
id: ID17.make(Hash.fast(`directory:${directory}`)),
|
|
303
303
|
directory,
|
|
304
304
|
canonical: directory,
|
|
305
305
|
vcs: undefined
|
|
@@ -308,7 +308,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
308
308
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
309
309
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
310
310
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
311
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
311
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID17.global))).all().pipe(Effect.orDie);
|
|
312
312
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
313
313
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
314
314
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -321,23 +321,23 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
321
321
|
return;
|
|
322
322
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
323
323
|
if (row)
|
|
324
|
-
yield* bus.publish(
|
|
324
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
325
325
|
}), { concurrency: 8, discard: true });
|
|
326
326
|
});
|
|
327
|
-
return
|
|
327
|
+
return Service84.of({ list, update, activate, resolve, sweep });
|
|
328
328
|
}));
|
|
329
|
-
var
|
|
330
|
-
service:
|
|
329
|
+
var node88 = makeGlobalNode({
|
|
330
|
+
service: Service84,
|
|
331
331
|
layer,
|
|
332
|
-
deps: [
|
|
332
|
+
deps: [node89, node91, FSUtil.node, node90, AppProcess.node]
|
|
333
333
|
});
|
|
334
334
|
var sweepNode2 = makeGlobalNode({
|
|
335
335
|
name: "project-archive-sweep",
|
|
336
336
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
337
|
-
const project = yield*
|
|
337
|
+
const project = yield* Service84;
|
|
338
338
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
339
339
|
})),
|
|
340
|
-
deps: [
|
|
340
|
+
deps: [node88]
|
|
341
341
|
});
|
|
342
342
|
|
|
343
|
-
export {
|
|
343
|
+
export { ID17, Vcs2, Current2, Info29, UpdateInput3, NotFoundError12, root2, Service84, node88, sweepNode2, exports_project };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/filesystem/protected.ts
|
|
6
6
|
var exports_protected = {};
|
|
7
7
|
__export(exports_protected, {
|
|
8
8
|
Protected: () => exports_protected,
|
|
9
9
|
isHome: () => isHome2,
|
|
10
|
-
names: () =>
|
|
10
|
+
names: () => names4,
|
|
11
11
|
paths: () => paths2
|
|
12
12
|
});
|
|
13
13
|
import os from "os";
|
|
@@ -41,7 +41,7 @@ var DARWIN_LIBRARY = [
|
|
|
41
41
|
];
|
|
42
42
|
var DARWIN_ROOT = ["/.DocumentRevisions-V100", "/.Spotlight-V100", "/.Trashes", "/.fseventsd"];
|
|
43
43
|
var WIN32_HOME = ["AppData", "Downloads", "Desktop", "Documents", "Pictures", "Music", "Videos", "OneDrive"];
|
|
44
|
-
function
|
|
44
|
+
function names4() {
|
|
45
45
|
if (process.platform === "darwin")
|
|
46
46
|
return new Set(DARWIN_HOME);
|
|
47
47
|
if (process.platform === "win32")
|
|
@@ -60,4 +60,4 @@ function paths2() {
|
|
|
60
60
|
return [];
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
export { isHome2,
|
|
63
|
+
export { isHome2, names4, paths2, exports_protected };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getViewSelectedFieldsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./image-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/select.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./image-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service86,
|
|
9
|
+
node90
|
|
10
|
+
} from "./image-j62djdb6.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service83,
|
|
13
|
+
node87
|
|
14
|
+
} from "./image-ymr836y3.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./image-vd3b3yk9.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./image-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
|
+
ID: () => ID9,
|
|
27
|
+
Service: () => Service63,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node66,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID9 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service63 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service86;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service83;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID9.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
141
141
|
for (const [file, snapshot] of input.files) {
|
|
142
142
|
const absolute = path.resolve(worktree, file);
|
|
143
143
|
if (!FSUtil.contains(worktree, absolute))
|
|
144
|
-
return yield* new
|
|
144
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
145
145
|
files.set(file, TreeID2.make(snapshot));
|
|
146
146
|
}
|
|
147
147
|
return files;
|
|
148
148
|
});
|
|
149
149
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
150
150
|
if (!enabled())
|
|
151
|
-
return yield* new
|
|
151
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
152
152
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
153
153
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service63.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
156
156
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
157
|
-
var
|
|
158
|
-
service:
|
|
157
|
+
var node66 = makeLocationNode({
|
|
158
|
+
service: Service63,
|
|
159
159
|
layer,
|
|
160
|
-
deps: [FSUtil.node,
|
|
160
|
+
deps: [FSUtil.node, node90, Global.node, node87]
|
|
161
161
|
});
|
|
162
|
-
var noopLayer3 = Layer.succeed(
|
|
162
|
+
var noopLayer3 = Layer.succeed(Service63, Service63.of({
|
|
163
163
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
164
164
|
reload: () => Effect.void,
|
|
165
165
|
capture: () => Effect.undefined,
|
|
@@ -168,13 +168,13 @@ var noopLayer3 = Layer.succeed(Service40, Service40.of({
|
|
|
168
168
|
restore: () => Effect.void
|
|
169
169
|
}));
|
|
170
170
|
function failure(operation, cause) {
|
|
171
|
-
if (cause instanceof
|
|
171
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
172
172
|
return cause;
|
|
173
|
-
return new
|
|
173
|
+
return new Error3({
|
|
174
174
|
operation,
|
|
175
175
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
176
176
|
cause
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { ID9, Error3, Service63, node66, noopLayer3, exports_snapshot2 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service33,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node36
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service33 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service33, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service33.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service59, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node36 = makeGlobalNode({ service: Service33, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service33, node36, exports_environment };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-rb9dy4dg.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
ID9,
|
|
6
|
+
Service63
|
|
7
|
+
} from "./image-wdc9bbpj.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./image-ts7mkfs9.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./image-nszthedh.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./image-998yhzzq.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./image-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/session/diff.ts
|
|
22
22
|
var exports_diff = {};
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service63;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID9.make(from),
|
|
91
|
+
to: ID9.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/permission.ts
|
|
6
|
-
var
|
|
7
|
-
__export(
|
|
6
|
+
var exports_permission = {};
|
|
7
|
+
__export(exports_permission, {
|
|
8
8
|
Action: () => Action2,
|
|
9
|
-
ConfigPermissionV1: () =>
|
|
9
|
+
ConfigPermissionV1: () => exports_permission,
|
|
10
10
|
Entries: () => Entries2,
|
|
11
|
-
Info: () =>
|
|
11
|
+
Info: () => Info12,
|
|
12
12
|
Object: () => Object2,
|
|
13
|
-
Rule: () =>
|
|
13
|
+
Rule: () => Rule2
|
|
14
14
|
});
|
|
15
15
|
import { Schema, SchemaGetter } from "effect";
|
|
16
16
|
var Action2 = Schema.Literals(["ask", "allow", "deny"]).annotate({ identifier: "PermissionActionConfig" });
|
|
@@ -19,13 +19,13 @@ var Entries2 = (value) => Schema.ObjectKeyword.check(Schema.makeFilter((input) =
|
|
|
19
19
|
encode: SchemaGetter.transform((entries) => globalThis.Object.fromEntries(entries))
|
|
20
20
|
}));
|
|
21
21
|
var Object2 = Entries2(Action2).annotate({ identifier: "PermissionObjectConfig" });
|
|
22
|
-
var
|
|
22
|
+
var Rule2 = Schema.Union([Action2, Object2]).annotate({ identifier: "PermissionRuleConfig" });
|
|
23
23
|
var actionOnly = new Set(["question", "websearch", "doom_loop"]);
|
|
24
|
-
var
|
|
24
|
+
var Info12 = Schema.Union([Action2, Schema.ObjectKeyword]).pipe(Schema.decodeTo(Entries2(Rule2), {
|
|
25
25
|
decode: SchemaGetter.transform((input) => typeof input === "string" ? { "*": input } : input),
|
|
26
26
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
27
27
|
})).check(Schema.makeFilter((rules) => rules.every(([key, rule]) => !actionOnly.has(key) || typeof rule === "string"), {
|
|
28
28
|
expected: "question, websearch, and doom_loop to be ask, allow, or deny"
|
|
29
29
|
})).annotate({ identifier: "PermissionConfig" });
|
|
30
30
|
|
|
31
|
-
export { Action2, Entries2, Object2,
|
|
31
|
+
export { Action2, Entries2, Object2, Rule2, Info12, exports_permission };
|