Cotal TypeScript packages
    Preparing search index...

    Function agentCredsRoot

    • <root>/.cotal/auth/creds — the PARENT every space's agent-secret segment sits in, and the directory the pre-P1 layout wrote its files directly into.

      Resolves nothing and migrates nothing, so it is what the two callers that must NOT move material ask for: agentSecretKeysUnder, which is a DELETER (§3.1, the same reason clean's sweep addresses segmentedKey), and agentCredsDir itself, which needs the parent to enumerate before it can migrate. Every other caller wants agentCredsDir.

      It keeps the name creds, which is load-bearing beyond this file: it is the one sibling of the auth dir that migrateLegacyUserAuthState excludes BY NAME and that userAuthSpacesOnDisk skips, so a space's segment landing inside it (rather than beside it, under auth/) leaves both of those statements true as written. That is §3's reason for this placement.

      Parameters

      • root: string

      Returns string