feat(schedule): M4 定时任务配套——跨会话全览 op=list_all + 微信 /tasks 命令
用户第 6 点(在当前会话读到他所有定时任务并管理)的两种触达: - scheduler.listUserTasks:join sessions 按 user 全览(下次执行排序),两条链路同源数据。 - schedule 工具加 op=list_all:用户问「我都有哪些闹钟」AI 自取;只读全览不拆生命周期—— update/delete 仍绑各自会话,清单每行带会话标题+id,异会话任务引导用户切过去操作 (网页打开会话 / 微信 /switch <会话id>)。default 提示行同步。 - 微信 /tasks 命令(与 /list 同族、不依赖绑定会话):markdown 全览 brief/cron/下次/上次, 尾部引导「改删先 /switch 过去;删会话连带删任务」;/help 收录。 探针 7 项全过(list_all 隔离/标题id/本会话标记、/tasks 隔离/引导/空态、/help 收录)。 定时即下班(上一笔)后每任务天然独占一会话,create 撞主键仅剩手动 delete 重建路径。
This commit is contained in:
@@ -275,7 +275,7 @@
|
||||
"type": "function",
|
||||
"function": {
|
||||
"name": "schedule",
|
||||
"description": "Manage the recurring scheduled task bound to the CURRENT session. At most one task per session; it is deleted together with the session. At each trigger, the prompt is sent to this session as a new user message. Schedule times are interpreted in Asia/Shanghai (UTC+8). Call this ONLY when the user explicitly asks for something to run periodically or at a specific time.\n\nop=get No arguments.\nop=create Requires cron_expr, prompt and brief.\nop=update Requires at least one of cron_expr, prompt; only the given fields change.\nop=delete No arguments.",
|
||||
"description": "Manage the recurring scheduled task bound to the CURRENT session. At most one task per session; it is deleted together with the session. At each trigger, the prompt is sent to this session as a new user message. Schedule times are interpreted in Asia/Shanghai (UTC+8). Call this ONLY when the user explicitly asks for something to run periodically or at a specific time.\n\nop=get No arguments.\nop=list_all No arguments. Lists every scheduled task of the current user across all sessions (update/delete still act on the CURRENT session only; other rows name their session id so the user can switch there).\nop=create Requires cron_expr, prompt and brief.\nop=update Requires at least one of cron_expr, prompt; only the given fields change.\nop=delete No arguments.",
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
@@ -288,7 +288,8 @@
|
||||
"get",
|
||||
"create",
|
||||
"update",
|
||||
"delete"
|
||||
"delete",
|
||||
"list_all"
|
||||
],
|
||||
"description": "Operation to perform on the current session's scheduled task."
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user