Commit graph

5421 commits

Author SHA1 Message Date
Paul Gauthier (aider)
b5e51d138e refactor: Initialize Commands instance in Coder 2024-08-01 14:45:57 -03:00
Paul Gauthier (aider)
70fbe10643 feat: Initialize GitRepo in main, pass it into Coder 2024-08-01 14:43:17 -03:00
Paul Gauthier
2fe3701f22 copy 2024-08-01 14:37:38 -03:00
Paul Gauthier (aider)
73bf90f007 feat: Add /add-clipboard-image command 2024-08-01 14:31:48 -03:00
Paul Gauthier
15f589f642 Merge remote-tracking branch 'refs/remotes/origin/main' 2024-08-01 12:37:48 -03:00
Paul Gauthier
3d1138b6c2 Commit any linter edits 2024-08-01 12:36:49 -03:00
paul-gauthier
ddf36d0b4f
Merge pull request #978 from gordonlukch/main 2024-08-01 07:34:32 -03:00
gordonlukch
741c82b6f4
Update docker.md (added one para on docker run .... --user $(id -u):$(id -g) ) 2024-07-31 21:45:48 +01:00
Paul Gauthier
59c51aa368 set version to 0.47.2-dev 2024-07-31 17:23:18 -03:00
Paul Gauthier
5f82c19f59 version bump to 0.47.1 2024-07-31 17:21:40 -03:00
Paul Gauthier
b9d912f432 fix: Update prompts.py to follow Conventional Commits guidelines 2024-07-31 15:32:04 -03:00
Paul Gauthier
2521e990e7 feat: add commit message guidelines to prompts.py
The commit message guidelines provide clear instructions for software engineers on how to structure and format commit messages that follow the Conventional Commits specification. This will help maintain a consistent and meaningful commit history for the project.
2024-07-31 13:12:07 -03:00
Paul Gauthier
870f1f4cfa copy 2024-07-31 12:15:22 -03:00
Paul Gauthier
a6c261dd69 updated blame.yml 2024-07-31 11:35:02 -03:00
Paul Gauthier (aider)
acfaa8c001 feat: sort YAML keys alphabetically
The provided changes ensure that the YAML keys are sorted alphabetically when dumping the results and the individual result in the `scripts/blame.py` file. This will provide a deterministic order for the output, making it more consistent across different runs of the script.
2024-07-31 11:30:11 -03:00
Paul Gauthier
2cc529192d copy 2024-07-31 11:25:21 -03:00
Paul Gauthier
3ae32570d1 set version to 0.47.1-dev 2024-07-31 11:19:12 -03:00
Paul Gauthier
e3339ba227 version bump to 0.47.0 2024-07-31 11:17:35 -03:00
Paul Gauthier
360e311bea copy 2024-07-31 10:59:44 -03:00
Paul Gauthier
aac2ab7c9b copy 2024-07-31 10:56:10 -03:00
Paul Gauthier
b15e96a7b0 Move new args to Other section 2024-07-31 10:53:43 -03:00
Paul Gauthier
928c094b42 Updated HISTORY 2024-07-31 10:51:42 -03:00
Paul Gauthier (aider)
0255030988 feat: add message for non-all-since runs
The commit adds a message to the output when the `--all-since` option is not used, which prints the percentage of code written by Aider in the current release.
2024-07-31 10:51:09 -03:00
Paul Gauthier
3a70ea9faf copy 2024-07-31 10:45:25 -03:00
Paul Gauthier
c63aa97d9d copy 2024-07-31 10:30:27 -03:00
Paul Gauthier
13b0d51028 feat(install): add full version instructions for Docker
The above changes add instructions for installing the full version of the Aider application using Docker, which includes additional features like interactive help, the browser GUI, and Playwright support for web scraping.
2024-07-31 10:29:12 -03:00
Paul Gauthier (aider)
dde7906cf1 fix: correct the {bin,...} in Dockerfile 2024-07-31 10:20:48 -03:00
Paul Gauthier
711ca9df08 feat(docker): add permissions kludges to support docker run --user xxx
The changes in this commit add some permission kludges to the Docker image to support running the container with the `--user` flag. Specifically, it:

- Adds permissions to the virtual environment directory and subdirectories to allow read/write/execute access for all users.
- Creates the `.aider` and `.cache` directories and grants read/write/execute access to all users.

This ensures that the container can be run with a non-root user without encountering permission issues.
2024-07-31 10:20:47 -03:00
Paul Gauthier (aider)
67c4df09fd feat: create virtual environment for aider installation
The changes in this commit create a virtual environment for the aider application in the Docker image. The key changes are:

1. Removes the permission-related commands that were modifying system directories.
2. Creates a virtual environment at `/venv` and adds it to the PATH.
3. Installs aider and its dependencies into the virtual environment.
4. Updates the ENTRYPOINT to use the aider executable from the virtual environment.
5. Copies the aider source to a temporary directory (`/tmp/aider`) for installation, then removes it after installation.

These changes should address the concerns about modifying system permissions while still allowing the container to function properly for different users.
2024-07-31 10:14:29 -03:00
Paul Gauthier
03243e354b Add attribution for conventional commits text 2024-07-31 10:12:25 -03:00
Paul Gauthier
c822a8093a copy 2024-07-31 10:04:14 -03:00
Paul Gauthier
48e831d651 set perms on /.cache 2024-07-31 10:04:08 -03:00
Paul Gauthier
dd166a1492 copy 2024-07-31 09:56:52 -03:00
Paul Gauthier
745c0fcfef feat(docker): add support for running as non-root user
The changes in this commit add support for running the Docker container as a non-root user. Specifically:

- Set permissions on the /.aider and /app directories to allow read/write/execute access for all users.
- Configure Git to consider the /app directory as a safe directory, which prevents Git from complaining about unusual permissions when running as a non-root user.
- Ensure that the Python site-packages directory and other relevant directories have read/write/execute permissions for all users, so that pip installs work even when running as a non-root user.

These changes will allow the Docker container to be run with the `--user` flag, which is a common requirement for running containers in production environments.
2024-07-31 09:52:53 -03:00
Paul Gauthier
1aaa8365d2 more debug if pip installs fail 2024-07-31 09:52:41 -03:00
Paul Gauthier
080953760f formatting 2024-07-31 09:52:18 -03:00
Paul Gauthier (aider)
5bfedea9ff feat: update test to correctly access message content
The test for `test_get_commit_message_with_custom_prompt` has been updated to correctly access the message content from the positional arguments of the `simple_send_with_retries` function call. This ensures that the test accurately reflects the implementation in the `GitRepo` class.
2024-07-31 09:51:28 -03:00
Paul Gauthier
2212613c47 feat(repo): add support for multiple models in get_commit_message 2024-07-31 09:51:26 -03:00
Paul Gauthier (aider)
7d2f184b36 feat: add tests for commit_prompt functionality
The new test case `test_get_commit_message_with_custom_prompt` ensures that when a custom `commit_prompt` is provided to the `GitRepo` constructor, it's used instead of the default prompt when generating commit messages. The test checks that:

1. The custom commit prompt is passed correctly to the `simple_send_with_retries` function.
2. The returned commit message is as expected.
3. The `simple_send_with_retries` function is called only once (since we're using a single model).

This new test case, along with the existing `test_get_commit_message_no_strip_unmatched_quotes` test, provides better coverage for the `get_commit_message` method in the `GitRepo` class.
2024-07-31 09:50:34 -03:00
Paul Gauthier (aider)
f85a9c1195 feat: add commit_prompt parameter to Coder.__init__ and pass it to GitRepo
The commit_prompt parameter is added to the Coder.__init__ method and passed to the GitRepo initialization. This allows users to provide a custom commit prompt when using the Coder class.
2024-07-31 09:48:54 -03:00
Paul Gauthier (aider)
1275171b90 feat: add support for the new commit_prompt arg to override prompts.commit_system
The GitRepo class in the aider/repo.py file has been updated to support a new `commit_prompt` argument. This allows overriding the default `prompts.commit_system` when generating commit messages.

The changes include:

1. Adding the `commit_prompt` parameter to the `__init__` method of the `GitRepo` class.
2. Storing the `commit_prompt` value in the `self.commit_prompt` attribute.
3. Modifying the `get_commit_message` method to use the `self.commit_prompt` value if it's provided, otherwise falling back to the default `prompts.commit_system`.

This change provides more flexibility in customizing the commit message generation process, allowing users to provide their own custom prompts if needed.
2024-07-31 09:47:49 -03:00
Paul Gauthier (aider)
4dfdddf0d9 feat: add --commit-prompt switch
The new `--commit-prompt` switch allows users to specify a custom prompt for generating commit messages. This feature is implemented by adding the new argument to the argument parser in `aider/args.py` and passing it to the `Coder.create` method in `aider/main.py`.
2024-07-31 09:46:13 -03:00
Paul Gauthier
adfde505d4 feat(docker): add directories and permissions for app and aider 2024-07-31 09:28:09 -03:00
Paul Gauthier
a436568ef5 copy 2024-07-31 09:10:18 -03:00
Paul Gauthier (aider)
e370b7aba3 feat: refactor docker build and release into its own workflow
BREAKING CHANGE: update tag regex to match semver pattern `v[0-9]+.[0-9]+.[0-9]+`

This change separates the concerns of PyPI release and Docker image release into two separate workflows. The original `release.yml` file has been renamed to `PyPI Release` and now only handles the PyPI package release. A new `docker-release.yml` file has been created to handle the Docker image build and push.

Both workflows are now triggered on tags matching the semver pattern `v[0-9]+.[0-9]+.[0-9]+`, which corresponds to tags like `vX.Y.Z`. The Docker-related steps have been moved from the original workflow to the new Docker-specific workflow.

This change ensures that both PyPI and Docker releases are triggered on the same semver-compliant tag pattern, while separating the concerns of the two release processes.
2024-07-31 09:09:15 -03:00
Paul Gauthier
199e25fc16 feat(prompts): Add Conventional Commits guidelines to commit message prompt 2024-07-31 09:06:31 -03:00
Paul Gauthier
e1a9fd69e6 Implement playwright installation with dependencies and use system python executable. 2024-07-31 08:53:21 -03:00
Paul Gauthier
c7884c94f6 Add support for more file types in the blame script 2024-07-31 08:50:49 -03:00
Paul Gauthier
6888b07ea0 Add support for Dockerfiles in the blame script 2024-07-30 20:46:20 -03:00
Paul Gauthier
266f58416c copy 2024-07-30 20:44:29 -03:00