- api.js: getAgentTokenUsage 헬퍼 추가 - AgentColumn: 헤더에 오늘 토큰 사용량 뱃지 (🧮 N,NNN) - 30초 폴링 + state 변경 시 즉시 갱신 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
306 lines
5.3 KiB
CSS
306 lines
5.3 KiB
CSS
.ao-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100vh;
|
|
background: #0d0d1a;
|
|
color: #e0e0e0;
|
|
font-family: 'Courier New', monospace;
|
|
}
|
|
|
|
.ao-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 20px;
|
|
background: #1a1a2e;
|
|
border-bottom: 1px solid #2a2a4a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ao-title {
|
|
font-size: 1.2rem;
|
|
color: #8b5cf6;
|
|
margin: 0;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.ao-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.8rem;
|
|
color: #888;
|
|
}
|
|
|
|
.ao-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
.ao-dot--on { background: #34d399; }
|
|
.ao-dot--off { background: #f87171; }
|
|
|
|
/* Dashboard */
|
|
.ao-dashboard {
|
|
display: flex;
|
|
gap: 1px;
|
|
background: #2a2a4a;
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Agent Column */
|
|
.ao-col {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #0d0d1a;
|
|
min-width: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.ao-col-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 12px;
|
|
border-top: 3px solid;
|
|
background: #1a1a2e;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ao-col-name {
|
|
font-weight: bold;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.ao-col-state {
|
|
font-size: 0.7rem;
|
|
padding: 2px 8px;
|
|
border-radius: 8px;
|
|
text-transform: uppercase;
|
|
margin-left: auto;
|
|
}
|
|
.ao-col-state--idle { background: #333; color: #888; }
|
|
.ao-col-state--working { background: #3730a3; color: #a5b4fc; }
|
|
.ao-col-state--waiting { background: #92400e; color: #fbbf24; }
|
|
.ao-col-state--reporting { background: #065f46; color: #34d399; }
|
|
.ao-col-state--break { background: #4c1d95; color: #c4b5fd; }
|
|
.ao-col-state--offline { background: #1f1f1f; color: #555; }
|
|
|
|
.ao-col-tokens {
|
|
font-size: 0.7rem;
|
|
color: #8b5cf6;
|
|
background: rgba(139, 92, 246, 0.12);
|
|
padding: 2px 8px;
|
|
border-radius: 8px;
|
|
margin-left: 6px;
|
|
cursor: help;
|
|
font-family: 'Courier New', monospace;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.ao-col-badge {
|
|
background: #f43f5e;
|
|
color: #fff;
|
|
font-size: 0.65rem;
|
|
padding: 1px 5px;
|
|
border-radius: 6px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ao-col-detail {
|
|
padding: 6px 12px;
|
|
font-size: 0.8rem;
|
|
color: #a78bfa;
|
|
background: rgba(139, 92, 246, 0.05);
|
|
border-bottom: 1px solid #2a2a4a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ao-col-approval {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
background: rgba(251, 191, 36, 0.08);
|
|
border-bottom: 1px solid #2a2a4a;
|
|
font-size: 0.8rem;
|
|
color: #fbbf24;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ao-col-commands {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid #1a1a2e;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ao-col-input {
|
|
display: flex;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid #1a1a2e;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ao-col-tasks {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.ao-col-tasks-title {
|
|
padding: 4px 12px;
|
|
font-size: 0.7rem;
|
|
color: #555;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.ao-col-empty {
|
|
padding: 12px;
|
|
text-align: center;
|
|
color: #444;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.ao-col-task {
|
|
padding: 6px 12px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.03);
|
|
}
|
|
|
|
.ao-col-task-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.ao-col-task-type {
|
|
font-size: 0.8rem;
|
|
color: #ccc;
|
|
}
|
|
|
|
.ao-col-task-badge {
|
|
font-size: 0.65rem;
|
|
padding: 1px 6px;
|
|
border-radius: 4px;
|
|
color: #fff;
|
|
}
|
|
|
|
.ao-col-task-time {
|
|
font-size: 0.7rem;
|
|
color: #555;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.ao-col-task-detail {
|
|
margin-top: 4px;
|
|
font-size: 0.7rem;
|
|
}
|
|
.ao-col-task-detail summary {
|
|
cursor: pointer;
|
|
color: #8b5cf6;
|
|
}
|
|
.ao-col-task-detail pre {
|
|
color: #888;
|
|
white-space: pre-wrap;
|
|
margin: 4px 0 0;
|
|
max-height: 120px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Command Column */
|
|
.ao-cmd-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid #1a1a2e;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.ao-cmd-row {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.ao-cmd-select {
|
|
flex: 1;
|
|
padding: 6px 8px;
|
|
background: #111;
|
|
border: 1px solid #333;
|
|
border-radius: 6px;
|
|
color: #e0e0e0;
|
|
font-size: 0.8rem;
|
|
font-family: inherit;
|
|
}
|
|
.ao-cmd-select:focus { border-color: #8b5cf6; outline: none; }
|
|
|
|
.ao-cmd-send {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Office Section */
|
|
.ao-office-section {
|
|
height: 280px;
|
|
flex-shrink: 0;
|
|
border-top: 2px solid #2a2a4a;
|
|
position: relative;
|
|
}
|
|
|
|
.ao-canvas-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* Shared */
|
|
.ao-btn {
|
|
padding: 4px 12px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 0.8rem;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
.ao-btn--approve { background: #065f46; color: #34d399; }
|
|
.ao-btn--approve:hover { background: #047857; }
|
|
.ao-btn--reject { background: #7f1d1d; color: #f87171; }
|
|
.ao-btn--reject:hover { background: #991b1b; }
|
|
.ao-btn--send { background: #4c1d95; color: #c4b5fd; }
|
|
.ao-btn--send:hover { background: #5b21b6; }
|
|
|
|
.ao-cmd-btn {
|
|
padding: 4px 10px;
|
|
border: 1px solid #333;
|
|
border-radius: 6px;
|
|
background: transparent;
|
|
color: #ccc;
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
font-family: inherit;
|
|
}
|
|
.ao-cmd-btn:hover { border-color: #8b5cf6; background: rgba(139, 92, 246, 0.1); }
|
|
|
|
.ao-chat-input {
|
|
flex: 1;
|
|
padding: 6px 10px;
|
|
background: #111;
|
|
border: 1px solid #333;
|
|
border-radius: 6px;
|
|
color: #e0e0e0;
|
|
font-size: 0.8rem;
|
|
font-family: inherit;
|
|
min-width: 0;
|
|
}
|
|
.ao-chat-input:focus { border-color: #8b5cf6; outline: none; }
|
|
|
|
.ao-doc-tg-status {
|
|
font-size: 0.7rem;
|
|
margin-left: 4px;
|
|
}
|