UNPKG

local-agent

Version:

A CLI agentic system for orchestrating tools and memory with per-folder scoping

16 lines 624 B
/** * Centralized error handler that formats and logs application errors consistently. * * @param error The error to handle * @param context Optional context information for better error reporting */ export declare function handleError(error: unknown, context?: string): void; /** * Wraps a function to provide automatic error handling. * * @param fn The function to wrap * @param context Context information for error reporting * @returns The wrapped function */ export declare function withErrorHandling<T extends (...args: any[]) => any>(fn: T, context?: string): T; //# sourceMappingURL=error-handler.d.ts.map