Commit Graph

344 Commits

Author SHA1 Message Date
cc
a9b5fa0fae Merge pull request #425 from xioFelix/fix/image-scan-helper-entitlement
fix: 图片密钥内存扫描通过 image_scan_helper 子进程解决 task_for_pid 权限问题
2026-03-13 22:50:58 +08:00
xuncha
65212201ad https://github.com/hicccc77/WeFlow/issues/372导出时给每个格式都接入了群成员显示逻辑 2026-03-13 21:14:46 +08:00
xuncha
53ef4e11f9 图片解密逻辑优化https://github.com/hicccc77/WeFlow/issues/408#issuecomment-4053026902 2026-03-13 21:14:46 +08:00
xuncha
c9a6451407 尝试修复 https://github.com/hicccc77/WeFlow/issues/378 中的问题 2026-03-13 21:14:46 +08:00
xuncha
9d07a3a7bd 给别的格式同步 2026-03-13 21:14:46 +08:00
xuncha
bd4296199a 图片解密失败的时候 可以导出缩略图 html 2026-03-13 21:14:46 +08:00
Felix
5acd3d86c8 fix: image_scan_helper 自动检测 task_for_pid 权限不足时通过 osascript 提权运行
macOS SIP 下 ad-hoc 签名的 debugger entitlement 不被信任,导致
image_scan_helper 调用 task_for_pid 返回 kr=5。现在先尝试直接运行,
检测到权限错误后自动切换到 osascript with administrator privileges
方式运行 helper,后续调用跳过直接运行直接走提权路径。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:22:27 +11:00
Felix
0a603116ef Merge branch 'dev' into fix/image-scan-helper-entitlement
解决冲突:在 dev 最新 Mach API 内存扫描方案基础上,保留 image_scan_helper
子进程作为优先路径(有 debugger entitlement),Mach API 作为 fallback。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 22:42:59 +11:00
Felix
bff9e87096 fix: 图片密钥内存扫描通过子进程调用解决 task_for_pid 权限问题
Electron 进程缺少 com.apple.security.cs.debugger entitlement,
导致 ScanMemoryForImageKey 中的 task_for_pid 调用失败(kr=5)。

新增 image_scan_helper 子进程包装程序(与 xkey_helper 方案一致):
- 新建 resources/image_scan_helper.c:dlopen libwx_key.dylib 并调用
  ScanMemoryForImageKey,通过 JSON stdout 返回结果
- 新建 resources/image_scan_entitlements.plist:包含 debugger 和
  allow-unsigned-executable-memory entitlements
