gemini-cli/packages/server
Taylor Mullen 3aaeb44739 fix(shell): Improve error reporting for shell command failures
This commit enhances the  tool to provide more informative feedback to the user when a shell command fails, especially in non-debug mode.

Previously, if a command terminated due to a signal (e.g., SIGPIPE during a  with no upstream) or failed without producing stdout/stderr, the user would see no output, making it difficult to diagnose the issue.

Changes:
- Modified  to update the  logic.
- If a command produces no direct output but results in an error, signal, non-zero exit code, or user cancellation, a concise message indicating this outcome is now shown in .
- Utilized the existing  utility from  for consistent error message formatting, which also resolved previous TypeScript type inference issues.

This ensures users receive clearer feedback on command execution status, improving the tool's usability and aiding in troubleshooting.

Fixes https://b.corp.google.com/issues/417998119
2025-05-18 00:25:53 -07:00
..
src fix(shell): Improve error reporting for shell command failures 2025-05-18 00:25:53 -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"