agentgui 1.0.67 → 1.0.68

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.
Files changed (55) hide show
  1. package/.prd +214 -0
  2. package/.prd-browser +607 -0
  3. package/CLAUDE.md +1532 -125
  4. package/browser-test-harness.js +371 -0
  5. package/browser-test.js +409 -0
  6. package/execute-tests.js +164 -0
  7. package/lib/claude-runner.js +41 -12
  8. package/lib/database-service.ts +252 -0
  9. package/lib/sync-service.ts +275 -0
  10. package/lib/types.ts +168 -0
  11. package/package.json +1 -1
  12. package/readme.md +586 -0
  13. package/run-e2e-test.sh +88 -0
  14. package/server.js +274 -8
  15. package/static/index.html +487 -180
  16. package/static/js/client.js +558 -0
  17. package/static/js/event-filter.js +311 -0
  18. package/static/js/event-processor.js +454 -0
  19. package/static/js/streaming-renderer.js +813 -0
  20. package/static/js/syntax-highlighter.js +271 -0
  21. package/static/js/ui-components.js +433 -0
  22. package/static/js/websocket-manager.js +482 -0
  23. package/static/templates/INDEX.html +465 -0
  24. package/static/templates/README.md +190 -0
  25. package/static/templates/agent-capabilities.html +56 -0
  26. package/static/templates/agent-metadata-panel.html +44 -0
  27. package/static/templates/agent-status-badge.html +30 -0
  28. package/static/templates/code-annotation-panel.html +155 -0
  29. package/static/templates/code-suggestion-panel.html +184 -0
  30. package/static/templates/command-header.html +77 -0
  31. package/static/templates/command-output-scrollable.html +118 -0
  32. package/static/templates/elapsed-time.html +54 -0
  33. package/static/templates/error-alert.html +106 -0
  34. package/static/templates/error-history-timeline.html +160 -0
  35. package/static/templates/error-recovery-options.html +109 -0
  36. package/static/templates/error-stack-trace.html +95 -0
  37. package/static/templates/error-summary.html +80 -0
  38. package/static/templates/event-counter.html +48 -0
  39. package/static/templates/execution-actions.html +97 -0
  40. package/static/templates/execution-progress-bar.html +80 -0
  41. package/static/templates/execution-stepper.html +120 -0
  42. package/static/templates/file-breadcrumb.html +118 -0
  43. package/static/templates/file-diff-viewer.html +121 -0
  44. package/static/templates/file-metadata.html +133 -0
  45. package/static/templates/file-read-panel.html +66 -0
  46. package/static/templates/file-write-panel.html +120 -0
  47. package/static/templates/git-branch-remote.html +107 -0
  48. package/static/templates/git-diff-list.html +101 -0
  49. package/static/templates/git-log-visualization.html +153 -0
  50. package/static/templates/git-status-panel.html +115 -0
  51. package/static/templates/quality-metrics-display.html +170 -0
  52. package/static/templates/terminal-output-panel.html +87 -0
  53. package/static/templates/test-results-display.html +144 -0
  54. package/test-browser.js +457 -0
  55. package/test-runner.js +182 -0
@@ -0,0 +1,54 @@
1
+ <!-- Execution Time Display with Elapsed and Estimated Remaining -->
2
+ <div class="time-display card" role="region" aria-label="Execution timing">
3
+ <div class="grid grid-cols-2 gap-4">
4
+ <!-- Elapsed Time -->
5
+ <div class="text-center">
6
+ <p class="text-sm text-secondary mb-2">Elapsed Time</p>
7
+ <div class="time-value font-mono">
8
+ <span data-unit="hours">{{ hours }}</span>:<span data-unit="minutes">{{ minutes }}</span>:<span data-unit="seconds">{{ seconds }}</span>
9
+ </div>
10
+ <p class="text-xs text-secondary mt-1">from start</p>
11
+ </div>
12
+
13
+ <!-- Estimated Remaining -->
14
+ <div class="text-center border-l pl-4">
15
+ <p class="text-sm text-secondary mb-2">Est. Remaining</p>
16
+ <div class="time-value font-mono" data-estimated="true">
17
+ <span data-unit="hours">{{ remHours }}</span>:<span data-unit="minutes">{{ remMinutes }}</span>:<span data-unit="seconds">{{ remSeconds }}</span>
18
+ </div>
19
+ <p class="text-xs text-secondary mt-1">estimated to complete</p>
20
+ </div>
21
+ </div>
22
+
23
+ <!-- Timeline Bar -->
24
+ <div class="mt-4 pt-4 border-t">
25
+ <div class="flex items-center gap-2 text-xs">
26
+ <span class="text-secondary">0%</span>
27
+ <div class="flex-1 h-1 bg-primary rounded-full" style="width: {{ progressPercent }}%;"></div>
28
+ <span class="text-secondary">100%</span>
29
+ </div>
30
+ </div>
31
+ </div>
32
+
33
+ <style scoped>
34
+ .time-display {
35
+ padding: 16px;
36
+ }
37
+
38
+ .time-value {
39
+ font-size: 24px;
40
+ font-weight: 600;
41
+ letter-spacing: 1px;
42
+ color: var(--color-primary);
43
+ }
44
+
45
+ .time-value[data-estimated="true"] {
46
+ color: var(--color-secondary);
47
+ }
48
+
49
+ [data-unit] {
50
+ min-width: 32px;
51
+ text-align: center;
52
+ display: inline-block;
53
+ }
54
+ </style>
@@ -0,0 +1,106 @@
1
+ <!-- Error Alert Component with Severity Levels -->
2
+ <div class="error-alert alert" data-severity="{{ severity }}" role="alert" aria-live="assertive">
3
+ <!-- Icon -->
4
+ <div class="alert-icon" aria-hidden="true">
5
+ {{ if severity == 'critical' }}
6
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
7
+ <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"/>
8
+ </svg>
9
+ {{ else if severity == 'error' }}
10
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
11
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"/>
12
+ </svg>
13
+ {{ else if severity == 'warning' }}
14
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
15
+ <path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92z"/>
16
+ </svg>
17
+ {{ else }}
18
+ <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20">
19
+ <path fill-rule="evenodd" d="M18 5v8a2 2 0 01-2 2h-5l-5 4v-4H4a2 2 0 01-2-2V5a2 2 0 012-2h12a2 2 0 012 2z"/>
20
+ </svg>
21
+ {{ end }}
22
+ </div>
23
+
24
+ <!-- Content -->
25
+ <div class="alert-content flex-1">
26
+ <h5 class="alert-title">{{ errorTitle }}</h5>
27
+ <p class="alert-message">{{ errorMessage }}</p>
28
+ </div>
29
+
30
+ <!-- Close Button -->
31
+ <button class="alert-close" data-action="dismiss" aria-label="Dismiss error">
32
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
33
+ <path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"/>
34
+ </svg>
35
+ </button>
36
+ </div>
37
+
38
+ <style scoped>
39
+ .error-alert {
40
+ display: flex;
41
+ align-items: flex-start;
42
+ gap: 12px;
43
+ padding: 12px 16px;
44
+ border-radius: 4px;
45
+ border-left: 4px solid;
46
+ }
47
+
48
+ .error-alert[data-severity="critical"] {
49
+ background-color: #fee2e2;
50
+ border-left-color: #dc2626;
51
+ color: #7f1d1d;
52
+ }
53
+
54
+ .error-alert[data-severity="error"] {
55
+ background-color: #fee2e2;
56
+ border-left-color: #ef4444;
57
+ color: #7f1d1d;
58
+ }
59
+
60
+ .error-alert[data-severity="warning"] {
61
+ background-color: #fef3c7;
62
+ border-left-color: #f59e0b;
63
+ color: #78350f;
64
+ }
65
+
66
+ .error-alert[data-severity="info"] {
67
+ background-color: #dbeafe;
68
+ border-left-color: #3b82f6;
69
+ color: #1e3a8a;
70
+ }
71
+
72
+ .alert-icon {
73
+ flex-shrink: 0;
74
+ display: flex;
75
+ align-items: center;
76
+ }
77
+
78
+ .alert-content {
79
+ flex: 1;
80
+ }
81
+
82
+ .alert-title {
83
+ font-weight: 600;
84
+ margin: 0 0 4px 0;
85
+ }
86
+
87
+ .alert-message {
88
+ margin: 0;
89
+ font-size: 13px;
90
+ opacity: 0.95;
91
+ }
92
+
93
+ .alert-close {
94
+ background: none;
95
+ border: none;
96
+ cursor: pointer;
97
+ padding: 2px;
98
+ opacity: 0.6;
99
+ transition: opacity 0.2s;
100
+ flex-shrink: 0;
101
+ }
102
+
103
+ .alert-close:hover {
104
+ opacity: 1;
105
+ }
106
+ </style>
@@ -0,0 +1,160 @@
1
+ <!-- Error History Timeline -->
2
+ <div class="error-history-timeline card" role="region" aria-label="Error history timeline">
3
+ <div class="card-header border-b pb-3 mb-3">
4
+ <h4 class="font-semibold text-sm">Error History</h4>
5
+ <p class="text-xs text-secondary mt-1">{{ totalErrors }} errors occurred</p>
6
+ </div>
7
+
8
+ <!-- Timeline -->
9
+ <div class="timeline" role="list">
10
+ {{ for error in errorHistory }}
11
+ <div class="timeline-item" data-severity="{{ error.severity }}" role="listitem">
12
+ <!-- Timeline Dot -->
13
+ <div class="timeline-dot" aria-hidden="true"></div>
14
+
15
+ <!-- Error Card -->
16
+ <div class="timeline-content">
17
+ <div class="flex items-start justify-between gap-2">
18
+ <div>
19
+ <h5 class="font-semibold text-sm">{{ error.type }}</h5>
20
+ <p class="text-xs text-secondary">{{ error.time }} ({{ error.relativeTime }})</p>
21
+ </div>
22
+ <span class="badge badge-sm" data-severity="{{ error.severity }}">
23
+ {{ error.severityLabel }}
24
+ </span>
25
+ </div>
26
+
27
+ <p class="text-sm mt-2">{{ error.message }}</p>
28
+
29
+ {{ if error.recovery }}
30
+ <p class="text-xs text-green-600 mt-2">
31
+ <svg class="w-3 h-3 inline mr-1" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
32
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"/>
33
+ </svg>
34
+ Recovered: {{ error.recovery }}
35
+ </p>
36
+ {{ end }}
37
+ </div>
38
+ </div>
39
+ {{ end }}
40
+ </div>
41
+
42
+ <!-- Clear History Button -->
43
+ <div class="mt-3 pt-3 border-t">
44
+ <button class="btn btn-sm btn-tertiary" data-action="clear-history" aria-label="Clear error history">
45
+ Clear History
46
+ </button>
47
+ </div>
48
+ </div>
49
+
50
+ <style scoped>
51
+ .error-history-timeline {
52
+ padding: 16px;
53
+ max-height: 500px;
54
+ overflow-y: auto;
55
+ }
56
+
57
+ .timeline {
58
+ display: flex;
59
+ flex-direction: column;
60
+ gap: 0;
61
+ list-style: none;
62
+ margin: 0;
63
+ padding: 0;
64
+ position: relative;
65
+ }
66
+
67
+ .timeline::before {
68
+ content: '';
69
+ position: absolute;
70
+ left: 11px;
71
+ top: 0;
72
+ bottom: 0;
73
+ width: 2px;
74
+ background-color: var(--color-border);
75
+ }
76
+
77
+ .timeline-item {
78
+ position: relative;
79
+ padding-left: 32px;
80
+ padding-bottom: 16px;
81
+ }
82
+
83
+ .timeline-item:last-child {
84
+ padding-bottom: 0;
85
+ }
86
+
87
+ .timeline-dot {
88
+ position: absolute;
89
+ left: 0;
90
+ top: 2px;
91
+ width: 24px;
92
+ height: 24px;
93
+ border-radius: 50%;
94
+ background-color: var(--color-bg-primary);
95
+ border: 3px solid var(--color-border);
96
+ }
97
+
98
+ .timeline-item[data-severity="critical"] .timeline-dot,
99
+ .timeline-item[data-severity="error"] .timeline-dot {
100
+ border-color: var(--color-error);
101
+ background-color: #fee2e2;
102
+ }
103
+
104
+ .timeline-item[data-severity="warning"] .timeline-dot {
105
+ border-color: var(--color-warning);
106
+ background-color: #fef3c7;
107
+ }
108
+
109
+ .timeline-item[data-severity="info"] .timeline-dot {
110
+ border-color: var(--color-primary);
111
+ background-color: #dbeafe;
112
+ }
113
+
114
+ .timeline-content {
115
+ background-color: var(--color-bg-secondary);
116
+ border: 1px solid var(--color-border);
117
+ border-radius: 4px;
118
+ padding: 10px;
119
+ }
120
+
121
+ .badge-sm {
122
+ padding: 2px 6px;
123
+ font-size: 10px;
124
+ }
125
+
126
+ .badge[data-severity="error"] {
127
+ background-color: #ef4444;
128
+ color: white;
129
+ }
130
+
131
+ .badge[data-severity="critical"] {
132
+ background-color: #dc2626;
133
+ color: white;
134
+ }
135
+
136
+ .badge[data-severity="warning"] {
137
+ background-color: #f59e0b;
138
+ color: white;
139
+ }
140
+
141
+ .badge[data-severity="info"] {
142
+ background-color: #3b82f6;
143
+ color: white;
144
+ }
145
+
146
+ .btn-tertiary {
147
+ padding: 6px 10px;
148
+ font-size: 12px;
149
+ background: none;
150
+ border: 1px solid var(--color-primary);
151
+ color: var(--color-primary);
152
+ cursor: pointer;
153
+ border-radius: 3px;
154
+ transition: all 0.2s;
155
+ }
156
+
157
+ .btn-tertiary:hover {
158
+ background-color: var(--color-primary-alpha);
159
+ }
160
+ </style>
@@ -0,0 +1,109 @@
1
+ <!-- Error Recovery Options Panel -->
2
+ <div class="error-recovery card" role="region" aria-label="Error recovery options">
3
+ <div class="card-header border-b pb-3 mb-3">
4
+ <h4 class="font-semibold text-sm">Recovery Options</h4>
5
+ </div>
6
+
7
+ <!-- Recovery Actions -->
8
+ <div class="recovery-actions space-y-2">
9
+ <!-- Retry Button -->
10
+ <button class="recovery-action-btn" data-action="retry" aria-label="Retry the failed operation">
11
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
12
+ <path fill-rule="evenodd" d="M4 2a1 1 0 011 1v2.101a7 7 0 0110.956 1.745l1.414-1.414A9 9 0 006.001 2H4a1 1 0 01-1-1zm12 12a1 1 0 100 2h2.101a7 7 0 01-10.956 1.745l-1.414 1.414A9 9 0 0018 18h2a1 1 0 001-1v-2.101a7 7 0 00-1.745-10.956l1.414-1.414A9 9 0 0120 14.001V16a1 1 0 01-1 1h-2z"/>
13
+ </svg>
14
+ <span>Retry</span>
15
+ </button>
16
+
17
+ <!-- Skip Button -->
18
+ <button class="recovery-action-btn" data-action="skip" aria-label="Skip this operation and continue">
19
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
20
+ <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.707a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"/>
21
+ </svg>
22
+ <span>Skip</span>
23
+ </button>
24
+
25
+ <!-- Cancel Button -->
26
+ <button class="recovery-action-btn danger" data-action="cancel" aria-label="Cancel execution">
27
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
28
+ <path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"/>
29
+ </svg>
30
+ <span>Cancel</span>
31
+ </button>
32
+
33
+ <!-- Rollback Button -->
34
+ <button class="recovery-action-btn" data-action="rollback" aria-label="Rollback to previous state">
35
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
36
+ <path fill-rule="evenodd" d="M2 5a2 2 0 012-2 1 1 0 010-2C3.169.222 5.427-.034 7.168 1.025c.47.26.913.642 1.282 1.114A1 1 0 0109 2v1a1 1 0 001-1v-1a1 1 0 011-1h1a1 1 0 011 1v1a2 2 0 01-2 2h-1a1 1 0 010-2h1V5a1 1 0 01-1 1v1a1 1 0 01-1-1V5H9a1 1 0 01-1-1V3H7v1a1 1 0 001 1h1v1a1 1 0 001 1h1v1a1 1 0 01-1 1h-1a2 2 0 01-1-2v-1a1 1 0 01-2 0V5a1 1 0 01-1-1V3a1 1 0 01-1-1v-2zm0 10a1 1 0 110 2 1 1 0 110-2zm14 0a1 1 0 110 2 1 1 0 110-2zM4 8a1 1 0 110 2 1 1 0 110-2zm10 0a1 1 0 110 2 1 1 0 110-2z"/>
37
+ </svg>
38
+ <span>Rollback</span>
39
+ </button>
40
+ </div>
41
+
42
+ <!-- Recovery Info -->
43
+ <div class="recovery-info text-xs text-secondary mt-3 pt-3 border-t space-y-1">
44
+ <p><strong>Error ID:</strong> <code class="font-mono">{{ errorId }}</code></p>
45
+ <p><strong>Last Checkpoint:</strong> {{ checkpointTime }}</p>
46
+ {{ if suggestedAction }}
47
+ <p><strong>Suggestion:</strong> {{ suggestedAction }}</p>
48
+ {{ end }}
49
+ </div>
50
+ </div>
51
+
52
+ <style scoped>
53
+ .error-recovery {
54
+ padding: 16px;
55
+ background: var(--color-bg-primary);
56
+ }
57
+
58
+ .recovery-actions {
59
+ display: flex;
60
+ flex-direction: column;
61
+ gap: 8px;
62
+ }
63
+
64
+ .recovery-action-btn {
65
+ display: flex;
66
+ align-items: center;
67
+ gap: 8px;
68
+ padding: 8px 12px;
69
+ background-color: var(--color-primary);
70
+ color: white;
71
+ border: none;
72
+ border-radius: 4px;
73
+ font-size: 13px;
74
+ font-weight: 500;
75
+ cursor: pointer;
76
+ transition: all 0.2s;
77
+ }
78
+
79
+ .recovery-action-btn:hover {
80
+ background-color: var(--color-primary-dark);
81
+ transform: translateY(-1px);
82
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
83
+ }
84
+
85
+ .recovery-action-btn:active {
86
+ transform: translateY(0);
87
+ }
88
+
89
+ .recovery-action-btn.danger {
90
+ background-color: var(--color-error);
91
+ }
92
+
93
+ .recovery-action-btn.danger:hover {
94
+ background-color: var(--color-error-dark);
95
+ }
96
+
97
+ .recovery-info {
98
+ padding: 8px;
99
+ background-color: var(--color-bg-secondary);
100
+ border-radius: 3px;
101
+ }
102
+
103
+ .font-mono {
104
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
105
+ background-color: var(--color-bg-code);
106
+ padding: 1px 3px;
107
+ border-radius: 2px;
108
+ }
109
+ </style>
@@ -0,0 +1,95 @@
1
+ <!-- Error Stack Trace Display (Collapsible) -->
2
+ <div class="error-stack-trace">
3
+ <details class="stack-trace-accordion card">
4
+ <summary class="cursor-pointer font-semibold py-3 px-4 border-b flex items-center gap-2 hover:bg-hover-bg">
5
+ <svg class="w-4 h-4 chevron" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
6
+ <path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"/>
7
+ </svg>
8
+ <span>Stack Trace</span>
9
+ <span class="text-secondary text-sm">{{ frameCount }} frames</span>
10
+ </summary>
11
+
12
+ <div class="stack-content p-4">
13
+ <ol class="space-y-3" role="list">
14
+ {{ for frame in stackFrames }}
15
+ <li role="listitem" class="stack-frame">
16
+ <div class="stack-frame-header">
17
+ <code class="font-mono font-semibold">{{ frame.function }}</code>
18
+ <span class="text-secondary text-xs">at {{ frame.file }}:{{ frame.line }}:{{ frame.column }}</span>
19
+ </div>
20
+ <pre class="stack-frame-code"><code class="language-{{ frame.language }}">{{ frame.sourceCode }}</code></pre>
21
+ </li>
22
+ {{ end }}
23
+ </ol>
24
+ </div>
25
+ </details>
26
+ </div>
27
+
28
+ <style scoped>
29
+ .error-stack-trace {
30
+ margin-top: 12px;
31
+ }
32
+
33
+ .stack-trace-accordion {
34
+ border: 1px solid var(--color-border);
35
+ border-radius: 4px;
36
+ overflow: hidden;
37
+ }
38
+
39
+ .stack-trace-accordion[open] summary {
40
+ background-color: var(--color-bg-secondary);
41
+ border-bottom: 1px solid var(--color-border);
42
+ }
43
+
44
+ summary {
45
+ list-style: none;
46
+ }
47
+
48
+ summary::-webkit-details-marker {
49
+ display: none;
50
+ }
51
+
52
+ .chevron {
53
+ transition: transform 0.2s;
54
+ }
55
+
56
+ details[open] .chevron {
57
+ transform: rotate(180deg);
58
+ }
59
+
60
+ .stack-content {
61
+ background-color: var(--color-bg-code);
62
+ max-height: 400px;
63
+ overflow-y: auto;
64
+ }
65
+
66
+ .stack-frame {
67
+ border-left: 3px solid var(--color-border);
68
+ padding-left: 12px;
69
+ margin-left: 0;
70
+ }
71
+
72
+ .stack-frame-header {
73
+ display: flex;
74
+ align-items: center;
75
+ gap: 12px;
76
+ margin-bottom: 6px;
77
+ flex-wrap: wrap;
78
+ }
79
+
80
+ .stack-frame-code {
81
+ background-color: var(--color-bg-primary);
82
+ border: 1px solid var(--color-border);
83
+ border-radius: 3px;
84
+ padding: 8px;
85
+ font-size: 11px;
86
+ line-height: 1.5;
87
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
88
+ margin: 0;
89
+ overflow-x: auto;
90
+ }
91
+
92
+ .font-mono {
93
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
94
+ }
95
+ </style>
@@ -0,0 +1,80 @@
1
+ <!-- Error Summary Card -->
2
+ <div class="error-summary card" role="region" aria-label="Error summary">
3
+ <div class="card-header flex items-start justify-between mb-3 pb-3 border-b">
4
+ <div class="flex-1">
5
+ <h4 class="font-semibold">Error: {{ errorType }}</h4>
6
+ <p class="text-sm text-secondary mt-1">{{ errorCode }}</p>
7
+ </div>
8
+ <div class="badge" data-severity="{{ severity }}">
9
+ {{ severityLabel }}
10
+ </div>
11
+ </div>
12
+
13
+ <!-- Error Message -->
14
+ <div class="error-message mb-3 pb-3 border-b">
15
+ <p class="text-sm">{{ errorMessage }}</p>
16
+ </div>
17
+
18
+ <!-- Error Context (if available) -->
19
+ {{ if errorContext }}
20
+ <div class="error-context mb-3 pb-3 border-b">
21
+ <h5 class="text-xs font-semibold text-secondary mb-2">Context</h5>
22
+ <div class="text-xs space-y-1">
23
+ <p><span class="text-secondary">File:</span> <code class="font-mono">{{ contextFile }}</code></p>
24
+ <p><span class="text-secondary">Line:</span> <code class="font-mono">{{ contextLine }}</code></p>
25
+ <p><span class="text-secondary">Column:</span> <code class="font-mono">{{ contextColumn }}</code></p>
26
+ </div>
27
+ </div>
28
+ {{ end }}
29
+
30
+ <!-- Timestamps -->
31
+ <div class="text-xs text-secondary">
32
+ <p>Occurred at {{ timestamp }} ({{ relativeTime }})</p>
33
+ </div>
34
+ </div>
35
+
36
+ <style scoped>
37
+ .error-summary {
38
+ padding: 16px;
39
+ background: var(--color-bg-primary);
40
+ border-left: 4px solid var(--color-error);
41
+ }
42
+
43
+ .error-message {
44
+ line-height: 1.6;
45
+ color: var(--color-text-primary);
46
+ }
47
+
48
+ .error-context {
49
+ background-color: var(--color-bg-secondary);
50
+ padding: 8px;
51
+ border-radius: 3px;
52
+ }
53
+
54
+ .font-mono {
55
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
56
+ background-color: var(--color-bg-code);
57
+ padding: 1px 3px;
58
+ border-radius: 2px;
59
+ }
60
+
61
+ .badge[data-severity="critical"] {
62
+ background-color: #dc2626;
63
+ color: white;
64
+ }
65
+
66
+ .badge[data-severity="error"] {
67
+ background-color: #ef4444;
68
+ color: white;
69
+ }
70
+
71
+ .badge[data-severity="warning"] {
72
+ background-color: #f59e0b;
73
+ color: white;
74
+ }
75
+
76
+ .badge[data-severity="info"] {
77
+ background-color: #3b82f6;
78
+ color: white;
79
+ }
80
+ </style>
@@ -0,0 +1,48 @@
1
+ <!-- Real-time Event Counter -->
2
+ <div class="event-counter card" role="region" aria-live="polite" aria-label="Event statistics">
3
+ <div class="flex justify-between items-center">
4
+ <div class="text-center">
5
+ <p class="text-sm text-secondary">Total Events</p>
6
+ <p class="text-2xl font-bold font-mono" data-metric="total">{{ totalEvents }}</p>
7
+ </div>
8
+
9
+ <div class="flex-1 border-l ml-3 pl-3">
10
+ <div class="grid grid-cols-2 gap-3 text-sm">
11
+ <div>
12
+ <span class="text-secondary">File Ops:</span>
13
+ <p class="font-mono font-semibold" data-metric="file-ops">{{ fileOpsCount }}</p>
14
+ </div>
15
+ <div>
16
+ <span class="text-secondary">Commands:</span>
17
+ <p class="font-mono font-semibold" data-metric="commands">{{ commandsCount }}</p>
18
+ </div>
19
+ </div>
20
+
21
+ <div class="grid grid-cols-2 gap-3 text-sm mt-2">
22
+ <div>
23
+ <span class="text-secondary">Git Ops:</span>
24
+ <p class="font-mono font-semibold" data-metric="git-ops">{{ gitOpsCount }}</p>
25
+ </div>
26
+ <div>
27
+ <span class="text-secondary">Errors:</span>
28
+ <p class="font-mono font-semibold text-error" data-metric="errors">{{ errorCount }}</p>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ </div>
34
+
35
+ <style scoped>
36
+ .event-counter {
37
+ padding: 16px;
38
+ background: var(--color-bg-secondary);
39
+ }
40
+
41
+ [data-metric="errors"] {
42
+ color: var(--color-error);
43
+ }
44
+
45
+ .font-mono {
46
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
47
+ }
48
+ </style>