Skip to content

Commit f027c67

Browse files
fix(docs): add markdown output and commit messages
Statistics: 42 files changed, 6928 insertions, 5613 deletions Summary: - Dirs: project=23, .=5, code2llm=5, tests=4, batch_1=1, code2llm_part2=1 - Exts: .yaml=18, .py=8, .md=6, .mmd=3, .png=3, .html=1 - A/M/D: 6/34/2 - Added: examples/docker-doql-example/DEPENDENCY_ANALYSIS.md, project/code2llm/analysis.toon.yaml, project/code2llm_part2/analysis.toon.yaml, tests/test_cache_invalidation_e2e.py, tests/test_declarative_collection.py, tests/test_file_analyzer_tagging.py - Deleted: analysis.toon.yaml, evolution.toon.yaml - Symbols: test_all_extensions_includes_declarative, class setup__read_version, test_stale_export_removed, test_all_filenames_includes_dockerfile_and_makefile, test_run_hash_stable_when_nothing_changes Added files: - examples/docker-doql-example/DEPENDENCY_ANALYSIS.md (+97/-0) - project/code2llm/analysis.toon.yaml (+241/-0) - project/code2llm_part2/analysis.toon.yaml (+241/-0) - tests/test_cache_invalidation_e2e.py (+113/-0) - tests/test_declarative_collection.py (+204/-0) - tests/test_file_analyzer_tagging.py (+69/-0) Modified files: - README.md (+12/-14) - batch_1/analysis.toon.yaml (+62/-57) - code2llm/analysis.toon.yaml (+27/-27) - code2llm/core/analyzer.py (+45/-11) - code2llm/core/config.py (+71/-2) - code2llm/core/file_analyzer.py (+10/-0) - code2llm/core/persistent_cache.py (+127/-14) - code2llm_part2/analysis.toon.yaml (+32/-34) - context.md (+59/-60) - docs/README.md (+325/-301) - project/README.md (+4/-4) - project/analysis.toon.yaml (+61/-57) - project/batch_1/analysis.toon.yaml (+167/-99) - project/calls.mmd (+472/-453) - project/calls.png (+0/-0) - project/calls.toon.yaml (+56/-67) - project/calls.yaml (+3117/-3132) - project/compact_flow.mmd (+12/-9) - project/compact_flow.png (+0/-0) - project/context.md (+118/-125) - ... and 14 more Deleted files: - analysis.toon.yaml (+0/-300) - evolution.toon.yaml (+0/-44) Implementation notes (heuristics): - Type inferred from file paths + diff keywords + add/delete ratio - Scope prefers 'goal' when goal/* is touched; otherwise based on top-level dirs - For <=6 files: generate short per-file notes from added lines (defs/classes/click options/headings) - A/M/D derived from git name-status; per-file +X/-X from git numstat
1 parent 017e88e commit f027c67

47 files changed

Lines changed: 6961 additions & 5612 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
## [Unreleased]
22

3+
## [0.5.143] - 2026-04-21
4+
5+
### Docs
6+
- Update README.md
7+
- Update context.md
8+
- Update docs/README.md
9+
- Update examples/docker-doql-example/DEPENDENCY_ANALYSIS.md
10+
- Update project/README.md
11+
- Update project/context.md
12+
13+
### Test
14+
- Update tests/test_cache_invalidation_e2e.py
15+
- Update tests/test_declarative_collection.py
16+
- Update tests/test_file_analyzer_tagging.py
17+
- Update tests/test_persistent_cache.py
18+
19+
### Other
20+
- Update analysis.toon.yaml
21+
- Update batch_1/analysis.toon.yaml
22+
- Update code2llm/analysis.toon.yaml
23+
- Update code2llm/core/analyzer.py
24+
- Update code2llm/core/config.py
25+
- Update code2llm/core/file_analyzer.py
26+
- Update code2llm/core/persistent_cache.py
27+
- Update code2llm_part2/analysis.toon.yaml
28+
- Update evolution.toon.yaml
29+
- Update project/analysis.toon.yaml
30+
- ... and 22 more files
31+
332
## [0.5.142] - 2026-04-21
433

534
### Docs

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@
33

44
## AI Cost Tracking
55

6-
![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.5.142-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
7-
![AI Cost](https://img.shields.io/badge/AI%20Cost-$7.50-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-66.9h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
6+
![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.5.143-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
7+
![AI Cost](https://img.shields.io/badge/AI%20Cost-$7.50-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-69.7h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
88

9-
- 🤖 **LLM usage:** $7.5000 (190 commits)
10-
- 👤 **Human dev:** ~$6690 (66.9h @ $100/h, 30min dedup)
9+
- 🤖 **LLM usage:** $7.5000 (195 commits)
10+
- 👤 **Human dev:** ~$6974 (69.7h @ $100/h, 30min dedup)
1111

12-
Generated on 2026-04-20 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
12+
Generated on 2026-04-21 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
1313

1414
---
1515

16+
17+
1618
This directory contains the complete analysis of your project generated by `code2llm`. Each file serves a specific purpose for understanding, refactoring, and documenting your codebase.
1719

1820
## 📁 Generated Files Overview
@@ -24,6 +26,7 @@ When you run `code2llm ./ -f all`, the following files are created:
2426
| File | Format | Purpose | Key Insights |
2527
|------|--------|---------|--------------|
2628
| `evolution.toon.yaml` | **YAML** | **📋 Refactoring queue** - Prioritized improvements | 0 refactoring actions needed |
29+
| `map.toon.yaml` | **YAML** | **🗺️ Structural map + project header** - Modules, imports, exports, signatures, stats, alerts, hotspots, trend | Project architecture overview |
2730

2831
### 🤖 LLM-Ready Documentation
2932

@@ -340,10 +343,10 @@ code2llm ./ -f yaml --separate-orphans
340343
---
341344

342345
**Generated by**: `code2llm ./ -f all --readme`
343-
**Analysis Date**: 2026-04-20
344-
**Total Functions**: 2124
345-
**Total Classes**: 241
346-
**Modules**: 359
346+
**Analysis Date**: 2026-04-21
347+
**Total Functions**: 2150
348+
**Total Classes**: 245
349+
**Modules**: 369
347350

348351
For more information about code2llm, visit: https://github.com/tom-sapletta/code2llm
349352

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.142
1+
0.5.143

analysis.toon.yaml

Lines changed: 0 additions & 300 deletions
This file was deleted.

batch_1/analysis.toon.yaml

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

code2llm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
and entity resolution with multilingual support.
99
"""
1010

11-
__version__ = "0.5.142"
11+
__version__ = "0.5.143"
1212
__author__ = "STTS Project"
1313

1414
# Core analysis components (lightweight, always needed)

code2llm/analysis.toon.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# code2llm | 158f 23284L | python:157 | 2026-04-20
2-
# CC̄=4.3 | critical:1/937 | dups:0 | cycles:0
1+
# code2llm | 158f 23361L | python:157 | 2026-04-21
2+
# CC̄=4.3 | critical:1/939 | dups:0 | cycles:0
33

44
HEALTH[1]:
55
🟡 CC load_input CC=15 (limit:15)
@@ -10,20 +10,20 @@ REFACTOR[1]:
1010
PIPELINES[579]:
1111
[1] Src [__getattr__]: __getattr__
1212
PURITY: 100% pure
13-
[2] Src [analyze_data_flow]: analyze_data_flow
13+
[2] Src [analyze_file]: analyze_file → analyze
1414
PURITY: 100% pure
15-
[3] Src [analyze_data_structures]: analyze_data_structures
15+
[3] Src [__init__]: __init__
1616
PURITY: 100% pure
17-
[4] Src [_find_data_pipelines]: _find_data_pipelines_categorize_functions
17+
[4] Src [analyze_function]: analyze_functionfind_function_node
1818
PURITY: 100% pure
19-
[5] Src [_find_state_patterns]: _find_state_patterns
19+
[5] Src [analyze_all]: analyze_all
2020
PURITY: 100% pure
2121

2222
LAYERS:
2323
cli_exports/ CC̄=5.1 ←in:4 →out:11 !! split
2424
│ prompt 475L 0C 18m CC=14 ←2
2525
│ formats 315L 0C 16m CC=13 ←3
26-
│ orchestrator 293L 0C 11m CC=14 ←2
26+
│ orchestrator 311L 0C 12m CC=14 ←2
2727
│ orchestrator_handlers 149L 0C 8m CC=6 ←2
2828
│ code2logic 127L 0C 8m CC=6 ←2
2929
│ orchestrator_chunked 87L 0C 3m CC=9 ←0
@@ -93,8 +93,8 @@ LAYERS:
9393
│ helpers 111L 0C 7m CC=8 ←8
9494
│ hotspots 106L 0C 3m CC=13 ←2
9595
│ yaml_export 106L 0C 5m CC=8 ←0
96-
│ health 103L 0C 3m CC=13 ←2
9796
│ yaml_export 103L 0C 1m CC=11 ←0
97+
│ health 103L 0C 3m CC=13 ←1
9898
│ utils 99L 0C 8m CC=6 ←7
9999
│ metrics 98L 1C 4m CC=5 ←0
100100
│ metrics_health 98L 1C 6m CC=7 ←0
@@ -152,9 +152,9 @@ LAYERS:
152152
core/ CC̄=4.0 ←in:10 →out:9 !! split
153153
│ large_repo 488L 2C 20m CC=9 ←1
154154
│ base 464L 0C 14m CC=14 ←8
155-
│ analyzer 442L 1C 20m CC=11 ←1
156-
│ file_analyzer 392L 1C 18m CC=12 ←0
157-
│ persistent_cache 322L 1C 18m CC=10 ←1
155+
│ analyzer 460L 1C 20m CC=11 ←1
156+
│ file_analyzer 402L 1C 18m CC=12 ←0
157+
│ persistent_cache 353L 1C 19m CC=10 ←1
158158
│ config 269L 6C 2m CC=3 ←0
159159
│ toon_size_manager 265L 0C 8m CC=10 ←1
160160
│ scanner 201L 1C 6m CC=14 ←0
@@ -203,39 +203,39 @@ LAYERS:
203203
refactor/__init__.py 0L
204204

205205
COUPLING:
206-
exporters exporters.mermaid exporters.project_yaml core cli_exports exporters.toon exporters.map analysis cli_commands core.lang analysis.utils cli exporters.evolution exporters.readme cli_analysis
207-
exporters ── 15 ←14 ←6 1 1 2 7 6 hub
206+
exporters exporters.mermaid exporters.project_yaml core cli_exports exporters.toon analysis exporters.map cli_commands core.lang analysis.utils cli exporters.evolution exporters.readme cli_analysis
207+
exporters ── 15 ←14 ←6 1 2 1 7 6 hub
208208
exporters.mermaid 15 ── hub
209-
exporters.project_yaml 14 ── ←2 3 ←2 !! fan-out
210-
core ── ←1 ←2 ←3 9 ←1 ←1 ←1 hub
209+
exporters.project_yaml 14 ── ←2 3 ←1 !! fan-out
210+
core ── ←1 ←2 ←3 9 ←1 ←1 ←1 hub
211211
cli_exports 6 2 1 ── ←1 ←1 ←2 !! fan-out
212212
exporters.toon 10 ←3 ── !! fan-out
213-
exporters.map 9 2 ── !! fan-out
214-
analysis ←2 2 ── 7 !! fan-out
213+
analysis ←2 2 ── 7 !! fan-out
214+
exporters.map 9 1 ── !! fan-out
215215
cli_commands 3 1 ── ←5 hub
216216
core.lang ←9 ── hub
217-
analysis.utils 1 ←7 ── hub
217+
analysis.utils 1 ←7 ── hub
218218
cli 1 1 5 ── !! fan-out
219219
exporters.evolution ←7 ── hub
220220
exporters.readme ←6 ── hub
221221
cli_analysis 1 2 ──
222222
CYCLES: none
223-
HUB: cli_commands/ (fan-in=5)
224-
HUB: core.lang/ (fan-in=9)
223+
HUB: exporters.readme/ (fan-in=6)
225224
HUB: core/ (fan-in=10)
226-
HUB: exporters.mermaid/ (fan-in=15)
227225
HUB: exporters/ (fan-in=54)
228-
HUB: analysis.utils/ (fan-in=7)
226+
HUB: core.lang/ (fan-in=9)
227+
HUB: cli_commands/ (fan-in=5)
229228
HUB: exporters.evolution/ (fan-in=7)
230-
HUB: exporters.readme/ (fan-in=6)
231-
SMELL: cli_exports/ fan-out=11 → split needed
229+
HUB: exporters.mermaid/ (fan-in=15)
230+
HUB: analysis.utils/ (fan-in=7)
232231
SMELL: core/ fan-out=9 → split needed
233-
SMELL: exporters.mermaid/ fan-out=15 → split needed
234-
SMELL: exporters.map/ fan-out=11 → split needed
235-
SMELL: analysis/ fan-out=9 → split needed
236232
SMELL: exporters/ fan-out=32 → split needed
233+
SMELL: analysis/ fan-out=9 → split needed
234+
SMELL: exporters.map/ fan-out=10 → split needed
237235
SMELL: exporters.toon/ fan-out=10 → split needed
238236
SMELL: cli/ fan-out=8 → split needed
237+
SMELL: exporters.mermaid/ fan-out=15 → split needed
238+
SMELL: cli_exports/ fan-out=11 → split needed
239239
SMELL: exporters.project_yaml/ fan-out=17 → split needed
240240

241241
EXTERNAL:

0 commit comments

Comments
 (0)