Add cron_reschedule so pending one-shots can be moved without delete/recreate.

Keeps retrigger for consumed jobs only; agents can advance or delay nextRunAt safely.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-11 19:57:22 +08:00
parent b22048d377
commit 89ab5f59af
6 changed files with 382 additions and 10 deletions

View file

@ -530,6 +530,7 @@ test('registerCronTools registers each definition and disposer unregisters', ()
'cron_pause',
'cron_resume',
'cron_retrigger',
'cron_reschedule',
'cron_delete',
])
off()
@ -546,6 +547,7 @@ test('cron tool output schemas never use type arrays (Host rejects them)', () =>
async pauseJob() { return {} },
async resumeJob() { return {} },
async retriggerJob() { return {} },
async rescheduleJob() { return {} },
async deleteJob() { return {} },
})
const bad = []