feat(bridge): detect local QQ accounts with shared process snapshots (#525)

Read QQ account databases and attribute identities to their owning processes. Share snapshots across REST, watcher updates and login reconciliation, discard stale results, and report detection failures.
This commit is contained in:
H3CoF6 authored and GitHub committed 2026-10-18 12:10:37 +08:00
1 parent 8e24995fc3
commit f6ca9d5f65
38 files changed
+2979 -1534

No files matched your search

-24
View File
@@ -1947,30 +1947,6 @@ export async function initWebUI(
processAction('refresh', (pid) => hookManager!.refreshProcess(pid)),
);
app.get('/api/processes/:pid/probe-login', async (c) => {
if (!hookManager) {
return c.json({ info: null, message: 'hook manager is not available' }, 503);
}
const pid = Number(c.req.param('pid'));
if (!Number.isInteger(pid) || pid <= 0 || pid > MAX_PID) {
return c.json({ info: null, message: 'invalid pid' }, 400);
}
try {
const info = await hookManager.probeProcessLoginInfo(pid);
return c.json({ info });
} catch (err) {
log.warn(
'probe-login pid=%d failed: %s',
pid,
err instanceof Error ? err.message : String(err),
);
return c.json({ info: null, message: '探测失败' }, 500);
}
});
app.get('/api/config/:uin', (c) => {
const uin = c.req.param('uin');