← back to Designer Wallcoverings

DW-Agents/dw-agents/THEME_FILES_REFERENCE.md

259 lines

# Theme-Related Files - Quick Reference

## Core Theme Files (Infrastructure)

### MUST UPDATE - Foundation Files
```
/root/DW-Agents/shared-ui-components.js
├─ BRAND_COLORS export
├─ getUniversalHeader() function
└─ getAgentEmoji() function
```

```
/root/DW-Agents/agent-ui-manager/ui-manager-agent.ts
├─ DESIGN_SYSTEM object (line 38-107)
├─ Theme customization endpoints
└─ Theme distribution API
```

```
/root/DW-Agents/master-hub.ts
├─ Agent color assignments (line 33-100+)
├─ Agent registry with colors
└─ Color mapping constants
```

---

## Agent Files Using Theme Components

### Core Hub (2 files)
- `/root/DW-Agents/master-hub.ts` - Uses getUniversalHeader
- `/root/DW-Agents/agents-viewer.ts` - Port 9111, central viewer

### Operational Agents in agent-* Directories (18 agents)

**Accounting**
- `/root/DW-Agents/agent-accounting/accounting-agent.ts` (Port 9885)

**Completed Tasks**
- `/root/DW-Agents/agent-completed-tasks/completed-tasks-agent.ts`

**Digital Samples**
- `/root/DW-Agents/agent-digital-samples/digital-samples-agent.ts` (Port 9879)

**In-Parallel**
- `/root/DW-Agents/agent-in-parallel/in-parallel-agent.ts`

**Legal Team**
- `/root/DW-Agents/agent-legal-team/legal-agent.ts` (Port 9878)

**Log Monitor**
- `/root/DW-Agents/agent-log-monitor/log-monitor-agent.ts` (Port 7239)

**Marketing**
- `/root/DW-Agents/agent-marketing/marketing-agent.ts` (Port 9881)

**Needs Attention**
- `/root/DW-Agents/agent-needs-attention/needs-attention-agent.ts`

**New Client Signup**
- `/root/DW-Agents/agent-new-client-signup/new-client-signup-agent.ts`

**Parallel Processes**
- `/root/DW-Agents/agent-parallel-processes/parallel-processes-agent.ts`

**Purchasing Office**
- `/root/DW-Agents/agent-purchasing-office/purchasing-office-agent.ts` (Port 9880)

**Server Uptime**
- `/root/DW-Agents/server-uptime-agent.ts` (914 lines)

**Shopify Store**
- `/root/DW-Agents/agent-shopify-store/shopify-store-agent.ts` (Port 7238)

**Task Orchestrator**
- `/root/DW-Agents/agent-task-orchestrator/task-orchestrator-agent.ts` (Port 9900)

**Today's Highlights**
- `/root/DW-Agents/agent-todays-highlights/todays-highlights-agent.ts`

**Trend Research**
- `/root/DW-Agents/agent-trend-research/trend-research-agent.ts` (Port 9883)

**Zendesk Chat**
- `/root/DW-Agents/agent-zendesk-chat/zendesk-chat-agent.ts` (Port 9884)

---

## New Executive Dashboard Agents (No theme setup yet)

```
/root/DW-Agents/agent-executive-ceo/ceo-dashboard-agent.ts (21993 lines)
/root/DW-Agents/agent-executive-cfo/cfo-dashboard-agent.ts (9970 lines)
/root/DW-Agents/agent-executive-coo/coo-dashboard-agent.ts (6966 lines)
/root/DW-Agents/agent-executive-vp-ops/vp-ops-dashboard-agent.ts (7102 lines)
```

---

## Specialized Agents (Theme-aware)

```
/root/DW-Agents/agent-security/security-agent.ts (24013 lines)
/root/DW-Agents/agent-skills-manager/skills-manager-agent.ts (1242 lines)
/root/DW-Agents/agent-restart-analyzer/restart-analyzer-agent.ts (13844 lines)
/root/DW-Agents/agent-ui-manager/ui-manager-agent.ts (1013 lines)
```

---

## Configuration & Documentation

### Configuration
```
/root/DW-Agents/ecosystem.config.js - PM2 config (opportunity for theme env vars)
/root/DW-Agents/package.json - Dependencies
```

### Documentation
```
/root/DW-Agents/README.md - Main project docs
/root/DW-Agents/AGENTS_INDEX.md - Agent registry
/root/DW-Agents/agent-ui-manager/README.md - UI Manager docs
/root/DW-Agents/agent-ui-manager/MEMORY.md - UI Manager memory/learnings
```

