Commit Graph

42 Commits

Author SHA1 Message Date
105d10b3a7 refactor: 月记改用周报和上月月报,不再读日报
- MONTHLY_EXTRACT_PROMPT: 输入从日报片段改为周记片段
- MONTHLY_FINAL_PROMPT: 对照上月月记而非本月周记,结构调整为上月工作延续
- generate_monthly: 移除日报读取逻辑,添加读取上月月报逻辑
- 2024-08 月记已用新逻辑重新生成
2026-11-21 22:46:21 +08:00
5edd199da7 feat: AI Notes 智能纪要链接自动获取与月记背景支持
- snooper_calendar.py: 新增 fetch_ai_notes_links(),优先从 AI Notes 会话获取纪要链接
  - 支持 docx/minutes 格式,不限制三级域名
  - 优先读本地缓存,本地无 topic 时从网络补充
  - 按链接类型区分匹配窗口:permission_change ±24h,finish_recording ±6h
  - 具体主题要求与日历事件标题匹配,通用主题(视频会议)允许匹配
  - 返回未匹配链接列表,供日报保留展示
- snooper_storage.py: 保存时从 content_data 提取 URL 和 topic 到 content
  - 递归遍历 bytes 提取 URL,避免 JSON 序列化丢失
  - 新增 _extract_links_with_topics() 同时提取 URL 和会议主题
- lark_snooper.py: 未匹配链接插入今日会议章节的相关智能纪要子章节
- snooper_monthly.py: 新增 load_previous_monthly_background(),支持前5个工作日读取上月月记
- tests/test_calendar.py: 适配 fetch_calendar_events 返回 tuple
2026-11-21 20:29:55 +08:00
f53ca5b481 chore: 切换补跑模型路由 2026-11-21 01:12:12 +08:00
f177a857a5 feat: 优化周记周期与总结输出 2026-11-21 00:52:00 +08:00
81b6ff7a39 feat: 图片下载与数据目录本地化
- 新增 download_images.py: 批量下载消息图片到 downloads/images/
- 数据库移至 downloads/messages.db,SnifferStorage 默认使用项目目录
- 图片默认保存到 downloads/images/,支持 --out-dir 自定义
- .gitignore 排除 downloads/ 避免提交二进制文件
- 补充腾讯会议号过滤 prompt
- 补充 Obsidian 文档 is_read frontmatter
2026-11-15 20:07:24 +08:00
cceeaf5c78 feat: 完善日报人物来源与会议链接 2026-11-12 23:36:01 +08:00
c03d935e9e feat: 增加日历与版本化日报 2026-11-10 21:55:50 +08:00
e1d222a3fd feat: 优化日报总结与延续性跟踪 2026-11-08 23:45:44 +08:00
c8658ad064 feat: 历史同步优化与消息已读属性
- 历史同步: 本地缓存优先、断点续传、按月批量同步
- 新增 sync_monthly.py: 支持逐月往前推进同步
- 消息表新增 is_read 字段,默认 false
- Obsidian 文档 frontmatter 自动补充 is_read: false
- 新增 migrate_add_is_read.py / migrate_obsidian_is_read.py 迁移脚本
- 总结 prompt 补充: 不记录腾讯会议号
- 历史同步失败时记录日志到 ~/.larkx/logs/history-failures.jsonl
2026-11-08 11:31:18 +08:00
99ee792c07 feat: add summary configuration and sync controls 2026-11-07 18:46:23 +08:00
3e5ac07183 refactor: convert to Lark Snooper script project 2026-11-07 11:23:50 +08:00
941ba26bc6 refactor: depend on LarkAgentX as an external package 2026-11-06 15:43:15 +08:00
c450206aef feat: enrich summaries with contacts and Obsidian links 2026-11-06 00:04:11 +08:00
41d71f83cb feat: add private daily summaries and history sync 2026-11-05 22:18:12 +08:00
97ad48e69e Merge pull request #22 from Thxzzzzz/feat/lark-support
feat: support Lark (larksuite.com) alongside Feishu
2026-09-30 16:14:47 +08:00
b9c2d50d62 feat: support Lark (larksuite.com) alongside Feishu
Add larkx/region.py with per-region endpoints, gateway app id and
locale. The region is chosen at login (lark auth qr/import --region,
default LARKX_REGION) and persisted in credentials; every request derives
its URLs from it. Credentials saved before this change are treated as
Feishu.

Fixes found while testing with real Lark and Feishu accounts:
- search: locale belongs on the request header, not searchContext
- storage: drop inline thumbnail bytes so content_data stays valid JSON
- send --root: set parentId, plus isReplyInThread for regular groups;
  topic-mode groups reject that flag, so chat modes are looked up and
  cached per chat
- topic groups (GROUP + chatMode THREAD/THREAD_V2): root messages anchor
  their own thread, except system notices; push handling and
  pull_history share decoders.resolve_scope
- show media/audio durations in seconds (they are milliseconds)
- render @mentions with the mentioned name via AtProperty
- lark send stores the server message id so the WS echo fills in the
  same row instead of inserting a duplicate

proto.proto gains isReplyInThread, AtProperty and PutMessageResponse;
proto_pb2.py is regenerated with grpcio-tools 1.71 (protoc 5.29.0).
2026-09-30 16:04:49 +08:00
2cb4f90fcf Update README.md 2026-08-18 23:02:34 +08:00
b150a2232c Merge pull request #20 from cv-cat/feat/update_alg
feat: update all alg
2026-07-26 13:36:41 +08:00
30530d1bf1 feat: update all alg
更新所有算法
2026-07-26 13:28:15 +08:00
f0d1543da5 Update README.md 2026-07-24 23:55:50 +08:00
6372b6739e Update README.md 2026-07-14 23:51:48 +08:00
71bad7b9bf Update README.md 2026-07-07 22:07:16 +08:00
83567c6569 Update README.md 2026-06-30 12:07:29 +08:00
4eebfec4f3 Update README.md 2026-06-18 16:55:59 +08:00
8b57b8fba5 Update README.md 2026-06-07 13:44:26 +08:00
f488bbe537 Update README.md 2026-06-01 18:53:04 +08:00
8ebdca0cfe Update README.md 2026-05-26 12:21:37 +08:00
558e4229bc Update README.md 2026-05-19 19:02:45 +08:00
383afd3358 Update README.md 2026-05-13 12:45:22 +08:00
6de0ebaf65 Update README.md 2026-04-20 11:45:32 +08:00
ed02716e11 Update README.md 2026-04-14 18:38:45 +08:00
93c1ac067d feat: 更新调用函数 2025-07-15 00:34:53 +08:00
c8a006a885 Update README.md 2025-06-08 20:43:32 +08:00
8458f561d0 Update .env.example 2025-05-08 17:43:34 +08:00
fc45aa3e9f update 2025-04-22 15:50:44 +08:00
38699206dd fix hotbug🚀 2025-04-21 17:04:03 +08:00
50097d1924 fix hotbug🚀 2025-04-21 14:41:16 +08:00
df07e54cd8 fix hotbug🚀 2025-04-21 14:25:20 +08:00
fd67032f01 update 🚀 2025-04-17 22:11:53 +08:00
f3a272c631 update 🚀 2025-04-17 22:10:39 +08:00
0e0f686acb update 🚀 2025-04-17 22:08:21 +08:00
ce1804b35a Lark AI Agent 🚀 2025-04-17 21:40:51 +08:00