Repository navigation
Expand file tree
/
Copy pathchart_script.py
More file actions
84 lines (69 loc) · 1.88 KB
/
Copy pathchart_script.py
File metadata and controls
84 lines (69 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Create a cleaner architecture diagram for Heinrich system with improved readability
diagram_code = """
flowchart TD
%% User Interface Layer
CLI[CLI Interface]
API[API Interface]
%% Security
SEC[Security Module]
%% Orchestration
AO[Agent Orchestrator]
%% LLM Integration
LLM[LLM Adapter]
%% TRIZ Pipeline - arranged horizontally for better flow
PP[Problem Parser]
CI[Contradiction ID]
PS[Principle Select]
EL[Effects Lookup]
CG[Concept Gen]
AP[Adaptation Plan]
RB[Report Builder]
%% Knowledge Base
KB[Knowledge Base<br/>Parameters & Principles<br/>Matrix & Effects]
%% Documentation
DOC[Multi-lang Docs]
%% Main Entry Flow
CLI --> SEC
API --> SEC
SEC --> AO
%% Core Processing Flow
AO --> PP
PP --> CI
CI --> PS
PS --> EL
EL --> CG
CG --> AP
AP --> RB
%% LLM Integration - dotted lines for clarity
AO -.-> LLM
PP -.-> LLM
CI -.-> LLM
CG -.-> LLM
AP -.-> LLM
%% Knowledge Access - different style
CI ===> KB
PS ===> KB
EL ===> KB
CG ===> KB
%% Output Generation
RB --> DOC
RB --> AO
%% Return Path
AO --> SEC
SEC --> CLI
SEC --> API
%% Styling for better visibility
classDef interface fill:#B3E5EC
classDef security fill:#FFCDD2
classDef core fill:#A5D6A7
classDef knowledge fill:#FFEB8A
classDef llm fill:#9FA8B0
class CLI,API interface
class SEC security
class AO,PP,CI,PS,EL,CG,AP,RB core
class KB,DOC knowledge
class LLM llm
"""
# Create the cleaner mermaid diagram
png_path, svg_path = create_mermaid_diagram(diagram_code, 'heinrich_architecture_clean.png', 'heinrich_architecture_clean.svg', width=1400, height=900)
print(f"Clean architecture diagram saved to: {png_path} and {svg_path}")