How yugantargrowth-cmyk/thalos works
THALOS is an agentic business operating system: a founder submits requests to an authenticated API, where intelligence routing and agent delegation can invoke permitted tools and business services. Separate product branches handle CRM, finance, knowledge ingestion/search, approvals, integrations, and durable background jobs. The README documents the main architecture and capabilities; source excerpts confirm selected call paths. Several route and worker details are unsampled, so their internal links are omitted where not evidenced.
Main entry points: app.ts Express app · supabase.ts Supabase database · ingestionQueue.ts Document ingestion · crmService.ts CRM lifecycle
Components 24
API and access
- API server
src/api/server.ts - Express app
src/api/app.ts - Request middleware
src/api/middleware/errorHandler.ts - Authentication
src/api/routes/auth.ts - Intelligence API
src/api/routes/intelligence.ts - Finance API
src/api/routes/finance.ts - Client API
src/api/routes/clients.ts - Knowledge API
src/api/routes/knowledge.ts - Integrations API
src/api/routes/integrations.ts
Agent intelligence
- Intent orchestrator
src/intelligence/orchestrator.ts - Agent runtime
src/intelligence/agentService.ts - LLM providers
src/intelligence/llmClient.ts - Tool dispatcher
src/execution/toolDispatcher.ts
Business operations
- CRM lifecycle
src/business/crmService.ts - Finance services
src/business/financeService.ts - Proposal PDFs
src/business/proposals/pdfBuilder.ts
Persistence and jobs
- Knowledge search
src/persistence/ragSearch.ts - Document ingestion
src/persistence/ingestionQueue.ts - Document repository
src/persistence/repositories/documentRepository.ts - Job worker
src/worker/worker.ts - Supabase database
src/lib/supabase.ts - Credential vault
src/lib/vault.ts - Audit log
src/lib/audit.ts
Other components
- Founder
Connections 29
- Founder → API server: sends requests
- API server → Express app: starts
src/api/server.ts - Express app → Request middleware: applies
src/api/app.ts - Express app → Authentication: mounts
src/api/app.ts - Express app → Intelligence API: routes requests
src/api/app.ts - Express app → Finance API: mounts
src/api/app.ts - Express app → Client API: mounts
src/api/app.ts - Express app → Knowledge API: mounts
src/api/app.ts - Express app → Integrations API: mounts
src/api/app.ts - Intelligence API → Intent orchestrator: delegates
src/api/routes/intelligence.ts - Intent orchestrator → Agent runtime: delegates tasks
src/intelligence/orchestrator.ts - Intent orchestrator → LLM providers: calls model
src/intelligence/orchestrator.ts - Agent runtime → LLM providers: requests completion
src/intelligence/agentService.ts - Agent runtime → Tool dispatcher: executes tools
src/intelligence/agentService.ts - Tool dispatcher → CRM lifecycle: dispatches tools
src/execution/toolDispatcher.ts - Finance API → Finance services: calls services
src/api/routes/finance.ts - Finance services → Proposal PDFs: builds documents
src/business/financeService.ts - Client API → CRM lifecycle: calls service
src/api/routes/clients.ts - Knowledge API → Knowledge search: serves search
- Job worker → Document ingestion: processes jobs
src/worker/worker.ts - Document ingestion → LLM providers: generates embeddings
src/persistence/ingestionQueue.ts - Document ingestion → Document repository: updates chunks
src/persistence/ingestionQueue.ts - Document ingestion → Supabase database: queues jobs
src/persistence/ingestionQueue.ts - CRM lifecycle → Supabase database: reads and writes
src/business/crmService.ts - CRM lifecycle → Audit log: records events
src/business/crmService.ts - Integrations API → Credential vault: encrypts credentials
src/api/routes/integrations.ts - Integrations API → Supabase database: stores integration data
src/api/routes/integrations.ts - Audit log → Supabase database: inserts audit records
src/lib/audit.ts - Document repository → Supabase database: stores documents
src/persistence/repositories/documentRepository.ts