MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / isTextIndexCandidate

Function isTextIndexCandidate

src/tools/semantic-search.ts:55–57  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

53const DEFAULT_MAX_EMBED_FILE_SIZE = 50 * 1024;
54
55function isTextIndexCandidate(filePath: string): boolean {
56 return TEXT_INDEX_EXTENSIONS.has(extname(filePath).toLowerCase());
57}
58
59function toIntegerOr(value: string | undefined, fallback: number): number {
60 if (!value) return fallback;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected