Files
opencommit/src/commands
di-sukharev 5b241ed2d0 refactor: enhance error handling and normalization across AI engines
This update introduces a centralized error handling mechanism for various AI engines, improving the consistency and clarity of error messages. The new `normalizeEngineError` function standardizes error responses, allowing for better user feedback and recovery suggestions. Additionally, specific error classes for insufficient credits, rate limits, and service availability have been implemented, along with user-friendly formatting for error messages. This refactor aims to enhance the overall user experience when interacting with the AI services.
2026-01-17 23:34:49 +03:00
..
2024-09-01 18:21:56 +03:00
2024-09-01 18:21:56 +03:00

@commitlint Module for opencommit

  1. Load commitlint configuration within tree.
  2. Generate a commit with commitlint prompt:
    • Will not run if hash is the same.
    • Infer a prompt for each commitlint rule.
    • Ask OpenAI to generate consistency with embedded commitlint rules.
    • Store configuration close to commitlint configuration.
  3. Replace conventional-commit prompt with commitlint prompt.