Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
Merge pull request #2305 from atomantic/next/issue-2144
[._.]/ Adam Eivy16f3ebccfd23
diff --cc server/routes/privacy.jsindex 540604e202,857a6a49b6..5f9801d891--- a/server/routes/privacy.js+++ b/server/routes/privacy.js@@@ -39,8 -43,14 +43,15 @@@ importdeleteOrg,setOrgHoldings,getHoldingsForOrg,+ getOrgsBySocialAccounts,} from '../services/privacyOrgs.js';+ import {+ listBrokers,+ refreshBrokers,+ listBrokerCases,+ getScanStatus,+ } from '../services/privacyBrokers.js';+ import { runScanPass } from '../services/privacyScan.js';const router = Router();diff --cc server/routes/privacy.test.jsindex 1321ebe820,4fd0153c38..4a38cf3f8d--- a/server/routes/privacy.test.js+++ b/server/routes/privacy.test.js@@@ -28,9 -28,19 +28,20 @@@ vi.mock('../services/privacyOrgs.js', (deleteOrg: vi.fn(async () => ({ ok: true })),setOrgHoldings: vi.fn(async (id, holdings) => holdings.map((h) => ({ orgId: id, ...h }))),getHoldingsForOrg: vi.fn(async () => [{ orgId: 'o1', vaultRecordId: 'v1', vaultMaskedValue: 'a•••@b.com' }]),+ getOrgsBySocialAccounts: vi.fn(async () => [{ socialAccountId: 'acct-1', orgId: 'o1', orgName: 'Acme Bank' }]),}));+ vi.mock('../services/privacyBrokers.js', () => ({+ listBrokers: vi.fn(async () => [{ id: 'spokeo', name: 'Spokeo', enabled: true }]),+ refreshBrokers: vi.fn(async () => ({ fetched: 3, added: 2, sources: { badbool: 2, caRegistry: 1 } })),+ listBrokerCases: vi.fn(async () => [{ id: 'case-1', brokerId: 'spokeo', state: 'found' }]),+ getScanStatus: vi.fn(async () => ({ enabledBrokers: 20, caseCounts: { found: 1 }, dueForRecheck: 3 })),+ }));++ vi.mock('../services/privacyScan.js', () => ({+ runScanPass: vi.fn(async (opts) => ({ scanned: 2, verdicts: { found: 1, not_found: 1 }, skipped: 0, brokers: 20, _opts: opts })),+ }));+const privacyRoutes = (await import('./privacy.js')).default;const service = await import('../services/privacyVault.js');const orgService = await import('../services/privacyOrgs.js');