@opencode/core 0.0.0-dev-177 → 0.0.0-dev-187
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 +86 -85
- package/dist/aisdk-native.js +98 -97
- package/dist/aisdk.js +104 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +80 -79
- package/dist/chunks/{vcs-034tev2y.js → credential-034tev2y.js} +2 -2
- package/dist/chunks/{vcs-0d5zdg09.js → credential-070kztyy.js} +4 -4
- package/dist/chunks/{vcs-m23nxqzn.js → credential-0e3a0p0e.js} +28 -28
- package/dist/chunks/{vcs-3y5kg779.js → credential-0f3jx7vk.js} +2 -2
- package/dist/chunks/{vcs-swjc4wgc.js → credential-0j385cpp.js} +13 -13
- package/dist/chunks/credential-0r9z73ty.js +257 -0
- package/dist/chunks/{vcs-n93tr00k.js → credential-0xp5gcxg.js} +10 -10
- package/dist/chunks/{vcs-9qdswjvr.js → credential-13mkws8m.js} +12 -12
- package/dist/chunks/{vcs-hrf8w9bv.js → credential-14b1eg4m.js} +22 -16
- package/dist/chunks/{vcs-711z6zs4.js → credential-1agjqqwc.js} +29 -29
- package/dist/chunks/{vcs-10wj17tq.js → credential-1b47wdbk.js} +21 -21
- package/dist/chunks/{vcs-1ep2p91f.js → credential-1ep2p91f.js} +2 -2
- package/dist/chunks/{vcs-2vmza6bx.js → credential-1jd0kfa3.js} +4 -4
- package/dist/chunks/{vcs-1kn6jdkn.js → credential-1kn6jdkn.js} +1 -1
- package/dist/chunks/{vcs-3br35akn.js → credential-1r71ewmy.js} +17 -17
- package/dist/chunks/{vcs-1x2knyw4.js → credential-1x2knyw4.js} +1 -1
- package/dist/chunks/{vcs-204s3925.js → credential-204s3925.js} +1 -1
- package/dist/chunks/{vcs-j3fqds5k.js → credential-205jx585.js} +25 -25
- package/dist/chunks/{vcs-ckvzbjwj.js → credential-24fnnd1e.js} +14 -14
- package/dist/chunks/{vcs-r4kh5xmg.js → credential-25rbfdac.js} +3 -3
- package/dist/chunks/{vcs-qj0f10hy.js → credential-27bs79w9.js} +2 -2
- package/dist/chunks/{vcs-gb3x7pd4.js → credential-27ttap9b.js} +18 -18
- package/dist/chunks/{vcs-fne85w7v.js → credential-2k05yhhs.js} +4 -4
- package/dist/chunks/{vcs-bzzy1r12.js → credential-2r17yksc.js} +11 -11
- package/dist/chunks/{vcs-rb35zdj3.js → credential-389agmea.js} +4 -4
- package/dist/chunks/{vcs-e14jxrf8.js → credential-3ez6nx9b.js} +23 -23
- package/dist/chunks/{vcs-3sdek3b3.js → credential-3g0vgwnf.js} +47 -47
- package/dist/chunks/{vcs-crgewsnq.js → credential-3ge1gmtq.js} +5 -5
- package/dist/chunks/{vcs-3hepkmqq.js → credential-3hepkmqq.js} +1 -1
- package/dist/chunks/{vcs-h7hv4bsx.js → credential-3kkx4n85.js} +3 -3
- package/dist/chunks/{vcs-3nnrz6f6.js → credential-3nnrz6f6.js} +1 -1
- package/dist/chunks/{vcs-jxt3q3kf.js → credential-3stf93zb.js} +11 -11
- package/dist/chunks/{vcs-vbfgf998.js → credential-3tfc273a.js} +10 -10
- package/dist/chunks/{vcs-xcrtaswj.js → credential-44j71sge.js} +8 -8
- package/dist/chunks/{vcs-5ww8zx74.js → credential-4ar31nmd.js} +6 -3
- package/dist/chunks/{vcs-y2syk0h5.js → credential-4g6brmvj.js} +10 -10
- package/dist/chunks/{vcs-88nacy35.js → credential-4p44xgxk.js} +32 -32
- package/dist/chunks/{vcs-4pyp9zr9.js → credential-4pyp9zr9.js} +1 -1
- package/dist/chunks/{vcs-4v008n1t.js → credential-4v008n1t.js} +1 -1
- package/dist/chunks/{vcs-z9wg9fq4.js → credential-5afpsjak.js} +17 -17
- package/dist/chunks/{vcs-5enarcya.js → credential-5enarcya.js} +2 -2
- package/dist/chunks/{vcs-5m9w47nd.js → credential-5m9w47nd.js} +1 -1
- package/dist/chunks/{vcs-mhhpcp40.js → credential-5p72pk0j.js} +59 -55
- package/dist/chunks/{vcs-tzz7d8n9.js → credential-5qz8cxb6.js} +74 -74
- package/dist/chunks/{vcs-5x26af84.js → credential-5x26af84.js} +4 -4
- package/dist/chunks/{vcs-1yq9hg58.js → credential-5zrxpy3q.js} +5 -5
- package/dist/chunks/{vcs-wx1qd37n.js → credential-6029gre8.js} +11 -11
- package/dist/chunks/{vcs-6esdw8yj.js → credential-6esdw8yj.js} +1 -1
- package/dist/chunks/{vcs-aecr8kmf.js → credential-6zswxkh0.js} +39 -39
- package/dist/chunks/{vcs-y9sq7js0.js → credential-70v23c6s.js} +184 -184
- package/dist/chunks/{vcs-znxracq4.js → credential-73s9ngde.js} +6 -6
- package/dist/chunks/{vcs-76cb1hcw.js → credential-76cb1hcw.js} +1 -1
- package/dist/chunks/{vcs-7bmhse3q.js → credential-7bmhse3q.js} +1 -1
- package/dist/chunks/{vcs-42qb5rv4.js → credential-7f9y1dg2.js} +13 -13
- package/dist/chunks/{vcs-sbanjb5j.js → credential-7fn4z29d.js} +11 -11
- package/dist/chunks/{vcs-rnkzngrq.js → credential-7rychec2.js} +13 -13
- package/dist/chunks/{vcs-893ry4nt.js → credential-7v2fx3f2.js} +10 -10
- package/dist/chunks/{vcs-9yhxtcx8.js → credential-7vfr41g1.js} +9 -9
- package/dist/chunks/{vcs-7w2ypzdf.js → credential-7w2ypzdf.js} +1 -1
- package/dist/chunks/{vcs-4qnt9348.js → credential-7y5w20kd.js} +9 -9
- package/dist/chunks/{vcs-a2jzevxz.js → credential-81tzp97y.js} +16 -16
- package/dist/chunks/{vcs-4xy4nqvy.js → credential-8as8ktgx.js} +21 -21
- package/dist/chunks/{vcs-qjgzc4b4.js → credential-8jztxfpf.js} +4 -4
- package/dist/chunks/{vcs-8wtp7s3z.js → credential-8wtp7s3z.js} +1 -1
- package/dist/chunks/{vcs-bh6hwh25.js → credential-8ygr8xs6.js} +3 -3
- package/dist/chunks/{vcs-90zstvax.js → credential-90zstvax.js} +1 -1
- package/dist/chunks/{vcs-qw6ypx0r.js → credential-971htg5h.js} +11 -11
- package/dist/chunks/{vcs-zsd8tnyx.js → credential-98s6gvh8.js} +12 -12
- package/dist/chunks/{vcs-yv133y3g.js → credential-9bbpwjz5.js} +312 -312
- package/dist/chunks/{vcs-96tdjhwb.js → credential-9pfnqqwg.js} +2 -2
- package/dist/chunks/{vcs-vzmjdaw1.js → credential-9r9bvhte.js} +9 -9
- package/dist/chunks/{vcs-2evsnrbc.js → credential-9tsqrg4s.js} +8 -8
- package/dist/chunks/{vcs-hznj66aq.js → credential-9wn23waw.js} +45 -45
- package/dist/chunks/{vcs-kvaqnkh5.js → credential-9x70yqx6.js} +9 -9
- package/dist/chunks/{vcs-ce5fknq2.js → credential-a694798e.js} +5 -5
- package/dist/chunks/{vcs-ymz7p2c9.js → credential-a9q6fvpe.js} +3 -3
- package/dist/chunks/{vcs-rnvx41re.js → credential-adsxsvsn.js} +39 -39
- package/dist/chunks/{vcs-x1yq370d.js → credential-aewdbf9n.js} +5 -5
- package/dist/chunks/{vcs-3kdbrncp.js → credential-afmnpta1.js} +5 -5
- package/dist/chunks/{vcs-rvr8sh1j.js → credential-akv12b6r.js} +11 -11
- package/dist/chunks/{vcs-dw6yk4g4.js → credential-aqvqws4e.js} +19 -19
- package/dist/chunks/{vcs-cvc38qdd.js → credential-ay0jyemf.js} +9 -9
- package/dist/chunks/{vcs-ayjs7tqn.js → credential-ayjs7tqn.js} +2 -2
- package/dist/chunks/{vcs-82j41amh.js → credential-b32ceyvm.js} +4 -4
- package/dist/chunks/{vcs-4jvymcr5.js → credential-b40mew42.js} +9 -9
- package/dist/chunks/{vcs-b6vsg801.js → credential-b6vsg801.js} +2 -2
- package/dist/chunks/{vcs-bjhzkqyk.js → credential-bjhzkqyk.js} +1 -1
- package/dist/chunks/{vcs-2v478qgw.js → credential-bkg200nm.js} +32 -32
- package/dist/chunks/{vcs-ph7et01j.js → credential-bkrwx4wv.js} +21 -21
- package/dist/chunks/{vcs-9nxy5s5f.js → credential-bvwfamc4.js} +2 -2
- package/dist/chunks/{vcs-hdfbhhjq.js → credential-bydrqxj7.js} +12 -12
- package/dist/chunks/{vcs-h871ecej.js → credential-c20fjdsp.js} +25 -25
- package/dist/chunks/{vcs-svxc5mk7.js → credential-c6ex42cj.js} +24 -24
- package/dist/chunks/{vcs-jc512s3p.js → credential-ccp6j38y.js} +8 -8
- package/dist/chunks/{vcs-vj5jshb9.js → credential-cdemd7x4.js} +13 -13
- package/dist/chunks/{vcs-sp1n9vrr.js → credential-cgxeq3jz.js} +15 -15
- package/dist/chunks/{vcs-c603at3t.js → credential-cpqaegh5.js} +3 -3
- package/dist/chunks/{vcs-xz2fv4yr.js → credential-cpxtmqx8.js} +23 -23
- package/dist/chunks/{vcs-p5t3gg5q.js → credential-css21g00.js} +11 -11
- package/dist/chunks/{vcs-rvnzb7rd.js → credential-cv1a4phn.js} +8 -8
- package/dist/chunks/{vcs-cwrgdav8.js → credential-cwrgdav8.js} +2 -2
- package/dist/chunks/{vcs-ssfehs1z.js → credential-d2887f8n.js} +4 -4
- package/dist/chunks/{vcs-d4v9tmah.js → credential-d4v9tmah.js} +2 -2
- package/dist/chunks/{vcs-d8p3t516.js → credential-d8p3t516.js} +1 -1
- package/dist/chunks/{vcs-drmc7326.js → credential-de5g5c11.js} +13 -13
- package/dist/chunks/{vcs-7jk9ktw7.js → credential-dn7s2d5x.js} +43 -43
- package/dist/chunks/{vcs-8rgb2cvr.js → credential-dp66fs17.js} +8 -8
- package/dist/chunks/{vcs-mvmschgv.js → credential-ds92e70v.js} +50 -50
- package/dist/chunks/{vcs-dt77769w.js → credential-dt77769w.js} +1 -1
- package/dist/chunks/{vcs-e834z07m.js → credential-e834z07m.js} +1 -1
- package/dist/chunks/{vcs-qgj2y09a.js → credential-e9a5c0m5.js} +5 -5
- package/dist/chunks/{vcs-ehm90j5g.js → credential-eaqt3ydp.js} +6 -6
- package/dist/chunks/{vcs-jbzt06de.js → credential-ehhv8qk8.js} +70 -70
- package/dist/chunks/{vcs-ydsespw1.js → credential-enkpkfwx.js} +8 -8
- package/dist/chunks/{vcs-7vva77b5.js → credential-eqfmrs69.js} +17 -17
- package/dist/chunks/{vcs-acqpw5y2.js → credential-eta5y2w6.js} +33 -30
- package/dist/chunks/{vcs-rq1s007a.js → credential-ewfk0g57.js} +15 -15
- package/dist/chunks/{vcs-f01y088k.js → credential-f01y088k.js} +2 -2
- package/dist/chunks/{vcs-nhenvrcv.js → credential-fdg4ckdw.js} +12 -12
- package/dist/chunks/{vcs-fffv3p7h.js → credential-fffv3p7h.js} +1 -1
- package/dist/chunks/{vcs-4zjf7cy2.js → credential-g0frj7t5.js} +20 -20
- package/dist/chunks/{vcs-1xxgzegw.js → credential-g2774j0n.js} +4 -4
- package/dist/chunks/{vcs-9s8mp9xy.js → credential-g843qhaa.js} +6 -6
- package/dist/chunks/{vcs-ezm7bgte.js → credential-ga2t0gy0.js} +4 -4
- package/dist/chunks/{vcs-rc3e9zq8.js → credential-gbc4t0r5.js} +28 -28
- package/dist/chunks/{vcs-gg8p9cgs.js → credential-gg8p9cgs.js} +3 -3
- package/dist/chunks/{vcs-5qx92zct.js → credential-gn5p3jxd.js} +34 -34
- package/dist/chunks/credential-grzehpz7.js +18 -0
- package/dist/chunks/{vcs-s3yt9ny0.js → credential-gx0r2313.js} +6 -6
- package/dist/chunks/{vcs-kvkehzzy.js → credential-h0zzzneq.js} +11 -11
- package/dist/chunks/{vcs-sfxc8tsc.js → credential-h48mbjt9.js} +21 -21
- package/dist/chunks/{vcs-s7kyse9r.js → credential-h7d4rbrg.js} +4 -4
- package/dist/chunks/{vcs-x22fevgm.js → credential-h941mtgh.js} +38 -38
- package/dist/chunks/{vcs-sp5gwvgy.js → credential-h9e79qkn.js} +17 -17
- package/dist/chunks/{vcs-qjq7p7j6.js → credential-hcchr7b8.js} +25 -25
- package/dist/chunks/{vcs-hfgk9wzg.js → credential-hfgk9wzg.js} +1 -1
- package/dist/chunks/{vcs-8sqprg4w.js → credential-hftn0tp4.js} +36 -36
- package/dist/chunks/{vcs-m3dz0tc2.js → credential-hgepg6aa.js} +32 -32
- package/dist/chunks/{vcs-kvnh73qb.js → credential-hmddjb5g.js} +11 -11
- package/dist/chunks/{vcs-hpg1pkwy.js → credential-hpg1pkwy.js} +1 -1
- package/dist/chunks/{vcs-hnyptrnw.js → credential-hxfydjz7.js} +34 -33
- package/dist/chunks/{vcs-dzfs5b6c.js → credential-ja21mvjg.js} +8 -8
- package/dist/chunks/{vcs-jfaecv01.js → credential-jfaecv01.js} +1 -1
- package/dist/chunks/{vcs-ede588cb.js → credential-jpfnw9g4.js} +5 -5
- package/dist/chunks/{vcs-jtnps1zs.js → credential-jtnps1zs.js} +2 -2
- package/dist/chunks/{vcs-dxf45bfp.js → credential-jyf5b8xa.js} +24 -24
- package/dist/chunks/{vcs-gcc564ca.js → credential-k1mrsx9s.js} +46 -46
- package/dist/chunks/{vcs-079ccags.js → credential-k2cep7rr.js} +5 -5
- package/dist/chunks/{vcs-k814nvkf.js → credential-k814nvkf.js} +1 -1
- package/dist/chunks/{vcs-9hf7djsb.js → credential-kb5t3ds5.js} +15 -15
- package/dist/chunks/{vcs-8axx4zpa.js → credential-kfj1f8qk.js} +12 -12
- package/dist/chunks/{vcs-pzf76rrq.js → credential-kh6aewdq.js} +32 -32
- package/dist/chunks/{vcs-4ya1zf4j.js → credential-kj0q4yg0.js} +9 -9
- package/dist/chunks/{vcs-2660epmj.js → credential-kj3apbqt.js} +11 -11
- package/dist/chunks/{vcs-d8wf4604.js → credential-kmavkxxp.js} +34 -34
- package/dist/chunks/{vcs-3zm80s7d.js → credential-kmwym1c0.js} +12 -12
- package/dist/chunks/{vcs-vp7nv6ts.js → credential-kn8cv6st.js} +10 -10
- package/dist/chunks/{vcs-mp9ebvmh.js → credential-knajrh1z.js} +12 -12
- package/dist/chunks/{vcs-f3t04jjg.js → credential-kpayrmev.js} +7 -7
- package/dist/chunks/{vcs-kt3bjfbg.js → credential-kt3bjfbg.js} +1 -1
- package/dist/chunks/{vcs-497mjgh5.js → credential-kvceask2.js} +20 -20
- package/dist/chunks/{vcs-r76g6m5d.js → credential-kw2sxjk8.js} +14 -14
- package/dist/chunks/{vcs-m1714858.js → credential-m1714858.js} +1 -1
- package/dist/chunks/{vcs-m9w0rfyh.js → credential-m9w0rfyh.js} +1 -1
- package/dist/chunks/{vcs-jpf9vszk.js → credential-mekz3fys.js} +35 -35
- package/dist/chunks/{vcs-fw6nb5ck.js → credential-mpmbh81r.js} +30 -30
- package/dist/chunks/{vcs-8e8fnv13.js → credential-mqk0aw1r.js} +39 -39
- package/dist/chunks/{vcs-4m86bj6y.js → credential-myztnk54.js} +24 -0
- package/dist/chunks/{vcs-chc0g785.js → credential-n6zcgpz9.js} +5 -5
- package/dist/chunks/{vcs-k6d7f0h0.js → credential-n7n2q093.js} +27 -27
- package/dist/chunks/{vcs-nah043kf.js → credential-nah043kf.js} +1 -1
- package/dist/chunks/{vcs-66rmjjex.js → credential-nb51j40y.js} +22 -22
- package/dist/chunks/{vcs-ym5kwrv0.js → credential-nbqwew1m.js} +30 -30
- package/dist/chunks/{vcs-shhgqsar.js → credential-ncmcp14m.js} +20 -20
- package/dist/chunks/{vcs-t7d5dner.js → credential-ndna58nq.js} +22 -22
- package/dist/chunks/credential-nh4v3znn.js +36 -0
- package/dist/chunks/{vcs-ts41tt44.js → credential-nsr16dad.js} +18 -18
- package/dist/chunks/{vcs-81e513d9.js → credential-nvhxtb15.js} +13 -13
- package/dist/chunks/{vcs-p015t6z3.js → credential-p015t6z3.js} +2 -2
- package/dist/chunks/{vcs-1941k5sj.js → credential-p47swmgp.js} +35 -35
- package/dist/chunks/{vcs-m7xh3h0x.js → credential-p76me67c.js} +4 -4
- package/dist/chunks/{vcs-drvbhkez.js → credential-p7f9amnf.js} +6 -6
- package/dist/chunks/{vcs-axgnp1w7.js → credential-p877pzbq.js} +26 -26
- package/dist/chunks/{vcs-kam05h7r.js → credential-pb73g8ww.js} +29 -29
- package/dist/chunks/{vcs-pknna89w.js → credential-pknna89w.js} +1 -1
- package/dist/chunks/{vcs-zgf2rtvh.js → credential-pkq395za.js} +5 -5
- package/dist/chunks/{vcs-a9qv6y2y.js → credential-pqe3wwk7.js} +32 -32
- package/dist/chunks/{vcs-fg9p65nk.js → credential-prq7xxp2.js} +6 -6
- package/dist/chunks/{vcs-dc473hq1.js → credential-pv1x0yxd.js} +29 -29
- package/dist/chunks/{vcs-eke9g6w2.js → credential-pyb4kdaa.js} +11 -11
- package/dist/chunks/{vcs-3012d813.js → credential-pzc0xwr7.js} +7 -7
- package/dist/chunks/{vcs-2qdnk5gy.js → credential-q25zpt88.js} +4 -4
- package/dist/chunks/{vcs-8cr8ejqg.js → credential-q6q0x75a.js} +8 -8
- package/dist/chunks/{vcs-5xh13x4p.js → credential-q7yr00bv.js} +36 -36
- package/dist/chunks/{vcs-mr1t2pzq.js → credential-q982ceg8.js} +19 -19
- package/dist/chunks/{vcs-q85rya1m.js → credential-qah7t4da.js} +6 -6
- package/dist/chunks/{vcs-27kvnj30.js → credential-qbqmyk35.js} +31 -31
- package/dist/chunks/{vcs-prjhwpt4.js → credential-qmbcd6gr.js} +8 -8
- package/dist/chunks/{vcs-nrtygxmh.js → credential-qnqasnye.js} +6 -6
- package/dist/chunks/{vcs-qp7r0hxv.js → credential-qp7r0hxv.js} +1 -1
- package/dist/chunks/{vcs-7xwxxj51.js → credential-r0br8gdd.js} +45 -45
- package/dist/chunks/{vcs-r0yr0wbs.js → credential-r0yr0wbs.js} +1 -1
- package/dist/chunks/{vcs-r542h3bh.js → credential-r542h3bh.js} +1 -1
- package/dist/chunks/{vcs-f12ryszn.js → credential-r5adr575.js} +12 -12
- package/dist/chunks/{vcs-hq1wfz6f.js → credential-r7yqde16.js} +4 -4
- package/dist/chunks/{vcs-911083wy.js → credential-rann5k8e.js} +15 -15
- package/dist/chunks/{vcs-rb9dy4dg.js → credential-rb9dy4dg.js} +1 -1
- package/dist/chunks/{vcs-jhrp8x7n.js → credential-rfpbm3qw.js} +18 -18
- package/dist/chunks/credential-rgzggw2r.js +33 -0
- package/dist/chunks/{vcs-s1pbznk9.js → credential-rkfzvbfw.js} +20 -20
- package/dist/chunks/{vcs-9d4562qa.js → credential-rny8cxrf.js} +16 -16
- package/dist/chunks/{vcs-rt5dr6hb.js → credential-rt5dr6hb.js} +1 -1
- package/dist/chunks/{vcs-f9v35vn9.js → credential-rvznwq0w.js} +5 -5
- package/dist/chunks/{vcs-hxe8n5wd.js → credential-ryhxbr5y.js} +19 -19
- package/dist/chunks/{vcs-qatsv5dz.js → credential-s32yc23w.js} +25 -25
- package/dist/chunks/{vcs-s7gmm2q3.js → credential-s7gmm2q3.js} +3 -3
- package/dist/chunks/{vcs-s7vmaqmh.js → credential-s95e3gja.js} +16 -16
- package/dist/chunks/{vcs-sa3fpqfw.js → credential-sa3fpqfw.js} +2 -2
- package/dist/chunks/{vcs-g67k3az8.js → credential-sfgq15w8.js} +20 -20
- package/dist/chunks/{vcs-h9cd45gd.js → credential-sgtb1tsv.js} +18 -18
- package/dist/chunks/{vcs-nahhmz6x.js → credential-sjdx0erp.js} +16 -16
- package/dist/chunks/{vcs-sqjzf8x2.js → credential-sqjzf8x2.js} +1 -1
- package/dist/chunks/{vcs-96a4eq0m.js → credential-sv99c60z.js} +27 -27
- package/dist/chunks/{vcs-svcy3p9a.js → credential-svcy3p9a.js} +1 -1
- package/dist/chunks/{vcs-4pnypb5f.js → credential-svtvxt5b.js} +7 -7
- package/dist/chunks/{vcs-bzfazvnd.js → credential-tchnsj1t.js} +18 -18
- package/dist/chunks/{vcs-tczq8hjw.js → credential-tczq8hjw.js} +1 -1
- package/dist/chunks/{vcs-sdv7qrfx.js → credential-td25hne4.js} +8 -8
- package/dist/chunks/{vcs-8f2h6hsz.js → credential-tm2ngzhh.js} +16 -16
- package/dist/chunks/{vcs-jnxh9bnf.js → credential-tmtdn5g8.js} +24 -24
- package/dist/chunks/{vcs-4m6wdh0q.js → credential-tprnqh0m.js} +14 -14
- package/dist/chunks/{vcs-961rs8be.js → credential-ttyt43s1.js} +12 -12
- package/dist/chunks/{vcs-twssxy5n.js → credential-twssxy5n.js} +2 -2
- package/dist/chunks/{vcs-b8zfksyw.js → credential-tx4wcr36.js} +12 -12
- package/dist/chunks/{vcs-803py63b.js → credential-v0myx3m5.js} +47 -47
- package/dist/chunks/{vcs-v2r1d0zg.js → credential-v2r1d0zg.js} +1 -1
- package/dist/chunks/{vcs-ncgj4fsm.js → credential-v5d1a9z0.js} +9 -9
- package/dist/chunks/{vcs-s11q4rn7.js → credential-v6r2mqf1.js} +5 -5
- package/dist/chunks/{vcs-g9c34x6f.js → credential-vcsqhwkn.js} +11 -11
- package/dist/chunks/{vcs-nqnxqd2r.js → credential-ve404jf0.js} +19 -19
- package/dist/chunks/{vcs-dxqpfg1f.js → credential-vekke9ze.js} +80 -80
- package/dist/chunks/{vcs-hqxkkta1.js → credential-vg0erq9k.js} +3 -3
- package/dist/chunks/{vcs-9z9tayqc.js → credential-vjmsebym.js} +9 -9
- package/dist/chunks/{vcs-rramyk5b.js → credential-vn5j9p0e.js} +23 -23
- package/dist/chunks/{vcs-jcqm84fr.js → credential-vrcsa8qx.js} +9 -9
- package/dist/chunks/{vcs-2qr4rt5k.js → credential-vx3jgdek.js} +3 -3
- package/dist/chunks/{vcs-1y89m7wx.js → credential-vz54nt0f.js} +5 -5
- package/dist/chunks/{vcs-8abc36xm.js → credential-w2ycgmrw.js} +48 -48
- package/dist/chunks/{vcs-w3wsvvr9.js → credential-w3wsvvr9.js} +1 -1
- package/dist/chunks/{vcs-wakvkjy4.js → credential-wakvkjy4.js} +1 -1
- package/dist/chunks/{vcs-9a3x2kz4.js → credential-wastx31p.js} +13 -13
- package/dist/chunks/{vcs-k9zkdd2y.js → credential-wby0kqsc.js} +4 -4
- package/dist/chunks/{vcs-wd87259q.js → credential-wd87259q.js} +1 -1
- package/dist/chunks/{vcs-5x47hebm.js → credential-wmesf3ky.js} +12 -12
- package/dist/chunks/{vcs-wnhgecwx.js → credential-wnhgecwx.js} +1 -1
- package/dist/chunks/{vcs-qzze65dp.js → credential-wqrxf969.js} +41 -41
- package/dist/chunks/{vcs-w687dnns.js → credential-wr3re1en.js} +4 -4
- package/dist/chunks/{vcs-c6x7d2ts.js → credential-wtgq8nqm.js} +7 -7
- package/dist/chunks/{vcs-jd4h7jwf.js → credential-wvgdarde.js} +27 -27
- package/dist/chunks/{vcs-3becjr0v.js → credential-x764p0ap.js} +17 -17
- package/dist/chunks/{vcs-9ca4th6x.js → credential-xa9yt4a6.js} +18 -18
- package/dist/chunks/{vcs-bstexjd6.js → credential-xd9cc171.js} +5 -5
- package/dist/chunks/{vcs-y2hjk6xz.js → credential-xj34fqn9.js} +12 -12
- package/dist/chunks/{vcs-rdssdv87.js → credential-xk5nadf4.js} +33 -33
- package/dist/chunks/{vcs-cqnqmmbc.js → credential-xr7azs4w.js} +22 -22
- package/dist/chunks/{vcs-dzcfjmec.js → credential-xrejx9hx.js} +8 -8
- package/dist/chunks/{vcs-n39rwvas.js → credential-xv4zb3hn.js} +1 -1
- package/dist/chunks/{vcs-dcphv4q7.js → credential-y0z85yb7.js} +11 -11
- package/dist/chunks/{vcs-t9rnzgt8.js → credential-y3p8jgcj.js} +9 -9
- package/dist/chunks/{vcs-w3ghn6yx.js → credential-y3r864xm.js} +4 -4
- package/dist/chunks/{vcs-yara3q77.js → credential-yara3q77.js} +2 -2
- package/dist/chunks/{vcs-yb20nhc3.js → credential-yb20nhc3.js} +1 -1
- package/dist/chunks/{vcs-41w1qpn3.js → credential-yb8qqq1e.js} +9 -9
- package/dist/chunks/{vcs-p2esgkzz.js → credential-yr316x9x.js} +3 -3
- package/dist/chunks/{vcs-w2808p42.js → credential-ywm7vzgw.js} +6 -6
- package/dist/chunks/{vcs-bqxvxs63.js → credential-yy93hw4g.js} +34 -34
- package/dist/chunks/{vcs-z38nccrw.js → credential-z38nccrw.js} +1 -1
- package/dist/chunks/{vcs-8dhx12dr.js → credential-z5sv9z4b.js} +14 -14
- package/dist/chunks/{vcs-xcrax9b3.js → credential-z943meh7.js} +22 -22
- package/dist/chunks/{vcs-834xe486.js → credential-z9kzkjwz.js} +9 -9
- package/dist/chunks/{vcs-e515nszc.js → credential-z9m5kdq9.js} +9 -9
- package/dist/chunks/{vcs-vbhy04yp.js → credential-zavmbsdh.js} +8 -8
- package/dist/chunks/{vcs-zac84x8b.js → credential-zbfdjnnn.js} +3 -3
- package/dist/chunks/{vcs-tq4ca257.js → credential-zbkzjvgf.js} +20 -20
- package/dist/chunks/{vcs-56exsq7y.js → credential-zm39794k.js} +14 -14
- package/dist/chunks/{vcs-yg76txfd.js → credential-zp9rf83y.js} +19 -19
- package/dist/chunks/{vcs-kkmrs84d.js → credential-zwmyj4b2.js} +13 -13
- package/dist/chunks/{vcs-k1cjxzzv.js → credential-zyb6xh6k.js} +12 -12
- 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 -91
- package/dist/config/discovery.js +91 -90
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +108 -107
- package/dist/config/plugin/agent.js +122 -121
- package/dist/config/plugin/command.js +220 -219
- package/dist/config/plugin/compaction.js +163 -162
- package/dist/config/plugin/compatibility.js +143 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -122
- package/dist/config/plugin/image.js +122 -121
- package/dist/config/plugin/instruction.js +122 -121
- package/dist/config/plugin/location-watcher.js +124 -123
- package/dist/config/plugin/mcp.js +129 -128
- package/dist/config/plugin/policy.js +124 -123
- package/dist/config/plugin/provider.js +123 -122
- package/dist/config/plugin/reference.js +124 -123
- package/dist/config/plugin/shell.js +122 -121
- package/dist/config/plugin/skill-file.js +139 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +144 -143
- package/dist/config/plugin/snapshot.js +122 -121
- package/dist/config/plugin/source.js +125 -124
- package/dist/config/plugin/tool-output.js +123 -122
- package/dist/config/plugin/websearch.js +121 -120
- package/dist/config/plugin/worktree.js +124 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +88 -87
- package/dist/database/database.js +73 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +6 -0
- package/dist/database/migration.gen.js +56 -55
- package/dist/database/migration.js +58 -57
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +96 -95
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +378 -377
- 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 +102 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +102 -101
- 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 -80
- package/dist/file-access.js +149 -148
- package/dist/file-mutation.js +103 -102
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +87 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +235 -234
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +103 -102
- package/dist/form.js +87 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +96 -95
- package/dist/generate.js +114 -113
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +100 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon-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 +369 -368
- package/dist/instruction-discovery.js +93 -92
- package/dist/instructions/builtins.js +96 -95
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +92 -91
- package/dist/job.js +85 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +80 -79
- package/dist/location-activity.js +167 -166
- package/dist/location-lifecycle.js +143 -142
- package/dist/location-service-map.js +95 -94
- package/dist/location-services.js +366 -365
- package/dist/location.js +96 -95
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +100 -99
- package/dist/mcp/index.js +112 -111
- package/dist/mcp/instructions.js +167 -166
- package/dist/mcp/oauth.js +85 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +99 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +100 -99
- package/dist/model-resolver.js +108 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +109 -108
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +111 -110
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +89 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +148 -147
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +89 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +82 -81
- package/dist/plugin/agent.js +81 -80
- package/dist/plugin/command.js +109 -108
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +228 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +339 -338
- package/dist/plugin/mcp-codemode-defaults.js +1 -1
- package/dist/plugin/models-dev.js +106 -105
- package/dist/plugin/module.js +124 -123
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +139 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +99 -98
- package/dist/plugin/provider/azure.js +122 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +122 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -118
- package/dist/plugin/provider/configured.js +118 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +102 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +104 -103
- package/dist/plugin/provider/gitlab.js +102 -101
- package/dist/plugin/provider/google-vertex.js +119 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +85 -84
- package/dist/plugin/provider/lmstudio.js +131 -130
- package/dist/plugin/provider/local.js +128 -127
- package/dist/plugin/provider/modal.js +101 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +131 -130
- package/dist/plugin/provider/openai-context-caps.js +99 -98
- package/dist/plugin/provider/openai.js +124 -123
- package/dist/plugin/provider/opencode.js +125 -124
- package/dist/plugin/provider/openrouter.js +100 -99
- package/dist/plugin/provider/poe.js +86 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +100 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -120
- package/dist/plugin/provider/vllm.js +131 -130
- package/dist/plugin/provider/xai.js +100 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +172 -171
- package/dist/plugin/sdk.js +83 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +358 -357
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +95 -94
- package/dist/plugin/vcs/hg.js +95 -94
- package/dist/plugin/verbosity.js +102 -101
- package/dist/plugin/warming.js +120 -119
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +2 -2
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +233 -232
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +95 -94
- package/dist/provider.js +106 -105
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -98
- package/dist/reference/instructions.js +95 -94
- package/dist/reference.js +99 -98
- package/dist/repository-cache.js +89 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +104 -103
- package/dist/rpc.js +95 -94
- package/dist/schedule/sql.js +11 -0
- package/dist/schedule.js +556 -0
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +121 -120
- package/dist/session/command.js +81 -80
- package/dist/session/compaction.js +163 -162
- package/dist/session/context.js +185 -184
- package/dist/session/diff.js +97 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +229 -228
- package/dist/session/execution.js +153 -152
- package/dist/session/generate.js +189 -188
- package/dist/session/history.js +128 -127
- package/dist/session/inbox.js +139 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +84 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +133 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +156 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +153 -152
- package/dist/session/projector.js +133 -132
- package/dist/session/prompt.js +141 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +131 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +239 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +109 -108
- package/dist/session/runner/publish-llm-event.js +142 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +155 -154
- package/dist/session/runner/to-llm-message.js +129 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +173 -172
- package/dist/session/shell.js +136 -135
- package/dist/session/skill.js +140 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +80 -79
- package/dist/session/store.js +134 -133
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +216 -215
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +193 -192
- package/dist/session/to-session-error.js +141 -140
- package/dist/session/transfer.js +225 -224
- package/dist/session/usage.js +1 -1
- package/dist/session.js +220 -219
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +136 -135
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +144 -143
- package/dist/skill.js +143 -142
- package/dist/snapshot.js +98 -97
- 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 +168 -167
- package/dist/tool/plugin/edit.js +157 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +161 -160
- package/dist/tool/plugin/grep.js +159 -158
- package/dist/tool/plugin/mcp-resource.js +155 -154
- package/dist/tool/plugin/opencode.js +154 -153
- package/dist/tool/plugin/patch.js +159 -158
- package/dist/tool/plugin/question.js +139 -138
- package/dist/tool/plugin/read.js +162 -161
- package/dist/tool/plugin/shell.js +223 -222
- package/dist/tool/plugin/skill.js +146 -145
- package/dist/tool/plugin/subagent.js +227 -226
- package/dist/tool/plugin/todo.js +146 -145
- package/dist/tool/plugin/webfetch.js +146 -145
- package/dist/tool/plugin/websearch.js +142 -141
- package/dist/tool/plugin/write.js +157 -156
- package/dist/tool/read-filesystem.js +109 -108
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/database/migration/20261026223005_schedule.d.ts +3 -0
- package/dist/types/schedule/sql.d.ts +298 -0
- package/dist/types/schedule.d.ts +129 -0
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/usage-limits.js +92 -91
- 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 +5 -5
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +101 -100
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +100 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +92 -91
- package/dist/voice.js +91 -90
- package/dist/websearch.js +85 -84
- package/dist/wellknown/plugin.js +83 -82
- package/dist/wellknown.js +88 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +89 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +98 -97
- package/dist/worktree.js +103 -102
- package/package.json +8 -8
- package/dist/chunks/vcs-5272mb2r.js +0 -257
- package/dist/chunks/vcs-ev660z6k.js +0 -18
- /package/dist/chunks/{vcs-0qkdqm5v.js → credential-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{vcs-0zkw76rk.js → credential-0zkw76rk.js} +0 -0
- /package/dist/chunks/{vcs-17cy0kzp.js → credential-17cy0kzp.js} +0 -0
- /package/dist/chunks/{vcs-1cnp2v09.js → credential-1cnp2v09.js} +0 -0
- /package/dist/chunks/{vcs-1jakw16s.js → credential-1jakw16s.js} +0 -0
- /package/dist/chunks/{vcs-24dcb14g.js → credential-24dcb14g.js} +0 -0
- /package/dist/chunks/{vcs-2710q6r3.js → credential-2710q6r3.js} +0 -0
- /package/dist/chunks/{vcs-2bv980vf.js → credential-2bv980vf.js} +0 -0
- /package/dist/chunks/{vcs-2c3vjs8z.js → credential-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{vcs-359p4xyc.js → credential-359p4xyc.js} +0 -0
- /package/dist/chunks/{vcs-3asan66x.js → credential-3asan66x.js} +0 -0
- /package/dist/chunks/{vcs-3v8g72cx.js → credential-3v8g72cx.js} +0 -0
- /package/dist/chunks/{vcs-3wcehsnq.js → credential-3wcehsnq.js} +0 -0
- /package/dist/chunks/{vcs-43n2bw4t.js → credential-43n2bw4t.js} +0 -0
- /package/dist/chunks/{vcs-4knz6hnm.js → credential-4knz6hnm.js} +0 -0
- /package/dist/chunks/{vcs-4vcrnpx2.js → credential-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{vcs-4y7fprxs.js → credential-4y7fprxs.js} +0 -0
- /package/dist/chunks/{vcs-53557ph1.js → credential-53557ph1.js} +0 -0
- /package/dist/chunks/{vcs-550bvhaj.js → credential-550bvhaj.js} +0 -0
- /package/dist/chunks/{vcs-5w3e23ze.js → credential-5w3e23ze.js} +0 -0
- /package/dist/chunks/{vcs-6prwharc.js → credential-6prwharc.js} +0 -0
- /package/dist/chunks/{vcs-6q2bdcd1.js → credential-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{vcs-7akdwqpd.js → credential-7akdwqpd.js} +0 -0
- /package/dist/chunks/{vcs-7m9af43g.js → credential-7m9af43g.js} +0 -0
- /package/dist/chunks/{vcs-822emrt2.js → credential-822emrt2.js} +0 -0
- /package/dist/chunks/{vcs-84wd9syh.js → credential-84wd9syh.js} +0 -0
- /package/dist/chunks/{vcs-88xbtdfr.js → credential-88xbtdfr.js} +0 -0
- /package/dist/chunks/{vcs-8n3pysct.js → credential-8n3pysct.js} +0 -0
- /package/dist/chunks/{vcs-8wj87zfr.js → credential-8wj87zfr.js} +0 -0
- /package/dist/chunks/{vcs-9a4afbnw.js → credential-9a4afbnw.js} +0 -0
- /package/dist/chunks/{vcs-9rqn6x4v.js → credential-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{vcs-a058387c.js → credential-a058387c.js} +0 -0
- /package/dist/chunks/{vcs-a6k6eb26.js → credential-a6k6eb26.js} +0 -0
- /package/dist/chunks/{vcs-af5trqkr.js → credential-af5trqkr.js} +0 -0
- /package/dist/chunks/{vcs-afrmfg78.js → credential-afrmfg78.js} +0 -0
- /package/dist/chunks/{vcs-aqzs7mqg.js → credential-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{vcs-atq7p7m5.js → credential-atq7p7m5.js} +0 -0
- /package/dist/chunks/{vcs-beh6qq61.js → credential-beh6qq61.js} +0 -0
- /package/dist/chunks/{vcs-bkyjaxrp.js → credential-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{vcs-bmr6ed5q.js → credential-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{vcs-cf4snx6d.js → credential-cf4snx6d.js} +0 -0
- /package/dist/chunks/{vcs-cqv5kn06.js → credential-cqv5kn06.js} +0 -0
- /package/dist/chunks/{vcs-cvy3z8tj.js → credential-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{vcs-d9fn303g.js → credential-d9fn303g.js} +0 -0
- /package/dist/chunks/{vcs-d9jj8t3e.js → credential-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{vcs-dajrwvna.js → credential-dajrwvna.js} +0 -0
- /package/dist/chunks/{vcs-dap0rakb.js → credential-dap0rakb.js} +0 -0
- /package/dist/chunks/{vcs-df08tz66.js → credential-df08tz66.js} +0 -0
- /package/dist/chunks/{vcs-dy18nga0.js → credential-dy18nga0.js} +0 -0
- /package/dist/chunks/{vcs-e5kj55wp.js → credential-e5kj55wp.js} +0 -0
- /package/dist/chunks/{vcs-e73j6tqm.js → credential-e73j6tqm.js} +0 -0
- /package/dist/chunks/{vcs-ec1grn59.js → credential-ec1grn59.js} +0 -0
- /package/dist/chunks/{vcs-eh3zwz77.js → credential-eh3zwz77.js} +0 -0
- /package/dist/chunks/{vcs-emrn6kk6.js → credential-emrn6kk6.js} +0 -0
- /package/dist/chunks/{vcs-f0mxakyp.js → credential-f0mxakyp.js} +0 -0
- /package/dist/chunks/{vcs-f6n9ztr4.js → credential-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{vcs-faypxj3z.js → credential-faypxj3z.js} +0 -0
- /package/dist/chunks/{vcs-fd410y7t.js → credential-fd410y7t.js} +0 -0
- /package/dist/chunks/{vcs-fkpq3x5p.js → credential-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{vcs-g4wezp1m.js → credential-g4wezp1m.js} +0 -0
- /package/dist/chunks/{vcs-g86h250q.js → credential-g86h250q.js} +0 -0
- /package/dist/chunks/{vcs-gebd4c9n.js → credential-gebd4c9n.js} +0 -0
- /package/dist/chunks/{vcs-gftt206x.js → credential-gftt206x.js} +0 -0
- /package/dist/chunks/{vcs-hcxmzztb.js → credential-hcxmzztb.js} +0 -0
- /package/dist/chunks/{vcs-hk9envan.js → credential-hk9envan.js} +0 -0
- /package/dist/chunks/{vcs-j2ntwpah.js → credential-j2ntwpah.js} +0 -0
- /package/dist/chunks/{vcs-j5zkgpj8.js → credential-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{vcs-jjkms2e6.js → credential-jjkms2e6.js} +0 -0
- /package/dist/chunks/{vcs-jr7sbwjy.js → credential-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{vcs-jwfs4k6c.js → credential-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{vcs-jwr30sdr.js → credential-jwr30sdr.js} +0 -0
- /package/dist/chunks/{vcs-jze0r7bz.js → credential-jze0r7bz.js} +0 -0
- /package/dist/chunks/{vcs-jzg6c2d5.js → credential-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{vcs-m18g726c.js → credential-m18g726c.js} +0 -0
- /package/dist/chunks/{vcs-mp448xyj.js → credential-mp448xyj.js} +0 -0
- /package/dist/chunks/{vcs-msx8hqn2.js → credential-msx8hqn2.js} +0 -0
- /package/dist/chunks/{vcs-n05xt0ee.js → credential-n05xt0ee.js} +0 -0
- /package/dist/chunks/{vcs-n3j8tn72.js → credential-n3j8tn72.js} +0 -0
- /package/dist/chunks/{vcs-ncqqe42p.js → credential-ncqqe42p.js} +0 -0
- /package/dist/chunks/{vcs-njntx4h6.js → credential-njntx4h6.js} +0 -0
- /package/dist/chunks/{vcs-p71gwv9c.js → credential-p71gwv9c.js} +0 -0
- /package/dist/chunks/{vcs-q3sfg36h.js → credential-q3sfg36h.js} +0 -0
- /package/dist/chunks/{vcs-q74kybfr.js → credential-q74kybfr.js} +0 -0
- /package/dist/chunks/{vcs-qaymkmh1.js → credential-qaymkmh1.js} +0 -0
- /package/dist/chunks/{vcs-qb87gjwd.js → credential-qb87gjwd.js} +0 -0
- /package/dist/chunks/{vcs-qfa1cgps.js → credential-qfa1cgps.js} +0 -0
- /package/dist/chunks/{vcs-qg3g05ea.js → credential-qg3g05ea.js} +0 -0
- /package/dist/chunks/{vcs-qrg20bc0.js → credential-qrg20bc0.js} +0 -0
- /package/dist/chunks/{vcs-rcb2kzg1.js → credential-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{vcs-sdp7kfr6.js → credential-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{vcs-ssg3fenm.js → credential-ssg3fenm.js} +0 -0
- /package/dist/chunks/{vcs-ve7vex1e.js → credential-ve7vex1e.js} +0 -0
- /package/dist/chunks/{vcs-w803qqfp.js → credential-w803qqfp.js} +0 -0
- /package/dist/chunks/{vcs-wc3fc9cn.js → credential-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{vcs-wer8tq1h.js → credential-wer8tq1h.js} +0 -0
- /package/dist/chunks/{vcs-wtztk69x.js → credential-wtztk69x.js} +0 -0
- /package/dist/chunks/{vcs-x0ckcb58.js → credential-x0ckcb58.js} +0 -0
- /package/dist/chunks/{vcs-x61499pn.js → credential-x61499pn.js} +0 -0
- /package/dist/chunks/{vcs-y44na4kk.js → credential-y44na4kk.js} +0 -0
- /package/dist/chunks/{vcs-y8f7s663.js → credential-y8f7s663.js} +0 -0
- /package/dist/chunks/{vcs-ygaqb7jw.js → credential-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{vcs-z5v4ffb3.js → credential-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{vcs-z9919s4g.js → credential-z9919s4g.js} +0 -0
package/dist/schedule.js
ADDED
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
import"./chunks/credential-f0mxakyp.js";
|
|
2
|
+
import"./chunks/credential-emrn6kk6.js";
|
|
3
|
+
import"./chunks/credential-w3wsvvr9.js";
|
|
4
|
+
import"./chunks/credential-7bmhse3q.js";
|
|
5
|
+
import"./chunks/credential-cf4snx6d.js";
|
|
6
|
+
import"./chunks/credential-822emrt2.js";
|
|
7
|
+
import"./chunks/credential-wd87259q.js";
|
|
8
|
+
import"./chunks/credential-m9w0rfyh.js";
|
|
9
|
+
import"./chunks/credential-kpayrmev.js";
|
|
10
|
+
import"./chunks/credential-0f3jx7vk.js";
|
|
11
|
+
import"./chunks/credential-xv4zb3hn.js";
|
|
12
|
+
import"./chunks/credential-cpqaegh5.js";
|
|
13
|
+
import"./chunks/credential-8ygr8xs6.js";
|
|
14
|
+
import"./chunks/credential-0zkw76rk.js";
|
|
15
|
+
import"./chunks/credential-jzg6c2d5.js";
|
|
16
|
+
import"./chunks/credential-q3sfg36h.js";
|
|
17
|
+
import"./chunks/credential-1cnp2v09.js";
|
|
18
|
+
import"./chunks/credential-rcb2kzg1.js";
|
|
19
|
+
import"./chunks/credential-msx8hqn2.js";
|
|
20
|
+
import"./chunks/credential-bkyjaxrp.js";
|
|
21
|
+
import"./chunks/credential-g86h250q.js";
|
|
22
|
+
import"./chunks/credential-jr7sbwjy.js";
|
|
23
|
+
import"./chunks/credential-7m9af43g.js";
|
|
24
|
+
import"./chunks/credential-j2ntwpah.js";
|
|
25
|
+
import"./chunks/credential-njntx4h6.js";
|
|
26
|
+
import"./chunks/credential-qrg20bc0.js";
|
|
27
|
+
import"./chunks/credential-z9919s4g.js";
|
|
28
|
+
import"./chunks/credential-43n2bw4t.js";
|
|
29
|
+
import"./chunks/credential-n3j8tn72.js";
|
|
30
|
+
import"./chunks/credential-d9jj8t3e.js";
|
|
31
|
+
import"./chunks/credential-fd410y7t.js";
|
|
32
|
+
import"./chunks/credential-e5kj55wp.js";
|
|
33
|
+
import"./chunks/credential-f6n9ztr4.js";
|
|
34
|
+
import"./chunks/credential-q74kybfr.js";
|
|
35
|
+
import"./chunks/credential-53557ph1.js";
|
|
36
|
+
import"./chunks/credential-7akdwqpd.js";
|
|
37
|
+
import"./chunks/credential-wer8tq1h.js";
|
|
38
|
+
import"./chunks/credential-wtztk69x.js";
|
|
39
|
+
import"./chunks/credential-ssg3fenm.js";
|
|
40
|
+
import"./chunks/credential-2c3vjs8z.js";
|
|
41
|
+
import"./chunks/credential-17cy0kzp.js";
|
|
42
|
+
import"./chunks/credential-hk9envan.js";
|
|
43
|
+
import"./chunks/credential-w803qqfp.js";
|
|
44
|
+
import"./chunks/credential-jwfs4k6c.js";
|
|
45
|
+
import"./chunks/credential-mp448xyj.js";
|
|
46
|
+
import"./chunks/credential-aqzs7mqg.js";
|
|
47
|
+
import"./chunks/credential-ygaqb7jw.js";
|
|
48
|
+
import"./chunks/credential-8n3pysct.js";
|
|
49
|
+
import"./chunks/credential-d9fn303g.js";
|
|
50
|
+
import"./chunks/credential-cvy3z8tj.js";
|
|
51
|
+
import"./chunks/credential-9a4afbnw.js";
|
|
52
|
+
import"./chunks/credential-n05xt0ee.js";
|
|
53
|
+
import"./chunks/credential-sdp7kfr6.js";
|
|
54
|
+
import"./chunks/credential-a6k6eb26.js";
|
|
55
|
+
import"./chunks/credential-4knz6hnm.js";
|
|
56
|
+
import"./chunks/credential-df08tz66.js";
|
|
57
|
+
import"./chunks/credential-bmr6ed5q.js";
|
|
58
|
+
import"./chunks/credential-atq7p7m5.js";
|
|
59
|
+
import"./chunks/credential-qb87gjwd.js";
|
|
60
|
+
import"./chunks/credential-359p4xyc.js";
|
|
61
|
+
import"./chunks/credential-y8f7s663.js";
|
|
62
|
+
import"./chunks/credential-8wj87zfr.js";
|
|
63
|
+
import"./chunks/credential-84wd9syh.js";
|
|
64
|
+
import"./chunks/credential-m18g726c.js";
|
|
65
|
+
import"./chunks/credential-cqv5kn06.js";
|
|
66
|
+
import"./chunks/credential-jwr30sdr.js";
|
|
67
|
+
import"./chunks/credential-fkpq3x5p.js";
|
|
68
|
+
import"./chunks/credential-5w3e23ze.js";
|
|
69
|
+
import"./chunks/credential-nh4v3znn.js";
|
|
70
|
+
import"./chunks/credential-5p72pk0j.js";
|
|
71
|
+
import"./chunks/credential-myztnk54.js";
|
|
72
|
+
import"./chunks/credential-yr316x9x.js";
|
|
73
|
+
import {
|
|
74
|
+
Service86,
|
|
75
|
+
node90
|
|
76
|
+
} from "./chunks/credential-3kkx4n85.js";
|
|
77
|
+
import"./chunks/credential-2710q6r3.js";
|
|
78
|
+
import"./chunks/credential-8jztxfpf.js";
|
|
79
|
+
import"./chunks/credential-tx4wcr36.js";
|
|
80
|
+
import"./chunks/credential-qfa1cgps.js";
|
|
81
|
+
import"./chunks/credential-pknna89w.js";
|
|
82
|
+
import"./chunks/credential-m1714858.js";
|
|
83
|
+
import"./chunks/credential-nbqwew1m.js";
|
|
84
|
+
import"./chunks/credential-88xbtdfr.js";
|
|
85
|
+
import"./chunks/credential-ncqqe42p.js";
|
|
86
|
+
import"./chunks/credential-rfpbm3qw.js";
|
|
87
|
+
import"./chunks/credential-z5v4ffb3.js";
|
|
88
|
+
import"./chunks/credential-rb9dy4dg.js";
|
|
89
|
+
import"./chunks/credential-qaymkmh1.js";
|
|
90
|
+
import"./chunks/credential-sa3fpqfw.js";
|
|
91
|
+
import"./chunks/credential-xj34fqn9.js";
|
|
92
|
+
import"./chunks/credential-svtvxt5b.js";
|
|
93
|
+
import"./chunks/credential-wakvkjy4.js";
|
|
94
|
+
import"./chunks/credential-034tev2y.js";
|
|
95
|
+
import"./chunks/credential-yara3q77.js";
|
|
96
|
+
import"./chunks/credential-ayjs7tqn.js";
|
|
97
|
+
import"./chunks/credential-gn5p3jxd.js";
|
|
98
|
+
import"./chunks/credential-tm2ngzhh.js";
|
|
99
|
+
import"./chunks/credential-7w2ypzdf.js";
|
|
100
|
+
import"./chunks/credential-h7d4rbrg.js";
|
|
101
|
+
import"./chunks/credential-dp66fs17.js";
|
|
102
|
+
import"./chunks/credential-wtgq8nqm.js";
|
|
103
|
+
import"./chunks/credential-f01y088k.js";
|
|
104
|
+
import"./chunks/credential-5zrxpy3q.js";
|
|
105
|
+
import"./chunks/credential-afmnpta1.js";
|
|
106
|
+
import"./chunks/credential-dt77769w.js";
|
|
107
|
+
import"./chunks/credential-204s3925.js";
|
|
108
|
+
import"./chunks/credential-bjhzkqyk.js";
|
|
109
|
+
import"./chunks/credential-5afpsjak.js";
|
|
110
|
+
import"./chunks/credential-c20fjdsp.js";
|
|
111
|
+
import"./chunks/credential-eta5y2w6.js";
|
|
112
|
+
import"./chunks/credential-yy93hw4g.js";
|
|
113
|
+
import"./chunks/credential-q25zpt88.js";
|
|
114
|
+
import"./chunks/credential-14b1eg4m.js";
|
|
115
|
+
import"./chunks/credential-k2cep7rr.js";
|
|
116
|
+
import"./chunks/credential-1x2knyw4.js";
|
|
117
|
+
import"./chunks/credential-3hepkmqq.js";
|
|
118
|
+
import"./chunks/credential-4g6brmvj.js";
|
|
119
|
+
import"./chunks/credential-z943meh7.js";
|
|
120
|
+
import {
|
|
121
|
+
latest2,
|
|
122
|
+
Service59
|
|
123
|
+
} from "./chunks/credential-w2ycgmrw.js";
|
|
124
|
+
import {
|
|
125
|
+
Service53,
|
|
126
|
+
node55
|
|
127
|
+
} from "./chunks/credential-qah7t4da.js";
|
|
128
|
+
import"./chunks/credential-vx3jgdek.js";
|
|
129
|
+
import"./chunks/credential-ec1grn59.js";
|
|
130
|
+
import {
|
|
131
|
+
SessionMessage2
|
|
132
|
+
} from "./chunks/credential-gftt206x.js";
|
|
133
|
+
import"./chunks/credential-b6vsg801.js";
|
|
134
|
+
import {
|
|
135
|
+
SessionInboxTable2
|
|
136
|
+
} from "./chunks/credential-gg8p9cgs.js";
|
|
137
|
+
import"./chunks/credential-prq7xxp2.js";
|
|
138
|
+
import"./chunks/credential-g843qhaa.js";
|
|
139
|
+
import"./chunks/credential-gx0r2313.js";
|
|
140
|
+
import"./chunks/credential-1kn6jdkn.js";
|
|
141
|
+
import"./chunks/credential-5x26af84.js";
|
|
142
|
+
import"./chunks/credential-v2r1d0zg.js";
|
|
143
|
+
import"./chunks/credential-b40mew42.js";
|
|
144
|
+
import"./chunks/credential-hcchr7b8.js";
|
|
145
|
+
import"./chunks/credential-pyb4kdaa.js";
|
|
146
|
+
import"./chunks/credential-gebd4c9n.js";
|
|
147
|
+
import"./chunks/credential-rkfzvbfw.js";
|
|
148
|
+
import"./chunks/credential-y0z85yb7.js";
|
|
149
|
+
import"./chunks/credential-27bs79w9.js";
|
|
150
|
+
import"./chunks/credential-knajrh1z.js";
|
|
151
|
+
import"./chunks/credential-sjdx0erp.js";
|
|
152
|
+
import"./chunks/credential-d2887f8n.js";
|
|
153
|
+
import"./chunks/credential-p76me67c.js";
|
|
154
|
+
import"./chunks/credential-xa9yt4a6.js";
|
|
155
|
+
import"./chunks/credential-z38nccrw.js";
|
|
156
|
+
import"./chunks/credential-1ep2p91f.js";
|
|
157
|
+
import"./chunks/credential-8as8ktgx.js";
|
|
158
|
+
import"./chunks/credential-zavmbsdh.js";
|
|
159
|
+
import"./chunks/credential-ds92e70v.js";
|
|
160
|
+
import"./chunks/credential-1jakw16s.js";
|
|
161
|
+
import"./chunks/credential-kfj1f8qk.js";
|
|
162
|
+
import"./chunks/credential-9wn23waw.js";
|
|
163
|
+
import"./chunks/credential-1r71ewmy.js";
|
|
164
|
+
import"./chunks/credential-rvznwq0w.js";
|
|
165
|
+
import {
|
|
166
|
+
Service49,
|
|
167
|
+
node52
|
|
168
|
+
} from "./chunks/credential-6zswxkh0.js";
|
|
169
|
+
import"./chunks/credential-grzehpz7.js";
|
|
170
|
+
import"./chunks/credential-fffv3p7h.js";
|
|
171
|
+
import"./chunks/credential-kn8cv6st.js";
|
|
172
|
+
import"./chunks/credential-pb73g8ww.js";
|
|
173
|
+
import"./chunks/credential-zwmyj4b2.js";
|
|
174
|
+
import"./chunks/credential-svcy3p9a.js";
|
|
175
|
+
import"./chunks/credential-jtnps1zs.js";
|
|
176
|
+
import"./chunks/credential-cwrgdav8.js";
|
|
177
|
+
import"./chunks/credential-twssxy5n.js";
|
|
178
|
+
import"./chunks/credential-73s9ngde.js";
|
|
179
|
+
import"./chunks/credential-faypxj3z.js";
|
|
180
|
+
import"./chunks/credential-gbc4t0r5.js";
|
|
181
|
+
import"./chunks/credential-c6ex42cj.js";
|
|
182
|
+
import"./chunks/credential-r0br8gdd.js";
|
|
183
|
+
import"./chunks/credential-4pyp9zr9.js";
|
|
184
|
+
import"./chunks/credential-jfaecv01.js";
|
|
185
|
+
import"./chunks/credential-s7gmm2q3.js";
|
|
186
|
+
import"./chunks/credential-7vfr41g1.js";
|
|
187
|
+
import"./chunks/credential-tmtdn5g8.js";
|
|
188
|
+
import"./chunks/credential-tczq8hjw.js";
|
|
189
|
+
import"./chunks/credential-971htg5h.js";
|
|
190
|
+
import"./chunks/credential-90zstvax.js";
|
|
191
|
+
import"./chunks/credential-kw2sxjk8.js";
|
|
192
|
+
import"./chunks/credential-76cb1hcw.js";
|
|
193
|
+
import"./chunks/credential-24fnnd1e.js";
|
|
194
|
+
import"./chunks/credential-9tsqrg4s.js";
|
|
195
|
+
import"./chunks/credential-kb5t3ds5.js";
|
|
196
|
+
import"./chunks/credential-h941mtgh.js";
|
|
197
|
+
import"./chunks/credential-sgtb1tsv.js";
|
|
198
|
+
import"./chunks/credential-xd9cc171.js";
|
|
199
|
+
import"./chunks/credential-vn5j9p0e.js";
|
|
200
|
+
import"./chunks/credential-qbqmyk35.js";
|
|
201
|
+
import"./chunks/credential-wmesf3ky.js";
|
|
202
|
+
import"./chunks/credential-tchnsj1t.js";
|
|
203
|
+
import"./chunks/credential-rny8cxrf.js";
|
|
204
|
+
import"./chunks/credential-3stf93zb.js";
|
|
205
|
+
import"./chunks/credential-3nnrz6f6.js";
|
|
206
|
+
import"./chunks/credential-jze0r7bz.js";
|
|
207
|
+
import"./chunks/credential-p015t6z3.js";
|
|
208
|
+
import"./chunks/credential-7fn4z29d.js";
|
|
209
|
+
import"./chunks/credential-hfgk9wzg.js";
|
|
210
|
+
import"./chunks/credential-9pfnqqwg.js";
|
|
211
|
+
import"./chunks/credential-hxfydjz7.js";
|
|
212
|
+
import"./chunks/credential-5qz8cxb6.js";
|
|
213
|
+
import"./chunks/credential-wnhgecwx.js";
|
|
214
|
+
import"./chunks/credential-3tfc273a.js";
|
|
215
|
+
import"./chunks/credential-0e3a0p0e.js";
|
|
216
|
+
import"./chunks/credential-q6q0x75a.js";
|
|
217
|
+
import"./chunks/credential-kj0q4yg0.js";
|
|
218
|
+
import"./chunks/credential-3g0vgwnf.js";
|
|
219
|
+
import"./chunks/credential-k814nvkf.js";
|
|
220
|
+
import"./chunks/credential-81tzp97y.js";
|
|
221
|
+
import"./chunks/credential-1agjqqwc.js";
|
|
222
|
+
import"./chunks/credential-aqvqws4e.js";
|
|
223
|
+
import"./chunks/credential-ryhxbr5y.js";
|
|
224
|
+
import"./chunks/credential-ccp6j38y.js";
|
|
225
|
+
import"./chunks/credential-k1mrsx9s.js";
|
|
226
|
+
import"./chunks/credential-yb8qqq1e.js";
|
|
227
|
+
import"./chunks/credential-y3p8jgcj.js";
|
|
228
|
+
import"./chunks/credential-kmavkxxp.js";
|
|
229
|
+
import"./chunks/credential-44j71sge.js";
|
|
230
|
+
import {
|
|
231
|
+
Service28,
|
|
232
|
+
node31
|
|
233
|
+
} from "./chunks/credential-vekke9ze.js";
|
|
234
|
+
import {
|
|
235
|
+
ScheduleTable2
|
|
236
|
+
} from "./chunks/credential-rgzggw2r.js";
|
|
237
|
+
import {
|
|
238
|
+
__export
|
|
239
|
+
} from "./chunks/credential-9rqn6x4v.js";
|
|
240
|
+
|
|
241
|
+
// src/schedule.ts
|
|
242
|
+
var exports_schedule = {};
|
|
243
|
+
__export(exports_schedule, {
|
|
244
|
+
CreateInput: () => CreateInput,
|
|
245
|
+
DisabledError: () => DisabledError,
|
|
246
|
+
ID: () => ID,
|
|
247
|
+
Info: () => Info,
|
|
248
|
+
InvalidError: () => InvalidError,
|
|
249
|
+
NotFoundError: () => NotFoundError,
|
|
250
|
+
Schedule: () => exports_schedule,
|
|
251
|
+
Service: () => Service,
|
|
252
|
+
node: () => node
|
|
253
|
+
});
|
|
254
|
+
import { and, asc, eq, gt, isNull, lte, min, or } from "drizzle-orm";
|
|
255
|
+
import { Cause, Clock, Context, Cron, DateTime, Effect, Latch, Layer, Option, Result, Schema } from "effect";
|
|
256
|
+
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
257
|
+
import { Schedule as ScheduleSchema } from "@opencode/schema/schedule";
|
|
258
|
+
var ID = ScheduleSchema.ID;
|
|
259
|
+
var Info = ScheduleSchema.Info;
|
|
260
|
+
var CreateInput = ScheduleSchema.CreateInput;
|
|
261
|
+
|
|
262
|
+
class NotFoundError extends Schema.TaggedError()("Schedule.NotFoundError", {
|
|
263
|
+
scheduleID: ID
|
|
264
|
+
}) {
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
class InvalidError extends Schema.TaggedError()("Schedule.InvalidError", {
|
|
268
|
+
reason: Schema.String
|
|
269
|
+
}) {
|
|
270
|
+
get message() {
|
|
271
|
+
return this.reason;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
class DisabledError extends Schema.TaggedError()("Schedule.DisabledError", {}) {
|
|
276
|
+
get message() {
|
|
277
|
+
return "Scheduled tasks are disabled; set experimental.schedules in config";
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
class Service extends Context.Service()("@opencode/Schedule") {
|
|
282
|
+
}
|
|
283
|
+
var MINUTE = 60000;
|
|
284
|
+
var HOUR = 60 * MINUTE;
|
|
285
|
+
var MIN_INTERVAL = MINUTE;
|
|
286
|
+
var LATE_AFTER = 60000;
|
|
287
|
+
var MAX_SLEEP = 30000;
|
|
288
|
+
var DISABLED_RETRY = HOUR;
|
|
289
|
+
var FAILED_RETRY = 5 * MINUTE;
|
|
290
|
+
var duration = (value) => Option.match(ScheduleSchema.durationMillis(value), {
|
|
291
|
+
onNone: () => Effect.fail(new InvalidError({ reason: `Invalid duration: ${value}` })),
|
|
292
|
+
onSome: (millis) => millis > 0 ? Effect.succeed(millis) : Effect.fail(new InvalidError({ reason: `Duration must be positive: ${value}` }))
|
|
293
|
+
});
|
|
294
|
+
var millis = (value) => Option.getOrThrowWith(ScheduleSchema.durationMillis(value), () => new Error(`Invalid duration: ${value}`));
|
|
295
|
+
var OFFSET = /\d(?:z|[+-]\d{2}:?\d{2})$/i;
|
|
296
|
+
var parseAt = (input, zone) => Option.map(OFFSET.test(input) ? DateTime.make(input) : DateTime.makeZoned(input, { timeZone: zone, adjustForTimeZone: true }), DateTime.toEpochMillis);
|
|
297
|
+
var cronNext = Option.liftThrowable(Cron.next);
|
|
298
|
+
var nextCron = (cron, now, from = now) => {
|
|
299
|
+
const next = cronNext(cron, new Date(from));
|
|
300
|
+
if (Option.isNone(next))
|
|
301
|
+
return;
|
|
302
|
+
const at = next.value.getTime();
|
|
303
|
+
return at > now ? at : nextCron(cron, now, at + HOUR);
|
|
304
|
+
};
|
|
305
|
+
var following = (row, now) => {
|
|
306
|
+
switch (row.when.type) {
|
|
307
|
+
case "in":
|
|
308
|
+
case "at":
|
|
309
|
+
return;
|
|
310
|
+
case "every": {
|
|
311
|
+
const every = millis(row.when.every);
|
|
312
|
+
const due = row.next_due_at ?? now;
|
|
313
|
+
return due + (Math.floor((now - due) / every) + 1) * every;
|
|
314
|
+
}
|
|
315
|
+
case "cron":
|
|
316
|
+
return nextCron(Cron.parseUnsafe(row.when.cron, row.tz), now);
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
var finished = (row, next, remaining) => next === undefined || remaining !== null && remaining <= 0 || row.ends_at !== null && next > row.ends_at;
|
|
320
|
+
var optionalTime = (value) => value === null ? undefined : DateTime.makeUnsafe(value);
|
|
321
|
+
var toInfo = (row) => ({
|
|
322
|
+
id: row.id,
|
|
323
|
+
sessionID: row.session_id ?? undefined,
|
|
324
|
+
name: row.name ?? undefined,
|
|
325
|
+
when: row.when,
|
|
326
|
+
tz: row.tz,
|
|
327
|
+
action: row.action,
|
|
328
|
+
status: row.status,
|
|
329
|
+
nextDueAt: optionalTime(row.next_due_at),
|
|
330
|
+
endsAt: optionalTime(row.ends_at),
|
|
331
|
+
remainingRuns: row.remaining_runs ?? undefined,
|
|
332
|
+
runCount: row.run_count,
|
|
333
|
+
lastFiredAt: optionalTime(row.last_fired_at),
|
|
334
|
+
lastOutcome: row.last_outcome ?? undefined,
|
|
335
|
+
time: { created: DateTime.makeUnsafe(row.time_created), updated: DateTime.makeUnsafe(row.time_updated) }
|
|
336
|
+
});
|
|
337
|
+
var layer = Layer.effect(Service, Effect.gen(function* () {
|
|
338
|
+
const { db } = yield* Service86;
|
|
339
|
+
const sessions = yield* Service28;
|
|
340
|
+
const instances = yield* Service53;
|
|
341
|
+
const execution = yield* Service49;
|
|
342
|
+
const doorbell = yield* Latch.make();
|
|
343
|
+
const settings = (session) => Effect.gen(function* () {
|
|
344
|
+
const config = yield* Effect.serviceOption(Service59);
|
|
345
|
+
if (Option.isNone(config))
|
|
346
|
+
return { enabled: false, timezone: undefined };
|
|
347
|
+
const entries = yield* config.value.entries();
|
|
348
|
+
return {
|
|
349
|
+
enabled: latest2(entries, "experimental")?.schedules === true,
|
|
350
|
+
timezone: latest2(entries, "timezone")
|
|
351
|
+
};
|
|
352
|
+
}).pipe(instances.provide(session));
|
|
353
|
+
const find = (id) => db.select().from(ScheduleTable2).where(eq(ScheduleTable2.id, id)).get().pipe(Effect.orDie, Effect.flatMap((row) => row ? Effect.succeed(row) : Effect.fail(new NotFoundError({ scheduleID: id }))));
|
|
354
|
+
const update = (row, values) => db.update(ScheduleTable2).set(values).where(and(eq(ScheduleTable2.id, row.id), eq(ScheduleTable2.status, "active"))).run().pipe(Effect.orDie);
|
|
355
|
+
const pending = (id) => db.select({ id: SessionInboxTable2.id }).from(SessionInboxTable2).where(eq(SessionInboxTable2.id, id)).get().pipe(Effect.orDie, Effect.map((row) => row !== undefined));
|
|
356
|
+
const fire = Effect.fnUntraced(function* (row, sessionID, due, now) {
|
|
357
|
+
const run = row.run_count + 1;
|
|
358
|
+
const id = SessionMessage2.ID.make(`msg_${row.id}_${run}`);
|
|
359
|
+
const late = now - due >= LATE_AFTER;
|
|
360
|
+
yield* sessions.prompt({
|
|
361
|
+
sessionID,
|
|
362
|
+
id,
|
|
363
|
+
text: row.action.prompt,
|
|
364
|
+
delivery: "steer",
|
|
365
|
+
metadata: { schedule: { id: row.id, name: row.name ?? undefined, run, dueAt: due, late } }
|
|
366
|
+
});
|
|
367
|
+
const next = following(row, now);
|
|
368
|
+
const remaining = row.remaining_runs === null ? null : row.remaining_runs - 1;
|
|
369
|
+
const done = finished(row, next, remaining);
|
|
370
|
+
yield* db.update(ScheduleTable2).set({
|
|
371
|
+
run_count: run,
|
|
372
|
+
last_message_id: id,
|
|
373
|
+
last_fired_at: now,
|
|
374
|
+
last_outcome: late ? "late" : "fired",
|
|
375
|
+
retry_at: null,
|
|
376
|
+
remaining_runs: remaining,
|
|
377
|
+
...done ? { status: "done" } : {},
|
|
378
|
+
next_due_at: done ? null : next,
|
|
379
|
+
time_updated: now
|
|
380
|
+
}).where(eq(ScheduleTable2.id, row.id)).run().pipe(Effect.orDie);
|
|
381
|
+
});
|
|
382
|
+
const step = Effect.fnUntraced(function* (row, now) {
|
|
383
|
+
const due = row.next_due_at;
|
|
384
|
+
if (due === null || row.session_id === null)
|
|
385
|
+
return;
|
|
386
|
+
const session = yield* sessions.get(row.session_id);
|
|
387
|
+
if (!(yield* settings(session)).enabled) {
|
|
388
|
+
yield* update(row, { last_outcome: "disabled", retry_at: now + DISABLED_RETRY, time_updated: now });
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
if (row.last_message_id !== null && (yield* pending(row.last_message_id))) {
|
|
392
|
+
yield* execution.wake(session.id);
|
|
393
|
+
const next = following(row, now);
|
|
394
|
+
const done = finished(row, next, row.remaining_runs);
|
|
395
|
+
yield* update(row, {
|
|
396
|
+
last_outcome: "skipped",
|
|
397
|
+
retry_at: null,
|
|
398
|
+
status: done ? "done" : "active",
|
|
399
|
+
next_due_at: done ? null : next,
|
|
400
|
+
time_updated: now
|
|
401
|
+
});
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
yield* fire(row, session.id, due, now);
|
|
405
|
+
});
|
|
406
|
+
const tickAt = Effect.fnUntraced(function* (now) {
|
|
407
|
+
const due = yield* db.select().from(ScheduleTable2).where(and(eq(ScheduleTable2.status, "active"), lte(ScheduleTable2.next_due_at, now), or(isNull(ScheduleTable2.retry_at), lte(ScheduleTable2.retry_at, now)))).orderBy(asc(ScheduleTable2.next_due_at)).all().pipe(Effect.orDie);
|
|
408
|
+
yield* Effect.forEach(due, (row) => step(row, now).pipe(Effect.catchCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.interrupt : Effect.logWarning("schedule failed to fire", { scheduleID: row.id, cause }).pipe(Effect.andThen(update(row, { last_outcome: "failed", retry_at: now + FAILED_RETRY, time_updated: now }))))), { discard: true });
|
|
409
|
+
}, Effect.withSpan("Schedule.tick"));
|
|
410
|
+
const tick = Effect.flatMap(Clock.currentTimeMillis, tickAt);
|
|
411
|
+
const nextWake = Effect.fnUntraced(function* (from) {
|
|
412
|
+
const row = yield* db.select({ at: min(ScheduleTable2.next_due_at) }).from(ScheduleTable2).where(and(eq(ScheduleTable2.status, "active"), gt(ScheduleTable2.next_due_at, from))).get().pipe(Effect.orDie);
|
|
413
|
+
if (row?.at == null)
|
|
414
|
+
return MAX_SLEEP;
|
|
415
|
+
return Math.max(0, Math.min(MAX_SLEEP, row.at - (yield* Clock.currentTimeMillis)));
|
|
416
|
+
});
|
|
417
|
+
const rewake = db.selectDistinct({ sessionID: ScheduleTable2.session_id }).from(ScheduleTable2).innerJoin(SessionInboxTable2, eq(SessionInboxTable2.id, ScheduleTable2.last_message_id)).all().pipe(Effect.orDie, Effect.flatMap((rows) => Effect.forEach(rows, (row) => row.sessionID === null ? Effect.void : execution.wake(row.sessionID), {
|
|
418
|
+
discard: true
|
|
419
|
+
})));
|
|
420
|
+
const loop = Effect.gen(function* () {
|
|
421
|
+
yield* doorbell.close;
|
|
422
|
+
const now = yield* Clock.currentTimeMillis;
|
|
423
|
+
yield* tickAt(now).pipe(Effect.catchCause((cause) => Effect.logError("schedule tick failed", { cause })));
|
|
424
|
+
const wait = yield* nextWake(now);
|
|
425
|
+
if (wait > 0)
|
|
426
|
+
yield* doorbell.await.pipe(Effect.timeoutOption(wait));
|
|
427
|
+
});
|
|
428
|
+
const run = rewake.pipe(Effect.catchCause((cause) => Effect.logError("schedule rewake failed", { cause })), Effect.andThen(Effect.forever(loop)));
|
|
429
|
+
const resolveZone = (tz) => {
|
|
430
|
+
if (tz === undefined)
|
|
431
|
+
return Effect.succeed(DateTime.zoneMakeLocal());
|
|
432
|
+
return Option.match(DateTime.zoneMakeNamed(tz), {
|
|
433
|
+
onNone: () => Effect.fail(new InvalidError({ reason: `Unknown time zone: ${tz}` })),
|
|
434
|
+
onSome: Effect.succeed
|
|
435
|
+
});
|
|
436
|
+
};
|
|
437
|
+
const firstDue = Effect.fnUntraced(function* (when, zone, now) {
|
|
438
|
+
switch (when.type) {
|
|
439
|
+
case "in":
|
|
440
|
+
return now + (yield* duration(when.in));
|
|
441
|
+
case "at": {
|
|
442
|
+
const at = parseAt(when.at, zone);
|
|
443
|
+
if (Option.isNone(at))
|
|
444
|
+
return yield* new InvalidError({ reason: `Invalid time: ${when.at}` });
|
|
445
|
+
if (at.value <= now)
|
|
446
|
+
return yield* new InvalidError({ reason: `Time is in the past: ${when.at}` });
|
|
447
|
+
return at.value;
|
|
448
|
+
}
|
|
449
|
+
case "every": {
|
|
450
|
+
const every = yield* duration(when.every);
|
|
451
|
+
if (every < MIN_INTERVAL)
|
|
452
|
+
return yield* new InvalidError({ reason: "every must be at least 1 minute" });
|
|
453
|
+
return now + every;
|
|
454
|
+
}
|
|
455
|
+
case "cron": {
|
|
456
|
+
const cron = Cron.parse(when.cron, zone);
|
|
457
|
+
if (Result.isFailure(cron))
|
|
458
|
+
return yield* new InvalidError({ reason: cron.failure.message });
|
|
459
|
+
if (cron.success.seconds.size !== 1)
|
|
460
|
+
return yield* new InvalidError({ reason: "cron must fire at most once a minute" });
|
|
461
|
+
const next = nextCron(cron.success, now);
|
|
462
|
+
if (next === undefined)
|
|
463
|
+
return yield* new InvalidError({ reason: `cron never fires: ${when.cron}` });
|
|
464
|
+
return next;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
const endsAt = Effect.fnUntraced(function* (ends, zone, now) {
|
|
469
|
+
const after = ends?.after === undefined ? undefined : now + (yield* duration(ends.after));
|
|
470
|
+
if (ends?.at === undefined)
|
|
471
|
+
return after ?? null;
|
|
472
|
+
const at = parseAt(ends.at, zone);
|
|
473
|
+
if (Option.isNone(at))
|
|
474
|
+
return yield* new InvalidError({ reason: `Invalid time: ${ends.at}` });
|
|
475
|
+
return Math.min(at.value, after ?? at.value);
|
|
476
|
+
});
|
|
477
|
+
return Service.of({
|
|
478
|
+
create: Effect.fn("Schedule.create")(function* (input) {
|
|
479
|
+
const session = yield* sessions.get(input.sessionID);
|
|
480
|
+
const config = yield* settings(session).pipe(Effect.orDie);
|
|
481
|
+
if (!config.enabled)
|
|
482
|
+
return yield* new DisabledError;
|
|
483
|
+
const zone = yield* resolveZone(input.when.tz ?? config.timezone);
|
|
484
|
+
const now = yield* Clock.currentTimeMillis;
|
|
485
|
+
const due = yield* firstDue(input.when, zone, now);
|
|
486
|
+
if (input.ends?.times !== undefined && input.ends.times < 1)
|
|
487
|
+
return yield* new InvalidError({ reason: "ends.times must be at least 1" });
|
|
488
|
+
const ends = yield* endsAt(input.ends, zone, now);
|
|
489
|
+
if (ends !== null && due > ends)
|
|
490
|
+
return yield* new InvalidError({ reason: "The schedule ends before it first fires" });
|
|
491
|
+
const row = yield* db.insert(ScheduleTable2).values({
|
|
492
|
+
id: ID.create(),
|
|
493
|
+
session_id: session.id,
|
|
494
|
+
name: input.name ?? null,
|
|
495
|
+
action: input.action,
|
|
496
|
+
when: input.when,
|
|
497
|
+
tz: DateTime.zoneToString(zone),
|
|
498
|
+
next_due_at: due,
|
|
499
|
+
ends_at: ends,
|
|
500
|
+
remaining_runs: input.ends?.times ?? null,
|
|
501
|
+
time_created: now,
|
|
502
|
+
time_updated: now
|
|
503
|
+
}).returning().get().pipe(Effect.orDie);
|
|
504
|
+
yield* doorbell.open;
|
|
505
|
+
return toInfo(row);
|
|
506
|
+
}),
|
|
507
|
+
list: Effect.fn("Schedule.list")(function* (input) {
|
|
508
|
+
const rows = yield* db.select().from(ScheduleTable2).where(input?.sessionID === undefined ? undefined : eq(ScheduleTable2.session_id, input.sessionID)).orderBy(asc(ScheduleTable2.time_created), asc(ScheduleTable2.id)).all().pipe(Effect.orDie);
|
|
509
|
+
return rows.map(toInfo);
|
|
510
|
+
}),
|
|
511
|
+
get: Effect.fn("Schedule.get")(function* (id) {
|
|
512
|
+
return toInfo(yield* find(id));
|
|
513
|
+
}),
|
|
514
|
+
pause: Effect.fn("Schedule.pause")(function* (id) {
|
|
515
|
+
const row = yield* find(id);
|
|
516
|
+
if (row.status !== "active")
|
|
517
|
+
return toInfo(row);
|
|
518
|
+
const now = yield* Clock.currentTimeMillis;
|
|
519
|
+
yield* update(row, { status: "paused", time_updated: now });
|
|
520
|
+
return toInfo(yield* find(id));
|
|
521
|
+
}),
|
|
522
|
+
resume: Effect.fn("Schedule.resume")(function* (id) {
|
|
523
|
+
const row = yield* find(id);
|
|
524
|
+
if (row.status !== "paused")
|
|
525
|
+
return toInfo(row);
|
|
526
|
+
const now = yield* Clock.currentTimeMillis;
|
|
527
|
+
const next = row.next_due_at === null || row.next_due_at > now ? row.next_due_at : following(row, now) ?? row.next_due_at;
|
|
528
|
+
const done = next === null || finished(row, next, row.remaining_runs);
|
|
529
|
+
yield* db.update(ScheduleTable2).set({ status: done ? "done" : "active", next_due_at: done ? null : next, retry_at: null, time_updated: now }).where(and(eq(ScheduleTable2.id, id), eq(ScheduleTable2.status, "paused"))).run().pipe(Effect.orDie);
|
|
530
|
+
yield* doorbell.open;
|
|
531
|
+
return toInfo(yield* find(id));
|
|
532
|
+
}),
|
|
533
|
+
remove: Effect.fn("Schedule.remove")(function* (id) {
|
|
534
|
+
yield* find(id);
|
|
535
|
+
yield* db.delete(ScheduleTable2).where(eq(ScheduleTable2.id, id)).run().pipe(Effect.orDie);
|
|
536
|
+
}),
|
|
537
|
+
tick,
|
|
538
|
+
run
|
|
539
|
+
});
|
|
540
|
+
}));
|
|
541
|
+
var node = makeGlobalNode({
|
|
542
|
+
service: Service,
|
|
543
|
+
layer,
|
|
544
|
+
deps: [node90, node31, node52, node55]
|
|
545
|
+
});
|
|
546
|
+
export {
|
|
547
|
+
CreateInput,
|
|
548
|
+
DisabledError,
|
|
549
|
+
ID,
|
|
550
|
+
Info,
|
|
551
|
+
InvalidError,
|
|
552
|
+
NotFoundError,
|
|
553
|
+
exports_schedule as Schedule,
|
|
554
|
+
Service,
|
|
555
|
+
node
|
|
556
|
+
};
|
package/dist/schema.js
CHANGED