Project Files
dist / toolsProvider.d.ts
import type { ValidationReport } from "./validation/types.js";
export interface ToolContext {
logger: {
info: (msg: string) => void;
error: (msg: string) => void;
warn: (msg: string) => void;
};
}
export declare function registerToolsProvider(context: ToolContext): {
name: string;
description: string;
tools: ({
name: string;
description: string;
handler: (params: {
path: string;
}) => Promise<{
success: boolean;
data: {
filename: string;
score: number;
passed: boolean;
errorCount: number;
warningCount: number;
infoCount: number;
report: string;
results: import("./validation/types.js").RuleResult[];
};
error?: undefined;
} | {
success: boolean;
error: string;
data?: undefined;
}>;
} | {
name: string;
description: string;
handler: (params: {
content: string;
}) => Promise<{
success: boolean;
data: {
score: number;
passed: boolean;
errorCount: number;
warningCount: number;
infoCount: number;
report: string;
results: import("./validation/types.js").RuleResult[];
};
error?: undefined;
} | {
success: boolean;
error: string;
data?: undefined;
}>;
} | {
name: string;
description: string;
handler: (params: {
path: string;
}) => Promise<{
success: boolean;
error: string;
data?: undefined;
} | {
success: boolean;
data: {
totalFiles: number;
passed: number;
failed: number;
avgScore: number;
totalErrors: number;
totalWarnings: number;
totalInfos: number;
summary: string;
reports: ValidationReport[];
};
error?: undefined;
}>;
} | {
name: string;
description: string;
handler: (params: {
name: string;
description: string;
template?: string;
agent?: string;
model?: string;
}) => Promise<{
success: boolean;
data: {
filename: string;
content: string;
warnings: string[];
};
error?: undefined;
} | {
success: boolean;
error: string;
data?: undefined;
}>;
})[];
};
//# sourceMappingURL=toolsProvider.d.ts.map