David Li
3d0dd9b8b9
feat: migrate from eprintln! to tracing for structured logging
...
- Add tracing + tracing-subscriber dependencies
- Initialize tracing in main() with env-filter (RUST_LOG support)
- Replace all eprintln! diagnostic messages with tracing macros:
- info! for lifecycle events (daemon startup, cache hits, scan progress)
- warn! for non-fatal errors (skipped DBs, scan limits, connection errors)
- error! for fatal errors (daemon startup failure)
- debug! for cache hits (hidden behind RUST_LOG=debug)
- Add #[tracing::instrument] to key paths:
- daemon::start_daemon — automatic startup timing
- query::{sessions, history, search, new_messages} — per-query timing
- crypto::full_decrypt — per-decrypt timing with page count
- Keep println! for user-facing CLI output (YAML/JSON, status messages)
- Keep eprintln! for test output and CLI progress indicators
2026-05-13 16:08:48 +08:00
jackwener
6659f48984
chore: bump version to 0.1.10
2026-04-19 21:27:59 +08:00
郭立lee
2b5d872f0b
feat(sns): sns-feed / sns-search 输出完整 media[] 字段 ( #15 )
...
在 #14 之上增量:把 sns-feed / sns-search 的 media_count 升级成完整 media[] 数组(含 url/thumb/key/token/md5/enc_idx/size + video_md5/duration),下游可直接做图片代理或离线渲染。
- 用 roxmltree(pure Rust,无 C 依赖)替代 regex 抽属性
- 字段命名对齐 artifacts 仓库 Python _parse_media,跨实现 diff 友好
- 14 个 sns 单测:作者新增 6 个 fixture(单图/三图/视频/纯文字/malformed/缺 totalSize)+ 已有 8 个保持
- 与之前 PR #14 的 --user XML fallback 修复 / SNS_MAX_LIMIT / SNS_MAX_SCAN / escape_like_pattern 完全兼容
Author: leeguooooo <guoli@zhihu.com>
Co-fixed-by: wx-cli-coder (rebase + 冲突解决 + 测试模块合并 + media_count 语义文档补充)
2026-04-19 02:22:55 +08:00
jackwener
697d3fc720
chore: bump version to 0.1.9
2026-04-18 02:11:28 +08:00
jackwener
c564438994
chore: bump version to 0.1.8
2026-04-18 01:50:25 +08:00
jackwener
4e6907c5cc
chore: bump version to 0.1.7
2026-04-17 16:42:02 +08:00
jackwener
fe71f1e9f8
chore: bump version to 0.1.6
2026-04-17 15:05:44 +08:00
jackwener
0e2711dcf8
chore: bump to 0.1.5, fix publish to skip already-published versions
2026-04-17 09:25:04 +08:00
jackwener
a5de749f0a
chore: bump version to 0.1.4
2026-04-17 00:41:01 +08:00
jackwener
3413f6c8f4
fix: move anyhow/chrono/dirs/md5/regex back to [dependencies] section
2026-04-16 23:31:41 +08:00
jackwener
ad256288e1
chore: bump version to 0.1.3
2026-04-16 23:15:48 +08:00
jackwener
59dd6bfa24
fix: Windows build errors (handle_connection, creation_flags, mkdir)
...
- server.rs: add handle_connection_windows for named pipe connections
- transport.rs: import CommandExt trait for creation_flags on Windows
- release.yml: mkdir -p before binary copy to npm bin dirs
2026-04-16 23:14:58 +08:00
jackwener
65c98e9736
chore: bump version to 0.1.2
2026-04-16 22:43:28 +08:00
jackwener
6cdc806642
chore: Apache-2.0 license, Windows support, install.ps1
2026-04-16 22:30:45 +08:00
jackwener
a6fa82adb3
chore: bump version to 0.1.1
2026-04-16 16:18:04 +08:00
jackwener
fa7c99f159
chore: 补充 crates.io 发布元数据,包名改为 wx-cli,添加 MIT 许可证
2026-04-16 15:28:59 +08:00
jackwener
993ac1ed47
fix: 修复 review 发现的 4 个高优先级 bug
...
- Cargo.toml: libc 依赖范围从 macos 改为 unix(修复 Linux 编译失败)
- scanner/macos.rs: VM_REGION_BASIC_INFO_COUNT_64 改为硬编码 9(修复 mach_vm_region 调用失败)
- crypto/wal.rs: WAL 第一页帧不走主 DB 第一页特殊路径(修复 WAL 数据损坏)
- daemon/query.rs: 全局搜索传入正确 names_map(修复 sender 字段为空)
2026-04-16 14:48:03 +08:00
jackwener
d475f6219b
feat: Rust 完整重写 wx-cli(单一二进制,支持 macOS/Linux/Windows)
...
实现所有核心模块:
- src/crypto/: SQLCipher 4 页解密 + WAL 应用(AES-256-CBC)
- src/scanner/: 三平台内存扫描(macOS Mach VM / Linux /proc/mem / Windows ReadProcessMemory)
- src/daemon/: tokio 异步 daemon,Unix socket IPC,mtime-aware DB 缓存,WAL 监听推送
- src/cli/: clap CLI,自动启动 daemon,完整命令实现
- src/config.rs: 跨平台配置加载,兼容 Python 版 config.json 格式
- src/ipc.rs: 换行符分隔 JSON 协议,与 Python 版兼容
- .github/workflows/release.yml: 四平台自动构建发布
cargo build --release 验证通过,生成 4.8MB macOS arm64 单一二进制
2026-04-16 14:37:10 +08:00