mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-23 11:34:44 -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
@@ -413,6 +413,20 @@ export interface EditToolParams {
|
||||
ai_proposed_content?: string;
|
||||
}
|
||||
|
||||
export function isEditToolParams(args: unknown): args is EditToolParams {
|
||||
if (typeof args !== 'object' || args === null) {
|
||||
return false;
|
||||
}
|
||||
return (
|
||||
'file_path' in args &&
|
||||
typeof args.file_path === 'string' &&
|
||||
'old_string' in args &&
|
||||
typeof args.old_string === 'string' &&
|
||||
'new_string' in args &&
|
||||
typeof args.new_string === 'string'
|
||||
);
|
||||
}
|
||||
|
||||
interface CalculatedEdit {
|
||||
currentContent: string | null;
|
||||
newContent: string;
|
||||
|
||||
Reference in New Issue
Block a user