mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-28 14:04:41 -07:00
feat(core): wire up the new ContextManager and AgentChatHistory (#25409)
This commit is contained in:
@@ -7,6 +7,12 @@
|
||||
import { EventEmitter } from 'node:events';
|
||||
import type { ConcreteNode } from './graph/types.js';
|
||||
|
||||
export interface ProcessorResultEvent {
|
||||
processorId: string;
|
||||
targets: readonly ConcreteNode[];
|
||||
returnedNodes: readonly ConcreteNode[];
|
||||
}
|
||||
|
||||
export interface PristineHistoryUpdatedEvent {
|
||||
nodes: readonly ConcreteNode[];
|
||||
newNodes: Set<string>;
|
||||
@@ -49,4 +55,12 @@ export class ContextEventBus extends EventEmitter {
|
||||
onConsolidationNeeded(listener: (event: ContextConsolidationEvent) => void) {
|
||||
this.on('BUDGET_RETAINED_CROSSED', listener);
|
||||
}
|
||||
|
||||
emitProcessorResult(event: ProcessorResultEvent) {
|
||||
this.emit('PROCESSOR_RESULT', event);
|
||||
}
|
||||
|
||||
onProcessorResult(listener: (event: ProcessorResultEvent) => void) {
|
||||
this.on('PROCESSOR_RESULT', listener);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user