Parse a note's chat thread into structured messages.
Reads the chat block starting at ## Chat: <title> and parses each
### <role> · <timestamp> sub-heading into a ChatThreadMessage.
Content before that title is ignored. # / ## lines inside a message
are kept as markdown. A later ## Chat: title starts a new title in the
same parse; the walk continues to EOF. Returns thread_title: null and
an empty messages array if the note has no chat block.
Parse a note's chat thread into structured messages.
Reads the chat block starting at
## Chat: <title>and parses each### <role> · <timestamp>sub-heading into a ChatThreadMessage. Content before that title is ignored.#/##lines inside a message are kept as markdown. A later## Chat:title starts a new title in the same parse; the walk continues to EOF. Returnsthread_title: nulland an emptymessagesarray if the note has no chat block.