1296
return { type: PromptsType.hook, files, sourceFolders, hooksInfo: undefined, durationInMillis: stopWatch.elapsed() };
1297
}
1299
>
// Build the result
1300
>
const result: ChatRequestHooks = Object.fromEntries(collectedHooks) as ChatRequestHooks;
1301
>
1302
>
this.logger.trace(`[PromptsService] Collected hooks: ${JSON.stringify(Object.keys(result))}`);
1303
>
return { type: PromptsType.hook, files, sourceFolders, hooksInfo: { hooks: result, hasDisabledClaudeHooks }, durationInMillis: stopWatch.elapsed() };
1304
}
1305