Commit Graph
1423 Commits
Author SHA1 Message Date
digua 25071890b2 ci(release): streamline stable and prerelease publishing
Limit prereleases to desktop artifacts, keep stable releases gated on CLI success, and start Docker publishing as soon as the npm package is available.
2026-08-06 16:02:40 +08:00
digua 78e90abb3f fix(electron): close export database handles
Close the uncached readonly adapter after every Desktop export so Windows can delete the session without restarting. Add regression coverage for the successful export lifecycle.
2026-08-06 15:17:44 +08:00
digua 1a774592ff fix(electron): close worker database before deleting sessions 2026-08-06 15:17:44 +08:00
digua b130e43e73 release: v0.34.3 v0.34.3 2026-08-06 14:29:39 +08:00
digua 202b9d70f7 fix(insight): restore activity calendar colors 2026-08-05 22:24:32 +08:00
digua b569293846 fix(import): stabilize QQ automatic session matching
Match ownerless QQ exports safely across UID and UIN drift, preserve merged message scopes through single and batch imports, and apply only sender mappings proven by overlapping platform message IDs. Reject incomplete group mappings to avoid member identity corruption.
2026-08-05 22:16:24 +08:00
digua f0d4fdeeb3 fix(merge): preserve valid session identity metadata
Carry owner metadata through merge exports when every source agrees and the owner resolves to a merged member. Drop conflicting or unmappable owner identifiers.
2026-08-05 22:16:24 +08:00
digua 9ac7f1abeb fix(parser): omit unreliable QQ owner metadata
QCE exports can mix UIN and UID namespaces while exposing only observed senders. Keep owner metadata unset across TypeScript, chunked, and native parser paths unless it can be mapped safely.
2026-08-05 22:16:24 +08:00
digua c883e6ab47 fix(merge): isolate ambiguous private exports
Keep one-member private exports source-local until exact message overlap proves they belong to the same chat. This prevents unrelated outgoing-only chats from losing messages when platform IDs collide.
2026-08-05 17:02:09 +08:00
digua 691293b46f fix(merge): preserve messages during deduplication
Carry platform and reply IDs through merge and shared import paths so stable IDs drive deduplication.

Keep unrelated chats isolated, bridge only verified overlapping sources, and backfill stable IDs onto retained fallback copies.
2026-08-05 17:02:09 +08:00
digua d5f34af445 refactor(parser): standardize format identifiers 2026-08-04 17:29:09 +08:00
digua fdd0856b5d docs: clarify branch workflow 2026-08-04 17:29:09 +08:00
digua 750bfc03b8 docs: require feature branches for commits 2026-08-03 18:45:00 +08:00
digua 3e080d21c4 perf(import): avoid loading existing messages for dedup 2026-08-03 18:45:00 +08:00
digua 883fa0896d docs(search): record FTS removal benchmarks 2026-08-03 17:28:19 +08:00
digua 256e93605a refactor(database): remove legacy session FTS 2026-08-03 17:28:19 +08:00
digua ef4f8de74d refactor(search): stop maintaining session FTS 2026-08-03 17:28:19 +08:00
digua 50a390b2de refactor(search): use LIKE and dense retrieval 2026-08-03 17:28:19 +08:00
digua 084b950ab2 fix(relationships): replace removed button groups 2026-08-03 10:45:11 +08:00
digua aef17058d1 fix(insights): unify loading transitions 2026-08-03 10:45:11 +08:00
digua ec10d0dded fix(ranking): correct dynamic keyword analysis
Forward the selected keywords through the shared HTTP route without persistent caching, keep large templates out of the request URL, and reject empty keyword sets before building a regular expression. Ignore superseded analysis responses so rapid keyword changes cannot restore stale rankings or loading state.
2026-08-02 23:41:47 +08:00
kelaocai 0f527a3c45 fix(ranking): prevent crash in keyword multi-color mode for unknown types
getKeywordColor() indexed KEYWORD_COLORS with indexOf() result, which
returns -1 for types not present in currentKeywords (e.g. the
server-generated '其他' aggregate in typeDistribution). KEYWORD_COLORS[-1]
is undefined, so reading .wrapBg threw a TypeError when enabling
multi-color mode. Fall back to a stable keyword hash for unknown types.
2026-08-02 21:49:41 +08:00
digua 5f4eb4bb68 fix(release): publish macOS for Apple Silicon only v0.34.2 2026-08-01 18:06:48 +08:00
digua 034f0b768f release: v0.34.2 2026-08-01 17:09:49 +08:00
digua 1e339875e1 fix(import): ignore AppleDouble database sidecars 2026-08-01 17:00:09 +08:00
digua 8eae64df8e test(frontend): replace source scans with behavior checks 2026-08-01 16:41:30 +08:00
digua 2bb5eb3715 test(apps): strengthen application and build verification 2026-08-01 16:41:30 +08:00
digua bdfe4bbeb5 test(runtime): improve shared behavior coverage 2026-08-01 16:41:30 +08:00
digua 7bdd1fe751 fix(runtime): harden migration and cleanup safety 2026-08-01 16:41:30 +08:00
digua 43c9229935 docs(test): define value-based testing rules 2026-08-01 16:41:30 +08:00
digua df5f335f53 docs(logging): clarify logging guidelines
Keep the agent guidance focused on decisions developers must make while leaving rotation and other automatic logger behavior to the implementation.
2026-08-01 13:19:41 +08:00
digua 69a2b981c7 fix(logging): preserve preload polling errors
Record background preload polling failures with the original Error and clarify that logging review severity and tests should follow user impact rather than mechanical rules.
2026-08-01 13:19:41 +08:00
digua 7d20f70870 fix(ai): release worker after model preload
Continue model status tracking after UI polling stops so completed or failed preloads can enter the normal idle-close lifecycle.
2026-08-01 13:19:41 +08:00
digua 39644b2507 fix(cli): verify embedding runtime before atomic rename 2026-08-01 13:19:41 +08:00
digua f96fef7b46 feat(cli): install local embedding runtime on demand 2026-08-01 13:19:41 +08:00
digua 93fc26fb83 fix(cli): avoid installing local embedding runtime 2026-08-01 13:19:41 +08:00
kelaocai d48745f00b fix(cli): declare sqlite-vec and @huggingface/transformers as runtime dependencies
The CLI tsup build inlines @openchatlab/node-runtime into dist chunks.
Both sqlite-vec and @huggingface/transformers load platform-specific
native packages at runtime (sqlite-vec-linux-arm64, onnxruntime-node,
sharp), so inlining them breaks global/npm and Docker installs of
chatlab-cli: the bundled chunks reference native packages that were
never installed, and configuring the semantic index vector model fails
with HTTP 500 (Cannot find package 'sqlite-vec-linux-arm64').

