8 Commits

Author SHA1 Message Date
lx1056758714-glitch
5325510aec Remove MCP message subscription and improve session content
Removed MCP实时消息订阅相关功能,包括订阅管理、持久化、菜单项和相关API接口,简化了http/service.go、manager.go和app.go。优化了会话(SessionV4)内容显示逻辑,未命中摘要时根据消息类型显示如[图片]、[语音]等标签,并在数据源中补充last_msg_type和last_msg_sub_type字段。修复了chatlog接口format=text时host参数传递问题,保持输出简洁。
2026-01-25 09:44:36 +08:00
lx1056758714-glitch
b205c5386a Unescape HTML entities in media URLs
Updated SNS media parsing functions to automatically unescape HTML entities in URLs and related fields, ensuring correct URL formatting. Also added documentation in README about this URL format optimization.
2026-01-14 11:48:36 +08:00
lx1056758714-glitch
caf4f817db Add SNS (Moments) database support with intelligent XML parsing
Features:
- Add sns.db database integration and auto-detection
- Implement XML content parser for moments data (internal/model/sns.go)
  - Extract basic info: create time, nickname, content description
  - Parse location data: city, coordinates, POI name, address
  - Recognize media types: image, video, article, finder (video account)
  - Extract structured data: image count, video duration, article info
- Add "朋友圈检索" (Moments Search) page in HTTP UI
- Support multiple output formats:
  - JSON: Structured data for programmatic access
  - Plain text: Human-readable format with emoji icons
  - Raw XML: Original XML content for debugging
  - CSV/Excel: Export for data analysis
- Support query features: filter by username, limit, offset pagination
- Database browser integration: SNS database visible in decrypted DB list

Technical changes:
- internal/wechatdb/datasource/v4/datasource.go: Add SNS group config and query methods
- internal/wechatdb/datasource/datasource.go: Add SNS interface methods
- internal/wechatdb/wechatdb.go: Add GetSNSTimeline and GetSNSCount
- internal/chatlog/database/service.go: Add SNS service layer methods
- internal/chatlog/http/route.go: Add /api/v1/sns endpoint with format support
- internal/chatlog/http/static/index.htm: Add moments search tab and UI
- .gitignore: Ignore tmpclaude directories and sns.md test file
- README.md: Update changelog for 2026-01-14

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-14 10:12:32 +08:00
lx1056758714-glitch
9de140dd15 Enhance image file handling and Rec directory support
Improved image file access by supporting files in Rec subdirectories using the extra_buffer field, and enhanced decryption logic to handle files without extensions as .dat files, with fallback to serving as-is if decryption fails. Updated MediaV4 model and datasource to extract and use extra_buffer, and revised README to document these changes.
2026-01-13 18:55:42 +08:00
lx1056758714-glitch
84222b3ca8 Add ChatLab JSON export support
Introduces support for exporting chat logs in the ChatLab standardized JSON format. Adds a new export option in the UI, implements format conversion in the backend, and provides a download feature for the exported data. Also includes the initial ChatLab format specification and related model conversion logic.
2025-12-30 12:28:36 +08:00
lx1056758714-glitch
428dabe05a Add MCP media tools, real-time subscriptions, and UI
Major MCP extension: adds tools for media content retrieval, OCR, real-time message subscription with webhook push, chat activity analysis, user profile, and shared file search. Implements persistent subscription management, new prompt templates, and real-time resource endpoints. Updates UI to display active MCP subscriptions, enhances CSV export with MessageID, and documents all new features in the changelog. Removes Dockerfile and docker-compose.yml.
2025-12-18 21:37:55 +08:00
teest114514
ec41b0d2be Remove macOS/WeChat 3.x support and related code
Dropped all code, documentation, and models related to macOS and WeChat 3.x (darwinv3) support, including command-line tools, model definitions, and documentation files. Updated README to clarify that only Windows and WeChat 4.x are supported, and improved instructions for image key acquisition. Enhanced restart-and-get-key logic with status callbacks and retry handling for more robust key extraction after WeChat restarts.
2025-12-16 21:35:01 +08:00
lx1056758714-glitch
3d04a7f3eb 同步本地代码 2025-12-13 17:30:38 +08:00