GenAI as a cognitive mediator: a critical-constructivist inquiry into computational thinking in pre-university education