Add wechat reminder LLM toggle
This commit is contained in:
+14
-4
@@ -65,14 +65,24 @@ function extractTodoTitle(text) {
|
||||
return cleaned || null;
|
||||
}
|
||||
|
||||
function wantsDailyTodoDigest(compact) {
|
||||
const daily = /每天|每日|天天/.test(compact);
|
||||
if (!daily) return false;
|
||||
const send = /发|发送|推送|提醒|通知|给我/.test(compact);
|
||||
if (!send) return false;
|
||||
const digest =
|
||||
/(待办|todo|任务).*(记录|列表|清单|安排|摘要|汇总)/.test(compact)
|
||||
|| /(今天|今日|当天).*(待办|todo|任务)/.test(compact)
|
||||
|| /(待办|todo|任务).*(今天|今日|当天)/.test(compact)
|
||||
|| /一天的待办/.test(compact);
|
||||
return digest;
|
||||
}
|
||||
|
||||
export function parseScheduleIntent(text) {
|
||||
const compact = normalizeText(text);
|
||||
if (!compact) return { action: 'none' };
|
||||
|
||||
const wantsDaily = /每天|每日|天天/.test(compact);
|
||||
const wantsTodoDigest = /(待办|todo|任务).*(记录|列表|清单|安排|摘要)|一天的待办/.test(compact);
|
||||
const wantsSend = /发|发送|推送|提醒|通知|给我/.test(compact);
|
||||
if (wantsDaily && wantsTodoDigest && wantsSend) {
|
||||
if (wantsDailyTodoDigest(compact)) {
|
||||
const time = parseHourMinute(compact);
|
||||
if (!time) {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user