openai-compatible-task-master
Version:
使用MCP解析PRD文档并生成任务列表
19 lines (18 loc) • 945 B
TypeScript
/**
* 复制单个模板文件到指定位置,增强版本支持多路径查找
* @param templateRoot 模板根目录(npm包位置)
* @param workingRoot 工作根目录(用户运行命令位置)
* @param sourcePath 源文件相对路径
* @param targetPath 目标文件绝对路径
* @returns 成功返回true,失败返回false
*/
export declare function copyTemplateFile(templateRoot: string, workingRoot: string, sourcePath: string, targetPath: string): boolean;
/**
* 复制模板目录下的所有文件到目标目录
* @param templateRoot 模板根目录(npm包位置)
* @param workingRoot 工作根目录(用户运行命令位置)
* @param sourceDir 源目录相对路径
* @param targetDir 目标目录相对路径
* @returns 成功返回true,失败返回false
*/
export declare function copyTemplateDirectory(templateRoot: string, workingRoot: string, sourceDir: string, targetDir: string): boolean;