All files / src/ai-actions ai-actions.module.ts

100% Statements 19/19
100% Branches 0/0
100% Functions 3/3
100% Lines 17/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 316x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x 6x                 18x 18x 18x           6x  
import { forwardRef, Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AIAction, SessionInput } from '../core-entities';
import { AIActionsService } from './ai-actions.service';
import { AIActionsController } from './ai-actions.controller';
import { ExecutionLogsModule } from '../execution-logs/execution-logs.module';
import { AIActionBatchService } from './ai-action-batch.service';
import { ApplicationStateModule } from '../application-state/application-state.module';
import { EventsModule } from '../events/events.module';
import { SessionInputsModule } from '../session-inputs/session-inputs.module';
import { InteractiveChatModule } from '../interactive-chat/chat.module';
import { LlmResponsesModule } from '../llm-responses/llm-responses.module';
import { McpModule } from '../mcp/mcp.module';
 
@Module({
  imports: [
    TypeOrmModule.forFeature([AIAction, SessionInput]), // SessionInput is needed to check existence
    ExecutionLogsModule,
    ApplicationStateModule,
    EventsModule,
    McpModule,
    forwardRef(() => SessionInputsModule),
    forwardRef(() => InteractiveChatModule),
    forwardRef(() => LlmResponsesModule),
  ],
  controllers: [AIActionsController],
  providers: [AIActionsService, AIActionBatchService],
  exports: [AIActionsService, AIActionBatchService],
})
export class AIActionsModule {}