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

Function getActiveProjectDescriptor

src/index.ts:413–423  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

411}
412
413function getActiveProjectDescriptor(): ProjectDescriptor | undefined {
414 if (!activeProjectKey) return undefined;
415 const trackedRootPath = getTrackedRootPathByKey(activeProjectKey);
416
417 if (!trackedRootPath) {
418 activeProjectKey = undefined;
419 return undefined;
420 }
421
422 return buildProjectDescriptor(trackedRootPath);
423}
424
425function setActiveProject(rootPath: string): void {
426 const resolvedRootPath = path.resolve(rootPath);

Callers 3

createToolContextFunction · 0.85

Calls 2

getTrackedRootPathByKeyFunction · 0.85
buildProjectDescriptorFunction · 0.85

Tested by

no test coverage detected