@opencode/core 0.0.0-dev-21908 → 0.0.0-dev-21915
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 +85 -85
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/{location-lifecycle-qyq8h28g.js → event-logger-033a0jkt.js} +3 -3
- package/dist/chunks/{location-lifecycle-034tev2y.js → event-logger-034tev2y.js} +2 -2
- package/dist/chunks/{location-lifecycle-6zq7s0af.js → event-logger-061dfjk9.js} +11 -11
- package/dist/chunks/{location-lifecycle-3nmzsehc.js → event-logger-0eyqpy28.js} +29 -29
- package/dist/chunks/{location-lifecycle-j2rmyh1n.js → event-logger-0mg8kcn3.js} +43 -14
- package/dist/chunks/{location-lifecycle-d6j7cmfe.js → event-logger-0svvf4a3.js} +36 -36
- package/dist/chunks/{location-lifecycle-xf2yn8qh.js → event-logger-0xy3w4m6.js} +8 -8
- package/dist/chunks/{location-lifecycle-dc494qzb.js → event-logger-179sgv51.js} +27 -27
- package/dist/chunks/{location-lifecycle-k7mszyx5.js → event-logger-1db62psx.js} +36 -36
- package/dist/chunks/{location-lifecycle-1ep2p91f.js → event-logger-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-lifecycle-3qnkc5ty.js → event-logger-1fnhqpt4.js} +16 -16
- package/dist/chunks/{location-lifecycle-8d5qxm04.js → event-logger-1nsj622r.js} +14 -14
- package/dist/chunks/{location-lifecycle-ydpy656n.js → event-logger-1qjnrqep.js} +11 -11
- package/dist/chunks/{location-lifecycle-b1p62gvs.js → event-logger-1rjegszx.js} +4 -4
- package/dist/chunks/{location-lifecycle-1x2knyw4.js → event-logger-1x2knyw4.js} +1 -1
- package/dist/chunks/{location-lifecycle-ra34yqmw.js → event-logger-1z6t7raf.js} +6 -6
- package/dist/chunks/{location-lifecycle-204s3925.js → event-logger-204s3925.js} +1 -1
- package/dist/chunks/{location-lifecycle-gnk6vb74.js → event-logger-213mv4pq.js} +21 -21
- package/dist/chunks/{location-lifecycle-43c62mg5.js → event-logger-2dbq5t1r.js} +15 -15
- package/dist/chunks/{location-lifecycle-cdznd2n8.js → event-logger-2kc953ej.js} +21 -21
- package/dist/chunks/{location-lifecycle-eh5ddjcb.js → event-logger-2nf2vr7j.js} +18 -18
- package/dist/chunks/{location-lifecycle-21pdxbx2.js → event-logger-2yvtks3w.js} +3 -3
- package/dist/chunks/{location-lifecycle-2z1j29yd.js → event-logger-2z1j29yd.js} +1 -1
- package/dist/chunks/{location-lifecycle-djjzzs3c.js → event-logger-30147ds3.js} +6 -6
- package/dist/chunks/{location-lifecycle-f1kgynkh.js → event-logger-331zmft7.js} +15 -15
- package/dist/chunks/{location-lifecycle-xp053dmv.js → event-logger-33j2zr63.js} +89 -89
- package/dist/chunks/{location-lifecycle-yj99x9f8.js → event-logger-3h86dkjt.js} +13 -13
- package/dist/chunks/{location-lifecycle-3hepkmqq.js → event-logger-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-lifecycle-mydme2jh.js → event-logger-3jazymwx.js} +17 -17
- package/dist/chunks/{location-lifecycle-3nnrz6f6.js → event-logger-3nnrz6f6.js} +1 -1
- package/dist/chunks/{location-lifecycle-9058a6p8.js → event-logger-408nx0y9.js} +40 -40
- package/dist/chunks/{location-lifecycle-r41sfy63.js → event-logger-40za9wsf.js} +6 -6
- package/dist/chunks/{location-lifecycle-vvy4n04y.js → event-logger-410zp742.js} +21 -21
- package/dist/chunks/{location-lifecycle-v66dz0c2.js → event-logger-43c01wrt.js} +19 -19
- package/dist/chunks/{location-lifecycle-crj7314x.js → event-logger-44552vd9.js} +12 -12
- package/dist/chunks/{location-lifecycle-efv53qt9.js → event-logger-4538h11c.js} +7 -7
- package/dist/chunks/{location-lifecycle-45056y1z.js → event-logger-4dtq8qg7.js} +58 -58
- package/dist/chunks/{location-lifecycle-xdh4e2a1.js → event-logger-4m87gk4h.js} +2 -2
- package/dist/chunks/event-logger-4my81qaj.js +18 -0
- package/dist/chunks/{location-lifecycle-1r9pq8px.js → event-logger-4pkf34m0.js} +77 -77
- package/dist/chunks/{location-lifecycle-4v008n1t.js → event-logger-4v008n1t.js} +1 -1
- package/dist/chunks/{location-lifecycle-24j7j0yw.js → event-logger-4xa9359s.js} +9 -9
- package/dist/chunks/{location-lifecycle-4xvmh7wp.js → event-logger-4xvmh7wp.js} +3 -3
- package/dist/chunks/{location-lifecycle-8fmmq68j.js → event-logger-4zf9yj1j.js} +115 -35
- package/dist/chunks/{location-lifecycle-c0c5nhmx.js → event-logger-530cxj2z.js} +35 -35
- package/dist/chunks/{location-lifecycle-v52ev8jp.js → event-logger-57p1m9rz.js} +32 -32
- package/dist/chunks/{location-lifecycle-7xyg0zkz.js → event-logger-58fpqt79.js} +9 -9
- package/dist/chunks/{location-lifecycle-7m0xfmn5.js → event-logger-5cppamkc.js} +23 -23
- package/dist/chunks/{location-lifecycle-5m9w47nd.js → event-logger-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-lifecycle-cqxf2v2j.js → event-logger-5r72z9dp.js} +8 -8
- package/dist/chunks/{location-lifecycle-6n5e5r47.js → event-logger-5rn25pwd.js} +18 -18
- package/dist/chunks/{location-lifecycle-g6x6yjtr.js → event-logger-5rt97jkw.js} +12 -12
- package/dist/chunks/{location-lifecycle-1yq9hg58.js → event-logger-5zrxpy3q.js} +5 -5
- package/dist/chunks/{location-lifecycle-2asws2s2.js → event-logger-618s5217.js} +14 -14
- package/dist/chunks/{location-lifecycle-hk18cedt.js → event-logger-68ms0fh2.js} +21 -21
- package/dist/chunks/{location-lifecycle-6esdw8yj.js → event-logger-6esdw8yj.js} +1 -1
- package/dist/chunks/{location-lifecycle-da2kvbdp.js → event-logger-6nye8dts.js} +9 -9
- package/dist/chunks/{location-lifecycle-6pjqjmy2.js → event-logger-6pjqjmy2.js} +1 -1
- package/dist/chunks/{location-lifecycle-21np7pz1.js → event-logger-6szn2v48.js} +37 -37
- package/dist/chunks/{location-lifecycle-8wc2fpae.js → event-logger-6y263vp8.js} +5 -5
- package/dist/chunks/{location-lifecycle-xh54azxv.js → event-logger-6yv8zpps.js} +21 -13
- package/dist/chunks/{location-lifecycle-76cb1hcw.js → event-logger-76cb1hcw.js} +1 -1
- package/dist/chunks/{location-lifecycle-cnezdtt3.js → event-logger-76szp9yy.js} +46 -46
- package/dist/chunks/{location-lifecycle-15phv1ny.js → event-logger-77s6zpp3.js} +29 -29
- package/dist/chunks/{location-lifecycle-tghw5mys.js → event-logger-78n4qc0z.js} +4 -4
- package/dist/chunks/{location-lifecycle-7bmhse3q.js → event-logger-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-lifecycle-xxtgb6sa.js → event-logger-7che9vcx.js} +19 -19
- package/dist/chunks/event-logger-7q08zbzq.js +26 -0
- package/dist/chunks/{location-lifecycle-swp53ejc.js → event-logger-7vz8pb8x.js} +45 -45
- package/dist/chunks/{location-lifecycle-7w2ypzdf.js → event-logger-7w2ypzdf.js} +1 -1
- package/dist/chunks/{location-lifecycle-wsxpqbdm.js → event-logger-7ytgdqqc.js} +25 -25
- package/dist/chunks/{location-lifecycle-6kqqag5p.js → event-logger-83fr3fym.js} +16 -16
- package/dist/chunks/{location-lifecycle-44jn6qr4.js → event-logger-86g6sxng.js} +12 -12
- package/dist/chunks/{location-lifecycle-ndmv9r8h.js → event-logger-886bz3e9.js} +56 -30
- package/dist/chunks/{location-lifecycle-1e6ty7xe.js → event-logger-88a5ws0g.js} +22 -22
- package/dist/chunks/{location-lifecycle-583pkegd.js → event-logger-8aemar9r.js} +45 -45
- package/dist/chunks/{location-lifecycle-aqcs9gph.js → event-logger-8h2npe5w.js} +6 -6
- package/dist/chunks/{location-lifecycle-11hfp36g.js → event-logger-8jztxfpf.js} +4 -4
- package/dist/chunks/{location-lifecycle-z226nxt7.js → event-logger-8k8s1td8.js} +5 -5
- package/dist/chunks/{location-lifecycle-8wtp7s3z.js → event-logger-8wtp7s3z.js} +1 -1
- package/dist/chunks/{location-lifecycle-91rj84md.js → event-logger-91rj84md.js} +1 -1
- package/dist/chunks/event-logger-99bhpp1n.js +517 -0
- package/dist/chunks/{location-lifecycle-qm8ewe7w.js → event-logger-9crppwnt.js} +13 -13
- package/dist/chunks/{location-lifecycle-9cx9sm2q.js → event-logger-9cx9sm2q.js} +1 -1
- package/dist/chunks/{location-lifecycle-s0588k8a.js → event-logger-9f7hjvpa.js} +18 -18
- package/dist/chunks/{location-lifecycle-jn88007r.js → event-logger-9r0x1bva.js} +9 -9
- package/dist/chunks/{location-lifecycle-bqrrerqn.js → event-logger-9rr00cqq.js} +32 -32
- package/dist/chunks/{location-lifecycle-2dx8ra8x.js → event-logger-9s0e97ng.js} +36 -36
- package/dist/chunks/{location-lifecycle-zgd8t41s.js → event-logger-9z9tayqc.js} +9 -9
- package/dist/chunks/{location-lifecycle-0d9p3c2x.js → event-logger-a32zpqad.js} +9 -9
- package/dist/chunks/{location-lifecycle-bdmysry5.js → event-logger-a52e4zaq.js} +5 -5
- package/dist/chunks/{location-lifecycle-3paewqb6.js → event-logger-a8sm5zt7.js} +11 -11
- package/dist/chunks/{location-lifecycle-53sxntf7.js → event-logger-akgtqb0c.js} +11 -11
- package/dist/chunks/{location-lifecycle-ayjs7tqn.js → event-logger-ayjs7tqn.js} +2 -2
- package/dist/chunks/{location-lifecycle-b0mv4wxm.js → event-logger-b0mv4wxm.js} +2 -2
- package/dist/chunks/{location-lifecycle-jvhc8y22.js → event-logger-b42k84jp.js} +22 -22
- package/dist/chunks/{location-lifecycle-5nnwax6m.js → event-logger-b6vsg801.js} +5 -5
- package/dist/chunks/{location-lifecycle-sg3bf8v2.js → event-logger-b8teqy6w.js} +5 -5
- package/dist/chunks/{location-lifecycle-t7myweak.js → event-logger-basczpv8.js} +14 -14
- package/dist/chunks/{location-lifecycle-h6vtwdne.js → event-logger-bf5n42xj.js} +11 -11
- package/dist/chunks/{location-lifecycle-xp2yp5n3.js → event-logger-bfbc4kpy.js} +7 -7
- package/dist/chunks/{location-lifecycle-028e5jg0.js → event-logger-bn6jkna4.js} +18 -18
- package/dist/chunks/{location-lifecycle-5snkchxy.js → event-logger-bqe25t1z.js} +5 -5
- package/dist/chunks/{location-lifecycle-jneg3k74.js → event-logger-brd5eeq0.js} +8 -8
- package/dist/chunks/{location-lifecycle-bm4gstpq.js → event-logger-bvn4drfw.js} +8 -8
- package/dist/chunks/{location-lifecycle-kshh01vy.js → event-logger-bw78fe9b.js} +10 -10
- package/dist/chunks/{location-lifecycle-y6dv563x.js → event-logger-bwsx8aca.js} +13 -13
- package/dist/chunks/{location-lifecycle-kydg8q3s.js → event-logger-c1df77m2.js} +18 -18
- package/dist/chunks/{location-lifecycle-2f4mgkkf.js → event-logger-c1gsg3g8.js} +5 -5
- package/dist/chunks/{location-lifecycle-6wbd4xnq.js → event-logger-c36nnf6h.js} +6 -6
- package/dist/chunks/{location-lifecycle-x5338emj.js → event-logger-c9pz1jz6.js} +5 -5
- package/dist/chunks/{location-lifecycle-mprgj00x.js → event-logger-cdgpjepk.js} +34 -34
- package/dist/chunks/event-logger-cfbx046s.js +257 -0
- package/dist/chunks/{location-lifecycle-dvke8c51.js → event-logger-ch94d7vp.js} +5 -5
- package/dist/chunks/{location-lifecycle-j03kz36w.js → event-logger-ck0tns3b.js} +38 -38
- package/dist/chunks/{location-lifecycle-c6x7d2ts.js → event-logger-cpvd08na.js} +4 -4
- package/dist/chunks/{location-lifecycle-s9gx43g4.js → event-logger-cqgy4j9b.js} +33 -33
- package/dist/chunks/{location-lifecycle-d4v9tmah.js → event-logger-d4v9tmah.js} +2 -2
- package/dist/chunks/{location-lifecycle-9b138bm1.js → event-logger-dj4zrkts.js} +4 -4
- package/dist/chunks/{location-lifecycle-dfwbs5ec.js → event-logger-dwcq4ckc.js} +12 -12
- package/dist/chunks/{location-lifecycle-7zab0ebj.js → event-logger-dynzjwsk.js} +1 -1
- package/dist/chunks/{location-lifecycle-4nc9a7xj.js → event-logger-dzd14etx.js} +21 -21
- package/dist/chunks/{location-lifecycle-gk8pf4x2.js → event-logger-e066yxsa.js} +32 -32
- package/dist/chunks/{location-lifecycle-kccrvse4.js → event-logger-e19z48h8.js} +11 -11
- package/dist/chunks/{location-lifecycle-w04hajkc.js → event-logger-e6bk7rc7.js} +8 -8
- package/dist/chunks/{location-lifecycle-e834z07m.js → event-logger-e834z07m.js} +1 -1
- package/dist/chunks/{location-lifecycle-ejnm2tv5.js → event-logger-ejnhfpwt.js} +35 -35
- package/dist/chunks/{location-lifecycle-e07q2w5p.js → event-logger-eky6j0x6.js} +9 -9
- package/dist/chunks/{location-lifecycle-qyaey30s.js → event-logger-ez16syfw.js} +9 -9
- package/dist/chunks/{location-lifecycle-kpexrj34.js → event-logger-f1bpp1ef.js} +25 -25
- package/dist/chunks/{location-lifecycle-54q26zph.js → event-logger-f1gxq19d.js} +1 -1
- package/dist/chunks/{location-lifecycle-wpqwsn6a.js → event-logger-f7aqmhgm.js} +11 -11
- package/dist/chunks/{location-lifecycle-dhepf5k1.js → event-logger-f9c14s45.js} +3 -3
- package/dist/chunks/{location-lifecycle-ty4d2nkd.js → event-logger-fa5mv2e8.js} +33 -33
- package/dist/chunks/{location-lifecycle-fffv3p7h.js → event-logger-fffv3p7h.js} +1 -1
- package/dist/chunks/{location-lifecycle-tj0d3mv0.js → event-logger-fh08m5h2.js} +4 -4
- package/dist/chunks/{location-lifecycle-gnxm9zvh.js → event-logger-fjg1f0qa.js} +28 -28
- package/dist/chunks/{location-lifecycle-n85rjewb.js → event-logger-frm2a0t2.js} +9 -9
- package/dist/chunks/{location-lifecycle-fznmdakp.js → event-logger-fznmdakp.js} +1 -1
- package/dist/chunks/{location-lifecycle-92twe937.js → event-logger-g179cxj4.js} +34 -34
- package/dist/chunks/{location-lifecycle-2f4dsyv8.js → event-logger-g1ac2pg3.js} +7 -7
- package/dist/chunks/{location-lifecycle-g5h9c0rr.js → event-logger-g5h9c0rr.js} +2 -2
- package/dist/chunks/{location-lifecycle-zgt5j0h2.js → event-logger-g6dfma3d.js} +2 -2
- package/dist/chunks/{location-lifecycle-p6y8kjpr.js → event-logger-ga597wxg.js} +22 -22
- package/dist/chunks/{location-lifecycle-gg8p9cgs.js → event-logger-gg8p9cgs.js} +3 -3
- package/dist/chunks/{location-lifecycle-wad6xj88.js → event-logger-gy4a15hj.js} +41 -41
- package/dist/chunks/{location-lifecycle-0m9q59s6.js → event-logger-h3b857xk.js} +4 -4
- package/dist/chunks/{location-lifecycle-t92s7142.js → event-logger-h9sxfnc4.js} +31 -31
- package/dist/chunks/{location-lifecycle-a0qbyar6.js → event-logger-hdfrs5mg.js} +5 -5
- package/dist/chunks/{location-lifecycle-4z1m5q35.js → event-logger-herh7hrd.js} +8 -8
- package/dist/chunks/{location-lifecycle-c4a8kt2y.js → event-logger-hgbyz31g.js} +24 -24
- package/dist/chunks/{location-lifecycle-56t9khd1.js → event-logger-hh6grysg.js} +4 -4
- package/dist/chunks/{location-lifecycle-y8hpptjh.js → event-logger-ht33fk1k.js} +12 -12
- package/dist/chunks/{location-lifecycle-p42wc6w5.js → event-logger-hwadrnp3.js} +11 -11
- package/dist/chunks/{location-lifecycle-2txhztxc.js → event-logger-hzqt23km.js} +41 -26
- package/dist/chunks/{location-lifecycle-j113cymg.js → event-logger-j113cymg.js} +1 -1
- package/dist/chunks/{location-lifecycle-ak3w6k6z.js → event-logger-j4danyaa.js} +4 -4
- package/dist/chunks/{location-lifecycle-d9z8hdxr.js → event-logger-j7e2k5v8.js} +41 -41
- package/dist/chunks/{location-lifecycle-ydkf0bj3.js → event-logger-jtk69epa.js} +31 -31
- package/dist/chunks/{location-lifecycle-hy6qt35j.js → event-logger-jv1fc1mx.js} +14 -14
- package/dist/chunks/{location-lifecycle-0ft0yr9w.js → event-logger-jxr5ks98.js} +6 -6
- package/dist/chunks/{location-lifecycle-1x0kbyy9.js → event-logger-jz593hnq.js} +14 -14
- package/dist/chunks/{location-lifecycle-k814nvkf.js → event-logger-k814nvkf.js} +1 -1
- package/dist/chunks/{location-lifecycle-8vbpf0m9.js → event-logger-k8ya5e1r.js} +25 -25
- package/dist/chunks/{location-lifecycle-g2bzhkzw.js → event-logger-kfvrqrnd.js} +21 -21
- package/dist/chunks/{location-lifecycle-ktnx6nfw.js → event-logger-khycn197.js} +9 -9
- package/dist/chunks/{location-lifecycle-7mfv9kz5.js → event-logger-kqdytwcc.js} +18 -18
- package/dist/chunks/{location-lifecycle-kt3bjfbg.js → event-logger-kt3bjfbg.js} +1 -1
- package/dist/chunks/{location-lifecycle-18fg54k7.js → event-logger-kv7q9t9v.js} +55 -55
- package/dist/chunks/{location-lifecycle-k90hg5nq.js → event-logger-m0b3df16.js} +18 -18
- package/dist/chunks/{location-lifecycle-m1714858.js → event-logger-m1714858.js} +1 -1
- package/dist/chunks/{location-lifecycle-djtsprq9.js → event-logger-m239h48j.js} +10 -10
- package/dist/chunks/{location-lifecycle-8y4jps98.js → event-logger-m37sd98t.js} +4 -4
- package/dist/chunks/{location-lifecycle-m9w0rfyh.js → event-logger-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-lifecycle-maspj1v3.js → event-logger-maspj1v3.js} +1 -1
- package/dist/chunks/{location-lifecycle-cynzgytk.js → event-logger-mby4m2vn.js} +11 -11
- package/dist/chunks/{location-lifecycle-7xx7sts6.js → event-logger-md82vg28.js} +25 -25
- package/dist/chunks/{location-lifecycle-krj48ye9.js → event-logger-mfp9msn1.js} +47 -47
- package/dist/chunks/{location-lifecycle-symkg8d2.js → event-logger-mptppmq7.js} +5 -5
- package/dist/chunks/{location-lifecycle-6cqcnmzq.js → event-logger-mq16y592.js} +3 -3
- package/dist/chunks/{location-lifecycle-70y17xeh.js → event-logger-mtrbqqrq.js} +5 -5
- package/dist/chunks/{location-lifecycle-39fa55hs.js → event-logger-mzrr2ceq.js} +27 -27
- package/dist/chunks/{location-lifecycle-vrcsa8qx.js → event-logger-n7bnkb3p.js} +9 -9
- package/dist/chunks/{location-lifecycle-nah043kf.js → event-logger-nah043kf.js} +1 -1
- package/dist/chunks/{location-lifecycle-4tk2v8fm.js → event-logger-nfht88f8.js} +40 -40
- package/dist/chunks/{location-lifecycle-sp01zcey.js → event-logger-nn2wptpk.js} +5 -5
- package/dist/chunks/{location-lifecycle-zb5gs1ba.js → event-logger-nvxqht09.js} +3 -3
- package/dist/chunks/{location-lifecycle-2rn5yfm1.js → event-logger-nz5t40nw.js} +13 -13
- package/dist/chunks/{location-lifecycle-p015t6z3.js → event-logger-p015t6z3.js} +2 -2
- package/dist/chunks/{location-lifecycle-bhdbhctw.js → event-logger-p2nmcv9d.js} +13 -13
- package/dist/chunks/{location-lifecycle-8e7tv7eg.js → event-logger-p3kn9h9d.js} +29 -29
- package/dist/chunks/{location-lifecycle-ztf6n3de.js → event-logger-p76me67c.js} +4 -4
- package/dist/chunks/{location-lifecycle-qamzk6x1.js → event-logger-pacbbjc0.js} +7 -7
- package/dist/chunks/{location-lifecycle-ze1jx3cz.js → event-logger-pap6y6k1.js} +193 -193
- package/dist/chunks/{location-lifecycle-k4px567t.js → event-logger-peyy5ms6.js} +24 -24
- package/dist/chunks/{location-lifecycle-bgetk685.js → event-logger-phatgdjg.js} +14 -14
- package/dist/chunks/{location-lifecycle-pknna89w.js → event-logger-pknna89w.js} +1 -1
- package/dist/chunks/{location-lifecycle-fmwh225f.js → event-logger-pmbbezah.js} +22 -22
- package/dist/chunks/{location-lifecycle-1qqyp8g5.js → event-logger-pqzzv18e.js} +17 -17
- package/dist/chunks/{location-lifecycle-mm7a63e9.js → event-logger-prq7xxp2.js} +8 -8
- package/dist/chunks/{location-lifecycle-vx6ny987.js → event-logger-psvq06ac.js} +4 -4
- package/dist/chunks/{location-lifecycle-6c56xz8q.js → event-logger-pymyzg4j.js} +11 -11
- package/dist/chunks/{location-lifecycle-ad26sn84.js → event-logger-q05tgvb2.js} +1 -1
- package/dist/chunks/{location-lifecycle-d4safsx6.js → event-logger-q2vz9kat.js} +20 -20
- package/dist/chunks/{location-lifecycle-0kb0esn6.js → event-logger-q61wn67c.js} +12 -12
- package/dist/chunks/{location-lifecycle-98ps9a1j.js → event-logger-qa95shqj.js} +23 -23
- package/dist/chunks/{location-lifecycle-n4w1y350.js → event-logger-qa9tft3h.js} +120 -94
- package/dist/chunks/{location-lifecycle-ankhr68s.js → event-logger-qd1s09xq.js} +28 -28
- package/dist/chunks/{location-lifecycle-neny76qq.js → event-logger-qfjvy58c.js} +6 -6
- package/dist/chunks/{location-lifecycle-fmnt9ehj.js → event-logger-qg7vbzw0.js} +27 -27
- package/dist/chunks/{location-lifecycle-hrsrp69b.js → event-logger-qgehj1ry.js} +23 -23
- package/dist/chunks/{location-lifecycle-dt88w47r.js → event-logger-qnxr7c2a.js} +6 -6
- package/dist/chunks/{location-lifecycle-72j05hbq.js → event-logger-qwcg15xq.js} +2 -2
- package/dist/chunks/{location-lifecycle-r0yr0wbs.js → event-logger-r0yr0wbs.js} +1 -1
- package/dist/chunks/{location-lifecycle-r542h3bh.js → event-logger-r542h3bh.js} +1 -1
- package/dist/chunks/{location-lifecycle-rb9dy4dg.js → event-logger-rb9dy4dg.js} +1 -1
- package/dist/chunks/{location-lifecycle-5wj3x46p.js → event-logger-re1qaq4d.js} +15 -15
- package/dist/chunks/{location-lifecycle-9060xwwx.js → event-logger-rrd1tyyg.js} +5 -5
- package/dist/chunks/{location-lifecycle-rt5dr6hb.js → event-logger-rt5dr6hb.js} +1 -1
- package/dist/chunks/{location-lifecycle-9x3s0wgq.js → event-logger-ryaxndx4.js} +37 -37
- package/dist/chunks/{location-lifecycle-61ennm6n.js → event-logger-s626qfae.js} +4 -4
- package/dist/chunks/{location-lifecycle-7x0pcwj8.js → event-logger-sa2m7fmb.js} +21 -21
- package/dist/chunks/{location-lifecycle-sa3fpqfw.js → event-logger-sa3fpqfw.js} +2 -2
- package/dist/chunks/{location-lifecycle-6fxgcwam.js → event-logger-sc7s3392.js} +15 -15
- package/dist/chunks/{location-lifecycle-x196pd4c.js → event-logger-sfe1x69m.js} +42 -42
- package/dist/chunks/{location-lifecycle-qc0wsmwq.js → event-logger-shd4apfp.js} +5 -5
- package/dist/chunks/{location-lifecycle-zw3278ky.js → event-logger-shdc20fs.js} +14 -14
- package/dist/chunks/{location-lifecycle-3mmzrpsj.js → event-logger-sjt0aqsb.js} +24 -24
- package/dist/chunks/{location-lifecycle-p6pw9whk.js → event-logger-sk0dcrgn.js} +1 -1
- package/dist/chunks/{location-lifecycle-35t0dhq3.js → event-logger-skpj3wch.js} +13 -13
- package/dist/chunks/{location-lifecycle-sqjzf8x2.js → event-logger-sqjzf8x2.js} +1 -1
- package/dist/chunks/{location-lifecycle-b1pn0vxn.js → event-logger-ssfehs1z.js} +4 -4
- package/dist/chunks/{location-lifecycle-041k09c0.js → event-logger-ssv8d6ry.js} +3 -3
- package/dist/chunks/{location-lifecycle-tegm2x1x.js → event-logger-st4dmjma.js} +50 -50
- package/dist/chunks/{location-lifecycle-0w2jttgf.js → event-logger-st7p3hwb.js} +2 -2
- package/dist/chunks/{location-lifecycle-5791fv37.js → event-logger-sy707q11.js} +11 -11
- package/dist/chunks/{location-lifecycle-vmwpcxrh.js → event-logger-syrbqdmj.js} +19 -19
- package/dist/chunks/{location-lifecycle-04pje3kj.js → event-logger-t5zwprfx.js} +32 -32
- package/dist/chunks/{location-lifecycle-13eaqaby.js → event-logger-t7z44kv1.js} +33 -33
- package/dist/chunks/{location-lifecycle-2gc4yf1d.js → event-logger-tbx1dsy3.js} +23 -23
- package/dist/chunks/{location-lifecycle-qzzfvzvj.js → event-logger-tcjkzhbf.js} +19 -19
- package/dist/chunks/{location-lifecycle-tczq8hjw.js → event-logger-tczq8hjw.js} +1 -1
- package/dist/chunks/{location-lifecycle-xmkr896k.js → event-logger-td0tf8cx.js} +11 -11
- package/dist/chunks/{location-lifecycle-t1g8akh6.js → event-logger-tdjd85a2.js} +34 -34
- package/dist/chunks/{location-lifecycle-ydsespw1.js → event-logger-tg1vr1qt.js} +8 -8
- package/dist/chunks/{location-lifecycle-c7c2803h.js → event-logger-ts1a0z93.js} +21 -21
- package/dist/chunks/{location-lifecycle-twv2r8f4.js → event-logger-twv2r8f4.js} +2 -2
- package/dist/chunks/{location-lifecycle-mre43e2x.js → event-logger-tyred3qc.js} +18 -18
- package/dist/chunks/{location-lifecycle-v2r1d0zg.js → event-logger-v2r1d0zg.js} +1 -1
- package/dist/chunks/{location-lifecycle-veqvce7d.js → event-logger-veqvce7d.js} +1 -1
- package/dist/chunks/{location-lifecycle-a1rqxjpc.js → event-logger-vhwcqbf2.js} +19 -19
- package/dist/chunks/{location-lifecycle-4f3z0smc.js → event-logger-vkhmt3za.js} +32 -32
- package/dist/chunks/{location-lifecycle-j40t6js0.js → event-logger-vpbqyf0k.js} +22 -22
- package/dist/chunks/{location-lifecycle-qssmn7t2.js → event-logger-vqrx5bk3.js} +8 -8
- package/dist/chunks/{location-lifecycle-bdqn9720.js → event-logger-vx7ymf2n.js} +30 -30
- package/dist/chunks/{location-lifecycle-hjnjc3ts.js → event-logger-vxxaf4jx.js} +8 -8
- package/dist/chunks/{location-lifecycle-b60yey21.js → event-logger-vz52s56h.js} +54 -54
- package/dist/chunks/{location-lifecycle-fr8djkxe.js → event-logger-w0cs00f7.js} +18 -18
- package/dist/chunks/{location-lifecycle-bj67wmp5.js → event-logger-w2b5jz6s.js} +3 -3
- package/dist/chunks/{location-lifecycle-2kg89srt.js → event-logger-w35wzz9x.js} +4 -4
- package/dist/chunks/{location-lifecycle-w3wsvvr9.js → event-logger-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-lifecycle-wakvkjy4.js → event-logger-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-lifecycle-wd87259q.js → event-logger-wd87259q.js} +1 -1
- package/dist/chunks/{location-lifecycle-39xamrjb.js → event-logger-wvngvz36.js} +17 -17
- package/dist/chunks/{location-lifecycle-n510q2e5.js → event-logger-wyqjen5s.js} +11 -11
- package/dist/chunks/{location-lifecycle-jz86pzzm.js → event-logger-wzp5edw8.js} +8 -8
- package/dist/chunks/{location-lifecycle-tffwexhc.js → event-logger-x0hhhwgh.js} +35 -35
- package/dist/chunks/{location-lifecycle-a4tsa7r1.js → event-logger-x0z7d0h1.js} +23 -23
- package/dist/chunks/{location-lifecycle-vnkxp1ve.js → event-logger-x57zhnt4.js} +50 -50
- package/dist/chunks/{location-lifecycle-anfccx7e.js → event-logger-x98cm754.js} +18 -18
- package/dist/chunks/{location-lifecycle-vkj83s5t.js → event-logger-xczbbc2n.js} +13 -13
- package/dist/chunks/{location-lifecycle-bstexjd6.js → event-logger-xd9cc171.js} +5 -5
- package/dist/chunks/{location-lifecycle-6dxg04eh.js → event-logger-xm0409en.js} +6 -6
- package/dist/chunks/{location-lifecycle-943sj690.js → event-logger-xxadresr.js} +22 -22
- package/dist/chunks/{location-lifecycle-wns4vpfp.js → event-logger-xzk44jme.js} +27 -27
- package/dist/chunks/{location-lifecycle-yara3q77.js → event-logger-yara3q77.js} +2 -2
- package/dist/chunks/{location-lifecycle-yb20nhc3.js → event-logger-yb20nhc3.js} +1 -1
- package/dist/chunks/{location-lifecycle-rdr92g8z.js → event-logger-ygbhaca5.js} +14 -14
- package/dist/chunks/{location-lifecycle-q3j43vdg.js → event-logger-yyt2djfr.js} +12 -12
- package/dist/chunks/{location-lifecycle-z0bkrqjs.js → event-logger-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-lifecycle-z38nccrw.js → event-logger-z38nccrw.js} +1 -1
- package/dist/chunks/{location-lifecycle-7fktg098.js → event-logger-z8rfms9g.js} +12 -12
- package/dist/chunks/{location-lifecycle-zkg84ctx.js → event-logger-zkg84ctx.js} +1 -1
- package/dist/chunks/{location-lifecycle-qedxx4df.js → event-logger-zmwdvt2x.js} +11 -11
- package/dist/chunks/{location-lifecycle-3svk3m7v.js → event-logger-zq9gq21d.js} +11 -11
- package/dist/chunks/{location-lifecycle-2bb3sknj.js → event-logger-zt0grhjq.js} +36 -36
- package/dist/chunks/{location-lifecycle-1hh3w1a4.js → event-logger-zt1y2eyh.js} +15 -15
- package/dist/chunks/{location-lifecycle-kkms64sw.js → event-logger-zxhnf3hq.js} +6 -6
- 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 +89 -89
- package/dist/config/discovery.js +90 -90
- package/dist/config/integration.js +7 -7
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +121 -121
- package/dist/config/plugin/command.js +219 -219
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +128 -128
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +145 -145
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +91 -91
- package/dist/database/database.js +78 -78
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/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.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +98 -98
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +381 -381
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +103 -103
- 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 +80 -80
- package/dist/file-access.js +140 -140
- package/dist/file-mutation.js +102 -102
- 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 +86 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +110 -110
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +113 -113
- 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 +99 -99
- 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 +372 -372
- package/dist/instruction-discovery.js +92 -92
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +82 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +166 -166
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +369 -369
- package/dist/location.js +93 -93
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +168 -168
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev.js +111 -111
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +141 -141
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +94 -94
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +108 -108
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +342 -342
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +104 -104
- package/dist/plugin/module.js +121 -121
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +128 -128
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +121 -121
- package/dist/plugin/provider/opencode-legacy.js +106 -106
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +128 -128
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +80 -80
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +359 -359
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- 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 +8 -8
- package/dist/plugin.js +232 -232
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +107 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +132 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +164 -164
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- 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 +231 -231
- package/dist/session/execution.js +154 -154
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +129 -127
- package/dist/session/inbox.js +146 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +134 -134
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +81 -81
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +230 -230
- package/dist/session/usage.js +1 -1
- package/dist/session.js +221 -221
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +146 -146
- package/dist/snapshot.js +101 -101
- 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 +165 -165
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +158 -158
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +145 -145
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +136 -136
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +224 -224
- package/dist/tool/plugin/skill.js +149 -149
- package/dist/tool/plugin/subagent.js +224 -224
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +147 -147
- package/dist/tool/plugin/websearch.js +147 -147
- package/dist/tool/plugin/write.js +156 -156
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/session/blob.d.ts +929 -0
- package/dist/types/session/history.d.ts +853 -0
- package/dist/types/session/inbox.d.ts +114 -2
- package/dist/types/session/prompt.d.ts +2 -1
- package/dist/types/session/store.d.ts +7 -0
- package/dist/types/session/stored.d.ts +2 -2
- package/dist/types/session.d.ts +9 -0
- package/dist/usage-limits.js +93 -93
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +92 -92
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- 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 +97 -97
- package/dist/worktree.js +108 -108
- package/package.json +9 -9
- package/dist/chunks/location-lifecycle-5g0d07fr.js +0 -26
- package/dist/chunks/location-lifecycle-73fwqkva.js +0 -517
- package/dist/chunks/location-lifecycle-7yv5xa0k.js +0 -18
- package/dist/chunks/location-lifecycle-bv8yd5sr.js +0 -257
- /package/dist/chunks/{location-lifecycle-0qkdqm5v.js → event-logger-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-0zkw76rk.js → event-logger-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-17cy0kzp.js → event-logger-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1cnp2v09.js → event-logger-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-lifecycle-24dcb14g.js → event-logger-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2710q6r3.js → event-logger-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2bv980vf.js → event-logger-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2c3vjs8z.js → event-logger-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-359p4xyc.js → event-logger-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3asan66x.js → event-logger-3asan66x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3v8g72cx.js → event-logger-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3wcehsnq.js → event-logger-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-lifecycle-43n2bw4t.js → event-logger-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4knz6hnm.js → event-logger-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4m86bj6y.js → event-logger-4m86bj6y.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4vcrnpx2.js → event-logger-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4y7fprxs.js → event-logger-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-lifecycle-53557ph1.js → event-logger-53557ph1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-550bvhaj.js → event-logger-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-5fjb7ams.js → event-logger-5fjb7ams.js} +0 -0
- /package/dist/chunks/{location-lifecycle-5w3e23ze.js → event-logger-5w3e23ze.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6prwharc.js → event-logger-6prwharc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6q2bdcd1.js → event-logger-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7akdwqpd.js → event-logger-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7m9af43g.js → event-logger-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-822emrt2.js → event-logger-822emrt2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-84wd9syh.js → event-logger-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-lifecycle-88xbtdfr.js → event-logger-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8n3pysct.js → event-logger-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8wj87zfr.js → event-logger-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9a4afbnw.js → event-logger-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9rqn6x4v.js → event-logger-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-a058387c.js → event-logger-a058387c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-a6k6eb26.js → event-logger-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-lifecycle-af5trqkr.js → event-logger-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-afrmfg78.js → event-logger-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-lifecycle-aqzs7mqg.js → event-logger-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-lifecycle-atq7p7m5.js → event-logger-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bkyjaxrp.js → event-logger-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bmr6ed5q.js → event-logger-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cf4snx6d.js → event-logger-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cqv5kn06.js → event-logger-cqv5kn06.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cvy3z8tj.js → event-logger-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9fn303g.js → event-logger-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9jj8t3e.js → event-logger-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dajrwvna.js → event-logger-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dap0rakb.js → event-logger-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-df08tz66.js → event-logger-df08tz66.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dy18nga0.js → event-logger-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e3qxr5gk.js → event-logger-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e5kj55wp.js → event-logger-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e73j6tqm.js → event-logger-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ec1grn59.js → event-logger-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-lifecycle-eh3zwz77.js → event-logger-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-lifecycle-emrn6kk6.js → event-logger-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f0mxakyp.js → event-logger-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f6n9ztr4.js → event-logger-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-faypxj3z.js → event-logger-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fd410y7t.js → event-logger-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fkpq3x5p.js → event-logger-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g4wezp1m.js → event-logger-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g86h250q.js → event-logger-g86h250q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gebd4c9n.js → event-logger-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gftt206x.js → event-logger-gftt206x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hcxmzztb.js → event-logger-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hk9envan.js → event-logger-hk9envan.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j2ntwpah.js → event-logger-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j5zkgpj8.js → event-logger-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jjkms2e6.js → event-logger-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jr7sbwjy.js → event-logger-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jwfs4k6c.js → event-logger-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jwr30sdr.js → event-logger-jwr30sdr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jze0r7bz.js → event-logger-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jzg6c2d5.js → event-logger-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-m18g726c.js → event-logger-m18g726c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-mp448xyj.js → event-logger-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-msx8hqn2.js → event-logger-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n05xt0ee.js → event-logger-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n3j8tn72.js → event-logger-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-lifecycle-njntx4h6.js → event-logger-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q3sfg36h.js → event-logger-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q74kybfr.js → event-logger-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qaymkmh1.js → event-logger-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qb87gjwd.js → event-logger-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qfa1cgps.js → event-logger-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qg3g05ea.js → event-logger-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qrg20bc0.js → event-logger-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-rcb2kzg1.js → event-logger-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-sdp7kfr6.js → event-logger-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ssg3fenm.js → event-logger-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ve7vex1e.js → event-logger-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-w803qqfp.js → event-logger-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wc3fc9cn.js → event-logger-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wer8tq1h.js → event-logger-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wjj7prxr.js → event-logger-wjj7prxr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wtztk69x.js → event-logger-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x0ckcb58.js → event-logger-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x61499pn.js → event-logger-x61499pn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y44na4kk.js → event-logger-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8f7s663.js → event-logger-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ygaqb7jw.js → event-logger-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ym463w8f.js → event-logger-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z5v4ffb3.js → event-logger-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z9919s4g.js → event-logger-z9919s4g.js} +0 -0
|
@@ -1,26 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service86
|
|
3
|
+
} from "./event-logger-bwsx8aca.js";
|
|
4
|
+
import {
|
|
5
|
+
Service76
|
|
6
|
+
} from "./event-logger-6nye8dts.js";
|
|
4
7
|
import {
|
|
5
8
|
detect2
|
|
6
|
-
} from "./
|
|
9
|
+
} from "./event-logger-2z1j29yd.js";
|
|
7
10
|
import {
|
|
8
11
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
12
|
+
} from "./event-logger-4my81qaj.js";
|
|
10
13
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
14
|
+
Service77
|
|
15
|
+
} from "./event-logger-e6bk7rc7.js";
|
|
13
16
|
import {
|
|
14
17
|
AttachmentError2,
|
|
15
18
|
SkillNotFoundError2
|
|
16
|
-
} from "./
|
|
19
|
+
} from "./event-logger-2yvtks3w.js";
|
|
20
|
+
import {
|
|
21
|
+
Ref2,
|
|
22
|
+
refHash2
|
|
23
|
+
} from "./event-logger-prq7xxp2.js";
|
|
24
|
+
import {
|
|
25
|
+
read3
|
|
26
|
+
} from "./event-logger-4zf9yj1j.js";
|
|
17
27
|
import {
|
|
18
28
|
prepare3,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
29
|
+
Service35
|
|
30
|
+
} from "./event-logger-md82vg28.js";
|
|
21
31
|
import {
|
|
22
32
|
__export
|
|
23
|
-
} from "./
|
|
33
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
24
34
|
|
|
25
35
|
// src/session/prompt.ts
|
|
26
36
|
var exports_prompt = {};
|
|
@@ -31,13 +41,13 @@ __export(exports_prompt, {
|
|
|
31
41
|
import { Base64, FileAttachment } from "@opencode/schema/prompt";
|
|
32
42
|
import { SessionInbox } from "@opencode/schema/session-inbox";
|
|
33
43
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
34
|
-
import { Effect } from "effect";
|
|
44
|
+
import { Effect, Option, Schema } from "effect";
|
|
35
45
|
import path from "path";
|
|
36
46
|
import { fileURLToPath } from "url";
|
|
37
47
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
38
48
|
const fs = yield* FSUtil.Service;
|
|
39
49
|
yield* awaitActivation2;
|
|
40
|
-
const hooks = yield*
|
|
50
|
+
const hooks = yield* Service77;
|
|
41
51
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
42
52
|
sessionID: request.session.id,
|
|
43
53
|
messageID: request.messageID,
|
|
@@ -56,7 +66,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
56
66
|
const selected = yield* Effect.gen(function* () {
|
|
57
67
|
if (!requested?.length)
|
|
58
68
|
return;
|
|
59
|
-
const skillService = yield*
|
|
69
|
+
const skillService = yield* Service35;
|
|
60
70
|
const prepared = new Map;
|
|
61
71
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
62
72
|
const name = prepared.get(attachment.id);
|
|
@@ -87,6 +97,18 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
87
97
|
};
|
|
88
98
|
});
|
|
89
99
|
var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(function* (input) {
|
|
100
|
+
const ref = Schema.decodeUnknownOption(Ref2)(input.uri);
|
|
101
|
+
if (Option.isSome(ref)) {
|
|
102
|
+
const blob = yield* readBlobAttachment(ref.value);
|
|
103
|
+
return FileAttachment.create({
|
|
104
|
+
data: Base64.make(Buffer.from(blob.data).toString("base64")),
|
|
105
|
+
mime: blob.mime,
|
|
106
|
+
source: { type: "inline" },
|
|
107
|
+
name: input.name,
|
|
108
|
+
description: input.description,
|
|
109
|
+
mention: input.mention
|
|
110
|
+
});
|
|
111
|
+
}
|
|
90
112
|
const label = attachmentLabel(input);
|
|
91
113
|
const resolved = input.uri.startsWith("data:") ? {
|
|
92
114
|
bytes: yield* decodeDataURL(input.uri, label),
|
|
@@ -118,12 +140,19 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
118
140
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
119
141
|
if (!mime.startsWith("image/"))
|
|
120
142
|
return { data: Base64.make(data), mime };
|
|
121
|
-
const image = yield*
|
|
143
|
+
const image = yield* Service76;
|
|
122
144
|
const label = attachmentLabel(input);
|
|
123
145
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
124
146
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
125
147
|
return { data: Base64.make(normalized.content), mime: normalized.mime };
|
|
126
148
|
});
|
|
149
|
+
var readBlobAttachment = Effect.fn("SessionPrompt.readBlobAttachment")(function* (uri) {
|
|
150
|
+
const { db } = yield* Service86;
|
|
151
|
+
const blob = yield* read3(db, refHash2(uri));
|
|
152
|
+
if (!blob)
|
|
153
|
+
return yield* new AttachmentError2({ uri, message: `Attachment is no longer stored: ${uri}` });
|
|
154
|
+
return blob;
|
|
155
|
+
});
|
|
127
156
|
var readFileAttachment = Effect.fn("SessionPrompt.readFileAttachment")(function* (uri) {
|
|
128
157
|
const fs = yield* FSUtil.Service;
|
|
129
158
|
const url = yield* Effect.try({
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./event-logger-83fr3fym.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key3,
|
|
7
7
|
External2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service67,
|
|
9
|
+
node70
|
|
10
|
+
} from "./event-logger-530cxj2z.js";
|
|
11
11
|
import {
|
|
12
12
|
changes2,
|
|
13
13
|
create3
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./event-logger-204s3925.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./event-logger-s626qfae.js";
|
|
18
18
|
import {
|
|
19
19
|
validateAnswer2,
|
|
20
20
|
validateFields2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./event-logger-179sgv51.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/integration.ts
|
|
27
|
-
var
|
|
28
|
-
__export(
|
|
27
|
+
var exports_integration = {};
|
|
28
|
+
__export(exports_integration, {
|
|
29
29
|
Attempt: () => Attempt2,
|
|
30
30
|
AttemptID: () => AttemptID2,
|
|
31
31
|
AttemptNotFoundError: () => AttemptNotFoundError2,
|
|
@@ -36,18 +36,18 @@ __export(exports_integration2, {
|
|
|
36
36
|
CommandAttemptStatus: () => CommandAttemptStatus2,
|
|
37
37
|
CommandMethod: () => CommandMethod2,
|
|
38
38
|
EnvMethod: () => EnvMethod2,
|
|
39
|
-
Event: () =>
|
|
39
|
+
Event: () => Event14,
|
|
40
40
|
ExternalMethod: () => ExternalMethod2,
|
|
41
|
-
ID: () =>
|
|
42
|
-
Info: () =>
|
|
43
|
-
Integration: () =>
|
|
41
|
+
ID: () => ID12,
|
|
42
|
+
Info: () => Info21,
|
|
43
|
+
Integration: () => exports_integration,
|
|
44
44
|
KeyMethod: () => KeyMethod2,
|
|
45
45
|
Method: () => Method2,
|
|
46
46
|
MethodID: () => MethodID2,
|
|
47
47
|
OAuthMethod: () => OAuthMethod2,
|
|
48
48
|
Ref: () => Ref4,
|
|
49
|
-
Service: () =>
|
|
50
|
-
node: () =>
|
|
49
|
+
Service: () => Service66,
|
|
50
|
+
node: () => node69
|
|
51
51
|
});
|
|
52
52
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
53
53
|
import {
|
|
@@ -69,8 +69,8 @@ import {
|
|
|
69
69
|
import { Integration } from "@opencode/schema/integration";
|
|
70
70
|
import { AppProcess } from "@opencode/util/process";
|
|
71
71
|
import { ChildProcess } from "effect/process";
|
|
72
|
-
import { Event as
|
|
73
|
-
var
|
|
72
|
+
import { Event as Event14 } from "@opencode/schema/integration";
|
|
73
|
+
var ID12 = Integration.ID;
|
|
74
74
|
var MethodID2 = Integration.MethodID;
|
|
75
75
|
var AttemptID2 = Integration.AttemptID;
|
|
76
76
|
var OAuthMethod2 = Integration.OAuthMethod;
|
|
@@ -79,7 +79,7 @@ var KeyMethod2 = Integration.KeyMethod;
|
|
|
79
79
|
var ExternalMethod2 = Integration.ExternalMethod;
|
|
80
80
|
var EnvMethod2 = Integration.EnvMethod;
|
|
81
81
|
var Method2 = Integration.Method;
|
|
82
|
-
var
|
|
82
|
+
var Info21 = Integration.Info;
|
|
83
83
|
var Attempt2 = Integration.Attempt;
|
|
84
84
|
var AttemptStatus2 = Integration.AttemptStatus;
|
|
85
85
|
var CommandAttempt2 = Integration.CommandAttempt;
|
|
@@ -102,20 +102,20 @@ class AuthorizationError2 extends Schema.TaggedError()("Integration.Authorizatio
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNotFound", {
|
|
105
|
-
integrationID:
|
|
105
|
+
integrationID: ID12,
|
|
106
106
|
attemptID: AttemptID2
|
|
107
107
|
}) {
|
|
108
108
|
}
|
|
109
109
|
var Ref4 = Integration.Ref;
|
|
110
110
|
|
|
111
|
-
class
|
|
111
|
+
class Service66 extends Context.Service()("@opencode/Integration") {
|
|
112
112
|
}
|
|
113
113
|
var attemptLifetime = Duration.toMillis(Duration.minutes(10));
|
|
114
114
|
var terminalRetention = Duration.toMillis(Duration.minutes(1));
|
|
115
115
|
var scrubInterval = Duration.seconds(30);
|
|
116
|
-
var layer = Layer.effect(
|
|
117
|
-
const credentials = yield*
|
|
118
|
-
const bus = yield*
|
|
116
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
117
|
+
const credentials = yield* Service67;
|
|
118
|
+
const bus = yield* Service85;
|
|
119
119
|
const processes = yield* AppProcess.Service;
|
|
120
120
|
const scope = yield* Scope.Scope;
|
|
121
121
|
const attempts = SynchronizedRef.makeUnsafe(new Map);
|
|
@@ -215,7 +215,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
215
215
|
const env = (entry?.methods ?? []).filter((method) => method.type === "env").flatMap((method) => method.names.filter((name) => process.env[name])).map((name) => ({ type: "env", name }));
|
|
216
216
|
return [...credentials, ...env];
|
|
217
217
|
};
|
|
218
|
-
const project = (entry, connections) =>
|
|
218
|
+
const project = (entry, connections) => Info21.make({
|
|
219
219
|
id: entry.ref.id,
|
|
220
220
|
name: entry.ref.name,
|
|
221
221
|
...entry.ref.metadata === undefined ? {} : { metadata: entry.ref.metadata },
|
|
@@ -302,7 +302,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
302
302
|
const persistence = yield* createCredential({
|
|
303
303
|
integrationID: attempt.integrationID,
|
|
304
304
|
label: attempt.label,
|
|
305
|
-
value:
|
|
305
|
+
value: Key3.make({ type: "key", key: exit.value })
|
|
306
306
|
}).pipe(Effect.asVoid, Effect.exit);
|
|
307
307
|
const settledAt = yield* Clock.currentTimeMillis;
|
|
308
308
|
const terminal = Exit.isSuccess(persistence) ? {
|
|
@@ -448,7 +448,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
448
448
|
}).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
|
|
449
449
|
return CommandAttempt2.make({ attemptID, time });
|
|
450
450
|
});
|
|
451
|
-
return
|
|
451
|
+
return Service66.of({
|
|
452
452
|
transform: state.transform,
|
|
453
453
|
reload: state.reload,
|
|
454
454
|
revision: state.revision,
|
|
@@ -470,7 +470,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
470
470
|
resolve: Effect.fn("Integration.connection.resolve")(function* (connection) {
|
|
471
471
|
if (connection.type === "env") {
|
|
472
472
|
const key = process.env[connection.name];
|
|
473
|
-
return key ?
|
|
473
|
+
return key ? Key3.make({ type: "key", key }) : undefined;
|
|
474
474
|
}
|
|
475
475
|
const credential = yield* credentials.get(connection.id);
|
|
476
476
|
if (!credential)
|
|
@@ -503,7 +503,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
503
503
|
yield* createCredential({
|
|
504
504
|
integrationID: input.integrationID,
|
|
505
505
|
label: input.label,
|
|
506
|
-
value:
|
|
506
|
+
value: Key3.make({
|
|
507
507
|
type: "key",
|
|
508
508
|
key: input.key,
|
|
509
509
|
...Object.keys(answer).length > 0 ? { metadata: answer } : {}
|
|
@@ -630,10 +630,10 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
630
630
|
}
|
|
631
631
|
});
|
|
632
632
|
}));
|
|
633
|
-
var
|
|
634
|
-
service:
|
|
633
|
+
var node69 = makeLocationNode({
|
|
634
|
+
service: Service66,
|
|
635
635
|
layer,
|
|
636
|
-
deps: [
|
|
636
|
+
deps: [node70, node89, AppProcess.node]
|
|
637
637
|
});
|
|
638
638
|
|
|
639
|
-
export {
|
|
639
|
+
export { ID12, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, ExternalMethod2, EnvMethod2, Method2, Info21, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref4, Service66, node69, exports_integration, Event14 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service32
|
|
3
|
+
} from "./event-logger-k8ya5e1r.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service51
|
|
6
|
+
} from "./event-logger-1z6t7raf.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-4my81qaj.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,10 +19,10 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
22
|
+
const instances = yield* Service51;
|
|
23
23
|
yield* Effect.gen(function* () {
|
|
24
24
|
yield* awaitActivation2;
|
|
25
|
-
const commands = yield*
|
|
25
|
+
const commands = yield* Service32;
|
|
26
26
|
yield* commands.execute({
|
|
27
27
|
name: input.command,
|
|
28
28
|
invocation: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./event-logger-83fr3fym.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event16,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID14,
|
|
20
|
+
Info: () => Info24,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service68,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer26,
|
|
29
|
+
node: () => node71,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event16 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID14 = Form.ID;
|
|
39
|
+
var Info24 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -44,8 +44,8 @@ var State3 = Form.State;
|
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID14
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID14
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID14
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID14,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service68 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer26 = Layer.effect(Service68, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service85;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID14.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer28 = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service68.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node71 = makeLocationNode({ service: Service68, layer: layer26, deps: [node89] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID14, Info24, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service68, layer26, node71, validateAnswer2, validateFields2, exports_form, Event16 };
|
|
@@ -1,59 +1,59 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./event-logger-83fr3fym.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service68,
|
|
7
|
+
node71
|
|
8
|
+
} from "./event-logger-179sgv51.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service83,
|
|
11
|
+
node87
|
|
12
|
+
} from "./event-logger-g179cxj4.js";
|
|
13
13
|
import {
|
|
14
14
|
Ref5,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service82,
|
|
16
|
+
node86
|
|
17
|
+
} from "./event-logger-jz593hnq.js";
|
|
18
18
|
import {
|
|
19
19
|
canonical3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./event-logger-a32zpqad.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionEvent2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./event-logger-ec1grn59.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service55,
|
|
26
|
+
node58
|
|
27
|
+
} from "./event-logger-ck0tns3b.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service81,
|
|
30
|
+
node85
|
|
31
|
+
} from "./event-logger-5rn25pwd.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/location-lifecycle.ts
|
|
37
37
|
var exports_location_lifecycle = {};
|
|
38
38
|
__export(exports_location_lifecycle, {
|
|
39
39
|
LocationLifecycle: () => exports_location_lifecycle,
|
|
40
|
-
Service: () =>
|
|
41
|
-
node: () =>
|
|
40
|
+
Service: () => Service16,
|
|
41
|
+
node: () => node18
|
|
42
42
|
});
|
|
43
43
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
44
44
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
45
45
|
import { LocationEvent } from "@opencode/schema/location-event";
|
|
46
46
|
var isSessionEvent = Schema.is(SessionEvent2.Durable);
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service16 extends Context.Service()("@opencode/LocationLifecycle") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
51
|
-
const bus = yield*
|
|
52
|
-
const location = yield*
|
|
53
|
-
const permission = yield*
|
|
54
|
-
const forms = yield*
|
|
55
|
-
const rpc = yield*
|
|
56
|
-
const project = yield*
|
|
50
|
+
var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
51
|
+
const bus = yield* Service85;
|
|
52
|
+
const location = yield* Service82;
|
|
53
|
+
const permission = yield* Service55;
|
|
54
|
+
const forms = yield* Service68;
|
|
55
|
+
const rpc = yield* Service81;
|
|
56
|
+
const project = yield* Service83;
|
|
57
57
|
const scope = yield* Effect.scope;
|
|
58
58
|
yield* project.activate(location.project.id);
|
|
59
59
|
const unsubscribe = yield* bus.listen((event) => {
|
|
@@ -80,15 +80,15 @@ var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
|
80
80
|
});
|
|
81
81
|
}).pipe(Effect.ensuring(Deferred.succeed(done, undefined)));
|
|
82
82
|
}).pipe(Effect.uninterruptible);
|
|
83
|
-
return
|
|
83
|
+
return Service16.of({
|
|
84
84
|
isClosed: () => closed,
|
|
85
85
|
shutdown
|
|
86
86
|
});
|
|
87
87
|
}));
|
|
88
|
-
var
|
|
89
|
-
service:
|
|
88
|
+
var node18 = makeLocationNode({
|
|
89
|
+
service: Service16,
|
|
90
90
|
layer,
|
|
91
|
-
deps: [
|
|
91
|
+
deps: [node89, node86, node58, node87, node71, node85]
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
export {
|
|
94
|
+
export { Service16, node18, exports_location_lifecycle };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./event-logger-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./event-logger-034tev2y.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./event-logger-jz593hnq.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key4,
|
|
7
7
|
make21,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./event-logger-brd5eeq0.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./event-logger-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/instructions/builtins.ts
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service24,
|
|
19
|
+
node: () => node27
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service24 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service82;
|
|
29
|
+
return Service24.of({
|
|
30
30
|
load: () => Effect.succeed(combine2([
|
|
31
31
|
make21({
|
|
32
|
-
key:
|
|
32
|
+
key: Key4.make("core/date"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
35
35
|
render: {
|
|
@@ -38,7 +38,7 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
38
38
|
}
|
|
39
39
|
}),
|
|
40
40
|
make21({
|
|
41
|
-
key:
|
|
41
|
+
key: Key4.make("core/environment"),
|
|
42
42
|
codec: Schema.toCodecJson(Schema.String),
|
|
43
43
|
read: Effect.sync(() => [
|
|
44
44
|
"<env>",
|
|
@@ -60,6 +60,6 @@ var layer = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
60
60
|
]))
|
|
61
61
|
});
|
|
62
62
|
}));
|
|
63
|
-
var
|
|
63
|
+
var node27 = makeLocationNode({ service: Service24, layer, deps: [Global.node, node86] });
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { Service24, node27, exports_builtins };
|