2 Commits

Author SHA1 Message Date
6f076969ce chore: auto release commit (2026-09-12 15:19:25)
All checks were successful
技能自动化发布 / release (push) Successful in 5s
2026-09-12 15:19:25 +08:00
37d4ebfc1c chore: auto release commit (2026-09-12 15:12:53)
All checks were successful
技能自动化发布 / release (push) Successful in 6s
2026-09-12 15:12:53 +08:00
2 changed files with 6 additions and 2 deletions

View File

@@ -279,9 +279,10 @@
"description": "在指定时间提醒到期的待办事项。",
"entrypoint": {
"type": "cli",
"command": "todo",
"command": "remind",
"args": [
"remind"
"--seconds",
"{{seconds}}"
]
}
}

View File

@@ -264,9 +264,12 @@ async def _run_remind_async(*, seconds: int) -> dict[str, Any]:
"""
真实平台会推送到任务中心 UI 并支持取消;
"""
log = _get_task_logger()
todos = todo_service.get_current_remind_todos()
log.info("[task]remind todos count: %s", len(todos))
for todo in todos:
todo_service.mark_done(todo.id)
log.info("[task]remind todos : %s", todo.title)
emit(f"提醒待办 {todo.title}", skill=SKILL_SLUG, stage="remind")
summary = todo_service.stats()
return {"remind": True, "duration_seconds": len(todos), "stats": summary}