ace-git-copilot 0.1.0__tar.gz → 0.1.2__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.
- ace_git_copilot-0.1.2/PKG-INFO +119 -0
- ace_git_copilot-0.1.2/README.md +99 -0
- ace_git_copilot-0.1.2/ace/__main__.py +4 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/pyproject.toml +1 -1
- ace_git_copilot-0.1.0/PKG-INFO +0 -113
- ace_git_copilot-0.1.0/README.md +0 -93
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/.env.example +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/.github/workflows/tests.yml +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/.gitignore +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/__init__.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/changelog_generator.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/code_reviewer.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/commit_generator.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/conflict_resolver.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/gitignore_generator.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/history_analyzer.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/intent_parser.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/llm_factory.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/pr_drafter.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/changelog.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/commit.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/conflict.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/explain.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/ignore.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/intent.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/pr.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/review.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/search.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ai/prompts/undo.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/cli.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/core/config.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/core/context.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/core/git_ops.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/core/safety.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ui/banner.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ui/dashboard.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ui/display.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ui/prompts.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/ui/themes.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/utils/conflict_parser.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/utils/diff_parser.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/ace/utils/json_utils.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/conftest.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_changelog_generator.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_code_reviewer.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_conflict_resolver.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_diff_trimmer.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_git_ops.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_help.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_history_analyzer.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_ignore.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_intent_parser.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_llm_factory.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_pr_drafter.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_safety.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_search.py +0 -0
- {ace_git_copilot-0.1.0 → ace_git_copilot-0.1.2}/tests/test_undo.py +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ace-git-copilot
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: AI-powered Git copilot — talk to Git in plain English
|
|
5
|
+
Requires-Python: >=3.11
|
|
6
|
+
Requires-Dist: click>=8.0
|
|
7
|
+
Requires-Dist: gitpython>=3.1
|
|
8
|
+
Requires-Dist: langchain-nvidia-ai-endpoints>=0.3
|
|
9
|
+
Requires-Dist: langchain-ollama>=0.3
|
|
10
|
+
Requires-Dist: langchain>=0.3
|
|
11
|
+
Requires-Dist: python-dotenv>=1.0
|
|
12
|
+
Requires-Dist: rich>=13.0
|
|
13
|
+
Requires-Dist: toml>=0.10.2
|
|
14
|
+
Requires-Dist: typer[all]>=0.12
|
|
15
|
+
Provides-Extra: dev
|
|
16
|
+
Requires-Dist: pytest; extra == 'dev'
|
|
17
|
+
Requires-Dist: pytest-cov; extra == 'dev'
|
|
18
|
+
Requires-Dist: ruff; extra == 'dev'
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
|
|
21
|
+
# ♠️ Ace — AI-Powered Git Copilot
|
|
22
|
+
|
|
23
|
+
[](https://pypi.org/project/ace-git-copilot/)
|
|
24
|
+
[](https://pypi.org/project/ace-git-copilot/)
|
|
25
|
+
[](https://opensource.org/licenses/MIT)
|
|
26
|
+
|
|
27
|
+
**Ace** is an intelligent command-line tool that brings AI assistance directly to your Git workflow. Talk to Git in plain English — Ace translates your intents into Git commands, explains what it is doing, and runs them safely. It also features a fully interactive terminal user interface (TUI) dashboard to help manage your repositories with ease.
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## ✨ Features
|
|
32
|
+
|
|
33
|
+
* **🧠 Natural Language Git Commands**: Translate commands like `"undo my last commit but keep changes"` or `"create a branch login-page"` into clean, standard Git actions.
|
|
34
|
+
* **📝 AI-Powered Commits**: Analyzes staged diffs and generates Conventional Commit messages automatically.
|
|
35
|
+
* **🔍 Automated Code Review**: Rates code quality and points out bugs, security flaws, or styling issues inside staged or unstaged diffs.
|
|
36
|
+
* **⚔️ Merge Conflict Resolution**: Interactively walks you through conflict blocks and suggests correct merges.
|
|
37
|
+
* **📊 Rich Repo Stats & Changelogs**: Instantly computes repository statistics (commits, additions, deletions, file counts) and generates markdown release notes since the last tag.
|
|
38
|
+
* **🔎 Semantic Commit Search**: Search commits by natural language queries (e.g. `"fixed the authorization bug"`) instead of matching literal strings.
|
|
39
|
+
* **🔥 Interactive TUI Dashboard**: Run `ace dash` to launch a beautiful terminal interface showing current status, branch info, commit charts, and interactive menus.
|
|
40
|
+
* **🛡️ Safety First**: Classifies actions into safe, moderate, or destructive levels, and requests confirmation before running destructive operations.
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 🚀 Installation
|
|
45
|
+
|
|
46
|
+
Install the package directly from PyPI:
|
|
47
|
+
```bash
|
|
48
|
+
pip install ace-git-copilot
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
*Note: Make sure your Python scripts path (e.g., `AppData\Roaming\Python\Python3xx\Scripts` on Windows) is added to your environment `PATH` variable.*
|
|
52
|
+
|
|
53
|
+
To update to the latest version:
|
|
54
|
+
```bash
|
|
55
|
+
pip install --upgrade ace-git-copilot
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## ⚙️ Configuration & Setup
|
|
61
|
+
|
|
62
|
+
Run the built-in configuration wizard to select your AI model provider:
|
|
63
|
+
```bash
|
|
64
|
+
ace setup
|
|
65
|
+
```
|
|
66
|
+
Ace saves your configuration file to `~/.ace/config.toml`. It supports:
|
|
67
|
+
1. **NVIDIA NIM Cloud API** (high-speed, high-accuracy models) using your NVIDIA developer API key.
|
|
68
|
+
2. **Local Ollama Models** (100% offline, free private local models like `qwen2.5-coder`, `llama3.1`, or `mistral`). If the requested model isn't downloaded, Ace will automatically pull it for you.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## 🛠️ Usage
|
|
73
|
+
|
|
74
|
+
### 💬 Natural Language Mode
|
|
75
|
+
Run natural language requests directly in quotes:
|
|
76
|
+
```bash
|
|
77
|
+
ace "stage everything and commit with a message about authentication"
|
|
78
|
+
ace "undo my last commit but keep the files"
|
|
79
|
+
ace "switch to a new branch called design-updates"
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### 📋 Command-Line Toolchain
|
|
83
|
+
Ace has dedicated subcommands for specific tasks:
|
|
84
|
+
|
|
85
|
+
| Command | Shorthand | Description |
|
|
86
|
+
|:---|:---|:---|
|
|
87
|
+
| `ace stage [files]` | `ace add` | Stage specific files or all untracked changes. |
|
|
88
|
+
| `ace commit` | — | Generate Conventional Commit messages from diffs and commit. |
|
|
89
|
+
| `ace review` | — | Run code review on staged, unstaged, or branch changes. |
|
|
90
|
+
| `ace resolve` | — | Step-by-step interactive merge conflict resolver. |
|
|
91
|
+
| `ace explain <query>`| — | Explain complex Git commands or repository errors. |
|
|
92
|
+
| `ace stats` | — | Rich visualization of repo statistics, extension breakdowns, and history. |
|
|
93
|
+
| `ace changelog` | — | Compile release changelogs since the last tag. |
|
|
94
|
+
| `ace pr` | — | Draft a Markdown pull request title and description. |
|
|
95
|
+
| `ace search <query>` | — | Semantically search commit history using natural language. |
|
|
96
|
+
| `ace ignore <rule>` | — | Generate and append standard templates to `.gitignore`. |
|
|
97
|
+
| `ace undo` | — | Safely revert the last action after checking repository status. |
|
|
98
|
+
| `ace dash` | — | Launch the interactive repository management console. |
|
|
99
|
+
| `ace config` | — | Print out active configuration settings. |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 🎨 Interactive Terminal Dashboard (TUI)
|
|
104
|
+
|
|
105
|
+
Launch the repository dashboard by running:
|
|
106
|
+
```bash
|
|
107
|
+
ace dash
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The dashboard features:
|
|
111
|
+
* A vibrant start-up logo.
|
|
112
|
+
* Active branch info, tracking status, and repository charts.
|
|
113
|
+
* Interactive shortcuts for one-key commits, reviews, undos, and configuration management.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 📄 License
|
|
118
|
+
|
|
119
|
+
Distributed under the MIT License. See [LICENSE](LICENSE) for more details.
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# ♠️ Ace — AI-Powered Git Copilot
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/ace-git-copilot/)
|
|
4
|
+
[](https://pypi.org/project/ace-git-copilot/)
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
|
|
7
|
+
**Ace** is an intelligent command-line tool that brings AI assistance directly to your Git workflow. Talk to Git in plain English — Ace translates your intents into Git commands, explains what it is doing, and runs them safely. It also features a fully interactive terminal user interface (TUI) dashboard to help manage your repositories with ease.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## ✨ Features
|
|
12
|
+
|
|
13
|
+
* **🧠 Natural Language Git Commands**: Translate commands like `"undo my last commit but keep changes"` or `"create a branch login-page"` into clean, standard Git actions.
|
|
14
|
+
* **📝 AI-Powered Commits**: Analyzes staged diffs and generates Conventional Commit messages automatically.
|
|
15
|
+
* **🔍 Automated Code Review**: Rates code quality and points out bugs, security flaws, or styling issues inside staged or unstaged diffs.
|
|
16
|
+
* **⚔️ Merge Conflict Resolution**: Interactively walks you through conflict blocks and suggests correct merges.
|
|
17
|
+
* **📊 Rich Repo Stats & Changelogs**: Instantly computes repository statistics (commits, additions, deletions, file counts) and generates markdown release notes since the last tag.
|
|
18
|
+
* **🔎 Semantic Commit Search**: Search commits by natural language queries (e.g. `"fixed the authorization bug"`) instead of matching literal strings.
|
|
19
|
+
* **🔥 Interactive TUI Dashboard**: Run `ace dash` to launch a beautiful terminal interface showing current status, branch info, commit charts, and interactive menus.
|
|
20
|
+
* **🛡️ Safety First**: Classifies actions into safe, moderate, or destructive levels, and requests confirmation before running destructive operations.
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## 🚀 Installation
|
|
25
|
+
|
|
26
|
+
Install the package directly from PyPI:
|
|
27
|
+
```bash
|
|
28
|
+
pip install ace-git-copilot
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
*Note: Make sure your Python scripts path (e.g., `AppData\Roaming\Python\Python3xx\Scripts` on Windows) is added to your environment `PATH` variable.*
|
|
32
|
+
|
|
33
|
+
To update to the latest version:
|
|
34
|
+
```bash
|
|
35
|
+
pip install --upgrade ace-git-copilot
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## ⚙️ Configuration & Setup
|
|
41
|
+
|
|
42
|
+
Run the built-in configuration wizard to select your AI model provider:
|
|
43
|
+
```bash
|
|
44
|
+
ace setup
|
|
45
|
+
```
|
|
46
|
+
Ace saves your configuration file to `~/.ace/config.toml`. It supports:
|
|
47
|
+
1. **NVIDIA NIM Cloud API** (high-speed, high-accuracy models) using your NVIDIA developer API key.
|
|
48
|
+
2. **Local Ollama Models** (100% offline, free private local models like `qwen2.5-coder`, `llama3.1`, or `mistral`). If the requested model isn't downloaded, Ace will automatically pull it for you.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 🛠️ Usage
|
|
53
|
+
|
|
54
|
+
### 💬 Natural Language Mode
|
|
55
|
+
Run natural language requests directly in quotes:
|
|
56
|
+
```bash
|
|
57
|
+
ace "stage everything and commit with a message about authentication"
|
|
58
|
+
ace "undo my last commit but keep the files"
|
|
59
|
+
ace "switch to a new branch called design-updates"
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 📋 Command-Line Toolchain
|
|
63
|
+
Ace has dedicated subcommands for specific tasks:
|
|
64
|
+
|
|
65
|
+
| Command | Shorthand | Description |
|
|
66
|
+
|:---|:---|:---|
|
|
67
|
+
| `ace stage [files]` | `ace add` | Stage specific files or all untracked changes. |
|
|
68
|
+
| `ace commit` | — | Generate Conventional Commit messages from diffs and commit. |
|
|
69
|
+
| `ace review` | — | Run code review on staged, unstaged, or branch changes. |
|
|
70
|
+
| `ace resolve` | — | Step-by-step interactive merge conflict resolver. |
|
|
71
|
+
| `ace explain <query>`| — | Explain complex Git commands or repository errors. |
|
|
72
|
+
| `ace stats` | — | Rich visualization of repo statistics, extension breakdowns, and history. |
|
|
73
|
+
| `ace changelog` | — | Compile release changelogs since the last tag. |
|
|
74
|
+
| `ace pr` | — | Draft a Markdown pull request title and description. |
|
|
75
|
+
| `ace search <query>` | — | Semantically search commit history using natural language. |
|
|
76
|
+
| `ace ignore <rule>` | — | Generate and append standard templates to `.gitignore`. |
|
|
77
|
+
| `ace undo` | — | Safely revert the last action after checking repository status. |
|
|
78
|
+
| `ace dash` | — | Launch the interactive repository management console. |
|
|
79
|
+
| `ace config` | — | Print out active configuration settings. |
|
|
80
|
+
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
## 🎨 Interactive Terminal Dashboard (TUI)
|
|
84
|
+
|
|
85
|
+
Launch the repository dashboard by running:
|
|
86
|
+
```bash
|
|
87
|
+
ace dash
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The dashboard features:
|
|
91
|
+
* A vibrant start-up logo.
|
|
92
|
+
* Active branch info, tracking status, and repository charts.
|
|
93
|
+
* Interactive shortcuts for one-key commits, reviews, undos, and configuration management.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 📄 License
|
|
98
|
+
|
|
99
|
+
Distributed under the MIT License. See [LICENSE](LICENSE) for more details.
|
ace_git_copilot-0.1.0/PKG-INFO
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: ace-git-copilot
|
|
3
|
-
Version: 0.1.0
|
|
4
|
-
Summary: AI-powered Git copilot — talk to Git in plain English
|
|
5
|
-
Requires-Python: >=3.11
|
|
6
|
-
Requires-Dist: click>=8.0
|
|
7
|
-
Requires-Dist: gitpython>=3.1
|
|
8
|
-
Requires-Dist: langchain-nvidia-ai-endpoints>=0.3
|
|
9
|
-
Requires-Dist: langchain-ollama>=0.3
|
|
10
|
-
Requires-Dist: langchain>=0.3
|
|
11
|
-
Requires-Dist: python-dotenv>=1.0
|
|
12
|
-
Requires-Dist: rich>=13.0
|
|
13
|
-
Requires-Dist: toml>=0.10.2
|
|
14
|
-
Requires-Dist: typer[all]>=0.12
|
|
15
|
-
Provides-Extra: dev
|
|
16
|
-
Requires-Dist: pytest; extra == 'dev'
|
|
17
|
-
Requires-Dist: pytest-cov; extra == 'dev'
|
|
18
|
-
Requires-Dist: ruff; extra == 'dev'
|
|
19
|
-
Description-Content-Type: text/markdown
|
|
20
|
-
|
|
21
|
-
# Ace — AI-Powered Git Copilot
|
|
22
|
-
|
|
23
|
-
> Ace is an intelligent terminal tool that understands what you want to do with Git and does it for you. Talk to Git in plain English — Ace figures out the right git commands, explains what it's doing, and executes safely.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## 🚀 Installation
|
|
28
|
-
|
|
29
|
-
Install in editable mode globally/user-wide:
|
|
30
|
-
```bash
|
|
31
|
-
python -m pip install --user -e D:\Ace
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
*Note: Make sure your Python scripts path (e.g., `AppData\Roaming\Python\Python3xx\Scripts`) is added to your Windows PATH environment variable.*
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## ⚙️ Configuration
|
|
39
|
-
|
|
40
|
-
Configure your AI provider (NVIDIA NIM or local Ollama) by running:
|
|
41
|
-
```bash
|
|
42
|
-
ace setup
|
|
43
|
-
```
|
|
44
|
-
This will save your preferences to `~/.ace/config.toml`.
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
## 🛠️ Usage & Commands
|
|
49
|
-
|
|
50
|
-
### 🧠 Natural Language Input
|
|
51
|
-
Run anything you want to do directly:
|
|
52
|
-
```bash
|
|
53
|
-
ace "stage all changes"
|
|
54
|
-
ace "undo my last commit but keep changes"
|
|
55
|
-
ace "create feature branch named login"
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
### 📋 Command Reference
|
|
59
|
-
|
|
60
|
-
| Command | Shorthand | Description |
|
|
61
|
-
|---------|-----------|-------------|
|
|
62
|
-
| `ace add <files>` | `ace stage` | Stage files (`git add`) for commit. |
|
|
63
|
-
| `ace commit` | — | Generate a smart Conventional Commit message and commit. |
|
|
64
|
-
| `ace review` | — | AI code review of staged/unstaged changes. |
|
|
65
|
-
| `ace resolve` | — | AI-assisted interactive merge conflict resolution. |
|
|
66
|
-
| `ace changelog` | — | Generate markdown release notes since the last tag. |
|
|
67
|
-
| `ace stats` | — | Enhanced visual repo overview, extension counts, and lines altered. |
|
|
68
|
-
| `ace explain <cmd>` | — | Explain Git commands or concepts in plain English. |
|
|
69
|
-
| `ace undo` | — | Context-aware smart undo (analyzes Git state to safely revert last action). |
|
|
70
|
-
| `ace pr` | — | Generate a markdown Pull Request description comparing branches. |
|
|
71
|
-
| `ace search <query>` | — | Semantic search across repository commits. |
|
|
72
|
-
| `ace ignore <query>` | — | Generate and append rules to `.gitignore`. |
|
|
73
|
-
| `ace dash` | — | Launch the interactive terminal dashboard TUI. |
|
|
74
|
-
| `ace config` | — | View the active configuration settings. |
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
## 📁 Codebase Directory & File Functions
|
|
79
|
-
|
|
80
|
-
Here is the list of files in the project and what each one does:
|
|
81
|
-
|
|
82
|
-
### 📍 Core CLI & Setup
|
|
83
|
-
* **`pyproject.toml`**: Configures the project, entry points (`ace = ace.cli:app`), dependencies (`typer`, `rich`, `gitpython`, `langchain`), and build systems.
|
|
84
|
-
* **`ace/cli.py`**: The entrypoint of the Typer application. Defines all CLI commands, parses command line flags, and routes calls.
|
|
85
|
-
|
|
86
|
-
### ⚙️ Core Modules (`ace/core/`)
|
|
87
|
-
* **`ace/core/config.py`**: Manages reading, writing, and parsing the user's TOML settings file (`config.toml`).
|
|
88
|
-
* **`ace/core/git_ops.py`**: Wraps the GitPython library to perform programmatic Git commands (e.g. status, diff, log, commit, push).
|
|
89
|
-
* **`ace/core/safety.py`**: Classifies Git commands into safety levels (Safe, Moderate, Destructive) and guards against destructive operations.
|
|
90
|
-
* **`ace/core/context.py`**: Collects repository-wide details (branch, diffs, untracked files) to provide context for AI requests.
|
|
91
|
-
|
|
92
|
-
### 🧠 AI Engine (`ace/ai/`)
|
|
93
|
-
* **`ace/ai/llm_factory.py`**: Instantiates ChatNVIDIA (cloud) or ChatOllama (local) depending on configuration settings.
|
|
94
|
-
* **`ace/ai/intent_parser.py`**: Translates the user's natural language input into Git commands.
|
|
95
|
-
* **`ace/ai/commit_generator.py`**: Analyzes staged diffs and generates Conventional Commit messages.
|
|
96
|
-
* **`ace/ai/code_reviewer.py`**: Analyzes unstaged or staged diffs to locate bugs, style flaws, security issues, and rate code.
|
|
97
|
-
* **`ace/ai/conflict_resolver.py`**: Parses file-level merge conflicts and suggests correct merges.
|
|
98
|
-
* **`ace/ai/changelog_generator.py`**: Collates commit messages and formats release logs.
|
|
99
|
-
* **`ace/ai/history_analyzer.py`**: Runs semantic searches across log files and computes repository overview metrics.
|
|
100
|
-
* **`ace/ai/pr_drafter.py`**: Drafts Pull Request titles and bodies comparing branch changes.
|
|
101
|
-
* **`ace/ai/gitignore_generator.py`**: Generates `.gitignore` syntax templates.
|
|
102
|
-
* **`ace/ai/prompts/`**: Houses all prompt templates for the LLMs (intent, commit, review, conflict, explain, undo, pr, search, ignore).
|
|
103
|
-
|
|
104
|
-
### 🎨 User Interface (`ace/ui/`)
|
|
105
|
-
* **`ace/ui/display.py`**: Directs Rich panel printouts, warning/error panels, and load spinners.
|
|
106
|
-
* **`ace/ui/themes.py`**: Houses colors, styling, and markdown rules.
|
|
107
|
-
* **`ace/ui/prompts.py`**: Handles keyboard selection options (e.g., commit/review prompts).
|
|
108
|
-
* **`ace/ui/dashboard.py`**: Implements the interactive terminal dashboard (TUI) showing branch states and command routing menus.
|
|
109
|
-
|
|
110
|
-
### 🔧 Utilities (`ace/utils/`)
|
|
111
|
-
* **`ace/utils/json_utils.py`**: Extracts and parses clean JSON structures from Markdown code blocks.
|
|
112
|
-
* **`ace/utils/diff_parser.py`**: Splits unified diff files into per-file chunks.
|
|
113
|
-
* **`ace/utils/conflict_parser.py`**: Parses git conflict blocks inside file lines.
|
ace_git_copilot-0.1.0/README.md
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# Ace — AI-Powered Git Copilot
|
|
2
|
-
|
|
3
|
-
> Ace is an intelligent terminal tool that understands what you want to do with Git and does it for you. Talk to Git in plain English — Ace figures out the right git commands, explains what it's doing, and executes safely.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 🚀 Installation
|
|
8
|
-
|
|
9
|
-
Install in editable mode globally/user-wide:
|
|
10
|
-
```bash
|
|
11
|
-
python -m pip install --user -e D:\Ace
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
*Note: Make sure your Python scripts path (e.g., `AppData\Roaming\Python\Python3xx\Scripts`) is added to your Windows PATH environment variable.*
|
|
15
|
-
|
|
16
|
-
---
|
|
17
|
-
|
|
18
|
-
## ⚙️ Configuration
|
|
19
|
-
|
|
20
|
-
Configure your AI provider (NVIDIA NIM or local Ollama) by running:
|
|
21
|
-
```bash
|
|
22
|
-
ace setup
|
|
23
|
-
```
|
|
24
|
-
This will save your preferences to `~/.ace/config.toml`.
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 🛠️ Usage & Commands
|
|
29
|
-
|
|
30
|
-
### 🧠 Natural Language Input
|
|
31
|
-
Run anything you want to do directly:
|
|
32
|
-
```bash
|
|
33
|
-
ace "stage all changes"
|
|
34
|
-
ace "undo my last commit but keep changes"
|
|
35
|
-
ace "create feature branch named login"
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### 📋 Command Reference
|
|
39
|
-
|
|
40
|
-
| Command | Shorthand | Description |
|
|
41
|
-
|---------|-----------|-------------|
|
|
42
|
-
| `ace add <files>` | `ace stage` | Stage files (`git add`) for commit. |
|
|
43
|
-
| `ace commit` | — | Generate a smart Conventional Commit message and commit. |
|
|
44
|
-
| `ace review` | — | AI code review of staged/unstaged changes. |
|
|
45
|
-
| `ace resolve` | — | AI-assisted interactive merge conflict resolution. |
|
|
46
|
-
| `ace changelog` | — | Generate markdown release notes since the last tag. |
|
|
47
|
-
| `ace stats` | — | Enhanced visual repo overview, extension counts, and lines altered. |
|
|
48
|
-
| `ace explain <cmd>` | — | Explain Git commands or concepts in plain English. |
|
|
49
|
-
| `ace undo` | — | Context-aware smart undo (analyzes Git state to safely revert last action). |
|
|
50
|
-
| `ace pr` | — | Generate a markdown Pull Request description comparing branches. |
|
|
51
|
-
| `ace search <query>` | — | Semantic search across repository commits. |
|
|
52
|
-
| `ace ignore <query>` | — | Generate and append rules to `.gitignore`. |
|
|
53
|
-
| `ace dash` | — | Launch the interactive terminal dashboard TUI. |
|
|
54
|
-
| `ace config` | — | View the active configuration settings. |
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## 📁 Codebase Directory & File Functions
|
|
59
|
-
|
|
60
|
-
Here is the list of files in the project and what each one does:
|
|
61
|
-
|
|
62
|
-
### 📍 Core CLI & Setup
|
|
63
|
-
* **`pyproject.toml`**: Configures the project, entry points (`ace = ace.cli:app`), dependencies (`typer`, `rich`, `gitpython`, `langchain`), and build systems.
|
|
64
|
-
* **`ace/cli.py`**: The entrypoint of the Typer application. Defines all CLI commands, parses command line flags, and routes calls.
|
|
65
|
-
|
|
66
|
-
### ⚙️ Core Modules (`ace/core/`)
|
|
67
|
-
* **`ace/core/config.py`**: Manages reading, writing, and parsing the user's TOML settings file (`config.toml`).
|
|
68
|
-
* **`ace/core/git_ops.py`**: Wraps the GitPython library to perform programmatic Git commands (e.g. status, diff, log, commit, push).
|
|
69
|
-
* **`ace/core/safety.py`**: Classifies Git commands into safety levels (Safe, Moderate, Destructive) and guards against destructive operations.
|
|
70
|
-
* **`ace/core/context.py`**: Collects repository-wide details (branch, diffs, untracked files) to provide context for AI requests.
|
|
71
|
-
|
|
72
|
-
### 🧠 AI Engine (`ace/ai/`)
|
|
73
|
-
* **`ace/ai/llm_factory.py`**: Instantiates ChatNVIDIA (cloud) or ChatOllama (local) depending on configuration settings.
|
|
74
|
-
* **`ace/ai/intent_parser.py`**: Translates the user's natural language input into Git commands.
|
|
75
|
-
* **`ace/ai/commit_generator.py`**: Analyzes staged diffs and generates Conventional Commit messages.
|
|
76
|
-
* **`ace/ai/code_reviewer.py`**: Analyzes unstaged or staged diffs to locate bugs, style flaws, security issues, and rate code.
|
|
77
|
-
* **`ace/ai/conflict_resolver.py`**: Parses file-level merge conflicts and suggests correct merges.
|
|
78
|
-
* **`ace/ai/changelog_generator.py`**: Collates commit messages and formats release logs.
|
|
79
|
-
* **`ace/ai/history_analyzer.py`**: Runs semantic searches across log files and computes repository overview metrics.
|
|
80
|
-
* **`ace/ai/pr_drafter.py`**: Drafts Pull Request titles and bodies comparing branch changes.
|
|
81
|
-
* **`ace/ai/gitignore_generator.py`**: Generates `.gitignore` syntax templates.
|
|
82
|
-
* **`ace/ai/prompts/`**: Houses all prompt templates for the LLMs (intent, commit, review, conflict, explain, undo, pr, search, ignore).
|
|
83
|
-
|
|
84
|
-
### 🎨 User Interface (`ace/ui/`)
|
|
85
|
-
* **`ace/ui/display.py`**: Directs Rich panel printouts, warning/error panels, and load spinners.
|
|
86
|
-
* **`ace/ui/themes.py`**: Houses colors, styling, and markdown rules.
|
|
87
|
-
* **`ace/ui/prompts.py`**: Handles keyboard selection options (e.g., commit/review prompts).
|
|
88
|
-
* **`ace/ui/dashboard.py`**: Implements the interactive terminal dashboard (TUI) showing branch states and command routing menus.
|
|
89
|
-
|
|
90
|
-
### 🔧 Utilities (`ace/utils/`)
|
|
91
|
-
* **`ace/utils/json_utils.py`**: Extracts and parses clean JSON structures from Markdown code blocks.
|
|
92
|
-
* **`ace/utils/diff_parser.py`**: Splits unified diff files into per-file chunks.
|
|
93
|
-
* **`ace/utils/conflict_parser.py`**: Parses git conflict blocks inside file lines.
|
|
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
|
|
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
|