(names: readonly string[], withResults: boolean)
| 1125 | * indexing scope is the user's call, never the agent's (AGENTS.md). |
| 1126 | */ |
| 1127 | export 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. |
no test coverage detected