feat(schedule): add durable after reminders

This commit is contained in:
pku-xht
2026-08-06 03:47:37 +08:00
committed by Tianyi Cui
parent f7e7851e3f
commit 8b69252664
41 changed files with 354 additions and 146 deletions

View File

@@ -310,6 +310,9 @@ export function registerScheduleTools(
},
output: { schema: DELETE_OUTPUT_SCHEMA, render: renderValue },
async execute(args, exec): Promise<ScheduleDeleteValue> {
if (args.id.length === 0 || args.id.trim() !== args.id) {
return { code: 'invalid_rule', message: 'schedule_delete id must be non-empty without surrounding whitespace.' }
}
const id = ScheduleId(args.id)
if (exec.agent !== agent) return internalError()
const uncertain = await preflight(rootCtx, agent, 'delete', id)