MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / parseProjectSelector

Function parseProjectSelector

src/index.ts:482–489  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

480}
481
482function parseProjectSelector(value: unknown): string | undefined {
483 if (typeof value !== 'string') return undefined;
484
485 const trimmedValue = value.trim();
486 if (!trimmedValue) return undefined;
487
488 return trimmedValue;
489}
490
491function parseProjectDirectory(value: unknown): string | undefined {
492 const selector = parseProjectSelector(value);

Callers 2

parseProjectDirectoryFunction · 0.85
resolveProjectForToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected