@opencode/core 0.0.0-dev-21881 → 0.0.0-dev-21894
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 +89 -89
- package/dist/aisdk-native.js +97 -96
- package/dist/aisdk.js +103 -102
- package/dist/app.js +7 -7
- package/dist/bus.js +79 -79
- package/dist/chunks/{generate-034tev2y.js → image-034tev2y.js} +2 -2
- package/dist/chunks/{generate-py2ydaen.js → image-0chf3frg.js} +15 -15
- package/dist/chunks/{generate-d47y8g47.js → image-0f33tz00.js} +22 -22
- package/dist/chunks/{generate-amjfyfwc.js → image-0f57eq9f.js} +21 -21
- package/dist/chunks/{generate-2p4wxb8m.js → image-0hhp0beb.js} +41 -41
- package/dist/chunks/{generate-bqbcn5z1.js → image-0jq6xs6g.js} +19 -19
- package/dist/chunks/{generate-ke35y05g.js → image-0namxv6m.js} +11 -11
- package/dist/chunks/{generate-h4m582a6.js → image-0t1h01ha.js} +35 -35
- package/dist/chunks/{generate-2mm464fz.js → image-0twh7x0p.js} +43 -43
- package/dist/chunks/{generate-qgj1m8vp.js → image-0xa5r7gy.js} +20 -20
- package/dist/chunks/{generate-gqbdtr3f.js → image-0zav5kyp.js} +25 -25
- package/dist/chunks/{generate-11hfp36g.js → image-11hfp36g.js} +1 -1
- package/dist/chunks/{generate-9czaxqrp.js → image-15jp5dqc.js} +15 -15
- package/dist/chunks/{generate-waekfe58.js → image-15wvffc0.js} +21 -21
- package/dist/chunks/{generate-1ep2p91f.js → image-1ep2p91f.js} +2 -2
- package/dist/chunks/{generate-mj6e6dj3.js → image-1eqy2zth.js} +55 -55
- package/dist/chunks/{generate-w0mr8pfp.js → image-1p4yt6ne.js} +13 -13
- package/dist/chunks/{generate-nmbqtac7.js → image-1ph64p7d.js} +24 -24
- package/dist/chunks/{generate-ahvh1qya.js → image-1w2zn1e5.js} +4 -4
- package/dist/chunks/{generate-1x2knyw4.js → image-1x2knyw4.js} +1 -1
- package/dist/chunks/{generate-3m2th8fr.js → image-1x6596zm.js} +11 -11
- package/dist/chunks/{generate-mzeef7bv.js → image-1y5v4mkh.js} +7 -7
- package/dist/chunks/{generate-860y05k0.js → image-1ya9fna5.js} +13 -13
- package/dist/chunks/{generate-kvfvqdzr.js → image-1yefr3a7.js} +11 -11
- package/dist/chunks/{generate-p7vhpwh8.js → image-1yq9hg58.js} +5 -5
- package/dist/chunks/{generate-vd3b3yk9.js → image-204s3925.js} +13 -2
- package/dist/chunks/{generate-xwwftgt8.js → image-28d6a7kc.js} +40 -40
- package/dist/chunks/{generate-sm9at3z0.js → image-28h91mdk.js} +5 -5
- package/dist/chunks/{generate-c6x7d2ts.js → image-2azy8kv6.js} +4 -4
- package/dist/chunks/{generate-4gjjgmy7.js → image-2b68dg32.js} +48 -48
- package/dist/chunks/{generate-1rj159m0.js → image-2ccysd6w.js} +16 -16
- package/dist/chunks/{generate-9844398g.js → image-2mvc8y7w.js} +34 -34
- package/dist/chunks/{generate-94gztf2h.js → image-2sr7r47n.js} +21 -21
- package/dist/chunks/{generate-y2qm725k.js → image-2tfftvad.js} +9 -9
- package/dist/chunks/{generate-2z1j29yd.js → image-2z1j29yd.js} +1 -1
- package/dist/chunks/{generate-d121hxf2.js → image-32rqdfc7.js} +6 -6
- package/dist/chunks/{generate-88gqnt7v.js → image-35kr33c6.js} +8 -8
- package/dist/chunks/{generate-4sszy9c0.js → image-3fxg60jv.js} +17 -17
- package/dist/chunks/{generate-h1ferrrm.js → image-3fxvhw31.js} +13 -13
- package/dist/chunks/{generate-qhfh2fyf.js → image-3h718rah.js} +28 -29
- package/dist/chunks/{generate-3hepkmqq.js → image-3hepkmqq.js} +1 -1
- package/dist/chunks/{generate-3nnrz6f6.js → image-3nnrz6f6.js} +1 -1
- package/dist/chunks/{generate-j5zs165q.js → image-3rtadbmj.js} +33 -33
- package/dist/chunks/{generate-h7gvp0tv.js → image-3t73xeyv.js} +2 -2
- package/dist/chunks/{generate-1ypt5wpy.js → image-405jdxex.js} +3 -3
- package/dist/chunks/{generate-40za9wsf.js → image-40za9wsf.js} +2 -2
- package/dist/chunks/{generate-mhkzz5y2.js → image-41b5h7kw.js} +8 -8
- package/dist/chunks/{generate-n2prjmzh.js → image-465gqz21.js} +51 -48
- package/dist/chunks/{generate-t7ncsdpk.js → image-489czqv0.js} +13 -13
- package/dist/chunks/{generate-6zf9q3dm.js → image-49c735ne.js} +15 -15
- package/dist/chunks/{generate-pcsmd4he.js → image-4b5nmf5q.js} +45 -45
- package/dist/chunks/{generate-jh1t67wh.js → image-4een2pqp.js} +24 -24
- package/dist/chunks/{generate-v98na84w.js → image-4f6p1dag.js} +10 -10
- package/dist/chunks/{generate-hwf1b6v4.js → image-4kj4gkg1.js} +12 -12
- package/dist/chunks/{generate-4v008n1t.js → image-4v008n1t.js} +1 -1
- package/dist/chunks/{generate-4xvmh7wp.js → image-4xvmh7wp.js} +3 -3
- package/dist/chunks/{generate-srfbxa22.js → image-5af0y8wk.js} +26 -26
- package/dist/chunks/{generate-wwthzbr1.js → image-5deer1e9.js} +3 -3
- package/dist/chunks/{generate-hw7xvx1w.js → image-5et41axm.js} +9 -9
- package/dist/chunks/{generate-cr10brw4.js → image-5fxf8m1w.js} +35 -35
- package/dist/chunks/{generate-bhvs01y7.js → image-5kgs3fk1.js} +6 -6
- package/dist/chunks/{generate-5m9w47nd.js → image-5m9w47nd.js} +1 -1
- package/dist/chunks/{generate-03efvwc7.js → image-5w7vbjkb.js} +12 -12
- package/dist/chunks/{generate-etgazebn.js → image-60qa52yq.js} +33 -33
- package/dist/chunks/{generate-bjhzkqyk.js → image-61ennm6n.js} +4 -4
- package/dist/chunks/{generate-qw45kx2n.js → image-6ac2qzqj.js} +17 -17
- package/dist/chunks/{generate-6esdw8yj.js → image-6esdw8yj.js} +1 -1
- package/dist/chunks/{generate-xq0asyt8.js → image-6mnd27wh.js} +35 -33
- package/dist/chunks/{generate-6pjqjmy2.js → image-6pjqjmy2.js} +1 -1
- package/dist/chunks/{generate-rqa5g7v6.js → image-6tq0mqqx.js} +34 -34
- package/dist/chunks/{generate-h7yew4n9.js → image-6xw34d25.js} +11 -11
- package/dist/chunks/{generate-6y263vp8.js → image-6y263vp8.js} +2 -2
- package/dist/chunks/{generate-m64hvvbh.js → image-731keyrx.js} +7 -7
- package/dist/chunks/{generate-w8qtt4th.js → image-76cb1hcw.js} +4 -4
- package/dist/chunks/{generate-nah043kf.js → image-770pw0s1.js} +4 -4
- package/dist/chunks/{generate-7bmhse3q.js → image-7bmhse3q.js} +1 -1
- package/dist/chunks/{generate-vc4879sd.js → image-7c837hp4.js} +11 -11
- package/dist/chunks/{generate-f4ce04df.js → image-7cw7v3jn.js} +7 -7
- package/dist/chunks/{generate-4k9tnmjh.js → image-7evmvwfr.js} +2 -2
- package/dist/chunks/{generate-fvxgcjfj.js → image-7hbkmckc.js} +29 -29
- package/dist/chunks/{generate-z553p4sn.js → image-7hqnhvmk.js} +6 -6
- package/dist/chunks/{generate-73z36sy8.js → image-7nxtby5e.js} +20 -20
- package/dist/chunks/{generate-7w2ypzdf.js → image-7w2ypzdf.js} +1 -1
- package/dist/chunks/{generate-8ykqf5wm.js → image-80m5xgxj.js} +11 -11
- package/dist/chunks/{generate-crfddmzc.js → image-81a9zpe2.js} +7 -7
- package/dist/chunks/{generate-q8s21k0n.js → image-82460pbt.js} +12 -12
- package/dist/chunks/{generate-03178dsp.js → image-85a8a4f2.js} +21 -16
- package/dist/chunks/{generate-wr6c97eb.js → image-8f6rjm1e.js} +30 -31
- package/dist/chunks/{generate-s04tdcvb.js → image-8m9tyk9p.js} +21 -21
- package/dist/chunks/{generate-bf35rx15.js → image-8qrjb01m.js} +9 -9
- package/dist/chunks/{generate-8wtp7s3z.js → image-8wtp7s3z.js} +1 -1
- package/dist/chunks/{generate-m37sd98t.js → image-8y4jps98.js} +4 -4
- package/dist/chunks/{generate-g0skazn8.js → image-8ycv8ygb.js} +19 -19
- package/dist/chunks/{generate-91rj84md.js → image-91rj84md.js} +1 -1
- package/dist/chunks/{generate-brryxvg9.js → image-94v32shx.js} +2 -2
- package/dist/chunks/{generate-f83r4zqb.js → image-96h5102f.js} +12 -12
- package/dist/chunks/{generate-q48tb2m2.js → image-983qa8hr.js} +25 -25
- package/dist/chunks/{generate-9cx9sm2q.js → image-9cx9sm2q.js} +1 -1
- package/dist/chunks/{generate-srg9stfr.js → image-9g2m2ytf.js} +24 -24
- package/dist/chunks/{generate-ezas4x5c.js → image-9gs10211.js} +87 -87
- package/dist/chunks/{generate-s7kyse9r.js → image-9q8g9sv8.js} +4 -4
- package/dist/chunks/{generate-kv6gsz9b.js → image-9ttv7pfb.js} +5 -5
- package/dist/chunks/{generate-yx7gwedn.js → image-a1s8yyjv.js} +18 -18
- package/dist/chunks/{generate-4hh95258.js → image-a58h53ak.js} +22 -22
- package/dist/chunks/{generate-t39b6msr.js → image-a8kzmvy3.js} +1 -1
- package/dist/chunks/{generate-e9waf9qz.js → image-aa7k1xs2.js} +9 -9
- package/dist/chunks/{generate-dv7g9852.js → image-asgc5s7p.js} +12 -12
- package/dist/chunks/image-av4j8ver.js +257 -0
- package/dist/chunks/{generate-ya93hhk9.js → image-ay0zdfv2.js} +9 -9
- package/dist/chunks/{generate-ayjs7tqn.js → image-ayjs7tqn.js} +2 -2
- package/dist/chunks/{generate-b0mv4wxm.js → image-b0mv4wxm.js} +2 -2
- package/dist/chunks/{generate-37cm3r6v.js → image-b13kx4jn.js} +3 -3
- package/dist/chunks/{generate-7x78ttrr.js → image-b6j7grnb.js} +12 -12
- package/dist/chunks/{generate-5nnwax6m.js → image-b6vsg801.js} +5 -5
- package/dist/chunks/{generate-x6w6jbv3.js → image-b9z2pmeq.js} +337 -337
- package/dist/chunks/{generate-2ymc78nk.js → image-bcpp1tvw.js} +25 -25
- package/dist/chunks/{generate-be310d62.js → image-bdc18mvy.js} +11 -11
- package/dist/chunks/{generate-gnnftrr1.js → image-bkjwy8k0.js} +36 -36
- package/dist/chunks/{generate-k829tzk9.js → image-bn7x7enw.js} +4 -4
- package/dist/chunks/{generate-r91jcx8b.js → image-br2qb96s.js} +29 -29
- package/dist/chunks/{generate-5a525hm9.js → image-bs9449bv.js} +19 -19
- package/dist/chunks/{generate-bstexjd6.js → image-bstexjd6.js} +1 -1
- package/dist/chunks/{generate-1567v7as.js → image-bw2ypeg9.js} +13 -13
- package/dist/chunks/{generate-0gsbsa6w.js → image-c2gwsyxf.js} +10 -10
- package/dist/chunks/{generate-ser66ar7.js → image-c9haesmz.js} +54 -54
- package/dist/chunks/{generate-39b0v2m0.js → image-chmh4bqg.js} +23 -23
- package/dist/chunks/{generate-gc4rcfsx.js → image-cnj75yzs.js} +4 -4
- package/dist/chunks/{generate-n49yy442.js → image-cp9gsj1w.js} +11 -11
- package/dist/chunks/{generate-x4wyjn1e.js → image-cwcefvfr.js} +20 -20
- package/dist/chunks/{generate-d4v9tmah.js → image-d4v9tmah.js} +2 -2
- package/dist/chunks/{generate-mn53dk4j.js → image-djjzzs3c.js} +3 -3
- package/dist/chunks/{generate-9rkew2h6.js → image-dr9fxamp.js} +23 -23
- package/dist/chunks/{generate-6dvctgn8.js → image-drh9h2fe.js} +68 -68
- package/dist/chunks/{generate-450yhr7g.js → image-dx875p31.js} +19 -19
- package/dist/chunks/{generate-6rsjzsax.js → image-dyz29spx.js} +11 -11
- package/dist/chunks/{generate-wn3e8tka.js → image-e07q2w5p.js} +9 -9
- package/dist/chunks/{generate-25tc2yyb.js → image-e66yb76v.js} +25 -25
- package/dist/chunks/{generate-e834z07m.js → image-e834z07m.js} +1 -1
- package/dist/chunks/{generate-fc14jyx3.js → image-e89kw89p.js} +27 -27
- package/dist/chunks/{generate-ppk0knvm.js → image-e9kxjfm5.js} +15 -15
- package/dist/chunks/{generate-2e5xfyre.js → image-edfcvy1j.js} +5 -5
- package/dist/chunks/{generate-nj7gxwd2.js → image-ee12drxn.js} +2 -2
- package/dist/chunks/{generate-308nzxyx.js → image-ee4scs67.js} +4 -4
- package/dist/chunks/{generate-spxsma9c.js → image-eqc3e404.js} +11 -11
- package/dist/chunks/{generate-dsjbn4pc.js → image-exned2cn.js} +1 -1
- package/dist/chunks/{generate-6t0a6egd.js → image-f2kgtz6y.js} +11 -11
- package/dist/chunks/{generate-81bgmkmh.js → image-fbgksv32.js} +9 -9
- package/dist/chunks/{generate-fffv3p7h.js → image-fffv3p7h.js} +1 -1
- package/dist/chunks/{generate-5r72z9dp.js → image-fjrrbk94.js} +8 -8
- package/dist/chunks/{generate-fznmdakp.js → image-fznmdakp.js} +1 -1
- package/dist/chunks/{generate-zw7j8ap3.js → image-g1pwfypw.js} +32 -32
- package/dist/chunks/{generate-g5h9c0rr.js → image-g5h9c0rr.js} +2 -2
- package/dist/chunks/{generate-gcnn6hyw.js → image-g8nfv600.js} +30 -29
- package/dist/chunks/{generate-adfm7s3d.js → image-g9j07dct.js} +35 -35
- package/dist/chunks/{generate-1w9e6g42.js → image-gbbxnba2.js} +4 -4
- package/dist/chunks/{generate-pvwdf2yr.js → image-gcq7bt32.js} +14 -14
- package/dist/chunks/{generate-2j0h6455.js → image-ge2rcvjg.js} +45 -45
- package/dist/chunks/{generate-gg8p9cgs.js → image-gg8p9cgs.js} +3 -3
- package/dist/chunks/{generate-aym3a85m.js → image-gggcxneh.js} +40 -40
- package/dist/chunks/{generate-hna5e0rk.js → image-gk8k4f7x.js} +33 -33
- package/dist/chunks/{generate-5yqt7x1t.js → image-gkx199ke.js} +10 -10
- package/dist/chunks/image-grzehpz7.js +18 -0
- package/dist/chunks/{generate-dpq6z7p1.js → image-gvpcwzxz.js} +32 -32
- package/dist/chunks/{generate-6bh3dv2n.js → image-h0bne5vx.js} +36 -36
- package/dist/chunks/{generate-n7ydacfz.js → image-h2fknb2a.js} +7 -7
- package/dist/chunks/{generate-hdfrs5mg.js → image-hdfrs5mg.js} +2 -2
- package/dist/chunks/{generate-qq0vx577.js → image-hsapky1s.js} +14 -14
- package/dist/chunks/{generate-5fth6e7e.js → image-hz51tbbp.js} +17 -17
- package/dist/chunks/{generate-j113cymg.js → image-j113cymg.js} +1 -1
- package/dist/chunks/{generate-eyyv5nda.js → image-j3371k5r.js} +18 -18
- package/dist/chunks/{generate-zv3m3tdk.js → image-j6mefce3.js} +4 -4
- package/dist/chunks/{generate-m6gaya9c.js → image-jjshshm4.js} +19 -19
- package/dist/chunks/{generate-dkqkergf.js → image-jn88007r.js} +9 -9
- package/dist/chunks/{generate-wef44qxv.js → image-k2kq73jz.js} +4 -4
- package/dist/chunks/{generate-qby0d106.js → image-k2zexe6b.js} +38 -37
- package/dist/chunks/{generate-smf0az4w.js → image-k6ve0bec.js} +24 -24
- package/dist/chunks/{generate-ba6md75m.js → image-k7twgq46.js} +10 -10
- package/dist/chunks/{generate-k814nvkf.js → image-k814nvkf.js} +1 -1
- package/dist/chunks/{generate-tg1vr1qt.js → image-kmzgegqq.js} +8 -8
- package/dist/chunks/{generate-e5txay44.js → image-kpnmqdrr.js} +4 -4
- package/dist/chunks/{generate-1twhr14d.js → image-kqrbk72r.js} +3 -3
- package/dist/chunks/{generate-kt3bjfbg.js → image-kt3bjfbg.js} +1 -1
- package/dist/chunks/{generate-qmvd76a3.js → image-kwecz68a.js} +5 -5
- package/dist/chunks/{generate-6saj3a0m.js → image-ky7xv0tv.js} +6 -6
- package/dist/chunks/{generate-vvj2v3v2.js → image-ky8tssh9.js} +6 -6
- package/dist/chunks/{generate-m1714858.js → image-m1714858.js} +1 -1
- package/dist/chunks/{generate-20crrbd7.js → image-m7pchqqv.js} +12 -12
- package/dist/chunks/{generate-m9w0rfyh.js → image-m9w0rfyh.js} +1 -1
- package/dist/chunks/{generate-maspj1v3.js → image-maspj1v3.js} +1 -1
- package/dist/chunks/{generate-ex2ghmgq.js → image-mbwgdc5a.js} +5 -5
- package/dist/chunks/{generate-9ma9r77m.js → image-mm7a63e9.js} +6 -6
- package/dist/chunks/{generate-qwa5qwjv.js → image-mn2dt8ay.js} +1 -1
- package/dist/chunks/{generate-h85wfqm9.js → image-mrpqwg29.js} +21 -21
- package/dist/chunks/{generate-hzjw5pxs.js → image-n452f4c5.js} +18 -18
- package/dist/chunks/{generate-me7kxg3j.js → image-n7wnam13.js} +8 -8
- package/dist/chunks/{generate-05rvh78w.js → image-ncqafsx0.js} +22 -21
- package/dist/chunks/{generate-59qf4ysp.js → image-nh53frcf.js} +32 -32
- package/dist/chunks/{generate-49fajgsd.js → image-npqrkmj2.js} +10 -10
- package/dist/chunks/{generate-hx31exwe.js → image-ns86x0g6.js} +40 -40
- package/dist/chunks/{generate-y8jm6641.js → image-nsjyjchz.js} +12 -12
- package/dist/chunks/{generate-jecrmhrf.js → image-nwrh4nrz.js} +20 -20
- package/dist/chunks/{generate-8zg4nwes.js → image-nxfd4m75.js} +3 -3
- package/dist/chunks/{generate-p015t6z3.js → image-p015t6z3.js} +2 -2
- package/dist/chunks/{generate-8esy4z26.js → image-p2x2ykdn.js} +15 -15
- package/dist/chunks/{generate-sjn4p4df.js → image-p6ad9m80.js} +27 -27
- package/dist/chunks/{generate-9rfhangp.js → image-p7ajhkt3.js} +58 -58
- package/dist/chunks/{generate-60chehtb.js → image-p8kmn6p1.js} +3 -3
- package/dist/chunks/{generate-sw5900k8.js → image-pdj0m96v.js} +14 -14
- package/dist/chunks/{generate-ftav155q.js → image-pg8xwt5s.js} +5 -5
- package/dist/chunks/{generate-a46k5kbx.js → image-pgtf141g.js} +23 -23
- package/dist/chunks/{generate-pknna89w.js → image-pknna89w.js} +1 -1
- package/dist/chunks/{generate-ht2xqj16.js → image-pkwadbh0.js} +33 -33
- package/dist/chunks/{generate-e7c5a3nr.js → image-pr13x5tz.js} +9 -9
- package/dist/chunks/{generate-1bt4srtf.js → image-pw77mtnd.js} +193 -193
- package/dist/chunks/{generate-kftyqbhm.js → image-pwfx9xzx.js} +13 -13
- package/dist/chunks/{generate-wghss91q.js → image-qaxg3z3a.js} +9 -9
- package/dist/chunks/{generate-ns4f8tr7.js → image-qd1gejzd.js} +11 -11
- package/dist/chunks/{generate-eewf5kq5.js → image-qk4nhm2w.js} +27 -27
- package/dist/chunks/{generate-vfd66558.js → image-qvm0zdhb.js} +17 -17
- package/dist/chunks/{generate-3xj7n42w.js → image-qx8tdc9v.js} +35 -35
- package/dist/chunks/{generate-qyq8h28g.js → image-qyq8h28g.js} +1 -1
- package/dist/chunks/{generate-r0yr0wbs.js → image-r0yr0wbs.js} +1 -1
- package/dist/chunks/{generate-r542h3bh.js → image-r542h3bh.js} +1 -1
- package/dist/chunks/{generate-m6tde151.js → image-r5ef1bj7.js} +33 -33
- package/dist/chunks/{generate-xvbhqn7e.js → image-r5x9wjg5.js} +13 -13
- package/dist/chunks/{generate-y3v10bb3.js → image-r93dx0pk.js} +31 -30
- package/dist/chunks/{generate-45hvr24s.js → image-r9amg80d.js} +29 -29
- package/dist/chunks/{generate-rb9dy4dg.js → image-rb9dy4dg.js} +1 -1
- package/dist/chunks/{generate-sz4p1zm9.js → image-rd02mkry.js} +11 -11
- package/dist/chunks/{generate-65b6wh7d.js → image-rh4sx1pa.js} +31 -31
- package/dist/chunks/{generate-zw4pk1bw.js → image-rmk2c50f.js} +5 -5
- package/dist/chunks/{generate-fj4n425x.js → image-rnmnt1zv.js} +87 -87
- package/dist/chunks/{generate-rt5dr6hb.js → image-rt5dr6hb.js} +1 -1
- package/dist/chunks/{generate-gg0rfb5w.js → image-rvpj35j6.js} +14 -14
- package/dist/chunks/{generate-0kjhz3mt.js → image-s1527p4m.js} +5 -5
- package/dist/chunks/{generate-sa3fpqfw.js → image-sa3fpqfw.js} +2 -2
- package/dist/chunks/{generate-tpcr1ym9.js → image-sf9d32j3.js} +53 -53
- package/dist/chunks/{generate-2b5b45c9.js → image-sn1fshxa.js} +11 -11
- package/dist/chunks/{generate-sqjzf8x2.js → image-sqjzf8x2.js} +1 -1
- package/dist/chunks/{generate-0ccsbrde.js → image-sx8nkve2.js} +16 -16
- package/dist/chunks/{generate-np2dfhev.js → image-szn95e7f.js} +23 -23
- package/dist/chunks/{generate-wy0hchk8.js → image-t0b83k8a.js} +24 -24
- package/dist/chunks/{generate-0fn5w6ze.js → image-t0bc7c9c.js} +4 -4
- package/dist/chunks/{generate-bwk9zsmg.js → image-tbebkah3.js} +24 -24
- package/dist/chunks/{generate-tczq8hjw.js → image-tczq8hjw.js} +1 -1
- package/dist/chunks/{generate-c9t2ty9q.js → image-tfx8q2f5.js} +4 -4
- package/dist/chunks/{generate-8q417wg1.js → image-tm90js6s.js} +35 -35
- package/dist/chunks/{generate-5ect6tx9.js → image-ts7mkfs9.js} +3 -3
- package/dist/chunks/{generate-dr524zn0.js → image-twd3mrfp.js} +12 -12
- package/dist/chunks/{generate-twv2r8f4.js → image-twv2r8f4.js} +2 -2
- package/dist/chunks/{generate-v2r1d0zg.js → image-v2r1d0zg.js} +1 -1
- package/dist/chunks/{generate-zk70hy5y.js → image-v8w1bnvx.js} +35 -35
- package/dist/chunks/{generate-ezm5mefv.js → image-v9khnj00.js} +15 -15
- package/dist/chunks/{generate-veqvce7d.js → image-veqvce7d.js} +1 -1
- package/dist/chunks/{generate-1b9qzhs0.js → image-vha83cg2.js} +8 -8
- package/dist/chunks/{generate-rmt6m6se.js → image-vrcsa8qx.js} +9 -9
- package/dist/chunks/{generate-t6myarfx.js → image-vxep47rf.js} +17 -17
- package/dist/chunks/{generate-xkzeecwb.js → image-w2gxr2bn.js} +11 -11
- package/dist/chunks/{generate-w3wsvvr9.js → image-w3wsvvr9.js} +1 -1
- package/dist/chunks/{generate-wakvkjy4.js → image-wakvkjy4.js} +1 -1
- package/dist/chunks/{generate-kyjdqzbx.js → image-wb63k751.js} +28 -28
- package/dist/chunks/{generate-wd87259q.js → image-wd87259q.js} +1 -1
- package/dist/chunks/{generate-2hnx25th.js → image-x2askrax.js} +6 -6
- package/dist/chunks/{generate-b87bx4hb.js → image-x7a9enwj.js} +11 -11
- package/dist/chunks/{generate-mtyjk5mv.js → image-x7hq4v6t.js} +9 -9
- package/dist/chunks/{generate-mnsb4k1q.js → image-xcgcy0qm.js} +5 -5
- package/dist/chunks/{generate-5h9kw7gs.js → image-y4pr8w8r.js} +23 -23
- package/dist/chunks/{generate-5emr5dp8.js → image-yafd30nv.js} +21 -21
- package/dist/chunks/image-yara3q77.js +132 -0
- package/dist/chunks/{generate-yb20nhc3.js → image-yb20nhc3.js} +1 -1
- package/dist/chunks/{generate-7qvq4ghn.js → image-yn1cc37b.js} +44 -44
- package/dist/chunks/{generate-9p9xqj3m.js → image-ynrq1a8k.js} +8 -8
- package/dist/chunks/{generate-5j08c03m.js → image-ypfyeefr.js} +13 -13
- package/dist/chunks/{generate-abv9f74v.js → image-ytn8yj3j.js} +29 -29
- package/dist/chunks/{generate-z0bkrqjs.js → image-z0bkrqjs.js} +1 -1
- package/dist/chunks/{generate-wy4whz5z.js → image-z3294gqc.js} +4 -4
- package/dist/chunks/{generate-z38nccrw.js → image-z38nccrw.js} +1 -1
- package/dist/chunks/{generate-y5tx2pf5.js → image-z5zx3gz5.js} +6 -6
- package/dist/chunks/{generate-hyvmjqrf.js → image-zdj0mree.js} +18 -18
- package/dist/chunks/{generate-kjt6993h.js → image-zdmjncrg.js} +48 -48
- package/dist/chunks/{generate-yydqqga9.js → image-zfyb5tr4.js} +4 -4
- package/dist/chunks/{generate-agqd6nxz.js → image-zgt5j0h2.js} +6 -6
- package/dist/chunks/{generate-7cx8wp0a.js → image-zh7bbm8x.js} +9 -9
- package/dist/chunks/{generate-20zdy5ks.js → image-zh8rh1nn.js} +8 -8
- package/dist/chunks/{generate-h659bff6.js → image-zk95xct4.js} +3 -3
- package/dist/chunks/{generate-zkg84ctx.js → image-zkg84ctx.js} +1 -1
- package/dist/chunks/{generate-gqmen105.js → image-zntxr30m.js} +12 -12
- package/dist/chunks/{generate-aks81gr4.js → image-zqyt9eh5.js} +30 -25
- 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 +92 -91
- package/dist/config/integration.js +7 -7
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -106
- package/dist/config/plugin/agent.js +121 -120
- package/dist/config/plugin/command.js +219 -218
- package/dist/config/plugin/compaction.js +162 -161
- package/dist/config/plugin/compatibility.js +142 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -121
- package/dist/config/plugin/image.js +121 -120
- package/dist/config/plugin/instruction.js +121 -120
- package/dist/config/plugin/location-watcher.js +121 -120
- package/dist/config/plugin/mcp.js +128 -127
- package/dist/config/plugin/policy.js +123 -122
- package/dist/config/plugin/provider.js +122 -121
- package/dist/config/plugin/reference.js +123 -122
- package/dist/config/plugin/shell.js +123 -122
- package/dist/config/plugin/skill-file.js +138 -137
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +145 -144
- package/dist/config/plugin/snapshot.js +121 -120
- package/dist/config/plugin/source.js +124 -123
- package/dist/config/plugin/tool-output.js +122 -121
- package/dist/config/plugin/websearch.js +122 -121
- package/dist/config/plugin/worktree.js +123 -122
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -125
- 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 +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.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 +95 -94
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +385 -382
- 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 +101 -100
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +103 -102
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -80
- package/dist/file-access.js +140 -139
- package/dist/file-mutation.js +102 -101
- 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 +221 -0
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +232 -231
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +107 -106
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +112 -111
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +95 -94
- package/dist/generate.js +111 -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 +99 -98
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +372 -371
- package/dist/instruction-discovery.js +92 -92
- package/dist/instructions/builtins.js +95 -94
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +168 -169
- package/dist/location-lifecycle.js +142 -141
- package/dist/location-service-map.js +94 -93
- package/dist/location-services.js +369 -368
- package/dist/location.js +93 -92
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -98
- package/dist/mcp/index.js +117 -116
- package/dist/mcp/instructions.js +168 -167
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -97
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -98
- package/dist/model-resolver.js +107 -106
- package/dist/model-retry.js +1 -1
- package/dist/model.js +108 -107
- package/dist/models-dev.js +109 -108
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +145 -144
- 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 +81 -81
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +108 -107
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -226
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +342 -341
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +104 -103
- package/dist/plugin/module.js +121 -120
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +138 -137
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -97
- package/dist/plugin/provider/azure.js +119 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -120
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -116
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -100
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -102
- package/dist/plugin/provider/gitlab.js +101 -100
- package/dist/plugin/provider/google-vertex.js +118 -117
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +128 -127
- package/dist/plugin/provider/local.js +127 -126
- package/dist/plugin/provider/modal.js +100 -99
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -129
- package/dist/plugin/provider/openai-context-caps.js +98 -97
- package/dist/plugin/provider/openai.js +123 -122
- package/dist/plugin/provider/opencode-legacy.js +104 -103
- package/dist/plugin/provider/opencode.js +127 -126
- package/dist/plugin/provider/openrouter.js +99 -98
- 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 -98
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -119
- package/dist/plugin/provider/vercel.js +98 -97
- package/dist/plugin/provider/vllm.js +130 -129
- package/dist/plugin/provider/xai.js +99 -98
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -177
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -138
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +359 -358
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -93
- package/dist/plugin/vcs/hg.js +94 -93
- package/dist/plugin/verbosity.js +101 -100
- package/dist/plugin/warming.js +119 -118
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +4 -4
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +2 -2
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +236 -235
- package/dist/project/icon.js +14 -0
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -91
- package/dist/provider.js +107 -106
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -105
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -104
- package/dist/rpc.js +94 -93
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -119
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +162 -161
- package/dist/session/context.js +188 -187
- package/dist/session/diff.js +96 -95
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -230
- package/dist/session/execution.js +154 -153
- package/dist/session/generate.js +188 -187
- package/dist/session/history.js +127 -126
- package/dist/session/inbox.js +140 -139
- 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 -133
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -154
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -155
- package/dist/session/projector.js +134 -133
- package/dist/session/prompt.js +140 -139
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -129
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -237
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -107
- package/dist/session/runner/publish-llm-event.js +141 -140
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +152 -151
- package/dist/session/runner/to-llm-message.js +128 -127
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -171
- package/dist/session/shell.js +135 -134
- package/dist/session/skill.js +139 -138
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +79 -79
- package/dist/session/store.js +133 -132
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +215 -214
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +192 -191
- package/dist/session/to-session-error.js +140 -139
- package/dist/session/transfer.js +226 -225
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -222
- 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 +13 -13
- package/dist/shell.js +135 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -142
- package/dist/skill.js +144 -143
- package/dist/snapshot.js +99 -98
- package/dist/state.js +3 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +165 -164
- package/dist/tool/plugin/edit.js +156 -155
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -159
- package/dist/tool/plugin/grep.js +160 -159
- package/dist/tool/plugin/mcp-resource.js +154 -153
- package/dist/tool/plugin/opencode.js +145 -144
- package/dist/tool/plugin/patch.js +156 -155
- package/dist/tool/plugin/question.js +140 -139
- package/dist/tool/plugin/read.js +159 -158
- package/dist/tool/plugin/shell.js +224 -223
- package/dist/tool/plugin/skill.js +145 -144
- package/dist/tool/plugin/subagent.js +226 -225
- package/dist/tool/plugin/todo.js +145 -144
- package/dist/tool/plugin/webfetch.js +147 -146
- package/dist/tool/plugin/websearch.js +147 -146
- package/dist/tool/plugin/write.js +156 -155
- package/dist/tool/read-filesystem.js +110 -109
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +16 -16
- package/dist/types/filesystem/file-watch.d.ts +33 -0
- package/dist/types/instance/service.d.ts +2 -0
- package/dist/types/project/icon.d.ts +26 -0
- package/dist/types/state.d.ts +6 -0
- package/dist/usage-limits.js +95 -95
- 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 +3 -3
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +100 -99
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +101 -100
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -96
- package/dist/voice.js +94 -94
- package/dist/websearch.js +90 -90
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +7 -7
- 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 -96
- package/dist/worktree.js +106 -105
- package/package.json +8 -8
- package/dist/chunks/generate-9yjwf605.js +0 -257
- package/dist/chunks/generate-xgsg3c9w.js +0 -18
- /package/dist/chunks/{generate-0qkdqm5v.js → image-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{generate-0zkw76rk.js → image-0zkw76rk.js} +0 -0
- /package/dist/chunks/{generate-17cy0kzp.js → image-17cy0kzp.js} +0 -0
- /package/dist/chunks/{generate-1cnp2v09.js → image-1cnp2v09.js} +0 -0
- /package/dist/chunks/{generate-24dcb14g.js → image-24dcb14g.js} +0 -0
- /package/dist/chunks/{generate-2710q6r3.js → image-2710q6r3.js} +0 -0
- /package/dist/chunks/{generate-2bv980vf.js → image-2bv980vf.js} +0 -0
- /package/dist/chunks/{generate-2c3vjs8z.js → image-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{generate-359p4xyc.js → image-359p4xyc.js} +0 -0
- /package/dist/chunks/{generate-3asan66x.js → image-3asan66x.js} +0 -0
- /package/dist/chunks/{generate-3v8g72cx.js → image-3v8g72cx.js} +0 -0
- /package/dist/chunks/{generate-3wcehsnq.js → image-3wcehsnq.js} +0 -0
- /package/dist/chunks/{generate-43n2bw4t.js → image-43n2bw4t.js} +0 -0
- /package/dist/chunks/{generate-4knz6hnm.js → image-4knz6hnm.js} +0 -0
- /package/dist/chunks/{generate-4m86bj6y.js → image-4m86bj6y.js} +0 -0
- /package/dist/chunks/{generate-4vcrnpx2.js → image-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{generate-4y7fprxs.js → image-4y7fprxs.js} +0 -0
- /package/dist/chunks/{generate-53557ph1.js → image-53557ph1.js} +0 -0
- /package/dist/chunks/{generate-550bvhaj.js → image-550bvhaj.js} +0 -0
- /package/dist/chunks/{generate-5fjb7ams.js → image-5fjb7ams.js} +0 -0
- /package/dist/chunks/{generate-5w3e23ze.js → image-5w3e23ze.js} +0 -0
- /package/dist/chunks/{generate-6prwharc.js → image-6prwharc.js} +0 -0
- /package/dist/chunks/{generate-6q2bdcd1.js → image-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{generate-7akdwqpd.js → image-7akdwqpd.js} +0 -0
- /package/dist/chunks/{generate-7m9af43g.js → image-7m9af43g.js} +0 -0
- /package/dist/chunks/{generate-822emrt2.js → image-822emrt2.js} +0 -0
- /package/dist/chunks/{generate-84wd9syh.js → image-84wd9syh.js} +0 -0
- /package/dist/chunks/{generate-88xbtdfr.js → image-88xbtdfr.js} +0 -0
- /package/dist/chunks/{generate-8n3pysct.js → image-8n3pysct.js} +0 -0
- /package/dist/chunks/{generate-8wj87zfr.js → image-8wj87zfr.js} +0 -0
- /package/dist/chunks/{generate-9a4afbnw.js → image-9a4afbnw.js} +0 -0
- /package/dist/chunks/{generate-9rqn6x4v.js → image-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{generate-a058387c.js → image-a058387c.js} +0 -0
- /package/dist/chunks/{generate-a6k6eb26.js → image-a6k6eb26.js} +0 -0
- /package/dist/chunks/{generate-af5trqkr.js → image-af5trqkr.js} +0 -0
- /package/dist/chunks/{generate-afrmfg78.js → image-afrmfg78.js} +0 -0
- /package/dist/chunks/{generate-aqzs7mqg.js → image-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{generate-atq7p7m5.js → image-atq7p7m5.js} +0 -0
- /package/dist/chunks/{generate-bkyjaxrp.js → image-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{generate-bmr6ed5q.js → image-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{generate-cf4snx6d.js → image-cf4snx6d.js} +0 -0
- /package/dist/chunks/{generate-cqv5kn06.js → image-cqv5kn06.js} +0 -0
- /package/dist/chunks/{generate-cvy3z8tj.js → image-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{generate-d9fn303g.js → image-d9fn303g.js} +0 -0
- /package/dist/chunks/{generate-d9jj8t3e.js → image-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{generate-dajrwvna.js → image-dajrwvna.js} +0 -0
- /package/dist/chunks/{generate-dap0rakb.js → image-dap0rakb.js} +0 -0
- /package/dist/chunks/{generate-df08tz66.js → image-df08tz66.js} +0 -0
- /package/dist/chunks/{generate-dy18nga0.js → image-dy18nga0.js} +0 -0
- /package/dist/chunks/{generate-e3qxr5gk.js → image-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{generate-e5kj55wp.js → image-e5kj55wp.js} +0 -0
- /package/dist/chunks/{generate-e73j6tqm.js → image-e73j6tqm.js} +0 -0
- /package/dist/chunks/{generate-ec1grn59.js → image-ec1grn59.js} +0 -0
- /package/dist/chunks/{generate-eh3zwz77.js → image-eh3zwz77.js} +0 -0
- /package/dist/chunks/{generate-emrn6kk6.js → image-emrn6kk6.js} +0 -0
- /package/dist/chunks/{generate-f0mxakyp.js → image-f0mxakyp.js} +0 -0
- /package/dist/chunks/{generate-f6n9ztr4.js → image-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{generate-faypxj3z.js → image-faypxj3z.js} +0 -0
- /package/dist/chunks/{generate-fd410y7t.js → image-fd410y7t.js} +0 -0
- /package/dist/chunks/{generate-fkpq3x5p.js → image-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{generate-g4wezp1m.js → image-g4wezp1m.js} +0 -0
- /package/dist/chunks/{generate-g86h250q.js → image-g86h250q.js} +0 -0
- /package/dist/chunks/{generate-gebd4c9n.js → image-gebd4c9n.js} +0 -0
- /package/dist/chunks/{generate-gftt206x.js → image-gftt206x.js} +0 -0
- /package/dist/chunks/{generate-hcxmzztb.js → image-hcxmzztb.js} +0 -0
- /package/dist/chunks/{generate-hk9envan.js → image-hk9envan.js} +0 -0
- /package/dist/chunks/{generate-j2ntwpah.js → image-j2ntwpah.js} +0 -0
- /package/dist/chunks/{generate-j5zkgpj8.js → image-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{generate-jjkms2e6.js → image-jjkms2e6.js} +0 -0
- /package/dist/chunks/{generate-jr7sbwjy.js → image-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{generate-jwfs4k6c.js → image-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{generate-jwr30sdr.js → image-jwr30sdr.js} +0 -0
- /package/dist/chunks/{generate-jze0r7bz.js → image-jze0r7bz.js} +0 -0
- /package/dist/chunks/{generate-jzg6c2d5.js → image-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{generate-m18g726c.js → image-m18g726c.js} +0 -0
- /package/dist/chunks/{generate-mp448xyj.js → image-mp448xyj.js} +0 -0
- /package/dist/chunks/{generate-msx8hqn2.js → image-msx8hqn2.js} +0 -0
- /package/dist/chunks/{generate-n05xt0ee.js → image-n05xt0ee.js} +0 -0
- /package/dist/chunks/{generate-n3j8tn72.js → image-n3j8tn72.js} +0 -0
- /package/dist/chunks/{generate-njntx4h6.js → image-njntx4h6.js} +0 -0
- /package/dist/chunks/{generate-q3sfg36h.js → image-q3sfg36h.js} +0 -0
- /package/dist/chunks/{generate-q74kybfr.js → image-q74kybfr.js} +0 -0
- /package/dist/chunks/{generate-qaymkmh1.js → image-qaymkmh1.js} +0 -0
- /package/dist/chunks/{generate-qb87gjwd.js → image-qb87gjwd.js} +0 -0
- /package/dist/chunks/{generate-qfa1cgps.js → image-qfa1cgps.js} +0 -0
- /package/dist/chunks/{generate-qg3g05ea.js → image-qg3g05ea.js} +0 -0
- /package/dist/chunks/{generate-qrg20bc0.js → image-qrg20bc0.js} +0 -0
- /package/dist/chunks/{generate-rcb2kzg1.js → image-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{generate-sdp7kfr6.js → image-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{generate-ssg3fenm.js → image-ssg3fenm.js} +0 -0
- /package/dist/chunks/{generate-ve7vex1e.js → image-ve7vex1e.js} +0 -0
- /package/dist/chunks/{generate-w803qqfp.js → image-w803qqfp.js} +0 -0
- /package/dist/chunks/{generate-wc3fc9cn.js → image-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{generate-wer8tq1h.js → image-wer8tq1h.js} +0 -0
- /package/dist/chunks/{generate-wjj7prxr.js → image-wjj7prxr.js} +0 -0
- /package/dist/chunks/{generate-wtztk69x.js → image-wtztk69x.js} +0 -0
- /package/dist/chunks/{generate-x0ckcb58.js → image-x0ckcb58.js} +0 -0
- /package/dist/chunks/{generate-x61499pn.js → image-x61499pn.js} +0 -0
- /package/dist/chunks/{generate-y44na4kk.js → image-y44na4kk.js} +0 -0
- /package/dist/chunks/{generate-y8f7s663.js → image-y8f7s663.js} +0 -0
- /package/dist/chunks/{generate-ygaqb7jw.js → image-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{generate-ym463w8f.js → image-ym463w8f.js} +0 -0
- /package/dist/chunks/{generate-z5v4ffb3.js → image-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{generate-z9919s4g.js → image-z9919s4g.js} +0 -0
|
@@ -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
|
+
ID6,
|
|
6
|
+
Service49
|
|
7
|
+
} from "./image-bcpp1tvw.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-5kgs3fk1.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./image-gg8p9cgs.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 = {};
|
|
@@ -25,7 +25,7 @@ __export(exports_diff, {
|
|
|
25
25
|
TurnRangeError: () => TurnRangeError2,
|
|
26
26
|
turn: () => turn2
|
|
27
27
|
});
|
|
28
|
-
import { and, asc, eq, gt,
|
|
28
|
+
import { and, asc, desc, eq, gt, lt, sql } from "drizzle-orm";
|
|
29
29
|
import { Effect, Schema } from "effect";
|
|
30
30
|
import { Location } from "@opencode/schema/location";
|
|
31
31
|
class TurnRangeError2 extends Schema.TaggedError()("Session.TurnRangeError", {
|
|
@@ -37,27 +37,27 @@ class TurnRangeError2 extends Schema.TaggedError()("Session.TurnRangeError", {
|
|
|
37
37
|
var decodeLocation = Schema.decodeUnknownSync(Schema.fromJsonString(Location.Ref));
|
|
38
38
|
var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
39
39
|
const sessionID = input.session.id;
|
|
40
|
-
const
|
|
41
|
-
const users =
|
|
42
|
-
const markers =
|
|
40
|
+
const boundaries = (type) => db.select({ seq: SessionMessageTable2.seq }).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), eq(SessionMessageTable2.type, type))).orderBy(asc(SessionMessageTable2.seq)).all().pipe(Effect.map((rows) => rows.map((row) => row.seq)), Effect.orDie);
|
|
41
|
+
const users = yield* boundaries("user");
|
|
42
|
+
const markers = yield* boundaries("idle");
|
|
43
43
|
const resolve = Effect.fn(function* (field, id) {
|
|
44
|
-
const row =
|
|
44
|
+
const row = yield* db.select({ id: SessionMessageTable2.id, type: SessionMessageTable2.type, seq: SessionMessageTable2.seq }).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.id, id), eq(SessionMessageTable2.session_id, sessionID))).get().pipe(Effect.orDie);
|
|
45
45
|
if (!row)
|
|
46
46
|
return yield* new MessageNotFoundError2({ sessionID, messageID: id });
|
|
47
47
|
if (row.type !== "user")
|
|
48
48
|
return yield* new TurnRangeError2({ sessionID, field, message: `Message ${id} is not a user message` });
|
|
49
49
|
return row;
|
|
50
50
|
});
|
|
51
|
-
const anchor = input.from ? yield* resolve("from", input.from) :
|
|
51
|
+
const anchor = input.from ? yield* resolve("from", input.from) : yield* db.select({ id: SessionMessageTable2.id, seq: SessionMessageTable2.seq }).from(SessionMessageTable2).where(and(eq(SessionMessageTable2.session_id, sessionID), eq(SessionMessageTable2.type, "user"))).orderBy(desc(SessionMessageTable2.seq)).limit(1).get().pipe(Effect.orDie);
|
|
52
52
|
if (!anchor)
|
|
53
53
|
return [];
|
|
54
54
|
const last = input.to ? yield* resolve("to", input.to) : anchor;
|
|
55
55
|
if (last.seq < anchor.seq)
|
|
56
56
|
return yield* new TurnRangeError2({ sessionID, field: "to", message: `Message ${last.id} precedes ${anchor.id}` });
|
|
57
57
|
const legacy = markers.length === 0;
|
|
58
|
-
const opened = markers.findLast((
|
|
59
|
-
const start = legacy ? anchor.seq : users.find((
|
|
60
|
-
const end = legacy ? users.find((
|
|
58
|
+
const opened = markers.findLast((seq) => seq < anchor.seq) ?? -1;
|
|
59
|
+
const start = legacy ? anchor.seq : users.find((seq) => seq > opened) ?? anchor.seq;
|
|
60
|
+
const end = legacy ? users.find((seq) => seq > last.seq) : markers.find((seq) => seq > last.seq);
|
|
61
61
|
const steps = yield* db.select({
|
|
62
62
|
seq: SessionMessageTable2.seq,
|
|
63
63
|
start: sql`json_extract(${SessionMessageTable2.data}, '$.snapshot.start')`,
|
|
@@ -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* Service49;
|
|
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: ID6.make(from),
|
|
91
|
+
to: ID6.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -4,43 +4,43 @@ import {
|
|
|
4
4
|
normalizeContent2,
|
|
5
5
|
normalizedName2,
|
|
6
6
|
effectiveName2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./image-5fjb7ams.js";
|
|
8
8
|
import {
|
|
9
9
|
create2,
|
|
10
10
|
catalog2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./image-4xvmh7wp.js";
|
|
12
12
|
import {
|
|
13
13
|
create3
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./image-204s3925.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
Service57,
|
|
17
|
+
node62
|
|
18
|
+
} from "./image-2tfftvad.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service74,
|
|
21
|
+
node78
|
|
22
|
+
} from "./image-n7wnam13.js";
|
|
23
23
|
import {
|
|
24
24
|
match2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./image-z38nccrw.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./image-9rqn6x4v.js";
|
|
29
29
|
|
|
30
30
|
// src/tool.ts
|
|
31
31
|
var exports_tool = {};
|
|
32
32
|
__export(exports_tool, {
|
|
33
33
|
CallID: () => CallID2,
|
|
34
|
-
Content: () =>
|
|
35
|
-
Error: () =>
|
|
34
|
+
Content: () => Content3,
|
|
35
|
+
Error: () => Error5,
|
|
36
36
|
FileContent: () => FileContent3,
|
|
37
37
|
RegistrationError: () => RegistrationError2,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service55,
|
|
39
39
|
TextContent: () => TextContent2,
|
|
40
40
|
Tool: () => exports_tool,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node60
|
|
42
42
|
});
|
|
43
|
-
import { CallID as CallID2, Content as
|
|
43
|
+
import { CallID as CallID2, Content as Content3, Error as Error5, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
|
|
44
44
|
import { ToolDefinition } from "@opencode/ai/effect";
|
|
45
45
|
import { Tool } from "@opencode/schema/tool";
|
|
46
46
|
import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
|
|
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service55 extends Context.Service()("@opencode/Tool") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
57
|
-
const hooks = yield*
|
|
58
|
-
const image = yield*
|
|
56
|
+
var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
57
|
+
const hooks = yield* Service74;
|
|
58
|
+
const image = yield* Service57;
|
|
59
59
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
60
60
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
61
61
|
if (item.type !== "file" || !item.mime.startsWith("image/"))
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
198
198
|
}), { discard: true });
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
|
-
return
|
|
201
|
+
return Service55.of({
|
|
202
202
|
transform: state.transform,
|
|
203
203
|
reload: state.reload,
|
|
204
204
|
list: () => Effect.sync(() => Array.from(state.get().tools.values())),
|
|
@@ -293,10 +293,10 @@ function namespaceError(name) {
|
|
|
293
293
|
return;
|
|
294
294
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
295
295
|
}
|
|
296
|
-
var
|
|
297
|
-
service:
|
|
296
|
+
var node60 = makeLocationNode({
|
|
297
|
+
service: Service55,
|
|
298
298
|
layer,
|
|
299
|
-
deps: [
|
|
299
|
+
deps: [node78, node62]
|
|
300
300
|
});
|
|
301
301
|
|
|
302
|
-
export { RegistrationError2,
|
|
302
|
+
export { RegistrationError2, Service55, node60, exports_tool, CallID2, Content3, Error5, FileContent3, TextContent2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./image-hsapky1s.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service69
|
|
9
|
+
} from "./image-sf9d32j3.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service25
|
|
12
|
+
} from "./image-mrpqwg29.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./image-6pjqjmy2.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./image-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/config/plugin/worktree.ts
|
|
21
21
|
var exports_worktree = {};
|
|
22
22
|
__export(exports_worktree, {
|
|
23
23
|
ConfigWorktreePlugin: () => exports_worktree,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin44
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
var
|
|
30
|
+
var Plugin44 = define({
|
|
31
31
|
id: "opencode.config.worktree",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const location = yield*
|
|
33
|
+
const config = yield* Service69;
|
|
34
|
+
const location = yield* Service82;
|
|
35
35
|
const global = yield* Global.Service;
|
|
36
|
-
const worktrees = yield*
|
|
36
|
+
const worktrees = yield* Service25;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, worktrees.reload());
|
|
38
38
|
yield* worktrees.transform((editor) => {
|
|
39
39
|
for (const entry of loaded.entries) {
|
|
@@ -48,4 +48,4 @@ var Plugin29 = define({
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Plugin44, exports_worktree };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service69
|
|
4
|
+
} from "./image-sf9d32j3.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./image-6pjqjmy2.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service66
|
|
10
|
+
} from "./image-zdmjncrg.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./image-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/todo.ts
|
|
16
16
|
var exports_todo = {};
|
|
17
17
|
__export(exports_todo, {
|
|
18
18
|
Info: () => Info2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
Output: () =>
|
|
21
|
-
Plugin: () =>
|
|
19
|
+
Input: () => Input12,
|
|
20
|
+
Output: () => Output8,
|
|
21
|
+
Plugin: () => Plugin29,
|
|
22
22
|
TodoTool: () => exports_todo,
|
|
23
|
-
name: () =>
|
|
23
|
+
name: () => name12,
|
|
24
24
|
summarize: () => summarize2
|
|
25
25
|
});
|
|
26
26
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
@@ -37,17 +37,17 @@ Use it proactively when a task has 3 or more distinct steps, or when the user gi
|
|
|
37
37
|
`;
|
|
38
38
|
|
|
39
39
|
// src/tool/plugin/todo.ts
|
|
40
|
-
var
|
|
40
|
+
var name12 = "todowrite";
|
|
41
41
|
var Info2 = Schema.Struct({
|
|
42
42
|
content: Schema.String.annotate({ description: "Brief description of the task" }),
|
|
43
43
|
status: Schema.Literals(["pending", "in_progress", "completed", "cancelled"]).annotate({
|
|
44
44
|
description: "Current status of the task: pending, in_progress, completed, cancelled"
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var Input12 = Schema.Struct({
|
|
48
48
|
todos: Schema.Array(Info2).annotate({ description: "The updated todo list" })
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Output8 = Schema.Struct({
|
|
51
51
|
todos: Schema.Array(Info2)
|
|
52
52
|
});
|
|
53
53
|
var summarize2 = (todos) => {
|
|
@@ -61,24 +61,24 @@ var summarize2 = (todos) => {
|
|
|
61
61
|
const active = todos.filter((todo) => todo.status === "in_progress").map((todo) => JSON.stringify(todo.content));
|
|
62
62
|
return `Todos updated: ${counts}${active.length ? `. In progress: ${active.join(", ")}` : ""}`;
|
|
63
63
|
};
|
|
64
|
-
var
|
|
64
|
+
var Plugin29 = {
|
|
65
65
|
id: "opencode.tool.todo",
|
|
66
66
|
effect: Effect.fn("TodoTool.Plugin")(function* (ctx) {
|
|
67
|
-
const config = yield*
|
|
68
|
-
const permission = yield*
|
|
67
|
+
const config = yield* Service69;
|
|
68
|
+
const permission = yield* Service66;
|
|
69
69
|
const loaded = yield* observe2(config, ctx.event, ctx.tool.reload());
|
|
70
70
|
const enabled = () => latest2(loaded.entries, "experimental")?.todo === true;
|
|
71
71
|
yield* ctx.tool.transform((editor) => {
|
|
72
72
|
if (!enabled())
|
|
73
73
|
return;
|
|
74
74
|
editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name12,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: todowrite_default,
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input12,
|
|
79
|
+
output: Output8,
|
|
80
80
|
execute: (input, context) => permission.assert({
|
|
81
|
-
action:
|
|
81
|
+
action: name12,
|
|
82
82
|
resources: ["*"],
|
|
83
83
|
save: ["*"],
|
|
84
84
|
sessionID: context.sessionID,
|
|
@@ -94,4 +94,4 @@ var Plugin50 = {
|
|
|
94
94
|
})
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
export {
|
|
97
|
+
export { name12, Info2, Input12, Output8, summarize2, Plugin29, exports_todo };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./image-034tev2y.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./image-11hfp36g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service84,
|
|
6
|
+
node88
|
|
7
|
+
} from "./image-82460pbt.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event19,
|
|
10
|
+
Service81,
|
|
11
|
+
node85
|
|
12
|
+
} from "./image-60qa52yq.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service82,
|
|
15
|
+
node86
|
|
16
|
+
} from "./image-hsapky1s.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service53,
|
|
19
|
+
node57
|
|
20
|
+
} from "./image-1ph64p7d.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID15,
|
|
23
|
+
Service80,
|
|
24
|
+
node84
|
|
25
|
+
} from "./image-k6ve0bec.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./image-204s3925.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service79,
|
|
34
|
+
node83
|
|
35
|
+
} from "./image-k2zexe6b.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./image-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError4,
|
|
45
|
+
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service39,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured4,
|
|
56
|
+
layer: () => layer17,
|
|
57
|
+
node: () => node42
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -104,21 +104,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
104
104
|
var endpointLoads = makeUnsafe2();
|
|
105
105
|
var cloneConfig = (config) => structuredClone(config);
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service39 extends Context.Service()("@opencode/MCP") {
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var Options4 = Schema.Struct({
|
|
110
110
|
clientInfo: Schema.optional(Schema.Struct({
|
|
111
111
|
name: Schema.String,
|
|
112
112
|
version: Schema.String
|
|
113
113
|
}))
|
|
114
114
|
});
|
|
115
|
-
var
|
|
116
|
-
const location = yield*
|
|
117
|
-
const environment = yield*
|
|
118
|
-
const bus = yield*
|
|
119
|
-
const forms = yield*
|
|
120
|
-
const integration = yield*
|
|
121
|
-
const credentials = yield*
|
|
115
|
+
var layer17 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service82;
|
|
117
|
+
const environment = yield* Service53;
|
|
118
|
+
const bus = yield* Service84;
|
|
119
|
+
const forms = yield* Service80;
|
|
120
|
+
const integration = yield* Service79;
|
|
121
|
+
const credentials = yield* Service81;
|
|
122
122
|
const root = yield* Effect.scope;
|
|
123
123
|
const fork = yield* FiberSet.makeRuntime();
|
|
124
124
|
const servers = yield* Scope.fork(root, "parallel");
|
|
@@ -133,7 +133,7 @@ var layer15 = (options) => Layer.effect(Service28, Effect.gen(function* () {
|
|
|
133
133
|
return;
|
|
134
134
|
const remote = entry.config;
|
|
135
135
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
136
|
-
const integrationID =
|
|
136
|
+
const integrationID = ID14.make(suffix);
|
|
137
137
|
entry.integrationID = integrationID;
|
|
138
138
|
owned.add(integrationID);
|
|
139
139
|
const methodID = MethodID2.make(suffix);
|
|
@@ -149,7 +149,7 @@ var layer15 = (options) => Layer.effect(Service28, Effect.gen(function* () {
|
|
|
149
149
|
method: { id: methodID, type: "oauth", label: name },
|
|
150
150
|
authorize: () => Effect.gen(function* () {
|
|
151
151
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
152
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
152
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service81, credentials));
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
}).pipe(Scope.provide(scope));
|
|
@@ -157,19 +157,19 @@ var layer15 = (options) => Layer.effect(Service28, Effect.gen(function* () {
|
|
|
157
157
|
const requireServer = Effect.fnUntraced(function* (name) {
|
|
158
158
|
const entry = entries.get(name);
|
|
159
159
|
if (!entry)
|
|
160
|
-
return yield* new
|
|
160
|
+
return yield* new NotFoundError4({ server: name });
|
|
161
161
|
return { name, entry };
|
|
162
162
|
});
|
|
163
163
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
164
164
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
165
165
|
return;
|
|
166
166
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
167
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
167
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service81, credentials));
|
|
168
168
|
});
|
|
169
169
|
const elicitation = {
|
|
170
170
|
create: (input) => Effect.gen(function* () {
|
|
171
171
|
if (input.params.mode === "url") {
|
|
172
|
-
const formID =
|
|
172
|
+
const formID = ID15.create();
|
|
173
173
|
const elicitationID = input.params.elicitationId;
|
|
174
174
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
175
175
|
if (key)
|
|
@@ -272,7 +272,7 @@ var layer15 = (options) => Layer.effect(Service28, Effect.gen(function* () {
|
|
|
272
272
|
entry.scope = scope;
|
|
273
273
|
const authProvider = yield* connectProvider(entry);
|
|
274
274
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
275
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
275
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service53, environment), Scope.provide(scope));
|
|
276
276
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
277
277
|
if (Exit.isSuccess(result)) {
|
|
278
278
|
entry.client = result.value.connection;
|
|
@@ -373,7 +373,7 @@ var layer15 = (options) => Layer.effect(Service28, Effect.gen(function* () {
|
|
|
373
373
|
let closed = false;
|
|
374
374
|
const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
|
|
375
375
|
closed = true;
|
|
376
|
-
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
376
|
+
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service53, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
|
|
377
377
|
const register = Effect.gen(function* () {
|
|
378
378
|
if (closed) {
|
|
379
379
|
yield* Scope.close(scope, Exit.void);
|
|
@@ -452,7 +452,7 @@ var layer15 = (options) => Layer.effect(Service28, Effect.gen(function* () {
|
|
|
452
452
|
yield* startServer(name, entry);
|
|
453
453
|
}).pipe(locks.withLock(name));
|
|
454
454
|
});
|
|
455
|
-
fork(bus.subscribe(
|
|
455
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
456
456
|
const state = create3({
|
|
457
457
|
name: "mcp",
|
|
458
458
|
initial: () => ({
|
|
@@ -478,7 +478,7 @@ var layer15 = (options) => Layer.effect(Service28, Effect.gen(function* () {
|
|
|
478
478
|
}),
|
|
479
479
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
480
480
|
});
|
|
481
|
-
return
|
|
481
|
+
return Service39.of({
|
|
482
482
|
transform: state.transform,
|
|
483
483
|
reload: state.reload,
|
|
484
484
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -611,14 +611,14 @@ function mergeCatalogs(catalogs) {
|
|
|
611
611
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
612
612
|
});
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function configured4(options) {
|
|
615
615
|
return makeLocationNode({
|
|
616
|
-
service:
|
|
617
|
-
layer:
|
|
618
|
-
deps: [
|
|
616
|
+
service: Service39,
|
|
617
|
+
layer: layer17(options),
|
|
618
|
+
deps: [node86, node57, node88, node84, node83, node85]
|
|
619
619
|
});
|
|
620
620
|
}
|
|
621
|
-
var
|
|
621
|
+
var node42 = configured4();
|
|
622
622
|
function toElicitationField(key, property, required) {
|
|
623
623
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
624
624
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -669,4 +669,4 @@ function toElicitationField(key, property, required) {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
672
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError4, ToolCallError2, Service39, Options4, layer17, configured4, node42, exports_mcp4 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service65,
|
|
3
|
+
node69,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./image-pr13x5tz.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service63,
|
|
8
|
+
node67
|
|
9
|
+
} from "./image-32rqdfc7.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service14
|
|
12
|
+
} from "./image-v8w1bnvx.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./image-av4j8ver.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service65, Effect.gen(function* () {
|
|
21
21
|
const owner = yield* Effect.scope;
|
|
22
22
|
const builds = MutableHashMap.empty();
|
|
23
23
|
const inner = yield* LayerMap.make((ref) => {
|
|
@@ -27,7 +27,7 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
27
27
|
const finish = Effect.suspend(() => {
|
|
28
28
|
if (Exit.isSuccess(exit)) {
|
|
29
29
|
return Effect.gen(function* () {
|
|
30
|
-
const lifecycle = Context.get(exit.value,
|
|
30
|
+
const lifecycle = Context.get(exit.value, Service14);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -54,11 +54,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
54
54
|
}).pipe(Effect.uninterruptible)
|
|
55
55
|
};
|
|
56
56
|
const bindings = [
|
|
57
|
-
|
|
57
|
+
node67.replace(Layer.succeed(Service63, {
|
|
58
58
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
59
59
|
})),
|
|
60
60
|
...replacements,
|
|
61
|
-
|
|
61
|
+
node69.replace(Layer.succeed(Service65, map))
|
|
62
62
|
];
|
|
63
63
|
return map;
|
|
64
64
|
}));
|