mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-13 03:20:33 -07:00
refactor environment
This commit is contained in:
@@ -51,12 +51,7 @@ export class ContextManager {
|
||||
|
||||
|
||||
constructor(private sidecar: SidecarConfig, private env: ContextEnvironment, private readonly tracer: ContextTracer) {
|
||||
|
||||
|
||||
this.eventBus = new ContextEventBus();
|
||||
if ('setEventBus' in this.env) {
|
||||
(this.env as any).setEventBus(this.eventBus);
|
||||
}
|
||||
this.eventBus = env.eventBus;
|
||||
|
||||
// Register built-ins BEFORE creating Orchestrator
|
||||
ProcessorRegistry.register({ id: 'ToolMaskingProcessor', create: (env, opts) => new ToolMaskingProcessor(env, opts as any) });
|
||||
|
||||
Reference in New Issue
Block a user