mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 12:04:56 -07:00
feat(core): implement experimental direct web fetch (#19557)
This commit is contained in:
@@ -470,6 +470,7 @@ export interface ConfigParameters {
|
||||
eventEmitter?: EventEmitter;
|
||||
useWriteTodos?: boolean;
|
||||
policyEngineConfig?: PolicyEngineConfig;
|
||||
directWebFetch?: boolean;
|
||||
policyUpdateConfirmationRequest?: PolicyUpdateConfirmationRequest;
|
||||
output?: OutputSettings;
|
||||
disableModelRouterForAuth?: AuthType[];
|
||||
@@ -633,6 +634,7 @@ export class Config {
|
||||
readonly interactive: boolean;
|
||||
private readonly ptyInfo: string;
|
||||
private readonly trustedFolder: boolean | undefined;
|
||||
private readonly directWebFetch: boolean;
|
||||
private readonly useRipgrep: boolean;
|
||||
private readonly enableInteractiveShell: boolean;
|
||||
private readonly skipNextSpeakerCheck: boolean;
|
||||
@@ -826,6 +828,7 @@ export class Config {
|
||||
this.interactive = params.interactive ?? false;
|
||||
this.ptyInfo = params.ptyInfo ?? 'child_process';
|
||||
this.trustedFolder = params.trustedFolder;
|
||||
this.directWebFetch = params.directWebFetch ?? false;
|
||||
this.useRipgrep = params.useRipgrep ?? true;
|
||||
this.useBackgroundColor = params.useBackgroundColor ?? true;
|
||||
this.enableInteractiveShell = params.enableInteractiveShell ?? false;
|
||||
@@ -2085,6 +2088,10 @@ export class Config {
|
||||
return this.approvedPlanPath;
|
||||
}
|
||||
|
||||
getDirectWebFetch(): boolean {
|
||||
return this.directWebFetch;
|
||||
}
|
||||
|
||||
setApprovedPlanPath(path: string | undefined): void {
|
||||
this.approvedPlanPath = path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user