feat(sns): sns-notifications / sns-feed / sns-search (#14)

新增 3 个朋友圈相关命令:sns-notifications / sns-feed / sns-search。
PR review 修复(已 push 进同一分支):
- 修 --user 过滤与 XML <username> fallback 打架的 bug(@wx-cli-codex 发现)
- 加 SNS_MAX_LIMIT / SNS_MAX_SCAN 防御性上限
- 抽 escape_like_pattern() helper
- 补 8 个单测(parse_post_xml / escape_like_pattern)

Cargo check 三 target 全过:aarch64-darwin / x86_64-pc-windows-gnu / x86_64-unknown-linux-gnu。
Co-authored-by: fengliu222 <fengliu222@users.noreply.github.com>
This commit is contained in:
JL
2026-04-19 01:58:21 +08:00
committed by GitHub
parent f0dcd4ea05
commit e8939f315d
10 changed files with 684 additions and 0 deletions
+1
View File
@@ -73,6 +73,7 @@ async fn async_run() -> Result<()> {
names.msg_db_keys = msg_db_keys;
let _ = db.get("session/session.db").await;
let _ = db.get("sns/sns.db").await;
eprintln!("[daemon] 预热完成,联系人 {} 个", names.map.len());
// 包一层内部 Arc:IPC 请求取 guard 后只做 Arc::clone(O(1)),