Declare both packages as chatlab-cli dependencies and mark them as tsup
external so they are installed from npm with their native bindings,
matching how better-sqlite3 and @node-rs/jieba are already handled.
2026-08-01 11:33:41 +08:00
digua 982f37ced6 chore(import): remove obsolete streaming benchmark
Remove the one-off synthetic streaming import benchmark and its script-only tests now that the performance investigation and results have been finalized.
2026-07-31 20:22:50 +08:00
digua 3debb13ff9 fix(import): wire batch adapters and failure diagnostics
Preserve batch support through telemetry, forward item-scoped progress across Desktop and CLI Web, and retain original backend failure details for diagnostics and unfinished results.
2026-07-31 20:22:50 +08:00
digua 62b7104f1f feat(import): add safe batch coordinator 2026-07-31 20:22:50 +08:00
digua 4155386676 fix(import): generate session index once 2026-07-31 17:22:05 +08:00
digua 8c4689b304 perf(import): optimize write and FTS batches 2026-07-31 17:04:56 +08:00
digua b67a85b5db fix(import): account for transaction phase timings
Measure message transaction boundaries separately so final commits are included in message write diagnostics without double counting callback work. Accumulate intermediate and final WAL checkpoint durations in the checkpoint phase.
2026-07-31 16:49:27 +08:00
digua bd7c838c3f fix(import): make performance baselines trustworthy
Run benchmarks in isolated GC-enabled workers, report sparse RSS samples accurately, and hash canonical imported output. Require the Rust Native WeFlow kernel and reject any measured import that falls back to TypeScript so timing and memory baselines remain comparable.
2026-07-31 16:37:40 +08:00
digua bbbd0bb3c6 perf(import): establish end-to-end import baseline 2026-07-31 16:37:40 +08:00
digua dab38f1b1c perf(parser): optimize WhatsApp text parsing 2026-07-30 22:35:26 +08:00
digua f0bdba63fb perf(parser): optimize browser parsing hot paths 2026-07-30 22:15:13 +08:00
digua 4a1f0b54a1 fix(build): declare native parser benchmark dependency
Declare the native parser workspace package used by the benchmark so workspace dependency validation passes in CI.
2026-07-30 21:01:20 +08:00
digua 2e8ca2bebd fix(parser): preprocess large native fallbacks
Retry strict native fallback through the slim QQ export path so compatible large imports retain the existing memory safeguard.
2026-07-30 21:01:20 +08:00
digua 5d943ab0b3 feat(parser): add shuakami/qq-chat-exporter native parser 2026-07-30 21:01:20 +08:00