File tree Expand file tree Collapse file tree 2 files changed +58
-56
lines changed
infrastructure/commanders/decorators Expand file tree Collapse file tree 2 files changed +58
-56
lines changed Original file line number Diff line number Diff line change @@ -51,71 +51,71 @@ console.time('import-command');
5151
5252@Module ( {
5353 imports : [
54- // ConfigModule.forRoot({
55- // isGlobal: true,
56- // envFilePath:
57- // process.env.NODE_ENV !== 'production' ? '.env.development' : '.env',
58- // }),
59- // EventEmitterModule.forRoot(),
60- // DatabaseModule,
61- // ModelsModule,
62- // CortexModule,
63- // ExtensionModule,
64- // HttpModule,
65- // CliUsecasesModule,
66- // AssistantsModule,
67- // MessagesModule,
68- // FileManagerModule,
69- // TelemetryModule,
70- // ContextModule,
71- // DownloadManagerModule,
72- // ExtensionsModule,
73- // ConfigsModule,
74- // EnginesModule,
54+ ConfigModule . forRoot ( {
55+ isGlobal : true ,
56+ envFilePath :
57+ process . env . NODE_ENV !== 'production' ? '.env.development' : '.env' ,
58+ } ) ,
59+ EventEmitterModule . forRoot ( ) ,
60+ DatabaseModule ,
61+ ModelsModule ,
62+ CortexModule ,
63+ ExtensionModule ,
64+ HttpModule ,
65+ CliUsecasesModule ,
66+ AssistantsModule ,
67+ MessagesModule ,
68+ FileManagerModule ,
69+ TelemetryModule ,
70+ ContextModule ,
71+ DownloadManagerModule ,
72+ ExtensionsModule ,
73+ ConfigsModule ,
74+ EnginesModule ,
7575 ] ,
7676 providers : [
77- // CortexCommand,
78- // ModelsCommand,
79- // ServeCommand,
80- // ChatCommand,
81- // InitCommand,
82- // PSCommand,
83- // KillCommand,
84- // PresetCommand,
85- // EmbeddingCommand,
86- // BenchmarkCommand,
87- // EnginesCommand,
77+ CortexCommand ,
78+ ModelsCommand ,
79+ ServeCommand ,
80+ ChatCommand ,
81+ InitCommand ,
82+ PSCommand ,
83+ KillCommand ,
84+ PresetCommand ,
85+ EmbeddingCommand ,
86+ BenchmarkCommand ,
87+ EnginesCommand ,
8888
89- // // Questions
90- // InitRunModeQuestions,
89+ // Questions
90+ InitRunModeQuestions ,
9191
92- // // Model commands
93- // ModelStartCommand,
94- // ModelStopCommand,
95- // ModelListCommand,
96- // ModelGetCommand,
97- // ModelRemoveCommand,
98- // ModelPullCommand,
99- // ModelUpdateCommand,
92+ // Model commands
93+ ModelStartCommand ,
94+ ModelStopCommand ,
95+ ModelListCommand ,
96+ ModelGetCommand ,
97+ ModelRemoveCommand ,
98+ ModelPullCommand ,
99+ ModelUpdateCommand ,
100100
101- // // Shortcuts
102- // RunCommand,
101+ // Shortcuts
102+ RunCommand ,
103103
104- // // Telemetry
105- // TelemetryCommand,
104+ // Telemetry
105+ TelemetryCommand ,
106106
107- // // Serve
108- // ServeStopCommand,
107+ // Serve
108+ ServeStopCommand ,
109109
110- // // // Configs
111- // ConfigsCommand,
112- // ConfigsGetCommand,
113- // ConfigsListCommand,
114- // ConfigsSetCommand,
110+ // // Configs
111+ ConfigsCommand ,
112+ ConfigsGetCommand ,
113+ ConfigsListCommand ,
114+ ConfigsSetCommand ,
115115
116- // // Engines
117- // EnginesListCommand,
118- // EnginesGetCommand,
116+ // Engines
117+ EnginesListCommand ,
118+ EnginesGetCommand ,
119119 ] ,
120120} )
121121export class CommandModule { }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ type Constructor = new (...args: any[]) => any;
22
33export const SetCommandContext = ( ) => {
44 return ( constructor : Constructor ) => {
5+ console . time ( 'SetCommandContext' ) ;
56 const classMethods = Object . getOwnPropertyNames ( constructor . prototype ) ;
67
78 classMethods . forEach ( ( methodName ) => {
@@ -30,5 +31,6 @@ export const SetCommandContext = () => {
3031 } ;
3132 }
3233 } ) ;
34+ console . timeEnd ( 'SetCommandContext' ) ;
3335 } ;
3436} ;
You can’t perform that action at this time.
0 commit comments