feat: add async SQLite on Node 24 and improve messaging diagnostics (#520)

Move database work off the main thread on Node.js 24 and improve message handling and runtime diagnostics.

Preserve migration, restart, and concurrency coverage with the async SQLite driver.
This commit is contained in:
MliKiowa authored and GitHub committed 2026-10-13 10:12:47 +08:00
1 parent 20f48d11ec
commit c7428363cb
170 files changed
+7748 -3913

No files matched your search

@@ -38,6 +38,7 @@ describe('forward metadata through upload and cached reads', () => {
const ctx = {
selfId: 10001,
bridge: {
identity: { nickname: 'SnowLuma' },
apis: {
forward,
message: {
@@ -51,7 +52,7 @@ describe('forward metadata through upload and cached reads', () => {
},
},
},
messageStore: { findEvent: () => null, findMedia: () => null },
messageStore: { findEvent: () => null, findMedia: () => null, storeEvent: vi.fn() },
cacheMessageMeta: vi.fn(),
converterCtx: {
selfId: 10001,
@@ -104,9 +105,7 @@ describe('forward metadata through upload and cached reads', () => {
if (nested) {
expect(
(await api.getForwardMsg(`metadata-true-${enrich}-1`))[0]!.sender,
).toMatchObject({
title: 'inner title',
});
).toMatchObject({ title: 'inner title' });
}
const fetched = await forward.fetch(forwardId!);