feat: add expand-task remote (#1384)

This commit is contained in:
Ralph Khreish
2025-11-07 18:06:23 +01:00
committed by GitHub
parent 958c413270
commit 921e9a6b32
21 changed files with 813 additions and 76 deletions

View File

@@ -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
*/