UNPKG

@debugmcp/mcp-debugger

Version:

Run-time step-through debugging for LLM agents.

36 lines (35 loc) 1.39 kB
/** * Factory for creating ProxyManager instances * Enables dependency injection and easy mocking for tests */ import { IProxyManager } from '../proxy/proxy-manager.js'; import { IProxyProcessLauncher } from '../interfaces/process-interfaces.js'; import { IFileSystem, ILogger } from '../interfaces/external-dependencies.js'; import { IDebugAdapter } from '../adapters/debug-adapter-interface.js'; /** * Interface for ProxyManager factory */ export interface IProxyManagerFactory { create(adapter?: IDebugAdapter): IProxyManager; } /** * Production implementation of ProxyManager factory */ export declare class ProxyManagerFactory implements IProxyManagerFactory { private proxyProcessLauncher; private fileSystem; private logger; constructor(proxyProcessLauncher: IProxyProcessLauncher, fileSystem: IFileSystem, logger: ILogger); create(adapter?: IDebugAdapter): IProxyManager; } /** * Mock implementation of ProxyManager factory for testing * This creates a simple stub that should be replaced by test code * with the actual MockProxyManager from tests/mocks/mock-proxy-manager.ts */ export declare class MockProxyManagerFactory implements IProxyManagerFactory { createdManagers: IProxyManager[]; createFn?: (adapter?: IDebugAdapter) => IProxyManager; lastAdapter?: IDebugAdapter; create(adapter?: IDebugAdapter): IProxyManager; }