repository: add index_state to struct repo