UNPKG

@mettamatt/code-reasoning

Version:

Enhanced MCP server for code reasoning using sequential thinking methodology, optimized for programming tasks

56 lines (55 loc) 1.49 kB
/** * @fileoverview Configuration manager for code-reasoning server * * This module provides a singleton configuration manager that handles * configuration settings for the code-reasoning server in memory. */ /** * Structure of the server configuration */ export interface CodeReasoningConfig { maxThoughtLength: number; timeoutMs: number; maxThoughts: number; debug: boolean; promptsEnabled: boolean; [key: string]: unknown; } /** * Singleton config manager for the server */ declare class ConfigManager { private config; private initialized; constructor(); /** * Initialize configuration */ init(): Promise<void>; /** * Create default configuration */ private getDefaultConfig; /** * Get the entire config */ getConfig(): Promise<CodeReasoningConfig>; /** * Get a specific configuration value */ getValue<K extends keyof CodeReasoningConfig>(key: K): Promise<CodeReasoningConfig[K]>; /** * Set a specific configuration value */ setValue<K extends keyof CodeReasoningConfig>(key: K, value: CodeReasoningConfig[K]): Promise<void>; /** * Update multiple configuration values at once */ updateConfig(updates: Partial<CodeReasoningConfig>): Promise<CodeReasoningConfig>; /** * Reset configuration to defaults */ resetConfig(): Promise<CodeReasoningConfig>; } export declare const configManager: ConfigManager; export {};