%% Mermaid component diagram for PowerOn architecture
%% Generated based on current code in frontend_agents and gateway
%% Each box uses
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_
frontend_agents/public/js/]
subgraph Workflow [Workflow_
frontend_agents/public/js/modules/]
workflowCoordination["workflowCoordination.js
js/modules/workflowCoordination.js"]
workflowUi["workflowUi.js
js/modules/workflowUi.js"]
workflowData["workflowData.js
js/modules/workflowData.js"]
workflow["workflow.js
js/modules/workflow.js"]
workflowUtils["workflowUtils.js
js/modules/workflowUtils.js"]
end
subgraph Administration [Administration_
frontend_agents/public/js/modules/]
users["users.js
js/modules/users.js"]
prompts["prompts.js
js/modules/prompts.js"]
mandates["mandates.js
js/modules/mandates.js"]
files["files.js
js/modules/files.js"]
end
subgraph Shared [Shared_
frontend_agents/public/js/shared/]
navigation["navigation.js
js/shared/navigation.js"]
globalState["globalState.js
js/shared/globalState.js"]
msftCalls["msftCalls.js
js/shared/msftCalls.js"]
config["config.js
js/shared/config.js"]
moduleLoader["moduleLoader.js
js/shared/moduleLoader.js"]
utils["utils.js
js/shared/utils.js"]
end
subgraph SharedTools_ [SharedTools_
frontend_agents/public/js/shared/]
apiCalls["apiCalls.js
js/shared/apiCalls.js"]
end
subgraph Shared_Form [Shared_Form
frontend_agents/public/js/shared/]
formGeneric["formGeneric.js
js/shared/formGeneric.js"]
end
subgraph Security [Security_
frontend_agents/public/js/security/]
login["login.js
js/security/login.js"]
register["register.js
js/security/register.js"]
auth["auth.js
js/security/auth.js"]
end
main["main.js
js/main.js"]
end
%% --- GATEWAY/BACKEND ---
subgraph Gateway [Gateway_
gateway/]
app["app.py
gateway/app.py"]
subgraph Workflow_Modules [Workflow_
gateway/modules/]
workflowManager["workflowManager.py
modules/workflowManager.py"]
workflowAgentsRegistry["workflowAgentsRegistry.py
modules/workflowAgentsRegistry.py"]
documentProcessor["documentProcessor.py
modules/documentProcessor.py"]
end
subgraph Shared_Modules [Shared_
gateway/modules/]
mimeUtils["mimeUtils.py
modules/mimeUtils.py"]
defAttributes["defAttributes.py
modules/defAttributes.py"]
configuration["configuration.py
modules/configuration.py"]
authPy["auth.py
modules/auth.py"]
end
subgraph Agents [Agents_
gateway/modules/]
agentAnalyst["agentAnalyst.py
modules/agentAnalyst.py"]
agentWebcrawler["agentWebcrawler.py
modules/agentWebcrawler.py"]
agentCoach["agentCoach.py
modules/agentCoach.py"]
agentCoder["agentCoder.py
modules/agentCoder.py"]
agentDocumentation["agentDocumentation.py
modules/agentDocumentation.py"]
agentEmail["agentEmail.py
modules/agentEmail.py"]
end
subgraph Interfaces [Interfaces_
gateway/modules/]
gatewayInterface["gatewayInterface.py
modules/gatewayInterface.py"]
gatewayModel["gatewayModel.py
modules/gatewayModel.py"]
lucydomInterface["lucydomInterface.py
modules/lucydomInterface.py"]
lucydomModel["lucydomModel.py
modules/lucydomModel.py"]
end
subgraph Connectors [Connectors_
gateway/connectors/]
connectorAiOpenai["connectorAiOpenai.py
connectors/connectorAiOpenai.py"]
connectorAiAnthropic["connectorAiAnthropic.py
connectors/connectorAiAnthropic.py"]
connectorDbJson["connectorDbJson.py
connectors/connectorDbJson.py"]
end
subgraph Routes [Routes_
gateway/routes/]
routeGeneral["routeGeneral.py
routes/routeGeneral.py"]
routeUsers["routeUsers.py
routes/routeUsers.py"]
routeFiles["routeFiles.py
routes/routeFiles.py"]
routeMsft["routeMsft.py
routes/routeMsft.py"]
routeWorkflows["routeWorkflows.py
routes/routeWorkflows.py"]
routeMandates["routeMandates.py
routes/routeMandates.py"]
routeAttributes["routeAttributes.py
routes/routeAttributes.py"]
routePrompts["routePrompts.py
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