feat(schedule): 待办提醒推送、行事历仅展示提醒与管理 API
单次提醒 worker 投递、local 时间写入校验、未来 7 天提醒列表与忽略/批量删除;行事历去掉事项重复展示。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -214,6 +214,19 @@ export function buildSessionMemoryEntries({
|
||||
content: renderCurrentTimeAnchor({ now, timezone }),
|
||||
});
|
||||
|
||||
const scheduleTools = (sessionPolicy?.extensionOverrides ?? []).find((ext) => ext.name === 'sandbox-fs');
|
||||
if ((scheduleTools?.available_tools ?? []).includes('schedule_create_item')) {
|
||||
entries.push({
|
||||
title: 'TKMind 日程写入规则',
|
||||
content: [
|
||||
'创建或提醒待办/日程时:',
|
||||
'- 必须使用 startLocal / endLocal / remindLocal,格式 YYYY-MM-DD HH:mm(用户时区墙上时钟)。',
|
||||
'- 禁止自行估算 Unix 毫秒时间戳;传错会被工具拒绝。',
|
||||
'- 写入后调用 schedule_list_items 核对日期是否与用户表述一致。',
|
||||
].join('\n'),
|
||||
});
|
||||
}
|
||||
|
||||
if (!hasMemoryStore(sessionPolicy)) {
|
||||
return entries;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user