mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-01-12 15:18:24 -05:00
chore(githook.ts): remove unused import refactor(tokenCount.ts): simplify token count calculation The console output now correctly capitalizes OpenCommit for consistency with the project name. The unused import of fileURLToPath is removed. The tokenCount function is refactored to simplify the calculation of the token count. The Tiktoken library is no longer used, and the token count is now calculated based on the length of the content divided by an average token length of 2.7 characters.