isManagedOAuthContext function
Whether we are in a managed OAuth context (CCR or Neomage Desktop).
Implementation
bool isManagedOAuthContext() {
return _isEnvTruthy(Platform.environment['MAGE_REMOTE']) ||
Platform.environment['MAGE_ENTRYPOINT'] == 'claude-desktop';
}