[core][js] import rules graph