TODO: Maybe make from some of these utilities the official `@promptbook/utils` and export it publically