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

Function createProjectState

src/project-state.ts:67–75  ·  view source on GitHub ↗
(rootPath: string)

Source from the content-addressed store, hash-verified

65const projects = new Map<string, ProjectState>();
66
67export function createProjectState(rootPath: string): ProjectState {
68 return {
69 rootPath,
70 paths: makePaths(rootPath),
71 indexState: { status: 'idle' },
72 autoRefresh: createAutoRefreshController(),
73 runtimeOverrides: {}
74 };
75}
76
77export function getOrCreateProject(rootPath: string): ProjectState {
78 const key = normalizeRootKey(rootPath);

Callers 5

getOrCreateProjectFunction · 0.85
handleMapCliFunction · 0.85
runSearchPreflightFunction · 0.85
createToolProjectFunction · 0.85

Calls 2

makePathsFunction · 0.85

Tested by

no test coverage detected