Add document, knowledge, and automation subsystems
Migration 040 creates documents, knowledge_entries, and automation_rules tables. Full-stack services (DocumentService, KnowledgeService, AutomationService), IPC handlers, preload bridge, desktop-api types, and domain records wired into the snapshot. UI pages follow next.
This commit is contained in:
1 parent
3b115e8bec
commit
b5b8f3ba3c
13 files changed
+344
-1
No files matched your search
@@ -156,6 +156,10 @@ export class SnapshotService {
|
||||
prBotGates,
|
||||
auditReplayRuns: list(this.db, "audit_replay_runs", "created_at desc"),
|
||||
auditEvents: list<AppSnapshot["auditEvents"][number]>(this.db, "audit_events", "created_at desc").slice(0, 200),
|
||||
documents: list(this.db, "documents", "updated_at desc"),
|
||||
knowledgeEntries: list(this.db, "knowledge_entries", "updated_at desc"),
|
||||
automationRules: list<AppSnapshot["automationRules"][number]>(this.db, "automation_rules", "priority asc")
|
||||
.map((rule) => ({ ...rule, enabled: toBool(rule.enabled) })),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user