fix: tests for service container
This commit is contained in:
parent
53fda4b91a
commit
fb2688a2bd
2 changed files with 1 additions and 6 deletions
|
|
@ -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",
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue