class ErrorDetectionInterceptor
implements LoopInterceptor
Loop interceptor that manages error detection with customizable error detectors. Allows registration of custom error detectors for different languages and tools.
new
ErrorDetectionInterceptor(enabled?: boolean)
readonly
description: string
readonly
registeredDetectors: string[]
Get list of registered detector names
clearDetectors(): void
Clear all registered detectors
private
detectErrors(workingDirectory: string,options: { signal?: AbortSignal; },): Promise<string | null>
Run error detection using registered detectors
intercept(context: InterceptorContext): Promise<InterceptorResult>
registerDetector(detector: ErrorDetector): void
Register a custom error detector
unregisterDetector(name: string): boolean
Unregister an error detector by name