claude-dev-cli 0.5.0__tar.gz → 0.7.0__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.
Potentially problematic release.
This version of claude-dev-cli might be problematic. Click here for more details.
- {claude_dev_cli-0.5.0/src/claude_dev_cli.egg-info → claude_dev_cli-0.7.0}/PKG-INFO +69 -3
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/README.md +67 -2
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/pyproject.toml +2 -1
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/__init__.py +1 -1
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/cli.py +568 -10
- claude_dev_cli-0.7.0/src/claude_dev_cli/template_manager.py +288 -0
- claude_dev_cli-0.7.0/src/claude_dev_cli/warp_integration.py +243 -0
- claude_dev_cli-0.7.0/src/claude_dev_cli/workflows.py +340 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0/src/claude_dev_cli.egg-info}/PKG-INFO +69 -3
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli.egg-info/SOURCES.txt +4 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli.egg-info/requires.txt +1 -0
- claude_dev_cli-0.7.0/tests/test_template_manager.py +327 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/LICENSE +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/MANIFEST.in +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/setup.cfg +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/commands.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/config.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/core.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/history.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/plugins/__init__.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/plugins/base.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/plugins/diff_editor/__init__.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/plugins/diff_editor/plugin.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/plugins/diff_editor/viewer.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/secure_storage.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/templates.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/toon_utils.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli/usage.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli.egg-info/dependency_links.txt +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli.egg-info/entry_points.txt +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/src/claude_dev_cli.egg-info/top_level.txt +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_cli.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_commands.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_config.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_core.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_diff_editor.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_secure_storage.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_toon_utils.py +0 -0
- {claude_dev_cli-0.5.0 → claude_dev_cli-0.7.0}/tests/test_usage.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: claude-dev-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: A powerful CLI tool for developers using Claude AI with multi-API routing, test generation, code review, and usage tracking
|
|
5
5
|
Author-email: Julio <thinmanj@users.noreply.github.com>
|
|
6
6
|
License: MIT
|
|
@@ -28,6 +28,7 @@ Requires-Dist: rich>=13.0.0
|
|
|
28
28
|
Requires-Dist: pydantic>=2.0.0
|
|
29
29
|
Requires-Dist: keyring>=24.0.0
|
|
30
30
|
Requires-Dist: cryptography>=41.0.0
|
|
31
|
+
Requires-Dist: pyyaml>=6.0.0
|
|
31
32
|
Provides-Extra: toon
|
|
32
33
|
Requires-Dist: toon-format>=0.9.0; extra == "toon"
|
|
33
34
|
Provides-Extra: plugins
|
|
@@ -72,6 +73,12 @@ A powerful command-line tool for developers using Claude AI with multi-API routi
|
|
|
72
73
|
- **Interactive**: Chat mode with conversation history
|
|
73
74
|
- **Streaming**: Real-time responses
|
|
74
75
|
|
|
76
|
+
### 📝 Custom Templates
|
|
77
|
+
- **Built-in Templates**: 8 pre-built templates for common tasks (code review, testing, debugging, etc.)
|
|
78
|
+
- **User Templates**: Create and manage your own reusable prompt templates
|
|
79
|
+
- **Variable Substitution**: Use {{variable}} placeholders for dynamic content
|
|
80
|
+
- **Categories**: Organize templates by category (review, testing, debugging, etc.)
|
|
81
|
+
|
|
75
82
|
### 🎒 TOON Format Support (Optional)
|
|
76
83
|
- **Token Reduction**: 30-60% fewer tokens than JSON
|
|
77
84
|
- **Cost Savings**: Reduce API costs significantly
|
|
@@ -139,24 +146,73 @@ cdc ask -a client "generate tests for this function"
|
|
|
139
146
|
# Generate tests
|
|
140
147
|
cdc generate tests mymodule.py -o tests/test_mymodule.py
|
|
141
148
|
|
|
149
|
+
# Generate tests with interactive refinement
|
|
150
|
+
cdc generate tests mymodule.py --interactive
|
|
151
|
+
|
|
142
152
|
# Code review
|
|
143
153
|
cdc review mymodule.py
|
|
144
154
|
|
|
155
|
+
# Code review with interactive follow-up questions
|
|
156
|
+
cdc review mymodule.py --interactive
|
|
157
|
+
|
|
145
158
|
# Debug errors
|
|
146
159
|
python script.py 2>&1 | cdc debug
|
|
147
160
|
|
|
148
161
|
# Generate documentation
|
|
149
162
|
cdc generate docs mymodule.py
|
|
150
163
|
|
|
164
|
+
# Generate docs with interactive refinement
|
|
165
|
+
cdc generate docs mymodule.py --interactive
|
|
166
|
+
|
|
151
167
|
# Refactor suggestions
|
|
152
168
|
cdc refactor legacy_code.py
|
|
153
169
|
|
|
170
|
+
# Refactor with interactive refinement
|
|
171
|
+
cdc refactor legacy_code.py --interactive
|
|
172
|
+
|
|
154
173
|
# Git commit message
|
|
155
174
|
git add .
|
|
156
175
|
cdc git commit
|
|
157
176
|
```
|
|
158
177
|
|
|
159
|
-
###
|
|
178
|
+
### 5. Custom Templates
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
# List all templates (built-in and user)
|
|
182
|
+
cdc template list
|
|
183
|
+
|
|
184
|
+
# Show template details
|
|
185
|
+
cdc template show code-review
|
|
186
|
+
|
|
187
|
+
# Add a custom template
|
|
188
|
+
cdc template add my-review -c "Review this code for {{focus}}: {{code}}" \
|
|
189
|
+
-d "Custom review template" --category review
|
|
190
|
+
|
|
191
|
+
# Use a template (interactive variable input)
|
|
192
|
+
cdc template use debug-error
|
|
193
|
+
|
|
194
|
+
# Delete a user template
|
|
195
|
+
cdc template delete my-review
|
|
196
|
+
|
|
197
|
+
# Filter by category
|
|
198
|
+
cdc template list --category review
|
|
199
|
+
|
|
200
|
+
# Show only user templates
|
|
201
|
+
cdc template list --user
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
#### Built-in Templates
|
|
205
|
+
|
|
206
|
+
- **code-review**: Comprehensive code review with customizable focus
|
|
207
|
+
- **code-review-security**: Security-focused code review
|
|
208
|
+
- **test-strategy**: Generate testing strategy and test cases
|
|
209
|
+
- **debug-error**: Debug error with context
|
|
210
|
+
- **optimize-performance**: Performance optimization analysis
|
|
211
|
+
- **refactor-clean**: Clean code refactoring
|
|
212
|
+
- **explain-code**: Detailed code explanation
|
|
213
|
+
- **api-design**: API design assistance
|
|
214
|
+
|
|
215
|
+
### 6. Usage Tracking
|
|
160
216
|
|
|
161
217
|
```bash
|
|
162
218
|
# View all usage
|
|
@@ -169,7 +225,7 @@ cdc usage --days 7
|
|
|
169
225
|
cdc usage --api client
|
|
170
226
|
```
|
|
171
227
|
|
|
172
|
-
###
|
|
228
|
+
### 7. TOON Format (Optional - Reduces Tokens by 30-60%)
|
|
173
229
|
|
|
174
230
|
```bash
|
|
175
231
|
# Check if TOON is installed
|
|
@@ -322,6 +378,16 @@ When using a client's Enterprise API:
|
|
|
322
378
|
| `cdc debug -f <file> -e <error>` | Debug code |
|
|
323
379
|
| `cdc refactor <file>` | Refactoring suggestions |
|
|
324
380
|
|
|
381
|
+
### Templates
|
|
382
|
+
|
|
383
|
+
| Command | Description |
|
|
384
|
+
|---------|-------------|
|
|
385
|
+
| `cdc template list` | List all templates |
|
|
386
|
+
| `cdc template show <name>` | Show template details |
|
|
387
|
+
| `cdc template add <name>` | Add new template |
|
|
388
|
+
| `cdc template delete <name>` | Delete user template |
|
|
389
|
+
| `cdc template use <name>` | Use template interactively |
|
|
390
|
+
|
|
325
391
|
### Git Helpers
|
|
326
392
|
|
|
327
393
|
| Command | Description |
|
|
@@ -29,6 +29,12 @@ A powerful command-line tool for developers using Claude AI with multi-API routi
|
|
|
29
29
|
- **Interactive**: Chat mode with conversation history
|
|
30
30
|
- **Streaming**: Real-time responses
|
|
31
31
|
|
|
32
|
+
### 📝 Custom Templates
|
|
33
|
+
- **Built-in Templates**: 8 pre-built templates for common tasks (code review, testing, debugging, etc.)
|
|
34
|
+
- **User Templates**: Create and manage your own reusable prompt templates
|
|
35
|
+
- **Variable Substitution**: Use {{variable}} placeholders for dynamic content
|
|
36
|
+
- **Categories**: Organize templates by category (review, testing, debugging, etc.)
|
|
37
|
+
|
|
32
38
|
### 🎒 TOON Format Support (Optional)
|
|
33
39
|
- **Token Reduction**: 30-60% fewer tokens than JSON
|
|
34
40
|
- **Cost Savings**: Reduce API costs significantly
|
|
@@ -96,24 +102,73 @@ cdc ask -a client "generate tests for this function"
|
|
|
96
102
|
# Generate tests
|
|
97
103
|
cdc generate tests mymodule.py -o tests/test_mymodule.py
|
|
98
104
|
|
|
105
|
+
# Generate tests with interactive refinement
|
|
106
|
+
cdc generate tests mymodule.py --interactive
|
|
107
|
+
|
|
99
108
|
# Code review
|
|
100
109
|
cdc review mymodule.py
|
|
101
110
|
|
|
111
|
+
# Code review with interactive follow-up questions
|
|
112
|
+
cdc review mymodule.py --interactive
|
|
113
|
+
|
|
102
114
|
# Debug errors
|
|
103
115
|
python script.py 2>&1 | cdc debug
|
|
104
116
|
|
|
105
117
|
# Generate documentation
|
|
106
118
|
cdc generate docs mymodule.py
|
|
107
119
|
|
|
120
|
+
# Generate docs with interactive refinement
|
|
121
|
+
cdc generate docs mymodule.py --interactive
|
|
122
|
+
|
|
108
123
|
# Refactor suggestions
|
|
109
124
|
cdc refactor legacy_code.py
|
|
110
125
|
|
|
126
|
+
# Refactor with interactive refinement
|
|
127
|
+
cdc refactor legacy_code.py --interactive
|
|
128
|
+
|
|
111
129
|
# Git commit message
|
|
112
130
|
git add .
|
|
113
131
|
cdc git commit
|
|
114
132
|
```
|
|
115
133
|
|
|
116
|
-
###
|
|
134
|
+
### 5. Custom Templates
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
# List all templates (built-in and user)
|
|
138
|
+
cdc template list
|
|
139
|
+
|
|
140
|
+
# Show template details
|
|
141
|
+
cdc template show code-review
|
|
142
|
+
|
|
143
|
+
# Add a custom template
|
|
144
|
+
cdc template add my-review -c "Review this code for {{focus}}: {{code}}" \
|
|
145
|
+
-d "Custom review template" --category review
|
|
146
|
+
|
|
147
|
+
# Use a template (interactive variable input)
|
|
148
|
+
cdc template use debug-error
|
|
149
|
+
|
|
150
|
+
# Delete a user template
|
|
151
|
+
cdc template delete my-review
|
|
152
|
+
|
|
153
|
+
# Filter by category
|
|
154
|
+
cdc template list --category review
|
|
155
|
+
|
|
156
|
+
# Show only user templates
|
|
157
|
+
cdc template list --user
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
#### Built-in Templates
|
|
161
|
+
|
|
162
|
+
- **code-review**: Comprehensive code review with customizable focus
|
|
163
|
+
- **code-review-security**: Security-focused code review
|
|
164
|
+
- **test-strategy**: Generate testing strategy and test cases
|
|
165
|
+
- **debug-error**: Debug error with context
|
|
166
|
+
- **optimize-performance**: Performance optimization analysis
|
|
167
|
+
- **refactor-clean**: Clean code refactoring
|
|
168
|
+
- **explain-code**: Detailed code explanation
|
|
169
|
+
- **api-design**: API design assistance
|
|
170
|
+
|
|
171
|
+
### 6. Usage Tracking
|
|
117
172
|
|
|
118
173
|
```bash
|
|
119
174
|
# View all usage
|
|
@@ -126,7 +181,7 @@ cdc usage --days 7
|
|
|
126
181
|
cdc usage --api client
|
|
127
182
|
```
|
|
128
183
|
|
|
129
|
-
###
|
|
184
|
+
### 7. TOON Format (Optional - Reduces Tokens by 30-60%)
|
|
130
185
|
|
|
131
186
|
```bash
|
|
132
187
|
# Check if TOON is installed
|
|
@@ -279,6 +334,16 @@ When using a client's Enterprise API:
|
|
|
279
334
|
| `cdc debug -f <file> -e <error>` | Debug code |
|
|
280
335
|
| `cdc refactor <file>` | Refactoring suggestions |
|
|
281
336
|
|
|
337
|
+
### Templates
|
|
338
|
+
|
|
339
|
+
| Command | Description |
|
|
340
|
+
|---------|-------------|
|
|
341
|
+
| `cdc template list` | List all templates |
|
|
342
|
+
| `cdc template show <name>` | Show template details |
|
|
343
|
+
| `cdc template add <name>` | Add new template |
|
|
344
|
+
| `cdc template delete <name>` | Delete user template |
|
|
345
|
+
| `cdc template use <name>` | Use template interactively |
|
|
346
|
+
|
|
282
347
|
### Git Helpers
|
|
283
348
|
|
|
284
349
|
| Command | Description |
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "claude-dev-cli"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "0.7.0"
|
|
8
8
|
description = "A powerful CLI tool for developers using Claude AI with multi-API routing, test generation, code review, and usage tracking"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -34,6 +34,7 @@ dependencies = [
|
|
|
34
34
|
"pydantic>=2.0.0",
|
|
35
35
|
"keyring>=24.0.0",
|
|
36
36
|
"cryptography>=41.0.0",
|
|
37
|
+
"pyyaml>=6.0.0",
|
|
37
38
|
]
|
|
38
39
|
|
|
39
40
|
[project.optional-dependencies]
|