We should move the wikibase libraries to the "Installed libraries" section of Special:Version, instead of listing them as extensions, and include them in api siteinfo.
currently, libraries installed in mediawiki's vendor directory already get listed as libraries.
wikibase libraries are currently not typically installed there, There could be a hook in SpecialVersion or somewhere and/or an alternative to wfLoadExtension for such libraries to register credits.