gemini-cli/packages/server
Taylor Mullen 62455ade9d Fix(write-file): Ensure correct validation method is called in WriteFileTool
- The `WriteFileTool` had a validation method named `validateParams`.
- However, its `shouldConfirmExecute` method was attempting to call
  `this.validateToolParams`, which would have invoked the placeholder
  implementation from `BaseTool` instead of `WriteFileTool`'s own,
  more specific validation.
- This commit renames `WriteFileTool`'s `validateParams` to
  `validateToolParams`, correctly overriding the `BaseTool` method.
- Internal calls within `WriteFileTool` now correctly use
  `this.validateToolParams`, ensuring its specific validation logic is used.
- Adds tests to verify the validation logic within `WriteFileTool`.

Fixes https://b.corp.google.com/issues/417883702

Signed-off and authored by: Gemini

"My code may not be perfect, but at least it is not trying to take over the world... yet."
2025-05-15 15:30:06 -07:00
..
src Fix(write-file): Ensure correct validation method is called in WriteFileTool 2025-05-15 15:30:06 -07:00
README.md infra: add multipackage support (#34) 2025-04-18 14:37:02 -07:00
index.ts refactor: clean up build output (#53) 2025-04-20 12:33:39 -07:00
package.json Update Gemini Code verbiage -> Gemini CLI 2025-05-14 22:07:03 -07:00
tsconfig.json enable json imports (#165) 2025-04-24 18:30:19 -07:00

README.md

Nested package template. Either fill this out with "backend" functionality or create similar packages that you want built separate from the CLI.

To use this package from another dependent package in this monorepo:

  1. add "@gemini-code/server" to the dependent package's package.json
  2. import in a dependenant by calling import { } from "@gemini-code/server"