[WIP] Add repository manager

Missing `@return`