MCPcopy Create free account
hub / github.com/neomjs/neo / normalizeSourcePath

Method normalizeSourcePath

ai/services/knowledge-base/QueryService.mjs:859–861  ·  view source on GitHub ↗

* @summary Normalizes local source paths to repo-relative POSIX form. * @param {String} source Source path. * @returns {String} Normalized source path.

(source)

Source from the content-addressed store, hash-verified

857 * @returns {String} Normalized source path.
858 */
859 normalizeSourcePath(source) {
860 return (source || '').replaceAll('\\', '/').replace(/^\.?\//, '');
861 }
862
863 /**
864 * @summary Returns true for readable text files, including repo symlinks to files.

Callers 4

addCandidateMethod · 0.95
addGuideTitleRescuesMethod · 0.95
extractPathHintsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected