wiki/poweron/diagramm_komponenten.mermaid
2025-05-14 23:37:03 +02:00

181 lines
No EOL
6.8 KiB
Text

%% Mermaid component diagram for PowerOn architecture
%% Generated based on current code in frontend_agents and gateway
%% Each box uses <br> for line breaks and shows the path to the module
%% Subgraph titles use underscores
%% Connectors are lines only, no text
flowchart TD
%% --- FRONTEND ---
subgraph Frontend [Frontend_<br>frontend_agents/public/js/]
subgraph Workflow [Workflow_<br>frontend_agents/public/js/modules/]
workflowCoordination["workflowCoordination.js<br>js/modules/workflowCoordination.js"]
workflowUi["workflowUi.js<br>js/modules/workflowUi.js"]
workflowData["workflowData.js<br>js/modules/workflowData.js"]
workflow["workflow.js<br>js/modules/workflow.js"]
workflowUtils["workflowUtils.js<br>js/modules/workflowUtils.js"]
end
subgraph Administration [Administration_<br>frontend_agents/public/js/modules/]
users["users.js<br>js/modules/users.js"]
prompts["prompts.js<br>js/modules/prompts.js"]
mandates["mandates.js<br>js/modules/mandates.js"]
files["files.js<br>js/modules/files.js"]
end
subgraph Shared [Shared_<br>frontend_agents/public/js/shared/]
navigation["navigation.js<br>js/shared/navigation.js"]
globalState["globalState.js<br>js/shared/globalState.js"]
msftCalls["msftCalls.js<br>js/shared/msftCalls.js"]
config["config.js<br>js/shared/config.js"]
moduleLoader["moduleLoader.js<br>js/shared/moduleLoader.js"]
utils["utils.js<br>js/shared/utils.js"]
end
subgraph SharedTools_ [SharedTools_<br>frontend_agents/public/js/shared/]
apiCalls["apiCalls.js<br>js/shared/apiCalls.js"]
end
subgraph Shared_Form [Shared_Form<br>frontend_agents/public/js/shared/]
formGeneric["formGeneric.js<br>js/shared/formGeneric.js"]
end
subgraph Security [Security_<br>frontend_agents/public/js/security/]
login["login.js<br>js/security/login.js"]
register["register.js<br>js/security/register.js"]
auth["auth.js<br>js/security/auth.js"]
end
main["main.js<br>js/main.js"]
end
%% --- GATEWAY/BACKEND ---
subgraph Gateway [Gateway_<br>gateway/]
app["app.py<br>gateway/app.py"]
subgraph Workflow_Modules [Workflow_<br>gateway/modules/]
workflowManager["workflowManager.py<br>modules/workflowManager.py"]
workflowAgentsRegistry["workflowAgentsRegistry.py<br>modules/workflowAgentsRegistry.py"]
documentProcessor["documentProcessor.py<br>modules/documentProcessor.py"]
end
subgraph Shared_Modules [Shared_<br>gateway/modules/]
mimeUtils["mimeUtils.py<br>modules/mimeUtils.py"]
defAttributes["defAttributes.py<br>modules/defAttributes.py"]
configuration["configuration.py<br>modules/configuration.py"]
authPy["auth.py<br>modules/auth.py"]
end
subgraph Agents [Agents_<br>gateway/modules/]
agentAnalyst["agentAnalyst.py<br>modules/agentAnalyst.py"]
agentWebcrawler["agentWebcrawler.py<br>modules/agentWebcrawler.py"]
agentCoach["agentCoach.py<br>modules/agentCoach.py"]
agentCoder["agentCoder.py<br>modules/agentCoder.py"]
agentDocumentation["agentDocumentation.py<br>modules/agentDocumentation.py"]
agentEmail["agentEmail.py<br>modules/agentEmail.py"]
end
subgraph Interfaces [Interfaces_<br>gateway/modules/]
gatewayInterface["gatewayInterface.py<br>modules/gatewayInterface.py"]
gatewayModel["gatewayModel.py<br>modules/gatewayModel.py"]
lucydomInterface["lucydomInterface.py<br>modules/lucydomInterface.py"]
lucydomModel["lucydomModel.py<br>modules/lucydomModel.py"]
end
subgraph Connectors [Connectors_<br>gateway/connectors/]
connectorAiOpenai["connectorAiOpenai.py<br>connectors/connectorAiOpenai.py"]
connectorAiAnthropic["connectorAiAnthropic.py<br>connectors/connectorAiAnthropic.py"]
connectorDbJson["connectorDbJson.py<br>connectors/connectorDbJson.py"]
end
subgraph Routes [Routes_<br>gateway/routes/]
routeGeneral["routeGeneral.py<br>routes/routeGeneral.py"]
routeUsers["routeUsers.py<br>routes/routeUsers.py"]
routeFiles["routeFiles.py<br>routes/routeFiles.py"]
routeMsft["routeMsft.py<br>routes/routeMsft.py"]
routeWorkflows["routeWorkflows.py<br>routes/routeWorkflows.py"]
routeMandates["routeMandates.py<br>routes/routeMandates.py"]
routeAttributes["routeAttributes.py<br>routes/routeAttributes.py"]
routePrompts["routePrompts.py<br>routes/routePrompts.py"]
end
end
%% --- CONNECTIONS ---
main --> navigation
main --> globalState
main --> login
main --> register
main --> msftCalls
main --> config
navigation --> moduleLoader
moduleLoader --> workflow
moduleLoader --> users
moduleLoader --> prompts
moduleLoader --> mandates
moduleLoader --> files
users --> formGeneric
prompts --> formGeneric
mandates --> formGeneric
files --> formGeneric
formGeneric --> apiCalls
apiCalls -.-> app
app --> routeGeneral
app --> routeUsers
app --> routeFiles
app --> routeMsft
app --> routeWorkflows
app --> routeMandates
app --> routeAttributes
app --> routePrompts
workflow --> workflowCoordination
workflow --> workflowUi
workflow --> workflowData
workflow --> workflowUtils
workflowManager --> workflowAgentsRegistry
workflowManager --> documentProcessor
workflowAgentsRegistry --> agentAnalyst
workflowAgentsRegistry --> agentWebcrawler
workflowAgentsRegistry --> agentCoach
workflowAgentsRegistry --> agentCoder
workflowAgentsRegistry --> agentDocumentation
workflowAgentsRegistry --> agentEmail
%% --- BACKEND ROUTE TO MODULE CONNECTIONS ---
routeWorkflows --> lucydomInterface
routeWorkflows --> lucydomModel
routeWorkflows --> workflowManager
routeUsers --> gatewayInterface
routeUsers --> gatewayModel
routePrompts --> lucydomInterface
routePrompts --> lucydomModel
routeMsft --> lucydomInterface
routeMandates --> gatewayInterface
routeMandates --> gatewayModel
routeGeneral --> gatewayInterface
routeGeneral --> gatewayModel
routeFiles --> lucydomInterface
routeFiles --> lucydomModel
routeAttributes --> gatewayModel
routeAttributes --> lucydomModel
routeAttributes --> defAttributes
lucydomInterface --> lucydomModel
lucydomInterface --> configuration
lucydomInterface --> mimeUtils
gatewayInterface --> gatewayModel
%% --- FRONTEND SHARED TOOLS CONNECTIONS ---
main --> apiCalls
auth --> apiCalls
workflowUi --> apiCalls
workflowData --> apiCalls
workflow --> apiCalls
users --> apiCalls
prompts --> apiCalls
mandates --> apiCalls
files --> apiCalls
formGeneric --> apiCalls
navigation --> msftCalls
workflowUi --> msftCalls
workflowUi --> utils
workflow --> utils
files --> utils
msftCalls --> utils
users --> utils
prompts --> utils
mandates --> utils
formGeneric --> utils
main --> utils
%% --- BACKEND CONNECTORS ---
lucydomInterface --> connectorAiOpenai
lucydomInterface --> connectorAiAnthropic
lucydomInterface --> connectorDbJson
gatewayInterface --> connectorDbJson