@opencode/core 0.0.0-dev-142 → 0.0.0-dev-147
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 +83 -83
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +7 -7
- package/dist/bus.js +81 -81
- package/dist/chunks/{model-resolver-034tev2y.js → command-034tev2y.js} +2 -2
- package/dist/chunks/{model-resolver-69zcgx44.js → command-03gg8qqd.js} +28 -28
- package/dist/chunks/{model-resolver-t7qjyp6j.js → command-0a2a3t6z.js} +22 -22
- package/dist/chunks/{model-resolver-q4fcarhy.js → command-0anyt1n6.js} +9 -9
- package/dist/chunks/{model-resolver-ymz7p2c9.js → command-0f8tg23y.js} +3 -3
- package/dist/chunks/{model-resolver-q5mn4ggq.js → command-0ns80rp4.js} +19 -19
- package/dist/chunks/{model-resolver-mxjcs2d4.js → command-0qkbb4f9.js} +10 -10
- package/dist/chunks/{model-resolver-cd00wddm.js → command-0ytd7j9m.js} +5 -5
- package/dist/chunks/{model-resolver-yw72hv1j.js → command-17v1k4r5.js} +4 -4
- package/dist/chunks/{model-resolver-7dh73bnv.js → command-1csrjc8n.js} +5 -5
- package/dist/chunks/{model-resolver-1ep2p91f.js → command-1ep2p91f.js} +2 -2
- package/dist/chunks/{model-resolver-74xmswmc.js → command-1jc2pb62.js} +19 -19
- package/dist/chunks/{model-resolver-zebg8dr3.js → command-1mcvp2zr.js} +6 -6
- package/dist/chunks/{model-resolver-gzdqjbk7.js → command-1me66rte.js} +21 -21
- package/dist/chunks/{model-resolver-m0rc5tkg.js → command-1sp5hyz3.js} +45 -45
- package/dist/chunks/{model-resolver-1x2knyw4.js → command-1x2knyw4.js} +1 -1
- package/dist/chunks/{model-resolver-s2pfznc4.js → command-1z6t7raf.js} +6 -6
- package/dist/chunks/{model-resolver-3j6nq55v.js → command-2022h574.js} +5 -5
- package/dist/chunks/{model-resolver-204s3925.js → command-204s3925.js} +1 -1
- package/dist/chunks/{model-resolver-5a5y8bey.js → command-20hs3de4.js} +38 -38
- package/dist/chunks/{model-resolver-7fpmdzjk.js → command-21kkeetz.js} +17 -17
- package/dist/chunks/{model-resolver-ean10rq4.js → command-22hp01rm.js} +10 -10
- package/dist/chunks/{model-resolver-5k083j4m.js → command-2440020h.js} +16 -16
- package/dist/chunks/{model-resolver-edqmm4mg.js → command-2efjc0sy.js} +2 -2
- package/dist/chunks/{model-resolver-gnzrdma1.js → command-2fr8hm5d.js} +17 -17
- package/dist/chunks/{model-resolver-92p41aee.js → command-2j2qh23v.js} +1 -1
- package/dist/chunks/{model-resolver-fmxr4jhz.js → command-2qnb4nns.js} +5 -5
- package/dist/chunks/{model-resolver-x05mt2vr.js → command-2x6gw633.js} +31 -31
- package/dist/chunks/{model-resolver-jh74jycr.js → command-2zp5a6yg.js} +3 -3
- package/dist/chunks/{model-resolver-crafzxe9.js → command-3571pbex.js} +2 -2
- package/dist/chunks/{model-resolver-nq2cxg20.js → command-364mvxtt.js} +11 -11
- package/dist/chunks/{model-resolver-7dz079pe.js → command-3ebws65w.js} +4 -4
- package/dist/chunks/{model-resolver-20xwdmdm.js → command-3fcp3vfx.js} +31 -31
- package/dist/chunks/{model-resolver-qc8cfte5.js → command-3fjfxwbz.js} +28 -28
- package/dist/chunks/{model-resolver-xetz8apg.js → command-3gbz2z4m.js} +35 -35
- package/dist/chunks/{model-resolver-3hepkmqq.js → command-3hepkmqq.js} +1 -1
- package/dist/chunks/{model-resolver-1hcx3tbe.js → command-3j6ymswq.js} +2 -2
- package/dist/chunks/{model-resolver-dbmp929s.js → command-3kdbrncp.js} +5 -5
- package/dist/chunks/{model-resolver-3nnrz6f6.js → command-3nnrz6f6.js} +1 -1
- package/dist/chunks/{model-resolver-h9tajytd.js → command-3pcdyetm.js} +10 -10
- package/dist/chunks/{model-resolver-3ryz99p0.js → command-3ryz99p0.js} +1 -1
- package/dist/chunks/{model-resolver-y872wdn3.js → command-408sdsd3.js} +24 -24
- package/dist/chunks/{model-resolver-40za9wsf.js → command-40za9wsf.js} +2 -2
- package/dist/chunks/{model-resolver-bxkqm08j.js → command-41j13f84.js} +6 -6
- package/dist/chunks/{model-resolver-dt8bs7ka.js → command-43d5xc6d.js} +19 -19
- package/dist/chunks/{model-resolver-s857ash9.js → command-4drgpw32.js} +5 -5
- package/dist/chunks/{model-resolver-77gzjyfx.js → command-4mty8f1g.js} +30 -30
- package/dist/chunks/{model-resolver-4pyp9zr9.js → command-4pyp9zr9.js} +1 -1
- package/dist/chunks/{model-resolver-4dmkk8ef.js → command-4q0yhm9h.js} +4 -4
- package/dist/chunks/{model-resolver-9vjgnb2r.js → command-4sv1dg8q.js} +11 -11
- package/dist/chunks/{model-resolver-4v008n1t.js → command-4v008n1t.js} +1 -1
- package/dist/chunks/{model-resolver-vxfbx2fx.js → command-4wtjrc2f.js} +18 -18
- package/dist/chunks/{model-resolver-mef9jdgh.js → command-54hpetsb.js} +20 -20
- package/dist/chunks/command-59w4xjr9.js +257 -0
- package/dist/chunks/{model-resolver-48a83rgb.js → command-5bv1cvz4.js} +14 -14
- package/dist/chunks/{model-resolver-7qjfmraz.js → command-5c3dvsd0.js} +60 -60
- package/dist/chunks/{model-resolver-wmv5c24e.js → command-5epjyysv.js} +184 -184
- package/dist/chunks/{model-resolver-heqsf106.js → command-5hf3gx0g.js} +15 -15
- package/dist/chunks/{model-resolver-w4wn8erh.js → command-5jvt7m5p.js} +22 -22
- package/dist/chunks/{model-resolver-5m9w47nd.js → command-5m9w47nd.js} +1 -1
- package/dist/chunks/{model-resolver-0yd77tsv.js → command-5n6y45s7.js} +32 -32
- package/dist/chunks/{model-resolver-txtenhwq.js → command-5s47xvcx.js} +13 -13
- package/dist/chunks/{model-resolver-ds91jzkj.js → command-5xkp6yc1.js} +17 -17
- package/dist/chunks/{model-resolver-nd9ab5g5.js → command-5yqpd0c6.js} +29 -29
- package/dist/chunks/{model-resolver-gqa9d39q.js → command-63q56kkm.js} +5 -5
- package/dist/chunks/{model-resolver-6esdw8yj.js → command-6esdw8yj.js} +1 -1
- package/dist/chunks/{model-resolver-4zqw3v5h.js → command-6h4b9nqg.js} +8 -8
- package/dist/chunks/{model-resolver-20yqreeg.js → command-6nkfgcmr.js} +21 -21
- package/dist/chunks/{model-resolver-76cb1hcw.js → command-76cb1hcw.js} +1 -1
- package/dist/chunks/{model-resolver-vwa15b14.js → command-76jsvc9q.js} +50 -50
- package/dist/chunks/{model-resolver-nah043kf.js → command-770pw0s1.js} +4 -4
- package/dist/chunks/{model-resolver-7bmhse3q.js → command-7bmhse3q.js} +1 -1
- package/dist/chunks/{model-resolver-pkmmfap2.js → command-7f7rnj0t.js} +11 -11
- package/dist/chunks/{model-resolver-9ndb8058.js → command-7j073thm.js} +91 -91
- package/dist/chunks/{model-resolver-0wjsrq6g.js → command-7jz8b159.js} +37 -37
- package/dist/chunks/{model-resolver-1c18fjk2.js → command-7rnxwetx.js} +11 -11
- package/dist/chunks/{model-resolver-7w2ypzdf.js → command-7w2ypzdf.js} +1 -1
- package/dist/chunks/{model-resolver-qd123m2a.js → command-8322pcqg.js} +9 -9
- package/dist/chunks/{model-resolver-r119az03.js → command-855nk7ek.js} +37 -37
- package/dist/chunks/{model-resolver-5h3ym5d6.js → command-86p8bbrs.js} +14 -14
- package/dist/chunks/{model-resolver-99vf0hqv.js → command-894m97aw.js} +25 -25
- package/dist/chunks/{model-resolver-6bsbxh19.js → command-8dk4kc5x.js} +24 -24
- package/dist/chunks/{model-resolver-cg5ng5tz.js → command-8etsby8r.js} +43 -43
- package/dist/chunks/{model-resolver-8jztxfpf.js → command-8jztxfpf.js} +1 -1
- package/dist/chunks/{model-resolver-5ser1zg9.js → command-8k289es9.js} +12 -12
- package/dist/chunks/{model-resolver-rvyhr33k.js → command-8vdz7xys.js} +11 -11
- package/dist/chunks/{model-resolver-5ect6tx9.js → command-8whp40kv.js} +3 -3
- package/dist/chunks/{model-resolver-8wtp7s3z.js → command-8wtp7s3z.js} +1 -1
- package/dist/chunks/{model-resolver-90zstvax.js → command-90zstvax.js} +1 -1
- package/dist/chunks/{model-resolver-b1acbdmy.js → command-9fktqme4.js} +17 -17
- package/dist/chunks/{model-resolver-9q8g9sv8.js → command-9q8g9sv8.js} +1 -1
- package/dist/chunks/{model-resolver-9r0x1bva.js → command-9r0x1bva.js} +2 -2
- package/dist/chunks/{model-resolver-00j2jq49.js → command-9vf3vq7b.js} +21 -21
- package/dist/chunks/{model-resolver-9y0knddb.js → command-9wzjb77v.js} +5 -5
- package/dist/chunks/{model-resolver-70q4g7fy.js → command-a20g6ne5.js} +15 -15
- package/dist/chunks/{model-resolver-mbwkpxg7.js → command-a6t5v42q.js} +7 -7
- package/dist/chunks/{model-resolver-6551djh0.js → command-ac6xf83y.js} +21 -21
- package/dist/chunks/{model-resolver-72dm1bvs.js → command-ahyb432b.js} +3 -3
- package/dist/chunks/{model-resolver-ahzfx2tk.js → command-amrj7qc1.js} +6 -6
- package/dist/chunks/{model-resolver-s0pcnr2w.js → command-as683dr2.js} +17 -17
- package/dist/chunks/{model-resolver-00vhvht6.js → command-ata4hxyc.js} +9 -9
- package/dist/chunks/{model-resolver-bk7xq8bh.js → command-ayeq9fxf.js} +8 -8
- package/dist/chunks/{model-resolver-ayjs7tqn.js → command-ayjs7tqn.js} +2 -2
- package/dist/chunks/{model-resolver-b6vsg801.js → command-b6vsg801.js} +2 -2
- package/dist/chunks/{model-resolver-s4wznsg5.js → command-bfaa3fyj.js} +6 -6
- package/dist/chunks/{model-resolver-68aa2d0k.js → command-bghtn7x8.js} +22 -22
- package/dist/chunks/{model-resolver-86xcj867.js → command-bqne9xnh.js} +14 -14
- package/dist/chunks/{model-resolver-bstexjd6.js → command-bstexjd6.js} +1 -1
- package/dist/chunks/{model-resolver-q6vrwb3q.js → command-bw7z95jg.js} +35 -35
- package/dist/chunks/{model-resolver-q6jh4k34.js → command-bxbgm0np.js} +24 -24
- package/dist/chunks/{model-resolver-k4003xxm.js → command-byb3djp0.js} +28 -28
- package/dist/chunks/{model-resolver-mpe6qr53.js → command-c5m2a8vb.js} +8 -8
- package/dist/chunks/{model-resolver-axj80nt7.js → command-cpzme4dc.js} +25 -25
- package/dist/chunks/{model-resolver-vngnyhcg.js → command-cq3k11qx.js} +4 -4
- package/dist/chunks/{model-resolver-z5c5swc0.js → command-cvkyy8as.js} +11 -11
- package/dist/chunks/{model-resolver-cwrgdav8.js → command-cwrgdav8.js} +2 -2
- package/dist/chunks/{model-resolver-ee456nc6.js → command-cxqt8363.js} +16 -16
- package/dist/chunks/{model-resolver-d2887f8n.js → command-d2887f8n.js} +1 -1
- package/dist/chunks/{model-resolver-c7r1w9rw.js → command-d3q76dbt.js} +9 -9
- package/dist/chunks/{model-resolver-6eh6zpt5.js → command-d3xp083n.js} +3 -3
- package/dist/chunks/{model-resolver-d4v9tmah.js → command-d4v9tmah.js} +2 -2
- package/dist/chunks/{model-resolver-trw4ad51.js → command-da8fh3w6.js} +9 -9
- package/dist/chunks/{model-resolver-8xq2wskz.js → command-dh3t098k.js} +9 -9
- package/dist/chunks/command-dhwr4tpt.js +511 -0
- package/dist/chunks/{model-resolver-2jz3h0mg.js → command-dk4kgb96.js} +16 -16
- package/dist/chunks/{model-resolver-hyn2hf34.js → command-dqpjcdfr.js} +9 -9
- package/dist/chunks/{model-resolver-tmvkcy0b.js → command-dsnd5zgh.js} +25 -25
- package/dist/chunks/{model-resolver-dt77769w.js → command-dt77769w.js} +1 -1
- package/dist/chunks/{model-resolver-wgdwbctn.js → command-dtrp02zs.js} +9 -9
- package/dist/chunks/{model-resolver-zt8d8h0y.js → command-e1jp2z5s.js} +11 -11
- package/dist/chunks/{model-resolver-0yjd96ev.js → command-e1m4p0v5.js} +14 -14
- package/dist/chunks/{model-resolver-e834z07m.js → command-e834z07m.js} +1 -1
- package/dist/chunks/{model-resolver-1eg9cpxp.js → command-egv8e2hp.js} +17 -17
- package/dist/chunks/{model-resolver-f01y088k.js → command-f01y088k.js} +2 -2
- package/dist/chunks/{model-resolver-fffv3p7h.js → command-fffv3p7h.js} +1 -1
- package/dist/chunks/{model-resolver-fg9p65nk.js → command-fg9p65nk.js} +2 -2
- package/dist/chunks/{model-resolver-akhh771z.js → command-fjxznerj.js} +13 -13
- package/dist/chunks/{model-resolver-7j5kte3m.js → command-fm82e0z4.js} +9 -9
- package/dist/chunks/{model-resolver-ahzmq0a0.js → command-frhmmft9.js} +10 -10
- package/dist/chunks/{model-resolver-wz5dzc00.js → command-fwb4xs1d.js} +25 -25
- package/dist/chunks/{model-resolver-8vkd6pwc.js → command-fxd1refm.js} +12 -12
- package/dist/chunks/{model-resolver-djh43rh9.js → command-g5fr6wr5.js} +17 -17
- package/dist/chunks/{model-resolver-g7esga4v.js → command-g7esga4v.js} +1 -1
- package/dist/chunks/{model-resolver-dgc1n24t.js → command-g853qrcj.js} +51 -51
- package/dist/chunks/{model-resolver-gg8p9cgs.js → command-gg8p9cgs.js} +3 -3
- package/dist/chunks/{model-resolver-dh6wd5j1.js → command-gs31mcp0.js} +16 -16
- package/dist/chunks/{model-resolver-1kn6jdkn.js → command-gtn9c16a.js} +4 -4
- package/dist/chunks/{model-resolver-bc7wy6df.js → command-h1vvy3p9.js} +36 -36
- package/dist/chunks/{model-resolver-gjvqgy9h.js → command-hbyynrh9.js} +15 -15
- package/dist/chunks/{model-resolver-7ktdj9mm.js → command-hdfrs5mg.js} +9 -9
- package/dist/chunks/{model-resolver-06bhh52d.js → command-hgwzxrzc.js} +26 -26
- package/dist/chunks/{model-resolver-hpg1pkwy.js → command-hpg1pkwy.js} +1 -1
- package/dist/chunks/{model-resolver-x634fp5p.js → command-htb45g8t.js} +11 -11
- package/dist/chunks/{model-resolver-c1p828ba.js → command-hwpnj6c7.js} +12 -12
- package/dist/chunks/{model-resolver-e2ber9ej.js → command-jd1hqz7r.js} +4 -4
- package/dist/chunks/{model-resolver-jfaecv01.js → command-jfaecv01.js} +1 -1
- package/dist/chunks/{model-resolver-hkrnt7ft.js → command-jhsa714p.js} +33 -33
- package/dist/chunks/{model-resolver-p1d2jd5s.js → command-jjg0fd2w.js} +30 -30
- package/dist/chunks/{model-resolver-a8xdst61.js → command-jjkdygwn.js} +14 -14
- package/dist/chunks/{model-resolver-jtnps1zs.js → command-jtnps1zs.js} +2 -2
- package/dist/chunks/{model-resolver-xg4yp5ky.js → command-jtz26s32.js} +11 -11
- package/dist/chunks/{model-resolver-03p96rzt.js → command-k02np800.js} +23 -23
- package/dist/chunks/{model-resolver-k814nvkf.js → command-k814nvkf.js} +1 -1
- package/dist/chunks/{model-resolver-bhvs01y7.js → command-kkew1p9e.js} +6 -6
- package/dist/chunks/{model-resolver-kmzgegqq.js → command-kmzgegqq.js} +1 -1
- package/dist/chunks/{model-resolver-h88vzpmf.js → command-kqgx07am.js} +3 -3
- package/dist/chunks/{model-resolver-kt3bjfbg.js → command-kt3bjfbg.js} +1 -1
- package/dist/chunks/{model-resolver-m1714858.js → command-m1714858.js} +1 -1
- package/dist/chunks/{model-resolver-8anaanvs.js → command-m6ss8v1v.js} +3 -3
- package/dist/chunks/{model-resolver-m9w0rfyh.js → command-m9w0rfyh.js} +1 -1
- package/dist/chunks/command-me0dhgxs.js +18 -0
- package/dist/chunks/{model-resolver-d94amd98.js → command-mfw28sm0.js} +17 -17
- package/dist/chunks/{model-resolver-dndg0yrt.js → command-mt5p9bn9.js} +17 -17
- package/dist/chunks/{model-resolver-xwjvc1xc.js → command-n1f7r4jg.js} +11 -11
- package/dist/chunks/{model-resolver-n3bkb5q1.js → command-n3bkb5q1.js} +2 -2
- package/dist/chunks/{model-resolver-a8pfnwqf.js → command-nbg58ndn.js} +43 -43
- package/dist/chunks/{model-resolver-5x26af84.js → command-nf3nsvxh.js} +4 -4
- package/dist/chunks/{model-resolver-810xvjsv.js → command-nfanb3qk.js} +13 -13
- package/dist/chunks/{model-resolver-22frdqra.js → command-nkyxjm4a.js} +13 -13
- package/dist/chunks/{model-resolver-p015t6z3.js → command-p015t6z3.js} +2 -2
- package/dist/chunks/{model-resolver-reccgsd2.js → command-p62jemgq.js} +11 -11
- package/dist/chunks/{model-resolver-e2ne77ac.js → command-p745vxmt.js} +6 -6
- package/dist/chunks/{model-resolver-1yq9hg58.js → command-p7vhpwh8.js} +5 -5
- package/dist/chunks/{model-resolver-mfc2a6rt.js → command-p9p598qb.js} +32 -32
- package/dist/chunks/{model-resolver-1tte1mx1.js → command-padn2eeq.js} +13 -13
- package/dist/chunks/{model-resolver-pknna89w.js → command-pknna89w.js} +1 -1
- package/dist/chunks/{model-resolver-pnwsrq7c.js → command-pnwsrq7c.js} +3 -3
- package/dist/chunks/{model-resolver-9615vp9a.js → command-q5hbf1bz.js} +1 -1
- package/dist/chunks/{model-resolver-q63cb7ap.js → command-q63cb7ap.js} +3 -3
- package/dist/chunks/{model-resolver-ejjd5knb.js → command-q7x29y72.js} +35 -35
- package/dist/chunks/{model-resolver-mrsvesd2.js → command-qerad60p.js} +4 -4
- package/dist/chunks/{model-resolver-yxbkj6h6.js → command-qg71vpy1.js} +9 -9
- package/dist/chunks/{model-resolver-qp7r0hxv.js → command-qp7r0hxv.js} +1 -1
- package/dist/chunks/{model-resolver-6pvfyazw.js → command-qygtycqa.js} +9 -9
- package/dist/chunks/{model-resolver-r0yr0wbs.js → command-r0yr0wbs.js} +1 -1
- package/dist/chunks/{model-resolver-r542h3bh.js → command-r542h3bh.js} +1 -1
- package/dist/chunks/{model-resolver-pje2jx9t.js → command-r8ygw0sc.js} +18 -18
- package/dist/chunks/{model-resolver-rb9dy4dg.js → command-rb9dy4dg.js} +1 -1
- package/dist/chunks/{model-resolver-2mbjfaxd.js → command-rcbjwvze.js} +4 -4
- package/dist/chunks/{model-resolver-vdvshhtc.js → command-rew8mj1n.js} +7 -7
- package/dist/chunks/{model-resolver-30q9anfd.js → command-rjm1mwc3.js} +2 -2
- package/dist/chunks/{model-resolver-8pd54nv5.js → command-rmzznxa2.js} +27 -27
- package/dist/chunks/{model-resolver-wtt1w7za.js → command-rpkw1g3t.js} +25 -25
- package/dist/chunks/{model-resolver-rt5dr6hb.js → command-rt5dr6hb.js} +1 -1
- package/dist/chunks/{model-resolver-x8c03df4.js → command-rvwg8rn3.js} +3 -3
- package/dist/chunks/{model-resolver-dx3ks3p5.js → command-s4wh0s60.js} +2 -2
- package/dist/chunks/{model-resolver-w4pg5caa.js → command-s55xdrfs.js} +25 -25
- package/dist/chunks/{model-resolver-sa3fpqfw.js → command-sa3fpqfw.js} +2 -2
- package/dist/chunks/{model-resolver-8qp8tat4.js → command-sb04x4h3.js} +20 -20
- package/dist/chunks/{model-resolver-mdmwbg8j.js → command-sje0z0tk.js} +14 -14
- package/dist/chunks/{model-resolver-sqjzf8x2.js → command-sqjzf8x2.js} +1 -1
- package/dist/chunks/{model-resolver-we6d48z7.js → command-sr1dt70d.js} +1 -1
- package/dist/chunks/{model-resolver-7re6vdtc.js → command-sr40d3da.js} +5 -5
- package/dist/chunks/{model-resolver-svcy3p9a.js → command-svcy3p9a.js} +1 -1
- package/dist/chunks/{model-resolver-p9fz6enw.js → command-sym2g66c.js} +11 -11
- package/dist/chunks/{model-resolver-smna7vm8.js → command-t2r27f6d.js} +15 -15
- package/dist/chunks/{model-resolver-02912v3r.js → command-t3gyy76t.js} +38 -38
- package/dist/chunks/{model-resolver-cyy83wr4.js → command-t4xy5q2h.js} +21 -21
- package/dist/chunks/{model-resolver-emg3vk42.js → command-t50ft15e.js} +83 -83
- package/dist/chunks/{model-resolver-259dfg4a.js → command-t56wpkx3.js} +15 -15
- package/dist/chunks/{model-resolver-wx4czxg4.js → command-t646ab44.js} +3 -3
- package/dist/chunks/{model-resolver-ejmp5hdk.js → command-t6bdq4ae.js} +30 -30
- package/dist/chunks/{model-resolver-n70b5eav.js → command-t6p5basa.js} +9 -9
- package/dist/chunks/{model-resolver-e9fd3qhg.js → command-tar054ab.js} +43 -43
- package/dist/chunks/{model-resolver-vtc2wvc2.js → command-tcmyp6yy.js} +4 -4
- package/dist/chunks/{model-resolver-tczq8hjw.js → command-tczq8hjw.js} +1 -1
- package/dist/chunks/{model-resolver-c5jkhswj.js → command-tek21tes.js} +7 -7
- package/dist/chunks/{model-resolver-pc07gvhs.js → command-tg5s95kk.js} +17 -17
- package/dist/chunks/{model-resolver-twssxy5n.js → command-twssxy5n.js} +2 -2
- package/dist/chunks/{model-resolver-t4139yy5.js → command-ty9942w5.js} +27 -27
- package/dist/chunks/{model-resolver-83sq6nks.js → command-v0gm0fq4.js} +10 -10
- package/dist/chunks/{model-resolver-v2r1d0zg.js → command-v2r1d0zg.js} +1 -1
- package/dist/chunks/{model-resolver-htryym1w.js → command-v38aff5x.js} +32 -32
- package/dist/chunks/{model-resolver-j99dhamb.js → command-v4ek9rx4.js} +6 -6
- package/dist/chunks/{model-resolver-p4j4rdzm.js → command-v7xj81rq.js} +3 -3
- package/dist/chunks/{model-resolver-rq55acke.js → command-v9ffx0tz.js} +15 -15
- package/dist/chunks/{model-resolver-p2f2xnf4.js → command-vc5eegtv.js} +8 -8
- package/dist/chunks/{model-resolver-veqvce7d.js → command-veqvce7d.js} +1 -1
- package/dist/chunks/{model-resolver-bn4d6q1b.js → command-vg0ft4mp.js} +26 -26
- package/dist/chunks/{model-resolver-aafmq595.js → command-vjrk7mrg.js} +24 -24
- package/dist/chunks/{model-resolver-n8jrpgc8.js → command-vjx7pmy6.js} +11 -11
- package/dist/chunks/{model-resolver-stbdvqqm.js → command-vjy3t4hp.js} +15 -15
- package/dist/chunks/{model-resolver-0e6cmbb1.js → command-vk0va4ns.js} +7 -7
- package/dist/chunks/{model-resolver-dem1p0gt.js → command-vnbbybtr.js} +31 -31
- package/dist/chunks/{model-resolver-g1rms717.js → command-vpfvr7pj.js} +55 -55
- package/dist/chunks/{model-resolver-gcjdgkn2.js → command-vrcsa8qx.js} +9 -9
- package/dist/chunks/{model-resolver-bpeyfd4s.js → command-vtazzqvz.js} +31 -31
- package/dist/chunks/{model-resolver-h7gvp0tv.js → command-vwvg46tm.js} +2 -2
- package/dist/chunks/{model-resolver-k9zkdd2y.js → command-w307e9wj.js} +4 -4
- package/dist/chunks/{model-resolver-w3wsvvr9.js → command-w3wsvvr9.js} +1 -1
- package/dist/chunks/{model-resolver-b6z35kmf.js → command-w687dnns.js} +4 -4
- package/dist/chunks/{model-resolver-7s7rdm9s.js → command-w71j32r1.js} +22 -22
- package/dist/chunks/{model-resolver-kk6hjsv6.js → command-wa02e4w7.js} +22 -22
- package/dist/chunks/{model-resolver-wakvkjy4.js → command-wakvkjy4.js} +1 -1
- package/dist/chunks/{model-resolver-wd87259q.js → command-wd87259q.js} +1 -1
- package/dist/chunks/{model-resolver-wnhgecwx.js → command-wnhgecwx.js} +1 -1
- package/dist/chunks/{model-resolver-t8vm8f3g.js → command-wrtc07rs.js} +12 -12
- package/dist/chunks/{model-resolver-4sy33n8r.js → command-wy39txpv.js} +27 -27
- package/dist/chunks/{model-resolver-yzg01fn7.js → command-wze2rh1w.js} +12 -12
- package/dist/chunks/{model-resolver-n3vkcfay.js → command-xcgf2a96.js} +27 -27
- package/dist/chunks/{model-resolver-dy0t2s89.js → command-xd4wg3dz.js} +9 -9
- package/dist/chunks/{model-resolver-6d7x7hha.js → command-xqdc6ght.js} +27 -27
- package/dist/chunks/{model-resolver-jv8ma802.js → command-xr08hmyf.js} +19 -19
- package/dist/chunks/{model-resolver-2gmf4cwd.js → command-xsmvaqb0.js} +12 -12
- package/dist/chunks/{model-resolver-08h64782.js → command-y44nw84n.js} +34 -34
- package/dist/chunks/{model-resolver-y00x4xpa.js → command-y4n6pw34.js} +4 -4
- package/dist/chunks/{model-resolver-yara3q77.js → command-yara3q77.js} +2 -2
- package/dist/chunks/{model-resolver-yb20nhc3.js → command-yb20nhc3.js} +1 -1
- package/dist/chunks/{model-resolver-zfjyz62k.js → command-yb65w6k9.js} +27 -27
- package/dist/chunks/{model-resolver-mznqryyf.js → command-yem8zf21.js} +10 -10
- package/dist/chunks/{model-resolver-4s4jqh0r.js → command-yhv04qhe.js} +1 -1
- package/dist/chunks/{model-resolver-qjxc6f6y.js → command-yqw7dbm9.js} +19 -19
- package/dist/chunks/{model-resolver-1wnedb0q.js → command-ysp28c2z.js} +2 -2
- package/dist/chunks/{model-resolver-g75vtk68.js → command-yvzg1qya.js} +48 -48
- package/dist/chunks/{model-resolver-z0bkrqjs.js → command-z0bkrqjs.js} +1 -1
- package/dist/chunks/{model-resolver-j2xzb38w.js → command-z2sxkq9m.js} +11 -11
- package/dist/chunks/{model-resolver-xkpx6s0s.js → command-z2ttmvzn.js} +15 -15
- package/dist/chunks/{model-resolver-z38nccrw.js → command-z38nccrw.js} +1 -1
- package/dist/chunks/{model-resolver-r2d4vn47.js → command-z7c8gxnm.js} +17 -17
- package/dist/chunks/{model-resolver-mbv30hgw.js → command-zag65vbv.js} +36 -36
- package/dist/chunks/{model-resolver-bjyz8pkd.js → command-zb17hmp7.js} +26 -26
- package/dist/chunks/{model-resolver-rrad2nt9.js → command-zba5tm1j.js} +4 -4
- package/dist/chunks/{model-resolver-26x8chrq.js → command-zg0jbn27.js} +6 -6
- package/dist/chunks/{model-resolver-jszp152f.js → command-zg6yp68a.js} +19 -19
- package/dist/chunks/{model-resolver-bnfkacme.js → command-zkgb2v1a.js} +27 -27
- package/dist/chunks/{model-resolver-5yypp707.js → command-zma8kk4y.js} +19 -19
- package/dist/chunks/{model-resolver-wy5mgfg9.js → command-zw0est8d.js} +72 -72
- package/dist/chunks/{model-resolver-jd9t7fpz.js → command-zxjgzmwm.js} +54 -54
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- 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 +3 -3
- 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 +3 -3
- 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 +122 -122
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- 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 +100 -100
- 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 +1 -1
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -80
- package/dist/file-access.js +148 -148
- 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 +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +7 -7
- package/dist/filesystem.js +110 -110
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +115 -115
- 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 +107 -107
- 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-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +372 -372
- package/dist/instruction-discovery.js +90 -90
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +3 -3
- 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 +77 -77
- 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 +97 -97
- package/dist/managed-policy.js +3 -3
- 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 +107 -107
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +116 -116
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +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 +96 -96
- 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 +1 -1
- package/dist/plugin/internal.js +342 -342
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +121 -121
- package/dist/plugin/optimize.js +4 -4
- 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 +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +123 -123
- package/dist/plugin/provider/opencode.js +124 -124
- 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 +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +175 -175
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +357 -357
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/vcs/git.js +92 -92
- package/dist/plugin/vcs/hg.js +92 -92
- package/dist/plugin/verbosity.js +99 -99
- package/dist/plugin/warming.js +119 -119
- package/dist/plugin/websearch/exa.js +3 -3
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +2 -2
- 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 +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +98 -98
- package/dist/provider.js +101 -101
- 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 +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -103
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -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 +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -231
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +138 -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 +132 -132
- package/dist/session/message-updater.js +2 -2
- 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 +1 -1
- 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 +152 -152
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- 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 +79 -79
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +227 -227
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -223
- 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 +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +148 -148
- package/dist/snapshot.js +99 -99
- 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 +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +138 -138
- 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 +145 -145
- package/dist/tool/plugin/write.js +158 -158
- 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/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 +3 -3
- package/dist/v1/config/command.js +1 -1
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +1 -1
- 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 +90 -90
- package/dist/websearch.js +90 -90
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +85 -85
- 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 +8 -8
- package/dist/chunks/model-resolver-0rvmmz3p.js +0 -511
- package/dist/chunks/model-resolver-6zjm2phc.js +0 -18
- package/dist/chunks/model-resolver-ft16aaq7.js +0 -257
- /package/dist/chunks/{model-resolver-0qkdqm5v.js → command-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{model-resolver-0zkw76rk.js → command-0zkw76rk.js} +0 -0
- /package/dist/chunks/{model-resolver-17cy0kzp.js → command-17cy0kzp.js} +0 -0
- /package/dist/chunks/{model-resolver-1cnp2v09.js → command-1cnp2v09.js} +0 -0
- /package/dist/chunks/{model-resolver-1jakw16s.js → command-1jakw16s.js} +0 -0
- /package/dist/chunks/{model-resolver-24dcb14g.js → command-24dcb14g.js} +0 -0
- /package/dist/chunks/{model-resolver-2710q6r3.js → command-2710q6r3.js} +0 -0
- /package/dist/chunks/{model-resolver-2bv980vf.js → command-2bv980vf.js} +0 -0
- /package/dist/chunks/{model-resolver-2c3vjs8z.js → command-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{model-resolver-359p4xyc.js → command-359p4xyc.js} +0 -0
- /package/dist/chunks/{model-resolver-3asan66x.js → command-3asan66x.js} +0 -0
- /package/dist/chunks/{model-resolver-3v8g72cx.js → command-3v8g72cx.js} +0 -0
- /package/dist/chunks/{model-resolver-3wcehsnq.js → command-3wcehsnq.js} +0 -0
- /package/dist/chunks/{model-resolver-43n2bw4t.js → command-43n2bw4t.js} +0 -0
- /package/dist/chunks/{model-resolver-4knz6hnm.js → command-4knz6hnm.js} +0 -0
- /package/dist/chunks/{model-resolver-4m86bj6y.js → command-4m86bj6y.js} +0 -0
- /package/dist/chunks/{model-resolver-4vcrnpx2.js → command-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{model-resolver-4y7fprxs.js → command-4y7fprxs.js} +0 -0
- /package/dist/chunks/{model-resolver-53557ph1.js → command-53557ph1.js} +0 -0
- /package/dist/chunks/{model-resolver-550bvhaj.js → command-550bvhaj.js} +0 -0
- /package/dist/chunks/{model-resolver-5w3e23ze.js → command-5w3e23ze.js} +0 -0
- /package/dist/chunks/{model-resolver-6prwharc.js → command-6prwharc.js} +0 -0
- /package/dist/chunks/{model-resolver-6q2bdcd1.js → command-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{model-resolver-7akdwqpd.js → command-7akdwqpd.js} +0 -0
- /package/dist/chunks/{model-resolver-7m9af43g.js → command-7m9af43g.js} +0 -0
- /package/dist/chunks/{model-resolver-822emrt2.js → command-822emrt2.js} +0 -0
- /package/dist/chunks/{model-resolver-84wd9syh.js → command-84wd9syh.js} +0 -0
- /package/dist/chunks/{model-resolver-88xbtdfr.js → command-88xbtdfr.js} +0 -0
- /package/dist/chunks/{model-resolver-8n3pysct.js → command-8n3pysct.js} +0 -0
- /package/dist/chunks/{model-resolver-8wj87zfr.js → command-8wj87zfr.js} +0 -0
- /package/dist/chunks/{model-resolver-9a4afbnw.js → command-9a4afbnw.js} +0 -0
- /package/dist/chunks/{model-resolver-9rqn6x4v.js → command-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{model-resolver-a058387c.js → command-a058387c.js} +0 -0
- /package/dist/chunks/{model-resolver-a6k6eb26.js → command-a6k6eb26.js} +0 -0
- /package/dist/chunks/{model-resolver-af5trqkr.js → command-af5trqkr.js} +0 -0
- /package/dist/chunks/{model-resolver-afrmfg78.js → command-afrmfg78.js} +0 -0
- /package/dist/chunks/{model-resolver-aqzs7mqg.js → command-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{model-resolver-atq7p7m5.js → command-atq7p7m5.js} +0 -0
- /package/dist/chunks/{model-resolver-beh6qq61.js → command-beh6qq61.js} +0 -0
- /package/dist/chunks/{model-resolver-bkyjaxrp.js → command-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{model-resolver-bmr6ed5q.js → command-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{model-resolver-cf4snx6d.js → command-cf4snx6d.js} +0 -0
- /package/dist/chunks/{model-resolver-cqv5kn06.js → command-cqv5kn06.js} +0 -0
- /package/dist/chunks/{model-resolver-cvy3z8tj.js → command-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{model-resolver-d9fn303g.js → command-d9fn303g.js} +0 -0
- /package/dist/chunks/{model-resolver-d9jj8t3e.js → command-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{model-resolver-dajrwvna.js → command-dajrwvna.js} +0 -0
- /package/dist/chunks/{model-resolver-dap0rakb.js → command-dap0rakb.js} +0 -0
- /package/dist/chunks/{model-resolver-df08tz66.js → command-df08tz66.js} +0 -0
- /package/dist/chunks/{model-resolver-dy18nga0.js → command-dy18nga0.js} +0 -0
- /package/dist/chunks/{model-resolver-e5kj55wp.js → command-e5kj55wp.js} +0 -0
- /package/dist/chunks/{model-resolver-e73j6tqm.js → command-e73j6tqm.js} +0 -0
- /package/dist/chunks/{model-resolver-ec1grn59.js → command-ec1grn59.js} +0 -0
- /package/dist/chunks/{model-resolver-eh3zwz77.js → command-eh3zwz77.js} +0 -0
- /package/dist/chunks/{model-resolver-emrn6kk6.js → command-emrn6kk6.js} +0 -0
- /package/dist/chunks/{model-resolver-f0mxakyp.js → command-f0mxakyp.js} +0 -0
- /package/dist/chunks/{model-resolver-f6n9ztr4.js → command-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{model-resolver-faypxj3z.js → command-faypxj3z.js} +0 -0
- /package/dist/chunks/{model-resolver-fd410y7t.js → command-fd410y7t.js} +0 -0
- /package/dist/chunks/{model-resolver-fkpq3x5p.js → command-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{model-resolver-g4wezp1m.js → command-g4wezp1m.js} +0 -0
- /package/dist/chunks/{model-resolver-g86h250q.js → command-g86h250q.js} +0 -0
- /package/dist/chunks/{model-resolver-gebd4c9n.js → command-gebd4c9n.js} +0 -0
- /package/dist/chunks/{model-resolver-gftt206x.js → command-gftt206x.js} +0 -0
- /package/dist/chunks/{model-resolver-hcxmzztb.js → command-hcxmzztb.js} +0 -0
- /package/dist/chunks/{model-resolver-hk9envan.js → command-hk9envan.js} +0 -0
- /package/dist/chunks/{model-resolver-j2ntwpah.js → command-j2ntwpah.js} +0 -0
- /package/dist/chunks/{model-resolver-j5zkgpj8.js → command-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{model-resolver-jjkms2e6.js → command-jjkms2e6.js} +0 -0
- /package/dist/chunks/{model-resolver-jr7sbwjy.js → command-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{model-resolver-jwfs4k6c.js → command-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{model-resolver-jwr30sdr.js → command-jwr30sdr.js} +0 -0
- /package/dist/chunks/{model-resolver-jze0r7bz.js → command-jze0r7bz.js} +0 -0
- /package/dist/chunks/{model-resolver-jzg6c2d5.js → command-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{model-resolver-m18g726c.js → command-m18g726c.js} +0 -0
- /package/dist/chunks/{model-resolver-mp448xyj.js → command-mp448xyj.js} +0 -0
- /package/dist/chunks/{model-resolver-msx8hqn2.js → command-msx8hqn2.js} +0 -0
- /package/dist/chunks/{model-resolver-n05xt0ee.js → command-n05xt0ee.js} +0 -0
- /package/dist/chunks/{model-resolver-n3j8tn72.js → command-n3j8tn72.js} +0 -0
- /package/dist/chunks/{model-resolver-ncqqe42p.js → command-ncqqe42p.js} +0 -0
- /package/dist/chunks/{model-resolver-njntx4h6.js → command-njntx4h6.js} +0 -0
- /package/dist/chunks/{model-resolver-p71gwv9c.js → command-p71gwv9c.js} +0 -0
- /package/dist/chunks/{model-resolver-q3sfg36h.js → command-q3sfg36h.js} +0 -0
- /package/dist/chunks/{model-resolver-q74kybfr.js → command-q74kybfr.js} +0 -0
- /package/dist/chunks/{model-resolver-qaymkmh1.js → command-qaymkmh1.js} +0 -0
- /package/dist/chunks/{model-resolver-qb87gjwd.js → command-qb87gjwd.js} +0 -0
- /package/dist/chunks/{model-resolver-qfa1cgps.js → command-qfa1cgps.js} +0 -0
- /package/dist/chunks/{model-resolver-qg3g05ea.js → command-qg3g05ea.js} +0 -0
- /package/dist/chunks/{model-resolver-qrg20bc0.js → command-qrg20bc0.js} +0 -0
- /package/dist/chunks/{model-resolver-rcb2kzg1.js → command-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{model-resolver-sdp7kfr6.js → command-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{model-resolver-ssg3fenm.js → command-ssg3fenm.js} +0 -0
- /package/dist/chunks/{model-resolver-ve7vex1e.js → command-ve7vex1e.js} +0 -0
- /package/dist/chunks/{model-resolver-w803qqfp.js → command-w803qqfp.js} +0 -0
- /package/dist/chunks/{model-resolver-wc3fc9cn.js → command-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{model-resolver-wer8tq1h.js → command-wer8tq1h.js} +0 -0
- /package/dist/chunks/{model-resolver-wtztk69x.js → command-wtztk69x.js} +0 -0
- /package/dist/chunks/{model-resolver-x0ckcb58.js → command-x0ckcb58.js} +0 -0
- /package/dist/chunks/{model-resolver-x61499pn.js → command-x61499pn.js} +0 -0
- /package/dist/chunks/{model-resolver-y44na4kk.js → command-y44na4kk.js} +0 -0
- /package/dist/chunks/{model-resolver-y8f7s663.js → command-y8f7s663.js} +0 -0
- /package/dist/chunks/{model-resolver-ygaqb7jw.js → command-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{model-resolver-ym463w8f.js → command-ym463w8f.js} +0 -0
- /package/dist/chunks/{model-resolver-z5v4ffb3.js → command-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{model-resolver-z9919s4g.js → command-z9919s4g.js} +0 -0
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./command-e1m4p0v5.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./command-tg5s95kk.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service70,
|
|
11
|
+
node74
|
|
12
|
+
} from "./command-egv8e2hp.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
NotFoundError9
|
|
15
|
+
} from "./command-kkew1p9e.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service68,
|
|
18
|
+
node72
|
|
19
|
+
} from "./command-8k289es9.js";
|
|
20
20
|
import {
|
|
21
21
|
match2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./command-z38nccrw.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service67,
|
|
25
|
+
node71
|
|
26
|
+
} from "./command-0ns80rp4.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service69,
|
|
29
|
+
node73
|
|
30
|
+
} from "./command-ayeq9fxf.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./command-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/permission.ts
|
|
36
36
|
var exports_permission = {};
|
|
@@ -40,18 +40,18 @@ __export(exports_permission, {
|
|
|
40
40
|
DeclinedError: () => DeclinedError2,
|
|
41
41
|
Effect: () => PermissionEffect,
|
|
42
42
|
Event: () => Event11,
|
|
43
|
-
ID: () =>
|
|
43
|
+
ID: () => ID7,
|
|
44
44
|
NotFoundError: () => NotFoundError7,
|
|
45
45
|
Permission: () => exports_permission,
|
|
46
46
|
Reply: () => Reply2,
|
|
47
47
|
Request: () => Request2,
|
|
48
48
|
Rule: () => Rule2,
|
|
49
49
|
Ruleset: () => Ruleset2,
|
|
50
|
-
Service: () =>
|
|
50
|
+
Service: () => Service66,
|
|
51
51
|
Source: () => Source5,
|
|
52
52
|
evaluate: () => evaluate2,
|
|
53
53
|
merge: () => merge2,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node70
|
|
55
55
|
});
|
|
56
56
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
57
57
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
@@ -60,7 +60,7 @@ import { Rule as Rule2, Ruleset as Ruleset2 } from "@opencode/schema/permission"
|
|
|
60
60
|
import { Event as Event11 } from "@opencode/schema/permission";
|
|
61
61
|
var PermissionEffect = Permission.Effect;
|
|
62
62
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
63
|
-
var
|
|
63
|
+
var ID7 = Permission.ID;
|
|
64
64
|
var Source5 = Permission.Source;
|
|
65
65
|
var Request2 = Permission.Request;
|
|
66
66
|
var Reply2 = Permission.Reply;
|
|
@@ -85,7 +85,7 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
class NotFoundError7 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
88
|
-
requestID:
|
|
88
|
+
requestID: ID7
|
|
89
89
|
}) {
|
|
90
90
|
}
|
|
91
91
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -99,15 +99,15 @@ function merge2(...rulesets) {
|
|
|
99
99
|
return rulesets.flat();
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
class
|
|
102
|
+
class Service66 extends Context.Service()("@opencode/Permission") {
|
|
103
103
|
}
|
|
104
|
-
var layer = Layer.effect(
|
|
105
|
-
const bus = yield*
|
|
106
|
-
const location = yield*
|
|
107
|
-
const agents = yield*
|
|
108
|
-
const sessions = yield*
|
|
109
|
-
const saved = yield*
|
|
110
|
-
const hooks = yield*
|
|
104
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
105
|
+
const bus = yield* Service85;
|
|
106
|
+
const location = yield* Service82;
|
|
107
|
+
const agents = yield* Service70;
|
|
108
|
+
const sessions = yield* Service68;
|
|
109
|
+
const saved = yield* Service67;
|
|
110
|
+
const hooks = yield* Service69;
|
|
111
111
|
const pending = new Map;
|
|
112
112
|
let closed = false;
|
|
113
113
|
const close = Effect.gen(function* () {
|
|
@@ -130,7 +130,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
130
130
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
131
131
|
const session = yield* sessions.get(sessionID);
|
|
132
132
|
if (!session)
|
|
133
|
-
return yield* new
|
|
133
|
+
return yield* new NotFoundError9({ sessionID });
|
|
134
134
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
135
135
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
136
136
|
});
|
|
@@ -160,7 +160,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
160
160
|
});
|
|
161
161
|
function request(input, message) {
|
|
162
162
|
return {
|
|
163
|
-
id: input.id ??
|
|
163
|
+
id: input.id ?? ID7.create(),
|
|
164
164
|
sessionID: input.sessionID,
|
|
165
165
|
action: input.action,
|
|
166
166
|
resources: input.resources,
|
|
@@ -185,7 +185,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
185
185
|
}));
|
|
186
186
|
const ask = Effect.fn("Permission.ask")(function* (input) {
|
|
187
187
|
if (closed)
|
|
188
|
-
return { id: input.id ??
|
|
188
|
+
return { id: input.id ?? ID7.create(), effect: "deny" };
|
|
189
189
|
const result = yield* evaluateInput(input);
|
|
190
190
|
const value = request(input, result.message);
|
|
191
191
|
if (result.effect === "ask")
|
|
@@ -282,12 +282,12 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
282
282
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
283
283
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
284
284
|
});
|
|
285
|
-
return
|
|
285
|
+
return Service66.of({ ask, assert, assertNotDenied, reply, get, forSession, list, close });
|
|
286
286
|
}));
|
|
287
|
-
var
|
|
288
|
-
service:
|
|
287
|
+
var node70 = makeLocationNode({
|
|
288
|
+
service: Service66,
|
|
289
289
|
layer,
|
|
290
|
-
deps: [
|
|
290
|
+
deps: [node89, node86, node74, node72, node71, node73]
|
|
291
291
|
});
|
|
292
292
|
|
|
293
|
-
export { PermissionEffect,
|
|
293
|
+
export { PermissionEffect, ID7, Source5, Request2, Reply2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError7, evaluate2, merge2, Service66, node70, exports_permission, Rule2, Ruleset2, Event11 };
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
renderInitial2,
|
|
6
6
|
renderUpdate2,
|
|
7
7
|
applyHashDelta2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./command-gtn9c16a.js";
|
|
9
9
|
import {
|
|
10
10
|
SessionEvent2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./command-ec1grn59.js";
|
|
12
12
|
import {
|
|
13
13
|
InstructionBlobTable2,
|
|
14
14
|
InstructionStateTable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./command-gg8p9cgs.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./command-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/instruction-state.ts
|
|
21
21
|
var exports_instruction_state = {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-8jztxfpf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service59,
|
|
6
|
+
node62
|
|
7
|
+
} from "./command-8dk4kc5x.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./command-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/file-mutation.ts
|
|
13
13
|
var exports_file_mutation = {};
|
|
14
14
|
__export(exports_file_mutation, {
|
|
15
15
|
FileMutation: () => exports_file_mutation,
|
|
16
|
-
Service: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
Service: () => Service58,
|
|
17
|
+
node: () => node61,
|
|
18
18
|
readText: () => readText2,
|
|
19
19
|
syncTextBom: () => syncTextBom2
|
|
20
20
|
});
|
|
@@ -22,7 +22,7 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
22
22
|
import { Context, Effect, Layer } from "effect";
|
|
23
23
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
24
24
|
import { Bom } from "@opencode/util/bom";
|
|
25
|
-
class
|
|
25
|
+
class Service58 extends Context.Service()("@opencode/FileMutation") {
|
|
26
26
|
}
|
|
27
27
|
var readText2 = Effect.fn("FileMutation.readText")(function* (files, target) {
|
|
28
28
|
return Bom.decodeBytes((yield* files.read(target)).bytes);
|
|
@@ -34,8 +34,8 @@ var syncTextBom2 = Effect.fn("FileMutation.syncTextBom")(function* (files, targe
|
|
|
34
34
|
return synced.text;
|
|
35
35
|
});
|
|
36
36
|
var transactionLocks = makeUnsafe2();
|
|
37
|
-
var layer = Layer.effect(
|
|
38
|
-
const environment = yield*
|
|
37
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
38
|
+
const environment = yield* Service59;
|
|
39
39
|
const locks = makeUnsafe2();
|
|
40
40
|
const withLock = (targets) => (effect) => [...new Set(targets.map(FSUtil.resolve))].sort().reduceRight((result, target) => transactionLocks.withLock(target)(result), effect);
|
|
41
41
|
const withTargetLock = (target) => (effect) => locks.withLock(target.absolute)(Effect.uninterruptible(effect));
|
|
@@ -56,8 +56,8 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
56
56
|
yield* environment.files.write(input.target.absolute, new TextEncoder().encode(Bom.join(next.text, Boolean(current && Bom.has(current)) || next.bom)));
|
|
57
57
|
return writeResult(input.target, current !== undefined);
|
|
58
58
|
})));
|
|
59
|
-
return
|
|
59
|
+
return Service58.of({ withLock, write, writeTextPreservingBom });
|
|
60
60
|
}));
|
|
61
|
-
var
|
|
61
|
+
var node61 = makeLocationNode({ service: Service58, layer, deps: [node62] });
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { Service58, readText2, syncTextBom2, node61, exports_file_mutation };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-v0gm0fq4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./command-e1m4p0v5.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./command-3fcp3vfx.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID12,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./command-2x6gw633.js";
|
|
15
15
|
import {
|
|
16
16
|
ID11
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./command-rpkw1g3t.js";
|
|
18
18
|
import {
|
|
19
19
|
ID10,
|
|
20
20
|
Family2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./command-4wtjrc2f.js";
|
|
22
22
|
import {
|
|
23
23
|
bootstrap2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./command-yb20nhc3.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin/provider/digitalocean.ts
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { Clock, Deferred, Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
29
29
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
30
30
|
var providerID = ID11.make("digitalocean");
|
|
31
|
-
var integrationID =
|
|
31
|
+
var integrationID = ID12.make("digitalocean");
|
|
32
32
|
var methodID = MethodID2.make("browser");
|
|
33
33
|
var clientID = "b1a6c5158156caac821fd1b30253ca8acb52454a48fa744420e41889cb589f82";
|
|
34
34
|
var authorizeEndpoint = "https://cloud.digitalocean.com/v1/oauth/authorize";
|
|
@@ -116,7 +116,7 @@ var oauth = {
|
|
|
116
116
|
var DigitalOceanPlugin2 = define({
|
|
117
117
|
id: "opencode.provider.digitalocean",
|
|
118
118
|
effect: Effect.fn(function* (ctx) {
|
|
119
|
-
const bus = yield*
|
|
119
|
+
const bus = yield* Service85;
|
|
120
120
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
121
121
|
const loading = Semaphore.makeUnsafe(1);
|
|
122
122
|
const loaded = { routers: [] };
|
|
@@ -159,7 +159,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
162
|
-
yield* bus.subscribe(
|
|
162
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
163
163
|
yield* refresh().pipe(Effect.forkScoped);
|
|
164
164
|
})
|
|
165
165
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-jze0r7bz.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service39
|
|
6
|
+
} from "./command-vpfvr7pj.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service66
|
|
9
|
+
} from "./command-nbg58ndn.js";
|
|
10
10
|
import {
|
|
11
11
|
MEDIA_MIMES2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./command-zg6yp68a.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./command-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/tool/plugin/mcp-resource.ts
|
|
18
18
|
var exports_mcp_resource = {};
|
|
19
19
|
__export(exports_mcp_resource, {
|
|
20
20
|
McpResourceTools: () => exports_mcp_resource,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin30
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
|
-
var
|
|
25
|
+
var Plugin30 = {
|
|
26
26
|
id: "opencode.tools.mcp-resources",
|
|
27
27
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
28
|
-
const mcp = yield*
|
|
29
|
-
const permission = yield*
|
|
28
|
+
const mcp = yield* Service39;
|
|
29
|
+
const permission = yield* Service66;
|
|
30
30
|
yield* ctx.tool.transform((editor) => {
|
|
31
31
|
editor.add({
|
|
32
32
|
name: "list_mcp_resources",
|
|
@@ -96,4 +96,4 @@ var Plugin41 = {
|
|
|
96
96
|
})
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin30, exports_mcp_resource };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
render2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-g7esga4v.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/optimize.ts
|
|
9
9
|
var exports_optimize = {};
|
|
@@ -13,7 +13,7 @@ __export(exports_optimize, {
|
|
|
13
13
|
ArceePlugin: () => ArceePlugin2,
|
|
14
14
|
KimiPlugin: () => KimiPlugin2,
|
|
15
15
|
MetaPlugin: () => MetaPlugin2,
|
|
16
|
-
OpenAIPlugin: () =>
|
|
16
|
+
OpenAIPlugin: () => OpenAIPlugin2,
|
|
17
17
|
OpenAIToolsPlugin: () => OpenAIToolsPlugin2,
|
|
18
18
|
OptimizePlugin: () => exports_optimize,
|
|
19
19
|
Plugins: () => Plugins2,
|
|
@@ -375,7 +375,7 @@ By default, match the surrounding comment density: where the code has none, add
|
|
|
375
375
|
`;
|
|
376
376
|
|
|
377
377
|
// src/plugin/optimize.ts
|
|
378
|
-
var
|
|
378
|
+
var OpenAIPlugin2 = make("opencode.prompt.openai", (model) => {
|
|
379
379
|
const id = model.id.toLowerCase();
|
|
380
380
|
if (!id.includes("gpt"))
|
|
381
381
|
return;
|
|
@@ -410,7 +410,7 @@ var MetaPlugin2 = make("opencode.prompt.meta", (model) => {
|
|
|
410
410
|
return;
|
|
411
411
|
return meta_default.replaceAll("{{MODEL_NAME}}", model.name);
|
|
412
412
|
});
|
|
413
|
-
var Plugins2 = [
|
|
413
|
+
var Plugins2 = [OpenAIPlugin2, AnthropicPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2];
|
|
414
414
|
var models = new WeakMap;
|
|
415
415
|
var resolveModel2 = (ctx, event) => Effect.gen(function* () {
|
|
416
416
|
const cached = models.get(event);
|
|
@@ -447,4 +447,4 @@ ${rendered}` : rendered;
|
|
|
447
447
|
});
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
export {
|
|
450
|
+
export { OpenAIPlugin2, AnthropicPlugin2, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, resolveModel2, exports_optimize };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/v1/config/plugin.ts
|
|
6
6
|
var exports_plugin3 = {};
|
|
7
7
|
__export(exports_plugin3, {
|
|
8
8
|
ConfigPluginV1: () => exports_plugin3,
|
|
9
|
-
Options: () =>
|
|
9
|
+
Options: () => Options7,
|
|
10
10
|
Spec: () => Spec2
|
|
11
11
|
});
|
|
12
12
|
import { Schema } from "effect";
|
|
13
|
-
var
|
|
14
|
-
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String,
|
|
13
|
+
var Options7 = Schema.Record(Schema.String, Schema.Unknown);
|
|
14
|
+
var Spec2 = Schema.Union([Schema.String, Schema.mutable(Schema.Tuple([Schema.String, Options7]))]);
|
|
15
15
|
|
|
16
|
-
export {
|
|
16
|
+
export { Options7, Spec2, exports_plugin3 };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./command-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service84,
|
|
9
|
+
node88
|
|
10
|
+
} from "./command-wrtc07rs.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service82,
|
|
13
|
+
node86
|
|
14
|
+
} from "./command-tg5s95kk.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./command-204s3925.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./command-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
|
+
ID: () => ID4,
|
|
27
|
+
Service: () => Service46,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node50,
|
|
30
30
|
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Clock, Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID4 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service46 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service84;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service82;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
72
72
|
const repository = repositoryFiber.pipe(Effect.uninterruptible, Effect.flatMap(Fiber.join));
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
if (!FSUtil.contains(worktree, location.directory))
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
76
76
|
return RelativePath2.make(path.relative(worktree, location.directory).replaceAll("\\", "/") || ".");
|
|
77
77
|
});
|
|
78
78
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
96
96
|
maximumUntrackedFileBytes: 2 * 1024 * 1024
|
|
97
97
|
});
|
|
98
98
|
yield* packWhenDue(repo.snapshotRepository);
|
|
99
|
-
return
|
|
99
|
+
return ID4.make(tree);
|
|
100
100
|
}).pipe(Effect.catch((cause) => Effect.logWarning("failed to capture snapshot", { cause }).pipe(Effect.as(undefined))));
|
|
101
101
|
});
|
|
102
102
|
const comparison = Effect.fnUntraced(function* (operation, input) {
|
|
@@ -141,25 +141,25 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
141
141
|
for (const [file, snapshot] of input.files) {
|
|
142
142
|
const absolute = path.resolve(worktree, file);
|
|
143
143
|
if (!FSUtil.contains(worktree, absolute))
|
|
144
|
-
return yield* new
|
|
144
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
145
145
|
files.set(file, TreeID2.make(snapshot));
|
|
146
146
|
}
|
|
147
147
|
return files;
|
|
148
148
|
});
|
|
149
149
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
150
150
|
if (!enabled())
|
|
151
|
-
return yield* new
|
|
151
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
152
152
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
153
153
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service46.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
156
156
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
157
|
-
var
|
|
158
|
-
service:
|
|
157
|
+
var node50 = makeLocationNode({
|
|
158
|
+
service: Service46,
|
|
159
159
|
layer,
|
|
160
|
-
deps: [FSUtil.node,
|
|
160
|
+
deps: [FSUtil.node, node88, Global.node, node86]
|
|
161
161
|
});
|
|
162
|
-
var noopLayer2 = Layer.succeed(
|
|
162
|
+
var noopLayer2 = Layer.succeed(Service46, Service46.of({
|
|
163
163
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
164
164
|
reload: () => Effect.void,
|
|
165
165
|
capture: () => Effect.undefined,
|
|
@@ -168,13 +168,13 @@ var noopLayer2 = Layer.succeed(Service32, Service32.of({
|
|
|
168
168
|
restore: () => Effect.void
|
|
169
169
|
}));
|
|
170
170
|
function failure(operation, cause) {
|
|
171
|
-
if (cause instanceof
|
|
171
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
172
172
|
return cause;
|
|
173
|
-
return new
|
|
173
|
+
return new Error3({
|
|
174
174
|
operation,
|
|
175
175
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
176
176
|
cause
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
export {
|
|
180
|
+
export { ID4, Error3, Service46, node50, noopLayer2, exports_snapshot2 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
Service54,
|
|
3
|
+
node57,
|
|
4
4
|
canonical3
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./command-jtz26s32.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service51,
|
|
8
|
+
node54
|
|
9
|
+
} from "./command-1z6t7raf.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service23
|
|
12
|
+
} from "./command-20hs3de4.js";
|
|
13
13
|
import {
|
|
14
14
|
layer2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./command-59w4xjr9.js";
|
|
16
16
|
|
|
17
17
|
// src/location-services.ts
|
|
18
18
|
import { Context, Duration, Effect, Exit, Layer, LayerMap, MutableHashMap, Option, Scope } from "effect";
|
|
19
19
|
function buildLocationServiceMap2(replacements = []) {
|
|
20
|
-
return Layer.effect(
|
|
20
|
+
return Layer.effect(Service54, 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, Service23);
|
|
31
31
|
if (Option.getOrUndefined(MutableHashMap.get(builds, ref)) !== build)
|
|
32
32
|
return yield* lifecycle.shutdown;
|
|
33
33
|
build.close = lifecycle.shutdown;
|
|
@@ -58,11 +58,11 @@ function buildLocationServiceMap2(replacements = []) {
|
|
|
58
58
|
}).pipe(Effect.uninterruptible)
|
|
59
59
|
};
|
|
60
60
|
const bindings = [
|
|
61
|
-
|
|
61
|
+
node54.replace(Layer.succeed(Service51, {
|
|
62
62
|
provide: (session) => Effect.provide(map.get(session.location))
|
|
63
63
|
})),
|
|
64
64
|
...replacements,
|
|
65
|
-
|
|
65
|
+
node57.replace(Layer.succeed(Service54, map))
|
|
66
66
|
];
|
|
67
67
|
return map;
|
|
68
68
|
}));
|