MCPcopy Create free account
hub / github.com/backnotprop/plannotator / startCodeWalk

Function startCodeWalk

packages/shared/resolve-file.ts:243–255  ·  view source on GitHub ↗
(projectRoot: string)

Source from the content-addressed store, hash-verified

241}
242
243function startCodeWalk(projectRoot: string): Promise<string[] | null> {
244 return Promise.resolve().then(() => {
245 try {
246 const results: string[] = [];
247 walkFiles(projectRoot, projectRoot, results, CODE_IGNORED_DIRS, (name) =>
248 CODE_FILE_BASENAME_REGEX.test(name),
249 );
250 return results;
251 } catch {
252 return null;
253 }
254 });
255}
256
257/**
258 * Trigger (or return the in-flight) walk of `projectRoot` for code files.

Callers 1

warmFileListCacheFunction · 0.85

Calls 2

walkFilesFunction · 0.85
resolveMethod · 0.65

Tested by

no test coverage detected