style: auto-fix ESLint issues (curly braces and formatting)

- Add curly braces to all if/else/for/while statements
- Fix indentation and trailing spaces
- Auto-fixed 372 linting errors using eslint --fix
- Remaining issues are warnings only (non-null assertions, explicit any types)
This commit is contained in:
William Valentin
2026-02-11 10:30:24 -08:00
parent 0578a87d85
commit 6090508bad
99 changed files with 418 additions and 418 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ export function mcpToolName(serverName: string, toolName: string): string {
*/
export function parseMcpToolName(prefixedName: string): { serverName: string; toolName: string } | null {
const match = prefixedName.match(/^mcp:([^:]+):(.+)$/);
if (!match) return null;
if (!match) {return null;}
return { serverName: match[1], toolName: match[2] };
}
+3 -3
View File
@@ -86,7 +86,7 @@ export class McpManager {
*/
async stopServer(name: string): Promise<void> {
const client = this.clients.get(name);
if (!client) return;
if (!client) {return;}
// Unregister tools from the registry
const toolNames = this.registeredToolNames.get(name) ?? [];
@@ -133,7 +133,7 @@ export class McpManager {
*/
getServerState(name: string): McpServerState | undefined {
const client = this.clients.get(name);
if (!client) return undefined;
if (!client) {return undefined;}
const config = this.storedConfigs.get(name) ?? { name, command: '', args: [] };
@@ -165,7 +165,7 @@ export class McpManager {
for (const toolNames of this.registeredToolNames.values()) {
for (const name of toolNames) {
const tool = this.toolRegistry.get(name);
if (tool) tools.push(tool);
if (tool) {tools.push(tool);}
}
}
return tools;