mcp-adr-analysis-server
Version:
MCP server for analyzing Architectural Decision Records and project architecture
57 lines • 1.91 kB
TypeScript
/**
* Test-Aware Defaults Utility
*
* Provides environment-aware defaults that disable expensive operations during testing.
* This improves test performance and reduces timeouts without changing production behavior.
*
* @see Issue #309 - Add environment-aware test defaults to reduce timeouts
*/
/**
* Check if we're running in a test environment
*/
export declare function isTestEnvironment(): boolean;
/**
* Get environment-aware default for enhanced mode
* Disabled in test environments to reduce timeouts
*/
export declare function getEnhancedModeDefault(): boolean;
/**
* Get environment-aware default for knowledge enhancement (GKP)
* Disabled in test environments to reduce timeouts
*/
export declare function getKnowledgeEnhancementDefault(): boolean;
/**
* Get environment-aware default for memory integration
* Disabled in test environments to reduce timeouts
*/
export declare function getMemoryIntegrationDefault(): boolean;
/**
* Get environment-aware timeout for operations
* Shorter timeouts in test environments
*/
export declare function getOperationTimeout(defaultTimeout?: number): number;
/**
* Test defaults configuration object
* Use this for passing all defaults at once
*/
export interface TestAwareDefaults {
enhancedMode: boolean;
knowledgeEnhancement: boolean;
enableMemoryIntegration: boolean;
timeout: number;
}
/**
* Get all test-aware defaults at once
*/
export declare function getTestAwareDefaults(options?: {
enhancedMode?: boolean;
knowledgeEnhancement?: boolean;
enableMemoryIntegration?: boolean;
timeout?: number;
}): TestAwareDefaults;
/**
* Merge user options with test-aware defaults
* User-provided options always take precedence
*/
export declare function mergeWithTestDefaults<T extends Partial<TestAwareDefaults>>(userOptions: T): T & TestAwareDefaults;
//# sourceMappingURL=test-aware-defaults.d.ts.map