MCPcopy
hub / github.com/ConardLi/easy-dataset / getTaskConfig

Function getTaskConfig

lib/db/projects.js:143–152  ·  view source on GitHub ↗
(projectId)

Source from the content-addressed store, hash-verified

141
142// 获取任务配置
143export async function getTaskConfig(projectId) {
144 const projectRoot = await getProjectRoot();
145 const projectPath = path.join(projectRoot, projectId);
146 const taskConfigPath = path.join(projectPath, 'task-config.json');
147 const taskData = await readJsonFile(taskConfigPath);
148 if (!taskData) {
149 return DEFAULT_SETTINGS;
150 }
151 return taskData;
152}

Calls 2

getProjectRootFunction · 0.90
readJsonFileFunction · 0.90

Tested by

no test coverage detected