feat: v2.62.0 - Astra Autonomous Loop (AAL) foundation & enhanced file analysis
This commit is contained in:
@@ -0,0 +1,359 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ko">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Astra Mission Control Dashboard</title>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
|
||||
<style>
|
||||
:root {
|
||||
--bg-color: #050505;
|
||||
--card-bg: rgba(20, 20, 25, 0.7);
|
||||
--accent-primary: #00f2ff;
|
||||
--accent-secondary: #7000ff;
|
||||
--text-main: #e0e0e0;
|
||||
--text-dim: #888;
|
||||
--border-color: rgba(255, 255, 255, 0.1);
|
||||
--success: #00ff88;
|
||||
--error: #ff4d4d;
|
||||
--warning: #ffaa00;
|
||||
}
|
||||
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
|
||||
body {
|
||||
background-color: var(--bg-color);
|
||||
background-image:
|
||||
radial-gradient(circle at 20% 20%, rgba(112, 0, 255, 0.1) 0%, transparent 40%),
|
||||
radial-gradient(circle at 80% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
|
||||
color: var(--text-main);
|
||||
font-family: 'Inter', sans-serif;
|
||||
overflow-x: hidden;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 40px 20px;
|
||||
}
|
||||
|
||||
header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 40px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 2px;
|
||||
background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.dashboard-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 2fr 1fr;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.card {
|
||||
background: var(--card-bg);
|
||||
backdrop-filter: blur(10px);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 16px;
|
||||
padding: 24px;
|
||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 14px;
|
||||
color: var(--text-dim);
|
||||
margin-bottom: 20px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.card-title::before {
|
||||
content: '';
|
||||
width: 4px;
|
||||
height: 14px;
|
||||
background: var(--accent-primary);
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
/* Input Area */
|
||||
.log-input-area {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
textarea {
|
||||
width: 100%;
|
||||
height: 120px;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 8px;
|
||||
color: var(--accent-primary);
|
||||
padding: 12px;
|
||||
font-family: 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
resize: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.btn-analyze {
|
||||
margin-top: 12px;
|
||||
padding: 10px 24px;
|
||||
background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.btn-analyze:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
|
||||
}
|
||||
|
||||
/* Timeline View */
|
||||
.timeline {
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
}
|
||||
|
||||
.timeline::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 7px;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 2px;
|
||||
background: var(--border-color);
|
||||
}
|
||||
|
||||
.timeline-item {
|
||||
position: relative;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.timeline-dot {
|
||||
position: absolute;
|
||||
left: -30px;
|
||||
top: 5px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent-primary);
|
||||
box-shadow: 0 0 10px var(--accent-primary);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.timeline-content {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.stage-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.stage-name {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
|
||||
.stage-time {
|
||||
color: var(--text-dim);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.stage-msg {
|
||||
font-size: 14px;
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.stage-duration {
|
||||
margin-top: 8px;
|
||||
display: inline-block;
|
||||
padding: 2px 8px;
|
||||
background: rgba(0, 242, 255, 0.1);
|
||||
border-radius: 4px;
|
||||
font-size: 11px;
|
||||
color: var(--accent-primary);
|
||||
}
|
||||
|
||||
/* Stats */
|
||||
.stat-item {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
font-size: 12px;
|
||||
color: var(--text-dim);
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-family: 'Orbitron', sans-serif;
|
||||
font-size: 28px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
display: inline-block;
|
||||
padding: 4px 12px;
|
||||
border-radius: 20px;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.status-completed { background: rgba(0, 255, 136, 0.1); color: var(--success); }
|
||||
.status-error { background: rgba(255, 77, 77, 0.1); color: var(--error); }
|
||||
.status-processing { background: rgba(0, 242, 255, 0.1); color: var(--accent-primary); }
|
||||
|
||||
#visualizer { display: none; }
|
||||
|
||||
.empty-state {
|
||||
text-align: center;
|
||||
padding: 60px;
|
||||
color: var(--text-dim);
|
||||
}
|
||||
|
||||
.glow-text {
|
||||
text-shadow: 0 0 8px var(--accent-primary);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<header>
|
||||
<div class="logo">Astra Mission Control</div>
|
||||
<div id="mission-status-indicator" class="status-badge">Ready to Sync</div>
|
||||
</header>
|
||||
|
||||
<div class="card log-input-area">
|
||||
<div class="card-title">Log Input System</div>
|
||||
<textarea id="logInput" placeholder="toStructuredLog()의 결과물(JSON)을 여기에 붙여넣으세요..."></textarea>
|
||||
<button class="btn-analyze" onclick="analyzeLog()">분석 시작 (ANALYZE)</button>
|
||||
</div>
|
||||
|
||||
<div id="empty-view" class="empty-state">
|
||||
데이터가 없습니다. 로그를 입력하고 분석을 시작하세요.
|
||||
</div>
|
||||
|
||||
<div id="visualizer" class="dashboard-grid">
|
||||
<div class="card">
|
||||
<div class="card-title">Mission Execution Timeline</div>
|
||||
<div id="timeline" class="timeline">
|
||||
<!-- Timeline items go here -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="right-panel">
|
||||
<div class="card" style="margin-bottom: 24px;">
|
||||
<div class="card-title">Mission Overview</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">Mission ID</div>
|
||||
<div id="view-mission-id" class="stat-value" style="font-size: 14px; word-break: break-all;">-</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">Total Execution Time</div>
|
||||
<div id="view-total-time" class="stat-value glow-text">0ms</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">Final Status</div>
|
||||
<div id="view-final-status">-</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-title">Efficiency Analysis</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">Transitions</div>
|
||||
<div id="view-transition-count" class="stat-value">0</div>
|
||||
</div>
|
||||
<div class="stat-item">
|
||||
<div class="stat-label">Avg. Latency</div>
|
||||
<div id="view-avg-latency" class="stat-value" style="color: var(--accent-secondary);">0ms</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function analyzeLog() {
|
||||
const input = document.getElementById('logInput').value;
|
||||
try {
|
||||
const data = JSON.parse(input);
|
||||
renderDashboard(data);
|
||||
} catch (e) {
|
||||
alert('유효한 JSON 형식이 아닙니다. 로그를 다시 확인해 주세요.');
|
||||
}
|
||||
}
|
||||
|
||||
function renderDashboard(data) {
|
||||
document.getElementById('empty-view').style.display = 'none';
|
||||
document.getElementById('visualizer').style.display = 'grid';
|
||||
|
||||
// Status Update
|
||||
const statusEl = document.getElementById('mission-status-indicator');
|
||||
statusEl.innerText = data.status;
|
||||
statusEl.className = 'status-badge ' + (data.status === 'completed' ? 'status-completed' : 'status-error');
|
||||
|
||||
// Overview Update
|
||||
document.getElementById('view-mission-id').innerText = data.missionId;
|
||||
document.getElementById('view-total-time').innerText = data.totalElapsedMs + 'ms';
|
||||
document.getElementById('view-final-status').innerHTML = `<span class="status-badge status-${data.status}">${data.status}</span>`;
|
||||
document.getElementById('view-transition-count').innerText = data.transitionCount;
|
||||
|
||||
const avg = data.totalElapsedMs / (data.transitionCount || 1);
|
||||
document.getElementById('view-avg-latency').innerText = Math.round(avg) + 'ms';
|
||||
|
||||
// Timeline Update
|
||||
const timeline = document.getElementById('timeline');
|
||||
timeline.innerHTML = '';
|
||||
|
||||
data.transitions.forEach(t => {
|
||||
const item = document.createElement('div');
|
||||
item.className = 'timeline-item';
|
||||
|
||||
const dotColor = t.to === 'error' ? 'var(--error)' : 'var(--accent-primary)';
|
||||
const dotShadow = t.to === 'error' ? '0 0 10px var(--error)' : '0 0 10px var(--accent-primary)';
|
||||
|
||||
item.innerHTML = `
|
||||
<div class="timeline-dot" style="background: ${dotColor}; box-shadow: ${dotShadow}"></div>
|
||||
<div class="timeline-content">
|
||||
<div class="stage-header">
|
||||
<div class="stage-name" style="color: ${dotColor}">${t.to.toUpperCase()}</div>
|
||||
<div class="stage-time">${new Date(t.ts).toLocaleTimeString()}</div>
|
||||
</div>
|
||||
<div class="stage-msg">${t.message}</div>
|
||||
<div class="stage-duration">From ${t.from}: +${t.durationMs}ms</div>
|
||||
</div>
|
||||
`;
|
||||
timeline.appendChild(item);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user