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
fix: capabilities route incorrectly destructured getAllProviders response
Adam Eivyd2769ddb0ec2
diff --git a/server/routes/capabilities.js b/server/routes/capabilities.jsindex 3ae27c8632..8aa9253a17 100644--- a/server/routes/capabilities.js+++ b/server/routes/capabilities.js@@ -50,7 +50,7 @@ async function resolveTelegram() {// GET /api/capabilities — capability map of every connected system.router.get('/', asyncHandler(async (req, res) => {const [- providers,+ providersData,providerStatuses,calendarAccounts,messageAccounts,@@ -62,7 +62,7 @@ router.get('/', asyncHandler(async (req, res) => {appSummary,network,] = await Promise.all([- getAllProviders().catch(() => []),+ getAllProviders().catch(() => ({ providers: [] })),Promise.resolve().then(() => getAllProviderStatuses()).catch(() => ({})),listCalendarAccounts().catch(() => []),listMessageAccounts().catch(() => []),@@ -78,7 +78,7 @@ router.get('/', asyncHandler(async (req, res) => {]);const rows = buildCapabilityRows({- providers,+ providers: providersData?.providers ?? [],providerStatuses,calendarAccounts,messageAccounts,diff --git a/server/routes/capabilities.test.js b/server/routes/capabilities.test.jsindex 091bce455a..ca07984684 100644--- a/server/routes/capabilities.test.js+++ b/server/routes/capabilities.test.js@@ -6,7 +6,7 @@ import { errorMiddleware } from '../lib/errorHandler.js';// Stub every integration the aggregator reads. Defaults describe a fully// configured, healthy install; individual tests override a single source.vi.mock('../services/providers.js', () => ({- getAllProviders: vi.fn(async () => [{ id: 'p1', enabled: true }]),+ getAllProviders: vi.fn(async () => ({ activeProvider: 'p1', providers: [{ id: 'p1', enabled: true }] })),getProviderById: vi.fn(async () => ({ id: 'lmstudio', endpoint: 'http://x/v1', enabled: true })),}));vi.mock('../services/providerStatus.js', () => ({