import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { EvolutionController } from './evolution.controller';
import { EvolutionService } from './evolution.service';
import { ExperienceExtractorService } from '../infrastructure/claude/experience-extractor.service';
import { ConversationORM } from '../infrastructure/database/entities/conversation.orm';
import { MessageORM } from '../infrastructure/database/entities/message.orm';
import { SystemExperienceORM } from '../infrastructure/database/entities/system-experience.orm';

@Module({
  imports: [
    TypeOrmModule.forFeature([
      ConversationORM,
      MessageORM,
      SystemExperienceORM,
    ]),
  ],
  controllers: [EvolutionController],
  providers: [
    EvolutionService,
    ExperienceExtractorService,
  ],
  exports: [EvolutionService],
})
export class EvolutionModule {}
