Add scheduled task automation skill with worker execution pipeline.
Memind CI / Test, build, and release guards (push) Failing after 18s
Memind CI / Test, build, and release guards (push) Failing after 18s
Introduce scheduled-task-automation for H5 and WeChat, persist tasks in h5_scheduled_tasks, and run due jobs via a dedicated worker that executes agent tasks and delivers results. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -140,6 +140,13 @@ export function isScheduleIntent(intent) {
|
||||
export function shouldUseScheduleAssistant(text) {
|
||||
const compact = normalizeText(text);
|
||||
if (!compact) return false;
|
||||
// Scheduled automation (execute + deliver) uses scheduled-task-automation skill.
|
||||
if (/(?:定时(?:自动)?任务|scheduled\s*task|scheduled\s*automation)/iu.test(compact)) return false;
|
||||
if (/(?:每天|每日|每周|定时|到点|届时|自动)/u.test(compact)
|
||||
&& /(?:做|生成|制作|创建|写|执行|跑|更新|整理|汇总|推送)/u.test(compact)
|
||||
&& !/(?:提醒我|待办记录|待办列表|待办清单|当天待办|一天的待办)/u.test(compact)) {
|
||||
return false;
|
||||
}
|
||||
if (isScheduleIntent(parseScheduleIntent(text))) return true;
|
||||
const scheduleKeywords = /(提醒|待办|代办|带办|代拜|日程|行程|安排|计划|闹钟)/;
|
||||
const timeKeywords = /(今天|今晚|明天|后天|早上|上午|中午|下午|晚上|\d{1,2}[点::])/;
|
||||
|
||||
Reference in New Issue
Block a user