Chore(deps): Upgrade @google/genai to v1.0.1

- Upgraded the @google/genai SDK from ^0.13.0 to ^1.0.1.
- Addressed a related type error in `packages/server/src/tools/edit.test.ts` by updating a type assertion.

Part of https://github.com/google-gemini/gemini-cli/issues/551
This commit is contained in:
Taylor Mullen
2025-05-26 14:07:22 -07:00
committed by N. Taylor Mullen
parent 70d469ccd3
commit 02503a3248
3 changed files with 11 additions and 8 deletions

View File

@@ -108,12 +108,12 @@ describe('EditTool', () => {
const problematicSnippet =
snippetMatch && snippetMatch[1] ? snippetMatch[1] : '';
if (schema.properties?.corrected_target_snippet) {
if (((schema as any).properties as any)?.corrected_target_snippet) {
return Promise.resolve({
corrected_target_snippet: problematicSnippet,
});
}
if (schema.properties?.corrected_new_string) {
if (((schema as any).properties as any)?.corrected_new_string) {
// For new_string correction, we might need more sophisticated logic,
// but for now, returning original is a safe default if not specified by a test.
const originalNewStringMatch = promptText.match(