Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 084cff4fe6 | |||
| ef3fc6039e | |||
| 3599513128 | |||
| 7dd8f53f2f |
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { X } from '@lucide/vue'
|
import { X, ExternalLink } from '@lucide/vue'
|
||||||
import type { AgentNodeData } from '../../composables/useDashboardData'
|
import type { AgentNodeData } from '../../composables/useDashboardData'
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
@@ -25,6 +25,9 @@ defineEmits<{
|
|||||||
<div>
|
<div>
|
||||||
<h2>{{ agent.name }}</h2>
|
<h2>{{ agent.name }}</h2>
|
||||||
<span class="modal-role">{{ agent.role }}</span>
|
<span class="modal-role">{{ agent.role }}</span>
|
||||||
|
<a :href="`/agents/${agent.id}`" class="agent-link-btn" title="Open agent config">
|
||||||
|
<ExternalLink :size="12" />
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="modal-close-btn" @click="$emit('close')" aria-label="Close">
|
<button class="modal-close-btn" @click="$emit('close')" aria-label="Close">
|
||||||
@@ -38,7 +41,34 @@ defineEmits<{
|
|||||||
<!-- Current Task -->
|
<!-- Current Task -->
|
||||||
<section class="modal-section">
|
<section class="modal-section">
|
||||||
<h3 class="section-label">Current Task</h3>
|
<h3 class="section-label">Current Task</h3>
|
||||||
<p class="section-value">{{ agent.currentTask }}</p>
|
<p class="section-value">
|
||||||
|
{{ agent.currentTask }}
|
||||||
|
<span class="thinking-dots">
|
||||||
|
<span class="thinking-dot blue"></span>
|
||||||
|
<span class="thinking-dot violet"></span>
|
||||||
|
</span>
|
||||||
|
</p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Live Thinking -->
|
||||||
|
<section class="modal-section">
|
||||||
|
<h3 class="section-label">Live Thinking</h3>
|
||||||
|
<div class="thinking-panel">
|
||||||
|
<div class="thinking-stream" ref="thinkingStreamRef">
|
||||||
|
<div
|
||||||
|
v-for="(msg, idx) in agent.thinkingStream"
|
||||||
|
:key="idx"
|
||||||
|
class="thinking-entry"
|
||||||
|
:style="{ animationDelay: `${idx * 0.05}s` }"
|
||||||
|
>
|
||||||
|
<span class="entry-time">{{ msg.time }}</span>
|
||||||
|
<span class="entry-text">{{ msg.text }}</span>
|
||||||
|
</div>
|
||||||
|
<div v-if="!agent.thinkingStream?.length" class="thinking-placeholder">
|
||||||
|
Waiting for thought stream...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<!-- Goal + Progress -->
|
<!-- Goal + Progress -->
|
||||||
@@ -66,32 +96,8 @@ defineEmits<{
|
|||||||
class="work-step"
|
class="work-step"
|
||||||
>
|
>
|
||||||
<span class="step-dot"></span>
|
<span class="step-dot"></span>
|
||||||
<span class="step-text">{{ step }}</span>
|
<span class="step-time">{{ step.time }}</span>
|
||||||
</div>
|
<span class="step-text">{{ step.text }}</span>
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<!-- Live Thinking -->
|
|
||||||
<section class="modal-section">
|
|
||||||
<h3 class="section-label">Live Thinking</h3>
|
|
||||||
<div class="thinking-panel">
|
|
||||||
<div class="thinking-orbiter">
|
|
||||||
<span class="orbiter-dot dot-blue"></span>
|
|
||||||
<span class="orbiter-dot dot-violet"></span>
|
|
||||||
</div>
|
|
||||||
<div class="thinking-stream" ref="thinkingStreamRef">
|
|
||||||
<div
|
|
||||||
v-for="(msg, idx) in agent.thinkingStream"
|
|
||||||
:key="idx"
|
|
||||||
class="thinking-entry"
|
|
||||||
:style="{ animationDelay: `${idx * 0.05}s` }"
|
|
||||||
>
|
|
||||||
<span class="entry-time">{{ msg.time }}</span>
|
|
||||||
<span class="entry-text">{{ msg.text }}</span>
|
|
||||||
</div>
|
|
||||||
<div v-if="!agent.thinkingStream?.length" class="thinking-placeholder">
|
|
||||||
Waiting for thought stream...
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@@ -99,15 +105,6 @@ defineEmits<{
|
|||||||
<!-- Footer Stats -->
|
<!-- Footer Stats -->
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<span class="footer-badge">Runtime: {{ runtime }}</span>
|
<span class="footer-badge">Runtime: {{ runtime }}</span>
|
||||||
<span
|
|
||||||
class="footer-badge"
|
|
||||||
:style="{
|
|
||||||
color: agent.workload > 65 ? '#eab308' : '#22c55e',
|
|
||||||
borderColor: agent.workload > 65 ? 'rgba(234,179,8,0.2)' : 'rgba(34,197,94,0.2)',
|
|
||||||
}"
|
|
||||||
>
|
|
||||||
Workload: {{ agent.workload }}%
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -193,6 +190,29 @@ defineEmits<{
|
|||||||
color: #6b7385;
|
color: #6b7385;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
.agent-link-btn {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
margin-left: 4px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 6px;
|
||||||
|
background: transparent;
|
||||||
|
color: #6b7385;
|
||||||
|
opacity: 0.4;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: opacity 0.2s;
|
||||||
|
flex-shrink: 0;
|
||||||
|
text-decoration: none;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.agent-link-btn:hover {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--agent-color);
|
||||||
|
}
|
||||||
|
|
||||||
.modal-close-btn {
|
.modal-close-btn {
|
||||||
width: 32px;
|
width: 32px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
@@ -236,6 +256,9 @@ defineEmits<{
|
|||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #e8eaf0;
|
color: #e8eaf0;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Progress */
|
/* Progress */
|
||||||
@@ -277,41 +300,37 @@ defineEmits<{
|
|||||||
animation: panel-pulse 2.5s ease-in-out infinite;
|
animation: panel-pulse 2.5s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
@keyframes panel-pulse {
|
@keyframes panel-pulse {
|
||||||
0%, 100% { border-color: rgba(139, 124, 246, 0.2); box-shadow: 0 0 8px rgba(139,124,246,0.05); }
|
0%, 100% { border-color: rgba(139, 124, 246, 0.25); box-shadow: 0 0 12px rgba(139,124,246,0.08); }
|
||||||
50% { border-color: rgba(139, 124, 246, 0.35); box-shadow: 0 0 16px rgba(139,124,246,0.1); }
|
50% { border-color: rgba(139, 124, 246, 0.5); box-shadow: 0 0 24px rgba(139,124,246,0.18), 0 0 40px rgba(139,124,246,0.06); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.thinking-orbiter {
|
.thinking-dots {
|
||||||
position: absolute;
|
display: inline-flex;
|
||||||
inset: -8px;
|
gap: 6px;
|
||||||
pointer-events: none;
|
flex-shrink: 0;
|
||||||
z-index: 0;
|
|
||||||
animation: spin-orbiter 4s linear infinite;
|
|
||||||
}
|
}
|
||||||
@keyframes spin-orbiter {
|
.thinking-dot {
|
||||||
from { transform: rotate(0deg); }
|
width: 7px;
|
||||||
to { transform: rotate(360deg); }
|
height: 7px;
|
||||||
}
|
|
||||||
.orbiter-dot {
|
|
||||||
position: absolute;
|
|
||||||
width: 10px;
|
|
||||||
height: 10px;
|
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
filter: blur(1px);
|
|
||||||
}
|
}
|
||||||
.dot-blue {
|
.thinking-dot.blue {
|
||||||
top: 0;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, -50%);
|
|
||||||
background: #3b82f6;
|
background: #3b82f6;
|
||||||
box-shadow: 0 0 10px #3b82f6, 0 0 20px rgba(59,130,246,0.5);
|
box-shadow: 0 0 8px #3b82f6;
|
||||||
|
animation: pulse-dot-blue 1.2s ease-in-out infinite;
|
||||||
}
|
}
|
||||||
.dot-violet {
|
.thinking-dot.violet {
|
||||||
bottom: 0;
|
|
||||||
left: 50%;
|
|
||||||
transform: translate(-50%, 50%);
|
|
||||||
background: #8b7cf6;
|
background: #8b7cf6;
|
||||||
box-shadow: 0 0 10px #8b7cf6, 0 0 20px rgba(139,124,246,0.5);
|
box-shadow: 0 0 8px #8b7cf6;
|
||||||
|
animation: pulse-dot-violet 1.8s ease-in-out infinite 0.3s;
|
||||||
|
}
|
||||||
|
@keyframes pulse-dot-blue {
|
||||||
|
0%, 100% { opacity: 0.4; transform: scale(0.7); }
|
||||||
|
50% { opacity: 1; transform: scale(1.3); }
|
||||||
|
}
|
||||||
|
@keyframes pulse-dot-violet {
|
||||||
|
0%, 100% { opacity: 0.3; transform: scale(0.6); }
|
||||||
|
50% { opacity: 1; transform: scale(1.4); }
|
||||||
}
|
}
|
||||||
|
|
||||||
.thinking-stream {
|
.thinking-stream {
|
||||||
@@ -375,6 +394,13 @@ defineEmits<{
|
|||||||
color: #7e8799;
|
color: #7e8799;
|
||||||
line-height: 1.35;
|
line-height: 1.35;
|
||||||
}
|
}
|
||||||
|
.step-time {
|
||||||
|
font-size: 8.5px;
|
||||||
|
color: #6b7385;
|
||||||
|
flex-shrink: 0;
|
||||||
|
font-variant-numeric: tabular-nums;
|
||||||
|
min-width: 36px;
|
||||||
|
}
|
||||||
|
|
||||||
/* Footer */
|
/* Footer */
|
||||||
.modal-footer {
|
.modal-footer {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export interface AgentNodeData {
|
|||||||
workload: number // 0-100
|
workload: number // 0-100
|
||||||
active: boolean
|
active: boolean
|
||||||
runtimeSeconds: number
|
runtimeSeconds: number
|
||||||
workingFeed: string[]
|
workingFeed: Array<{ time: string; text: string }>
|
||||||
thinkingStream?: Array<{ time: string; text: string }>
|
thinkingStream?: Array<{ time: string; text: string }>
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -114,10 +114,10 @@ export function useDashboardData() {
|
|||||||
active: true,
|
active: true,
|
||||||
runtimeSeconds: 28800,
|
runtimeSeconds: 28800,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Analyzed user feedback on Dashboard',
|
{ time: '22:38', text: 'Analyzed user feedback on Dashboard' },
|
||||||
'Delegated card redesign to Developer',
|
{ time: '22:36', text: 'Delegated card redesign to Developer' },
|
||||||
'Verifying full-width layout deployment',
|
{ time: '22:34', text: 'Verifying full-width layout deployment' },
|
||||||
'Reviewing AgentModal integration',
|
{ time: '22:32', text: 'Reviewing AgentModal integration' },
|
||||||
],
|
],
|
||||||
thinkingStream: [
|
thinkingStream: [
|
||||||
{ time: '22:24', text: 'Analysing constraint: full-width layout' },
|
{ time: '22:24', text: 'Analysing constraint: full-width layout' },
|
||||||
@@ -139,10 +139,10 @@ export function useDashboardData() {
|
|||||||
active: true,
|
active: true,
|
||||||
runtimeSeconds: 3600,
|
runtimeSeconds: 3600,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Created DungeonController',
|
{ time: '22:30', text: 'Created DungeonController' },
|
||||||
'Defined dungeon schema',
|
{ time: '22:28', text: 'Defined dungeon schema' },
|
||||||
'Implementing room generation algorithm',
|
{ time: '22:26', text: 'Implementing room generation algorithm' },
|
||||||
'Writing unit tests for RoomFactory',
|
{ time: '22:24', text: 'Writing unit tests for RoomFactory' },
|
||||||
],
|
],
|
||||||
thinkingStream: [
|
thinkingStream: [
|
||||||
{ time: '22:22', text: 'Parsing dungeon spec from Iris' },
|
{ time: '22:22', text: 'Parsing dungeon spec from Iris' },
|
||||||
@@ -164,10 +164,10 @@ export function useDashboardData() {
|
|||||||
active: false,
|
active: false,
|
||||||
runtimeSeconds: 1800,
|
runtimeSeconds: 1800,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Analyzed Docker layer cache',
|
{ time: '22:20', text: 'Analyzed Docker layer cache' },
|
||||||
'Optimized COPY order in Dockerfile',
|
{ time: '22:18', text: 'Optimized COPY order in Dockerfile' },
|
||||||
'Added .dockerignore for node_modules',
|
{ time: '22:16', text: 'Added .dockerignore for node_modules' },
|
||||||
'Testing incremental builds',
|
{ time: '22:14', text: 'Testing incremental builds' },
|
||||||
],
|
],
|
||||||
thinkingStream: [
|
thinkingStream: [
|
||||||
{ time: '22:20', text: 'Checking build cache hit rates' },
|
{ time: '22:20', text: 'Checking build cache hit rates' },
|
||||||
@@ -189,9 +189,9 @@ export function useDashboardData() {
|
|||||||
active: true,
|
active: true,
|
||||||
runtimeSeconds: 2700,
|
runtimeSeconds: 2700,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Evaluated WebSocket vs SSE vs WebRTC',
|
{ time: '22:18', text: 'Evaluated WebSocket vs SSE vs WebRTC' },
|
||||||
'Documented SignalR limitations',
|
{ time: '22:17', text: 'Documented SignalR limitations' },
|
||||||
'Prototyping WebSocket fallback',
|
{ time: '22:16', text: 'Prototyping WebSocket fallback' },
|
||||||
],
|
],
|
||||||
thinkingStream: [
|
thinkingStream: [
|
||||||
{ time: '22:18', text: 'Cross-referencing WebSocket latency benchmarks' },
|
{ time: '22:18', text: 'Cross-referencing WebSocket latency benchmarks' },
|
||||||
@@ -213,10 +213,10 @@ export function useDashboardData() {
|
|||||||
active: false,
|
active: false,
|
||||||
runtimeSeconds: 900,
|
runtimeSeconds: 900,
|
||||||
workingFeed: [
|
workingFeed: [
|
||||||
'Reviewed DungeonController.cs',
|
{ time: '22:15', text: 'Reviewed DungeonController.cs' },
|
||||||
'Found 3 minor style issues',
|
{ time: '22:14', text: 'Found 3 minor style issues' },
|
||||||
'Approved RoomValidator',
|
{ time: '22:13', text: 'Approved RoomValidator' },
|
||||||
'Running integration tests',
|
{ time: '22:12', text: 'Running integration tests' },
|
||||||
],
|
],
|
||||||
thinkingStream: [
|
thinkingStream: [
|
||||||
{ time: '22:15', text: 'Analyzing DungeonController PR diff' },
|
{ time: '22:15', text: 'Analyzing DungeonController PR diff' },
|
||||||
|
|||||||
Reference in New Issue
Block a user