Aicodebot

Latest version: v0.26.3

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

0.10.4

Unknown

* Bump version to 0.10.4 ([`7652ece`](https://github.com/TechNickAI/AICodeBot/commit/7652eceed20ab67502aeb411af1fe85ba7dc2fc8))

* Reuse the EXPERT_SOFTWARE_ENGINEER prompt fragment for sidekick

The &39;Sidekick related prompts&39; section has been restructured to include &39;Prompt fragments&39;. The &39;DIFF_CONTEXT_EXPLANATION&39; and &39;EXPERT_SOFTWARE_ENGINEER&39; prompts have been moved to this new section for better organization. The &39;EXPERT_SOFTWARE_ENGINEER&39; prompt has also been added to the &39;SIDEKICK_TEMPLATE&39; for more context. This should make the code easier to navigate and maintain. 📚 ([`ac137fa`](https://github.com/TechNickAI/AICodeBot/commit/ac137fac0240445b0c1b5ae6817f3223ccd695c4))

* Add a function for centrally handling the engine list, with caching

This commit introduces a few key changes to the `Coder` class in `coder.py`:

1. Removed an unnecessary import and added `functools` to the import list.
2. Added a new method `get_openai_supported_engines` that fetches the list of models supported by the OpenAI API key. This method uses `functools.lru_cache` for caching the result, improving efficiency.
3. Refactored `get_llm_model_name` to use the new `get_openai_supported_engines` method, reducing code duplication and improving readability.

These changes should make the `Coder` class more efficient and easier to understand. 🧠💡 ([`ab49577`](https://github.com/TechNickAI/AICodeBot/commit/ab49577cd20fc4c9b23e7350a183ff3fb0e9fff7))

* Add debug option and refactor cli.py 🛠️

In this commit, we&39;ve added a debug option to the CLI, allowing users to enable langchain debug output. This should help with troubleshooting and understanding the inner workings of the program. We&39;ve also made some minor refactoring changes to improve code readability and maintainability. Keep up the good work! 👍 ([`fe7ddda`](https://github.com/TechNickAI/AICodeBot/commit/fe7ddda5cd9560cd397794277718f90672694b5b))

* Lint fix ([`a3612ae`](https://github.com/TechNickAI/AICodeBot/commit/a3612ae5be52a781d96447bb5e7022308db2b787))

0.10.3

Unknown

* Bump version to 0.10.3 ([`df46bfb`](https://github.com/TechNickAI/AICodeBot/commit/df46bfb468d4344e06ecacebeae83af6b8e5bcc0))

* Remove caching of the config file - it causes problems. ([`eb0b588`](https://github.com/TechNickAI/AICodeBot/commit/eb0b58809d13922f73382807a37510e614117cdb))

0.10.2

Unknown

* Bump version to 0.10.2 ([`4200731`](https://github.com/TechNickAI/AICodeBot/commit/4200731315d1400ff439342aadc0e6ca57a20748))

* Refactor prompts.py for clarity and maintainability

In this commit, we&39;ve taken the liberty of refactoring the prompts.py file. The primary change involves the extraction of the &39;EXPERT_SOFTWARE_ENGINEER&39; string into a constant, thereby reducing redundancy and enhancing maintainability. This change should make future modifications to the description of the &39;EXPERT_SOFTWARE_ENGINEER&39; role more straightforward. Furthermore, it improves the readability of the code by reducing clutter. No functional changes were made, and the overall behavior of the program remains the same. ([`e02f41a`](https://github.com/TechNickAI/AICodeBot/commit/e02f41a0a9c1e43b00cec03acac2479b026d839f))

* Refine code reviewer prompt for enhanced clarity and precision

The previous code reviewer prompt was somewhat lacking in specificity and did not adequately convey the level of expertise required for the task. This revision introduces a more detailed description of the reviewer&39;s qualifications, emphasizing their proficiency in Python and commitment to code quality. The instructions for the review have also been clarified, with a particular emphasis on providing actionable, specific, and kind feedback. ([`8da3af9`](https://github.com/TechNickAI/AICodeBot/commit/8da3af9d9dc6f6f73cf4426446081a02f0c6b6d8))

* Lower default precise temperature for more predictable results ([`b970f4d`](https://github.com/TechNickAI/AICodeBot/commit/b970f4dba25ac8a6fe020a54a51485adc75236c0))

0.10.1

Unknown

* Bump version to 0.10.1 ([`a371ece`](https://github.com/TechNickAI/AICodeBot/commit/a371ece8b3f16e5061217c1d05092915aacfca83))

* Add permissions and modify AICodeBot personality in workflow

Permissions for the GitHub token have been added to enable the bot to comment on the commit or pull request with the results of the code review. The AICodeBot personality has been modified to Einstein. The LOG_LEVEL environment variable has been removed. ([`815b13a`](https://github.com/TechNickAI/AICodeBot/commit/815b13a1efd5a280d8c8cf26c5b80037d897f2be))

* Enhance clarity and efficiency in prompts.py

The modifications in the prompts.py file serve to improve the clarity of instructions and the efficiency of the code. The addition of the DIFF_CONTEXT_EXPLANATION provides a more comprehensive explanation of the &39;git diff&39; command output. The instructions for generating commit messages and conducting code reviews have been streamlined for greater efficiency. The changes are logical and adhere to the principles of effective software engineering. ([`951897c`](https://github.com/TechNickAI/AICodeBot/commit/951897cfdb0b373535e7891a878bd5a8e35d562d))

* Allow for the occasional &34;COMMENTS&34; return from the LLM in the test ([`5cc327f`](https://github.com/TechNickAI/AICodeBot/commit/5cc327ffc88af8e591c6c639502567f82e716cb8))

* Merge pull request 33 from TechNickAI/dependabot/pip/gitpython-3.1.32

Bump gitpython from 3.1.31 to 3.1.32 ([`68c8c7d`](https://github.com/TechNickAI/AICodeBot/commit/68c8c7d5510fa5f2feec5bf79fe2bbcd3574d566))

* Merge pull request 35 from TechNickAI/dependabot/pip/langchain-0.0.231

Bump langchain from 0.0.225 to 0.0.231 ([`c62cf3f`](https://github.com/TechNickAI/AICodeBot/commit/c62cf3fb92083fe5d73fa6cdfb81fa22d72d39f5))

* Bump gitpython from 3.1.31 to 3.1.32

Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.31 to 3.1.32.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.31...3.1.32)

---
updated-dependencies:
- dependency-name: gitpython
dependency-type: direct:production
update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <supportgithub.com> ([`b592133`](https://github.com/TechNickAI/AICodeBot/commit/b5921339287409de1d1949c9939cc78c0228c355))

* Bump langchain from 0.0.225 to 0.0.231

Bumps [langchain](https://github.com/hwchase17/langchain) from 0.0.225 to 0.0.231.
- [Release notes](https://github.com/hwchase17/langchain/releases)
- [Commits](https://github.com/hwchase17/langchain/compare/v0.0.225...v0.0.231)

---
updated-dependencies:
- dependency-name: langchain
dependency-type: direct:production
update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <supportgithub.com> ([`a2334db`](https://github.com/TechNickAI/AICodeBot/commit/a2334db3b963358cd1a7a4ef80af89ae8185ae36))

* Merge pull request 34 from TechNickAI/dependabot/pip/click-8.1.4

Bump click from 8.1.3 to 8.1.4 ([`e41d0d3`](https://github.com/TechNickAI/AICodeBot/commit/e41d0d30be5a209529f515beaf11092457c3aebd))

* Mention Github Action in the README ([`3fb5b42`](https://github.com/TechNickAI/AICodeBot/commit/3fb5b422525d99251da92f08b6aa1688269afd7b))

* Integrate AICodeBot for automated code review ...of itself

A new workflow, AICodeBot, has been added to the GitHub Actions. This workflow is triggered on every push, and it performs an automated code review of the changes. It operates on the latest Ubuntu environment and has a timeout limit of 5 minutes. The workflow uses the AICodeBot-action from the TechNickAI repository. It requires two secrets: GITHUB_TOKEN and OPENAI_API_KEY. ([`aeb9b47`](https://github.com/TechNickAI/AICodeBot/commit/aeb9b478a9dabe1c39af85952709861da7d49256))

* Bump click from 8.1.3 to 8.1.4

Bumps [click](https://github.com/pallets/click) from 8.1.3 to 8.1.4.
- [Release notes](https://github.com/pallets/click/releases)
- [Changelog](https://github.com/pallets/click/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/click/compare/8.1.3...8.1.4)

---
updated-dependencies:
- dependency-name: click
dependency-type: direct:production
update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <supportgithub.com> ([`82ec679`](https://github.com/TechNickAI/AICodeBot/commit/82ec6796e51be7ae089177d251d3112893596336))

0.10.0

Unknown

* Bump version to 0.10.0 ([`5ee575e`](https://github.com/TechNickAI/AICodeBot/commit/5ee575e4e6aea2b5976f245eb5d87d9de2e98743))

* Enhance review with output-format=json for GitHub actions!

The code review functionality has been expanded to support structured output in JSON format, and the response token size is now configurable. The review prompt has been updated to provide more detailed instructions. The test coverage has been improved to include tests for the new functionality. Additionally, the &39;json&39; module has been imported in &39;cli.py&39; for handling JSON output. ([`f1851d2`](https://github.com/TechNickAI/AICodeBot/commit/f1851d2280a2922e5f83ade3c8c6e1a534faade5))

* Enhance user input handling in cli.py

The code has been modified to allow users to edit their input using their preferred editor. Post-editing, the revised input is displayed on the terminal for user reference. This enhancement promotes user convenience and traceability. ([`6ea7694`](https://github.com/TechNickAI/AICodeBot/commit/6ea76940194149020d2109dd6e7a8fe69f4cd16a))

0.9.6

Unknown

* Bump version to 0.9.6 ([`4beebfc`](https://github.com/TechNickAI/AICodeBot/commit/4beebfc94cab7f69787bd4efc4ed1b6e2da9c275))

* Refactor debug logging in git_diff_context method

The debug logging in the git_diff_context method of the Coder class has been refactored. The logger now uses the opt(raw=True) option when logging the diff for a specific commit. This change enhances the readability of the logged output. ([`a6782fd`](https://github.com/TechNickAI/AICodeBot/commit/a6782fd22a03d135f5dc9dc18eb8ed4223b15177))

* Refactor configuration logging and cache clearing

In this commit, the logging of the configuration file usage has been moved to the `read_config` function from the `get_config_file` function. This change ensures that the log message is only generated when the configuration file is actually read, providing a more accurate representation of the program&39;s operations.

Additionally, the cache of the `read_config` function is now explicitly cleared in the `test_configure` function in the test suite. This ensures that each test starts with a clean state, preventing potential interference from previous tests. ([`40bb518`](https://github.com/TechNickAI/AICodeBot/commit/40bb5185b78f96d27ba35319221c68b612578162))

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.