code2llm 0.5.2__tar.gz → 0.5.3__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 (66) hide show
  1. {code2llm-0.5.2 → code2llm-0.5.3}/PKG-INFO +51 -16
  2. {code2llm-0.5.2 → code2llm-0.5.3}/README.md +50 -15
  3. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/__init__.py +1 -1
  4. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm.egg-info/PKG-INFO +51 -16
  5. {code2llm-0.5.2 → code2llm-0.5.3}/pyproject.toml +2 -2
  6. {code2llm-0.5.2 → code2llm-0.5.3}/LICENSE +0 -0
  7. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/__main__.py +0 -0
  8. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/__init__.py +0 -0
  9. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/call_graph.py +0 -0
  10. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/cfg.py +0 -0
  11. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/coupling.py +0 -0
  12. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/data_analysis.py +0 -0
  13. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/dfg.py +0 -0
  14. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/pipeline_detector.py +0 -0
  15. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/side_effects.py +0 -0
  16. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/smells.py +0 -0
  17. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/analysis/type_inference.py +0 -0
  18. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/cli.py +0 -0
  19. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/core/__init__.py +0 -0
  20. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/core/analyzer.py +0 -0
  21. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/core/config.py +0 -0
  22. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/core/models.py +0 -0
  23. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/core/streaming_analyzer.py +0 -0
  24. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/__init__.py +0 -0
  25. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/base.py +0 -0
  26. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/context_exporter.py +0 -0
  27. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/evolution_exporter.py +0 -0
  28. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/flow_exporter.py +0 -0
  29. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/json_exporter.py +0 -0
  30. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/llm_exporter.py +0 -0
  31. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/map_exporter.py +0 -0
  32. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/mermaid_exporter.py +0 -0
  33. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/toon.py +0 -0
  34. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/exporters/yaml_exporter.py +0 -0
  35. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/generators/__init__.py +0 -0
  36. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/generators/llm_flow.py +0 -0
  37. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/generators/llm_task.py +0 -0
  38. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/generators/mermaid.py +0 -0
  39. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/nlp/__init__.py +0 -0
  40. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/nlp/config.py +0 -0
  41. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/nlp/entity_resolution.py +0 -0
  42. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/nlp/intent_matching.py +0 -0
  43. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/nlp/normalization.py +0 -0
  44. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/nlp/pipeline.py +0 -0
  45. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/patterns/__init__.py +0 -0
  46. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/patterns/detector.py +0 -0
  47. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/refactor/__init__.py +0 -0
  48. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm/refactor/prompt_engine.py +0 -0
  49. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm.egg-info/SOURCES.txt +0 -0
  50. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm.egg-info/dependency_links.txt +0 -0
  51. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm.egg-info/entry_points.txt +0 -0
  52. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm.egg-info/requires.txt +0 -0
  53. {code2llm-0.5.2 → code2llm-0.5.3}/code2llm.egg-info/top_level.txt +0 -0
  54. {code2llm-0.5.2 → code2llm-0.5.3}/setup.cfg +0 -0
  55. {code2llm-0.5.2 → code2llm-0.5.3}/setup.py +0 -0
  56. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_advanced_analysis.py +0 -0
  57. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_analyzer.py +0 -0
  58. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_deep_analysis.py +0 -0
  59. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_edge_cases.py +0 -0
  60. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_flow_exporter.py +0 -0
  61. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_format_quality.py +0 -0
  62. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_nlp_pipeline.py +0 -0
  63. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_pipeline_detector.py +0 -0
  64. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_prompt_engine.py +0 -0
  65. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_refactoring_engine.py +0 -0
  66. {code2llm-0.5.2 → code2llm-0.5.3}/tests/test_toon_v2.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code2llm
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries
5
5
  Home-page: https://github.com/wronai/stts
6
6
  Author: STTS Project
@@ -192,17 +192,18 @@ code2llm /path/to/project -o my_analysis
192
192
 
193
193
  ## Output Files
194
194
 
