MCPcopy Create free account
hub / github.com/OpenDCAI/OpenPrism / getProjectRoot

Function getProjectRoot

apps/backend/src/services/projectService.js:5–10  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

3import { DATA_DIR } from '../config/constants.js';
4
5export async function getProjectRoot(id) {
6 const projectRoot = path.join(DATA_DIR, id);
7 const metaPath = path.join(projectRoot, 'project.json');
8 await fs.access(metaPath);
9 return projectRoot;
10}

Callers 10

registerPlotRoutesFunction · 0.90
registerVisionRoutesFunction · 0.90
registerCollabRoutesFunction · 0.90
registerProjectRoutesFunction · 0.90
runCompileFunction · 0.90
runToolAgentFunction · 0.90
analyzeSourceFunction · 0.90
parsePdfWithMineruFunction · 0.90
analyzeTargetFunction · 0.90
compileSourceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected