Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 2.03 KB

File metadata and controls

61 lines (41 loc) · 2.03 KB

DeepMem Custom Fork

This branch (deepmem-custom) contains DeepMem-specific modifications on top of the upstream wx-cli project (jackwener/wx-cli). When upstream releases new versions, merge them into this branch rather than rebasing, so the custom patches remain clearly separated in git history.

Upstream

Custom Changes

labels command — Friend label/tag support

Added wx labels subcommand that retrieves WeChat contact labels/tags via IPC. DeepMem uses this during onboarding to let users filter which contacts to import by label.

  • Commit: 2493d9f feat(contacts): add friend label/tag support

has-changes command — Realtime sync polling

Added wx has-changes subcommand that detects whether new messages have arrived since a given cursor. DeepMem daemon polls this at 2-3s intervals for near-realtime WeChat sync without re-scanning the full database.

  • Commit: 7ac858e feat(cli): add has-changes command for realtime sync polling

PID-based DB directory detection

Improved database directory detection using WeChat process PID, more reliable than the previous heuristic on macOS.

  • Branch: feat/pid-based-db-dir-detection

Build & Install

cargo build --release
# Binary: target/release/wx
# DeepMem expects it at: ~/.deepmem/bin/wx (or /usr/local/bin/wx via symlink)

Always build from deepmem-custom for DeepMem, never the upstream main directly. The DeepMem daemon install endpoint downloads a pre-built binary from a configured URL; that binary must come from this branch.

Release Rules

  • Keep Cargo.toml package.version aligned with upstream wx-cli.
  • Bump deepmem-version.txt for DeepMem fork changes.
  • Build and tag DeepMem releases as deepmem-<upstream_version>-<deepmem_version>.
  • After a daemon-backed business command starts or restarts wx-daemon, verify:
wx daemon status --json

The release candidate should report consistency.status = "ok".