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

Function readExploreSessionView

src/mcp/explore-session-state.ts:344–350  ·  view source on GitHub ↗
(args: Record<string, unknown>)

Source from the content-addressed store, hash-verified

342 * spells it itself gets ignored rather than trusted into a crash.
343 */
344export function readExploreSessionView(args: Record<string, unknown>): ExploreSessionView | null {
345 const raw = args?.[EXPLORE_SESSION_VIEW_ARG];
346 if (!raw || typeof raw !== 'object') return null;
347 const projects = (raw as ExploreSessionView).projects;
348 if (!Array.isArray(projects)) return null;
349 return { projects: projects.filter((p) => p && typeof p.projectRoot === 'string') };
350}
351
352/**
353 * This session's prior state for one project, from an injected view.

Callers 2

handleExploreMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected