Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 9aea092

Browse files
committed
chore: remove chalk blue text
1 parent 3279aef commit 9aea092

File tree

5 files changed

+10
-18
lines changed

5 files changed

+10
-18
lines changed

cortex-js/src/command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependenciesSpinner.succeed(
1313
);
1414

1515
process.removeAllListeners('warning');
16-
process.title = 'Cortex Command Executor';
16+
process.title = 'Cortex CLI Command Process';
1717

1818
async function bootstrap() {
1919
let telemetryUseCase: TelemetryUsecases | null = null;

cortex-js/src/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
defaultCortexJsPort,
66
} from '@/infrastructure/constants/cortex';
77
import { getApp } from './app';
8-
import chalk from 'chalk';
98
import { CortexUsecases } from './usecases/cortex/cortex.usecases';
109

1110
/**
@@ -20,10 +19,8 @@ export async function start(host?: string, port?: number) {
2019
await app.listen(sPort, sHost);
2120
const cortexUsecases = await app.resolve(CortexUsecases);
2221
await cortexUsecases.startCortex();
23-
console.log(chalk.blue(`Started server at http://${sHost}:${sPort}`));
24-
console.log(
25-
chalk.blue(`API Playground available at http://${sHost}:${sPort}/api`),
26-
);
22+
console.log(`Started server at http://${sHost}:${sPort}`);
23+
console.log(`API Playground available at http://${sHost}:${sPort}/api`);
2724
} catch {
2825
console.error(`Failed to start server. Is port ${port} in use?`);
2926
}

cortex-js/src/infrastructure/commanders/cortex-command.commander.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class CortexCommand extends CommandRunner {
9191

9292
this.host = options?.address || configApiServerHost || defaultCortexJsHost;
9393
this.port = options?.port || configApiServerPort || defaultCortexJsPort;
94-
if(this.host === 'localhost') {
94+
if (this.host === 'localhost') {
9595
this.host = '127.0.0.1';
9696
}
9797
this.enginePort =
@@ -122,9 +122,7 @@ export class CortexCommand extends CommandRunner {
122122
const isServerOnline = await this.cortexUseCases.isAPIServerOnline();
123123
if (isServerOnline) {
124124
console.log(
125-
chalk.blue(
126-
`Server is already running at http://${this.configHost}:${this.configPort}. Please use 'cortex stop' to stop the server.`,
127-
),
125+
`Server is already running at http://${this.configHost}:${this.configPort}. Please use 'cortex stop' to stop the server.`,
128126
);
129127
process.exit(0);
130128
}

cortex-js/src/main.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {
33
defaultCortexJsPort,
44
} from '@/infrastructure/constants/cortex';
55
import { getApp } from './app';
6-
import chalk from 'chalk';
76

87
process.title = 'Cortex API Server';
98

@@ -14,12 +13,10 @@ async function bootstrap() {
1413
const app = await getApp(host, Number(port));
1514
try {
1615
await app.listen(port, host);
17-
console.log(chalk.blue(`Started server at http://${host}:${port}`));
18-
console.log(
19-
chalk.blue(`API Playground available at http://${host}:${port}/api`),
20-
);
21-
} catch {
22-
console.error(`Failed to start server. Is port ${port} in use?`);
16+
console.log(`Started server at http://${host}:${port}`);
17+
console.log(`API Playground available at http://${host}:${port}/api`);
18+
} catch (error) {
19+
console.error(`Failed to start server. Is port ${port} in use? ${error}`);
2320
}
2421
}
2522

cortex-js/src/utils/cortex-cpp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as cortexCPP from 'cortex-cpp';
22

3-
process.title = 'Cortex Engine Server';
3+
process.title = 'Cortex Engine Process (cortex.cpp)';
44
const port = process.env.CORTEX_CPP_PORT
55
? parseInt(process.env.CORTEX_CPP_PORT)
66
: 3929;

0 commit comments

Comments
 (0)