### Memory Files (Theme preferences storage)
```
/root/DW-Agents/agent-accounting/MEMORY.md
/root/DW-Agents/agent-completed-tasks/MEMORY.md
/root/DW-Agents/agent-digital-samples/MEMORY.md
/root/DW-Agents/agent-in-parallel/MEMORY.md
/root/DW-Agents/agent-legal-team/MEMORY.md
/root/DW-Agents/agent-log-monitor/MEMORY.md
/root/DW-Agents/agent-marketing/MEMORY.md
/root/DW-Agents/agent-needs-attention/MEMORY.md
/root/DW-Agents/agent-new-client-signup/MEMORY.md
/root/DW-Agents/agent-parallel-processes/MEMORY.md
/root/DW-Agents/agent-purchasing-office/MEMORY.md
/root/DW-Agents/agent-server-uptime/MEMORY.md
/root/DW-Agents/agent-shopify-store/MEMORY.md
/root/DW-Agents/agent-task-orchestrator/MEMORY.md
/root/DW-Agents/agent-todays-highlights/MEMORY.md
/root/DW-Agents/agent-trend-research/MEMORY.md
/root/DW-Agents/agent-ui-manager/MEMORY.md
/root/DW-Agents/agent-zendesk-chat/MEMORY.md
```

---

## Shared Infrastructure Files

```
/root/DW-Agents/shared-auth.ts - Authentication/SSO
/root/DW-Agents/shared-memory-system.ts - Agent memory persistence
/root/DW-Agents/shared-task-reporter.ts - Task reporting utilities
```

---

## Current Brand Colors (BRAND_COLORS)

```javascript
{
  primary: '#667eea',      // Purple - primary gradient
  secondary: '#764ba2',    // Purple - secondary gradient  
  accent: '#4facfe',       // Cyan - buttons, accents
  success: '#4CAF50',      // Green - success states
  warning: '#FFA500',      // Orange - warnings
  danger: '#f44336',       // Red - errors, critical
  dark: '#2c3e50',         // Dark gray - text, backgrounds
  light: '#ecf0f1'         // Light gray - light backgrounds
}
```

---

## Current Design System (DESIGN_SYSTEM)

```javascript
{
  colors: { /* 8 colors */ },
  fonts: {
    primary: "-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
    mono: "'Monaco', 'Courier New', monospace"
  },
  spacing: {
    base: '20px',
    small: '10px',
    large: '40px'
  },
  borderRadius: {
    small: '5px',
    medium: '8px',
    large: '10px'
  },
  shadows: {
    small: '0 2px 5px rgba(0,0,0,0.05)',
    medium: '0 2px 10px rgba(0,0,0,0.1)',
    large: '0 10px 40px rgba(0,0,0,0.3)'
  },
  actionLinkStyles: { /* button styles */ }
}
```

---

## Agent-Specific Colors (from master-hub.ts)

```javascript
Legal Team:              '#dc143c'  // Crimson
Digital Samples:         '#4facfe'  // Cyan
Purchasing:              '#667eea'  // Primary Purple
Marketing:               '#f093fb'  // Pink
Accounting:              '#43e97b'  // Green
Zendesk Chat:            '#17a2b8'  // Teal
Trend Research:          (not defined)
```

---

## Files Needing Theme Updates - Priority Order

### Priority 1: Foundation (Must update first)
1. `/root/DW-Agents/shared-ui-components.js` - Export theme interface
2. `/root/DW-Agents/agent-ui-manager/ui-manager-agent.ts` - Add theme API endpoints
3. `/root/DW-Agents/master-hub.ts` - Centralize color mappings

### Priority 2: Core Agents (Update next)
- All 18 operational agents listed above
- Focus on: accounting, marketing, purchasing, zendesk, legal, digital-samples

### Priority 3: New Dashboards
- 4 executive dashboard agents (CEO, CFO, COO, VP-Ops)

### Priority 4: Supporting Systems
- Agents viewer (agents-viewer.ts)
- Security agent
- Skills manager
- Restart analyzer

### Priority 5: Configuration
- ecosystem.config.js - Add theme env variables
- AGENTS_INDEX.md - Document themes
- MEMORY.md files - Store theme preferences

---

## Total Files Count

- Core theme files: 3
- Agent files needing updates: 22+
- Supporting files: 5+
- Documentation files: 12+
- Configuration: 3
- **TOTAL: 45+ files**