feat: add support for code context in more commands (#1162)

* feat: add support for claude code context

- code context for:
  - add-task
  - update-subtask
  - update-task
  - update

* feat: fix CI and format + refactor

* chore: format

* chore: fix broken tests

* chore: fix test
This commit is contained in:
Ralph Khreish
2025-08-28 18:05:31 +02:00
committed by GitHub
parent db720a954d
commit 4dad2fd613
17 changed files with 112 additions and 25 deletions

View File

@@ -17,7 +17,8 @@ import {
getDebugFlag,
getProjectName,
getMainProvider,
getResearchProvider
getResearchProvider,
isClaudeCode
} from '../config-manager.js';
import { getPromptManager } from '../prompt-manager.js';
import {
@@ -415,16 +416,12 @@ async function analyzeTaskComplexity(options, context = {}) {
const promptManager = getPromptManager();
// Check if Claude Code is being used as the provider
const currentProvider = useResearch
? getResearchProvider(projectRoot)
: getMainProvider(projectRoot);
const isClaudeCode = currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE;
const promptParams = {
tasks: tasksData.tasks,
gatheredContext: gatheredContext || '',
useResearch: useResearch,
isClaudeCode: isClaudeCode,
isClaudeCode: isClaudeCode(useResearch, projectRoot),
projectRoot: projectRoot || ''
};