MCPcopy Create free account
hub / github.com/clawbot7/cli-gateway / resolvePathRelativeTo

Function resolvePathRelativeTo

src/config.ts:28–36  ·  view source on GitHub ↗
(
  raw: string,
  baseDir: string,
  homeDir: string,
)

Source from the content-addressed store, hash-verified

26}
27
28function resolvePathRelativeTo(
29 raw: string,
30 baseDir: string,
31 homeDir: string,
32): string {
33 const expanded = expandPath(raw, homeDir);
34 if (path.isAbsolute(expanded)) return expanded;
35 return path.join(baseDir, expanded);
36}
37
38function createConfigSchema(defaults: {
39 defaultWorkspaceRoot: string;

Callers 1

loadConfigFunction · 0.85

Calls 1

expandPathFunction · 0.85

Tested by

no test coverage detected