Skip to content

Commit d8d4661

Browse files
committed
refactor: remove unused types and consolidate constants
- Improve maintainability through code cleanup and deduplication no reference
1 parent 171d5fe commit d8d4661

5 files changed

Lines changed: 5 additions & 66 deletions

File tree

apps/mcp-server/src/cli/cli.types.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@
44
* Type definitions for CLI commands and utilities
55
*/
66

7-
/**
8-
* CLI command handler function
9-
*/
10-
export type CommandHandler = (args: string[]) => Promise<void>;
11-
12-
/**
13-
* CLI command definition
14-
*/
15-
export interface CliCommand {
16-
name: string;
17-
description: string;
18-
handler: CommandHandler;
19-
}
20-
217
/**
228
* Init command options
239
*/

apps/mcp-server/src/cli/index.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
export { main, parseArgs, printUsage, printVersion } from './cli';
22
export type { ParsedArgs } from './cli';
3-
export type {
4-
InitOptions,
5-
InitResult,
6-
CliCommand,
7-
CommandHandler,
8-
LogLevel,
9-
} from './cli.types';
3+
export type { InitOptions, InitResult, LogLevel } from './cli.types';
104
export { runInit, getApiKey } from './init';
115
export { createConsoleUtils, consoleUtils } from './utils';
126
export type { ConsoleUtils } from './utils';

apps/mcp-server/src/config/config.types.ts

Lines changed: 0 additions & 44 deletions
This file was deleted.

apps/mcp-server/src/model/model.resolver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ import type {
33
ResolvedModel,
44
ResolveModelParams,
55
} from './model.types';
6+
import { DEFAULT_MODEL } from './model.constants';
67

78
/**
89
* System default model used when no configuration is provided
10+
* @deprecated Use DEFAULT_MODEL from model.constants.ts instead
911
*/
10-
export const SYSTEM_DEFAULT_MODEL = 'claude-sonnet-4-20250514';
12+
export const SYSTEM_DEFAULT_MODEL = DEFAULT_MODEL;
1113

1214
/**
1315
* Known Claude model ID patterns for validation

apps/mcp-server/src/shared/path.utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/**
22
* Normalize path separators to forward slashes.
33
* Ensures consistent path handling across platforms.
4+
* @internal Primarily used within this module by pathContainsSegment
45
*/
56
export function normalizePath(filePath: string): string {
67
return filePath.replace(/\\/g, '/');

0 commit comments

Comments
 (0)