- 编译为 universal binary(x86_64 + arm64)并 ad-hoc 签名
- 修改 keyServiceMac.ts _scanMemoryForAesKey():优先 spawn
  image_scan_helper 子进程,失败时 fallback 到直接调 dylib

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:18:52 +11:00
superclaw
5daa7bce73 feat: update app logic and add unsigned mac arm64 dmg action 2026-03-12 22:56:09 +08:00
hicccc77
4e80f93b30 fix: enable file monitor for macOS (remove platform restriction) 2026-03-12 22:48:16 +08:00
hicccc77
0e42c19d3b feat(mac): implement WeChat PID detection and pass to helper 2026-03-12 20:46:10 +08:00
superclaw
8e0c3306e8 feat: macOS 接入 xkey_helper 并完善密钥获取与诊断 2026-03-11 23:06:20 +08:00
hicccc77
2f32c8e092 fix: koffi 自动转换字符串,无需 decode 2026-03-10 23:44:06 +08:00
hicccc77
d101a79bf8 debug: 添加详细日志输出 2026-03-10 23:36:32 +08:00
hicccc77
caea10a190 feat: 添加详细错误信息
- 区分进程未找到、附加失败、扫描失败
- 提示权限解决方案
2026-03-10 23:30:11 +08:00
hicccc77
6f62ac4ffb fix: 修正 koffi decode 调用方式
- 使用 'string' 而非 'char' 类型
- 移除调试代码
2026-03-10 23:18:11 +08:00
hicccc77
78b6d445fa feat: 添加进程调试信息
- 显示找到的 WeChat 进程列表
- 更新 dylib 支持多进程名
- 帮助诊断附加失败问题
2026-03-10 23:01:58 +08:00
hicccc77
8bee66d404 feat: macOS 密钥获取完整实现
- KeyServiceMac 实现内存扫描
- 复刻 Windows 的图片密钥扫描逻辑
- 使用 Xkey dylib 的 ScanMemoryForImageKey
- 更新 libwx_key.dylib (102KB)
2026-03-10 22:43:47 +08:00
cc
142b00499b Merge pull request #406 from hicccc77/dev
Dev
2026-03-10 22:21:10 +08:00
aits2026
e209bd68d4 fix: export link metadata for arkme json 2026-03-10 14:06:03 +08:00
aits2026
2d4a5fc62f Revert "feat: enrich mutual friend identities in export dialog"
This reverts commit f3027da43885a67583099008991dbfc4def3f4d1.
2026-03-10 09:37:31 +08:00
aits2026
94a010c9b2 feat: enrich mutual friend identities in export dialog 2026-03-10 09:37:31 +08:00
hicccc77
1d08ab945d feat: dbPathService 支持 macOS 微信数据库路径 2026-03-08 13:01:49 +08:00
hicccc77
10ce7d772c feat: cloudControlService 支持 macOS 平台版本识别 2026-03-08 12:25:06 +08:00
hicccc77
e1a23ac606 feat: wcdbCore 支持 macOS 平台 2026-03-08 12:21:16 +08:00
hicccc77
f8ef3f18ff 修复:WCDB 初始化失败时显示错误码
- 将 DLL 返回的错误码保存到 lastDllInitError
- 用户可以看到具体错误码,方便反馈问题
- 配合 DLL 更新,支持更详细的错误码
- 修复 #353
2026-03-07 17:49:24 +08:00
hicccc77
47dbc540ac 优化:扫内存获取密钥时如果找不到则自动扫描更多文件
- 首次扫描 32 个模板文件
- 如果找不到有效的 XOR 密钥,自动扩展到 100 个文件
- 提高密钥获取成功率
2026-03-07 15:15:43 +08:00
hicccc77
766d5ed2af 修复:扫内存获取图片密钥时 XOR 密钥为空默认为 0 的问题
- 当无法从模板文件计算出有效的 XOR 密钥时,返回错误而不是默认为 0x00
- 提前检查 XOR 密钥是否为 null,避免后续使用错误的密钥
- 修复 #355
2026-03-07 15:11:57 +08:00
hicccc77
783b408611 修复:在 getImageData 中使用 imageDecryptService 以支持 msg/attach 目录
- 将 ImageDecryptService 集成到 ChatService
- 用 imageDecryptService.decryptImage() 替换 findDatFile
- 支持通过 hardlink.db 查询高清图片路径
- 修复 #363
2026-03-07 15:00:59 +08:00
hicccc77
24c91269a0 refactor: remove unused better-sqlite3 dependency
- Remove better-sqlite3 from package.json dependencies
- Remove @types/better-sqlite3 from devDependencies
- Remove unused hardlink.db query logic in videoService (always uses wcdbService/DLL)
- Remove unused hardlink.db query logic in chatService (fallback to filesystem search)
- Remove HardlinkState type and hardlinkCache
- Simplify code by removing dead optimization paths
2026-03-07 14:26:26 +08:00
aits2026
0a5cf005a1 Merge remote-tracking branch 'upstream/dev' into codex/ts0305-01-export-module-upgrade 2026-03-06 10:22:36 +08:00
cc
a3ab06509e 一些更新 2026-03-05 20:46:18 +08:00
aits2026
3388b7a122 fix(sns): derive per-user totals from timeline counts map 2026-03-05 17:44:24 +08:00
aits2026
38af8de469 fix(sns): fallback to userName when user_name count is zero 2026-03-05 17:33:41 +08:00
aits2026
db0ebc6c33 feat(sns): show loaded vs total posts in author timeline 2026-03-05 17:24:28 +08:00
aits2026
a5358b82f6 perf(export): further optimize detail loading and prioritize session stats 2026-03-05 16:05:58 +08:00
aits2026
2a9f0f24fd perf(export): speed up session detail stats loading 2026-03-05 15:39:59 +08:00
xuncha
ca972d3e28 导出页优化 2026-03-05 14:26:37 +08:00
tisonhuang
17a9b6102e merge: resolve upstream/dev conflicts in export workflow branch 2026-03-05 13:55:42 +08:00
tisonhuang
c5a6d765ee fix(auth): avoid logout on export-only clear and harden db key auto-fetch 2026-03-05 11:15:44 +08:00
tisonhuang
36f1476782 feat(export): add session name prefix toggle in layout dropdown 2026-03-05 10:36:29 +08:00
tisonhuang
8aaad71784 refactor(sns): remove contact post-count stats flow 2026-03-05 09:34:57 +08:00
cc
53398707aa 修复了导出页面一些小问题 2026-03-04 22:46:31 +08:00
tisonhuang
b6fd842d4e feat(export): add persistent session export records in detail panel 2026-03-04 21:19:11 +08:00
tisonhuang
4b57e3e350 feat(chat): replace jump date modal with inline calendar popover 2026-03-04 21:19:11 +08:00
tisonhuang
cf7190aaec refactor(export): remove task pause/stop and prioritize export by loaded message counts 2026-03-04 21:19:11 +08:00
tisonhuang
7a7e54ea5b perf(export): reuse pre-estimate cache during export run 2026-03-04 21:19:11 +08:00
tisonhuang
7b4aa23f35 perf(chat): speed up session switch and stabilize message cursor 2026-03-04 21:19:11 +08:00
tisonhuang
ac4482bc8b perf(export): reuse aggregated session stats for pre-export estimate 2026-03-04 21:19:11 +08:00