If using dried shiitakes, soak them in warm water until soft. Reserve soaking liquid.
Finely mince the mushrooms, or blitz in a blender with some soaking liquid.
In a small pan, simmer mushrooms, soy sauces, Shaoxing, sugar, and about ½–¾ cup liquid/water (along with black beans and/or plum if using), until reduced by half.
Blend smooth.
Return to heat, stir in cornstarch slurry, cook until it thickens and coats a spoon.
Adjust: more sugar for sweetness, more soy for salt, tiny vinegar splash if it tastes flat.