• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agentjido / jido_ai / d686560a43210e1b1a9deab0bb17b02eea8d24c4

13 Aug 2025 09:07PM UTC coverage: 44.292% (+0.8%) from 43.445%
d686560a43210e1b1a9deab0bb17b02eea8d24c4

push

github

web-flow
Refactor Jido.AI.Keyring module and enhance logging capabilities (#50)

* Refactor Jido.AI module and enhance logging capabilities

- Updated the Jido.AI module documentation to provide a clearer overview of the API, including configuration and model management.
- Introduced a new Jido.AI.Keyring.Filter module to sanitize sensitive data in log messages, preventing accidental exposure of API keys and other secrets.
- Modified the logger configuration to utilize the new filter for improved security.
- Enhanced the Keyring module to support ETS for faster environment variable lookups and improved session management.

This commit improves the overall security and usability of the Jido.AI library.

* Formatting - Update JWT token test for clarity

- Reformatted the JWT token string in the `Jido.AI.Keyring.FilterTest` to improve readability.
- This change enhances the maintainability of the test by making the token easier to identify and modify in the future.

* Refactor Jido.AI.Keyring for improved environment variable management

- Updated the `Jido.AI` module to dynamically construct keys for API keys and models, enhancing flexibility.
- Introduced a new private function in `Jido.AI.Keyring` to generate environment table names, improving ETS table management.
- Enhanced the `start_link` and `init` functions to support unique ETS table names and added error handling for environment table lookups.
- Updated the `terminate` function to clean up ETS tables on process termination, preventing conflicts on restart.
- Removed redundant sensitive patterns in the `Jido.AI.Keyring.Filter` module for better clarity.

These changes improve the overall robustness and maintainability of the Jido.AI library.

* Refactor sensitive key handling in Jido.AI.Keyring.Filter to address Credo issues

- Renamed `is_sensitive_key?/1` to `sensitive_key?/1` for improved clarity and consistency.
- Updated the `sanitize_data/1` function to use the new `sensitive_key?/1` function.
- A... (continued)

64 of 96 new or added lines in 3 files covered. (66.67%)

1 existing line in 1 file now uncovered.

842 of 1901 relevant lines covered (44.29%)

20.33 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/jido_ai.ex


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc