How 07balajee/adaptix works
The repository contains two related but distinct products: a multi-tenant academic ERP and a prototype that uses agents to propose, validate, and promote ERP changes. The ERP workflow runs from authenticated user interaction through domain pages and API routes to PostgreSQL. The prototype accepts a change request, streams an agent pipeline, and offers separate human-triggered promotion, rollback, and conflict resolution. Edges reflect shown imports, calls, or route registrations; uninspected frontend and backend details are grouped conservatively.
Main entry points: agent.py Pipeline orchestrator · server.py Pipeline web API · llm.py Groq LLM client · schema_validator.py Output schema checks
Components 29
ERP interface
- ERP app router
core-erp/frontend/src/App.jsx - ERP authentication
core-erp/frontend/src/context/AuthContext.jsx - ERP domain pages
core-erp/frontend/src/pages - Custom modules UI
core-erp/frontend/src/pages/CustomModules.jsx - ERP API client
core-erp/frontend/src/lib/api.js
ERP services
- ERP API server
core-erp/backend/src/server.js - Login routes
core-erp/backend/src/routes/auth.js - Domain routes
core-erp/backend/src/routes - Extension routes
core-erp/backend/src/routes/ext.js - Auth middleware
core-erp/backend/src/middleware/auth.js - ERP database pool
core-erp/backend/src/db.js
Agent interface
- Pipeline web API
erp-agent-prototype/webapp/server.py - Pipeline UI
erp-agent-prototype/webapp/static/app.js
Agent pipeline
- Pipeline orchestrator
erp-agent-prototype/agents/orchestrator/agent.py - Context agent
erp-agent-prototype/agents/context/agent.py - Planner agent
erp-agent-prototype/agents/planner/agent.py - Composer agent
erp-agent-prototype/agents/composer/agent.py - Compiler agent
erp-agent-prototype/agents/compiler/agent.py - Validator agent
erp-agent-prototype/agents/validator/agent.py - Conflict resolver
erp-agent-prototype/agents/conflict_resolver/agent.py - Groq LLM client
erp-agent-prototype/agents/shared/llm.py - Output schema checks
erp-agent-prototype/agents/shared/schema_validator.py
Agent operations
- Agent database access
erp-agent-prototype/agents/shared/db.py - Change promoter
erp-agent-prototype/agents/promoter/promote.py - Schema migrations
erp-agent-prototype/agents/shared/migrations.py - Change rollback
erp-agent-prototype/agents/rollback/rollback.py
Other components
- ERP user
- Change requester
- Live ERP database
Connections 38
- ERP user → ERP app router: uses
core-erp/frontend/src/App.jsx - ERP app router → ERP authentication: checks session
core-erp/frontend/src/App.jsx - ERP app router → ERP domain pages: routes to
core-erp/frontend/src/App.jsx - ERP app router → Custom modules UI: routes to
core-erp/frontend/src/App.jsx - ERP authentication → ERP API client: calls login
core-erp/frontend/src/context/AuthContext.jsx - ERP domain pages → ERP API client: requests data
core-erp/frontend/src/pages/Library.jsx - ERP API server → Login routes: mounts routes
core-erp/backend/src/server.js - ERP API server → Domain routes: mounts routes
core-erp/backend/src/server.js - ERP API server → Extension routes: mounts routes
core-erp/backend/src/server.js - Login routes → ERP database pool: queries
core-erp/backend/src/routes/auth.js - Domain routes → ERP database pool: queries
core-erp/backend/src/routes/auth.js - Extension routes → ERP database pool: queries
core-erp/backend/src/routes/ext.js - Change requester → Pipeline UI: submits request
- Pipeline UI → Pipeline web API: streams progress
- Pipeline web API → Pipeline orchestrator: streams pipeline
erp-agent-prototype/webapp/server.py - Pipeline orchestrator → Context agent: runs context
erp-agent-prototype/agents/orchestrator/agent.py - Pipeline orchestrator → Planner agent: runs planning
erp-agent-prototype/agents/orchestrator/agent.py - Pipeline orchestrator → Composer agent: runs composition
erp-agent-prototype/agents/orchestrator/agent.py - Pipeline orchestrator → Compiler agent: runs compilation
erp-agent-prototype/agents/orchestrator/agent.py - Pipeline orchestrator → Validator agent: runs validation
erp-agent-prototype/agents/orchestrator/agent.py - Context agent → Agent database access: reads context
erp-agent-prototype/agents/context/agent.py - Context agent → Output schema checks: validates output
erp-agent-prototype/agents/context/agent.py - Context agent → Groq LLM client: requests inference
erp-agent-prototype/agents/context/agent.py - Planner agent → Groq LLM client: requests inference
erp-agent-prototype/agents/planner/agent.py - Planner agent → Output schema checks: validates output
erp-agent-prototype/agents/planner/agent.py - Composer agent → Groq LLM client: requests inference
erp-agent-prototype/agents/composer/agent.py - Composer agent → Output schema checks: validates output
erp-agent-prototype/agents/composer/agent.py - Compiler agent → Groq LLM client: requests inference
erp-agent-prototype/agents/compiler/agent.py - Compiler agent → Output schema checks: validates output
erp-agent-prototype/agents/compiler/agent.py - Validator agent → Output schema checks: validates output
erp-agent-prototype/agents/validator/agent.py - Validator agent → Groq LLM client: requests inference
- Pipeline web API → Change promoter: promotes approved changes
erp-agent-prototype/webapp/server.py - Pipeline web API → Change rollback: requests rollback
erp-agent-prototype/webapp/server.py - Pipeline web API → Conflict resolver: requests resolution
erp-agent-prototype/webapp/server.py - Change promoter → Agent database access: updates live data
erp-agent-prototype/agents/promoter/promote.py - Change promoter → Schema migrations: applies migrations
erp-agent-prototype/agents/promoter/promote.py - Change rollback → Agent database access: reads live state
erp-agent-prototype/agents/rollback/rollback.py - Agent database access → Live ERP database: connects to