Skip to content

Commit 43b0324

Browse files
refactor(docs): code analysis engine
stats: lines: "+1080/-465 (net +615)" files: 14 complexity: "Stable complexity"
1 parent 26b83bf commit 43b0324

19 files changed

+1103
-468
lines changed

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,26 @@ 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.57] - 2026-03-25
128+
129+
### Docs
130+
- Update docs/README.md
131+
- Update project/README.md
132+
- Update project/context.md
133+
134+
### Other
135+
- Update project/analysis.toon.yaml
136+
- Update project/calls.mmd
137+
- Update project/calls.png
138+
- Update project/compact_flow.mmd
139+
- Update project/compact_flow.png
140+
- Update project/duplication.toon.toon
141+
- Update project/evolution.toon.yaml
142+
- Update project/flow.mmd
143+
- Update project/flow.png
144+
- Update project/index.html
145+
- ... and 2 more files
146+
127147
## [0.1.56] - 2026-03-25
128148

129149
### Docs

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.56
1+
0.1.57

docs/README.md

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

project/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ code2llm ./ -f yaml --separate-orphans
332332

333333
**Generated by**: `code2llm ./ -f all --readme`
334334
**Analysis Date**: 2026-03-25
335-
**Total Functions**: 12147
335+
**Total Functions**: 12152
336336
**Total Classes**: 3039
337337
**Modules**: 1425
338338

project/analysis.toon.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ format: toon-v2-yaml
22
timestamp: '2026-03-25'
33
header:
44
files: 45
5-
lines: 5699
6-
functions: 12147
7-
avg_cc: 3.6
5+
lines: 5763
6+
functions: 12152
7+
avg_cc: 3.5
88
critical_count: 4
99
duplicates: 0
1010
cycles: 0
@@ -23,25 +23,25 @@ health:
2323
message: send CC=19 (limit:15)
2424
- severity: yellow
2525
code: CC
26-
message: build_digest_header CC=19 (limit:15)
26+
message: resolve_redirects CC=15 (limit:15)
2727
- severity: yellow
2828
code: CC
29-
message: resolve_redirects CC=15 (limit:15)
29+
message: build_digest_header CC=19 (limit:15)
3030
- severity: yellow
3131
code: CC
32-
message: _encode_files CC=21 (limit:15)
32+
message: super_len CC=18 (limit:15)
3333
- severity: yellow
3434
code: CC
35-
message: prepare_url CC=17 (limit:15)
35+
message: should_bypass_proxies CC=17 (limit:15)
3636
- severity: yellow
3737
code: CC
38-
message: prepare_body CC=17 (limit:15)
38+
message: _encode_files CC=21 (limit:15)
3939
- severity: yellow
4040
code: CC
41-
message: super_len CC=18 (limit:15)
41+
message: prepare_url CC=17 (limit:15)
4242
- severity: yellow
4343
code: CC
44-
message: should_bypass_proxies CC=17 (limit:15)
44+
message: prepare_body CC=17 (limit:15)
4545
- severity: yellow
4646
code: CC
4747
message: filter CC=16 (limit:15)
@@ -57,6 +57,9 @@ health:
5757
- severity: yellow
5858
code: CC
5959
message: mac_platforms CC=15 (limit:15)
60+
- severity: yellow
61+
code: CC
62+
message: complete_struct_or_union CC=18 (limit:15)
6063
- severity: yellow
6164
code: CC
6265
message: collect_type_table CC=21 (limit:15)
@@ -69,9 +72,6 @@ health:
6972
- severity: yellow
7073
code: CC
7174
message: _struct_ctx CC=24 (limit:15)
72-
- severity: yellow
73-
code: CC
74-
message: recompile CC=19 (limit:15)
7575
refactor:
7676
steps:
7777
- action: split_methods

project/calls.mmd

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

project/calls.png

321 KB
Loading

project/compact_flow.mmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ flowchart TD
1616
mcp_server["mcp.server<br/>13 funcs"]
1717
publish_env_lib["publish-env.lib<br/>11803 funcs"]
1818
scripts_bump_version["scripts.bump_version<br/>2 funcs"]
19-
src_vallm["src.vallm<br/>183 funcs"]
19+
src_vallm["src.vallm<br/>188 funcs"]
2020
src_vallm ==>|98| publish_env_lib
2121
examples_utils ==>|81| publish_env_lib
2222
examples_11_claude_code_autonomous ==>|76| publish_env_lib
@@ -42,8 +42,8 @@ flowchart TD
4242
examples_10_mcp_ollama_demo -->|2| examples_utils
4343
examples_04_graph_analysis -->|1| src_vallm
4444
examples_04_graph_analysis -->|1| examples_utils
45-
examples_11_claude_code_autonomous -->|1| examples_utils
4645
examples_12_ollama_simple_demo -->|1| examples_utils
46+
examples_11_claude_code_autonomous -->|1| examples_utils
4747
examples_01_basic_validation -->|1| publish_env_lib
4848
examples_03_security_check -->|1| examples_utils
4949
examples_02_ast_comparison -->|1| examples_utils

project/compact_flow.png

5 Bytes
Loading

project/context.md

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
- **Primary Language**: python
77
- **Languages**: python: 1410, shell: 9, cpp: 4, javascript: 2
88
- **Analysis Mode**: static
9-
- **Total Functions**: 12147
9+
- **Total Functions**: 12152
1010
- **Total Classes**: 3039
1111
- **Modules**: 1425
12-
- **Entry Points**: 10379
12+
- **Entry Points**: 10381
1313

