mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2026-01-30 06:12:05 +00:00
feat: add expand-task remote (#1384)
This commit is contained in:
@@ -22,6 +22,7 @@ import type {
|
||||
PreflightResult
|
||||
} from './services/preflight-checker.service.js';
|
||||
import type { TaskValidationResult } from './services/task-loader.service.js';
|
||||
import type { ExpandTaskResult } from '../integration/services/task-expansion.service.js';
|
||||
|
||||
/**
|
||||
* Tasks Domain - Unified API for all task operations
|
||||
@@ -151,6 +152,23 @@ export class TasksDomain {
|
||||
return this.taskService.updateTaskWithPrompt(taskId, prompt, tag, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expand task into subtasks using AI
|
||||
* @returns ExpandTaskResult when using API storage, void for file storage
|
||||
*/
|
||||
async expand(
|
||||
taskId: string | number,
|
||||
tag?: string,
|
||||
options?: {
|
||||
numSubtasks?: number;
|
||||
useResearch?: boolean;
|
||||
additionalContext?: string;
|
||||
force?: boolean;
|
||||
}
|
||||
): Promise<ExpandTaskResult | void> {
|
||||
return this.taskService.expandTaskWithPrompt(taskId, tag, options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update task status
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user