/** * Bug Reporter for Orchestrator Integration * * When encountering bugs, automatically reports them to orchestrator API * and stores results in a todo folder for later review. */ export interface BugReport { id: string; timestamp: string; error: { message: string; stack?: string; name?: string; }; context: { file?: string; function?: string; line?: number; command?: string; [key: string]: any; }; severity: "low" | "medium" | "high" | "critical"; status: "reported" | "failed" | "pending"; orchestratorResponse?: any; localPath?: string; } /** * Report a bug to orchestrator and save to todo folder */ export declare function reportBug(error: Error | string | unknown, context?: Record, severity?: BugReport["severity"]): Promise; /** * Wrapper function to catch and report errors */ export declare function withBugReporting(fn: () => Promise, context?: Record, severity?: BugReport["severity"]): Promise; /** * Synchronous wrapper for bug reporting (for non-async contexts) */ export declare function reportBugSync(error: Error | string, context?: Record, severity?: BugReport["severity"]): void; //# sourceMappingURL=bug-reporter.d.ts.map