1414
## Architecture by Module
1515

@@ -531,19 +531,25 @@ This is a partial replacement of the standard library's
531531
> Process input string and push block tokens into `outTokens`.
532532
- **Output to**: StateBlock, self.tokenize
533533

534-
### publish-env.lib.python3.13.site-packages.rfc3986.parseresult.ParseResult.encode
535-
> Convert to an instance of ParseResultBytes.
536-
- **Output to**: dict, ParseResultBytes, zip, publish-env.lib.python3.13.site-packages.docutils.nodes.Element.hasattr, attr.encode
534+
### publish-env.lib.python3.13.site-packages.rfc3986.iri.IRIReference.encode
535+
> Encode an IRIReference into a URIReference instance.
536+
537+
If the ``idna`` module is installed or the ``r
538+
- **Output to**: uri.URIReference, None.join, exceptions.MissingDependencyError, any, str
537539

538540
### publish-env.lib.python3.13.site-packages.markdown_it.parser_inline.ParserInline.parse
539541
> Process input string and push inline tokens into `tokens`
540542
- **Output to**: StateInline, self.tokenize, self.ruler2.getRules, publish-env.lib.python3.13.site-packages.rich.console.Console.rule
541543

542-
### publish-env.lib.python3.13.site-packages.rfc3986.iri.IRIReference.encode
543-
> Encode an IRIReference into a URIReference instance.
544+
### publish-env.lib.python3.13.site-packages.rfc3986.parseresult.ParseResult.encode
545+
> Convert to an instance of ParseResultBytes.
546+
- **Output to**: dict, ParseResultBytes, zip, publish-env.lib.python3.13.site-packages.docutils.nodes.Element.hasattr, attr.encode
544547

545-
If the ``idna`` module is installed or the ``r
546-
- **Output to**: uri.URIReference, None.join, exceptions.MissingDependencyError, any, str
548+
### publish-env.lib.python3.13.site-packages.markdown_it._punycode.encode
549+
- **Output to**: None.decode, codecs.encode
550+
551+
### publish-env.lib.python3.13.site-packages.markdown_it._punycode.decode
552+
- **Output to**: codecs.decode
547553

548554
### publish-env.lib.python3.13.site-packages.markdown_it.main.MarkdownIt.parse
549555
> Parse the source string to a token stream
@@ -565,32 +571,29 @@ If the ``idna`` module is installed or the ``r
565571
This validator can prohibit more than really needed
566572
- **Output to**: normalize_url.validateLink
567573

568-
### publish-env.lib.python3.13.site-packages.markdown_it._punycode.encode
569-
- **Output to**: None.decode, codecs.encode
570-
571-
### publish-env.lib.python3.13.site-packages.markdown_it._punycode.decode
572-
- **Output to**: codecs.decode
573-
574574
### publish-env.lib.python3.13.site-packages.markdown_it.token.convert_attrs
575575
> Convert Token.attrs set as ``None`` or ``[[key, value], ...]`` to a dict.
576576
577577
This improves compatibili
578578
- **Output to**: isinstance, dict
579579

580-
### publish-env.lib.python3.13.site-packages.requests.models.RequestEncodingMixin._encode_params
581-
> Encode parameters in a piece of data.
580+
### publish-env.lib.python3.13.site-packages.requests.utils.parse_list_header
581+
> Parse lists as described by RFC 2068 Section 2.
582582
583-
Will successfully encode parameters when passed as a dict or
584-
- **Output to**: isinstance, publish-env.lib.python3.13.site-packages.docutils.nodes.Element.hasattr, publish-env.lib.python3.13.site-packages.docutils.nodes.Element.hasattr, publish-env.lib.python3.13.site-packages.requests.utils.to_key_val_list, publish-env.lib.python3.13.site-packages.requests_toolbelt.utils.formdata.urlencode
583+
In particular, parse comma-separated lists where th
584+
- **Output to**: _parse_list_header, result.append, publish-env.lib.python3.13.site-packages.requests.utils.unquote_header_value
585585

586-
### publish-env.lib.python3.13.site-packages.requests.models.RequestEncodingMixin._encode_files
587-
> Build the body for a multipart/form-data request.
586+
### publish-env.lib.python3.13.site-packages.requests.utils.parse_dict_header
587+
> Parse lists of key, value pairs as described by RFC 2068 Section 2 and
588+
convert them into a python di
589+
- **Output to**: _parse_list_header, item.split, publish-env.lib.python3.13.site-packages.requests.utils.unquote_header_value
588590

589-
Will successfully encode files when passed as a d
590-
- **Output to**: publish-env.lib.python3.13.site-packages.requests.utils.to_key_val_list, publish-env.lib.python3.13.site-packages.requests.utils.to_key_val_list, publish-env.lib.python3.13.site-packages.urllib3.filepost.encode_multipart_formdata, ValueError, isinstance
591+
### publish-env.lib.python3.13.site-packages.requests.utils._parse_content_type_header
592+
> Returns content type and parameters from given header
591593
592-
### publish-env.lib.python3.13.site-packages.requests.models.PreparedRequest._get_idna_encoded_host
593-
- **Output to**: None.decode, idna.encode
594+
:param header: string
595+
:return: tuple containi
596+
- **Output to**: header.split, None.strip, param.strip, param.find, None.strip
594597

595598
## Behavioral Patterns
596599

0 commit comments

Comments
 (0)