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

Function notInIndexNote

src/mcp/tools.ts:1127–1137  ·  view source on GitHub ↗
(names: readonly string[], withResults: boolean)

Source from the content-addressed store, hash-verified

1125 * indexing scope is the user's call, never the agent's (AGENTS.md).
1126 */
1127export function notInIndexNote(names: readonly string[], withResults: boolean): string {
1128 const one = names.length === 1;
1129 const list = names.map((n) => `\`${n}\``).join(', ');
1130 const effect = withResults
1131 ? `, so the code below matches the query's other words, not ${one ? 'it' : 'them'}.`
1132 : '.';
1133 return `> **Not in the index:** ${list}. No indexed symbol, file, signature or comment uses ${one ? 'this name' : 'these names'}${effect}`
1134 + ` If ${one ? 'it is' : 'they are'} defined in this project, the file${one ? '' : 's'} defining ${one ? 'it' : 'them'} ${one ? 'is' : 'are'} not indexed:`
1135 + ` \`codegraph status\` shows what is. If ${one ? 'it lives' : 'they live'} in a folder skipped by default, like \`build/\` or \`dist/\`,`
1136 + ' the user can include that folder by adding a re-include such as `!/build/` to `.gitignore`.';
1137}
1138
1139/**
1140 * Join rendered parts with gap markers that name whatever the trim skipped.

Callers 1

handleExploreMethod · 0.85

Calls 2

mapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected