@wildcard-ai/deepcontext
Version:
Advanced codebase indexing and semantic search MCP server
39 lines • 1.02 kB
TypeScript
/**
* Lock Service - File-based concurrency control
* Extracted from FileProcessingService to be reusable across the MCP
*/
export interface LockResult {
acquired: boolean;
message: string;
}
export declare class LockService {
private logger;
constructor(loggerName?: string);
/**
* Generate lock file path for an operation
*/
private getLockFilePath;
/**
* Acquire a lock for an operation
*/
acquireLock(operationKey: string): Promise<LockResult>;
/**
* Release a lock for an operation
*/
releaseLock(operationKey: string): Promise<void>;
/**
* Check if a lock exists for an operation
*/
isLocked(operationKey: string): Promise<boolean>;
/**
* Get lock information for an operation
*/
getLockInfo(operationKey: string): Promise<{
locked: boolean;
operation?: string;
pid?: number;
startTime?: string;
ageMinutes?: number;
}>;
}
//# sourceMappingURL=LockService.d.ts.map