added cli-covarage tool and fixed more tests

This commit is contained in:
Boki 2025-06-26 14:23:01 -04:00
parent b63e58784c
commit b845a8eade
57 changed files with 11917 additions and 295 deletions

View file

@ -118,6 +118,19 @@ export class HandlerRegistry {
return this.handlerServices.get(handlerName);
}
/**
* Get all handlers for a specific service
*/
getServiceHandlers(serviceName: string): HandlerMetadata[] {
const handlers: HandlerMetadata[] = [];
for (const [handlerName, metadata] of this.handlers) {
if (this.handlerServices.get(handlerName) === serviceName || metadata.service === serviceName) {
handlers.push(metadata);
}
}
return handlers;
}
/**
* Get scheduled jobs for a handler
*/