MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / abs

Function abs

src/agent/verification.ts:48–50  ·  view source on GitHub ↗

Normalize a path to absolute against `cwd` for robust comparison.

(cwd: string, p: string)

Source from the content-addressed store, hash-verified

46
47/** Normalize a path to absolute against `cwd` for robust comparison. */
48function abs(cwd: string, p: string): string {
49 return path.isAbsolute(p) ? path.normalize(p) : path.resolve(cwd, p);
50}
51
52/** Keep only the touched source files whose extension a checker can handle. Pure. */
53export function relevantTouchedFiles(touched: string[], spec: CheckerSpec): string[] {

Callers 1

filterToTouchedFunction · 0.85

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected