gitpr-cli 0.0.25__tar.gz → 0.0.26__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.
Files changed (34) hide show
  1. {gitpr_cli-0.0.25/gitpr_cli.egg-info → gitpr_cli-0.0.26}/PKG-INFO +34 -16
  2. gitpr_cli-0.0.25/PKG-INFO → gitpr_cli-0.0.26/README.md +252 -252
  3. gitpr_cli-0.0.25/README.md → gitpr_cli-0.0.26/gitpr_cli.egg-info/PKG-INFO +270 -234
  4. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/gitpr_cli.egg-info/SOURCES.txt +5 -1
  5. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/pyproject.toml +1 -1
  6. gitpr_cli-0.0.26/src/ai_providers.py +197 -0
  7. gitpr_cli-0.0.26/src/chat_memory.py +218 -0
  8. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/core.py +15 -13
  9. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/i18n.py +13 -0
  10. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/main.py +75 -1
  11. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/spinner.py +15 -0
  12. gitpr_cli-0.0.26/src/ui/chat_app.py +587 -0
  13. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/updater.py +2 -2
  14. gitpr_cli-0.0.26/tests/test_chat_backend.py +198 -0
  15. gitpr_cli-0.0.26/tests/test_skill_command.py +58 -0
  16. gitpr_cli-0.0.25/src/ai_providers.py +0 -80
  17. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/LICENSE +0 -0
  18. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/gitpr_cli.egg-info/dependency_links.txt +0 -0
  19. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/gitpr_cli.egg-info/entry_points.txt +0 -0
  20. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/gitpr_cli.egg-info/requires.txt +0 -0
  21. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/gitpr_cli.egg-info/top_level.txt +0 -0
  22. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/setup.cfg +0 -0
  23. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/__init__.py +0 -0
  24. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/blame_engine.py +0 -0
  25. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/cache.py +0 -0
  26. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/config.py +0 -0
  27. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/issue_engine.py +0 -0
  28. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/linter_engine.py +0 -0
  29. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/security.py +0 -0
  30. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/tui_issue.py +0 -0
  31. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/ui/__init__.py +0 -0
  32. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/ui/help_screen.py +0 -0
  33. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/src/ui/issue_app.py +0 -0
  34. {gitpr_cli-0.0.25 → gitpr_cli-0.0.26}/tests/test_core.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gitpr-cli
3
- Version: 0.0.25
3
+ Version: 0.0.26
4
4
  Summary: Automação de PRs, Commits e Code Review com IA (Gemini e DeepSeek)
5
5
  Author-email: Natan Fiuza <contato@natanfiuza.dev.br>
6
6
  Requires-Python: >=3.10
@@ -126,7 +126,9 @@ You can pass the following *flags* for specific actions:
126
126
  * `-r` or `--review`: Performs a detailed **Code Review** of local changes.
127
127
  * `-f` or `--fullreview`: Performs a **Full Code Review** analyzing all changes since the remote branch.
128
128
  * `-i <file>` or `--input <file>`: **Full File Audit.** Must be used together with `-r` or `-f`; it ignores git history and does a Code Review of the entire file. Excellent for acting as a consultant on legacy code refactoring.
129
- * `--provider <gemini|deepseek>`: Forces the use of a specific AI only for this execution, ignoring your default saved in `.env`.
129
+ * `--provider <gemini|deepseek|ollama>`: Forces the use of a specific AI only for this execution, ignoring your default saved in `.env`.
130
+ * `--lang <code>`: Forces the interface language for this execution (e.g.: `en_us`, `pt_br`). Overrides `GITPR_LANG` in `.env` without persisting the change.
131
+ * `-ch` or `--chat`: Opens the **Interactive Pair Programming Chat** — a TUI terminal where the AI sees your current diff and maintains a contextual conversation. Features memory per branch, slash commands (`/explain`, `/tests`, `/optimize`, `/clear`), auto-patching (F5), diff refresh (F2), and session export (F6).
130
132
  * `-l` or `--linter`: Runs **only the local static linter** (no AI calls). Ideal for use in CI/CD pipelines to block non-compliant code.
131
133
  * `-ih` or `--installhooks`: Automatically installs **local Git Hooks** (`pre-commit` and `prepare-commit-msg`) in your repository.
132
134
  * `-s` or `--skill`: Creates the AI context template files (`.gitpr.commit.md`, `.gitpr.pr.md`, `.gitpr.review.md`, `.gitpr.filereview.md`, `.gitpr.issue.md`, `.gitpr.blame.md`) and the Linter (`.gitpr.linter.yml`) at the project root.
@@ -165,6 +167,7 @@ The Linter analyzes only the **added lines** in your `git diff`, ensuring a focu
165
167
  GitPR is not tied to a single Artificial Intelligence. During initial setup, the user can choose their default engine. We currently support:
166
168
  * **Google Gemini** (Default: `gemini-2.5-flash`)
167
169
  * **DeepSeek** (Default: `deepseek-chat`)
170
+ * **Ollama** (Local) — run models locally without internet, fully compatible with the OpenAI API format
168
171
 
169
172
  You can dynamically switch models by configuring the `GEMINI_API_MODEL` or `DEEPSEEK_API_MODEL` variables in your `~/.gitpr/.env` file, or switch in real-time using the `--provider` flag.
170
173
 
