Indonesia has agreed to share with Singapore the names of companies suspected of causing forest fires that have led to a deterioration of air quality in the city state.