Stranded-worktree preservation commit (this branch is local-only + 28 behind main; ACS watches the main tree, not this worktree, so committing manually so the work isn't lost). Integration to main is a follow-up. - @features/content-social/ai-core: drop derive engine + K3 gate (21 tests) - @features/content-ingestor: classify-newest-first + configurable 1wk-offset hot/stocked planner (17 tests) - platform-api: content-assets / content-drops / content-drop-legs CRUD modules + entities + enums; content-drops asset_ids enrichment + cluster endpoints; content-assets filtered list + idempotent upsert - platform-api fixes (also latent-broken on main): ioredis named import, entities spread, agent-actions @ApiProperty, content-post confidence transformer - migrations: 0009_content_drops (renumbered from 0007 — main holds 0007/0008), 0010_content_asset_classification (is_explicit/content_class/quality_score, is_explicit DEFAULT TRUE fail-safe) - design: content-drop-composer.screen + content-drop.flow Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
29 lines
932 B
TypeScript
29 lines
932 B
TypeScript
import 'reflect-metadata';
|
|
|
|
import { Logger } from '@nestjs/common';
|
|
import { ConfigService } from '@nestjs/config';
|
|
import { NestFactory } from '@nestjs/core';
|
|
|
|
import { AppModule } from './app.module.js';
|
|
|
|
async function bootstrap(): Promise<void> {
|
|
const app = await NestFactory.create(AppModule, { bufferLogs: true });
|
|
const config = app.get(ConfigService);
|
|
const logger = new Logger('Bootstrap');
|
|
|
|
await app.init();
|
|
|
|
const port = config.get<number>('CONTENT_INGESTOR_HEALTH_PORT', 3825);
|
|
await app.listen(port, '0.0.0.0');
|
|
|
|
logger.log(
|
|
`content-ingestor running, health on :${port} ` +
|
|
`(poll ${config.get<number>('INGEST_POLL_INTERVAL_MS', 300000)}ms, env=${config.get('NODE_ENV') ?? 'development'})`,
|
|
);
|
|
}
|
|
|
|
bootstrap().catch((err: unknown) => {
|
|
const logger = new Logger('Bootstrap');
|
|
logger.error('Fatal bootstrap error', err instanceof Error ? err.stack : String(err));
|
|
process.exit(1);
|
|
});
|