mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-12 12:54:07 -07:00
fix(core): properly store and expose checkerRunner in Config
This commit is contained in:
@@ -727,6 +727,7 @@ export class Config implements McpContext {
|
|||||||
private readonly useWriteTodos: boolean;
|
private readonly useWriteTodos: boolean;
|
||||||
private readonly messageBus: MessageBus;
|
private readonly messageBus: MessageBus;
|
||||||
private readonly policyEngine: PolicyEngine;
|
private readonly policyEngine: PolicyEngine;
|
||||||
|
private readonly checkerRunner: CheckerRunner;
|
||||||
private _scopedPolicyEngine?: PolicyEngine;
|
private _scopedPolicyEngine?: PolicyEngine;
|
||||||
private policyUpdateConfirmationRequest:
|
private policyUpdateConfirmationRequest:
|
||||||
| PolicyUpdateConfirmationRequest
|
| PolicyUpdateConfirmationRequest
|
||||||
@@ -964,6 +965,7 @@ export class Config implements McpContext {
|
|||||||
checkersPath,
|
checkersPath,
|
||||||
timeout: 30000, // 30 seconds to allow for LLM-based checkers
|
timeout: 30000, // 30 seconds to allow for LLM-based checkers
|
||||||
});
|
});
|
||||||
|
this.checkerRunner = checkerRunner;
|
||||||
this.policyUpdateConfirmationRequest =
|
this.policyUpdateConfirmationRequest =
|
||||||
params.policyUpdateConfirmationRequest;
|
params.policyUpdateConfirmationRequest;
|
||||||
|
|
||||||
@@ -1327,7 +1329,7 @@ export class Config implements McpContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getCheckerRunner(): CheckerRunner | undefined {
|
getCheckerRunner(): CheckerRunner | undefined {
|
||||||
return (this as any).checkerRunner;
|
return this.checkerRunner;
|
||||||
}
|
}
|
||||||
|
|
||||||
setTerminalBackground(terminalBackground: string | undefined): void {
|
setTerminalBackground(terminalBackground: string | undefined): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user