MCPcopy Create free account
hub / github.com/MigoXLab/coderio / getAssetFilesList

Function getAssetFilesList

src/nodes/code/utils.ts:195–208  ·  view source on GitHub ↗

* Get list of available asset files for AI to match against

(state: GraphState)

Source from the content-addressed store, hash-verified

193 * Get list of available asset files for AI to match against
194 */
195function getAssetFilesList(state: GraphState) {
196 try {
197 const assetsDir = workspaceManager.resolveAppSrc(state.workspace, 'assets');
198
199 if (!fs.existsSync(assetsDir)) {
200 return '';
201 }
202
203 const files = fs.readdirSync(assetsDir);
204 return files.join(', ');
205 } catch {
206 return '';
207 }
208}
209
210/**
211 * Inject root component into App.tsx

Callers 1

processNodeFunction · 0.85

Calls 1

resolveAppSrcMethod · 0.80

Tested by

no test coverage detected