Add cron monitor APIs: labels, watch, progress, and query tools.

Extend jobs with lifecycle projection and history policies so listeners can poll state at scale without breaking existing cron_* flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-09-10 15:23:42 +08:00
parent 43facd608a
commit b6934b20a3
10 changed files with 1501 additions and 53 deletions

View file

@ -24,6 +24,9 @@ test('installable bundle declares host apply, client half, unique id, and no @de
const tools = await readFile(join(root, 'lib/tools.js'), 'utf8')
assert.match(tools, /name: 'cron_create'/)
assert.match(tools, /name: 'cron_list'/)
assert.match(tools, /name: 'cron_query'/)
assert.match(tools, /name: 'cron_runs'/)
assert.match(tools, /name: 'cron_progress'/)
assert.match(tools, /crontab/)
assert.match(tools, /scheduled-tasks/)
assert.match(tools, /hour/)