@elyun/bylane 1.14.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5,10 +5,15 @@ const AGENTS = [
|
|
|
5
5
|
'commit-agent', 'pr-agent', 'review-agent', 'respond-agent', 'notify-agent'
|
|
6
6
|
]
|
|
7
7
|
|
|
8
|
+
// 루프는 상태 파일에서 동적으로 감지 (-loop 접미사)
|
|
9
|
+
const KNOWN_LOOPS = ['review-loop', 'respond-loop']
|
|
10
|
+
|
|
8
11
|
const STATUS_ICON = {
|
|
9
12
|
idle: '[ ]',
|
|
10
13
|
in_progress: '[>]',
|
|
14
|
+
running: '[>]',
|
|
11
15
|
completed: '[v]',
|
|
16
|
+
stopped: '[-]',
|
|
12
17
|
failed: '[x]',
|
|
13
18
|
escalated: '[!]'
|
|
14
19
|
}
|
|
@@ -45,6 +50,23 @@ export function createPipelinePanel(screen) {
|
|
|
45
50
|
const maxRetries = states['orchestrator']?.maxRetries ?? 3
|
|
46
51
|
lines.push('', ` Retries: ${retries}/${maxRetries}`)
|
|
47
52
|
|
|
53
|
+
// 루프 프로세스 섹션 — 상태 파일에서 *-loop 동적 감지 + KNOWN_LOOPS 항상 표시
|
|
54
|
+
const activeLoopNames = Object.keys(states).filter(n => n.endsWith('-loop'))
|
|
55
|
+
const allLoops = [...new Set([...KNOWN_LOOPS, ...activeLoopNames])]
|
|
56
|
+
lines.push('', ' LOOPS')
|
|
57
|
+
for (const name of allLoops) {
|
|
58
|
+
const s = states[name]
|
|
59
|
+
if (!s) {
|
|
60
|
+
lines.push(` [-] ${name.padEnd(16)} 미실행`)
|
|
61
|
+
} else {
|
|
62
|
+
const icon = STATUS_ICON[s.status] ?? '[-]'
|
|
63
|
+
const elapsed = s.startedAt
|
|
64
|
+
? `${Math.floor((Date.now() - new Date(s.startedAt)) / 1000)}s`
|
|
65
|
+
: ''
|
|
66
|
+
lines.push(` ${icon} ${name.padEnd(16)} ${elapsed}`)
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
48
70
|
// 하위 에이전트 섹션
|
|
49
71
|
lines.push('', ' SUBAGENTS')
|
|
50
72
|
if (subagents.active.length === 0) {
|