Skip to content

Commit 099ca97

Browse files
comment all module
1 parent 7f0a2a1 commit 099ca97

File tree

2 files changed

+58
-56
lines changed

2 files changed

+58
-56
lines changed

cortex-js/src/command.module.ts

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff 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
})
121121
export class CommandModule {}

cortex-js/src/infrastructure/commanders/decorators/CommandContext.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ type Constructor = new (...args: any[]) => any;
22

33
export 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
};

0 commit comments

Comments
 (0)