gemini-cli/packages/server
Taylor Mullen feb9dee4b1 fix: Prevent WriteFileTool from writing to directory paths
- Enhances WriteFileTool validation to check if the target file_path is an existing directory.
- If it is, the tool now returns a validation error "Path is a directory, not a file: <filePath>", preventing the attempt to write.
- This proactive check avoids underlying file system errors that would occur if fs.writeFileSync were called on a directory path, which could lead to console errors.
- Test cases have been updated to reflect this stricter validation.

Fixes https://b.corp.google.com/issues/418348176
2025-05-17 00:01:35 -07:00
..
src fix: Prevent WriteFileTool from writing to directory paths 2025-05-17 00:01:35 -07:00
README.md Fix typo in server README.md (#379) 2025-05-16 14:27:25 -07:00
index.ts refactor: clean up build output (#53) 2025-04-20 12:33:39 -07:00
package.json fix: Ensure filename is available for diff rendering in write-file 2025-05-16 10:13:13 -07:00
tsconfig.json Refactor: Use String.prototype.replaceAll() and update TS lib 2025-05-16 22:43:50 -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 a dependency by calling import { } from "@gemini-code/server"