Skip to content

Commit d30be4d

Browse files
refactor(docs): code analysis engine
changes: - file: batch_processor.py area: cli modified: [BatchProcessor, _should_exclude_file] - file: output_formatters.py area: cli added: [_build_unsupported_summary, _unsupported_bucket, _split_toon_results, _toon_today, _format_toon_issue, _print_toon_file_section, +1 more] modified: [output_batch_empty, output_batch_toon] - file: test_batch_toon_output.py area: test added: [FixedDate, make_result, today] new_tests: 2 testing: new_tests: 2 scenarios: - batch_processor_skips_toon_files - output_batch_toon_is_compact_and_groups_sections dependencies: flow: "test_batch_toon_output→output_formatters" - test_batch_toon_output.py -> output_formatters.py stats: lines: "+1607/-1299 (net +308)" files: 19 complexity: "Large structural change (normalized)"
1 parent ddaac09 commit d30be4d

24 files changed

+1633
-1302
lines changed

β€ŽCHANGELOG.mdβ€Ž

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
124124
- **Tree-sitter for all** β€” syntax validation for 165+ languages
125125
- **Example 07** β€” comprehensive multi-language demo with 8 languages
126126

127+
## [0.1.66] - 2026-03-26
128+
129+
### Docs
130+
- Update docs/README.md
131+
- Update project/README.md
132+
- Update project/context.md
133+
134+
### Test
135+
- Update tests/test_batch_toon_output.py
136+
137+
### Other
138+
- Update project/analysis.toon.yaml
139+
- Update project/calls.mmd
140+
- Update project/calls.png
141+
- Update project/compact_flow.mmd
142+
- Update project/compact_flow.png
143+
- Update project/duplication.toon.yaml
144+
- Update project/evolution.toon.yaml
145+
- Update project/flow.mmd
146+
- Update project/flow.png
147+
- Update project/index.html
148+
- ... and 4 more files
149+
127150
## [0.1.65] - 2026-03-25
128151

129152
### Docs

β€ŽVERSIONβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.65
1+
0.1.66

β€Ždocs/README.mdβ€Ž

Lines changed: 31 additions & 31 deletions
Large diffs are not rendered by default.

β€Žproject/README.mdβ€Ž

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ When you run `code2llm ./ -f all`, the following files are created:
2020
|------|--------|---------|----------|
2121
| `prompt.txt` | **Text** | **πŸ“ Ready-to-send prompt** - Lists all files with instructions | Attach to LLM conversation as context guide |
2222
| `context.md` | **Markdown** | **πŸ“– LLM narrative** - Architecture summary | Paste into ChatGPT/Claude for code analysis |
23-
| `analysis.yaml` | **YAML** | **πŸ“Š Structured data** - Machine-readable | For scripts and automated processing |
24-
| `analysis.json` | **JSON** | **πŸ”§ API format** - Programmatic access | For integration with other tools |
2523

2624
### πŸ“Š Visualizations
2725

@@ -139,23 +137,24 @@ cat map.toon.yaml | head -50
139137
grep "SIGNATURES" map.toon.yaml
140138
```
141139

142-
### `project.toon` - Legacy Project Logic (Deprecated)
143-
**Purpose**: Compact module view generated by code2logic integration
144-
**Status**: Deprecated β€” the lightweight project overview is now merged into `map.toon` header
140+
### `project.toon.yaml` - Compact Analysis View
141+
**Purpose**: Compact module view generated from project.yaml data
142+
**Status**: Legacy view generated on demand from unified project.yaml
145143

146144
**Example usage**:
147145
```bash
148146
# View compact project structure
149-
cat project.toon | head -30
147+
cat project.toon.yaml | head -30
150148

151149
# Find largest files
152-
grep -E "^ .*[0-9]{3,}$" project.toon | sort -t',' -k2 -n -r | head -10
150+
grep -E "^ .*[0-9]{3,}$" project.toon.yaml | sort -t',' -k2 -n -r | head -10
153151
```
154152

155153
### `prompt.txt` - Ready-to-Send LLM Prompt
156154
**Purpose**: Pre-formatted prompt listing all generated files for LLM conversation
157155
**Contents**:
158156
- **Files section**: Lists all existing generated files with descriptions
157+
- **Source files section**: Highlights important source files such as `cli_exports/orchestrator.py`
159158
- **Missing section**: Shows which files weren't generated (if any)
160159
- **Task section**: Instructions for LLM analysis
161160
- **Requirements section**: Guidelines for suggested changes
@@ -331,8 +330,8 @@ code2llm ./ -f yaml --separate-orphans
331330
---
332331

333332
**Generated by**: `code2llm ./ -f all --readme`
334-
**Analysis Date**: 2026-03-25
335-
**Total Functions**: 12152
333+
**Analysis Date**: 2026-03-26
334+
**Total Functions**: 12159
336335
**Total Classes**: 3039
337336
**Modules**: 1425
338337

β€Žproject/analysis.toon.yamlβ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# code2llm | 45f 5765L | python:44,shell:1 | 2026-03-25
2-
# CCΜ„=3.5 | critical:4/12152 | dups:0 | cycles:0
1+
# code2llm | 45f 5819L | python:44,shell:1 | 2026-03-26
2+
# CCΜ„=3.5 | critical:3/12159 | dups:0 | cycles:0
33

44
HEALTH[20]:
55
🟑 CC validate_code CC=22 (limit:15)
@@ -26,16 +26,16 @@ HEALTH[20]:
2626
REFACTOR[1]:
2727
1. split 20 high-CC methods (CC>15)
2828

29-
PIPELINES[8384]:
30-
[1] Src [handle_validate_syntax]: handle_validate_syntax β†’ validate_syntax
29+
PIPELINES[8385]:
30+
[1] Src [__init__]: __init__
3131
PURITY: 100% pure
32-
[2] Src [handle_validate_imports]: handle_validate_imports β†’ validate_imports
32+
[2] Src [__init__]: __init__
3333
PURITY: 100% pure
34-
[3] Src [handle_validate_security]: handle_validate_security β†’ validate_security
34+
[3] Src [handle_validate_syntax]: handle_validate_syntax β†’ validate_syntax
3535
PURITY: 100% pure
36-
[4] Src [handle_validate_code]: handle_validate_code β†’ validate_code
36+
[4] Src [handle_validate_imports]: handle_validate_imports β†’ validate_imports
3737
PURITY: 100% pure
38-
[5] Src [__init__]: __init__
38+
[5] Src [handle_validate_security]: handle_validate_security β†’ validate_security
3939
PURITY: 100% pure
4040

4141
LAYERS:
@@ -49,9 +49,9 @@ LAYERS:
4949
β”‚ __init__ 1L 0C 0m CC=0.0 ←0
5050
β”‚
5151
src/ CCΜ„=3.4 ←in:0 β†’out:0
52-
β”‚ !! output_formatters 421L 0C 16m CC=17 ←2
52+
β”‚ output_formatters 469L 0C 23m CC=10 ←2
5353
β”‚ command_handlers 344L 0C 11m CC=6 ←0
54-
β”‚ !! batch_processor 319L 1C 12m CC=26 ←0
54+
β”‚ !! batch_processor 325L 1C 12m CC=26 ←0
5555
β”‚ semantic 296L 1C 15m CC=4 ←0
5656
β”‚ gitignore 272L 1C 10m CC=11 ←1
5757
β”‚ regression 265L 1C 10m CC=7 ←0

0 commit comments

Comments
Β (0)