feat: Chinese news sources, AI summary, todo extraction

This commit is contained in:
Beast
2026-06-14 13:29:25 +08:00
parent 4cd8089480
commit 4c2ac3ab56
3 changed files with 91 additions and 4 deletions

17
scripts/push_todos.py Normal file
View File

@ -0,0 +1,17 @@
"""Push 4 key todos from the existing library to todo API."""
import requests
todos = [
"为心理黑箱绘制决策流程图,复盘日线震荡却做多的那一单",
"为服务器AI设置即时调用接口支持命令行快捷提问",
"修复Dashboard的初始金额和策略编号显示错误",
"为倒计时建立仪式感在Memos创建告别笔记标签",
]
for text in todos:
r = requests.post("http://127.0.0.1:9001/api/todos",
json={"text": text, "source": "inspiration"}, timeout=5)
print(f" {r.status_code}: {text[:40]}")
r = requests.get("http://127.0.0.1:9001/api/todos", timeout=5)
print(f"\nTotal todos: {len(r.json()['todos'])}")