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
address review: expose errorDetection on aiToolkit.services (iter 8)
[._.]/ Adam Eivyf0b11b80a411
diff --git a/server/lib/aiToolkit/index.js b/server/lib/aiToolkit/index.jsindex ac228eca68..ec510b43ac 100644--- a/server/lib/aiToolkit/index.js+++ b/server/lib/aiToolkit/index.js@@ -14,6 +14,7 @@ import { createProvidersRoutes } from './routes/providers.js';import { createRunsRoutes } from './routes/runs.js';import { createPromptsRoutes } from './routes/prompts.js';import { createProviderStatusRoutes } from './routes/providerStatus.js';+import * as errorDetection from './errorDetection.js';const __dirname = dirname(fileURLToPath(import.meta.url));@@ -103,7 +104,13 @@ export function createAIToolkit(config = {}) {providers: providerService,runner: runnerService,prompts: promptsService,- providerStatus: providerStatusService+ providerStatus: providerStatusService,+ // Expose error detection so the PortOS runner override (and any+ // direct toolkit consumer) can call `services.errorDetection.analyzeError`+ // without separately importing the module. Without this, CLI runs that+ // exit non-zero silently skip error analysis and leave metadata.error+ // null.+ errorDetection},routes: {