mirror of
https://github.com/aiclientproxy/proxycast.git
synced 2026-10-16 07:16:36 +08:00
18 lines
341 B
TypeScript
18 lines
341 B
TypeScript
import { safeInvoke } from "@/lib/dev-bridge";
|
|
|
|
interface AutoFixResult {
|
|
issues_found: string[];
|
|
fixes_applied: string[];
|
|
warnings: string[];
|
|
}
|
|
|
|
export const useAutoFix = () => {
|
|
const runAutoFix = async (): Promise<AutoFixResult> => {
|
|
return await safeInvoke("auto_fix_configuration");
|
|
};
|
|
|
|
return {
|
|
runAutoFix,
|
|
};
|
|
};
|