import { ClawclawReminder, evaluateReminder, type ReminderInput } from '@myclaw163/clawclaw-cli/perception-plugin'; // 兼容接口示例。基础任务通知已有内置感知负责,不应再装配相同规则重复通知。 export default class TaskReminder extends ClawclawReminder { static readonly manifest = { apiVersion: 2, kind: 'reminder', id: 'reminder.tasks', description: '根据后端任务事件组织通知;选择唤醒、搭便车或仅 State,不从列表差分再次生成通知。', topic: 'tasks', consumes: ['task_started', 'task_progress', 'task_assigned', 'task_completed', 'task_interrupted', 'task_sabotaged'], config: { started: 'state_only', progress: 'state_only', added: 'silent', completed: 'silent', interrupted: 'wake', sabotaged: 'wake' }, } as const; update(input: ReminderInput) { return evaluateReminder('tasks', input); } }