195
- | File | Description | Size |
196
- |------|-------------|------|
197
- | `analysis.toon` | **🎯 Optimized TOON format** (default) | ~200KB |
198
- | `analysis.yaml` | Complete structured analysis data | ~2.5MB |
199
- | `analysis.json` | JSON format for programmatic use | ~2.6MB |
200
- | `flow.mmd` | Full Mermaid flowchart (all nodes) | ~9KB |
201
- | `compact_flow.mmd` | Compact flowchart - deduplicated nodes | ~9KB |
202
- | `calls.mmd` | Function call graph | ~9KB |
203
- | `cfg.png` | Control flow visualization | ~7MB |
204
- | `call_graph.png` | Call graph visualization | ~3.7MB |
205
- | `llm_prompt.md` | LLM-ready analysis summary | ~35KB |
195
+ | File | Format | Description |
196
+ |------|--------|-------------|
197
+ | `analysis.toon` | TOON | **🎯 Diagnostyka zdrowia** CC, god modules, COUPLING, LAYERS |
198
+ | `evolution.toon` | TOON | **Kolejka refaktoryzacji** NEXT, RISKS, METRICS-TARGET |
199
+ | `flow.toon` | TOON | **Przepływ danych** PIPELINES, CONTRACTS, SIDE_EFFECTS |
200
+ | `project.map` | TOON | **Mapa strukturalna** moduły, sygnatury, importy |
201
+ | `context.md` | Markdown | **Kontekst dla LLM** architektura, API, flow |
202
+ | `analysis.yaml` | YAML | Pełne dane strukturalne |
203
+ | `analysis.json` | JSON | Dane maszynowe |
204
+ | `flow.mmd` | Mermaid | Diagram z CC-styled nodes |
205
+ | `calls.mmd` | Mermaid | Graf wywołań (edges only) |
206
+ | `compact_flow.mmd` | Mermaid | Moduły zagregowane |
206
207
 
207
208
  ## 🎯 TOON v2 Format Structure
208
209
 
@@ -304,6 +305,36 @@ The analysis provides specific guidance for:
304
305
  4. Recreating state machines
305
306
  5. Preserving decision logic
306
307
 
308
+ ## 📁 Examples
309
+
310
+ | Example | Description | Use Case |
311
+ |---------|-------------|----------|
312
+ | [basic-usage](examples/basic-usage/) | Wszystkie komendy CLI | Szybki start |
313
+ | [devops-workflow](examples/devops-workflow/) | Bash: metryki w README, commits, hooks | DevOps |
314
+ | [ci-cd](examples/ci-cd/) | GitHub Actions, pre-commit, Makefile | Automatyzacja |
315
+ | [claude-code](examples/claude-code/) | Automatyczna refaktoryzacja z Claude | AI-assisted |
316
+ | [shell-llm](examples/shell-llm/) | aider, llm, sgpt, fabric | Shell LLM |
317
+ | [litellm](examples/litellm/) | Python skrypt + dowolny LLM | Programmatic |
318
+
319
+ ### Najczęstsze komendy
320
+
321
+ ```bash
322
+ # Szybki health check
323
+ code2llm . -f toon -o output/
324
+
325
+ # Co refaktoryzować najpierw?
326
+ code2llm . -f evolution -o output/ --no-png
327
+
328
+ # Wszystkie formaty
329
+ code2llm . -f all -o output/ --no-png
330
+
331
+ # Benchmark before/after
332
+ python benchmarks/benchmark_evolution.py .
333
+
334
+ # Kontekst do LLM
335
+ code2llm . -f context -o output/ && cat output/context.md
336
+ ```
337
+
307
338
  ## Advanced Features
308
339
 
309
340
  ### State Machine Detection
@@ -582,10 +613,14 @@ python validate_toon.py output/analysis.toon
582
613
 
583
614
  ## 📚 Additional Resources
584
615
 
