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

Method identityOnly

src/mcp/tools.ts:3845–3851  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3843 * Same distinction, same test, as the gather path's `isPreciseToken`.
3844 */
3845 const identityOnly = () => (preciseNamedIds.size === 0 ? EMPTY : {
3846 text: '',
3847 pathNodeIds: new Set<string>(),
3848 namedNodeIds: new Set<string>(preciseNamedIds),
3849 uniqueNamedNodeIds: new Set<string>([...uniqueNamedNodeIds].filter((id) => preciseNamedIds.has(id))),
3850 spineCallSites: new Map<string, number>(),
3851 });
3852 if (named.size < 2) {
3853 // <2 CALLABLES resolved. Two recoveries before giving up: (1) synthesized
3854 // edges among named CONSTANT/VARIABLE endpoints — RTK thunk→thunk is

Callers

nothing calls this directly

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected