mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
Takeover of #1601 (stacked on the #1592 takeover), rebased onto current master. Adds /admin/api/sources (buildSyncStatusReport over the new queryAdminSources helper — deliberately no local_path filter so push-only brains still list sources) and four federated-read routes behind requireAdmin that reuse the same grantReadCore/revokeReadCore/ setFederatedReadCore helpers as the CLI. Admin SPA gains a Sources page + per-client manage-reads UI; admin/dist rebuilt from current admin/src. New test/admin-sources.test.ts pins the sources SQL (archived filter, null-local_path inclusion, JSONB config shape). Co-authored-by: bitak1 <bitak1@users.noreply.github.com> Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>