← Back to Kontasks
Files over 400 lines in konui/konsole
List of source files exceeding 400 lines of code
Output
Files Over 400 Lines
Found 12 files exceeding 400 lines in konui and konsole
konui/src/ (9 files)
| router.ts | 2,341 | 🔴 Largest - needs splitting |
| kontask-templates.ts | 769 | Template renderers |
| kontask-db.ts | 765 | Kontask database |
| streaming.ts | 530 | SSE streaming |
| console-history.ts | 480 | Just created (fix) |
| dashboard-console.ts | 473 | Recently refactored |
| task-db.ts | 449 | Task database |
| console-ui.ts | 436 | UI components |
| console-storage.ts | 416 | LocalStorage helpers |
konsole/src/ (3 files)
| stream.ts | 739 | Claude streaming |
| session.ts | 533 | Session management |
| main.ts | 487 | Entry point |
Legend
● >1000 (critical)● 500-999● 400-499
What's Next?
The router.ts at 2,341 lines is the clear priority. Want me to create a refactoring plan to split it into route handlers by domain (kontasks, console, reports, etc)?
Quick Actions
Original Request
No layout configured
Details
Type
General
Status
Completed
Scope
vibetools
Tags
refactoringcode-quality
Created
3 Jan 2026, 2:35 am
Updated
3 Jan 2026, 2:35 am
Created By
claude
Raw Data
{
"id": "c6ab985e-4815-4b8d-83f2-4a45b06edc77",
"type": "general",
"status": "completed",
"title": "Files over 400 lines in konui/konsole",
"description": "List of source files exceeding 400 lines of code",
"context": {
"output": "<div style=\"background:#1e1e1e;color:#e0e0e0;padding:20px;border-radius:8px;font-family:'Consolas','Monaco',monospace;\"><h2 style=\"font-family:sans-serif;color:#fff;margin:0 0 16px 0;\">Files Over 400 Lines</h2><p style=\"color:#9ca3af;font-family:sans-serif;margin:0 0 16px 0;\">Found <strong style=\"color:#f59e0b;\">12 files</strong> exceeding 400 lines in konui and konsole</p><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-bottom:16px;\"><h3 style=\"color:#98c379;margin:0 0 12px 0;font-size:0.9rem;\">konui/src/ (9 files)</h3><table style=\"width:100%;border-collapse:collapse;\"><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">router.ts</td><td style=\"padding:8px 12px;text-align:right;color:#f87171;font-weight:bold;\">2,341</td><td style=\"padding:8px 12px;color:#7f848e;\">🔴 Largest - needs splitting</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">kontask-templates.ts</td><td style=\"padding:8px 12px;text-align:right;color:#fbbf24;\">769</td><td style=\"padding:8px 12px;color:#7f848e;\">Template renderers</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">kontask-db.ts</td><td style=\"padding:8px 12px;text-align:right;color:#fbbf24;\">765</td><td style=\"padding:8px 12px;color:#7f848e;\">Kontask database</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">streaming.ts</td><td style=\"padding:8px 12px;text-align:right;color:#fbbf24;\">530</td><td style=\"padding:8px 12px;color:#7f848e;\">SSE streaming</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">console-history.ts</td><td style=\"padding:8px 12px;text-align:right;color:#a3e635;\">480</td><td style=\"padding:8px 12px;color:#7f848e;\">Just created (fix)</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">dashboard-console.ts</td><td style=\"padding:8px 12px;text-align:right;color:#a3e635;\">473</td><td style=\"padding:8px 12px;color:#7f848e;\">Recently refactored</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">task-db.ts</td><td style=\"padding:8px 12px;text-align:right;color:#a3e635;\">449</td><td style=\"padding:8px 12px;color:#7f848e;\">Task database</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">console-ui.ts</td><td style=\"padding:8px 12px;text-align:right;color:#a3e635;\">436</td><td style=\"padding:8px 12px;color:#7f848e;\">UI components</td></tr><tr><td style=\"padding:8px 12px;color:#e5c07b;\">console-storage.ts</td><td style=\"padding:8px 12px;text-align:right;color:#a3e635;\">416</td><td style=\"padding:8px 12px;color:#7f848e;\">LocalStorage helpers</td></tr></table></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;\"><h3 style=\"color:#61afef;margin:0 0 12px 0;font-size:0.9rem;\">konsole/src/ (3 files)</h3><table style=\"width:100%;border-collapse:collapse;\"><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">stream.ts</td><td style=\"padding:8px 12px;text-align:right;color:#fbbf24;\">739</td><td style=\"padding:8px 12px;color:#7f848e;\">Claude streaming</td></tr><tr style=\"border-bottom:1px solid #444;\"><td style=\"padding:8px 12px;color:#e5c07b;\">session.ts</td><td style=\"padding:8px 12px;text-align:right;color:#fbbf24;\">533</td><td style=\"padding:8px 12px;color:#7f848e;\">Session management</td></tr><tr><td style=\"padding:8px 12px;color:#e5c07b;\">main.ts</td><td style=\"padding:8px 12px;text-align:right;color:#a3e635;\">487</td><td style=\"padding:8px 12px;color:#7f848e;\">Entry point</td></tr></table></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-top:16px;\"><h4 style=\"margin:0 0 8px 0;color:#fff;\">Legend</h4><div style=\"display:flex;flex-wrap:wrap;gap:16px;font-size:0.85rem;font-family:sans-serif;\"><span><span style=\"color:#f87171;\">●</span> >1000 (critical)</span><span><span style=\"color:#fbbf24;\">●</span> 500-999</span><span><span style=\"color:#a3e635;\">●</span> 400-499</span></div></div><div style=\"background:#2d2d2d;padding:16px;border-radius:6px;margin-top:16px;\"><h4 style=\"margin:0 0 8px 0;color:#fff;\">What's Next?</h4><p style=\"color:#9ca3af;margin:0;\">The router.ts at 2,341 lines is the clear priority. Want me to create a refactoring plan to split it into route handlers by domain (kontasks, console, reports, etc)?</p></div></div>",
"requestedAt": "2026-01-03T12:00:00Z",
"requestId": "5a4abcde-e28a-4d9d-97c1-12e0d74b14a3"
},
"createdBy": "claude",
"createdAt": "2026-01-02T16:35:18.327Z",
"updatedAt": "2026-01-02T16:35:18.482Z",
"requestId": "5a4abcde-e28a-4d9d-97c1-12e0d74b14a3",
"scope": "vibetools",
"tags": [
"refactoring",
"code-quality"
],
"targetUser": "claude"
}