@opencode/core 0.0.0-dev-1223 → 0.0.0-dev-1224
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 +88 -88
- package/dist/aisdk-native.js +1 -1
- package/dist/aisdk.js +109 -109
- package/dist/app.js +11 -11
- package/dist/artifact.js +254 -254
- package/dist/bus.js +84 -84
- package/dist/chunks/{git-tmh3qpwq.js → state-00ceerga.js} +45 -45
- package/dist/chunks/{git-aj7mw0zk.js → state-034tev2y.js} +2 -2
- package/dist/chunks/{git-knrz8ycq.js → state-0dnk7p9t.js} +12 -12
- package/dist/chunks/{git-cqps7k2p.js → state-0hhk97e6.js} +3 -3
- package/dist/chunks/{git-0ma9gw4f.js → state-0ma9gw4f.js} +2 -2
- package/dist/chunks/{git-nav3xsn5.js → state-0vaa0e61.js} +26 -26
- package/dist/chunks/{git-az7rebdf.js → state-109ycj4d.js} +5 -5
- package/dist/chunks/{git-g98e00y8.js → state-10j04twc.js} +23 -23
- package/dist/chunks/{git-40h80fdn.js → state-13gs6whz.js} +89 -89
- package/dist/chunks/{git-yncycnf2.js → state-15mkcj75.js} +23 -23
- package/dist/chunks/{git-c6k5n4j5.js → state-15rmc56z.js} +11 -11
- package/dist/chunks/{git-cn4dzkb5.js → state-1a9h65em.js} +13 -13
- package/dist/chunks/{git-1aqsckx4.js → state-1aqsckx4.js} +1 -1
- package/dist/chunks/{git-1aryjtsy.js → state-1aryjtsy.js} +1 -1
- package/dist/chunks/{git-z4swdns5.js → state-1cgctss4.js} +17 -17
- package/dist/chunks/{git-27w5k9zf.js → state-1ep2p91f.js} +2 -2
- package/dist/chunks/{git-xbs5698n.js → state-1h56tgqc.js} +15 -15
- package/dist/chunks/{git-1x2knyw4.js → state-1x2knyw4.js} +1 -1
- package/dist/chunks/{git-w33a4qaj.js → state-1xhvy0a1.js} +20 -20
- package/dist/chunks/{git-bg52gzq1.js → state-1zqfq3fa.js} +11 -11
- package/dist/chunks/{git-dk6jvmrv.js → state-27fqdypx.js} +15 -15
- package/dist/chunks/{git-wwqpegrr.js → state-29t5ms5a.js} +6 -6
- package/dist/chunks/{git-twx7nxk6.js → state-2asypf8v.js} +20 -20
- package/dist/chunks/{git-nn2nd58t.js → state-2bswbpgz.js} +7 -7
- package/dist/chunks/{git-2fc7eemy.js → state-2fc7eemy.js} +1 -1
- package/dist/chunks/{git-7kpv4f8m.js → state-2fqhctvv.js} +28 -28
- package/dist/chunks/{git-q6efmhte.js → state-2fsxdb0d.js} +23 -23
- package/dist/chunks/{git-w79nt68w.js → state-2kg89srt.js} +4 -4
- package/dist/chunks/{git-2prt43t7.js → state-2prt43t7.js} +1 -1
- package/dist/chunks/{git-5n7sqrjb.js → state-35tpvsnd.js} +27 -27
- package/dist/chunks/{git-7kxe5wqn.js → state-36wtp86d.js} +7 -7
- package/dist/chunks/{git-0v292bqm.js → state-3ck5pzsd.js} +33 -33
- package/dist/chunks/{git-5zxnv778.js → state-3djagcat.js} +16 -16
- package/dist/chunks/{git-ywk46eq7.js → state-3efg5d53.js} +2 -2
- package/dist/chunks/{git-3hepkmqq.js → state-3hepkmqq.js} +1 -1
- package/dist/chunks/state-3k8dzdg4.js +273 -0
- package/dist/chunks/{git-51yzrdks.js → state-3nft16zg.js} +17 -17
- package/dist/chunks/{git-3nnrz6f6.js → state-3nnrz6f6.js} +1 -1
- package/dist/chunks/{git-dam2s56p.js → state-3nv1v92r.js} +18 -18
- package/dist/chunks/{git-cjg23q7r.js → state-3qw8teq0.js} +32 -32
- package/dist/chunks/{git-40y6dtc2.js → state-40y6dtc2.js} +1 -1
- package/dist/chunks/{git-g8b6gw0d.js → state-427haqbe.js} +3 -3
- package/dist/chunks/{git-sq4s6wq1.js → state-4bwthz3m.js} +6 -6
- package/dist/chunks/{git-cbw96f79.js → state-4dg21t77.js} +44 -44
- package/dist/chunks/{git-4dx1dgte.js → state-4dx1dgte.js} +1 -1
- package/dist/chunks/{git-4f25tdd0.js → state-4f25tdd0.js} +1 -1
- package/dist/chunks/{git-6cp3kha5.js → state-4gneve8v.js} +39 -39
- package/dist/chunks/{git-7hwccpjh.js → state-4p679b5s.js} +9 -9
- package/dist/chunks/{git-4pyp9zr9.js → state-4pyp9zr9.js} +1 -1
- package/dist/chunks/{git-y57pp9q1.js → state-4qfnvyqn.js} +11 -11
- package/dist/chunks/{git-54a5f9h8.js → state-4qxrae77.js} +14 -14
- package/dist/chunks/{git-4v008n1t.js → state-4v008n1t.js} +1 -1
- package/dist/chunks/{git-9zfcngb4.js → state-4vzr2b15.js} +3 -3
- package/dist/chunks/{git-cx7edq0q.js → state-4y5qk8wr.js} +12 -12
- package/dist/chunks/{git-jj2g5vfa.js → state-52by9wz1.js} +21 -21
- package/dist/chunks/{git-xegw71fv.js → state-59r2jq59.js} +27 -27
- package/dist/chunks/{git-5m9w47nd.js → state-5m9w47nd.js} +1 -1
- package/dist/chunks/{git-zyq2pv4t.js → state-5n0rnk8e.js} +4 -4
- package/dist/chunks/{git-qx5tvfrx.js → state-5nc9cxcx.js} +83 -83
- package/dist/chunks/{git-x4rw50ya.js → state-5njhb98r.js} +6 -6
- package/dist/chunks/{git-zpgv8879.js → state-5strrb1w.js} +8 -8
- package/dist/chunks/{git-861723xs.js → state-5wyjxme5.js} +10 -10
- package/dist/chunks/{git-aqczazaa.js → state-5zcyx99g.js} +4 -4
- package/dist/chunks/{git-cpytccmq.js → state-627a6t8n.js} +16 -16
- package/dist/chunks/{git-egpy7xm1.js → state-6508jazp.js} +32 -32
- package/dist/chunks/{git-gh7g01t0.js → state-6a3n96rr.js} +47 -47
- package/dist/chunks/{git-q4aetha3.js → state-6d99zds6.js} +13 -13
- package/dist/chunks/{git-3bh7p494.js → state-6ey5hxvm.js} +51 -51
- package/dist/chunks/{git-ns24zjwb.js → state-6gjb87wc.js} +2 -2
- package/dist/chunks/{git-dcd786fm.js → state-6pahazrx.js} +10 -10
- package/dist/chunks/{git-tre17bzt.js → state-6ssbb960.js} +22 -22
- package/dist/chunks/{git-g193jfc5.js → state-6v3qw19h.js} +16 -16
- package/dist/chunks/{git-9e0s1p19.js → state-6xm9jdbn.js} +2 -2
- package/dist/chunks/{git-dbatw319.js → state-73ff1310.js} +3 -3
- package/dist/chunks/{git-7bmhse3q.js → state-7bmhse3q.js} +1 -1
- package/dist/chunks/{git-xbybdbj1.js → state-7g1dpkev.js} +8 -8
- package/dist/chunks/{git-rd7c8gzg.js → state-7hm90z9h.js} +13 -13
- package/dist/chunks/{git-x3cw6ez5.js → state-7khw6ctp.js} +372 -372
- package/dist/chunks/{git-za5nd581.js → state-7pf24df8.js} +36 -36
- package/dist/chunks/{git-xxxp95km.js → state-7r2vp639.js} +40 -40
- package/dist/chunks/{git-0v7knxa0.js → state-7v7sk204.js} +40 -40
- package/dist/chunks/{git-7w2ypzdf.js → state-7w2ypzdf.js} +1 -1
- package/dist/chunks/{git-7weczvnd.js → state-7weczvnd.js} +1 -1
- package/dist/chunks/{git-tfe9qfp5.js → state-7z0rb6fn.js} +20 -20
- package/dist/chunks/{git-775hqbnd.js → state-80mg3ag8.js} +3 -3
- package/dist/chunks/{git-80pdk984.js → state-80pdk984.js} +1 -1
- package/dist/chunks/{git-znpd9s2c.js → state-81d4j08k.js} +25 -25
- package/dist/chunks/{git-85jq8dht.js → state-85jq8dht.js} +1 -1
- package/dist/chunks/{git-sd17xx9y.js → state-85wm61p0.js} +12 -12
- package/dist/chunks/{git-5yydhn6j.js → state-87kxp3gn.js} +11 -11
- package/dist/chunks/{git-y2rvyvtk.js → state-8atgymfb.js} +7 -7
- package/dist/chunks/{git-8b3vzgkx.js → state-8b3vzgkx.js} +1 -1
- package/dist/chunks/{git-shm6ahh6.js → state-8c2aw5yp.js} +11 -11
- package/dist/chunks/{git-dawdqhyx.js → state-8c2cgf6e.js} +17 -17
- package/dist/chunks/{git-t9k35srm.js → state-8gc717j2.js} +29 -29
- package/dist/chunks/{git-8kjyvwy5.js → state-8kjyvwy5.js} +1 -1
- package/dist/chunks/{git-qb7f74k2.js → state-8rapdqzr.js} +4 -4
- package/dist/chunks/{git-bb3mmwvh.js → state-8sxe6kv8.js} +2 -2
- package/dist/chunks/{git-qqfyaxy9.js → state-8vy8myv0.js} +24 -24
- package/dist/chunks/{git-8wtp7s3z.js → state-8wtp7s3z.js} +1 -1
- package/dist/chunks/{git-8zv0xmg5.js → state-8zv0xmg5.js} +1 -1
- package/dist/chunks/{git-fqmf2938.js → state-9279jmms.js} +12 -12
- package/dist/chunks/{git-9fwmpfm0.js → state-930967qy.js} +11 -11
- package/dist/chunks/{git-963hk181.js → state-963hk181.js} +2 -2
- package/dist/chunks/{git-x34pfznb.js → state-97d0bxh6.js} +11 -11
- package/dist/chunks/state-9bjnw33a.js +35 -0
- package/dist/chunks/{git-ebe0k50x.js → state-9evh4g6t.js} +13 -13
- package/dist/chunks/{git-nstbetgn.js → state-9fgy5dtv.js} +8 -8
- package/dist/chunks/{git-3y7pxfxj.js → state-9khz0wq9.js} +7 -7
- package/dist/chunks/{git-ptfzv4f6.js → state-9q00jv0h.js} +13 -13
- package/dist/chunks/{git-w4xw9ac5.js → state-a0f8fvmt.js} +6 -6
- package/dist/chunks/{git-hpr8jjym.js → state-a60yvsvr.js} +13 -13
- package/dist/chunks/{git-v41hj1a3.js → state-a9qdt05j.js} +16 -16
- package/dist/chunks/{git-agje4kmn.js → state-agje4kmn.js} +1 -1
- package/dist/chunks/{git-3txvm3f4.js → state-ary6xecs.js} +4 -4
- package/dist/chunks/{git-0t6d61qj.js → state-awc294qn.js} +17 -17
- package/dist/chunks/{git-3cbjf1nt.js → state-ayjs7tqn.js} +2 -2
- package/dist/chunks/{git-4dncrvkb.js → state-aypj46ae.js} +52 -52
- package/dist/chunks/{git-b7nkz392.js → state-b7nkz392.js} +1 -1
- package/dist/chunks/{git-gmemj5zs.js → state-ba5f9dy2.js} +4 -4
- package/dist/chunks/{git-bxb44fsz.js → state-bbytzacy.js} +8 -8
- package/dist/chunks/{git-yybgvvmq.js → state-brv6mkyx.js} +4 -4
- package/dist/chunks/{git-bstexjd6.js → state-bstexjd6.js} +1 -1
- package/dist/chunks/{git-cbx3ap9e.js → state-cbat45jb.js} +33 -33
- package/dist/chunks/{git-tjjahx9e.js → state-cbce2z70.js} +4 -4
- package/dist/chunks/{git-4wv1s11g.js → state-chnap7qb.js} +26 -26
- package/dist/chunks/{git-gbphwg3r.js → state-cjqsf6bw.js} +9 -9
- package/dist/chunks/{git-btnkw9ag.js → state-cpe35zww.js} +4 -4
- package/dist/chunks/{git-97857vx2.js → state-cqwm3s9e.js} +7 -7
- package/dist/chunks/{git-tbbmhdw8.js → state-cr77hmd1.js} +33 -33
- package/dist/chunks/{git-sbptwb9s.js → state-cse5rjp3.js} +12 -12
- package/dist/chunks/{git-cgcfd8yr.js → state-ctd3k3x6.js} +7 -7
- package/dist/chunks/{git-wzfa06mn.js → state-cv6amnmh.js} +4 -4
- package/dist/chunks/{git-cwrgdav8.js → state-cwrgdav8.js} +2 -2
- package/dist/chunks/{git-fafxjtnp.js → state-d1g7k0n1.js} +4 -4
- package/dist/chunks/{git-etrnj9s7.js → state-d390zwf3.js} +8 -8
- package/dist/chunks/{git-d4v9tmah.js → state-d4v9tmah.js} +2 -2
- package/dist/chunks/{git-nfnbs3xs.js → state-da44vmvv.js} +15 -15
- package/dist/chunks/{git-rxbzpr8y.js → state-dfpyr7py.js} +6 -6
- package/dist/chunks/{git-c5zvymhv.js → state-dg5naf6e.js} +4 -4
- package/dist/chunks/{git-gexgj7qt.js → state-djkt98xq.js} +32 -32
- package/dist/chunks/{git-da2xa1q4.js → state-djnm8m9y.js} +19 -19
- package/dist/chunks/{git-ywyawvs8.js → state-dkvpwghq.js} +25 -25
- package/dist/chunks/{git-shvbpkp0.js → state-dr704ma6.js} +28 -28
- package/dist/chunks/{git-g0d7bqrr.js → state-dsn35pkw.js} +46 -46
- package/dist/chunks/{git-dt77769w.js → state-dt77769w.js} +1 -1
- package/dist/chunks/{git-2h3sah2y.js → state-e0xk049a.js} +3 -3
- package/dist/chunks/{git-q005gxe9.js → state-e30cnwrb.js} +12 -12
- package/dist/chunks/{git-tqts7v32.js → state-e9efqbvz.js} +22 -22
- package/dist/chunks/{git-4kts72mc.js → state-e9embajv.js} +21 -21
- package/dist/chunks/{git-kn7p4ge8.js → state-eb56k80z.js} +21 -21
- package/dist/chunks/{git-apjj153f.js → state-ebxw5th9.js} +9 -9
- package/dist/chunks/{git-edm37t96.js → state-edm37t96.js} +3 -3
- package/dist/chunks/{git-8bzbvxx5.js → state-eeqr2ezx.js} +8 -8
- package/dist/chunks/{git-vx3a5fa6.js → state-eezvz286.js} +14 -14
- package/dist/chunks/{git-yccgpt09.js → state-egsmxz2f.js} +59 -59
- package/dist/chunks/{git-87sv05fy.js → state-ehhg2xcr.js} +14 -14
- package/dist/chunks/{git-qw1w4c69.js → state-ek8dn5z5.js} +4 -4
- package/dist/chunks/{git-8hp52pd0.js → state-emskjcb9.js} +15 -15
- package/dist/chunks/{git-2xkj0mmw.js → state-enbnk4v1.js} +12 -12
- package/dist/chunks/{git-am27nvrp.js → state-eqfxx9cj.js} +11 -11
- package/dist/chunks/{git-eqw4pqj1.js → state-eqw4pqj1.js} +2 -2
- package/dist/chunks/{git-by5bhjzr.js → state-evw2hqks.js} +6 -6
- package/dist/chunks/state-ezna1kdx.js +18 -0
- package/dist/chunks/{git-sxk9ynhr.js → state-f4svtajv.js} +1 -1
- package/dist/chunks/{git-p4hx603q.js → state-fc9qhm4k.js} +4 -4
- package/dist/chunks/{git-c9r3tfb9.js → state-fes325b1.js} +14 -14
- package/dist/chunks/{git-fg9p65nk.js → state-fg9p65nk.js} +2 -2
- package/dist/chunks/{git-svzs1fkj.js → state-fgzhd4f7.js} +13 -13
- package/dist/chunks/{git-w4edwzs6.js → state-fjwkbb1x.js} +5 -5
- package/dist/chunks/{git-anbh857n.js → state-fkkq8w99.js} +22 -22
- package/dist/chunks/{git-vy8m00c5.js → state-fmers9j5.js} +9 -9
- package/dist/chunks/{git-ybkdq0rt.js → state-fp9bkp4s.js} +7 -7
- package/dist/chunks/{git-wffjegd8.js → state-fwmxwjyq.js} +16 -16
- package/dist/chunks/{git-q7phtp9w.js → state-fzattvf9.js} +16 -16
- package/dist/chunks/{git-68zsampf.js → state-g3v06dfq.js} +10 -10
- package/dist/chunks/{git-g4txs7zc.js → state-g4txs7zc.js} +4 -4
- package/dist/chunks/{git-gbjdnr5j.js → state-gbjdnr5j.js} +2 -2
- package/dist/chunks/{git-ghrv1g9c.js → state-ghrv1g9c.js} +1 -1
- package/dist/chunks/{git-54197g8a.js → state-gnrnwaff.js} +14 -14
- package/dist/chunks/{git-end87qvh.js → state-gnwx4pxd.js} +11 -11
- package/dist/chunks/{git-3nf2d1x3.js → state-gnz7qpne.js} +18 -18
- package/dist/chunks/{git-f96asrye.js → state-gpr6mhvd.js} +53 -53
- package/dist/chunks/{git-sb1v9hpd.js → state-gpz3zcsm.js} +20 -20
- package/dist/chunks/{git-sb8k4ghs.js → state-h0scc2f8.js} +5 -5
- package/dist/chunks/{git-655h6vv4.js → state-h4vx8t2t.js} +6 -6
- package/dist/chunks/{git-07msmg94.js → state-hct41e8k.js} +18 -18
- package/dist/chunks/{git-51qsvhhj.js → state-hd5gh2tq.js} +6 -6
- package/dist/chunks/{git-2cr9f59y.js → state-hd8w7nxr.js} +5 -5
- package/dist/chunks/{git-hgzwgvze.js → state-hgzwgvze.js} +2 -2
- package/dist/chunks/{git-a9fthgb6.js → state-hk7vvr1w.js} +4 -4
- package/dist/chunks/{git-dctzm1dj.js → state-hmp5x989.js} +2 -2
- package/dist/chunks/{git-mzbb1x9j.js → state-hs7q0dfv.js} +39 -39
- package/dist/chunks/{git-k0ygy828.js → state-htvtdz3s.js} +31 -31
- package/dist/chunks/state-hww5z1ja.js +26 -0
- package/dist/chunks/{git-j376ae4e.js → state-j376ae4e.js} +1 -1
- package/dist/chunks/{git-0ahs07zn.js → state-j3f8hyeg.js} +4 -4
- package/dist/chunks/{git-x8qsnj0x.js → state-j408af94.js} +17 -17
- package/dist/chunks/{git-3ma84kqg.js → state-j4vp8fq6.js} +11 -11
- package/dist/chunks/{git-889em8e0.js → state-jh82ppf8.js} +34 -34
- package/dist/chunks/{git-jm70asfg.js → state-jm70asfg.js} +1 -1
- package/dist/chunks/{git-e45fk36t.js → state-jns4gqy7.js} +4 -4
- package/dist/chunks/{git-b81p24w9.js → state-jv28pj5x.js} +20 -20
- package/dist/chunks/{git-jxd6f16v.js → state-jxd6f16v.js} +2 -2
- package/dist/chunks/{git-s4q5v2j0.js → state-jy6nqey9.js} +5 -5
- package/dist/chunks/{git-k6f0b3xm.js → state-k5pkx81j.js} +3 -3
- package/dist/chunks/{git-arj0jjvx.js → state-kkbwffhf.js} +32 -32
- package/dist/chunks/{git-qsm8g7ca.js → state-kqtyt155.js} +4 -4
- package/dist/chunks/{git-3f6404ym.js → state-kqzd954s.js} +19 -19
- package/dist/chunks/{git-9a9zccz7.js → state-ksg1ge82.js} +5 -5
- package/dist/chunks/{git-kt3bjfbg.js → state-kt3bjfbg.js} +1 -1
- package/dist/chunks/{git-w75qynz4.js → state-ktck1cjp.js} +6 -6
- package/dist/chunks/{git-kzczzf4v.js → state-kzczzf4v.js} +1 -1
- package/dist/chunks/{git-bj9fd1aa.js → state-kzv3grbw.js} +14 -14
- package/dist/chunks/{git-m1714858.js → state-m1714858.js} +1 -1
- package/dist/chunks/{git-m4p4r8nc.js → state-m4p4r8nc.js} +1 -1
- package/dist/chunks/{git-m90tx7mw.js → state-m90tx7mw.js} +1 -1
- package/dist/chunks/{git-m9w0rfyh.js → state-m9w0rfyh.js} +1 -1
- package/dist/chunks/{git-8z6m94af.js → state-mb7mbhnz.js} +3 -3
- package/dist/chunks/{git-tdp52y1e.js → state-mvmm73ke.js} +10 -10
- package/dist/chunks/{git-ttf18rg8.js → state-mx3cbz75.js} +22 -22
- package/dist/chunks/{git-jsr81cg8.js → state-n1n71mfr.js} +9 -9
- package/dist/chunks/{git-n320gsn2.js → state-n320gsn2.js} +1 -1
- package/dist/chunks/{git-qjbww75s.js → state-narxvgx9.js} +15 -15
- package/dist/chunks/{git-9gjrs4z9.js → state-nd2e51yr.js} +4 -4
- package/dist/chunks/{git-4gjj76fq.js → state-nd788t6c.js} +5 -5
- package/dist/chunks/{git-mva665wn.js → state-ng5phben.js} +18 -18
- package/dist/chunks/{git-sp95z34s.js → state-nmbew64m.js} +40 -40
- package/dist/chunks/{git-q69fea8d.js → state-nxbnzhh1.js} +3 -3
- package/dist/chunks/{git-gfcx3g72.js → state-p5memtjr.js} +14 -14
- package/dist/chunks/{git-jx4xt277.js → state-p6s20s7v.js} +8 -8
- package/dist/chunks/{git-1yq9hg58.js → state-p7vhpwh8.js} +5 -5
- package/dist/chunks/{git-45nqx4xx.js → state-p94p4v4n.js} +4 -4
- package/dist/chunks/{git-tfcfpf42.js → state-pffxc541.js} +29 -29
- package/dist/chunks/{git-y4n6pw34.js → state-pgqxr0th.js} +4 -4
- package/dist/chunks/{git-g75v1bn7.js → state-phqefw3j.js} +1 -1
- package/dist/chunks/{git-pknna89w.js → state-pknna89w.js} +1 -1
- package/dist/chunks/{git-v4wxqypv.js → state-pvh525kc.js} +27 -27
- package/dist/chunks/{git-rwds2dbq.js → state-px6wqt9a.js} +7 -7
- package/dist/chunks/{git-n5v1c3p9.js → state-q3t09a1r.js} +21 -21
- package/dist/chunks/{git-cz2j28sw.js → state-qj27vsmx.js} +27 -27
- package/dist/chunks/{git-qp7r0hxv.js → state-qp7r0hxv.js} +1 -1
- package/dist/chunks/{git-1y3jq1ba.js → state-qq8nxmq8.js} +12 -12
- package/dist/chunks/{git-0bmcfzcg.js → state-qvhq5dtp.js} +17 -17
- package/dist/chunks/{git-zd152ckc.js → state-qvscvz7g.js} +28 -28
- package/dist/chunks/{git-sbzezcpx.js → state-r0wrga32.js} +8 -8
- package/dist/chunks/{git-rc9j8yty.js → state-r1qh9q3s.js} +3 -3
- package/dist/chunks/{git-2y2krfya.js → state-r3sws3fk.js} +11 -11
- package/dist/chunks/{git-sj611wwz.js → state-r4ey0dp4.js} +9 -9
- package/dist/chunks/{git-1cssggdg.js → state-r5t319e4.js} +11 -11
- package/dist/chunks/{git-9nzr4cy3.js → state-r932s1aq.js} +23 -23
- package/dist/chunks/{git-rb9dy4dg.js → state-rb9dy4dg.js} +1 -1
- package/dist/chunks/{git-qekcmjpf.js → state-rf2e2mym.js} +24 -24
- package/dist/chunks/{git-rgc9cx3e.js → state-rgc9cx3e.js} +2 -2
- package/dist/chunks/{git-3g5s031x.js → state-rgceh5wf.js} +20 -20
- package/dist/chunks/{git-t0s7k2sh.js → state-rgpq9amq.js} +12 -12
- package/dist/chunks/{git-gvwzcsw9.js → state-rgptf7vs.js} +17 -17
- package/dist/chunks/{git-32n4cy7a.js → state-rmeffpf9.js} +11 -11
- package/dist/chunks/{git-859w1rtj.js → state-rp6t20zc.js} +5 -5
- package/dist/chunks/{git-s1ba0vj0.js → state-s1ba0vj0.js} +2 -2
- package/dist/chunks/{git-1b46a6yv.js → state-s1t4haaj.js} +23 -23
- package/dist/chunks/{git-5gxje712.js → state-s2rw6bpt.js} +27 -27
- package/dist/chunks/{git-mnbjcy4k.js → state-s3jahghs.js} +20 -20
- package/dist/chunks/{git-2ytp0tvq.js → state-s47rahr7.js} +4 -4
- package/dist/chunks/{git-v4z9cb6e.js → state-s81kawhg.js} +7 -7
- package/dist/chunks/{git-sbya78hr.js → state-sbya78hr.js} +1 -1
- package/dist/chunks/{git-g5ajqn12.js → state-sf9y72b7.js} +4 -4
- package/dist/chunks/{git-ek76msce.js → state-skh0vv1h.js} +2 -2
- package/dist/chunks/{git-ytm9sy14.js → state-sktstmq7.js} +10 -10
- package/dist/chunks/{git-vyqqdxam.js → state-smk8519c.js} +22 -22
- package/dist/chunks/{git-75hxyt67.js → state-sq2460zj.js} +5 -5
- package/dist/chunks/{git-svcy3p9a.js → state-svcy3p9a.js} +1 -1
- package/dist/chunks/{git-pmyfn3tb.js → state-t1cpgcqv.js} +11 -11
- package/dist/chunks/{git-dnpsy4th.js → state-t65b4mrh.js} +1 -1
- package/dist/chunks/{git-fcrts5pp.js → state-t69jc1z4.js} +5 -5
- package/dist/chunks/{git-t8erkws8.js → state-t8erkws8.js} +2 -2
- package/dist/chunks/{git-tbpn7jtk.js → state-tbpn7jtk.js} +1 -1
- package/dist/chunks/{git-tczq8hjw.js → state-tczq8hjw.js} +1 -1
- package/dist/chunks/{git-gxs71cxp.js → state-tg7s7b5t.js} +4 -4
- package/dist/chunks/{git-9dtwxfrf.js → state-tnqc7dvm.js} +134 -134
- package/dist/chunks/{git-v8cfy1ek.js → state-tqnb7fam.js} +15 -15
- package/dist/chunks/{git-hy8c1z76.js → state-tqx9c315.js} +8 -8
- package/dist/chunks/{git-b6gqesrk.js → state-tts1m72y.js} +11 -11
- package/dist/chunks/{git-ttz31trp.js → state-ttz31trp.js} +2 -2
- package/dist/chunks/{git-tvtps2q9.js → state-tvtps2q9.js} +1 -1
- package/dist/chunks/{git-7843nswb.js → state-twn0g4c4.js} +14 -14
- package/dist/chunks/{git-twssxy5n.js → state-twssxy5n.js} +2 -2
- package/dist/chunks/{git-zm0jthe7.js → state-tye10t2g.js} +18 -18
- package/dist/chunks/{git-wvx2stnh.js → state-v159dwgd.js} +14 -14
- package/dist/chunks/{git-nhh1prff.js → state-v291rggy.js} +31 -31
- package/dist/chunks/{git-v2r1d0zg.js → state-v2r1d0zg.js} +1 -1
- package/dist/chunks/{git-4a8yt8tg.js → state-v4qeya6z.js} +12 -12
- package/dist/chunks/{git-vjwpc24h.js → state-v6atjk4t.js} +16 -16
- package/dist/chunks/{git-9m92w6p3.js → state-v8dnj16f.js} +8 -8
- package/dist/chunks/{git-0xb1v29n.js → state-v9edw38w.js} +6 -6
- package/dist/chunks/{git-pgq4vvpa.js → state-v9wprw03.js} +29 -29
- package/dist/chunks/{git-wxedqf16.js → state-vf55m751.js} +18 -18
- package/dist/chunks/{git-vjf35v1f.js → state-vjf35v1f.js} +1 -1
- package/dist/chunks/{git-gemyjqmt.js → state-vjjnj6g4.js} +11 -11
- package/dist/chunks/{git-fp84nt4x.js → state-vmwdw956.js} +7 -7
- package/dist/chunks/{git-30y6j96b.js → state-vngwnm7r.js} +26 -26
- package/dist/chunks/{git-e71bb87j.js → state-vq1ppevj.js} +8 -8
- package/dist/chunks/{git-x7de2wha.js → state-vt4r9rmy.js} +9 -9
- package/dist/chunks/{git-dw3x5h9m.js → state-vzbnr37h.js} +8 -8
- package/dist/chunks/{git-70e86x8p.js → state-w0ee2s96.js} +5 -5
- package/dist/chunks/{git-a4dxgbzc.js → state-w26ydvkj.js} +11 -11
- package/dist/chunks/{git-40za9wsf.js → state-w2eysc6j.js} +9 -9
- package/dist/chunks/{git-w3wsvvr9.js → state-w3wsvvr9.js} +1 -1
- package/dist/chunks/{git-2eepz9hk.js → state-w65a8kme.js} +4 -4
- package/dist/chunks/{git-wakvkjy4.js → state-wakvkjy4.js} +1 -1
- package/dist/chunks/{git-wd87259q.js → state-wd87259q.js} +1 -1
- package/dist/chunks/{git-nx4vzyjd.js → state-wegkxhrn.js} +2 -2
- package/dist/chunks/{git-s5cne99v.js → state-wevk3aaq.js} +23 -23
- package/dist/chunks/{git-eb62zb4n.js → state-wfyabtyf.js} +86 -86
- package/dist/chunks/{git-e03kwr55.js → state-wjcg0vp3.js} +5 -5
- package/dist/chunks/{git-zreyz4tv.js → state-wjz4g2jq.js} +4 -4
- package/dist/chunks/{git-g3nxj0qd.js → state-wmkrkwan.js} +8 -8
- package/dist/chunks/{git-n7wqeypp.js → state-wpjpmdpx.js} +8 -8
- package/dist/chunks/{git-w687dnns.js → state-wr3re1en.js} +4 -4
- package/dist/chunks/{git-w9b4gqmv.js → state-wz7en73q.js} +29 -29
- package/dist/chunks/{git-6wjbren0.js → state-wzf5k0ay.js} +9 -9
- package/dist/chunks/{git-x150ncgg.js → state-x150ncgg.js} +2 -2
- package/dist/chunks/{git-7zs4mqwf.js → state-xacrkbdt.js} +4 -4
- package/dist/chunks/{git-kzvgkc0j.js → state-xnvj0mm3.js} +7 -7
- package/dist/chunks/{git-5xsx4kze.js → state-xvxdf7j2.js} +8 -8
- package/dist/chunks/{git-xjr6c8m4.js → state-xxschbft.js} +4 -4
- package/dist/chunks/{git-qm9ccx2k.js → state-y5mtf85h.js} +50 -50
- package/dist/chunks/{git-ms3q0y47.js → state-y7v4rbnm.js} +23 -23
- package/dist/chunks/{git-g7yvgvgp.js → state-y8extacy.js} +19 -19
- package/dist/chunks/{git-yb20nhc3.js → state-yb20nhc3.js} +1 -1
- package/dist/chunks/{git-js0pxjrh.js → state-yd4vfr0t.js} +9 -9
- package/dist/chunks/{git-h4ptbebw.js → state-ydet8tgv.js} +32 -32
- package/dist/chunks/{git-appmpegx.js → state-yh9adn63.js} +4 -4
- package/dist/chunks/{git-ynzdgah7.js → state-ynzdgah7.js} +2 -2
- package/dist/chunks/{git-aeevvyey.js → state-yr4nm0tc.js} +16 -16
- package/dist/chunks/{git-yr705xyq.js → state-yr705xyq.js} +1 -1
- package/dist/chunks/{git-yvtc2x31.js → state-yvtc2x31.js} +1 -1
- package/dist/chunks/{git-gkyscxyz.js → state-ywxpr5ha.js} +14 -14
- package/dist/chunks/{git-4wxbgzz6.js → state-yxb8rzbt.js} +9 -9
- package/dist/chunks/{git-3pk775mm.js → state-yzyzjx54.js} +9 -9
- package/dist/chunks/{git-z0wbgq7s.js → state-z0wbgq7s.js} +1 -1
- package/dist/chunks/{git-j9nxzz3g.js → state-ze75qvmd.js} +3 -3
- package/dist/chunks/{git-2cxpzphm.js → state-zhbst51w.js} +31 -31
- package/dist/chunks/{git-rvnsgwfh.js → state-zqeyams7.js} +29 -29
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +149 -149
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +156 -156
- package/dist/command.js +90 -90
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +3 -3
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +113 -113
- package/dist/config/plugin/agent.js +134 -134
- package/dist/config/plugin/command.js +247 -247
- package/dist/config/plugin/compaction.js +174 -174
- package/dist/config/plugin/compatibility.js +154 -154
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +132 -132
- package/dist/config/plugin/image.js +131 -131
- package/dist/config/plugin/instruction.js +131 -131
- package/dist/config/plugin/location-watcher.js +133 -133
- package/dist/config/plugin/mcp.js +148 -148
- package/dist/config/plugin/policy.js +131 -131
- package/dist/config/plugin/provider.js +131 -131
- package/dist/config/plugin/reference.js +133 -133
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +150 -150
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +157 -157
- package/dist/config/plugin/snapshot.js +131 -131
- package/dist/config/plugin/source.js +133 -133
- package/dist/config/plugin/tool-output.js +132 -132
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +133 -133
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +136 -136
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +94 -94
- package/dist/database/batch.js +1 -1
- package/dist/database/database.js +81 -81
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +76 -76
- 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/v1-migration.bun.js +101 -101
- package/dist/effect/app-node-builder.js +448 -448
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +109 -109
- 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 +85 -85
- package/dist/file-access.js +161 -161
- package/dist/file-mutation.js +108 -108
- package/dist/file-retention.js +1 -1
- package/dist/file-write.js +165 -165
- 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 +91 -91
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +258 -258
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +113 -113
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +116 -116
- package/dist/flag.js +136 -136
- package/dist/form.js +91 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +121 -121
- package/dist/git.js +11 -11
- package/dist/github-copilot/models.js +105 -105
- package/dist/image/notice.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 +439 -439
- package/dist/instruction-discovery.js +91 -91
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +88 -88
- package/dist/job/list.js +5 -5
- package/dist/job/recovery.js +2 -2
- package/dist/job/sql.js +2 -2
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +80 -80
- package/dist/location-activity.js +186 -186
- package/dist/location-lifecycle.js +154 -154
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +436 -436
- package/dist/location.js +94 -94
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +159 -159
- package/dist/mcp/connection.js +104 -104
- package/dist/mcp/index.js +149 -149
- package/dist/mcp/instructions.js +190 -190
- package/dist/mcp/oauth.js +90 -90
- package/dist/mcp/pool.js +110 -110
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +160 -160
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +105 -105
- package/dist/model-resolver.js +109 -109
- package/dist/model-retry.js +1 -1
- package/dist/model.js +108 -108
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +122 -122
- package/dist/oauth/page.js +1 -1
- package/dist/oauth/redirect.js +1 -1
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +149 -149
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +99 -99
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +87 -87
- package/dist/plugin/command.js +146 -146
- package/dist/plugin/fork-notice.js +3 -3
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +249 -249
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +416 -416
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +111 -111
- package/dist/plugin/module.js +130 -130
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +150 -150
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +107 -107
- package/dist/plugin/provider/azure.js +134 -134
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +135 -135
- package/dist/plugin/provider/claude-agent/aisdk.js +118 -118
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
- package/dist/plugin/provider/claude-agent/claude/session.js +8 -8
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +149 -149
- package/dist/plugin/provider/claude-agent/instructions.js +115 -115
- package/dist/plugin/provider/claude-agent/integration.js +116 -116
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +111 -111
- package/dist/plugin/provider/claude-agent/session.js +113 -113
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +131 -131
- package/dist/plugin/provider/cloudflare-workers-ai.js +131 -131
- package/dist/plugin/provider/configured.js +127 -127
- package/dist/plugin/provider/credential-settings.js +88 -88
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +110 -110
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +112 -112
- package/dist/plugin/provider/gitlab.js +111 -111
- package/dist/plugin/provider/google-vertex.js +128 -128
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +144 -144
- package/dist/plugin/provider/local.js +141 -141
- package/dist/plugin/provider/modal.js +109 -109
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +144 -144
- package/dist/plugin/provider/openai-context-caps.js +107 -107
- package/dist/plugin/provider/openai.js +137 -137
- package/dist/plugin/provider/opencode-watches.js +4 -4
- package/dist/plugin/provider/opencode.js +162 -162
- package/dist/plugin/provider/openrouter.js +105 -105
- package/dist/plugin/provider/poe.js +91 -91
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +105 -105
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +133 -133
- package/dist/plugin/provider/vllm.js +144 -144
- package/dist/plugin/provider/xai.js +105 -105
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +241 -241
- package/dist/plugin/sdk.js +87 -87
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +153 -153
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +428 -428
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +107 -107
- package/dist/plugin/warming.js +131 -131
- package/dist/plugin/websearch/exa.js +8 -8
- package/dist/plugin/websearch/firecrawl.js +9 -9
- package/dist/plugin/websearch/index.js +10 -10
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +9 -9
- package/dist/plugin/websearch/provider.js +3 -3
- package/dist/plugin/websearch/tavily.js +7 -7
- package/dist/plugin/websearch/tinyfish.js +9 -9
- package/dist/plugin.js +260 -260
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -93
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +113 -113
- package/dist/reference/instructions.js +101 -101
- package/dist/reference.js +101 -101
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +254 -254
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +262 -262
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +133 -133
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +176 -176
- package/dist/session/context.js +206 -206
- package/dist/session/diff.js +101 -101
- 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 +272 -272
- package/dist/session/execution/subagent-report.js +144 -144
- package/dist/session/execution.js +171 -171
- package/dist/session/generate.js +208 -208
- package/dist/session/history.js +140 -140
- package/dist/session/inbox.js +147 -147
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +88 -88
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +147 -147
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +172 -172
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +175 -175
- package/dist/session/projector.js +147 -147
- package/dist/session/prompt.js +152 -152
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +143 -143
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +261 -261
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +115 -115
- package/dist/session/runner/publish-llm-event.js +154 -154
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +167 -167
- package/dist/session/runner/to-llm-message.js +141 -141
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +195 -195
- package/dist/session/shell.js +149 -149
- package/dist/session/skill.js +151 -151
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +87 -87
- package/dist/session/store.js +142 -142
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +172 -172
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +210 -210
- package/dist/session/to-session-error.js +153 -153
- package/dist/session/transfer.js +256 -256
- package/dist/session/usage.js +1 -1
- package/dist/session.js +245 -245
- package/dist/shared-cache.js +5 -5
- 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 +11 -11
- package/dist/shell.js +149 -149
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +155 -155
- package/dist/skill.js +162 -162
- package/dist/snapshot.js +104 -104
- 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 +187 -187
- package/dist/tool/plugin/artifact.js +244 -244
- package/dist/tool/plugin/edit.js +171 -171
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +175 -175
- package/dist/tool/plugin/grep.js +174 -174
- package/dist/tool/plugin/image-generate.js +255 -255
- package/dist/tool/plugin/mcp-events.js +166 -166
- package/dist/tool/plugin/mcp-resource.js +170 -170
- package/dist/tool/plugin/opencode.js +167 -167
- package/dist/tool/plugin/patch.js +172 -172
- package/dist/tool/plugin/question.js +150 -150
- package/dist/tool/plugin/read.js +170 -170
- package/dist/tool/plugin/schedule.js +260 -260
- package/dist/tool/plugin/shell.js +245 -245
- package/dist/tool/plugin/skill.js +159 -159
- package/dist/tool/plugin/subagent.js +251 -251
- package/dist/tool/plugin/todo.js +157 -157
- package/dist/tool/plugin/webfetch.js +159 -159
- package/dist/tool/plugin/websearch.js +157 -157
- package/dist/tool/plugin/write.js +170 -170
- package/dist/tool/read-filesystem.js +114 -114
- package/dist/tool/runtime.js +1 -1
- package/dist/tool/search.js +109 -109
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +162 -162
- package/dist/usage-limits.js +98 -98
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +106 -106
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +107 -107
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +99 -99
- package/dist/websearch.js +97 -97
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +92 -92
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +111 -111
- package/package.json +8 -8
- package/dist/chunks/git-2dkjcnxp.js +0 -18
- package/dist/chunks/git-kkq9v4gh.js +0 -35
- package/dist/chunks/git-r8dwvwz6.js +0 -273
- package/dist/chunks/git-yengr0n7.js +0 -26
- /package/dist/chunks/{git-0qkdqm5v.js → state-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{git-0zkw76rk.js → state-0zkw76rk.js} +0 -0
- /package/dist/chunks/{git-17cy0kzp.js → state-17cy0kzp.js} +0 -0
- /package/dist/chunks/{git-1cnp2v09.js → state-1cnp2v09.js} +0 -0
- /package/dist/chunks/{git-1kah00gy.js → state-1kah00gy.js} +0 -0
- /package/dist/chunks/{git-24dcb14g.js → state-24dcb14g.js} +0 -0
- /package/dist/chunks/{git-2710q6r3.js → state-2710q6r3.js} +0 -0
- /package/dist/chunks/{git-2c3vjs8z.js → state-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{git-359p4xyc.js → state-359p4xyc.js} +0 -0
- /package/dist/chunks/{git-3v8g72cx.js → state-3v8g72cx.js} +0 -0
- /package/dist/chunks/{git-43n2bw4t.js → state-43n2bw4t.js} +0 -0
- /package/dist/chunks/{git-4knz6hnm.js → state-4knz6hnm.js} +0 -0
- /package/dist/chunks/{git-4qk9sjk2.js → state-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{git-53557ph1.js → state-53557ph1.js} +0 -0
- /package/dist/chunks/{git-5w3e23ze.js → state-5w3e23ze.js} +0 -0
- /package/dist/chunks/{git-6agm2x70.js → state-6agm2x70.js} +0 -0
- /package/dist/chunks/{git-6prwharc.js → state-6prwharc.js} +0 -0
- /package/dist/chunks/{git-6q2bdcd1.js → state-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{git-7akdwqpd.js → state-7akdwqpd.js} +0 -0
- /package/dist/chunks/{git-7m9af43g.js → state-7m9af43g.js} +0 -0
- /package/dist/chunks/{git-7rvsyqjv.js → state-7rvsyqjv.js} +0 -0
- /package/dist/chunks/{git-822emrt2.js → state-822emrt2.js} +0 -0
- /package/dist/chunks/{git-84wd9syh.js → state-84wd9syh.js} +0 -0
- /package/dist/chunks/{git-88xbtdfr.js → state-88xbtdfr.js} +0 -0
- /package/dist/chunks/{git-8n3pysct.js → state-8n3pysct.js} +0 -0
- /package/dist/chunks/{git-8wj87zfr.js → state-8wj87zfr.js} +0 -0
- /package/dist/chunks/{git-9a4afbnw.js → state-9a4afbnw.js} +0 -0
- /package/dist/chunks/{git-9rqn6x4v.js → state-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{git-aqzs7mqg.js → state-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{git-atq7p7m5.js → state-atq7p7m5.js} +0 -0
- /package/dist/chunks/{git-beh6qq61.js → state-beh6qq61.js} +0 -0
- /package/dist/chunks/{git-bkyjaxrp.js → state-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{git-bmr6ed5q.js → state-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{git-cf4snx6d.js → state-cf4snx6d.js} +0 -0
- /package/dist/chunks/{git-cqv5kn06.js → state-cqv5kn06.js} +0 -0
- /package/dist/chunks/{git-cvy3z8tj.js → state-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{git-d9fn303g.js → state-d9fn303g.js} +0 -0
- /package/dist/chunks/{git-d9jj8t3e.js → state-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{git-df08tz66.js → state-df08tz66.js} +0 -0
- /package/dist/chunks/{git-dy18nga0.js → state-dy18nga0.js} +0 -0
- /package/dist/chunks/{git-e5kj55wp.js → state-e5kj55wp.js} +0 -0
- /package/dist/chunks/{git-ean2d8b5.js → state-ean2d8b5.js} +0 -0
- /package/dist/chunks/{git-ec1grn59.js → state-ec1grn59.js} +0 -0
- /package/dist/chunks/{git-emrn6kk6.js → state-emrn6kk6.js} +0 -0
- /package/dist/chunks/{git-f0mxakyp.js → state-f0mxakyp.js} +0 -0
- /package/dist/chunks/{git-f6n9ztr4.js → state-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{git-faypxj3z.js → state-faypxj3z.js} +0 -0
- /package/dist/chunks/{git-fd410y7t.js → state-fd410y7t.js} +0 -0
- /package/dist/chunks/{git-fkpq3x5p.js → state-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{git-g86h250q.js → state-g86h250q.js} +0 -0
- /package/dist/chunks/{git-gebd4c9n.js → state-gebd4c9n.js} +0 -0
- /package/dist/chunks/{git-gftt206x.js → state-gftt206x.js} +0 -0
- /package/dist/chunks/{git-hcxmzztb.js → state-hcxmzztb.js} +0 -0
- /package/dist/chunks/{git-hk9envan.js → state-hk9envan.js} +0 -0
- /package/dist/chunks/{git-j2ntwpah.js → state-j2ntwpah.js} +0 -0
- /package/dist/chunks/{git-jjkms2e6.js → state-jjkms2e6.js} +0 -0
- /package/dist/chunks/{git-jr7sbwjy.js → state-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{git-jwfs4k6c.js → state-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{git-jwr30sdr.js → state-jwr30sdr.js} +0 -0
- /package/dist/chunks/{git-jzg6c2d5.js → state-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{git-m18g726c.js → state-m18g726c.js} +0 -0
- /package/dist/chunks/{git-mp448xyj.js → state-mp448xyj.js} +0 -0
- /package/dist/chunks/{git-msx8hqn2.js → state-msx8hqn2.js} +0 -0
- /package/dist/chunks/{git-n05xt0ee.js → state-n05xt0ee.js} +0 -0
- /package/dist/chunks/{git-n3j8tn72.js → state-n3j8tn72.js} +0 -0
- /package/dist/chunks/{git-nh4v3znn.js → state-nh4v3znn.js} +0 -0
- /package/dist/chunks/{git-njntx4h6.js → state-njntx4h6.js} +0 -0
- /package/dist/chunks/{git-p71gwv9c.js → state-p71gwv9c.js} +0 -0
- /package/dist/chunks/{git-q3sfg36h.js → state-q3sfg36h.js} +0 -0
- /package/dist/chunks/{git-q74kybfr.js → state-q74kybfr.js} +0 -0
- /package/dist/chunks/{git-qb87gjwd.js → state-qb87gjwd.js} +0 -0
- /package/dist/chunks/{git-qfa1cgps.js → state-qfa1cgps.js} +0 -0
- /package/dist/chunks/{git-qg3g05ea.js → state-qg3g05ea.js} +0 -0
- /package/dist/chunks/{git-qrg20bc0.js → state-qrg20bc0.js} +0 -0
- /package/dist/chunks/{git-qtf35215.js → state-qtf35215.js} +0 -0
- /package/dist/chunks/{git-rcb2kzg1.js → state-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{git-sdp7kfr6.js → state-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{git-ssg3fenm.js → state-ssg3fenm.js} +0 -0
- /package/dist/chunks/{git-syrav9an.js → state-syrav9an.js} +0 -0
- /package/dist/chunks/{git-t03h4f5z.js → state-t03h4f5z.js} +0 -0
- /package/dist/chunks/{git-ty7weeps.js → state-ty7weeps.js} +0 -0
- /package/dist/chunks/{git-v2dnd5dt.js → state-v2dnd5dt.js} +0 -0
- /package/dist/chunks/{git-ve7vex1e.js → state-ve7vex1e.js} +0 -0
- /package/dist/chunks/{git-vtarvj67.js → state-vtarvj67.js} +0 -0
- /package/dist/chunks/{git-w803qqfp.js → state-w803qqfp.js} +0 -0
- /package/dist/chunks/{git-wc3fc9cn.js → state-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{git-wer8tq1h.js → state-wer8tq1h.js} +0 -0
- /package/dist/chunks/{git-wtztk69x.js → state-wtztk69x.js} +0 -0
- /package/dist/chunks/{git-x4th4bpe.js → state-x4th4bpe.js} +0 -0
- /package/dist/chunks/{git-y44na4kk.js → state-y44na4kk.js} +0 -0
- /package/dist/chunks/{git-y8f7s663.js → state-y8f7s663.js} +0 -0
- /package/dist/chunks/{git-ygaqb7jw.js → state-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{git-z5v4ffb3.js → state-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{git-z9919s4g.js → state-z9919s4g.js} +0 -0
- /package/dist/chunks/{git-zxpyjp51.js → state-zxpyjp51.js} +0 -0
- /package/dist/chunks/{git-zz5vv3aq.js → state-zz5vv3aq.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service93,
|
|
3
|
+
node95
|
|
4
|
+
} from "./state-yr4nm0tc.js";
|
|
5
5
|
import {
|
|
6
6
|
changes2,
|
|
7
7
|
create4
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./state-40y6dtc2.js";
|
|
9
9
|
import {
|
|
10
10
|
evaluate3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./state-smk8519c.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./state-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/skill.ts
|
|
17
17
|
var exports_skill5 = {};
|
|
18
18
|
__export(exports_skill5, {
|
|
19
19
|
DirectorySource: () => DirectorySource2,
|
|
20
20
|
EmbeddedSource: () => EmbeddedSource2,
|
|
21
|
-
Event: () =>
|
|
22
|
-
ID: () =>
|
|
23
|
-
Info: () =>
|
|
21
|
+
Event: () => Event11,
|
|
22
|
+
ID: () => ID10,
|
|
23
|
+
Info: () => Info14,
|
|
24
24
|
Name: () => Name2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service54,
|
|
26
26
|
Skill: () => exports_skill5,
|
|
27
|
-
Source: () =>
|
|
27
|
+
Source: () => Source4,
|
|
28
28
|
UrlSource: () => UrlSource2,
|
|
29
|
-
available: () =>
|
|
29
|
+
available: () => available4,
|
|
30
30
|
isUri: () => isUri2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node56,
|
|
32
32
|
prepare: () => prepare3,
|
|
33
33
|
toModelOutput: () => toModelOutput3,
|
|
34
34
|
uri: () => uri2
|
|
@@ -38,15 +38,15 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
38
38
|
import path from "path";
|
|
39
39
|
import { Context, Effect, Layer } from "effect";
|
|
40
40
|
import { Skill } from "@opencode/schema/skill";
|
|
41
|
-
import { Event as
|
|
41
|
+
import { Event as Event11 } from "@opencode/schema/skill";
|
|
42
42
|
var DirectorySource2 = Skill.DirectorySource;
|
|
43
43
|
var UrlSource2 = Skill.UrlSource;
|
|
44
44
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
45
|
+
var Source4 = Skill.Source;
|
|
46
|
+
var Info14 = Skill.Info;
|
|
47
|
+
var ID10 = Skill.ID;
|
|
48
48
|
var Name2 = Skill.Name;
|
|
49
|
-
var
|
|
49
|
+
var available4 = (skills, permissions) => skills.filter((skill) => evaluate3("skill", skill.id, permissions).effect !== "deny");
|
|
50
50
|
var uri2 = (id, file) => file ? `skill://${id}/${file}` : `skill://${id}`;
|
|
51
51
|
var isUri2 = (value) => value.startsWith("skill://");
|
|
52
52
|
var toModelOutput3 = (skill, files) => {
|
|
@@ -91,16 +91,16 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill, virtualFiles) {
|
|
|
91
91
|
};
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
class
|
|
94
|
+
class Service54 extends Context.Service()("@opencode/Skill") {
|
|
95
95
|
}
|
|
96
|
-
var layer = Layer.effect(
|
|
97
|
-
const bus = yield*
|
|
96
|
+
var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
97
|
+
const bus = yield* Service93;
|
|
98
98
|
const state = create4({
|
|
99
99
|
name: "skill",
|
|
100
100
|
initial: () => ({ skills: new Map, files: new Map }),
|
|
101
101
|
editor: (editor) => ({
|
|
102
102
|
list: () => Array.from(editor.skills.values()),
|
|
103
|
-
get: (id) => editor.skills.get(
|
|
103
|
+
get: (id) => editor.skills.get(ID10.make(id)),
|
|
104
104
|
add: (skill, files) => {
|
|
105
105
|
editor.skills.set(skill.id, { ...skill });
|
|
106
106
|
const entries = files ? Object.entries(files).filter(([file]) => file !== "SKILL.md").toSorted(([a], [b]) => a.localeCompare(b)) : [];
|
|
@@ -111,7 +111,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
111
111
|
editor.files.set(skill.id, new Map(entries));
|
|
112
112
|
},
|
|
113
113
|
update: (id, update) => {
|
|
114
|
-
const key =
|
|
114
|
+
const key = ID10.make(id);
|
|
115
115
|
const current = editor.skills.get(key);
|
|
116
116
|
if (!current)
|
|
117
117
|
return;
|
|
@@ -119,7 +119,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
119
119
|
current.id = key;
|
|
120
120
|
},
|
|
121
121
|
remove: (id) => {
|
|
122
|
-
const key =
|
|
122
|
+
const key = ID10.make(id);
|
|
123
123
|
editor.skills.delete(key);
|
|
124
124
|
editor.files.delete(key);
|
|
125
125
|
}
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
129
129
|
Array.from(data.files, ([id, entries]) => [id, Array.from(entries)])
|
|
130
130
|
], () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid))
|
|
131
131
|
});
|
|
132
|
-
return
|
|
132
|
+
return Service54.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -144,10 +144,10 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
144
144
|
})
|
|
145
145
|
});
|
|
146
146
|
}));
|
|
147
|
-
var
|
|
148
|
-
service:
|
|
147
|
+
var node56 = makeLocationNode({
|
|
148
|
+
service: Service54,
|
|
149
149
|
layer,
|
|
150
|
-
deps: [
|
|
150
|
+
deps: [node95]
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2,
|
|
153
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info14, ID10, Name2, available4, uri2, isUri2, toModelOutput3, prepare3, Service54, node56, exports_skill5, Event11 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Ref5
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-3efg5d53.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./state-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: () => Service59,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node61,
|
|
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 Service59 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service59, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node61 = LayerNode.unbound(Service59, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service59;
|
|
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,
|
|
@@ -48,4 +48,4 @@ function canonical3(ref) {
|
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Service59, node61, reload2, canonical3, exports_location_service_map };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./state-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionSchema2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./state-qtf35215.js";
|
|
8
8
|
|
|
9
9
|
// src/session/info.ts
|
|
10
10
|
import { DateTime, Schema } from "effect";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/config/integration.ts
|
|
6
6
|
var exports_integration2 = {};
|
|
@@ -10,7 +10,7 @@ __export(exports_integration2, {
|
|
|
10
10
|
Policies: () => Policies2,
|
|
11
11
|
Remote: () => Remote3,
|
|
12
12
|
WellKnownDocument: () => WellKnownDocument2,
|
|
13
|
-
make: () =>
|
|
13
|
+
make: () => make34,
|
|
14
14
|
suppliers: () => suppliers2
|
|
15
15
|
});
|
|
16
16
|
import { Option, Schema, SchemaGetter } from "effect";
|
|
@@ -51,7 +51,7 @@ class WellKnownDocument2 extends Config.Document.extend("Config.WellKnownDocumen
|
|
|
51
51
|
function suppliers2(entries) {
|
|
52
52
|
return new Map(entries.filter((entry) => entry instanceof WellKnownDocument2).flatMap((document) => Object.keys(document.info.providers ?? {}).map((id) => [id, document.integrationID])));
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function make34(input) {
|
|
55
55
|
const servers = input.info.mcp?.servers;
|
|
56
56
|
return new Document3({
|
|
57
57
|
type: "document",
|
|
@@ -90,4 +90,4 @@ function withoutCredentials(settings) {
|
|
|
90
90
|
return settings && Object.fromEntries(Object.entries(settings).filter(([key]) => !["apiKey", "authToken", "accessToken"].includes(key)));
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
export { Policies2, Remote3, Document3, WellKnownDocument2, suppliers2,
|
|
93
|
+
export { Policies2, Remote3, Document3, WellKnownDocument2, suppliers2, make34, exports_integration2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HEADER2,
|
|
3
3
|
FORK_HEADER2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./state-yr705xyq.js";
|
|
5
5
|
import {
|
|
6
6
|
ID3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./state-p6s20s7v.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./state-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/claude-agent/session.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ClaudeSessionHooks: () =>
|
|
13
|
+
var exports_session2 = {};
|
|
14
|
+
__export(exports_session2, {
|
|
15
|
+
ClaudeSessionHooks: () => exports_session2,
|
|
16
16
|
register: () => register4
|
|
17
17
|
});
|
|
18
18
|
import { AssistantMessage, ToolMessage } from "@opencode/ai/effect";
|
|
@@ -53,4 +53,4 @@ var register4 = Effect.fn("ClaudeSessionHooks.register")(function* (ctx) {
|
|
|
53
53
|
}), { providerID: ID3 });
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
export { register4,
|
|
56
|
+
export { register4, exports_session2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service51
|
|
3
|
+
} from "./state-1xhvy0a1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service42
|
|
6
|
+
} from "./state-4bwthz3m.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./state-ezna1kdx.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./state-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,10 +19,10 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
22
|
+
const instances = yield* Service42;
|
|
23
23
|
yield* Effect.gen(function* () {
|
|
24
24
|
yield* awaitActivation2;
|
|
25
|
-
const commands = yield*
|
|
25
|
+
const commands = yield* Service51;
|
|
26
26
|
yield* commands.execute({
|
|
27
27
|
name: input.command,
|
|
28
28
|
invocation: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./state-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/websearch/provider.ts
|
|
6
6
|
var exports_provider = {};
|
|
7
7
|
__export(exports_provider, {
|
|
8
8
|
WebSearchProvider: () => exports_provider,
|
|
9
|
-
register: () =>
|
|
9
|
+
register: () => register3
|
|
10
10
|
});
|
|
11
11
|
import { Effect } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var register3 = Effect.fn("WebSearchProvider.register")(function* (ctx, provider) {
|
|
13
13
|
yield* ctx.integration.transform((editor) => {
|
|
14
14
|
editor.update(provider.id, (integration) => integration.name = provider.name);
|
|
15
15
|
editor.method.update({
|
|
@@ -34,4 +34,4 @@ var register2 = Effect.fn("WebSearchProvider.register")(function* (ctx, provider
|
|
|
34
34
|
});
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { register3, exports_provider };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Service94,
|
|
3
|
+
node96
|
|
4
|
+
} from "./state-0dnk7p9t.js";
|
|
1
5
|
import {
|
|
2
6
|
Service93,
|
|
3
7
|
node95
|
|
4
|
-
} from "./
|
|
5
|
-
import {
|
|
6
|
-
Service92,
|
|
7
|
-
node94
|
|
8
|
-
} from "./git-aeevvyey.js";
|
|
8
|
+
} from "./state-yr4nm0tc.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service42,
|
|
11
|
+
node44
|
|
12
|
+
} from "./state-4bwthz3m.js";
|
|
13
13
|
import {
|
|
14
14
|
AbsolutePath2,
|
|
15
15
|
RelativePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./state-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
18
|
Service91,
|
|
19
19
|
node93
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./state-fzattvf9.js";
|
|
21
21
|
import {
|
|
22
22
|
Ref5
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./state-3efg5d53.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service59,
|
|
26
|
+
node61
|
|
27
|
+
} from "./state-wzf5k0ay.js";
|
|
28
28
|
import {
|
|
29
29
|
SessionMessage2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./state-gftt206x.js";
|
|
31
31
|
import {
|
|
32
32
|
NotFoundError12
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./state-edm37t96.js";
|
|
34
34
|
import {
|
|
35
35
|
SessionEvent2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./state-ec1grn59.js";
|
|
37
37
|
import {
|
|
38
38
|
Item2,
|
|
39
39
|
serialized2,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
Service43,
|
|
41
|
+
node45,
|
|
42
42
|
moveIDs2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./state-wevk3aaq.js";
|
|
44
44
|
import {
|
|
45
|
-
|
|
46
|
-
} from "./
|
|
45
|
+
Service41
|
|
46
|
+
} from "./state-jns4gqy7.js";
|
|
47
47
|
import {
|
|
48
48
|
Service75,
|
|
49
49
|
node77
|
|
50
|
-
} from "./
|
|
50
|
+
} from "./state-ebxw5th9.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./
|
|
52
|
+
Service40,
|
|
53
|
+
node43
|
|
54
|
+
} from "./state-7r2vp639.js";
|
|
55
55
|
import {
|
|
56
|
-
|
|
57
|
-
} from "./
|
|
56
|
+
node36
|
|
57
|
+
} from "./state-zqeyams7.js";
|
|
58
58
|
import {
|
|
59
59
|
__export
|
|
60
|
-
} from "./
|
|
60
|
+
} from "./state-9rqn6x4v.js";
|
|
61
61
|
|
|
62
62
|
// src/session/move.ts
|
|
63
63
|
var exports_move = {};
|
|
@@ -65,9 +65,9 @@ __export(exports_move, {
|
|
|
65
65
|
DestinationNotDirectoryError: () => DestinationNotDirectoryError2,
|
|
66
66
|
DestinationNotFoundError: () => DestinationNotFoundError2,
|
|
67
67
|
DestinationUnavailableError: () => DestinationUnavailableError2,
|
|
68
|
-
Service: () =>
|
|
68
|
+
Service: () => Service23,
|
|
69
69
|
SessionMove: () => exports_move,
|
|
70
|
-
node: () =>
|
|
70
|
+
node: () => node26
|
|
71
71
|
});
|
|
72
72
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
73
73
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -83,19 +83,19 @@ class DestinationNotDirectoryError2 extends Schema.TaggedError()("Session.Destin
|
|
|
83
83
|
class DestinationUnavailableError2 extends Schema.TaggedError()("Session.DestinationUnavailableError", { directory: AbsolutePath2 }) {
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
class
|
|
86
|
+
class Service23 extends Context.Service()("@opencode/SessionMove") {
|
|
87
87
|
}
|
|
88
|
-
var layer = Layer.effect(
|
|
88
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
89
89
|
const fs = yield* FSUtil.Service;
|
|
90
90
|
const global = yield* Global.Service;
|
|
91
91
|
const projects = yield* Service91;
|
|
92
|
-
const locations = yield*
|
|
92
|
+
const locations = yield* Service59;
|
|
93
93
|
const store = yield* Service75;
|
|
94
|
-
const execution = yield*
|
|
95
|
-
const instances = yield*
|
|
96
|
-
const admission = yield*
|
|
97
|
-
const database = yield*
|
|
98
|
-
const bus = yield*
|
|
94
|
+
const execution = yield* Service40;
|
|
95
|
+
const instances = yield* Service42;
|
|
96
|
+
const admission = yield* Service43;
|
|
97
|
+
const database = yield* Service94;
|
|
98
|
+
const bus = yield* Service93;
|
|
99
99
|
const get = Effect.fn("SessionMove.get")(function* (sessionID) {
|
|
100
100
|
const session = yield* store.get(sessionID);
|
|
101
101
|
if (!session)
|
|
@@ -131,9 +131,9 @@ var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
|
131
131
|
return false;
|
|
132
132
|
if (!(yield* fs.isDir(session.location.directory)))
|
|
133
133
|
return true;
|
|
134
|
-
return yield*
|
|
134
|
+
return yield* Service41.pipe(instances.provide(session), Effect.as(false), Effect.catchCause((cause) => Cause.hasInterrupts(cause) ? Effect.failCause(Cause.fromReasons(cause.reasons.filter(Cause.isInterruptReason))) : Effect.succeed(true)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service23.of({
|
|
137
137
|
move: Effect.fn("SessionMove.move")(function* (input) {
|
|
138
138
|
const session = yield* get(input.sessionID);
|
|
139
139
|
const destination = yield* resolveDestination(session, input);
|
|
@@ -163,22 +163,22 @@ var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
|
163
163
|
})
|
|
164
164
|
});
|
|
165
165
|
}));
|
|
166
|
-
var
|
|
167
|
-
service:
|
|
166
|
+
var node26 = makeGlobalNode({
|
|
167
|
+
service: Service23,
|
|
168
168
|
layer,
|
|
169
169
|
deps: [
|
|
170
170
|
FSUtil.node,
|
|
171
171
|
Global.node,
|
|
172
172
|
node93,
|
|
173
|
-
|
|
173
|
+
node61,
|
|
174
174
|
node77,
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
175
|
+
node43,
|
|
176
|
+
node44,
|
|
177
|
+
node45,
|
|
178
|
+
node96,
|
|
178
179
|
node95,
|
|
179
|
-
|
|
180
|
-
node45
|
|
180
|
+
node36
|
|
181
181
|
]
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2,
|
|
184
|
+
export { DestinationNotFoundError2, DestinationNotDirectoryError2, DestinationUnavailableError2, Service23, node26, exports_move };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service93,
|
|
3
|
+
node95
|
|
4
|
+
} from "./state-yr4nm0tc.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./state-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/form.ts
|
|
10
10
|
var exports_form = {};
|
|
@@ -12,31 +12,31 @@ __export(exports_form, {
|
|
|
12
12
|
AlreadyExistsError: () => AlreadyExistsError2,
|
|
13
13
|
AlreadySettledError: () => AlreadySettledError2,
|
|
14
14
|
Answer: () => Answer2,
|
|
15
|
-
Event: () =>
|
|
15
|
+
Event: () => Event19,
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID19,
|
|
20
|
+
Info: () => Info28,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
23
|
NotFoundError: () => NotFoundError13,
|
|
24
24
|
Reply: () => Reply3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service88,
|
|
26
26
|
State: () => State3,
|
|
27
27
|
When: () => When3,
|
|
28
28
|
layer: () => layer30,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node90,
|
|
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 Event19 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID19 = Form.ID;
|
|
39
|
+
var Info28 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When3 = Form.When;
|
|
@@ -45,7 +45,7 @@ var Answer2 = Form.Answer;
|
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
47
|
class NotFoundError13 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
-
id:
|
|
48
|
+
id: ID19
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError13 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID19
|
|
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: ID19
|
|
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: ID19,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -79,10 +79,10 @@ class InvalidFormError2 extends Schema.TaggedError()("Form.InvalidFormError", {
|
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service88 extends Context.Service()("@opencode/Form") {
|
|
83
83
|
}
|
|
84
|
-
var layer30 = Layer.effect(
|
|
85
|
-
const bus = yield*
|
|
84
|
+
var layer30 = Layer.effect(Service88, Effect.gen(function* () {
|
|
85
|
+
const bus = yield* Service93;
|
|
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,
|
|
@@ -90,7 +90,7 @@ var layer30 = Layer.effect(Service89, Effect.gen(function* () {
|
|
|
90
90
|
});
|
|
91
91
|
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError13({ 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 ?? ID19.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 layer30 = Layer.effect(Service89, 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 Service88.of({ create, ask, get, list, state, reply, cancel, close });
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
167
|
+
var node90 = makeLocationNode({ service: Service88, layer: layer30, deps: [node95] });
|
|
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 { ID19, Info28, Field2, Fields2, When3, State3, Answer2, Reply3, NotFoundError13, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service88, layer30, node90, validateAnswer2, validateFields2, exports_form, Event19 };
|