feat: allow status dashboard header without room details

This commit is contained in:
Eyejoker
2026-03-25 23:00:39 +09:00
parent c7ba983ea6
commit 5c2e8e4fdc
4 changed files with 43 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
import { STATUS_SHOW_ROOMS } from './config.js';
import { STATUS_SHOW_ROOM_DETAILS, STATUS_SHOW_ROOMS } from './config.js';
import {
composeDashboardContent,
type DashboardRoomLine,
@@ -50,12 +50,15 @@ export function buildStatusContent(opts: DashboardOptions): string {
})
.filter((line): line is DashboardRoomLine => Boolean(line));
const header = `**에이전트 상태** (${opts.assistantName}) — 활성 ${totalActive} | 큐대기 ${totalWaiting} | 전체 ${roomLines.length}`;
if (!STATUS_SHOW_ROOM_DETAILS) {
return composeDashboardContent([header]);
}
return composeDashboardContent([
`**에이전트 상태** (${opts.assistantName}) — 활성 ${totalActive} | 큐대기 ${totalWaiting} | 전체 ${roomLines.length}\n\n${renderCategorizedRoomSections(
{
lines: roomLines,
showCategoryHeaders: false,
},
)}`,
`${header}\n\n${renderCategorizedRoomSections({
lines: roomLines,
showCategoryHeaders: false,
})}`,
]);
}