refactor environment

This commit is contained in:
Your Name
2026-04-06 19:18:17 +00:00
parent 7c2135574c
commit 2e80fad7a4
11 changed files with 57 additions and 83 deletions
+1 -6
View File
@@ -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) });