mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-13 19:40:28 -07:00
feat(cli): secure .env loading and enforce workspace trust in headless mode (#25814)
Co-authored-by: galz10 <galzahavi@google.com> Co-authored-by: davidapierce <davidapierce@google.com>
This commit is contained in:
@@ -114,6 +114,12 @@ export class FatalToolExecutionError extends FatalError {
|
||||
this.name = 'FatalToolExecutionError';
|
||||
}
|
||||
}
|
||||
export class FatalUntrustedWorkspaceError extends FatalError {
|
||||
constructor(message: string) {
|
||||
super(message, 55);
|
||||
this.name = 'FatalUntrustedWorkspaceError';
|
||||
}
|
||||
}
|
||||
export class FatalCancellationError extends FatalError {
|
||||
constructor(message: string) {
|
||||
super(message, 130); // Standard exit code for SIGINT
|
||||
|
||||
Reference in New Issue
Block a user