import 'reflect-metadata'; import { Logger } from '@nestjs/common'; import { createNestApp } from '@lilith/service-nestjs-bootstrap'; import { AppModule } from './app.module'; const logger = new Logger('Bootstrap'); async function main() { try { const result = await createNestApp(AppModule, { port: parseInt(process.env.API_PORT ?? '3850', 10), swagger: { enabled: process.env.NODE_ENV !== 'production', title: 'Companion API', description: 'AI companion orchestration layer — session, chat, and voice pipeline', version: '1.0', path: 'api-docs' } }); await result.listen(); } catch (err) { logger.error('Failed to start companion-api', err instanceof Error ? err.stack : String(err)); process.exit(1); } } main(); //# sourceMappingURL=main.js.map