@@ -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 */
3232export 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