refactor(server): move the install audit trail from core to the server (P1.2, UF-040)
Core keeps only shared infrastructure, so InstallAuditStore leaves it and lives in packages/server/src/local/install-audit.ts. The trail itself stays: the Audit and Activity tabs, the extend and export routes, and the threat model entry keep working on the same waggle.db table. - @waggle/shared gets RecordAuditInput and the narrow InstallAuditRecorder (record only), which the agent's skill tools now depend on. - The server creates the audit table before the one-time legacy copy, which no longer constructs it in core. - UF-040: GET /api/debug/logs called prepare() on the store's private db wrapper, which has none, so the support bundle never carried recent installs. It now reads them through getRecentSummary().
This commit is contained in:
@@ -99,7 +99,8 @@ Already removed: tiers and Stripe (P0.1); KVARK, enterprise packs, the complianc
|
||||
subsystem, self-learning and `packages/optimizer` (P1.4, P1.6, ADR-0004); the team and
|
||||
WaggleDance routes in the sidecar and `team-sync` in core, with the team server moved to
|
||||
`packages/team-server` (P1.1); the single-mind to multi-mind migration in core (P1.2).
|
||||
Still to be removed, so do not build on it: `install-audit.ts` in core (P1.2).
|
||||
The install audit trail moved from core to the server (`packages/server/src/local/install-audit.ts`,
|
||||
P1.2); other packages write to it through `InstallAuditRecorder` from `@waggle/shared`.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user