@opencode/core 2.1.4 → 2.2.1
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 +90 -85
- package/dist/aisdk-native.js +98 -91
- package/dist/aisdk.js +104 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +80 -75
- package/dist/chunks/{location-tseqrb92.js → credential-010tfxz5.js} +64 -53
- package/dist/chunks/{location-034tev2y.js → credential-034tev2y.js} +2 -2
- package/dist/chunks/{location-t09yj0zj.js → credential-0473z1ea.js} +4 -4
- package/dist/chunks/{location-wxy5qeqz.js → credential-05gcnbx9.js} +15 -15
- package/dist/chunks/{location-z359x3zf.js → credential-0gmzdafk.js} +39 -39
- package/dist/chunks/{location-v3q8ezdd.js → credential-0hgyyj2f.js} +13 -13
- package/dist/chunks/{location-7jrmq8v4.js → credential-0hy252xp.js} +18 -18
- package/dist/chunks/credential-0yf36v3f.js +332 -0
- package/dist/chunks/{location-qbgwvbz8.js → credential-0yrc0qsb.js} +17 -17
- package/dist/chunks/{location-pt3agb94.js → credential-12dezc3d.js} +21 -21
- package/dist/chunks/{location-w00s5rdr.js → credential-14f8gty7.js} +4 -4
- package/dist/chunks/{location-239z01gj.js → credential-1egdjfep.js} +8 -8
- package/dist/chunks/{location-1ep2p91f.js → credential-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-yx8gesms.js → credential-1hayz8ad.js} +29 -21
- package/dist/chunks/{location-5fjb7ams.js → credential-1jakw16s.js} +2 -2
- package/dist/chunks/credential-1mdvq69k.js +179 -0
- package/dist/chunks/{location-rttdb5jp.js → credential-1p6bnm4j.js} +30 -42
- package/dist/chunks/{location-d5m0d1jd.js → credential-1p97rsrw.js} +120 -93
- package/dist/chunks/{location-1x2knyw4.js → credential-1x2knyw4.js} +1 -1
- package/dist/chunks/{location-3wef9mrz.js → credential-1x73k67a.js} +6 -6
- package/dist/chunks/{location-vd3b3yk9.js → credential-204s3925.js} +13 -2
- package/dist/chunks/{location-c8666r4c.js → credential-26x8chrq.js} +7 -7
- package/dist/chunks/{location-2n0y9ar2.js → credential-2agjkr66.js} +31 -22
- package/dist/chunks/{location-2h6s5afk.js → credential-2d25yes2.js} +19 -19
- package/dist/chunks/{location-3e8nvsz7.js → credential-2fbmf7r0.js} +3 -3
- package/dist/chunks/{location-p184mqc5.js → credential-2ktpft3m.js} +17 -17
- package/dist/chunks/{location-fjnhz8nn.js → credential-2r6emfn3.js} +4 -4
- package/dist/chunks/{location-x3w3gr0t.js → credential-303mq5q0.js} +29 -29
- package/dist/chunks/{location-6p8ga3wk.js → credential-313ht5vg.js} +17 -17
- package/dist/chunks/{location-3hepkmqq.js → credential-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-9b28cy4d.js → credential-3j1m3tq4.js} +13 -7
- package/dist/chunks/{location-afmnpta1.js → credential-3kdbrncp.js} +5 -5
- package/dist/chunks/{location-3nnrz6f6.js → credential-3nnrz6f6.js} +1 -1
- package/dist/chunks/{location-fcfxs1zj.js → credential-3sf9fkhp.js} +3 -3
- package/dist/chunks/{location-a5h3ke48.js → credential-3t284k5r.js} +54 -51
- package/dist/chunks/{location-kb4gstwj.js → credential-3tcpaccq.js} +5 -5
- package/dist/chunks/{location-40za9wsf.js → credential-40za9wsf.js} +2 -2
- package/dist/chunks/{location-37c15ztt.js → credential-44wjxh8g.js} +11 -11
- package/dist/chunks/{location-t9sf4w0m.js → credential-491m2zwm.js} +11 -11
- package/dist/chunks/{location-b46dzrwk.js → credential-4czk4k18.js} +44 -44
- package/dist/chunks/{location-4v3515yy.js → credential-4f3e2fe5.js} +70 -53
- package/dist/chunks/{location-09wmedhs.js → credential-4fes9nxq.js} +9 -9
- package/dist/chunks/{location-5ysrq0ad.js → credential-4hn0zw0c.js} +17 -17
- package/dist/chunks/{location-2z1j29yd.js → credential-4pyp9zr9.js} +19 -3
- package/dist/chunks/{location-4v008n1t.js → credential-4v008n1t.js} +1 -1
- package/dist/chunks/credential-539dw32x.js +410 -0
- package/dist/chunks/{location-1xwgv2nq.js → credential-5e4fvpp9.js} +3 -3
- package/dist/chunks/{location-rkvk32bt.js → credential-5jandae5.js} +10 -10
- package/dist/chunks/{location-jz6d5c41.js → credential-5k74q2xq.js} +249 -199
- package/dist/chunks/{location-5m9w47nd.js → credential-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-cxat4xx2.js → credential-5macz2df.js} +36 -36
- package/dist/chunks/{location-4y92vxjf.js → credential-5sc8268w.js} +50 -50
- package/dist/chunks/credential-5w3e23ze.js +16 -0
- package/dist/chunks/{location-633qbm06.js → credential-5zpj5z5z.js} +11 -11
- package/dist/chunks/{location-8bf8d73q.js → credential-65m06x48.js} +3 -3
- package/dist/chunks/{location-6esdw8yj.js → credential-6esdw8yj.js} +1 -1
- package/dist/chunks/{location-rxz7t1tx.js → credential-6qh3pn8d.js} +73 -41
- package/dist/chunks/{location-y9awcm76.js → credential-6te9kxba.js} +150 -38
- package/dist/chunks/{location-nbvb24gq.js → credential-6vyrcjf5.js} +22 -22
- package/dist/chunks/{location-b93307df.js → credential-6xtf9y56.js} +34 -34
- package/dist/chunks/{location-76cb1hcw.js → credential-76cb1hcw.js} +1 -1
- package/dist/chunks/{location-7bmhse3q.js → credential-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-dxbw252c.js → credential-7dyk5r5p.js} +16 -16
- package/dist/chunks/{location-z06f5xk1.js → credential-7jad4yjq.js} +29 -29
- package/dist/chunks/{location-7w2ypzdf.js → credential-7w2ypzdf.js} +1 -1
- package/dist/chunks/{location-xyswfhq2.js → credential-7yt5s0f0.js} +35 -35
- package/dist/chunks/{location-0928y98p.js → credential-82nhjx58.js} +3 -3
- package/dist/chunks/{location-q1rqw855.js → credential-8411r79r.js} +8 -8
- package/dist/chunks/{location-j6sw43tq.js → credential-87bz1bn4.js} +15 -15
- package/dist/chunks/{location-7jg3h9xc.js → credential-89bbjwma.js} +11 -11
- package/dist/chunks/{location-m0gv7qej.js → credential-8ecyv6n4.js} +12 -12
- package/dist/chunks/{location-8jztxfpf.js → credential-8jztxfpf.js} +1 -1
- package/dist/chunks/{location-jw4xm41e.js → credential-8ppy984g.js} +13 -13
- package/dist/chunks/{location-mjey6v08.js → credential-8s8ht7fz.js} +7 -7
- package/dist/chunks/{location-8wtp7s3z.js → credential-8wtp7s3z.js} +1 -1
- package/dist/chunks/{location-maspj1v3.js → credential-90zstvax.js} +44 -8
- package/dist/chunks/{location-fjngd7fj.js → credential-93e1rsjq.js} +17 -17
- package/dist/chunks/{location-eh71ek0g.js → credential-96zj6efe.js} +136 -92
- package/dist/chunks/{location-1y0wdj51.js → credential-9axz1114.js} +8 -8
- package/dist/chunks/{location-dvpv1qqw.js → credential-9d99svmd.js} +5 -5
- package/dist/chunks/{location-ckr4b3py.js → credential-9f8nz412.js} +37 -42
- package/dist/chunks/{location-0gbb59p9.js → credential-9r0x1bva.js} +9 -9
- package/dist/chunks/{location-3mgb105e.js → credential-9z9tayqc.js} +8 -8
- package/dist/chunks/{location-6z79x2sm.js → credential-a7vdyqvq.js} +13 -13
- package/dist/chunks/{location-9dxz0jcc.js → credential-a81capfc.js} +15 -12
- package/dist/chunks/{location-jdcya02q.js → credential-acns5kb5.js} +19 -19
- package/dist/chunks/{location-997dsrmm.js → credential-agqd6nxz.js} +17 -7
- package/dist/chunks/{location-w67r90k6.js → credential-anaq8tyr.js} +29 -29
- package/dist/chunks/{location-r3083m8p.js → credential-apyyhtqv.js} +30 -30
- package/dist/chunks/{location-n1ryh798.js → credential-arc1qckg.js} +41 -39
- package/dist/chunks/{location-ayjs7tqn.js → credential-ayjs7tqn.js} +2 -2
- package/dist/chunks/{location-qyx1nkkd.js → credential-ayq7z3yq.js} +19 -19
- package/dist/chunks/{location-nte6bvsd.js → credential-b2dk96k1.js} +79 -53
- package/dist/chunks/{location-r20swzxr.js → credential-b5pzs38m.js} +27 -25
- package/dist/chunks/{location-b6vsg801.js → credential-b6vsg801.js} +2 -2
- package/dist/chunks/{location-jh9pmtvm.js → credential-b6x8f3en.js} +22 -16
- package/dist/chunks/{location-wjj7prxr.js → credential-beh6qq61.js} +11 -0
- package/dist/chunks/{location-s9ty2h8k.js → credential-bgtvwfds.js} +11 -11
- package/dist/chunks/{location-2jq4ff38.js → credential-br0kkpnn.js} +7 -7
- package/dist/chunks/{location-khh5ttga.js → credential-bs2ewjth.js} +11 -11
- package/dist/chunks/{location-bm60t44w.js → credential-bsefsz8j.js} +5 -5
- package/dist/chunks/{location-6b66j3w1.js → credential-bwva959e.js} +50 -39
- package/dist/chunks/{location-a7hcemwv.js → credential-c0xjp2a3.js} +7 -7
- package/dist/chunks/{location-bjhzkqyk.js → credential-cac0wmbb.js} +6 -6
- package/dist/chunks/{location-g3avwj86.js → credential-cjqs9axx.js} +11 -11
- package/dist/chunks/credential-cqv5kn06.js +13 -0
- package/dist/chunks/{location-s1t9wfqz.js → credential-cth8y227.js} +8 -8
- package/dist/chunks/{location-b0mv4wxm.js → credential-cwrgdav8.js} +2 -2
- package/dist/chunks/{location-d4v9tmah.js → credential-d4v9tmah.js} +2 -2
- package/dist/chunks/credential-d77dj7jw.js +18 -0
- package/dist/chunks/{location-8vjz6zkc.js → credential-d8q8hp8x.js} +24 -24
- package/dist/chunks/{location-86439gfw.js → credential-dcgwasx3.js} +30 -30
- package/dist/chunks/{location-7th4r57j.js → credential-dk3hpat9.js} +19 -19
- package/dist/chunks/{location-rgyfs092.js → credential-dkj2h5cm.js} +12 -12
- package/dist/chunks/{location-hyvp8sn8.js → credential-dkxwsr1g.js} +1 -1
- package/dist/chunks/{location-j113cymg.js → credential-dt77769w.js} +2 -2
- package/dist/chunks/{location-xewrm1yq.js → credential-e14rv8n7.js} +132 -85
- package/dist/chunks/{location-hwqvnpa6.js → credential-e1n7p4ag.js} +12 -12
- package/dist/chunks/{location-3sfq932m.js → credential-e23z2b6q.js} +25 -32
- package/dist/chunks/{location-fphnwtmq.js → credential-e71x36jh.js} +14 -14
- package/dist/chunks/{location-e834z07m.js → credential-e834z07m.js} +1 -1
- package/dist/chunks/credential-etcm32bf.js +356 -0
- package/dist/chunks/{location-dgj49q4q.js → credential-eth7w1ws.js} +76 -50
- package/dist/chunks/{location-q89bkvf2.js → credential-f3erva9m.js} +10 -5
- package/dist/chunks/{location-wf8nwwfn.js → credential-f5ydn5fg.js} +11 -11
- package/dist/chunks/{location-89c7n5pz.js → credential-f7s46jf6.js} +5 -5
- package/dist/chunks/{location-8c8xwrnt.js → credential-fds3jynx.js} +14 -14
- package/dist/chunks/{location-fffv3p7h.js → credential-fffv3p7h.js} +1 -1
- package/dist/chunks/credential-fg9p65nk.js +37 -0
- package/dist/chunks/{location-e6ke8dsh.js → credential-fh43wqrx.js} +36 -36
- package/dist/chunks/credential-fkpq3x5p.js +36 -0
- package/dist/chunks/{location-dg6zbqet.js → credential-fneb0zf4.js} +60 -60
- package/dist/chunks/{location-snh71vez.js → credential-fpap23jy.js} +33 -32
- package/dist/chunks/{location-hfkcnh3h.js → credential-fpg34aj9.js} +42 -32
- package/dist/chunks/{location-4kb4jvb8.js → credential-fqx72tyj.js} +24 -24
- package/dist/chunks/{location-e45fk36t.js → credential-fwp9mfc9.js} +4 -4
- package/dist/chunks/{location-w687dnns.js → credential-fznmdakp.js} +4 -4
- package/dist/chunks/credential-g38vz1ag.js +252 -0
- package/dist/chunks/credential-g4hd4tqj.js +535 -0
- package/dist/chunks/{location-x6zjgj80.js → credential-g5nf4rjy.js} +35 -22
- package/dist/chunks/{location-z24fzt3x.js → credential-g9r4jbb8.js} +29 -28
- package/dist/chunks/{location-ky7vvs7w.js → credential-ge9gsrez.js} +90 -38
- package/dist/chunks/{location-sk6vvdwr.js → credential-gfk2zkvt.js} +26 -26
- package/dist/chunks/{location-998yhzzq.js → credential-gg8p9cgs.js} +24 -18
- package/dist/chunks/{location-b29mbqx6.js → credential-ghrzdqqx.js} +5 -5
- package/dist/chunks/{location-2brc2rvy.js → credential-gkw5tmj9.js} +4 -4
- package/dist/chunks/{location-qbm0r1ap.js → credential-grghrhjz.js} +22 -20
- package/dist/chunks/{location-81va5nb7.js → credential-gx1r7nq1.js} +16 -16
- package/dist/chunks/{location-0pm6fm3r.js → credential-gx98ktag.js} +91 -67
- package/dist/chunks/{location-kjb4x69f.js → credential-gxz26haq.js} +14 -6
- package/dist/chunks/{location-vxybbfew.js → credential-h0gszfyz.js} +12 -12
- package/dist/chunks/{location-zakhs7qb.js → credential-hby6rmzj.js} +33 -33
- package/dist/chunks/{location-s2pfznc4.js → credential-hn4sj8vd.js} +6 -6
- package/dist/chunks/{location-2ggqsqg3.js → credential-hpcxzwwk.js} +7 -7
- package/dist/chunks/{location-6pjqjmy2.js → credential-hpg1pkwy.js} +2 -2
- package/dist/chunks/{location-pc1v25hk.js → credential-hqxkkta1.js} +4 -4
- package/dist/chunks/{location-y2hbnz15.js → credential-hw81h15x.js} +55 -26
- package/dist/chunks/{location-tx9vmxa7.js → credential-j5gjnx76.js} +19 -19
- package/dist/chunks/{location-nes0ks30.js → credential-j63f8txt.js} +35 -33
- package/dist/chunks/credential-j71pyjxy.js +42 -0
- package/dist/chunks/{location-2cjxs9ry.js → credential-j9m7wknr.js} +25 -25
- package/dist/chunks/{location-rjnacbrz.js → credential-jcqm84fr.js} +9 -9
- package/dist/chunks/{location-91rj84md.js → credential-jfaecv01.js} +2 -2
- package/dist/chunks/{location-g5h9c0rr.js → credential-jtnps1zs.js} +2 -2
- package/dist/chunks/credential-jwr30sdr.js +13 -0
- package/dist/chunks/{location-cp65cvxr.js → credential-jyeaxm3w.js} +22 -22
- package/dist/chunks/{location-r1s8qxhz.js → credential-jzyke2ba.js} +23 -23
- package/dist/chunks/{location-k814nvkf.js → credential-k814nvkf.js} +1 -1
- package/dist/chunks/{location-aft2va8r.js → credential-k8qb7q2x.js} +11 -11
- package/dist/chunks/{location-6qtdkhme.js → credential-k98prhpv.js} +4 -4
- package/dist/chunks/credential-k9zkdd2y.js +83 -0
- package/dist/chunks/{location-ytsgm675.js → credential-kaa2rt48.js} +6 -6
- package/dist/chunks/{location-c3cfh5w6.js → credential-kcg78dnn.js} +7 -7
- package/dist/chunks/{location-4bvc8sjz.js → credential-kgxvfcjx.js} +5 -5
- package/dist/chunks/{location-kmzgegqq.js → credential-kmzgegqq.js} +1 -1
- package/dist/chunks/credential-kt3bjfbg.js +26 -0
- package/dist/chunks/{location-9s6wb0ev.js → credential-kyzgttvd.js} +9 -9
- package/dist/chunks/{location-m1714858.js → credential-m1714858.js} +1 -1
- package/dist/chunks/{location-g7esga4v.js → credential-m37sd98t.js} +7 -7
- package/dist/chunks/{location-h8rac0eh.js → credential-m8683jv8.js} +10 -10
- package/dist/chunks/{location-m9w0rfyh.js → credential-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-jznc3yn3.js → credential-mc5t9a7x.js} +12 -12
- package/dist/chunks/{location-7vd4enbp.js → credential-mg801ykt.js} +15 -15
- package/dist/chunks/{location-p894etz3.js → credential-mpewzr3m.js} +49 -49
- package/dist/chunks/{location-et9e0jv5.js → credential-mpsc7bv4.js} +11 -11
- package/dist/chunks/{location-ptcpq2hv.js → credential-mqqd3hk5.js} +6 -6
- package/dist/chunks/{location-xy22cvcr.js → credential-mvd85fn1.js} +71 -51
- package/dist/chunks/credential-mxqz9txa.js +34 -0
- package/dist/chunks/{location-pkyv6v7h.js → credential-myztnk54.js} +48 -15
- package/dist/chunks/{location-hgn7fvrd.js → credential-n3gyxhch.js} +25 -25
- package/dist/chunks/{location-mh30raav.js → credential-n3tfvvbp.js} +9 -7
- package/dist/chunks/{location-nah043kf.js → credential-nah043kf.js} +1 -1
- package/dist/chunks/{location-5qd3pb7m.js → credential-ncqqe42p.js} +2 -2
- package/dist/chunks/{location-txg5xg0c.js → credential-ndnqagje.js} +21 -21
- package/dist/chunks/credential-nh4v3znn.js +36 -0
- package/dist/chunks/{location-nm4377q9.js → credential-nm4377q9.js} +2 -2
- package/dist/chunks/{location-b259twyp.js → credential-nmw1n2a0.js} +21 -21
- package/dist/chunks/{location-axe3mf62.js → credential-np3cybhk.js} +3 -3
- package/dist/chunks/{location-0hpjzkz5.js → credential-nr0dnw6m.js} +20 -14
- package/dist/chunks/credential-ntx01z7a.js +224 -0
- package/dist/chunks/{location-xr94g6d3.js → credential-nycpe6mm.js} +55 -36
- package/dist/chunks/{location-p015t6z3.js → credential-p015t6z3.js} +2 -2
- package/dist/chunks/{location-1qtv120j.js → credential-p1njj0by.js} +9 -9
- package/dist/chunks/{location-1bmrwaa5.js → credential-p1pcd2wf.js} +13 -13
- package/dist/chunks/credential-p71gwv9c.js +153 -0
- package/dist/chunks/{location-3j92816q.js → credential-p755an0a.js} +2 -2
- package/dist/chunks/{location-1yq9hg58.js → credential-p7vhpwh8.js} +5 -5
- package/dist/chunks/{location-zkgq49d1.js → credential-pbbktnbz.js} +6 -6
- package/dist/chunks/{location-pknna89w.js → credential-pknna89w.js} +1 -1
- package/dist/chunks/{location-wedh6qfb.js → credential-pnr9fk74.js} +35 -37
- package/dist/chunks/{location-j2cjg2qt.js → credential-pnvhe9nj.js} +17 -17
- package/dist/chunks/credential-pqqhbn30.js +111 -0
- package/dist/chunks/{location-6pe7vn7p.js → credential-prsrv2zx.js} +15 -15
- package/dist/chunks/{location-m9ga4zyy.js → credential-pybyazwk.js} +9 -9
- package/dist/chunks/{location-2satw072.js → credential-q8djhvnf.js} +39 -39
- package/dist/chunks/{location-3y1df9hb.js → credential-q91aphyp.js} +6 -6
- package/dist/chunks/{location-m5nnd4yj.js → credential-qbfny989.js} +26 -24
- package/dist/chunks/{location-5qebhevh.js → credential-qc3z06b5.js} +48 -23
- package/dist/chunks/{location-hqgpx30z.js → credential-qgtmjkbw.js} +31 -29
- package/dist/chunks/credential-qmpcwza3.js +295 -0
- package/dist/chunks/credential-qp7r0hxv.js +120 -0
- package/dist/chunks/credential-qqvy8y24.js +45 -0
- package/dist/chunks/{location-1dqke238.js → credential-qvbj290y.js} +8 -8
- package/dist/chunks/{location-xzb17nsd.js → credential-qxpk38rz.js} +59 -24
- package/dist/chunks/{location-42hxtx4a.js → credential-qyh39dz8.js} +12 -6
- package/dist/chunks/{location-r0yr0wbs.js → credential-r0yr0wbs.js} +1 -1
- package/dist/chunks/{location-tw8zr1ps.js → credential-r542h3bh.js} +5 -2
- package/dist/chunks/{location-ddwaa558.js → credential-r96ere88.js} +4 -4
- package/dist/chunks/{location-rb9dy4dg.js → credential-rb9dy4dg.js} +1 -1
- package/dist/chunks/{location-2d2g0mpf.js → credential-rc1hggec.js} +33 -33
- package/dist/chunks/{location-scdee33y.js → credential-rchdkk7p.js} +2 -2
- package/dist/chunks/credential-rgzggw2r.js +33 -0
- package/dist/chunks/{location-80cqk4v7.js → credential-rm3qbz2f.js} +18 -14
- package/dist/chunks/{location-rt5dr6hb.js → credential-rt5dr6hb.js} +1 -1
- package/dist/chunks/{location-vqpjc3nz.js → credential-rzd5m2bc.js} +26 -20
- package/dist/chunks/{location-raq1s93x.js → credential-s3r7jzb8.js} +22 -22
- package/dist/chunks/{location-4xvmh7wp.js → credential-s7gmm2q3.js} +9 -5
- package/dist/chunks/{location-eggkdbge.js → credential-s9fv6dbg.js} +5 -5
- package/dist/chunks/credential-sa3fpqfw.js +46 -0
- package/dist/chunks/{location-ran0pwn3.js → credential-sar30ebp.js} +24 -24
- package/dist/chunks/{location-2ahfrs74.js → credential-sdb9e0vb.js} +26 -18
- package/dist/chunks/{location-s56jz2hb.js → credential-sh6m4nea.js} +30 -31
- package/dist/chunks/{location-dqc1xg2h.js → credential-sm0vs1nj.js} +51 -48
- package/dist/chunks/{location-sqjzf8x2.js → credential-sqjzf8x2.js} +1 -1
- package/dist/chunks/{location-d2887f8n.js → credential-ssfehs1z.js} +4 -4
- package/dist/chunks/{location-37d4mgj3.js → credential-sv6qbdb8.js} +37 -37
- package/dist/chunks/{location-zkg84ctx.js → credential-svcy3p9a.js} +4 -2
- package/dist/chunks/{location-005psrwt.js → credential-svmg43vj.js} +26 -24
- package/dist/chunks/{location-4fspmagn.js → credential-szazyy8v.js} +85 -70
- package/dist/chunks/{location-fqzd2d2r.js → credential-t3wbeppe.js} +18 -18
- package/dist/chunks/{location-30bn4rx3.js → credential-t42546yy.js} +21 -21
- package/dist/chunks/{location-q55b1wrz.js → credential-tc4qgq7j.js} +13 -16
- package/dist/chunks/{location-830bkp7y.js → credential-tchg2t0x.js} +26 -24
- package/dist/chunks/{location-tczq8hjw.js → credential-tczq8hjw.js} +1 -1
- package/dist/chunks/{location-k6wybhe4.js → credential-tqnhxgm9.js} +45 -47
- package/dist/chunks/{location-kp4ctdbn.js → credential-tt2179fk.js} +48 -30
- package/dist/chunks/{location-twv2r8f4.js → credential-twssxy5n.js} +2 -2
- package/dist/chunks/{location-ye1xrrbs.js → credential-v1fpgjhe.js} +22 -24
- package/dist/chunks/{location-f7ma11rg.js → credential-v1jfr34d.js} +6 -6
- package/dist/chunks/{location-v2r1d0zg.js → credential-v2r1d0zg.js} +1 -1
- package/dist/chunks/{location-7hk3fzbx.js → credential-v3n3vpwq.js} +30 -30
- package/dist/chunks/{location-nfdwtzhc.js → credential-v4mmdv09.js} +29 -29
- package/dist/chunks/credential-v55n1npn.js +444 -0
- package/dist/chunks/{location-9mrr08ev.js → credential-v8h33378.js} +5 -8
- package/dist/chunks/{location-ght5gt7k.js → credential-va3vstze.js} +88 -49
- package/dist/chunks/{location-nb3nrvbh.js → credential-vqew4rxv.js} +8 -8
- package/dist/chunks/{location-k732j073.js → credential-w1wt7qh1.js} +8 -8
- package/dist/chunks/{location-w3wsvvr9.js → credential-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-3yy2vhmn.js → credential-wa091f1c.js} +56 -49
- package/dist/chunks/{location-wakvkjy4.js → credential-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-wd87259q.js → credential-wd87259q.js} +1 -1
- package/dist/chunks/{location-gnkrmvzs.js → credential-we7ts2z8.js} +6 -4
- package/dist/chunks/{location-2s6r54qs.js → credential-wmzrz68n.js} +6 -6
- package/dist/chunks/{location-n0p0277s.js → credential-wnhgecwx.js} +35 -4
- package/dist/chunks/{location-ke7vzy3f.js → credential-wp68tbf9.js} +92 -60
- package/dist/chunks/{location-t35vpv8z.js → credential-x8c5qhdb.js} +31 -30
- package/dist/chunks/{location-bstexjd6.js → credential-xd9cc171.js} +5 -5
- package/dist/chunks/{location-x2adk3yy.js → credential-xfg2wzq9.js} +27 -26
- package/dist/chunks/{location-rkdfvdar.js → credential-xj3m7ras.js} +28 -25
- package/dist/chunks/{location-7bgh3hsv.js → credential-xkrp785j.js} +28 -9
- package/dist/chunks/{location-4c6ksw65.js → credential-xpryanwe.js} +47 -47
- package/dist/chunks/{location-v0ajt838.js → credential-xr858cgz.js} +46 -34
- package/dist/chunks/{location-jneg3k74.js → credential-xt0z8zst.js} +6 -6
- package/dist/chunks/credential-xwyk9x3x.js +133 -0
- package/dist/chunks/{location-v0h1q5gr.js → credential-xxw17ph9.js} +19 -15
- package/dist/chunks/{location-j8pg8rcr.js → credential-xy0fx19g.js} +63 -43
- package/dist/chunks/{location-3043t2hd.js → credential-y8rhj72b.js} +46 -31
- package/dist/chunks/credential-yap2aqf7.js +537 -0
- package/dist/chunks/credential-yara3q77.js +132 -0
- package/dist/chunks/{location-yb20nhc3.js → credential-yb20nhc3.js} +1 -1
- package/dist/chunks/credential-ymz7p2c9.js +31 -0
- package/dist/chunks/{location-5nankzt7.js → credential-yv7s2sp4.js} +11 -11
- package/dist/chunks/{location-z38nccrw.js → credential-z38nccrw.js} +1 -1
- package/dist/chunks/{location-2bymr7vt.js → credential-z54nca32.js} +25 -25
- package/dist/chunks/{location-v6h5bgwd.js → credential-zdn46m04.js} +8 -8
- package/dist/chunks/credential-zdy8es89.js +257 -0
- package/dist/chunks/{location-9zetw7am.js → credential-zfad7fba.js} +89 -89
- package/dist/chunks/{location-c34bh8hr.js → credential-zgy820yb.js} +56 -51
- package/dist/chunks/{location-9ypen6gf.js → credential-zhyc4r0c.js} +11 -11
- package/dist/chunks/{location-4jbtvrw1.js → credential-zk58pg8w.js} +19 -14
- package/dist/chunks/{location-t6dn99ca.js → credential-zr9ea7v2.js} +35 -19
- package/dist/chunks/{location-9p7ryr2b.js → credential-zxfqvegw.js} +7 -7
- 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 +92 -87
- package/dist/config/discovery.js +91 -84
- package/dist/config/integration.js +14 -0
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +110 -103
- package/dist/config/plugin/agent.js +122 -116
- package/dist/config/plugin/command.js +220 -212
- package/dist/config/plugin/compaction.js +163 -155
- package/dist/config/plugin/compatibility.js +143 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -117
- package/dist/config/plugin/image.js +122 -116
- package/dist/config/plugin/instruction.js +122 -116
- package/dist/config/plugin/location-watcher.js +124 -118
- package/dist/config/plugin/mcp.js +129 -123
- package/dist/config/plugin/policy.js +124 -117
- package/dist/config/plugin/provider.js +125 -116
- package/dist/config/plugin/reference.js +124 -118
- package/dist/config/plugin/shell.js +124 -118
- package/dist/config/plugin/skill-file.js +139 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +146 -138
- package/dist/config/plugin/snapshot.js +122 -116
- package/dist/config/plugin/source.js +125 -119
- package/dist/config/plugin/tool-output.js +123 -117
- package/dist/config/plugin/websearch.js +123 -117
- package/dist/config/plugin/worktree.js +124 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -121
- package/dist/console-access.js +12 -0
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +90 -85
- package/dist/database/database.js +77 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +6 -0
- package/dist/database/migration/20261024175301_drop_session_allowance.js +6 -0
- package/dist/database/migration/20261025123711_blob.js +6 -0
- package/dist/database/migration/20261025154125_drop_session_pending.js +6 -0
- package/dist/database/migration/20261026223005_schedule.js +6 -0
- package/dist/database/migration.gen.js +56 -51
- package/dist/database/migration.js +58 -53
- 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 +104 -97
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +389 -372
- 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 +102 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +3 -1
- package/dist/environment/index.js +105 -96
- 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 +81 -76
- package/dist/file-access.js +149 -106
- package/dist/file-mutation.js +103 -96
- 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 +222 -0
- package/dist/filesystem/location-watcher-policy.js +4 -4
- package/dist/filesystem/location-watcher.js +235 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +110 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +111 -104
- package/dist/form.js +93 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +96 -89
- package/dist/generate.js +126 -111
- package/dist/git.js +13 -10
- 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 +108 -101
- 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 +12 -0
- package/dist/image/photon-worker.js +19 -0
- package/dist/image/photon.js +125 -79
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +376 -361
- package/dist/instruction-discovery.js +89 -84
- package/dist/instructions/builtins.js +92 -85
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +5 -5
- package/dist/integration.js +98 -93
- package/dist/job.js +85 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +80 -75
- package/dist/location-activity.js +170 -164
- package/dist/location-lifecycle.js +143 -109
- package/dist/location-service-map.js +95 -88
- package/dist/location-services.js +373 -358
- package/dist/location.js +98 -91
- package/dist/managed-policy.js +3 -8
- package/dist/mcp/client.js +126 -95
- package/dist/mcp/index.js +114 -107
- package/dist/mcp/instructions.js +169 -140
- package/dist/mcp/oauth.js +85 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +99 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +106 -99
- package/dist/model-resolver.js +110 -103
- package/dist/model-retry.js +4 -2
- package/dist/model.js +113 -104
- package/dist/models-dev/v1.js +8 -0
- package/dist/models-dev.js +115 -105
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +89 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +152 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +93 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +82 -77
- package/dist/plugin/agent.js +81 -76
- package/dist/plugin/command.js +109 -102
- package/dist/plugin/goal.js +16 -0
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +228 -220
- package/dist/plugin/identity.js +5 -3
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +346 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +106 -98
- package/dist/plugin/module.js +124 -117
- package/dist/plugin/optimize.js +5 -3
- package/dist/plugin/plan.js +139 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +100 -92
- package/dist/plugin/provider/azure.js +122 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +122 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -113
- package/dist/plugin/provider/configured.js +118 -112
- package/dist/plugin/provider/credential-settings.js +88 -0
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +102 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +104 -97
- package/dist/plugin/provider/gitlab.js +103 -95
- package/dist/plugin/provider/google-vertex.js +119 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +85 -80
- package/dist/plugin/provider/lmstudio.js +131 -125
- package/dist/plugin/provider/local.js +128 -122
- package/dist/plugin/provider/modal.js +101 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +131 -125
- package/dist/plugin/provider/openai-context-caps.js +99 -92
- package/dist/plugin/provider/openai.js +122 -116
- package/dist/plugin/provider/opencode.js +125 -103
- package/dist/plugin/provider/openrouter.js +100 -93
- package/dist/plugin/provider/poe.js +86 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +100 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -115
- package/dist/plugin/provider/vllm.js +131 -125
- package/dist/plugin/provider/xai.js +100 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +173 -171
- package/dist/plugin/sdk.js +81 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +360 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +93 -86
- package/dist/plugin/vcs/hg.js +93 -86
- package/dist/plugin/verbosity.js +102 -95
- package/dist/plugin/warming.js +120 -114
- 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 +4 -4
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +237 -227
- package/dist/project/icon.js +14 -0
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +99 -92
- package/dist/provider.js +112 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +107 -101
- package/dist/reference/instructions.js +97 -91
- package/dist/reference.js +93 -87
- package/dist/repository-cache.js +89 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +104 -97
- package/dist/rpc.js +97 -88
- package/dist/schedule/sql.js +11 -0
- package/dist/schedule.js +247 -0
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +8 -0
- package/dist/session/blob.js +158 -0
- package/dist/session/command.js +81 -76
- package/dist/session/compaction.js +163 -136
- package/dist/session/context.js +189 -164
- package/dist/session/diff.js +97 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +254 -225
- package/dist/session/execution.js +153 -128
- package/dist/session/generate.js +191 -166
- package/dist/session/history.js +135 -14
- package/dist/session/inbox.js +147 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +86 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +133 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +156 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +157 -132
- package/dist/session/projector.js +135 -91
- package/dist/session/prompt.js +141 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +131 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +240 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +109 -102
- package/dist/session/runner/publish-llm-event.js +142 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +155 -128
- package/dist/session/runner/to-llm-message.js +129 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -163
- package/dist/session/shell.js +136 -130
- package/dist/session/skill.js +140 -105
- package/dist/session/sql.js +10 -8
- package/dist/session/stats.js +82 -77
- package/dist/session/store.js +134 -87
- package/dist/session/stored.js +23 -0
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +220 -212
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +193 -168
- package/dist/session/to-session-error.js +141 -114
- package/dist/session/transfer.js +231 -223
- package/dist/session/usage.js +1 -1
- package/dist/session.js +222 -214
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +138 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +144 -109
- package/dist/skill.js +149 -114
- package/dist/snapshot.js +96 -89
- 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 +166 -137
- package/dist/tool/plugin/edit.js +157 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +161 -126
- package/dist/tool/plugin/grep.js +161 -126
- package/dist/tool/plugin/image-generate.js +238 -0
- package/dist/tool/plugin/mcp-resource.js +155 -126
- package/dist/tool/plugin/opencode.js +154 -111
- package/dist/tool/plugin/patch.js +153 -118
- package/dist/tool/plugin/question.js +147 -113
- package/dist/tool/plugin/read.js +162 -127
- package/dist/tool/plugin/schedule.js +229 -0
- package/dist/tool/plugin/shell.js +225 -217
- package/dist/tool/plugin/skill.js +150 -115
- package/dist/tool/plugin/subagent.js +227 -219
- package/dist/tool/plugin/todo.js +146 -138
- package/dist/tool/plugin/webfetch.js +150 -113
- package/dist/tool/plugin/websearch.js +148 -116
- package/dist/tool/plugin/write.js +157 -122
- package/dist/tool/read-filesystem.js +111 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/agent.d.ts +5 -0
- package/dist/types/aisdk.d.ts +1 -1
- package/dist/types/codemode/web.d.ts +23 -1
- package/dist/types/config/integration.d.ts +81 -0
- package/dist/types/config/plugin/command.d.ts +1 -1
- package/dist/types/config/plugin/policy.d.ts +1 -2
- package/dist/types/config/plugin/provider.d.ts +8 -0
- package/dist/types/config.d.ts +8 -1
- package/dist/types/console-access.d.ts +7 -0
- package/dist/types/credential.d.ts +2 -0
- package/dist/types/database/migration/20261024002554_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261024175301_drop_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
- package/dist/types/database/migration/20261025154125_drop_session_pending.d.ts +3 -0
- package/dist/types/database/migration/20261026223005_schedule.d.ts +3 -0
- package/dist/types/effect/app-node-platform.d.ts +3 -2
- package/dist/types/environment/files.d.ts +2 -0
- package/dist/types/environment/index.d.ts +1 -1
- package/dist/types/file-access.d.ts +3 -3
- package/dist/types/filesystem/fff.d.ts +1 -0
- package/dist/types/filesystem/file-watch.d.ts +33 -0
- package/dist/types/filesystem/search.d.ts +3 -0
- package/dist/types/generate.d.ts +39 -7
- package/dist/types/git.d.ts +17 -2
- package/dist/types/image/photon-normalize.d.ts +28 -0
- package/dist/types/image/photon-worker.d.ts +12 -0
- package/dist/types/image/photon.d.ts +14 -4
- package/dist/types/instance/service.d.ts +2 -0
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/job.d.ts +7 -0
- package/dist/types/managed-policy.d.ts +2 -20
- package/dist/types/mcp/client.d.ts +2 -0
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +8 -1
- package/dist/types/model-retry.d.ts +3 -1
- package/dist/types/model.d.ts +21 -4
- package/dist/types/models-dev/v1.d.ts +3 -0
- package/dist/types/models-dev.d.ts +3 -3
- package/dist/types/permission.d.ts +2 -0
- package/dist/types/plugin/goal.d.ts +8 -0
- package/dist/types/plugin/host.d.ts +3 -2
- package/dist/types/plugin/internal.d.ts +4 -4
- package/dist/types/plugin/module.d.ts +11 -2
- package/dist/types/plugin/optimize.d.ts +26 -0
- package/dist/types/plugin/provider/amazon-bedrock.d.ts +1 -1
- package/dist/types/plugin/provider/azure.d.ts +2 -2
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/cloudflare-ai-gateway.d.ts +1 -1
- package/dist/types/plugin/provider/cloudflare-workers-ai.d.ts +1 -1
- package/dist/types/plugin/provider/credential-settings.d.ts +33 -0
- package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
- package/dist/types/plugin/provider/gitlab.d.ts +2 -1
- package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
- package/dist/types/plugin/provider/modal.d.ts +1 -1
- package/dist/types/plugin/provider/openai.d.ts +1 -1
- package/dist/types/plugin/provider/opencode.d.ts +2 -3
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/service.d.ts +12 -0
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/project/icon.d.ts +26 -0
- package/dist/types/project.d.ts +3 -2
- package/dist/types/provider.d.ts +33 -3
- package/dist/types/ripgrep/binary.d.ts +1 -0
- package/dist/types/rpc.d.ts +2 -0
- package/dist/types/schedule/sql.d.ts +298 -0
- package/dist/types/schedule.d.ts +193 -0
- package/dist/types/session/background.d.ts +40 -0
- package/dist/types/session/blob.d.ts +2687 -0
- package/dist/types/session/compaction.d.ts +13 -10
- package/dist/types/session/generate.d.ts +2 -2
- package/dist/types/session/history.d.ts +2078 -23
- package/dist/types/session/inbox.d.ts +73 -114
- package/dist/types/session/instruction-entry.d.ts +1 -1
- package/dist/types/session/model-request.d.ts +3 -3
- package/dist/types/session/prompt.d.ts +6 -2
- package/dist/types/session/recent-text.d.ts +2 -1
- package/dist/types/session/runner/index.d.ts +17 -1
- package/dist/types/session/runner/model.d.ts +1 -1
- package/dist/types/session/runner/publish-llm-event.d.ts +4 -2
- package/dist/types/session/runner/retry.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +2 -2
- package/dist/types/session/runner/to-llm-message.d.ts +1 -1
- package/dist/types/session/schema.d.ts +4 -0
- package/dist/types/session/sql.d.ts +196 -122
- package/dist/types/session/store.d.ts +7 -0
- package/dist/types/session/stored.d.ts +462 -0
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +4 -0
- package/dist/types/session/usage.d.ts +1 -1
- package/dist/types/session.d.ts +9 -0
- package/dist/types/state.d.ts +6 -0
- package/dist/types/tool/plugin/edit.d.ts +2 -1
- package/dist/types/tool/plugin/glob.d.ts +1 -1
- package/dist/types/tool/plugin/grep.d.ts +1 -1
- package/dist/types/tool/plugin/image-generate.d.ts +35 -0
- package/dist/types/tool/plugin/opencode.d.ts +1 -0
- package/dist/types/tool/plugin/patch.d.ts +2 -1
- package/dist/types/tool/plugin/schedule.d.ts +46 -0
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -1
- package/dist/types/tool/plugin/webfetch.d.ts +1 -0
- package/dist/types/tool/plugin/write.d.ts +1 -1
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/tool.d.ts +1 -1
- package/dist/types/usage-limits.d.ts +103 -0
- package/dist/types/util/git-executable.d.ts +6 -2
- package/dist/types/v1/config/mcp.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +2 -0
- package/dist/types/vcs.d.ts +3 -2
- package/dist/types/voice.d.ts +3 -31
- package/dist/types/wellknown/plugin.d.ts +1 -1
- package/dist/usage-limits.js +101 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +5 -2
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +101 -94
- package/dist/v1/config/permission.js +5 -5
- 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 +100 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +100 -91
- package/dist/voice.js +95 -90
- package/dist/websearch.js +91 -86
- package/dist/wellknown/plugin.js +83 -78
- package/dist/wellknown.js +86 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +87 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +98 -91
- package/dist/worktree.js +109 -102
- package/package.json +13 -15
- package/dist/chunks/location-00ve6mdn.js +0 -18
- package/dist/chunks/location-584rjm98.js +0 -32
- package/dist/chunks/location-8230236v.js +0 -257
- package/dist/chunks/location-akfw3dm8.js +0 -321
- package/dist/chunks/location-ef5x83kb.js +0 -15
- package/dist/chunks/location-gb9gmc0j.js +0 -39
- package/dist/chunks/location-hzsp1kxy.js +0 -107
- package/dist/chunks/location-jbt1xm3n.js +0 -523
- package/dist/chunks/location-mx81xwtn.js +0 -82
- package/dist/chunks/location-veqvce7d.js +0 -15
- package/dist/chunks/location-ym463w8f.js +0 -17
- package/dist/chunks/location-ytvhabzn.js +0 -53
- package/dist/chunks/location-z0bkrqjs.js +0 -15
- package/dist/chunks/location-z1f2n5q4.js +0 -621
- package/dist/chunks/location-zfwjf24c.js +0 -219
- package/dist/plugin/provider/cohere.js +0 -7
- package/dist/plugin/provider/factory.js +0 -6
- package/dist/plugin/provider/perplexity.js +0 -7
- package/dist/plugin/provider/vercel.js +0 -97
- package/dist/types/plugin/provider/cohere.d.ts +0 -1
- package/dist/types/plugin/provider/factory.d.ts +0 -6
- package/dist/types/plugin/provider/perplexity.d.ts +0 -1
- package/dist/types/plugin/provider/vercel.d.ts +0 -1
- /package/dist/chunks/{location-0qkdqm5v.js → credential-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → credential-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → credential-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → credential-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → credential-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → credential-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2bv980vf.js → credential-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → credential-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → credential-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → credential-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → credential-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → credential-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → credential-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → credential-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → credential-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → credential-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → credential-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → credential-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → credential-6prwharc.js} +0 -0
- /package/dist/chunks/{location-6q2bdcd1.js → credential-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → credential-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → credential-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → credential-822emrt2.js} +0 -0
- /package/dist/chunks/{location-84wd9syh.js → credential-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → credential-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → credential-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → credential-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → credential-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → credential-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a058387c.js → credential-a058387c.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → credential-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → credential-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → credential-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → credential-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → credential-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → credential-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → credential-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → credential-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → credential-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → credential-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → credential-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → credential-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → credential-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → credential-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → credential-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → credential-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → credential-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → credential-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → credential-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → credential-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → credential-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → credential-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → credential-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → credential-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → credential-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → credential-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → credential-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → credential-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hcxmzztb.js → credential-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → credential-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → credential-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → credential-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → credential-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → credential-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → credential-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jze0r7bz.js → credential-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → credential-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-m18g726c.js → credential-m18g726c.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → credential-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → credential-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → credential-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → credential-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → credential-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → credential-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → credential-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → credential-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → credential-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → credential-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → credential-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → credential-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → credential-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → credential-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → credential-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-ve7vex1e.js → credential-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → credential-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → credential-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → credential-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → credential-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → credential-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → credential-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → credential-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → credential-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → credential-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → credential-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → credential-z9919s4g.js} +0 -0
|
@@ -1,49 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service86,
|
|
3
|
+
node90
|
|
4
|
+
} from "./credential-pnr9fk74.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node69
|
|
7
|
+
} from "./credential-sh6m4nea.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service5,
|
|
10
|
+
node6
|
|
11
|
+
} from "./credential-x8c5qhdb.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service27
|
|
14
|
+
} from "./credential-d77dj7jw.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
node20,
|
|
20
|
-
ID3
|
|
21
|
-
} from "./location-hfkcnh3h.js";
|
|
16
|
+
node22,
|
|
17
|
+
ID2
|
|
18
|
+
} from "./credential-fpg34aj9.js";
|
|
22
19
|
import {
|
|
23
20
|
Service2,
|
|
24
21
|
node3
|
|
25
|
-
} from "./
|
|
22
|
+
} from "./credential-kmzgegqq.js";
|
|
26
23
|
import {
|
|
27
24
|
requirements2,
|
|
28
25
|
guarded2,
|
|
29
26
|
list2
|
|
30
|
-
} from "./
|
|
27
|
+
} from "./credential-g4hd4tqj.js";
|
|
31
28
|
import {
|
|
32
|
-
|
|
29
|
+
make7,
|
|
33
30
|
LoadError2
|
|
34
|
-
} from "./
|
|
31
|
+
} from "./credential-tt2179fk.js";
|
|
35
32
|
import {
|
|
36
33
|
Updated2,
|
|
37
|
-
Service3,
|
|
38
|
-
node4
|
|
39
|
-
} from "./location-hwqvnpa6.js";
|
|
40
|
-
import {
|
|
41
34
|
Service4,
|
|
42
35
|
node5
|
|
43
|
-
} from "./
|
|
36
|
+
} from "./credential-e1n7p4ag.js";
|
|
37
|
+
import {
|
|
38
|
+
Service3,
|
|
39
|
+
node4
|
|
40
|
+
} from "./credential-9r0x1bva.js";
|
|
44
41
|
import {
|
|
45
42
|
__export
|
|
46
|
-
} from "./
|
|
43
|
+
} from "./credential-9rqn6x4v.js";
|
|
47
44
|
|
|
48
45
|
// src/plugin/supervisor.ts
|
|
49
46
|
var exports_supervisor = {};
|
|
@@ -127,24 +124,23 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
127
124
|
failures: [
|
|
128
125
|
...failures.values(),
|
|
129
126
|
...ordered.filter(duplicate).map((plugin) => ({
|
|
130
|
-
id:
|
|
127
|
+
id: ID2.make(plugin.id),
|
|
131
128
|
source: plugin.source ?? { type: "builtin" },
|
|
132
129
|
state: { status: "failed", error: `Duplicate plugin ID: ${plugin.id}` },
|
|
133
|
-
features: { server: true
|
|
130
|
+
features: plugin.features ?? { server: true }
|
|
134
131
|
}))
|
|
135
132
|
],
|
|
136
133
|
pending: [...pending]
|
|
137
134
|
};
|
|
138
135
|
});
|
|
139
136
|
var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
140
|
-
const
|
|
141
|
-
const
|
|
142
|
-
const sdk = yield* Service3;
|
|
137
|
+
const registry = yield* Service27;
|
|
138
|
+
const sdk = yield* Service4;
|
|
143
139
|
const instance = yield* Service2;
|
|
144
|
-
const sources = yield*
|
|
145
|
-
const modules = yield*
|
|
146
|
-
const bus = yield*
|
|
147
|
-
const updates = yield*
|
|
140
|
+
const sources = yield* Service5;
|
|
141
|
+
const modules = yield* make7();
|
|
142
|
+
const bus = yield* Service86;
|
|
143
|
+
const updates = yield* Service3;
|
|
148
144
|
const internal = yield* list2();
|
|
149
145
|
let release = yield* registry.hold();
|
|
150
146
|
yield* Effect.addFinalizer(() => release ?? Effect.void);
|
|
@@ -202,7 +198,6 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
202
198
|
const watch = (stream) => stream.pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
203
199
|
yield* watch(sources.changes());
|
|
204
200
|
yield* watch(modules.changes());
|
|
205
|
-
yield* watch(managed.changes());
|
|
206
201
|
yield* watch(Stream.fromEffectRepeat(Effect.sleep("24 hours")));
|
|
207
202
|
yield* watch(bus.subscribe([Event.Updated, Updated2]));
|
|
208
203
|
yield* watch(updates.changes().pipe(Stream.filter((update) => packages.has(update.target)), Stream.tap((update) => Effect.sync(() => {
|
|
@@ -220,14 +215,14 @@ var layer3 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
220
215
|
})), Effect.forkScoped({ startImmediately: true }));
|
|
221
216
|
}));
|
|
222
217
|
var nodeDeps = [
|
|
223
|
-
|
|
224
|
-
node4,
|
|
225
|
-
node3,
|
|
226
|
-
node12,
|
|
218
|
+
node22,
|
|
227
219
|
node5,
|
|
228
|
-
|
|
220
|
+
node3,
|
|
221
|
+
node6,
|
|
222
|
+
node4,
|
|
223
|
+
node90,
|
|
229
224
|
Npm.node,
|
|
230
|
-
|
|
225
|
+
node69,
|
|
231
226
|
requirements2
|
|
232
227
|
];
|
|
233
228
|
function pluginSource(target) {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./credential-8jztxfpf.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./credential-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/update.ts
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service3,
|
|
13
|
+
node: () => node4
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service3 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service3.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service4, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node4 = makeGlobalNode({ service: Service3, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service3, node4, exports_update };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./credential-204s3925.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./credential-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service8,
|
|
13
13
|
node: () => node9
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service8 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service8, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service8.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var node9 = makeLocationNode({ service:
|
|
51
|
+
var node9 = makeLocationNode({ service: Service8, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service8, node9, exports_location_watcher_policy };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./credential-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service83
|
|
6
|
+
} from "./credential-4hn0zw0c.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service64
|
|
9
|
+
} from "./credential-4f3e2fe5.js";
|
|
10
10
|
import {
|
|
11
11
|
LocalSource2,
|
|
12
12
|
GitSource2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./credential-xfg2wzq9.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./credential-hpg1pkwy.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./credential-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/reference.ts
|
|
22
22
|
var exports_reference = {};
|
|
23
23
|
__export(exports_reference, {
|
|
24
24
|
ConfigReferencePlugin: () => exports_reference,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin48
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Effect } from "effect";
|
|
30
30
|
import { Global } from "@opencode/util/global";
|
|
31
|
-
var
|
|
31
|
+
var Plugin48 = define({
|
|
32
32
|
id: "opencode.config.reference",
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
|
-
const config = yield*
|
|
35
|
-
const location = yield*
|
|
34
|
+
const config = yield* Service64;
|
|
35
|
+
const location = yield* Service83;
|
|
36
36
|
const global = yield* Global.Service;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, ctx.reference.reload());
|
|
38
38
|
yield* ctx.reference.transform((editor) => {
|
|
@@ -72,4 +72,4 @@ function localPath(directory, home, value) {
|
|
|
72
72
|
return path.isAbsolute(value) ? value : path.resolve(directory, value);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export {
|
|
75
|
+
export { Plugin48, exports_reference };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Ref5
|
|
3
|
+
} from "./credential-4hn0zw0c.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./credential-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/location-service-map.ts
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service82,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node86,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service82 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service82, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node86 = LayerNode.unbound(Service82, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service82;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -39,10 +39,13 @@ var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
|
39
39
|
yield* Effect.logInfo("location services reloaded", { count: refs.length });
|
|
40
40
|
});
|
|
41
41
|
function canonical3(ref) {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const flavor = process.platform === "win32" && !ref.directory.startsWith("/") ? path.win32 : path.posix;
|
|
43
|
+
const normalized = flavor.normalize(ref.directory);
|
|
44
|
+
const trailing = normalized.endsWith(flavor.sep) && normalized.length > flavor.parse(normalized).root.length;
|
|
45
|
+
return Ref5.make({
|
|
46
|
+
directory: AbsolutePath.make(trailing ? normalized.slice(0, -1) : normalized),
|
|
44
47
|
workspaceID: ref.workspaceID
|
|
45
48
|
});
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
export {
|
|
51
|
+
export { Service82, node86, reload2, canonical3, exports_location_service_map };
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service87,
|
|
3
|
+
node91
|
|
4
|
+
} from "./credential-yv7s2sp4.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make20,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./credential-xt0z8zst.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./credential-gg8p9cgs.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./credential-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
20
20
|
__export(exports_instruction_entry, {
|
|
21
|
-
Info: () =>
|
|
21
|
+
Info: () => Info6,
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service38,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node41,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
33
33
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
34
34
|
import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
35
|
-
import {
|
|
35
|
+
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
var Key2 = InstructionEntry.Key;
|
|
37
|
-
var
|
|
37
|
+
var Info6 = InstructionEntry.Info;
|
|
38
38
|
var Snapshot2 = InstructionEntry.Snapshot;
|
|
39
39
|
var MaxValueBytes2 = InstructionEntry.MaxValueBytes;
|
|
40
40
|
var ValueTooLargeError2 = InstructionEntry.ValueTooLargeError;
|
|
@@ -56,12 +56,12 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service38 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
63
63
|
`);
|
|
64
|
-
var source = (entry) =>
|
|
64
|
+
var source = (entry) => make20({
|
|
65
65
|
key: Key3.make(`api/${entry.key}`),
|
|
66
66
|
codec: Schema.toCodecJson(Schema.Json),
|
|
67
67
|
read: Effect.succeed(entry.removed ? removed2 : entry.value),
|
|
@@ -75,8 +75,8 @@ var source = (entry) => make21({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
79
|
-
const { db } = yield*
|
|
78
|
+
var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
79
|
+
const { db } = yield* Service87;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
82
82
|
key: InstructionEntryTable2.key,
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service38.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node41 = makeGlobalNode({ service: Service38, layer, deps: [node91] });
|
|
114
114
|
|
|
115
|
-
export { Key2,
|
|
115
|
+
export { Key2, Info6, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service38, node41, exports_instruction_entry };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
render3
|
|
3
|
+
} from "./credential-m37sd98t.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./credential-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/optimize.ts
|
|
9
9
|
var exports_optimize = {};
|
|
@@ -16,7 +16,8 @@ __export(exports_optimize, {
|
|
|
16
16
|
OpenAIPlugin: () => OpenAIPlugin3,
|
|
17
17
|
OpenAIToolsPlugin: () => OpenAIToolsPlugin2,
|
|
18
18
|
OptimizePlugin: () => exports_optimize,
|
|
19
|
-
Plugins: () => Plugins2
|
|
19
|
+
Plugins: () => Plugins2,
|
|
20
|
+
resolveModel: () => resolveModel2
|
|
20
21
|
});
|
|
21
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
23
|
import { Model } from "@opencode/schema/model";
|
|
@@ -410,12 +411,21 @@ var MetaPlugin2 = make("opencode.prompt.meta", (model) => {
|
|
|
410
411
|
return meta_default.replaceAll("{{MODEL_NAME}}", model.name);
|
|
411
412
|
});
|
|
412
413
|
var Plugins2 = [OpenAIPlugin3, AnthropicPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2];
|
|
414
|
+
var models = new WeakMap;
|
|
415
|
+
var resolveModel2 = (ctx, event) => Effect.gen(function* () {
|
|
416
|
+
const cached = models.get(event);
|
|
417
|
+
if (cached?.providerID === event.model.providerID && cached.id === event.model.id)
|
|
418
|
+
return cached;
|
|
419
|
+
const model = (yield* ctx.model.list()).data.find((model) => model.providerID === event.model.providerID && model.id === event.model.id) ?? Model.Info.default(event.model.providerID, event.model.id);
|
|
420
|
+
models.set(event, model);
|
|
421
|
+
return model;
|
|
422
|
+
});
|
|
413
423
|
function make(id, optimize, mode = "override") {
|
|
414
424
|
return define({
|
|
415
425
|
id,
|
|
416
426
|
effect: Effect.fn(`OptimizePlugin.${id}`)(function* (ctx) {
|
|
417
427
|
const hook = (event) => Effect.gen(function* () {
|
|
418
|
-
const model =
|
|
428
|
+
const model = yield* resolveModel2(ctx, event);
|
|
419
429
|
const template = optimize(model, event.tools);
|
|
420
430
|
if (!template)
|
|
421
431
|
return;
|
|
@@ -424,7 +434,7 @@ function make(id, optimize, mode = "override") {
|
|
|
424
434
|
const system = event.system[0];
|
|
425
435
|
if (!system)
|
|
426
436
|
return;
|
|
427
|
-
const rendered =
|
|
437
|
+
const rendered = render3(template, Object.keys(event.tools));
|
|
428
438
|
const text = mode === "append" ? `${system.text}
|
|
429
439
|
|
|
430
440
|
${rendered}` : rendered;
|
|
@@ -437,4 +447,4 @@ ${rendered}` : rendered;
|
|
|
437
447
|
});
|
|
438
448
|
}
|
|
439
449
|
|
|
440
|
-
export { OpenAIPlugin3, AnthropicPlugin2, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, exports_optimize };
|
|
450
|
+
export { OpenAIPlugin3, AnthropicPlugin2, OpenAIToolsPlugin2, AnthropicToolsPlugin2, KimiPlugin2, ArceePlugin2, MetaPlugin2, Plugins2, resolveModel2, exports_optimize };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service86,
|
|
3
|
+
node90
|
|
4
|
+
} from "./credential-pnr9fk74.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./credential-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,40 +12,40 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event15,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID14,
|
|
20
|
+
Info: () => Info22,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
|
-
NotFoundError: () =>
|
|
23
|
+
NotFoundError: () => NotFoundError10,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service71,
|
|
26
26
|
State: () => State3,
|
|
27
|
-
When: () =>
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
27
|
+
When: () => When3,
|
|
28
|
+
layer: () => layer26,
|
|
29
|
+
node: () => node75,
|
|
30
30
|
validateAnswer: () => validateAnswer2,
|
|
31
31
|
validateFields: () => validateFields2
|
|
32
32
|
});
|
|
33
33
|
import { Form } from "@opencode/schema/form";
|
|
34
34
|
import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema } from "effect";
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
|
-
import { Event as
|
|
36
|
+
import { Event as Event15 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID14 = Form.ID;
|
|
39
|
+
var Info22 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
|
-
var
|
|
42
|
+
var When3 = Form.When;
|
|
43
43
|
var State3 = Form.State;
|
|
44
44
|
var Answer2 = Form.Answer;
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
+
id: ID14
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError11 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID14
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID14
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID14,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,18 +79,18 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service71 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer26 = Layer.effect(Service71, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service86;
|
|
86
86
|
let closed = false;
|
|
87
87
|
const forms = yield* Cache.makeWith(() => Effect.die(new Error("Form cache must be used via set/getSuccess, never get")), {
|
|
88
88
|
capacity: Number.MAX_SAFE_INTEGER,
|
|
89
89
|
timeToLive: (exit) => Exit.isSuccess(exit) && exit.value.state.status === "pending" ? Duration.infinity : RETENTION
|
|
90
90
|
});
|
|
91
|
-
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new
|
|
91
|
+
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
|
|
92
92
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
93
|
-
const id = input.id ??
|
|
93
|
+
const id = input.id ?? ID14.create();
|
|
94
94
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
95
95
|
if (Option.isSome(existing))
|
|
96
96
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -162,9 +162,9 @@ var layer27 = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
162
162
|
closed = true;
|
|
163
163
|
}).pipe(Effect.andThen(Cache.values(forms)), Effect.flatMap((entries) => Effect.forEach(Array.from(entries).filter((entry) => entry.state.status === "pending"), (entry) => cancel(entry.form.id).pipe(Effect.ignore), { discard: true })));
|
|
164
164
|
yield* Effect.addFinalizer(() => close);
|
|
165
|
-
return
|
|
165
|
+
return Service71.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node75 = makeLocationNode({ service: Service71, layer: layer26, deps: [node90] });
|
|
168
168
|
function validateAnswer2(form, answer) {
|
|
169
169
|
const fields = new Map(form.map((field) => [field.key, field]));
|
|
170
170
|
for (const key of Object.keys(answer)) {
|
|
@@ -316,4 +316,4 @@ function isDateTime(value) {
|
|
|
316
316
|
return !Number.isNaN(new Date(value).getTime());
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export {
|
|
319
|
+
export { ID14, Info22, Field2, Fields2, When3, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service71, layer26, node75, validateAnswer2, validateFields2, exports_form, Event15 };
|