import { getAssetFamily } from './asset-naming' import type { AssetCategory } from './types' export function classifyAssetCategory(filename: string): AssetCategory { const name = filename.replace(/\.[^.]+$/, '') const family = getAssetFamily(name.split('_')[0]) return family || 'assets' }