MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / viewForProject

Function viewForProject

src/mcp/explore-session-state.ts:360–368  ·  view source on GitHub ↗
(
  view: ExploreSessionView | null,
  projectRoot: string,
)

Source from the content-addressed store, hash-verified

358 * tracked session" and "untracked" are different situations.
359 */
360export function viewForProject(
361 view: ExploreSessionView | null,
362 projectRoot: string,
363): ExploreProjectState | null {
364 if (!view) return null;
365 const key = exploreProjectKey(projectRoot);
366 return view.projects.find((p) => exploreProjectKey(p.projectRoot) === key)
367 ?? { projectRoot, callCount: 0, responseBytes: 0, calls: [] };
368}

Callers 2

handleExploreMethod · 0.90

Calls 1

exploreProjectKeyFunction · 0.85

Tested by

no test coverage detected