feat: fix CI and format + refactor

This commit is contained in:
Ralph Khreish
2025-08-28 17:17:51 +02:00
parent e31500e9b0
commit f746d84145
6 changed files with 95 additions and 80 deletions

View File

@@ -300,17 +300,6 @@ async function updateTasks(
// Flag to easily check which logger type we have
const isMCP = !!mcpLog;
/**
* Check if Claude Code is being used
*/
const isClaudeCode = () => {
const projectRoot = providedProjectRoot || findProjectRoot();
const currentProvider = useResearch
? getResearchProvider(projectRoot)
: getMainProvider(projectRoot);
return currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE;
};
if (isMCP)
logFn.info(`updateTasks called with context: session=${!!session}`);
else logFn('info', `updateTasks called`); // CLI log