isMarketplaceAutoUpdate function
Check if auto-update is enabled for a marketplace. Uses the stored value if set, otherwise defaults based on whether it's an official Anthropic marketplace (true) or not (false).
Implementation
bool isMarketplaceAutoUpdate(String marketplaceName, {bool? autoUpdate}) {
final normalizedName = marketplaceName.toLowerCase();
return autoUpdate ??
(allowedOfficialMarketplaceNames.contains(normalizedName) &&
!_noAutoUpdateOfficialMarketplaces.contains(normalizedName));
}