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

Function cloneProject

src/mcp/explore-session-state.ts:330–337  ·  view source on GitHub ↗
(state: MutableProjectState)

Source from the content-addressed store, hash-verified

328}
329
330function cloneProject(state: MutableProjectState): ExploreProjectState {
331 return {
332 projectRoot: state.projectRoot,
333 callCount: state.callCount,
334 responseBytes: state.responseBytes,
335 calls: state.calls.map((c) => ({ ...c, files: c.files.map((f) => ({ ...f, ranges: [...f.ranges] })) })),
336 };
337}
338
339/**
340 * Read the session view a caller injected into tool args, if any. Defensive:

Callers 1

forProjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected