git-cai-cli 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/PKG-INFO +9 -6
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/README.md +8 -5
- git_cai_cli-0.2.1/archlinux/.SRCINFO +21 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/archlinux/PKGBUILD +4 -4
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/core/llm.py +3 -1
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/core/options.py +5 -2
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli.egg-info/PKG-INFO +9 -6
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli.egg-info/SOURCES.txt +1 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.caiignore +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.gitignore +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.bandit.yml +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.checkov.yml +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.flake8 +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.ls-lint.yml +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.markdown-link-check.json +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.markdownlint.json +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.proselintrc +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.pylintrc +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/.yamllint.yml +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/check_git_branch_name.sh +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/lychee.toml +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.linters/pyrightconfig.json +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.mega-linter.yml +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.semgrepignore +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/.trivyignore +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/LICENSE +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/Makefile +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/pyproject.toml +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/setup.cfg +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/__init__.py +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/cli.py +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/core/__init__.py +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/core/config.py +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/core/gitutils.py +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli/core/languages.py +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli.egg-info/dependency_links.txt +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli.egg-info/entry_points.txt +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli.egg-info/requires.txt +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/git_cai_cli.egg-info/top_level.txt +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/src/tests/test_core/test_config.py +0 -0
- {git_cai_cli-0.2.0 → git_cai_cli-0.2.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git-cai-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Use LLM to create git commit messages
|
|
5
5
|
Author-email: Thorsten Foltz <thorsten.foltz@live.com>
|
|
6
6
|
License: MIT
|
|
@@ -89,7 +89,10 @@ Once installed, cai works like a standard Git command:
|
|
|
89
89
|
git cai
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
`cai` uses Git’s `diff` output
|
|
92
|
+
`cai` uses Git’s `diff` output to generate commit messages. The generated message is then opened in your editor, allowing you to review and edit it before confirming the commit.
|
|
93
|
+
|
|
94
|
+
In short: it behaves like `git commit`, but the commit message is pre-filled for you.
|
|
95
|
+
|
|
93
96
|
To exclude specific files or directories from being included in the generated commit message, create a `.caiignore` file in the root of your repository. This file works like a `.gitignore`.
|
|
94
97
|
|
|
95
98
|
- Files listed in `.gitignore` are **always excluded**.
|
|
@@ -133,10 +136,10 @@ Currently, the following options can be customized:
|
|
|
133
136
|
Besides running `git cai` to generate commit messages, you can use the following options:
|
|
134
137
|
|
|
135
138
|
- `-h` shows a brief help message with available commands
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
139
|
+
- `-d`, `--debug` enables debug logging to help troubleshoot issues
|
|
140
|
+
- `-l`, `--languages` list available languages
|
|
141
|
+
- `-u`, `--update` checks for updates the `cai` tool
|
|
142
|
+
- `-v`, `--version` displays the currently installed version
|
|
140
143
|
|
|
141
144
|
<h2 id="license-section">License</h2>
|
|
142
145
|
This project is licensed under the MIT License.
|
|
@@ -60,7 +60,10 @@ Once installed, cai works like a standard Git command:
|
|
|
60
60
|
git cai
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
`cai` uses Git’s `diff` output
|
|
63
|
+
`cai` uses Git’s `diff` output to generate commit messages. The generated message is then opened in your editor, allowing you to review and edit it before confirming the commit.
|
|
64
|
+
|
|
65
|
+
In short: it behaves like `git commit`, but the commit message is pre-filled for you.
|
|
66
|
+
|
|
64
67
|
To exclude specific files or directories from being included in the generated commit message, create a `.caiignore` file in the root of your repository. This file works like a `.gitignore`.
|
|
65
68
|
|
|
66
69
|
- Files listed in `.gitignore` are **always excluded**.
|
|
@@ -104,10 +107,10 @@ Currently, the following options can be customized:
|
|
|
104
107
|
Besides running `git cai` to generate commit messages, you can use the following options:
|
|
105
108
|
|
|
106
109
|
- `-h` shows a brief help message with available commands
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
110
|
+
- `-d`, `--debug` enables debug logging to help troubleshoot issues
|
|
111
|
+
- `-l`, `--languages` list available languages
|
|
112
|
+
- `-u`, `--update` checks for updates the `cai` tool
|
|
113
|
+
- `-v`, `--version` displays the currently installed version
|
|
111
114
|
|
|
112
115
|
<h2 id="license-section">License</h2>
|
|
113
116
|
This project is licensed under the MIT License.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
pkgbase = git-cai-cli
|
|
2
|
+
pkgdesc = Use LLM to create git commit messages.
|
|
3
|
+
pkgver = 0.2.0
|
|
4
|
+
pkgrel = 1
|
|
5
|
+
url = https://github.com/thorstenfoltz/cai
|
|
6
|
+
arch = any
|
|
7
|
+
license = MIT
|
|
8
|
+
makedepends = python-build
|
|
9
|
+
makedepends = python-installer
|
|
10
|
+
makedepends = python-setuptools
|
|
11
|
+
makedepends = python-wheel
|
|
12
|
+
depends = python
|
|
13
|
+
depends = python-yaml
|
|
14
|
+
depends = python-openai
|
|
15
|
+
depends = python-google-genai
|
|
16
|
+
depends = python-requests
|
|
17
|
+
depends = python-typer
|
|
18
|
+
source = https://files.pythonhosted.org/packages/bf/df/cc0dce84bc5aea242012f15782abcc58e60e99113e91602011c33d3a8d91/git_cai_cli-0.2.0.tar.gz
|
|
19
|
+
sha256sums = 83a6fba3f0ac729c8cf2453abba96b37c60ff7ea8d309704c613258544687635
|
|
20
|
+
|
|
21
|
+
pkgname = git-cai-cli
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# Maintainer: Thorsten Foltz <thorsten.foltz@live.com>
|
|
2
2
|
pkgname=git-cai-cli
|
|
3
|
-
pkgver=0.
|
|
3
|
+
pkgver=0.2.0
|
|
4
4
|
pkgrel=1
|
|
5
5
|
pkgdesc="Use LLM to create git commit messages."
|
|
6
6
|
arch=('any')
|
|
7
7
|
url="https://github.com/thorstenfoltz/cai"
|
|
8
8
|
license=('MIT')
|
|
9
|
-
depends=('python' 'python-yaml' 'python-openai' 'python-google-genai')
|
|
9
|
+
depends=('python' 'python-yaml' 'python-openai' 'python-google-genai' 'python-requests' 'python-typer')
|
|
10
10
|
makedepends=(python-build python-installer python-setuptools python-wheel)
|
|
11
|
-
source=("https://files.pythonhosted.org/packages/
|
|
12
|
-
sha256sums=('
|
|
11
|
+
source=("https://files.pythonhosted.org/packages/bf/df/cc0dce84bc5aea242012f15782abcc58e60e99113e91602011c33d3a8d91/git_cai_cli-0.2.0.tar.gz")
|
|
12
|
+
sha256sums=('83a6fba3f0ac729c8cf2453abba96b37c60ff7ea8d309704c613258544687635')
|
|
13
13
|
|
|
14
14
|
build() {
|
|
15
15
|
cd "${srcdir}/git_cai_cli-${pkgver}"
|
|
@@ -49,8 +49,10 @@ class CommitMessageGenerator:
|
|
|
49
49
|
f"Summarizing the provided git diff changes in {language_name}. "
|
|
50
50
|
"Keep the message clear and focused on what was changed and why. "
|
|
51
51
|
"Always include a headline, followed by a bullet-point list of changes. "
|
|
52
|
-
"Should you observe any sensitive information
|
|
52
|
+
"Should you observe any sensitive information like personal data, passwords, "
|
|
53
|
+
"tokens, etc. in the diff, print 'SENSITIVE INFORMATION DETECTED' "
|
|
53
54
|
"and show what was detected, the file where and the line number. "
|
|
55
|
+
"Print it always to the top of the commit message. "
|
|
54
56
|
"But even if you see sensitive information, still generate the commit message. "
|
|
55
57
|
)
|
|
56
58
|
|
|
@@ -173,6 +173,9 @@ Examples:
|
|
|
173
173
|
Intended to be used in CLI commands.
|
|
174
174
|
"""
|
|
175
175
|
lines = ["\nAvailable languages:"]
|
|
176
|
-
|
|
177
|
-
|
|
176
|
+
# Sort by the name (value)
|
|
177
|
+
for code, name in sorted(
|
|
178
|
+
self.allowed_languages.items(), key=lambda item: item[1]
|
|
179
|
+
):
|
|
180
|
+
lines.append(f" - {name} → {code}")
|
|
178
181
|
return "\n".join(lines)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: git-cai-cli
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Use LLM to create git commit messages
|
|
5
5
|
Author-email: Thorsten Foltz <thorsten.foltz@live.com>
|
|
6
6
|
License: MIT
|
|
@@ -89,7 +89,10 @@ Once installed, cai works like a standard Git command:
|
|
|
89
89
|
git cai
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
`cai` uses Git’s `diff` output
|
|
92
|
+
`cai` uses Git’s `diff` output to generate commit messages. The generated message is then opened in your editor, allowing you to review and edit it before confirming the commit.
|
|
93
|
+
|
|
94
|
+
In short: it behaves like `git commit`, but the commit message is pre-filled for you.
|
|
95
|
+
|
|
93
96
|
To exclude specific files or directories from being included in the generated commit message, create a `.caiignore` file in the root of your repository. This file works like a `.gitignore`.
|
|
94
97
|
|
|
95
98
|
- Files listed in `.gitignore` are **always excluded**.
|
|
@@ -133,10 +136,10 @@ Currently, the following options can be customized:
|
|
|
133
136
|
Besides running `git cai` to generate commit messages, you can use the following options:
|
|
134
137
|
|
|
135
138
|
- `-h` shows a brief help message with available commands
|
|
136
|
-
-
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
139
|
+
- `-d`, `--debug` enables debug logging to help troubleshoot issues
|
|
140
|
+
- `-l`, `--languages` list available languages
|
|
141
|
+
- `-u`, `--update` checks for updates the `cai` tool
|
|
142
|
+
- `-v`, `--version` displays the currently installed version
|
|
140
143
|
|
|
141
144
|
<h2 id="license-section">License</h2>
|
|
142
145
|
This project is licensed under the MIT License.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|