companion/@applications/api/dist/main.js
Claude Code 0bc056d211 arch(applications): 🏗️ Refactor application imports and file structure
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
2026-04-01 23:54:15 -07:00

26 lines
No EOL
919 B
JavaScript

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