585
- - [TOON Format Validation](validate_toon.py) - Built-in validation tool
586
- - [Project Testing Script](project.sh) - Comprehensive test suite
587
- - [CLI Reference](code2llm/cli.py) - Complete command-line interface
588
- - [Exporter Implementation](code2llm/exporters/base.py) - TOON format implementation
616
+ - [Examples](examples/) 6 example projects (CLI, DevOps, CI/CD, LLM integration)
617
+ - [Basic Usage](examples/basic-usage/) Complete CLI reference
618
+ - [DevOps Workflow](examples/devops-workflow/) Metrics in README, commits, hooks
619
+ - [CHANGELOG](CHANGELOG.md) Release history
620
+ - [ROADMAP](ROADMAP.md) — Development roadmap
621
+ - [TODO](TODO.md) — Task backlog
622
+ - [TOON Format Validation](validate_toon.py) — Built-in validation tool
623
+ - [Benchmarks](benchmarks/) — Performance and evolution benchmarks
589
624
 
590
625
  ---
591
626
 
@@ -143,17 +143,18 @@ code2llm /path/to/project -o my_analysis
143
143
 
144
144
  ## Output Files
145
145
 
146
- | File | Description | Size |
147
- |------|-------------|------|
148
- | `analysis.toon` | **🎯 Optimized TOON format** (default) | ~200KB |
149
- | `analysis.yaml` | Complete structured analysis data | ~2.5MB |
150
- | `analysis.json` | JSON format for programmatic use | ~2.6MB |
151
- | `flow.mmd` | Full Mermaid flowchart (all nodes) | ~9KB |
152
- | `compact_flow.mmd` | Compact flowchart - deduplicated nodes | ~9KB |
153
- | `calls.mmd` | Function call graph | ~9KB |
154
- | `cfg.png` | Control flow visualization | ~7MB |
155
- | `call_graph.png` | Call graph visualization | ~3.7MB |
156
- | `llm_prompt.md` | LLM-ready analysis summary | ~35KB |
146
+ | File | Format | Description |
147
+ |------|--------|-------------|
148
+ | `analysis.toon` | TOON | **🎯 Diagnostyka zdrowia** CC, god modules, COUPLING, LAYERS |
149
+ | `evolution.toon` | TOON | **Kolejka refaktoryzacji** NEXT, RISKS, METRICS-TARGET |
150
+ | `flow.toon` | TOON | **Przepływ danych** PIPELINES, CONTRACTS, SIDE_EFFECTS |
151
+ | `project.map` | TOON | **Mapa strukturalna** moduły, sygnatury, importy |
152
+ | `context.md` | Markdown | **Kontekst dla LLM** architektura, API, flow |
153
+ | `analysis.yaml` | YAML | Pełne dane strukturalne |
154
+ | `analysis.json` | JSON | Dane maszynowe |
155
+ | `flow.mmd` | Mermaid | Diagram z CC-styled nodes |
156
+ | `calls.mmd` | Mermaid | Graf wywołań (edges only) |
157
+ | `compact_flow.mmd` | Mermaid | Moduły zagregowane |
157
158
 
158
159
  ## 🎯 TOON v2 Format Structure
159
160
 
@@ -255,6 +256,36 @@ The analysis provides specific guidance for:
255
256
  4. Recreating state machines
256
257
  5. Preserving decision logic
257
258
 
259
+ ## 📁 Examples
260
+
261
+ | Example | Description | Use Case |
262
+ |---------|-------------|----------|
263
+ | [basic-usage](examples/basic-usage/) | Wszystkie komendy CLI | Szybki start |
264
+ | [devops-workflow](examples/devops-workflow/) | Bash: metryki w README, commits, hooks | DevOps |
265
+ | [ci-cd](examples/ci-cd/) | GitHub Actions, pre-commit, Makefile | Automatyzacja |
266
+ | [claude-code](examples/claude-code/) | Automatyczna refaktoryzacja z Claude | AI-assisted |
267
+ | [shell-llm](examples/shell-llm/) | aider, llm, sgpt, fabric | Shell LLM |
268
+ | [litellm](examples/litellm/) | Python skrypt + dowolny LLM | Programmatic |
269
+
270
+ ### Najczęstsze komendy
271
+
272
+ ```bash
273
+ # Szybki health check
274
+ code2llm . -f toon -o output/
275
+
276
+ # Co refaktoryzować najpierw?
277
+ code2llm . -f evolution -o output/ --no-png
278
+
279
+ # Wszystkie formaty
280
+ code2llm . -f all -o output/ --no-png
281
+
282
+ # Benchmark before/after
283
+ python benchmarks/benchmark_evolution.py .
284
+
285
+ # Kontekst do LLM
286
+ code2llm . -f context -o output/ && cat output/context.md
287
+ ```
288
+
258
289
  ## Advanced Features
