entelligence-cli 0.1.11__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.
- entelligence_cli-0.1.11/PKG-INFO +208 -0
- entelligence_cli-0.1.11/README.md +178 -0
- entelligence_cli-0.1.11/entelligence_cli/__init__.py +41 -0
- entelligence_cli-0.1.11/entelligence_cli/api_client.py +726 -0
- entelligence_cli-0.1.11/entelligence_cli/ascii-art.txt +49 -0
- entelligence_cli-0.1.11/entelligence_cli/cli.py +56 -0
- entelligence_cli-0.1.11/entelligence_cli/commands/__init__.py +7 -0
- entelligence_cli-0.1.11/entelligence_cli/commands/auth.py +99 -0
- entelligence_cli-0.1.11/entelligence_cli/commands/review.py +822 -0
- entelligence_cli-0.1.11/entelligence_cli/config.py +130 -0
- entelligence_cli-0.1.11/entelligence_cli/exceptions.py +45 -0
- entelligence_cli-0.1.11/entelligence_cli/git_operations.py +306 -0
- entelligence_cli-0.1.11/entelligence_cli/textual_ui.py +101 -0
- entelligence_cli-0.1.11/entelligence_cli/ui/__init__.py +27 -0
- entelligence_cli-0.1.11/entelligence_cli/ui/interactive.py +1199 -0
- entelligence_cli-0.1.11/entelligence_cli/ui/loaders.py +398 -0
- entelligence_cli-0.1.11/entelligence_cli/ui/output.py +423 -0
- entelligence_cli-0.1.11/entelligence_cli/ui/styles.py +35 -0
- entelligence_cli-0.1.11/entelligence_cli/update_checker.py +148 -0
- entelligence_cli-0.1.11/entelligence_cli.egg-info/PKG-INFO +208 -0
- entelligence_cli-0.1.11/entelligence_cli.egg-info/SOURCES.txt +25 -0
- entelligence_cli-0.1.11/entelligence_cli.egg-info/dependency_links.txt +1 -0
- entelligence_cli-0.1.11/entelligence_cli.egg-info/entry_points.txt +2 -0
- entelligence_cli-0.1.11/entelligence_cli.egg-info/requires.txt +8 -0
- entelligence_cli-0.1.11/entelligence_cli.egg-info/top_level.txt +1 -0
- entelligence_cli-0.1.11/pyproject.toml +115 -0
- entelligence_cli-0.1.11/setup.cfg +4 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: entelligence-cli
|
|
3
|
+
Version: 0.1.11
|
|
4
|
+
Summary: AI-powered code review assistant for your terminal - Get instant, intelligent feedback on your code changes
|
|
5
|
+
Author-email: EntelligenceAI <info@entelligence.ai>
|
|
6
|
+
Project-URL: Homepage, https://entelligence.ai
|
|
7
|
+
Project-URL: Documentation, https://docs.entelligence.ai
|
|
8
|
+
Keywords: code-review,ai,artificial-intelligence,cli,git,code-analysis,developer-tools,productivity,entelligence
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
12
|
+
Classifier: Topic :: Software Development :: Code Generators
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Environment :: Console
|
|
20
|
+
Classifier: Operating System :: OS Independent
|
|
21
|
+
Requires-Python: >=3.9
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Requires-Dist: click>=8.0.0
|
|
24
|
+
Requires-Dist: requests>=2.28.0
|
|
25
|
+
Requires-Dist: rich>=13.0.0
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
28
|
+
Requires-Dist: ruff>=0.8.0; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest-cov>=5.0.0; extra == "dev"
|
|
30
|
+
|
|
31
|
+
# EntelligenceAI CLI
|
|
32
|
+
|
|
33
|
+
AI-powered code review assistant that helps you catch bugs, improve code quality, and follow best practices - all from your terminal.
|
|
34
|
+
|
|
35
|
+
[](https://pypi.org/project/entelligence-cli/)
|
|
36
|
+
[](https://www.python.org/downloads/)
|
|
37
|
+
|
|
38
|
+
## 🚀 Installation
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
pip install entelligence-cli
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## 📝 Quick Start
|
|
45
|
+
|
|
46
|
+
### 1. Get Your API Key
|
|
47
|
+
|
|
48
|
+
Sign up and get your API key: [app.entelligence.ai/settings?tab=api](https://app.entelligence.ai/settings?tab=api)
|
|
49
|
+
|
|
50
|
+
### 2. Authenticate
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
entelligence auth login
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Paste your API key when prompted.
|
|
57
|
+
|
|
58
|
+
### 3. Review Your Code
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
entelligence review
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
That's it! The CLI will analyze your uncommitted changes (or committed changes if none) and provide intelligent feedback.
|
|
65
|
+
|
|
66
|
+
## 📖 Usage
|
|
67
|
+
|
|
68
|
+
### Authentication Commands
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Log in with your API key
|
|
72
|
+
entelligence auth login
|
|
73
|
+
|
|
74
|
+
# Check authentication status
|
|
75
|
+
entelligence auth status
|
|
76
|
+
|
|
77
|
+
# Log out
|
|
78
|
+
entelligence auth logout
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### Review Commands
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
# Review current changes (default: uncommitted, falls back to committed)
|
|
85
|
+
entelligence review
|
|
86
|
+
|
|
87
|
+
# Review only committed changes vs base branch
|
|
88
|
+
entelligence review --committed-only
|
|
89
|
+
|
|
90
|
+
# Review against a specific branch
|
|
91
|
+
entelligence review --base-branch develop
|
|
92
|
+
|
|
93
|
+
# Set review priority
|
|
94
|
+
entelligence review --priority high
|
|
95
|
+
|
|
96
|
+
# Verbose output mode
|
|
97
|
+
entelligence review --mode verbose
|
|
98
|
+
|
|
99
|
+
# Plain text output
|
|
100
|
+
entelligence review --plain
|
|
101
|
+
|
|
102
|
+
# Debug mode
|
|
103
|
+
entelligence review --debug
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Common Workflows
|
|
107
|
+
|
|
108
|
+
**Before Committing:**
|
|
109
|
+
```bash
|
|
110
|
+
git add .
|
|
111
|
+
entelligence review
|
|
112
|
+
git commit -m "Your message"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Before Creating PR:**
|
|
116
|
+
```bash
|
|
117
|
+
git checkout -b feature/my-feature
|
|
118
|
+
# ... make changes ...
|
|
119
|
+
entelligence review --priority high
|
|
120
|
+
git push origin feature/my-feature
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
## 🔧 Configuration
|
|
125
|
+
|
|
126
|
+
### Config File
|
|
127
|
+
|
|
128
|
+
Configuration is stored at `~/.entelligence/config.json` with secure permissions (read/write for owner only).
|
|
129
|
+
|
|
130
|
+
### Environment Variables
|
|
131
|
+
|
|
132
|
+
For non-interactive use, you can set:
|
|
133
|
+
|
|
134
|
+
- `ENTELLIGENCE_API_KEY` - Your API key (alternative to `entelligence auth login`)
|
|
135
|
+
|
|
136
|
+
## 💡 Benefits
|
|
137
|
+
|
|
138
|
+
### For Individual Developers
|
|
139
|
+
- Catch bugs before they reach code review
|
|
140
|
+
- Learn best practices through AI suggestions
|
|
141
|
+
- Save time on code reviews
|
|
142
|
+
- Improve code quality consistently
|
|
143
|
+
|
|
144
|
+
### For Teams
|
|
145
|
+
- Maintain consistent code standards
|
|
146
|
+
- Reduce code review time
|
|
147
|
+
- Improve code quality across the team
|
|
148
|
+
|
|
149
|
+
## 🆘 Troubleshooting
|
|
150
|
+
|
|
151
|
+
### Authentication Failed
|
|
152
|
+
|
|
153
|
+
```bash
|
|
154
|
+
# Check your authentication status
|
|
155
|
+
entelligence auth status
|
|
156
|
+
|
|
157
|
+
# If invalid, re-authenticate
|
|
158
|
+
entelligence auth logout
|
|
159
|
+
entelligence auth login
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Ensure your API key is valid at [app.entelligence.ai/settings?tab=api](https://app.entelligence.ai/settings?tab=api)
|
|
163
|
+
|
|
164
|
+
### Connection Timeout
|
|
165
|
+
|
|
166
|
+
- Check your internet connection
|
|
167
|
+
- Try again with `--debug` flag for more information
|
|
168
|
+
|
|
169
|
+
### No Changes Detected
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
# Check what changes are available
|
|
173
|
+
git status
|
|
174
|
+
|
|
175
|
+
# Review only committed changes if you have commits on your branch
|
|
176
|
+
entelligence review --committed-only
|
|
177
|
+
|
|
178
|
+
# Or review against a different base branch
|
|
179
|
+
entelligence review --base-branch develop
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
## 📚 Resources
|
|
183
|
+
|
|
184
|
+
- **Website**: [entelligence.ai](https://entelligence.ai)
|
|
185
|
+
- **Documentation**: [docs.entelligence.ai](https://docs.entelligence.ai)
|
|
186
|
+
- **Support**: [info@entelligence.ai](mailto:info@entelligence.ai)
|
|
187
|
+
|
|
188
|
+
## 📄 License
|
|
189
|
+
|
|
190
|
+
Proprietary - Copyright © 2026 EntelligenceAI. All rights reserved.
|
|
191
|
+
|
|
192
|
+
## ❓ FAQ
|
|
193
|
+
|
|
194
|
+
**Q: Is my code stored on your servers?**
|
|
195
|
+
A: No, code is only analyzed transiently and not permanently stored.
|
|
196
|
+
|
|
197
|
+
**Q: Does this work with private repositories?**
|
|
198
|
+
A: Yes, all code remains private and secure.
|
|
199
|
+
|
|
200
|
+
**Q: What languages are supported?**
|
|
201
|
+
A: Python, JavaScript, TypeScript, Java, Go, Rust, C++, Ruby, PHP, Swift, Kotlin, and more.
|
|
202
|
+
|
|
203
|
+
**Q: Can I review specific files only?**
|
|
204
|
+
A: Currently reviews are based on Git changes. File-specific reviews coming soon.
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
Made with ❤️ by [EntelligenceAI](https://entelligence.ai)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# EntelligenceAI CLI
|
|
2
|
+
|
|
3
|
+
AI-powered code review assistant that helps you catch bugs, improve code quality, and follow best practices - all from your terminal.
|
|
4
|
+
|
|
5
|
+
[](https://pypi.org/project/entelligence-cli/)
|
|
6
|
+
[](https://www.python.org/downloads/)
|
|
7
|
+
|
|
8
|
+
## 🚀 Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
pip install entelligence-cli
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 📝 Quick Start
|
|
15
|
+
|
|
16
|
+
### 1. Get Your API Key
|
|
17
|
+
|
|
18
|
+
Sign up and get your API key: [app.entelligence.ai/settings?tab=api](https://app.entelligence.ai/settings?tab=api)
|
|
19
|
+
|
|
20
|
+
### 2. Authenticate
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
entelligence auth login
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Paste your API key when prompted.
|
|
27
|
+
|
|
28
|
+
### 3. Review Your Code
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
entelligence review
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
That's it! The CLI will analyze your uncommitted changes (or committed changes if none) and provide intelligent feedback.
|
|
35
|
+
|
|
36
|
+
## 📖 Usage
|
|
37
|
+
|
|
38
|
+
### Authentication Commands
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
# Log in with your API key
|
|
42
|
+
entelligence auth login
|
|
43
|
+
|
|
44
|
+
# Check authentication status
|
|
45
|
+
entelligence auth status
|
|
46
|
+
|
|
47
|
+
# Log out
|
|
48
|
+
entelligence auth logout
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Review Commands
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
# Review current changes (default: uncommitted, falls back to committed)
|
|
55
|
+
entelligence review
|
|
56
|
+
|
|
57
|
+
# Review only committed changes vs base branch
|
|
58
|
+
entelligence review --committed-only
|
|
59
|
+
|
|
60
|
+
# Review against a specific branch
|
|
61
|
+
entelligence review --base-branch develop
|
|
62
|
+
|
|
63
|
+
# Set review priority
|
|
64
|
+
entelligence review --priority high
|
|
65
|
+
|
|
66
|
+
# Verbose output mode
|
|
67
|
+
entelligence review --mode verbose
|
|
68
|
+
|
|
69
|
+
# Plain text output
|
|
70
|
+
entelligence review --plain
|
|
71
|
+
|
|
72
|
+
# Debug mode
|
|
73
|
+
entelligence review --debug
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### Common Workflows
|
|
77
|
+
|
|
78
|
+
**Before Committing:**
|
|
79
|
+
```bash
|
|
80
|
+
git add .
|
|
81
|
+
entelligence review
|
|
82
|
+
git commit -m "Your message"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Before Creating PR:**
|
|
86
|
+
```bash
|
|
87
|
+
git checkout -b feature/my-feature
|
|
88
|
+
# ... make changes ...
|
|
89
|
+
entelligence review --priority high
|
|
90
|
+
git push origin feature/my-feature
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## 🔧 Configuration
|
|
95
|
+
|
|
96
|
+
### Config File
|
|
97
|
+
|
|
98
|
+
Configuration is stored at `~/.entelligence/config.json` with secure permissions (read/write for owner only).
|
|
99
|
+
|
|
100
|
+
### Environment Variables
|
|
101
|
+
|
|
102
|
+
For non-interactive use, you can set:
|
|
103
|
+
|
|
104
|
+
- `ENTELLIGENCE_API_KEY` - Your API key (alternative to `entelligence auth login`)
|
|
105
|
+
|
|
106
|
+
## 💡 Benefits
|
|
107
|
+
|
|
108
|
+
### For Individual Developers
|
|
109
|
+
- Catch bugs before they reach code review
|
|
110
|
+
- Learn best practices through AI suggestions
|
|
111
|
+
- Save time on code reviews
|
|
112
|
+
- Improve code quality consistently
|
|
113
|
+
|
|
114
|
+
### For Teams
|
|
115
|
+
- Maintain consistent code standards
|
|
116
|
+
- Reduce code review time
|
|
117
|
+
- Improve code quality across the team
|
|
118
|
+
|
|
119
|
+
## 🆘 Troubleshooting
|
|
120
|
+
|
|
121
|
+
### Authentication Failed
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
# Check your authentication status
|
|
125
|
+
entelligence auth status
|
|
126
|
+
|
|
127
|
+
# If invalid, re-authenticate
|
|
128
|
+
entelligence auth logout
|
|
129
|
+
entelligence auth login
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Ensure your API key is valid at [app.entelligence.ai/settings?tab=api](https://app.entelligence.ai/settings?tab=api)
|
|
133
|
+
|
|
134
|
+
### Connection Timeout
|
|
135
|
+
|
|
136
|
+
- Check your internet connection
|
|
137
|
+
- Try again with `--debug` flag for more information
|
|
138
|
+
|
|
139
|
+
### No Changes Detected
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
# Check what changes are available
|
|
143
|
+
git status
|
|
144
|
+
|
|
145
|
+
# Review only committed changes if you have commits on your branch
|
|
146
|
+
entelligence review --committed-only
|
|
147
|
+
|
|
148
|
+
# Or review against a different base branch
|
|
149
|
+
entelligence review --base-branch develop
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
## 📚 Resources
|
|
153
|
+
|
|
154
|
+
- **Website**: [entelligence.ai](https://entelligence.ai)
|
|
155
|
+
- **Documentation**: [docs.entelligence.ai](https://docs.entelligence.ai)
|
|
156
|
+
- **Support**: [info@entelligence.ai](mailto:info@entelligence.ai)
|
|
157
|
+
|
|
158
|
+
## 📄 License
|
|
159
|
+
|
|
160
|
+
Proprietary - Copyright © 2026 EntelligenceAI. All rights reserved.
|
|
161
|
+
|
|
162
|
+
## ❓ FAQ
|
|
163
|
+
|
|
164
|
+
**Q: Is my code stored on your servers?**
|
|
165
|
+
A: No, code is only analyzed transiently and not permanently stored.
|
|
166
|
+
|
|
167
|
+
**Q: Does this work with private repositories?**
|
|
168
|
+
A: Yes, all code remains private and secure.
|
|
169
|
+
|
|
170
|
+
**Q: What languages are supported?**
|
|
171
|
+
A: Python, JavaScript, TypeScript, Java, Go, Rust, C++, Ruby, PHP, Swift, Kotlin, and more.
|
|
172
|
+
|
|
173
|
+
**Q: Can I review specific files only?**
|
|
174
|
+
A: Currently reviews are based on Git changes. File-specific reviews coming soon.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
Made with ❤️ by [EntelligenceAI](https://entelligence.ai)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""EntelligenceAI CLI - AI-powered code review from your terminal."""
|
|
2
|
+
|
|
3
|
+
from importlib.metadata import version
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
__version__ = version("entelligence-cli")
|
|
7
|
+
|
|
8
|
+
from .api_client import APIClient, APIConfig
|
|
9
|
+
from .cli import cli
|
|
10
|
+
from .config import ConfigManager
|
|
11
|
+
from .exceptions import (
|
|
12
|
+
APIError,
|
|
13
|
+
AuthenticationError,
|
|
14
|
+
ConfigurationError,
|
|
15
|
+
EntelligenceError,
|
|
16
|
+
GitError,
|
|
17
|
+
ReviewError,
|
|
18
|
+
ValidationError,
|
|
19
|
+
)
|
|
20
|
+
from .git_operations import GitOperations
|
|
21
|
+
from .ui import AnimatedLoader, InteractiveUI, TerminalUI
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
__all__ = [
|
|
25
|
+
"cli",
|
|
26
|
+
"GitOperations",
|
|
27
|
+
"APIClient",
|
|
28
|
+
"APIConfig",
|
|
29
|
+
"ConfigManager",
|
|
30
|
+
"TerminalUI",
|
|
31
|
+
"InteractiveUI",
|
|
32
|
+
"AnimatedLoader",
|
|
33
|
+
"EntelligenceError",
|
|
34
|
+
"AuthenticationError",
|
|
35
|
+
"APIError",
|
|
36
|
+
"GitError",
|
|
37
|
+
"ValidationError",
|
|
38
|
+
"ConfigurationError",
|
|
39
|
+
"ReviewError",
|
|
40
|
+
"__version__",
|
|
41
|
+
]
|