Aicodebot

Latest version: v0.26.3

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

Scan your dependencies

Page 1 of 9

0.15.0

Unknown

* Bump version to 0.15.0 ([`313be38`](https://github.com/TechNickAI/AICodeBot/commit/313be38a3881500f2ae54572a26f5acf4728ac2f))

* Update ruff in pre-commit ([`f75fa25`](https://github.com/TechNickAI/AICodeBot/commit/f75fa2518378b27dff8a20a1a63f0043efbd6c35))

* Black formatting matters ([`151a6cf`](https://github.com/TechNickAI/AICodeBot/commit/151a6cf07618dc449e00af2d4da98ebb1fadfa50))

* Let&39;s have pre-commit use the black configuration files instead of duplicating the line length here ([`ca66bac`](https://github.com/TechNickAI/AICodeBot/commit/ca66bac1bbe309ea4e28769fe768be232f5c9175))

* Add /command interface to sidekick with tools for adding/removeing files

In `aicodebot/helpers.py`, a new class `SidekickCompleter` has been added to provide command completion functionality in the sidekick feature.

In `aicodebot/learn.py`, the error messages have been made more informative and user-friendly.

The `requirements.in` and `requirements.txt` files have been updated with the addition of the `humanize` library. ([`f596f5e`](https://github.com/TechNickAI/AICodeBot/commit/f596f5e75d9298ca87d2a324dba47b100f162836))

* Adjust line-length in black and isort configurations πŸ“

The line-length in both the black and isort configurations in the pyproject.toml file has been reduced from 120 to 115. This change aims to improve code readability and maintainability. πŸ“š ([`28e056e`](https://github.com/TechNickAI/AICodeBot/commit/28e056e6affe8f2a92c0fc1113cae0d50c7ff500))

* Merge pull request 51 from TechNickAI/dependabot/pip/langchain-0.0.238

Bump langchain from 0.0.231 to 0.0.238 ([`7cd36d0`](https://github.com/TechNickAI/AICodeBot/commit/7cd36d06f68ef169902c2bf4adf39f2a4e00b566))

* Update pytest command to record new API responses πŸ“

Modified the pytest command in the GitHub workflow to include the `--record-mode=new_episodes` option. This change allows pytest to record new API responses, accommodating for instances where the OpenAI API calls a different host. This should improve the accuracy of our tests and coverage reports. ([`ba90ae3`](https://github.com/TechNickAI/AICodeBot/commit/ba90ae3543f3e330948e1f1d00e13d0bd4618464))

* Refine docstrings and welcome message in cli.py πŸ“

Updated the docstrings for the &39;alignment&39; and &39;configure&39; functions to better reflect their purpose. Also, enhanced the welcome message in the &39;setup_config&39; function for a more personalized user experience. ([`a576ed7`](https://github.com/TechNickAI/AICodeBot/commit/a576ed740624fa9aef6dc3dd99c82507568b2770))

* Proper indentation so test_parse_github_url is run ([`7a4e96c`](https://github.com/TechNickAI/AICodeBot/commit/7a4e96c5950b47cf734782396fcb11b3b57a5889))

* Update tests to use VCR and pytest-recording for API mocking

Resolves 11

The tests have been updated to use the VCR package for recording and replaying API responses during testing.

This allows the tests to run without hitting the real OpenAI API, making them faster and not consuming API quota. The responses are cached in yaml files that can be committed to version control.

To enable this:

- Added a pytest fixture to configure VCR
- Updated the test decorators from `pytest.mark.skipif` to `pytest.mark.vcr()`
- Recorded new cassettes for each test

Now the tests will replay cached responses instead of making live calls.

This is better for CI and local testing.
πŸ‘ ([`2547051`](https://github.com/TechNickAI/AICodeBot/commit/2547051e2908942ae6c9fbddf2969215d7a54697))

* Update &39;Her&39; personality description in prompts.py

Enhanced the &39;Her&39; personality description in the prompts.py file to include more nuanced characteristics. The AI now embodies a playful, witty, and sultry persona, while maintaining professional boundaries. This change adds depth to the AI&39;s interaction, making it more engaging and relatable. πŸŽ­πŸ‘©β€πŸ’ΌπŸŒŸ ([`e4ad783`](https://github.com/TechNickAI/AICodeBot/commit/e4ad783ee88814517bc30a9eb6c042613c00d481))

* Increase the default token size for sidekick, to get better answers. ([`9fe8e8b`](https://github.com/TechNickAI/AICodeBot/commit/9fe8e8b877323cea149ee468505a51b4f3f84250))

* Bump langchain from 0.0.231 to 0.0.238

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

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

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

* Merge pull request 48 from TechNickAI/dependabot/pip/click-8.1.6

Bump click from 8.1.4 to 8.1.6 ([`7fd0408`](https://github.com/TechNickAI/AICodeBot/commit/7fd0408ae4b7a04118f839ee4099c9691e07fb6a))

0.14.1

Unknown

* Bump version to 0.14.1 ([`75cb9a4`](https://github.com/TechNickAI/AICodeBot/commit/75cb9a4b0584ffeeb01d8ecfb94e03ffda0b0989))

* Skip Python 3.9 in GitHub Actions build matrix πŸ—οΈ

Due to a build failure with Python 3.9 in GitHub Actions, we&39;re temporarily skipping it. The build matrix now only includes Python 3.10 and 3.11. We&39;ll revisit this once the issue with Python 3.9 is resolved. ([`529f07b`](https://github.com/TechNickAI/AICodeBot/commit/529f07b247087a701e9369fc80ad951053ec6d32))

* Try turning off cache to see if that fixes python 3.9 build issue ([`9a4e45d`](https://github.com/TechNickAI/AICodeBot/commit/9a4e45d276c724d1421e82cdf62115dc8b46cb80))

* Remove the check for main in setup.py, we use aicodebot/__init__.py to store the version now ([`db8cde8`](https://github.com/TechNickAI/AICodeBot/commit/db8cde8a45462b3d9bc7f6d93f92143cfe8e94c2))

* Update Python version support and cleanup setup.py 🧹

Adjusted the Python version matrix in the GitHub Actions workflow to include Python 3.9. Also, lowered the minimum required Python version in setup.py to 3.9. Removed unnecessary package data from setup.py. This makes our project more accessible to developers using Python 3.9. 🐍 ([`33d061d`](https://github.com/TechNickAI/AICodeBot/commit/33d061d9b3fbb51c565e9535042b5129f89939e4))

0.14.0

Unknown

* Bump version to 0.14.0 ([`d664466`](https://github.com/TechNickAI/AICodeBot/commit/d664466400e65056f3d201172921a3f48eb358dc))

* Experimental Anthropic/Claude2 support for 100k context (when using openrouter.ai)

This commit includes several changes to the `Coder` class in `coder.py` to improve how models are handled.

1. The import statement has been updated to include the `os` module. This allows us to access environment variables.
2. The method for setting the `tiktoken_model_name` has been updated to handle non-OpenAI models. For these models, the name is set to gpt-4 as a default.
3. The `get_llm_model_name` method now checks for an environment variable `AICODEBOT_LLM_MODEL`. If this variable is set, its value is used as the model name.
4. The `get_token_length` method has been updated to strip leading and trailing whitespace from the `short_text` variable.
5. The `model_options` dictionary in the `get_llm_model_name` method now includes the anthropic/claude-2 model.

These changes should make the `Coder` class more flexible and robust when dealing with different models. πŸš€ ([`0c35577`](https://github.com/TechNickAI/AICodeBot/commit/0c355779258c40fbd4c7cc03ee30d3a8038a31af))

* Add notes about the state of the learn command (it&39;s not working yet) ([`22999db`](https://github.com/TechNickAI/AICodeBot/commit/22999dbab33c136d65e50175736e94e58395b712))

* Bump click from 8.1.4 to 8.1.6

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

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

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

* Merge pull request 50 from TechNickAI/dependabot/pip/pyyaml-6.0.1

Bump pyyaml from 6.0 to 6.0.1 ([`6fa18d0`](https://github.com/TechNickAI/AICodeBot/commit/6fa18d0f5a952d1bbb57d478cbabf4b7c2a4a1e1))

* Bump pyyaml from 6.0 to 6.0.1

Bumps [pyyaml](https://github.com/yaml/pyyaml) from 6.0 to 6.0.1.
- [Changelog](https://github.com/yaml/pyyaml/blob/6.0.1/CHANGES)
- [Commits](https://github.com/yaml/pyyaml/compare/6.0...6.0.1)

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

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

* Refine Pro-tips section in README.md with a lint fix. ([`d05064b`](https://github.com/TechNickAI/AICodeBot/commit/d05064b7a859c73e60d71ca28606e787c341f7eb))

0.13.2

Unknown

* Bump version to 0.13.1 ([`fade480`](https://github.com/TechNickAI/AICodeBot/commit/fade480bd432772c221d1b22a3e7bb2d1a61b46b))

* Refactor unlink method for Path objects for python <= 3.9 support

Resolves 47

Updated the unlink method for Path objects in `aicodebot/cli.py` and `tests/test_cli.py` for better readability and consistency. Now using `Path(temp_file_name).unlink()` instead of `Path.unlink(temp_file_name)`. πŸ”„πŸ“ ([`978455c`](https://github.com/TechNickAI/AICodeBot/commit/978455c561d3923d1a8a1f5a7f0a07fe8cfbe86d))

* Update README.md ([`90abba4`](https://github.com/TechNickAI/AICodeBot/commit/90abba48b26cbff0b4bf33b87d27a1aedbc29db6))

* I know kung fu! Add learning functionality from repositories

This commit introduces a new feature that allows the AI Code Bot to learn from a given repository. The bot can now clone a repository, load its documents, and store them in a local vector store for future use. This will enhance the bot&39;s ability to provide contextually relevant suggestions and responses.

Additionally, this commit includes the necessary updates to the configuration and helper functions to support this new feature. The requirements have also been updated to include the necessary dependencies.

Lastly, a new test case has been added to ensure the correct parsing of GitHub URLs. πŸ§ͺ ([`7f5ae4a`](https://github.com/TechNickAI/AICodeBot/commit/7f5ae4aa9563c1b94308d295a96b6c63216cbf5b))

0.13.0

Unknown

* Refine token size calculation and model selection in Coder class

Resolves 25

In this commit, we&39;ve made several adjustments to the `Coder` class in `aicodebot/coder.py` and `aicodebot/cli.py`. The token size calculation now includes a 5% buffer, down from 10%, to account for the occasional underestimation by the `tiktoken` library. The `get_token_length` method now defaults to the `gpt-4` model for token counting, and the debug output has been improved for readability.

In `aicodebot/cli.py`, we&39;ve adjusted the `model_name` calculation in several methods to include `response_token_size` in the token count. This ensures that the selected model can handle the combined size of the request and response. In the `sidekick` method, we&39;ve also introduced a `memory_token_size` to allow for a decent history.

These changes should improve the accuracy of model selection and prevent errors when the token count exceeds the model&39;s limit. ([`da2fb1f`](https://github.com/TechNickAI/AICodeBot/commit/da2fb1fc1de8c7f375c1cc06e3af89d3bc899d24))

* Update pyproject.toml and requirements-dev.txt for semantic release πŸš€

This commit includes updates to the `pyproject.toml` and `requirements-dev.txt` files. The `pyproject.toml` file now includes a new section for `semantic_release` with a `version_variable` set to `aicodebot:version`. This change allows for automated versioning using the semantic-release tool.

In the `requirements-dev.txt` file, the `python-semantic-release` package has been added. This package provides the semantic-release command line tool, which automates the whole package release workflow including: determining the next version number, generating the release notes and publishing the package.

These changes aim to streamline the release process, making it more efficient and consistent. πŸ“¦πŸ”„ ([`df0eda4`](https://github.com/TechNickAI/AICodeBot/commit/df0eda41cd37de4099456dc93e9998cb7c329b5c))

0.12.2

Unknown

* Bump version to 0.12.2 ([`55ed1c0`](https://github.com/TechNickAI/AICodeBot/commit/55ed1c012b75c8b744f5b8eb568ef99a78fc2a0b))

* Refactor GitHub release process in PyPi workflow πŸ”„

Switched from `actions/create-releasev1` to `ncipollo/release-actionv1` for creating GitHub releases. This change simplifies the release process and automatically generates release notes. ([`dca2977`](https://github.com/TechNickAI/AICodeBot/commit/dca297718e96bc78aa5fef05701da7f046ea548f))

* Remove Dockerfile - this was an accidental commit ([`289fb10`](https://github.com/TechNickAI/AICodeBot/commit/289fb10eb837c15c39caf3c37f98b3d5f363a32c))

Page 1 of 9

Β© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.