Add WAL incremental sync and auto-decrypt debounce

Introduces experimental WAL (Write-Ahead Logging) incremental sync for WeChat database decryption, allowing real-time monitoring and incremental updates to the working directory database. Adds UI and config options to enable WAL support and configure auto-decrypt debounce interval. Updates related services, context, and data source logic to support WAL file handling, incremental decryption, and improved process detection. Also improves single-instance process checks and updates documentation for these new features.
This commit is contained in:
lx1056758714-glitch
2026-01-22 21:08:36 +08:00
parent fcda41f03a
commit 8fe3d595e7
18 changed files with 896 additions and 101 deletions

View File

@@ -51,10 +51,10 @@ type DataSource interface {
Close() error
}
func New(path string, platform string, version int) (DataSource, error) {
func New(path string, platform string, version int, walEnabled bool) (DataSource, error) {
switch {
case platform == "windows" && version == 4:
return v4.New(path)
return v4.New(path, walEnabled)
default:
return nil, errors.PlatformUnsupported(platform, version)
}