vibe-coder-mcp
Version:
Production-ready MCP server with complete agent integration, multi-transport support, and comprehensive development automation tools for AI-assisted workflows.
57 lines • 2.48 kB
TypeScript
export type LLMOperationType = 'intent_recognition' | 'task_decomposition' | 'atomic_detection' | 'auto';
export interface MockOptions {
model?: string | RegExp;
responseContent?: string | object;
statusCode?: number;
shouldError?: boolean;
errorMessage?: string;
matchUrl?: string | RegExp;
operationType?: LLMOperationType;
}
export declare function setTestId(testId: string): void;
export declare function queueMockResponses(responses: MockOptions[]): void;
export declare function clearMockQueue(): void;
export declare function clearAllMockQueues(): void;
export declare function clearPerformanceCaches(): void;
export declare function getPerformanceStats(): {
cacheSize: number;
cacheHitRate?: number;
};
export declare const MockTemplates: {
intentRecognition: (intent?: string, confidence?: number) => MockOptions;
atomicDetection: (isAtomic?: boolean, confidence?: number) => MockOptions;
taskDecomposition: (subtaskCount?: number) => MockOptions;
error: (errorMessage?: string) => MockOptions;
};
export declare class MockQueueBuilder {
private queue;
addIntentRecognitions(count: number, intent?: string): MockQueueBuilder;
addAtomicDetections(count: number, isAtomic?: boolean): MockQueueBuilder;
addTaskDecompositions(count: number, subtaskCount?: number): MockQueueBuilder;
addErrors(count: number, errorMessage?: string): MockQueueBuilder;
build(): MockOptions[];
queueResponses(): void;
clear(): MockQueueBuilder;
}
export declare const performFormatAwareLlmCallWithCentralizedConfig: import("vitest").Mock<(...args: any[]) => any>;
export declare class PerformanceTestUtils {
static createRobustQueue(primaryResponses: MockOptions[], fallbackCount?: number): MockOptions[];
static setupEnhancedMocks(testId: string, responses: MockOptions[]): void;
static createConcurrentMocks(operationType: LLMOperationType, count: number): MockOptions[];
static measureMockPerformance<T>(testName: string, testFn: () => Promise<T>): Promise<T & {
mockPerformance: {
duration: number;
cacheStats: {
start: {
cacheSize: number;
};
end: {
cacheSize: number;
};
growth: number;
};
};
}>;
}
export declare function mockOpenRouterResponse(options: MockOptions): void;
//# sourceMappingURL=mockLLM.d.ts.map