Skip to content

Commit ea50a45

Browse files
committed
fix: normalize path separators for cross-platform compatibility
1 parent 1edf3df commit ea50a45

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/path-utils.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ export function getNamespacePath(
2323
type: ConfigType,
2424
namespace: NamespaceType
2525
): string {
26-
return path.join(getBaseConfigDir(scope), type, namespace);
26+
return normalizePath(path.join(getBaseConfigDir(scope), type, namespace));
2727
}
2828

2929
/**
3030
* Get the lockfile path for a scope
3131
*/
3232
export function getLockfilePath(scope: ConfigScope): string {
33-
return path.join(getBaseConfigDir(scope), LOCKFILE_NAME);
33+
return normalizePath(path.join(getBaseConfigDir(scope), LOCKFILE_NAME));
3434
}
3535

3636
/**
@@ -111,12 +111,12 @@ export function getDestinationPath(
111111

112112
if (type === 'skill' && configName.includes('/')) {
113113
// Skills maintain directory structure
114-
return path.join(namespacePath, configName, 'SKILL.md');
114+
return normalizePath(path.join(namespacePath, configName, 'SKILL.md'));
115115
} else if (type === 'agent') {
116-
return path.join(namespacePath, `${configName}.md`);
116+
return normalizePath(path.join(namespacePath, `${configName}.md`));
117117
} else {
118118
// MCP configs keep their extension
119-
return path.join(namespacePath, configName);
119+
return normalizePath(path.join(namespacePath, configName));
120120
}
121121
}
122122

0 commit comments

Comments
 (0)