Aicodebot

Latest version: v0.26.3

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

Scan your dependencies

Page 2 of 9

0.12.1

Unknown

* Support python version 3.10+. Resolves 7 ([`dbcad55`](https://github.com/TechNickAI/AICodeBot/commit/dbcad554abfcec345a192ca3262f5254bf7f7211))

* Update workflow dependency from &39;smoke_test&39; to &39;test&39;

In the PyPi release workflow, the dependency has been updated from &39;smoke_test&39; to &39;test&39;. This change ensures that the correct test suite is run before the package is published to PyPi. ๐Ÿ”„๐Ÿงช ([`56048cd`](https://github.com/TechNickAI/AICodeBot/commit/56048cdd490aa8efe49056153177efee07e81f83))

* Refactor PyPi release workflow for broader Python version testing ๐Ÿ

Renamed the job from &39;smoke_test&39; to &39;test&39; and expanded the Python version matrix to include 3.9, 3.10, and 3.11. This change ensures our package is tested across a wider range of Python versions, enhancing compatibility and reliability. ([`b085346`](https://github.com/TechNickAI/AICodeBot/commit/b085346436d2c7d896b88557968581aec674a070))

* Try with 3.10 and 3.11 ([`5aeabef`](https://github.com/TechNickAI/AICodeBot/commit/5aeabeffe344e564e691554d466df3e885d5ac46))

* Simplify Python versions and streamline package build process ๐Ÿ

This commit reduces the matrix of Python versions for smoke tests to only 3.11. It also combines the package build and installation steps into one, making the workflow more efficient. ([`81c561d`](https://github.com/TechNickAI/AICodeBot/commit/81c561d2587df52353aa78730248621158089277))

0.12.0

Unknown

* Bump version to 0.12.0. Notably, python 3.9 and 3.10 suppoert ([`2a6c23f`](https://github.com/TechNickAI/AICodeBot/commit/2a6c23f98816548a0220dbb91a8045ee8a7b85aa))

* Test with python 3.9 and 3.10 ([`24bd973`](https://github.com/TechNickAI/AICodeBot/commit/24bd9732ae1b4e575eb7c3681d586d0772021a48))

* Fix Path.open operations to be compatible with python < 3.9

This commit refactors file operations across multiple files to use more concise and readable methods provided by the `Path` class. The `create_and_write_file` helper function has been introduced and used in several places, replacing the previous `open` and `write` operations. This change improves code readability and maintainability. ๐Ÿ“š๐Ÿ”ง ([`1589617`](https://github.com/TechNickAI/AICodeBot/commit/1589617653d34595c6403bacd641ab52d68ce7db))

* Minor prompt changes ([`747c7a9`](https://github.com/TechNickAI/AICodeBot/commit/747c7a93a2fcf4385104e9be0e90bf778fbbf419))

* Let&39;s use just python 3.11 until we have it working with other versions ([`b121ac9`](https://github.com/TechNickAI/AICodeBot/commit/b121ac982dc7eaf0032e752b4705ec12c6852f76))

* Expand Python version matrix and improve user interaction in CLI

This commit does a few things:
- Expands the Python version matrix in the GitHub Actions workflow to include Python 3.10 and 3.11. This ensures our tests run on the latest versions of Python. ๐Ÿ
- Improves user interaction in the CLI by adding a period to the end of a console print statement and changing the input prompt to include a robot emoji for a more friendly user experience. ๐Ÿค–
- Updates the coder.py file to include the anthropic/claude-2 model in the model options. This provides more options for the users. ๐Ÿš€

These changes aim to improve the user experience and ensure our software is tested against the latest Python versions. ([`1a32169`](https://github.com/TechNickAI/AICodeBot/commit/1a321699b7b80503e000c89eceeffdde8b0bcdd1))

* Refine PyPi release workflow ๐Ÿš€

Enhanced the PyPi release workflow in the GitHub Actions. Added a dependency on the smoke test job, ensuring it passes before proceeding with the release. Also, included steps for code checkout, Python setup, and package building. Now using Python 3.11 and caching pip for faster runs. ([`1a4e57d`](https://github.com/TechNickAI/AICodeBot/commit/1a4e57d0c50fdeec786d902ac3c4a69380261c70))

* Let&39;s start the matrix with just 3.11 and then start adding more ([`89ed9ae`](https://github.com/TechNickAI/AICodeBot/commit/89ed9ae8b7d076084f9b7e42aa8bdda7c1a38a99))

* numpy requires >3.9 ([`37f33ba`](https://github.com/TechNickAI/AICodeBot/commit/37f33bae4b19edfd203aa8bcc3f6fd9120fafa66))

* Move checkout code before setup python ([`a458764`](https://github.com/TechNickAI/AICodeBot/commit/a4587645e6dd3fad82b6051e4e86b150ec757c60))

* Refactor PyPi release workflow and add smoke tests ๐Ÿ”„๐Ÿงช

This commit refactors the PyPi release workflow in `.github/workflows/pypi_release.yml`. The `pypi_release` job has been simplified and a new `smoke_test` job has been added. The smoke test runs on multiple Python versions (3.7 to 3.11) and includes a pytest run. This ensures our package is robust across different Python environments before it&39;s published to PyPi. ๐Ÿš€ ([`dfe6b5a`](https://github.com/TechNickAI/AICodeBot/commit/dfe6b5a14a1042bbcd14d14ee06df6fa6690049a))

0.11.1

Unknown

* Bump version to 0.11.1 ([`8bcf8c1`](https://github.com/TechNickAI/AICodeBot/commit/8bcf8c1027d25b5ea61bd5a470e54053eba83a61))

* Simpler config function that will simplify AICodeBot-action testing ([`6e28d09`](https://github.com/TechNickAI/AICodeBot/commit/6e28d09b1330868a505ace313f36785bd66a72bd))

* Refactor README.md for clarity and token management ๐Ÿ“š

Relocated the section about language model selection to a more appropriate location in the README. Added a comprehensive explanation on understanding tokens and using commands efficiently. This should help users manage their tokens effectively and understand the limitations and possibilities of different AI models. Also provided guidance on how to handle larger token limits. ๐Ÿš€ ([`dfbadf5`](https://github.com/TechNickAI/AICodeBot/commit/dfbadf507b2295bbc2db45da2cf922c95dcdaedd))

0.11.0

Unknown

* Bump version to 0.11.0 ([`8abd21c`](https://github.com/TechNickAI/AICodeBot/commit/8abd21cdbf532946037e226b34105ce42c09a4fc))

* Add support for Open Router API in Coder class

This commit introduces the ability to use the Open Router API in the Coder class if an `openrouter_api_key` is provided in the configuration. This allows for access to models with larger token limits. If the Open Router API key is not provided, the code falls back to using the OpenAI API key. The commit also refactors the `get_llm_model_name` method to support model selection based on the provided API key. ๐Ÿš€๐Ÿ”‘ ([`bcf9cbe`](https://github.com/TechNickAI/AICodeBot/commit/bcf9cbeba5e35e5d77de430a1e101cfa68f15fcf))

* Refine personality descriptions in prompts.py

The descriptions of the AI personalities in the prompts.py file have been updated for clarity and consistency. Emojis usage has been specified for each personality where it was previously ambiguous. This should provide a clearer guideline for the AI&39;s behavior and responses. ([`5d187e8`](https://github.com/TechNickAI/AICodeBot/commit/5d187e8f2f83ff8e50b4b19136aeff9b21904214))

* Refine GitHub Actions integration section in README

The section detailing the integration of AICodeBot with GitHub via GitHub Actions has been revised for clarity and conciseness. The new text emphasizes the automation of code reviews on every commit, enhancing the understanding of the feature&39;s utility. ([`6934fdc`](https://github.com/TechNickAI/AICodeBot/commit/6934fdc49cda5bda7c8eef55448fdf7e000cbd82))

* Update aicodebot.yml to use v1 tag ([`a9ee638`](https://github.com/TechNickAI/AICodeBot/commit/a9ee6380e2d45d3249b2d211b943ad1e82a0b563))

* Update README.md ([`79ce206`](https://github.com/TechNickAI/AICodeBot/commit/79ce206a1a735e38217800154fca97520185f84b))

* Upgrade versions of black and ruff-pre-commit

The versions of black and ruff-pre-commit have been updated to 23.7.0 and v0.0.278 respectively. This ensures that we are using the latest versions of these tools, benefiting from any improvements or bug fixes they may have received. ([`7d7054d`](https://github.com/TechNickAI/AICodeBot/commit/7d7054db5a9cdeecda4a8362e776361a5e6377ea))

* Refactor &39;commit&39; function and enhance pre-commit checks

In the &39;commit&39; function, a linter warning has been suppressed by adding a &39;noqa&39; comment. This change suggests that the function may be complex and could benefit from further refactoring in the future.

Additionally, the pre-commit checks have been improved. Now, if the &39;pre-commit&39; tool is not installed, a warning message will be displayed instead of attempting to run the checks. This change enhances the robustness of the code and provides better feedback to the user. ([`d51dc0c`](https://github.com/TechNickAI/AICodeBot/commit/d51dc0c8884119c86f49a2cbf391fe40054a8139))

* Reduce test response token size and adjust review test parameters

The test response token size has been reduced from 200 to 150 to expedite testing. Additionally, the parameters for the review test have been adjusted to ensure the response is valid JSON. This includes increasing the test token size for this specific test. ([`76aca26`](https://github.com/TechNickAI/AICodeBot/commit/76aca2646c4b84c02c809a9bd3a61423446852c8))

* Refactor test_cli.py for improved readability and maintainability

The response token size for tests in test_cli.py has been extracted to a constant, TEST_RESPONSE_TOKEN_SIZE, to avoid repetition and improve readability. This change enhances the maintainability of the code by centralizing the control of this value. ([`ddc3d1d`](https://github.com/TechNickAI/AICodeBot/commit/ddc3d1d90b1bc84d342e18acee07c5cc436e7dec))

0.10.6

Unknown

* Bump version to 0.10.6 ๐Ÿš€

Just a quick version bump to keep things rolling. No major changes, just keeping up with the times! ([`e627014`](https://github.com/TechNickAI/AICodeBot/commit/e6270147d9918e21470a7c4a95832d6761f76e12))

* Enhance code review functionality in CLI and Coder ๐Ÿ› ๏ธ

This commit introduces the ability to specify files for the code review command in the CLI. If no files are specified, the command will consider all staged and unstaged changes. The `git_diff_context` method in the Coder class has also been updated to accommodate this change.

In addition, the test cases have been updated to reflect these changes. This enhancement should provide more flexibility when performing code reviews. ๐Ÿš€ ([`92770bc`](https://github.com/TechNickAI/AICodeBot/commit/92770bcca2e674764813b7e9f890524018da2556))

* Use the proper variable when committing staged files ([`17d2319`](https://github.com/TechNickAI/AICodeBot/commit/17d2319239639b63f35b180cc6523248b1b2b7ee))

* Refine review guidelines in prompts.py ๐Ÿ“

Adjusted the review guidelines in `prompts.py` to provide clearer instructions. Minor changes and formatting issues are now explicitly stated to be non-discussable, and the addition of extra documentation/comments is also discouraged. The aim is to maintain focus on significant issues and code improvement. Keep it succinct, keep it relevant! ๐Ÿ˜Š ([`445938f`](https://github.com/TechNickAI/AICodeBot/commit/445938f40dcc2b6cd088cef5c4b04beffbaa155a))

* Refine commit process in cli.py ๐Ÿ› ๏ธ

This commit enhances the commit process in the cli.py file. We&39;ve added a live console print to provide real-time feedback while generating the commit message. Additionally, we&39;ve introduced a confirmation step before using the generated commit message. If not approved, the commit message can be edited in the user&39;s preferred editor. Lastly, we&39;ve moved the deletion of the temporary file to the end of the process to ensure it&39;s always cleaned up. Happy coding! ๐Ÿš€ ([`048d203`](https://github.com/TechNickAI/AICodeBot/commit/048d203c4907980bd2cfb6d838a4a4b81e746d37))

* Add console print for staged files to be committed

Added a console print statement in `aicodebot/cli.py` to display the list of staged files that will be committed. This provides better visibility for the user on what changes are about to be committed. ๐Ÿ“๐Ÿ‘€ ([`5fff8e6`](https://github.com/TechNickAI/AICodeBot/commit/5fff8e66f786d181a768e75a260cc9d56253210b))

* Enhance commit functionality in cli.py and update tests ๐Ÿ› ๏ธ

This commit introduces the ability to specify files for the commit command in cli.py. Now, users can choose to commit changes from specific files, providing more flexibility. The changes also include updates to the corresponding tests to reflect this new functionality.

Additionally, minor adjustments have been made to improve code readability and maintainability. For instance, the &39;sys.exit()&39; calls have been replaced with &39;return&39; or &39;sys.exit(0)&39; for better clarity.

This should make the commit process more intuitive and user-friendly. Happy coding! ๐Ÿ˜Š ([`6c087f2`](https://github.com/TechNickAI/AICodeBot/commit/6c087f273066020036928ac3efc97f586090c140))

* Slightly larger token size for the test, because 100 isn&39;t always big enough for a structured result ([`c2505d6`](https://github.com/TechNickAI/AICodeBot/commit/c2505d6e80756b2e581f1aebdd4e3734b59bc0b4))

0.10.5

Unknown

* Bump version to 0.10.5 ([`1127226`](https://github.com/TechNickAI/AICodeBot/commit/11272268a3a40847d0c578a60f23f6a731aaa931))

* Refactor commit function and add git file handling methods

This commit refactors the `commit` function in `cli.py` to improve code readability and maintainability. It introduces two new methods in `coder.py` - `git_staged_files` and `git_unstaged_files` - to handle git file operations. The `commit` function now uses these methods to get the list of staged and unstaged files.

In addition, the commit function now confirms with the user before committing all modified files if no files are staged. It also runs pre-commit checks on the list of files to be committed, instead of all files.

The `test_cli.py` has been updated to include more comprehensive tests for the `commit` function, covering scenarios with only unstaged changes, both staged and unstaged changes, and no changes at all.

This refactor should make the code easier to understand and modify in the future. ๐Ÿš€ ([`b8f3953`](https://github.com/TechNickAI/AICodeBot/commit/b8f395324831f2bbeba89f2902a10bd4f683a3ed))

* Refine git diff output for better commit context ๐Ÿ“

Adjusted the `git_diff_context` method in `coder.py` to include the commit message along with the diff. This change enhances the context provided when a specific commit is queried, making it easier to understand the changes made. ๐Ÿ•ต๏ธโ€โ™‚๏ธ๐Ÿ” ([`001c1a8`](https://github.com/TechNickAI/AICodeBot/commit/001c1a81379b2ece0a1b7d8ecd9e820fca7294aa))

Page 2 of 9

ยฉ 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.