In this sense it has a role very close to that of confession to the director, about which John Cassian will say, in keeping with Evagrian spirituality, that it must reveal, without exception, all the impulses of the soul (omnes cogitationes)
To me, this idea of writing that speaks and reveals information to a "director" is the very basic idea for what first person narratives are.
Furthermore, this idea of confessing to an audience through an interactive narrative translates to various media, as well. However, even though these confessions are seemingly necessary in textual renditions of narratives, they can often be misconstrued as more intrusive fourth wall breaks due to this change in media. This creates a very thin line between these confessions being additive to the narrative or if they take away from the overall intent of the author.
To keep this idea going still, upon researching the definition of "cogitationes," the definitions were either of self-reflection, thoughts, or the act of thinking; something clearly represented through Foucault's writing, but a connection I found interesting, nonetheless.