259
290
 
260
291
  ### State Machine Detection
@@ -533,10 +564,14 @@ python validate_toon.py output/analysis.toon
533
564
 
534
565
  ## 📚 Additional Resources
535
566
 
536
- - [TOON Format Validation](validate_toon.py) - Built-in validation tool
537
- - [Project Testing Script](project.sh) - Comprehensive test suite
538
- - [CLI Reference](code2llm/cli.py) - Complete command-line interface
539
- - [Exporter Implementation](code2llm/exporters/base.py) - TOON format implementation
567
+ - [Examples](examples/) 6 example projects (CLI, DevOps, CI/CD, LLM integration)
568
+ - [Basic Usage](examples/basic-usage/) Complete CLI reference
569
+ - [DevOps Workflow](examples/devops-workflow/) Metrics in README, commits, hooks
570
+ - [CHANGELOG](CHANGELOG.md) Release history
571
+ - [ROADMAP](ROADMAP.md) — Development roadmap
572
+ - [TODO](TODO.md) — Task backlog
573
+ - [TOON Format Validation](validate_toon.py) — Built-in validation tool
574
+ - [Benchmarks](benchmarks/) — Performance and evolution benchmarks
540
575
 
541
576
  ---
542
577
 
@@ -8,7 +8,7 @@ Includes NLP Processing Pipeline for query normalization, intent matching,
8
8
  and entity resolution with multilingual support.
