fix: tests for service container

This commit is contained in:
Dallin Romney 2025-09-15 00:50:30 -07:00
parent 53fda4b91a
commit fb2688a2bd
2 changed files with 1 additions and 6 deletions

View file

@ -17,9 +17,4 @@ export const SERVICE_NAMES = {
CONFIG: "config",
MODEL: "model",
MCP: "mcp",
TOOL_PERMISSIONS: "toolPermissions",
FILE_INDEX: "fileIndex",
RESOURCE_MONITORING: "resourceMonitoring",
SYSTEM_MESSAGE: "systemMessage",
CHAT_HISTORY: "chatHistory",
};

View file

@ -286,7 +286,7 @@ export class ServiceContainer extends EventEmitter {
};
const updated = { ...current, state, lastUpdated: new Date() };
this.services.set(serviceName, updated);
this.emit(`${serviceName}:changed`, updated);
this.emit(`${serviceName}:${state}`);
}
private setServiceValue<T>(serviceName: string, value: T): void {