Cotal TypeScript packages
    Preparing search index...

    Function personaProjectRoot

    • The project folder a persona path belongs to, when it sits in one: the folder holding the .cotal/agents directory the path is in, directly or in a folder below it. Matched by whole path segments, so foo.cotal/agents is not a project's. Undefined for a path elsewhere. The path is judged as given; loadTrustCheckedPersona judges every spelling on the way to the file.

      Parameters

      • file: string

      Returns string | undefined