wx-cli/src
jakevin d4587b1c68
fix(query): three correctness/latency fixes from deep review (#51)
- q_contacts: replaced ad-hoc `gh_*`/`biz_*` prefix filter with
  `chat_type_of == "private"`. The old filter leaked groups
  (`@chatroom`), folded entries (`brandsessionholder` /
  `@placeholder_foldgroup`), verified service accounts
  (`verify_flag != 0`), and internal `@xxx` system accounts into
  `wx contacts` output.

- q_search: parallelized the per-message-DB blocking phase via
  `JoinSet::spawn_blocking`. Previously the `for (db_path, ...) in
  by_path { ... .await }` loop ran one DB at a time; users with N
  message_*.db shards paid N× latency. Each DB now runs concurrently
  on the blocking pool; total latency collapses to a single slow DB.

- q_new_messages: fixed `new_state` reset path so first-run + truncated
  sessions don't lock `since_ts` at `fallback_ts` forever. Old code
  always wrote `state[uname] = old_since_ts || fallback_ts` for changed
  sessions, then advanced only those that appeared in `all_msgs`. On
  first run (state=None) truncated sessions ended up with
  `state[uname] = now-86400` and stayed there across calls — every
  subsequent call re-scanned a window that grew with elapsed time.
  New logic separates three cases:
    * in_results        → advance to returned_max (incremental fetch)
    * truncated + state → keep prev since_ts (retry next call)
    * truncated + none  → advance to session_ts (avoid lock-in; old
                          messages remain reachable via `wx history`).
2026-05-14 17:11:27 +08:00
..
cli feat(biz): add wx biz-articles command to query public account messages (#33) 2026-05-14 16:07:39 +08:00
crypto chore: Apache-2.0 license, Windows support, install.ps1 2026-04-16 22:30:45 +08:00
daemon fix(query): three correctness/latency fixes from deep review (#51) 2026-05-14 17:11:27 +08:00
scanner fix(cli,config): 修复 sudo 下初始化失败 + daemon 不重载问题 (#37) 2026-05-14 13:50:04 +08:00
config.rs fix(cli,config): 修复 sudo 下初始化失败 + daemon 不重载问题 (#37) 2026-05-14 13:50:04 +08:00
ipc.rs feat(biz): add wx biz-articles command to query public account messages (#33) 2026-05-14 16:07:39 +08:00
main.rs feat: Rust 完整重写 wx-cli(单一二进制,支持 macOS/Linux/Windows) 2026-04-16 14:37:10 +08:00