@codai/cbd
Version:
Codai Better Database - High-Performance Vector Memory System with HPKV-inspired architecture and MCP server
83 lines • 3.72 kB
TypeScript
/**
* CBD Universal Database Service - Modern Express.js Implementation
* Based on Microsoft Azure + Express.js 5.x best practice for (const [name, engine] of Object.entries(engines)) {
try {
const engineWithInit = engine as any;
if (engineWithInit && typeof engineWithInit.initialize === 'function') {
await engineWithInit.initialize();
}
console.log(` ✅ ${name} engine ready`);
} catch (error) {
console.error(` ❌ Failed to initialize ${name} engine:`, error);
throw new CBDError(`Failed to initialize ${name} engine`, 500, name.toLowerCase());
}
}res:
* - Production-ready error handling middleware
* - Proper async/await error handling
* - Modern Express.js patterns
* - Zero signal handling conflicts
*/
import express from 'express';
import { DocumentStorageEngine } from './engines/DocumentStorageEngine.js';
import { VectorStorageEngine } from './engines/VectorStorageEngine.js';
import { GraphStorageEngine } from './engines/GraphStorageEngine.js';
import { KeyValueStorageEngine } from './engines/KeyValueStorageEngine.js';
import { TimeSeriesStorageEngine } from './engines/TimeSeriesStorageEngine';
import { FileStorageEngine } from './engines/FileStorageEngine.js';
import { SuperiorAIOrchestrator } from './ai/SuperiorAIOrchestrator';
import { EnterpriseSecurityOrchestrator } from './security/EnterpriseSecurityOrchestrator';
import { IntelligentCloudSelector } from './cloud/IntelligentCloudSelector';
import { MultiCloudConfiguration } from './cloud/MultiCloudConfiguration';
import DeveloperEcosystem from './ecosystem/DeveloperEcosystem';
import FutureTechnologies from './future/FutureTechnologies';
import { ACMEChallengeHandler } from './ssl/ACMEChallengeHandler.js';
export declare class CBDUniversalServiceSimple {
protected app: express.Application;
protected documentEngine: DocumentStorageEngine;
protected vectorEngine: VectorStorageEngine;
protected graphEngine: GraphStorageEngine;
protected keyValueEngine: KeyValueStorageEngine;
protected timeSeriesEngine: TimeSeriesStorageEngine;
protected fileEngine: FileStorageEngine;
protected aiOrchestrator: SuperiorAIOrchestrator;
protected securityOrchestrator: EnterpriseSecurityOrchestrator;
protected cloudSelector: IntelligentCloudSelector;
protected cloudConfig: MultiCloudConfiguration;
protected developerEcosystem: DeveloperEcosystem;
protected futureTechnologies: FutureTechnologies;
protected acmeHandler: ACMEChallengeHandler;
private initialized;
private startTime;
constructor();
initialize(): Promise<express.Application>;
private initializeEngines;
protected setupRoutes(): void;
private setupDocumentRoutes;
private setupVectorRoutes;
private setupGraphRoutes;
private setupKeyValueRoutes;
private setupTimeSeriesRoutes;
private setupErrorHandling;
private setupFileRoutes;
/**
* Get service information for monitoring and debugging
*/
getServiceInfo(): any;
/**
* Setup AI Services routes - Phase 3: Superior AI Integration
*/
private setupAIRoutes;
/**
* Setup Enterprise Security routes - Phase 3: Superior Security & Compliance
*/
private setupSecurityRoutes;
/**
* Setup Developer Ecosystem routes - Phase 4: Innovation & Scale
*/
protected setupEcosystemRoutes(): void;
/**
* Setup Future Technologies routes - Phase 4: Innovation & Scale
*/
protected setupFutureTechnologiesRoutes(): void;
}
//# sourceMappingURL=CBDUniversalService.d.ts.map