IncludeCPP 3.0__tar.gz → 3.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.
- {includecpp-3.0 → includecpp-3.1/IncludeCPP.egg-info}/PKG-INFO +77 -2
- {includecpp-3.0 → includecpp-3.1}/IncludeCPP.egg-info/SOURCES.txt +2 -0
- {includecpp-3.0 → includecpp-3.1}/IncludeCPP.egg-info/requires.txt +1 -0
- includecpp-3.0/README.md → includecpp-3.1/PKG-INFO +476 -365
- includecpp-3.0/IncludeCPP.egg-info/PKG-INFO → includecpp-3.1/README.md +439 -401
- {includecpp-3.0 → includecpp-3.1}/includecpp/__init__.py +1 -1
- {includecpp-3.0 → includecpp-3.1}/includecpp/cli/commands.py +359 -2
- includecpp-3.1/includecpp/core/ai_integration.py +380 -0
- {includecpp-3.0 → includecpp-3.1}/pyproject.toml +2 -1
- {includecpp-3.0 → includecpp-3.1}/IncludeCPP.egg-info/dependency_links.txt +0 -0
- {includecpp-3.0 → includecpp-3.1}/IncludeCPP.egg-info/entry_points.txt +0 -0
- {includecpp-3.0 → includecpp-3.1}/IncludeCPP.egg-info/top_level.txt +0 -0
- {includecpp-3.0 → includecpp-3.1}/LICENSE +0 -0
- {includecpp-3.0 → includecpp-3.1}/MANIFEST.in +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/__init__.pyi +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/__main__.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/cli/__init__.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/cli/config_parser.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/__init__.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/build_manager.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/cpp_api.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/cpp_api.pyi +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/error_catalog.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/error_formatter.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/exceptions.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/core/path_discovery.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/generator/__init__.py +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/generator/parser.cpp +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/generator/parser.h +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/generator/type_resolver.cpp +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/generator/type_resolver.h +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/py.typed +0 -0
- {includecpp-3.0 → includecpp-3.1}/includecpp/templates/cpp.proj.template +0 -0
- {includecpp-3.0 → includecpp-3.1}/requirements.txt +0 -0
- {includecpp-3.0 → includecpp-3.1}/setup.cfg +0 -0
- {includecpp-3.0 → includecpp-3.1}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: IncludeCPP
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1
|
|
4
4
|
Summary: Professional C++ Python bindings with type-generic templates, pystubs and native threading
|
|
5
5
|
Home-page: https://github.com/includecpp/includecpp
|
|
6
6
|
Author: IncludeCPP Team
|
|
@@ -29,6 +29,7 @@ License-File: LICENSE
|
|
|
29
29
|
Requires-Dist: pybind11>=2.11.0
|
|
30
30
|
Requires-Dist: click>=8.0.0
|
|
31
31
|
Requires-Dist: typing-extensions>=4.0.0
|
|
32
|
+
Requires-Dist: requests>=2.28.0
|
|
32
33
|
Dynamic: author
|
|
33
34
|
Dynamic: home-page
|
|
34
35
|
Dynamic: license-file
|
|
@@ -251,6 +252,15 @@ Use `includecpp <command> --help` for details.
|
|
|
251
252
|
| `fix <module>` | Analyze C++ code for issues |
|
|
252
253
|
| `fix --all` | Analyze all modules |
|
|
253
254
|
| `fix --undo` | Revert last fix changes |
|
|
255
|
+
| `fix --ai <module>` | AI-enhanced code analysis |
|
|
256
|
+
| `ai key <key>` | Set OpenAI API key |
|
|
257
|
+
| `ai enable` | Enable AI features |
|
|
258
|
+
| `ai disable` | Disable AI features |
|
|
259
|
+
| `ai model --list` | List available models |
|
|
260
|
+
| `ai model set <name>` | Set active model |
|
|
261
|
+
| `ai --info` | Show AI configuration and usage |
|
|
262
|
+
| `ai optimize <module>` | AI code optimization |
|
|
263
|
+
| `ai optimize --agent "<task>"` | Custom AI task |
|
|
254
264
|
| `rebuild` / `build` | Compile all modules |
|
|
255
265
|
| `get <module>` | Show module API (classes, methods, functions) |
|
|
256
266
|
| `install <name>` | Install community module |
|
|
@@ -295,6 +305,62 @@ Clear caches with `--clean`.
|
|
|
295
305
|
|
|
296
306
|
# Advanced Features
|
|
297
307
|
|
|
308
|
+
## AI Integration
|
|
309
|
+
|
|
310
|
+
IncludeCPP integrates with OpenAI for intelligent code analysis and optimization.
|
|
311
|
+
|
|
312
|
+
### Setup
|
|
313
|
+
|
|
314
|
+
```bash
|
|
315
|
+
includecpp ai key sk-your-api-key-here
|
|
316
|
+
includecpp ai enable
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Available Models
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
includecpp ai model --list
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
- `gpt-5` (default) - 256k context
|
|
326
|
+
- `gpt-5-nano` - 32k context, fast
|
|
327
|
+
- `gpt-4o` - 128k context
|
|
328
|
+
- `gpt-4-turbo` - 128k context
|
|
329
|
+
- `gpt-3.5-turbo` - 16k context
|
|
330
|
+
|
|
331
|
+
### AI-Enhanced Fix
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
includecpp fix --ai mymodule
|
|
335
|
+
includecpp fix --ai --all
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
Sends source files to AI for analysis, suggests improvements while preserving all existing functions.
|
|
339
|
+
|
|
340
|
+
### AI Optimize
|
|
341
|
+
|
|
342
|
+
```bash
|
|
343
|
+
includecpp ai optimize mymodule # Optimize module sources
|
|
344
|
+
includecpp ai optimize --file src/utils.cpp # Optimize specific files
|
|
345
|
+
includecpp ai optimize --agent mymodule "add SIMD" # Custom task
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
### Build Error Analysis
|
|
349
|
+
|
|
350
|
+
When AI is enabled and `rebuild` fails, the build error is automatically analyzed:
|
|
351
|
+
- Root cause identification
|
|
352
|
+
- Code fix suggestions
|
|
353
|
+
- Prevention tips
|
|
354
|
+
|
|
355
|
+
### Configuration
|
|
356
|
+
|
|
357
|
+
```bash
|
|
358
|
+
includecpp ai --info # Show status, model, usage stats
|
|
359
|
+
includecpp ai disable # Disable without removing key
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
API key stored in `~/.includecpp/.secret`.
|
|
363
|
+
|
|
298
364
|
## Overloaded Methods
|
|
299
365
|
|
|
300
366
|
Specify the signature to disambiguate:
|
|
@@ -369,6 +435,15 @@ Options:
|
|
|
369
435
|
|
|
370
436
|
# Changelog
|
|
371
437
|
|
|
438
|
+
## v3.1
|
|
439
|
+
- AI-powered code analysis and optimization
|
|
440
|
+
- `includecpp ai key <key>` - Configure OpenAI API key
|
|
441
|
+
- `includecpp ai enable/disable` - Toggle AI features
|
|
442
|
+
- `includecpp ai model` - Select AI model (gpt-5, gpt-4o, etc.)
|
|
443
|
+
- `includecpp fix --ai` - AI-enhanced code analysis
|
|
444
|
+
- `includecpp ai optimize` - AI code optimization with agent mode
|
|
445
|
+
- Intelligent build error analysis when AI enabled
|
|
446
|
+
|
|
372
447
|
## v3.0
|
|
373
448
|
- New `fix` command for static C++ code analysis
|
|
374
449
|
- `--undo` to revert changes, `--auto` for auto-fixes
|
|
@@ -398,4 +473,4 @@ Options:
|
|
|
398
473
|
|
|
399
474
|
---
|
|
400
475
|
|
|
401
|
-
MIT License | v3.
|
|
476
|
+
MIT License | v3.1 | [GitHub](https://github.com/liliassg/IncludeCPP)
|
|
@@ -12,6 +12,7 @@ setup.py
|
|
|
12
12
|
./includecpp/cli/commands.py
|
|
13
13
|
./includecpp/cli/config_parser.py
|
|
14
14
|
./includecpp/core/__init__.py
|
|
15
|
+
./includecpp/core/ai_integration.py
|
|
15
16
|
./includecpp/core/build_manager.py
|
|
16
17
|
./includecpp/core/cpp_api.py
|
|
17
18
|
./includecpp/core/cpp_api.pyi
|
|
@@ -39,6 +40,7 @@ includecpp/cli/__init__.py
|
|
|
39
40
|
includecpp/cli/commands.py
|
|
40
41
|
includecpp/cli/config_parser.py
|
|
41
42
|
includecpp/core/__init__.py
|
|
43
|
+
includecpp/core/ai_integration.py
|
|
42
44
|
includecpp/core/build_manager.py
|
|
43
45
|
includecpp/core/cpp_api.py
|
|
44
46
|
includecpp/core/cpp_api.pyi
|