From b159cafc9d926862e261746937b98becd0af2107 Mon Sep 17 00:00:00 2001 From: Archlens Bot Date: Wed, 17 Jun 2026 09:02:28 +0000 Subject: [PATCH] docs: update architecture diagrams --- docs/architecture/module.mmd | 2 +- docs/architecture/project.mmd | 18 +++++++++--------- docs/architecture/type/adapters.mmd | 1 - docs/architecture/type/domain.mmd | 3 +++ docs/architecture/type/overview.mmd | 4 +++- 5 files changed, 16 insertions(+), 12 deletions(-) diff --git a/docs/architecture/module.mmd b/docs/architecture/module.mmd index f53b810..56368a7 100644 --- a/docs/architecture/module.mmd +++ b/docs/architecture/module.mmd @@ -4,7 +4,7 @@ graph TD Adapters[Adapters] Application[Application] Adapters -->|24 deps| Domain + Presentation -->|1 dep| Application Application -->|2 deps| Domain Presentation -->|11 deps| Adapters - Presentation -->|1 dep| Application Presentation -->|1 dep| Domain \ No newline at end of file diff --git a/docs/architecture/project.mmd b/docs/architecture/project.mmd index 3143b37..1d1b97e 100644 --- a/docs/architecture/project.mmd +++ b/docs/architecture/project.mmd @@ -16,19 +16,19 @@ graph TD archlens_html[archlens-html] end archlens_application --> archlens_domain - archlens --> archlens_html - archlens --> archlens_walkdir - archlens --> archlens_domain - archlens --> archlens_stdout_writer archlens --> archlens_cargo_workspace archlens --> archlens_application - archlens --> archlens_toml_config - archlens --> archlens_d2 - archlens --> archlens_mermaid + archlens --> archlens_walkdir archlens --> archlens_file_writer - archlens --> archlens_tree_sitter - archlens --> archlens_ascii + archlens --> archlens_html + archlens --> archlens_stdout_writer archlens --> archlens_python_project + archlens --> archlens_d2 + archlens --> archlens_ascii + archlens --> archlens_tree_sitter + archlens --> archlens_domain + archlens --> archlens_toml_config + archlens --> archlens_mermaid archlens_tree_sitter --> archlens_domain archlens_walkdir --> archlens_domain archlens_mermaid --> archlens_domain diff --git a/docs/architecture/type/adapters.mmd b/docs/architecture/type/adapters.mmd index 24fcb03..6d019be 100644 --- a/docs/architecture/type/adapters.mmd +++ b/docs/architecture/type/adapters.mmd @@ -60,7 +60,6 @@ classDiagram PyprojectToml : tool ToolSection WalkdirDiscovery : +new() -] Self WalkdirDiscovery : -detect_language(path Path) -] Option[Language] - WalkdirDiscovery : -is_test_file(path Path, language Language) -] bool WalkdirDiscovery : -is_excluded(path Path, root Path, excludes [String]) -] bool TreeSitterAnalyzer : rust RustExtractor TreeSitterAnalyzer : python PythonExtractor diff --git a/docs/architecture/type/domain.mmd b/docs/architecture/type/domain.mmd index 2d0148f..ca88540 100644 --- a/docs/architecture/type/domain.mmd +++ b/docs/architecture/type/domain.mmd @@ -54,6 +54,7 @@ classDiagram ModuleName : +capitalize(s str) -] String ModuleName : +as_str() -] str Language : +name() -] static str + Language : +is_test_file(path Path) -] bool FilePath : +new(value str) -] Result[Self, DomainError] FilePath : +as_str() -] str RuleViolation : source_module String @@ -88,6 +89,7 @@ classDiagram AnalysisConfig : +include_tests() -] bool AnalysisConfig : +with_changed_files(files HashSet[String]) -] Self AnalysisConfig : +changed_files() -] Option[HashSet[String]] + AnalysisConfig : +is_standard_excluded(name str) -] bool AnalysisResult : elements Vec AnalysisResult : relationships Vec AnalysisResult : warnings Vec @@ -157,6 +159,7 @@ classDiagram CodeGraph : +qualify() -] CodeGraph CodeGraph : +cross_module_deps_for(module ModuleName) -] Vec[(ModuleName, usize)] CodeGraph : +subgraph_by_module(module ModuleName) -] CodeGraph + CodeGraph : +merge_project_edges(project_graph CodeGraph) CodeGraph : +module_edges() -] HashMap[(String, String), usize] SourceFile --> FilePath SourceFile --> Language diff --git a/docs/architecture/type/overview.mmd b/docs/architecture/type/overview.mmd index c3ea537..47a688d 100644 --- a/docs/architecture/type/overview.mmd +++ b/docs/architecture/type/overview.mmd @@ -97,7 +97,6 @@ classDiagram PyprojectToml : tool ToolSection WalkdirDiscovery : +new() -] Self WalkdirDiscovery : -detect_language(path Path) -] Option[Language] - WalkdirDiscovery : -is_test_file(path Path, language Language) -] bool WalkdirDiscovery : -is_excluded(path Path, root Path, excludes [String]) -] bool TreeSitterAnalyzer : rust RustExtractor TreeSitterAnalyzer : python PythonExtractor @@ -180,6 +179,7 @@ classDiagram ModuleName : +capitalize(s str) -] String ModuleName : +as_str() -] str Language : +name() -] static str + Language : +is_test_file(path Path) -] bool FilePath : +new(value str) -] Result[Self, DomainError] FilePath : +as_str() -] str RuleViolation : source_module String @@ -214,6 +214,7 @@ classDiagram AnalysisConfig : +include_tests() -] bool AnalysisConfig : +with_changed_files(files HashSet[String]) -] Self AnalysisConfig : +changed_files() -] Option[HashSet[String]] + AnalysisConfig : +is_standard_excluded(name str) -] bool AnalysisResult : elements Vec AnalysisResult : relationships Vec AnalysisResult : warnings Vec @@ -283,6 +284,7 @@ classDiagram CodeGraph : +qualify() -] CodeGraph CodeGraph : +cross_module_deps_for(module ModuleName) -] Vec[(ModuleName, usize)] CodeGraph : +subgraph_by_module(module ModuleName) -] CodeGraph + CodeGraph : +merge_project_edges(project_graph CodeGraph) CodeGraph : +module_edges() -] HashMap[(String, String), usize] Cli : command Option Cli : path PathBuf