mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 03:54:43 -07:00
feat(telemetry): include language in telemetry and fix accepted lines computation (#21126)
This commit is contained in:
committed by
GitHub
parent
54885214a1
commit
49e4082f38
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user