feat: 数据删除机制(purge 物理清空 + 报告页隐私区块 + 删后回同意门)+ 测试桩补 purge

This commit is contained in:
Jayway Liu
2026-10-04 07:42:47 +08:00
parent ade1f719e1
commit e022faf975
14 changed files with 330 additions and 14 deletions
+3
View File
@@ -34,6 +34,9 @@ class MemoryStore implements EventStore {
async list(sessionId?: string) {
return sessionId ? this.events.filter((e) => e.sessionId === sessionId) : [...this.events];
}
async purge() {
this.events = [];
}
}
const key = loadApiKey();