agentgui 1.0.274 → 1.0.275

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 (69) hide show
  1. package/CLAUDE.md +280 -280
  2. package/IPFS_DOWNLOADER.md +277 -277
  3. package/TASK_2C_COMPLETION.md +334 -334
  4. package/bin/gmgui.cjs +54 -54
  5. package/build-portable.js +3 -42
  6. package/database.js +1422 -1406
  7. package/lib/claude-runner.js +1130 -1130
  8. package/lib/ipfs-downloader.js +459 -459
  9. package/lib/speech.js +152 -152
  10. package/package.json +1 -1
  11. package/readme.md +76 -76
  12. package/server.js +3787 -3794
  13. package/setup-npm-token.sh +68 -68
  14. package/static/app.js +773 -773
  15. package/static/event-rendering-showcase.html +708 -708
  16. package/static/index.html +3178 -3180
  17. package/static/js/agent-auth.js +298 -298
  18. package/static/js/audio-recorder-processor.js +18 -18
  19. package/static/js/client.js +2656 -2656
  20. package/static/js/conversations.js +583 -583
  21. package/static/js/dialogs.js +267 -267
  22. package/static/js/event-consolidator.js +101 -101
  23. package/static/js/event-filter.js +311 -311
  24. package/static/js/event-processor.js +452 -452
  25. package/static/js/features.js +413 -413
  26. package/static/js/kalman-filter.js +67 -67
  27. package/static/js/progress-dialog.js +130 -130
  28. package/static/js/script-runner.js +219 -219
  29. package/static/js/streaming-renderer.js +2123 -2120
  30. package/static/js/syntax-highlighter.js +269 -269
  31. package/static/js/tts-websocket-handler.js +152 -152
  32. package/static/js/ui-components.js +431 -431
  33. package/static/js/voice.js +849 -849
  34. package/static/js/websocket-manager.js +596 -596
  35. package/static/templates/INDEX.html +465 -465
  36. package/static/templates/README.md +190 -190
  37. package/static/templates/agent-capabilities.html +56 -56
  38. package/static/templates/agent-metadata-panel.html +44 -44
  39. package/static/templates/agent-status-badge.html +30 -30
  40. package/static/templates/code-annotation-panel.html +155 -155
  41. package/static/templates/code-suggestion-panel.html +184 -184
  42. package/static/templates/command-header.html +77 -77
  43. package/static/templates/command-output-scrollable.html +118 -118
  44. package/static/templates/elapsed-time.html +54 -54
  45. package/static/templates/error-alert.html +106 -106
  46. package/static/templates/error-history-timeline.html +160 -160
  47. package/static/templates/error-recovery-options.html +109 -109
  48. package/static/templates/error-stack-trace.html +95 -95
  49. package/static/templates/error-summary.html +80 -80
  50. package/static/templates/event-counter.html +48 -48
  51. package/static/templates/execution-actions.html +97 -97
  52. package/static/templates/execution-progress-bar.html +80 -80
  53. package/static/templates/execution-stepper.html +120 -120
  54. package/static/templates/file-breadcrumb.html +118 -118
  55. package/static/templates/file-diff-viewer.html +121 -121
  56. package/static/templates/file-metadata.html +133 -133
  57. package/static/templates/file-read-panel.html +66 -66
  58. package/static/templates/file-write-panel.html +120 -120
  59. package/static/templates/git-branch-remote.html +107 -107
  60. package/static/templates/git-diff-list.html +101 -101
  61. package/static/templates/git-log-visualization.html +153 -153
  62. package/static/templates/git-status-panel.html +115 -115
  63. package/static/templates/quality-metrics-display.html +170 -170
  64. package/static/templates/terminal-output-panel.html +87 -87
  65. package/static/templates/test-results-display.html +144 -144
  66. package/static/theme.js +72 -72
  67. package/test-download-progress.js +223 -223
  68. package/test-websocket-broadcast.js +147 -147
  69. package/tests/ipfs-downloader.test.js +370 -370
@@ -1,109 +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>
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>
@@ -1,95 +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>
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>
@@ -1,80 +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>
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>
@@ -1,48 +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>
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>