9
9
  """
10
10
 
11
- __version__ = "0.4.0"
11
+ __version__ = "0.5.2"
12
12
  __author__ = "STTS Project"
13
13
 
14
14
  # Core analysis components
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: code2llm
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries
5
5
  Home-page: https://github.com/wronai/stts
6
6
  Author: STTS Project
@@ -192,17 +192,18 @@ code2llm /path/to/project -o my_analysis
192
192
 
193
193
  ## Output Files
194
194
 
195
- | File | Description | Size |
196
- |------|-------------|------|
197
- | `analysis.toon` | **🎯 Optimized TOON format** (default) | ~200KB |
198
- | `analysis.yaml` | Complete structured analysis data | ~2.5MB |
199
- | `analysis.json` | JSON format for programmatic use | ~2.6MB |
200
- | `flow.mmd` | Full Mermaid flowchart (all nodes) | ~9KB |
201
- | `compact_flow.mmd` | Compact flowchart - deduplicated nodes | ~9KB |
202
- | `calls.mmd` | Function call graph | ~9KB |
203
- | `cfg.png` | Control flow visualization | ~7MB |
204
- | `call_graph.png` | Call graph visualization | ~3.7MB |
205
- | `llm_prompt.md` | LLM-ready analysis summary | ~35KB |
195
+ | File | Format | Description |
196
+ |------|--------|-------------|
197
+ | `analysis.toon` | TOON | **🎯 Diagnostyka zdrowia** CC, god modules, COUPLING, LAYERS |
198
+ | `evolution.toon` | TOON | **Kolejka refaktoryzacji** NEXT, RISKS, METRICS-TARGET |
199
+ | `flow.toon` | TOON | **Przepływ danych** PIPELINES, CONTRACTS, SIDE_EFFECTS |
200
+ | `project.map` | TOON | **Mapa strukturalna** moduły, sygnatury, importy |
201
+ | `context.md` | Markdown | **Kontekst dla LLM** architektura, API, flow |
202
+ | `analysis.yaml` | YAML | Pełne dane strukturalne |
203
+ | `analysis.json` | JSON | Dane maszynowe |
204
+ | `flow.mmd` | Mermaid | Diagram z CC-styled nodes |
205
+ | `calls.mmd` | Mermaid | Graf wywołań (edges only) |
206
+ | `compact_flow.mmd` | Mermaid | Moduły zagregowane |
206
207
 
207
208
  ## 🎯 TOON v2 Format Structure
208
209
 
@@ -304,6 +305,36 @@ The analysis provides specific guidance for:
304
305
  4. Recreating state machines
305
306
  5. Preserving decision logic
306
307
 
308
+ ## 📁 Examples
309
+
310
+ | Example | Description | Use Case |
311
+ |---------|-------------|----------|
312
+ | [basic-usage](examples/basic-usage/) | Wszystkie komendy CLI | Szybki start |
313
+ | [devops-workflow](examples/devops-workflow/) | Bash: metryki w README, commits, hooks | DevOps |
314
+ | [ci-cd](examples/ci-cd/) | GitHub Actions, pre-commit, Makefile | Automatyzacja |
315
+ | [claude-code](examples/claude-code/) | Automatyczna refaktoryzacja z Claude | AI-assisted |
316
+ | [shell-llm](examples/shell-llm/) | aider, llm, sgpt, fabric | Shell LLM |
317
+ | [litellm](examples/litellm/) | Python skrypt + dowolny LLM | Programmatic |
318
+
319
+ ### Najczęstsze komendy
320
+
321
+ ```bash
322
+ # Szybki health check
323
+ code2llm . -f toon -o output/
324
+
325
+ # Co refaktoryzować najpierw?
326
+ code2llm . -f evolution -o output/ --no-png
327
+
328
+ # Wszystkie formaty
329
+ code2llm . -f all -o output/ --no-png
330
+
331
+ # Benchmark before/after
332
+ python benchmarks/benchmark_evolution.py .
333
+
334
+ # Kontekst do LLM
335
+ code2llm . -f context -o output/ && cat output/context.md
336
+ ```
337
+
307
338
  ## Advanced Features
308
339
 
309
340
  ### State Machine Detection
@@ -582,10 +613,14 @@ python validate_toon.py output/analysis.toon
582
613
 
583
614
  ## 📚 Additional Resources
584
615
 
585
- - [TOON Format Validation](validate_toon.py) - Built-in validation tool
586
- - [Project Testing Script](project.sh) - Comprehensive test suite
587
- - [CLI Reference](code2llm/cli.py) - Complete command-line interface
588
- - [Exporter Implementation](code2llm/exporters/base.py) - TOON format implementation
616
+ - [Examples](examples/) 6 example projects (CLI, DevOps, CI/CD, LLM integration)
617
+ - [Basic Usage](examples/basic-usage/) Complete CLI reference
618
+ - [DevOps Workflow](examples/devops-workflow/) Metrics in README, commits, hooks
619
+ - [CHANGELOG](CHANGELOG.md) Release history
620
+ - [ROADMAP](ROADMAP.md) — Development roadmap
621
+ - [TODO](TODO.md) — Task backlog
622
+ - [TOON Format Validation](validate_toon.py) — Built-in validation tool
623
+ - [Benchmarks](benchmarks/) — Performance and evolution benchmarks
589
624
 
590
625
  ---
591
626
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "code2llm"
7
- version = "0.5.2"
7
+ version = "0.5.3"
8
8
  description = "High-performance Python code flow analysis with optimized TOON format - CFG, DFG, call graphs, and intelligent code queries"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -74,7 +74,7 @@ line-length = 100
74
74
  target-version = ['py38']
75
75
 
76
76
  [tool.mypy]
77
- python_version = "0.5.2"
77
+ python_version = "0.5.3"
78
78
  ignore_missing_imports = true
79
79
 
80
80
  [tool.pytest.ini_options]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes