feat(telemetry): include language in telemetry and fix accepted lines computation (#21126)

This commit is contained in:
Christian Gunderman
2026-03-04 18:58:39 +00:00
committed by GitHub
parent 54885214a1
commit 49e4082f38
5 changed files with 155 additions and 41 deletions
+14
View File
@@ -74,6 +74,20 @@ export interface WriteFileToolParams {
ai_proposed_content?: string;
}
export function isWriteFileToolParams(
args: unknown,
): args is WriteFileToolParams {
if (typeof args !== 'object' || args === null) {
return false;
}
return (
'file_path' in args &&
typeof args.file_path === 'string' &&
'content' in args &&
typeof args.content === 'string'
);
}
interface GetCorrectedFileContentResult {
originalContent: string;
correctedContent: string;