Treaty Rules Engine written in TypeScript implementing the Rete algorithm. Named Treaty as Rete is pronounced Ree-tee. Rete is an efficient pattern matching algorithm for implementing production rule systems.