Skip to content

Commit 73a3bfb

Browse files
feat(docs): code analysis engine
stats: lines: "+6859/-962 (net +5897)" files: 8 complexity: "Stable complexity"
1 parent b813281 commit 73a3bfb

File tree

13 files changed

+6877
-964
lines changed

13 files changed

+6877
-964
lines changed

.pyqual/ruff.json

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

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
350350
- **Tree-sitter for all** — syntax validation for 165+ languages
351351
- **Example 07** — comprehensive multi-language demo with 8 languages
352352

353+
## [0.1.70] - 2026-03-31
354+
355+
### Docs
356+
- Update README.md
357+
- Update TODO.md
358+
- Update project/README.md
359+
- Update project/context.md
360+
361+
### Other
362+
- Update .pyqual/ruff.json
363+
- Update VERSION
364+
- Update project.sh
365+
- Update project/analysis.toon.yaml
366+
- Update project/validation.toon.yaml
367+
- Update project/verify/validation.toon.yaml
368+
353369
## [0.1.68] - 2026-03-31
354370

355371
### Docs

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,16 @@
2626

2727
## AI Cost Tracking
2828

29-
![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.1.68-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
30-
![AI Cost](https://img.shields.io/badge/AI%20Cost-$7.50-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-14.4h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
29+
![PyPI](https://img.shields.io/badge/pypi-costs-blue) ![Version](https://img.shields.io/badge/version-0.1.70-blue) ![Python](https://img.shields.io/badge/python-3.9+-blue) ![License](https://img.shields.io/badge/license-Apache--2.0-green)
30+
![AI Cost](https://img.shields.io/badge/AI%20Cost-$7.50-orange) ![Human Time](https://img.shields.io/badge/Human%20Time-15.9h-blue) ![Model](https://img.shields.io/badge/Model-openrouter%2Fqwen%2Fqwen3--coder--next-lightgrey)
3131

32-
- 🤖 **LLM usage:** $7.5000 (78 commits)
33-
- 👤 **Human dev:** ~$1436 (14.4h @ $100/h, 30min dedup)
32+
- 🤖 **LLM usage:** $7.5000 (80 commits)
33+
- 👤 **Human dev:** ~$1586 (15.9h @ $100/h, 30min dedup)
3434

35-
Generated on 2026-03-30 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
35+
Generated on 2026-03-31 using [openrouter/qwen/qwen3-coder-next](https://openrouter.ai/qwen/qwen3-coder-next)
3636

3737
---
3838

39-
40-
4139
vallm validates code proposals through a **four-tier pipeline** — from millisecond syntax checks to LLM-as-judge semantic review — before a single line ships.
4240

4341
## Features

TODO.md

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

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.68
1+
0.1.70

project.sh

Lines changed: 32 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
#!/usr/bin/env bash
2+
set -e
23
clear
3-
pip install -e .
4-
pip install prefact --upgrade
5-
pip install vallm --upgrade
6-
pip install redup --upgrade
7-
pip install glon --upgrade
8-
pip install goal --upgrade
9-
pip install code2logic --upgrade
10-
pip install code2llm --upgrade
11-
#code2llm ./ -f toon,evolution,code2logic,project-yaml -o ./project --no-chunk
12-
code2llm ./ -f all -o ./project --no-chunk
13-
#code2llm report --format all # → all views
14-
rm project/analysis.json
15-
rm project/analysis.yaml
164

17-
pip install code2docs --upgrade
18-
code2docs ./ --readme-only
19-
redup scan . --format toon --output ./project
20-
#redup scan . --functions-only -f toon --output ./project
21-
#vallm batch ./src --recursive --semantic --model qwen2.5-coder:7b
22-
#vallm batch --parallel .
23-
vallm batch . --recursive --format toon --output ./project
24-
prefact -a
5+
VENV=".venv"
6+
PIP="$VENV/bin/pip"
7+
8+
if [ ! -f "$PIP" ]; then
9+
echo "Creating virtual environment..."
10+
python3 -m venv "$VENV"
11+
fi
12+
13+
$PIP install -e . --quiet
14+
$PIP install pyqual --upgrade --quiet
15+
$PIP install prefact --upgrade --quiet
16+
$PIP install vallm --upgrade --quiet
17+
$PIP install redup --upgrade --quiet
18+
$PIP install glon --upgrade --quiet
19+
$PIP install goal --upgrade --quiet
20+
$PIP install code2logic --upgrade --quiet
21+
$PIP install code2llm --upgrade --quiet
22+
#$VENV/bin/code2llm ./ -f toon,evolution,code2logic,project-yaml -o ./project --no-chunk
23+
$VENV/bin/code2llm ./ -f all -o ./project --no-chunk
24+
#$VENV/bin/code2llm report --format all # → all views
25+
rm -f project/analysis.json
26+
rm -f project/analysis.yaml
27+
28+
$PIP install code2docs --upgrade --quiet
29+
$VENV/bin/code2docs ./ --readme-only
30+
$VENV/bin/redup scan . --format toon --output ./project
31+
#$VENV/bin/redup scan . --functions-only -f toon --output ./project
32+
#$VENV/bin/vallm batch ./src --recursive --semantic --model qwen2.5-coder:7b
33+
#$VENV/bin/vallm batch --parallel .
34+
$VENV/bin/vallm batch . --recursive --format toon --output ./project
35+
$VENV/bin/prefact -a

project/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,9 @@ code2llm ./ -f yaml --separate-orphans
332332
---
333333

334334
**Generated by**: `code2llm ./ -f all --readme`
335-
**Analysis Date**: 2026-03-30
336-
**Total Functions**: 12172
337-
**Total Classes**: 3039
338-
**Modules**: 1425
335+
**Analysis Date**: 2026-03-31
336+
**Total Functions**: 369
337+
**Total Classes**: 41
338+
**Modules**: 87
339339

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

project/analysis.toon.yaml

Lines changed: 18 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,26 @@
1-
# code2llm | 45f 5875L | python:44,shell:1 | 2026-03-30
2-
# CC̄=3.4 | critical:0/12172 | dups:0 | cycles:0
1+
# code2llm | 45f 5897L | python:44,shell:1 | 2026-03-31
2+
# CC̄=3.4 | critical:0/369 | dups:0 | cycles:2
33

4-
HEALTH[20]:
5-
🟡 CC renderToken CC=17 (limit:15)
6-
🟡 CC send CC=19 (limit:15)
7-
🟡 CC build_digest_header CC=19 (limit:15)
8-
🟡 CC resolve_redirects CC=15 (limit:15)
9-
🟡 CC super_len CC=18 (limit:15)
10-
🟡 CC should_bypass_proxies CC=17 (limit:15)
11-
🟡 CC _encode_files CC=21 (limit:15)
12-
🟡 CC prepare_url CC=17 (limit:15)
13-
🟡 CC prepare_body CC=17 (limit:15)
14-
🟡 CC filter CC=16 (limit:15)
15-
🟡 CC parse_email CC=26 (limit:15)
16-
🟡 CC _cpython_abis CC=15 (limit:15)
17-
🟡 CC cpython_tags CC=15 (limit:15)
18-
🟡 CC mac_platforms CC=15 (limit:15)
19-
🟡 CC collect_type_table CC=21 (limit:15)
20-
🟡 CC write_c_source_to_f CC=23 (limit:15)
21-
🟡 CC _generate_cpy_function_decl CC=30 (limit:15)
22-
🟡 CC _struct_ctx CC=24 (limit:15)
23-
🟡 CC recompile CC=19 (limit:15)
24-
🟡 CC _generate_cpy_function_decl CC=18 (limit:15)
4+
HEALTH[0]: ok
255

266
REFACTOR[1]:
27-
1. split 20 high-CC methods (CC>15)
7+
1. break 2 circular dependencies
288

29-
PIPELINES[8390]:
30-
[1] Src [handle_validate_syntax]: handle_validate_syntaxvalidate_syntax → _format_issue
9+
PIPELINES[173]:
10+
[1] Src [main]: mainprint
3111
PURITY: 100% pure
32-
[2] Src [handle_validate_imports]: handle_validate_importsvalidate_imports_format_issue
12+
[2] Src [main]: mainrun_validation_examplesprint
3313
PURITY: 100% pure
34-
[3] Src [handle_validate_security]: handle_validate_securityvalidate_security → _format_issue
14+
[3] Src [main]: mainprint
3515
PURITY: 100% pure
36-
[4] Src [handle_validate_code]: handle_validate_codevalidate_code → _run_validators
16+
[4] Src [main]: mainprint
3717
PURITY: 100% pure
38-
[5] Src [__init__]: __init__
18+
[5] Src [__init__]: __init__ → load_config
3919
PURITY: 100% pure
4020

4121
LAYERS:
4222
scripts/ CC̄=5.0 ←in:0 →out:0
43-
│ bump_version 78L 0C 2m CC=5 ←2
23+
│ bump_version 78L 0C 2m CC=5 ←0
4424
4525
mcp/ CC̄=4.1 ←in:0 →out:0
4626
│ _tools_vallm 485L 0C 12m CC=12 ←1
@@ -51,18 +31,18 @@ LAYERS:
5131
src/ CC̄=3.3 ←in:0 →out:0
5232
│ output_formatters 476L 0C 24m CC=10 ←2
5333
│ batch_processor 357L 1C 17m CC=12 ←0
54-
│ command_handlers 344L 0C 11m CC=6 ←0
55-
│ semantic 296L 1C 15m CC=4 ←0
34+
│ command_handlers 345L 0C 11m CC=8 ←0
35+
│ semantic 299L 1C 15m CC=4 ←0
5636
│ gitignore 272L 1C 10m CC=11 ←1
5737
│ regression 265L 1C 10m CC=7 ←0
5838
│ security 255L 1C 5m CC=9 ←0
5939
│ languages 227L 1C 6m CC=6 ←5
6040
│ scoring 218L 5C 8m CC=7 ←0
61-
│ semantic_cache 187L 1C 8m CC=5 ←2
41+
│ semantic_cache 187L 1C 8m CC=5 ←5
6242
│ complexity 183L 1C 4m CC=12 ←0
6343
│ lint 182L 1C 6m CC=9 ←0
64-
│ utils 155L 0C 4m CC=14 ←0
65-
│ python_imports 146L 1C 7m CC=14 ←0
44+
│ utils 155L 0C 4m CC=14 ←5
45+
│ python_imports 153L 1C 7m CC=14 ←0
6646
│ runner 144L 2C 4m CC=4 ←0
6747
│ logical 142L 1C 5m CC=6 ←0
6848
│ ast_compare 135L 0C 7m CC=4 ←2
@@ -81,16 +61,16 @@ LAYERS:
8161
│ hookspecs 33L 1C 3m CC=1 ←0
8262
│ wrapper 30L 1C 1m CC=2 ←0
8363
│ __init__ 25L 0C 0m CC=0.0 ←0
84-
│ base 21L 1C 1m CC=1 ←0
64+
│ base 21L 1C 1m CC=1 ←12
8565
│ __init__ 19L 0C 0m CC=0.0 ←0
8666
│ __main__ 5L 0C 0m CC=0.0 ←0
8767
│ __init__ 3L 0C 0m CC=0.0 ←0
8868
│ __init__ 1L 0C 0m CC=0.0 ←0
8969
│ __init__ 1L 0C 0m CC=0.0 ←0
9070
9171
./ CC̄=0.0 ←in:0 →out:0
72+
│ project.sh 35L 0C 0m CC=0.0 ←0
9273
│ mcp_server 28L 0C 0m CC=0.0 ←0
93-
│ project.sh 24L 0C 0m CC=0.0 ←0
9474
9575

9676
COUPLING: no cross-package imports detected

0 commit comments

Comments
 (0)