Compare commits
3 Commits
ralph/feat
...
feat/add.c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0cd2093e11 | ||
|
|
bc3e154f4c | ||
|
|
3faa2da1a0 |
@@ -13,7 +13,12 @@ import {
|
|||||||
|
|
||||||
import { generateTextService } from '../ai-services-unified.js';
|
import { generateTextService } from '../ai-services-unified.js';
|
||||||
|
|
||||||
import { getDebugFlag, getProjectName } from '../config-manager.js';
|
import {
|
||||||
|
getDebugFlag,
|
||||||
|
getProjectName,
|
||||||
|
getMainProvider,
|
||||||
|
getResearchProvider
|
||||||
|
} from '../config-manager.js';
|
||||||
import { getPromptManager } from '../prompt-manager.js';
|
import { getPromptManager } from '../prompt-manager.js';
|
||||||
import {
|
import {
|
||||||
COMPLEXITY_REPORT_FILE,
|
COMPLEXITY_REPORT_FILE,
|
||||||
@@ -410,8 +415,9 @@ async function analyzeTaskComplexity(options, context = {}) {
|
|||||||
const promptManager = getPromptManager();
|
const promptManager = getPromptManager();
|
||||||
|
|
||||||
// Check if Claude Code is being used as the provider
|
// Check if Claude Code is being used as the provider
|
||||||
const { getMainProvider, getResearchProvider } = await import('../config-manager.js');
|
const currentProvider = useResearch
|
||||||
const currentProvider = useResearch ? getResearchProvider(projectRoot) : getMainProvider(projectRoot);
|
? getResearchProvider(projectRoot)
|
||||||
|
: getMainProvider(projectRoot);
|
||||||
const isClaudeCode = currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE;
|
const isClaudeCode = currentProvider === CUSTOM_PROVIDERS.CLAUDE_CODE;
|
||||||
|
|
||||||
const promptParams = {
|
const promptParams = {
|
||||||
|
|||||||
@@ -18,7 +18,12 @@ import {
|
|||||||
|
|
||||||
import { generateTextService } from '../ai-services-unified.js';
|
import { generateTextService } from '../ai-services-unified.js';
|
||||||
|
|
||||||
import { getDefaultSubtasks, getDebugFlag } from '../config-manager.js';
|
import {
|
||||||
|
getDefaultSubtasks,
|
||||||
|
getDebugFlag,
|
||||||
|
getMainProvider,
|
||||||
|
getResearchProvider
|
||||||
|
} from '../config-manager.js';
|
||||||
import { getPromptManager } from '../prompt-manager.js';
|
import { getPromptManager } from '../prompt-manager.js';
|
||||||
import generateTaskFiles from './generate-task-files.js';
|
import generateTaskFiles from './generate-task-files.js';
|
||||||
import { COMPLEXITY_REPORT_FILE } from '../../../src/constants/paths.js';
|
import { COMPLEXITY_REPORT_FILE } from '../../../src/constants/paths.js';
|
||||||
@@ -453,9 +458,6 @@ async function expandTask(
|
|||||||
const promptManager = getPromptManager();
|
const promptManager = getPromptManager();
|
||||||
|
|
||||||
// Check if Claude Code is being used as the provider
|
// Check if Claude Code is being used as the provider
|
||||||
const { getMainProvider, getResearchProvider } = await import(
|
|
||||||
'../config-manager.js'
|
|
||||||
);
|
|
||||||
const currentProvider = useResearch
|
const currentProvider = useResearch
|
||||||
? getResearchProvider(projectRoot)
|
? getResearchProvider(projectRoot)
|
||||||
: getMainProvider(projectRoot);
|
: getMainProvider(projectRoot);
|
||||||
|
|||||||
@@ -17,7 +17,12 @@ import {
|
|||||||
} from '../utils.js';
|
} from '../utils.js';
|
||||||
|
|
||||||
import { generateObjectService } from '../ai-services-unified.js';
|
import { generateObjectService } from '../ai-services-unified.js';
|
||||||
import { getDebugFlag } from '../config-manager.js';
|
import {
|
||||||
|
getDebugFlag,
|
||||||
|
getMainProvider,
|
||||||
|
getResearchProvider,
|
||||||
|
getDefaultPriority
|
||||||
|
} from '../config-manager.js';
|
||||||
import { getPromptManager } from '../prompt-manager.js';
|
import { getPromptManager } from '../prompt-manager.js';
|
||||||
import { displayAiUsageSummary } from '../ui.js';
|
import { displayAiUsageSummary } from '../ui.js';
|
||||||
import { CUSTOM_PROVIDERS } from '../../../src/constants/providers.js';
|
import { CUSTOM_PROVIDERS } from '../../../src/constants/providers.js';
|
||||||
@@ -175,8 +180,6 @@ async function parsePRD(prdPath, tasksPath, numTasks, options = {}) {
|
|||||||
const promptManager = getPromptManager();
|
const promptManager = getPromptManager();
|
||||||
|
|
||||||
// Get defaultTaskPriority from config
|
// Get defaultTaskPriority from config
|
||||||
const { getDefaultPriority, getMainProvider, getResearchProvider } =
|
|
||||||
await import('../config-manager.js');
|
|
||||||
const defaultTaskPriority = getDefaultPriority(projectRoot) || 'medium';
|
const defaultTaskPriority = getDefaultPriority(projectRoot) || 'medium';
|
||||||
|
|
||||||
// Check if Claude Code is being used as the provider
|
// Check if Claude Code is being used as the provider
|
||||||
|
|||||||
@@ -123,7 +123,9 @@ jest.unstable_mockModule(
|
|||||||
() => ({
|
() => ({
|
||||||
getDefaultSubtasks: jest.fn(() => 3),
|
getDefaultSubtasks: jest.fn(() => 3),
|
||||||
getDebugFlag: jest.fn(() => false),
|
getDebugFlag: jest.fn(() => false),
|
||||||
getDefaultNumTasks: jest.fn(() => 10)
|
getDefaultNumTasks: jest.fn(() => 10),
|
||||||
|
getMainProvider: jest.fn(() => 'openai'),
|
||||||
|
getResearchProvider: jest.fn(() => 'perplexity')
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -49,7 +49,9 @@ jest.unstable_mockModule(
|
|||||||
() => ({
|
() => ({
|
||||||
getDebugFlag: jest.fn(() => false),
|
getDebugFlag: jest.fn(() => false),
|
||||||
getDefaultNumTasks: jest.fn(() => 10),
|
getDefaultNumTasks: jest.fn(() => 10),
|
||||||
getDefaultPriority: jest.fn(() => 'medium')
|
getDefaultPriority: jest.fn(() => 'medium'),
|
||||||
|
getMainProvider: jest.fn(() => 'openai'),
|
||||||
|
getResearchProvider: jest.fn(() => 'perplexity')
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user