Add cron_retrigger for consumed one-shot jobs.

Resume only unpauses; listeners need a native way to re-fire the same job id with a new run without creating duplicate executors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-10 17:40:39 +08:00
parent 6724332114
commit c11221606a
9 changed files with 324 additions and 7 deletions

View file

@ -439,6 +439,7 @@ test('registerCronTools registers each definition and disposer unregisters', ()
'cron_progress',
'cron_pause',
'cron_resume',
'cron_retrigger',
'cron_delete',
])
off()
@ -454,6 +455,7 @@ test('cron tool output schemas never use type arrays (Host rejects them)', () =>
async getProgress() { return { snapshots: [], count: 0 } },
async pauseJob() { return {} },
async resumeJob() { return {} },
async retriggerJob() { return {} },
async deleteJob() { return {} },
})
const bad = []