11import { Module } from '@nestjs/common' ;
2- import { ModelsModule } from './usecases/models/models.module' ;
3- import { DatabaseModule } from './infrastructure/database/database.module' ;
42import { ConfigModule } from '@nestjs/config' ;
53import { CortexModule } from './usecases/cortex/cortex.module' ;
64import { ModelsCommand } from './infrastructure/commanders/models.command' ;
7- import { ExtensionModule } from './infrastructure/repositories/extensions/extension.module' ;
85import { HttpModule } from '@nestjs/axios' ;
96import { InitRunModeQuestions } from './infrastructure/commanders/questions/init.questions' ;
107import { ModelListCommand } from './infrastructure/commanders/models/model-list.command' ;
@@ -15,26 +12,18 @@ import { ModelStartCommand } from './infrastructure/commanders/models/model-star
1512import { ModelStopCommand } from './infrastructure/commanders/models/model-stop.command' ;
1613import { ModelGetCommand } from './infrastructure/commanders/models/model-get.command' ;
1714import { ModelRemoveCommand } from './infrastructure/commanders/models/model-remove.command' ;
18- import { RunCommand } from './infrastructure/commanders/shortcuts/ run.command' ;
15+ import { RunCommand } from './infrastructure/commanders/run.command' ;
1916import { ModelUpdateCommand } from './infrastructure/commanders/models/model-update.command' ;
20- import { AssistantsModule } from './usecases/assistants/assistants.module' ;
21- import { MessagesModule } from './usecases/messages/messages.module' ;
2217import { FileManagerModule } from './infrastructure/services/file-manager/file-manager.module' ;
2318import { PSCommand } from './infrastructure/commanders/ps.command' ;
2419import { PresetCommand } from './infrastructure/commanders/presets.command' ;
2520import { TelemetryModule } from './usecases/telemetry/telemetry.module' ;
2621import { TelemetryCommand } from './infrastructure/commanders/telemetry.command' ;
2722import { EmbeddingCommand } from './infrastructure/commanders/embeddings.command' ;
2823import { BenchmarkCommand } from './infrastructure/commanders/benchmark.command' ;
29- import { EventEmitterModule } from '@nestjs/event-emitter' ;
30- import { DownloadManagerModule } from './infrastructure/services/download-manager/download-manager.module' ;
31- import { ServeStopCommand } from './infrastructure/commanders/sub-commands/serve-stop.command' ;
24+ import { ServeStopCommand } from './infrastructure/commanders/serve-stop.command' ;
3225import { ContextModule } from './infrastructure/services/context/context.module' ;
33- import { CliUsecasesModule } from './infrastructure/commanders/usecases/cli.usecases.module' ;
34- import { ExtensionsModule } from './extensions/extensions.module' ;
3526import { EnginesCommand } from './infrastructure/commanders/engines.command' ;
36- import { ConfigsModule } from './usecases/configs/configs.module' ;
37- import { EnginesModule } from './usecases/engines/engines.module' ;
3827import { EnginesListCommand } from './infrastructure/commanders/engines/engines-list.command' ;
3928import { EnginesGetCommand } from './infrastructure/commanders/engines/engines-get.command' ;
4029import { EnginesInitCommand } from './infrastructure/commanders/engines/engines-init.command' ;
@@ -47,22 +36,11 @@ import { EnginesSetCommand } from './infrastructure/commanders/engines/engines-s
4736 envFilePath :
4837 process . env . NODE_ENV !== 'production' ? '.env.development' : '.env' ,
4938 } ) ,
50- EventEmitterModule . forRoot ( ) ,
51- DatabaseModule ,
52- ModelsModule ,
5339 CortexModule ,
54- ExtensionModule ,
5540 HttpModule ,
56- CliUsecasesModule ,
57- AssistantsModule ,
58- MessagesModule ,
5941 FileManagerModule ,
6042 TelemetryModule ,
6143 ContextModule ,
62- DownloadManagerModule ,
63- ExtensionsModule ,
64- ConfigsModule ,
65- EnginesModule ,
6644 ] ,
6745 providers : [
6846 CortexCommand ,
0 commit comments