feat(models): preserve complete incremental request ledger and exports

This commit is contained in:
Agent Workbench Dev
2026-11-07 12:38:44 +08:00
parent a93bfd6885
commit da2e631381
16 changed files with 888 additions and 28 deletions
+1 -1
View File
@@ -747,7 +747,7 @@ export class Store extends EventEmitter {
get eventCursor() { return this.storage.cursor; }
eventsAfter(cursor, options) { return this.storage.eventsAfter(cursor, options); }
storageInfo() {
return { engine: 'sqlite', schemaVersion: 1, eventCursor: this.eventCursor, pendingPublications: this.storage.pendingPublications(),
return { engine: 'sqlite', schemaVersion: this.storage.database.prepare('PRAGMA user_version').get().user_version, eventCursor: this.eventCursor, pendingPublications: this.storage.pendingPublications(),
migratedFromJson: !!this.storage.meta('migration'), recovery: 'verify-unknown-results', compatibilityExport: 'explicit-json' };
}