Due to the workaround mentioned here, I had to convert a PDF file to knowledge using node.
That created a file which holds an object (from folder2knowledge.js):
const output = {
documents: docs,
chunks: chks
};
When running knowledge2character.js, it creates a new character.json file holding that object as knowledge, but when running the agent with pnpm start --character="characters/<character>.character.json", it fails with a parsing error since it's expecting an array for knowledge instead of an object.