The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
Interfaces were defined for data structures such as Model, Permission, Message, and API response formats.
Assistant and CdGpt were updated to receive types for its properties and methods, ensuring that all methods return correctly typed promises.
CdGpt was enhanced with explicit interfaces for message structures and API interactions, along with type-safe methods for seeding messages and fetching completions.
All old unit tests that previously failed have been refreshed and replaced with new passing ones.
This PR migrates assistants to TS.
Model
,Permission
,Message
, and API response formats.