@@ -197,20 +200,35 @@ To force a specific language, set `GITPR_LANG=pt_br` or `GITPR_LANG=en` in `~/.g
197
200
 
198
201
  To keep this README concise, we detail the most advanced **DevOps** and **Continuous Integration** focused implementations in separate documents.
199
202
 
200
- If you want to implement GitPR as an automated quality barrier in your team, check out the guides below:
201
-
202
- * [**Local Git Hooks (Shift-Left)**](docs/git-hooks-locais.md): How to use `gitpr --installhooks` to create guardrails on the developer's machine and use AI to automatically write commit messages.
203
- * [**Customizable Static Linter**](docs/linter-regras-customizadas.md): How to create validation rules in `.gitpr.linter.yml` for CI/CD and pre-commit hooks.
204
- * [**Issue Generation and TUI Interface**](docs/issue-tui-help.md): How to use the terminal graphical interface (TUI) and the 3 context engines to manage structured Issues.
205
- * [**AI Code Review**](docs/code-review-ia.md): Guide to review modes (`--review`, `--fullreview`) and file auditing (`--input`).
206
- * [**AI Commit Messages**](docs/commit-message-ia.md): How to generate messages in the Conventional Commits standard and integrate with Git Hooks.
207
- * [**Code Archaeologist (Git Blame)**](docs/blame-arqueologo.md): How to trace the origin of business rules with `git blame` and AI.
208
- * [**Skills and Templates System**](docs/skill-template.md): How to customize AI behavior with `.gitpr.*.md` files.
209
- * [**Auto-Updater**](docs/auto-update.md): How GitPR's automatic update (hot-swap) works.
210
- * [**AI Providers**](docs/providers-ia.md): Configuration and selection between Google Gemini and DeepSeek.
211
- * [**Pull Request (Default Mode)**](docs/pr-descricao-padrao.md): Complete flow for generating PR descriptions without flags.
212
- * [**CI/CD Integration (GitHub Actions)**](docs/github-ci-linter.md): How to run GitPR in the pipeline to block "Merge" of PRs with violations.
213
- * [**GitHub Token (PAT) Integration and Security**](docs/github-pat-integration.md): Understand how GitPR creates issues directly in the repository with authentication.
203
+ If you want to implement GitPR as an automated quality barrier in your team, check out the guides below.
204
+
205
+ > 🌐 Each guide is available in **5 languages** add `.pt_br`, `.pt_pt`, `.fr_fr`, or `.es_es` before the `.md` extension for translated versions (e.g., `docs/understanding_chat_functionality.pt_br.md`). English is the default with no suffix.
206
+
207
+ ### Chat & Interactive Features
208
+
209
+ * [**🧠 Interactive Chat (Pair Programming)**](https://github.com/natanfiuza/gitpr/blob/main/docs/understanding_chat_functionality.md) How to use the AI chat with memory, slash commands, auto-patch, and session export.
210
+
211
+ ### DevOps & CI/CD
212
+
213
+ * [**Local Git Hooks (Shift-Left)**](https://github.com/natanfiuza/gitpr/blob/main/docs/git-hooks-locais.md) How to use `gitpr --installhooks` to create guardrails on the developer's machine and use AI to automatically write commit messages.
214
+ * [**Customizable Static Linter**](https://github.com/natanfiuza/gitpr/blob/main/docs/linter-regras-customizadas.md) How to create validation rules in `.gitpr.linter.yml` for CI/CD and pre-commit hooks.
215
+ * [**CI/CD Integration (GitHub Actions)**](https://github.com/natanfiuza/gitpr/blob/main/docs/github-ci-linter.md) How to run GitPR in the pipeline to block "Merge" of PRs with violations.
216
+
217
+ ### Core Features
218
+
219
+ * [**Pull Request (Default Mode)**](https://github.com/natanfiuza/gitpr/blob/main/docs/pr-descricao-padrao.md) — Complete flow for generating PR descriptions without flags.
220
+ * [**AI Code Review**](https://github.com/natanfiuza/gitpr/blob/main/docs/code-review-ia.md) — Guide to review modes (`--review`, `--fullreview`) and file auditing (`--input`).
221
+ * [**AI Commit Messages**](https://github.com/natanfiuza/gitpr/blob/main/docs/commit-message-ia.md) — How to generate messages in the Conventional Commits standard and integrate with Git Hooks.
222
+ * [**Issue Generation and TUI Interface**](https://github.com/natanfiuza/gitpr/blob/main/docs/issue-tui-help.md) — How to use the terminal graphical interface (TUI) and the 3 context engines to manage structured Issues.
223
+ * [**Code Archaeologist (Git Blame)**](https://github.com/natanfiuza/gitpr/blob/main/docs/blame-arqueologo.md) — How to trace the origin of business rules with `git blame` and AI.
224
+ * [**Skills and Templates System**](https://github.com/natanfiuza/gitpr/blob/main/docs/skill-template.md) — How to customize AI behavior with `.gitpr.*.md` files.
225
+
226
+ ### Configuration & Infrastructure
227
+
228
+ * [**AI Providers**](https://github.com/natanfiuza/gitpr/blob/main/docs/providers-ia.md) — Configuration and selection between Google Gemini, DeepSeek, and Ollama.
229
+ * [**Auto-Updater**](https://github.com/natanfiuza/gitpr/blob/main/docs/auto-update.md) — How GitPR's automatic update (hot-swap) works.
230
+ * [**GitHub Token (PAT) Integration and Security**](https://github.com/natanfiuza/gitpr/blob/main/docs/github-pat-integration.md) — Understand how GitPR creates issues directly in the repository with authentication.
231
+ * [**Internationalization (i18n)**](https://github.com/natanfiuza/gitpr/blob/main/docs/i18n_explanation.md) — Architecture, usage patterns, and how to add new languages.
214
232
 
215
233
  ## ⚡ Local Cache System (Quota Savings)
216
234