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,155 +1,155 @@
1
- <!-- Code Annotation Display with Inline Comments -->
2
- <div class="code-annotation-panel card" role="region" aria-label="Code annotations">
3
- <div class="card-header border-b pb-3 mb-3">
4
- <h4 class="font-semibold">{{ annotationCount }} Annotations</h4>
5
- </div>
6
-
7
- <!-- Annotated Code -->
8
- <div class="annotated-code" role="region" aria-label="Code with inline annotations">
9
- {{ for line in codeLines }}
10
- <div class="code-line" data-line-number="{{ line.number }}">
11
- <span class="line-number" aria-hidden="true">{{ line.number }}</span>
12
- <code class="line-content">{{ line.content }}</code>
13
-
14
- <!-- Annotation Indicator -->
15
- {{ if line.annotation }}
16
- <button class="annotation-indicator" data-annotation-id="{{ line.annotation.id }}" aria-label="Show annotation">
17
- <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
18
- <path d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
19
- </svg>
20
- </button>
21
- {{ end }}
22
- </div>
23
-
24
- <!-- Annotation Details -->
25
- {{ if line.annotation }}
26
- <div class="annotation-detail" data-annotation-id="{{ line.annotation.id }}">
27
- <div class="annotation-content">
28
- <div class="annotation-header">
29
- <span class="annotation-type badge">{{ line.annotation.type }}</span>
30
- <span class="annotation-author text-xs text-secondary">{{ line.annotation.author }}</span>
31
- </div>
32
- <p class="annotation-text text-sm mt-1">{{ line.annotation.comment }}</p>
33
- <div class="annotation-actions flex gap-1 mt-2">
34
- <button class="btn-micro" data-action="resolve">Resolve</button>
35
- <button class="btn-micro" data-action="reply">Reply</button>
36
- </div>
37
- </div>
38
- </div>
39
- {{ end }}
40
- {{ end }}
41
- </div>
42
- </div>
43
-
44
- <style scoped>
45
- .code-annotation-panel {
46
- padding: 16px;
47
- max-height: 600px;
48
- overflow-y: auto;
49
- }
50
-
51
- .annotated-code {
52
- background-color: var(--color-bg-code);
53
- border: 1px solid var(--color-border);
54
- border-radius: 4px;
55
- overflow: hidden;
56
- }
57
-
58
- .code-line {
59
- display: flex;
60
- gap: 12px;
61
- padding: 4px 8px;
62
- border-bottom: 1px solid var(--color-border);
63
- position: relative;
64
- align-items: center;
65
- background-color: var(--color-bg-primary);
66
- transition: background-color 0.2s;
67
- }
68
-
69
- .code-line:hover {
70
- background-color: var(--color-bg-hover);
71
- }
72
-
73
- .code-line[data-has-annotation] {
74
- background-color: rgba(59, 130, 246, 0.05);
75
- }
76
-
77
- .line-number {
78
- color: var(--color-text-secondary);
79
- text-align: right;
80
- min-width: 40px;
81
- user-select: none;
82
- flex-shrink: 0;
83
- font-size: 11px;
84
- }
85
-
86
- .line-content {
87
- color: var(--color-text-terminal);
88
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
89
- font-size: 12px;
90
- flex: 1;
91
- white-space: pre-wrap;
92
- }
93
-
94
- .annotation-indicator {
95
- background: none;
96
- border: none;
97
- color: var(--color-primary);
98
- cursor: pointer;
99
- padding: 2px;
100
- border-radius: 3px;
101
- transition: all 0.2s;
102
- flex-shrink: 0;
103
- }
104
-
105
- .annotation-indicator:hover {
106
- background-color: var(--color-primary-alpha);
107
- }
108
-
109
- .annotation-detail {
110
- padding: 8px 12px;
111
- background-color: rgba(59, 130, 246, 0.08);
112
- border-left: 3px solid var(--color-primary);
113
- border-top: 1px solid var(--color-border);
114
- }
115
-
116
- .annotation-header {
117
- display: flex;
118
- align-items: center;
119
- gap: 8px;
120
- }
121
-
122
- .badge {
123
- background-color: var(--color-primary);
124
- color: white;
125
- padding: 2px 6px;
126
- border-radius: 3px;
127
- font-size: 10px;
128
- font-weight: 600;
129
- }
130
-
131
- .annotation-text {
132
- color: var(--color-text-primary);
133
- line-height: 1.5;
134
- }
135
-
136
- .annotation-actions {
137
- display: flex;
138
- gap: 6px;
139
- }
140
-
141
- .btn-micro {
142
- background: none;
143
- border: 1px solid var(--color-primary);
144
- color: var(--color-primary);
145
- padding: 2px 6px;
146
- border-radius: 2px;
147
- font-size: 10px;
148
- cursor: pointer;
149
- transition: all 0.2s;
150
- }
151
-
152
- .btn-micro:hover {
153
- background-color: var(--color-primary-alpha);
154
- }
155
- </style>
1
+ <!-- Code Annotation Display with Inline Comments -->
2
+ <div class="code-annotation-panel card" role="region" aria-label="Code annotations">
3
+ <div class="card-header border-b pb-3 mb-3">
4
+ <h4 class="font-semibold">{{ annotationCount }} Annotations</h4>
5
+ </div>
6
+
7
+ <!-- Annotated Code -->
8
+ <div class="annotated-code" role="region" aria-label="Code with inline annotations">
9
+ {{ for line in codeLines }}
10
+ <div class="code-line" data-line-number="{{ line.number }}">
11
+ <span class="line-number" aria-hidden="true">{{ line.number }}</span>
12
+ <code class="line-content">{{ line.content }}</code>
13
+
14
+ <!-- Annotation Indicator -->
15
+ {{ if line.annotation }}
16
+ <button class="annotation-indicator" data-annotation-id="{{ line.annotation.id }}" aria-label="Show annotation">
17
+ <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20" aria-hidden="true">
18
+ <path d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"/>
19
+ </svg>
20
+ </button>
21
+ {{ end }}
22
+ </div>
23
+
24
+ <!-- Annotation Details -->
25
+ {{ if line.annotation }}
26
+ <div class="annotation-detail" data-annotation-id="{{ line.annotation.id }}">
27
+ <div class="annotation-content">
28
+ <div class="annotation-header">
29
+ <span class="annotation-type badge">{{ line.annotation.type }}</span>
30
+ <span class="annotation-author text-xs text-secondary">{{ line.annotation.author }}</span>
31
+ </div>
32
+ <p class="annotation-text text-sm mt-1">{{ line.annotation.comment }}</p>
33
+ <div class="annotation-actions flex gap-1 mt-2">
34
+ <button class="btn-micro" data-action="resolve">Resolve</button>
35
+ <button class="btn-micro" data-action="reply">Reply</button>
36
+ </div>
37
+ </div>
38
+ </div>
39
+ {{ end }}
40
+ {{ end }}
41
+ </div>
42
+ </div>
43
+
44
+ <style scoped>
45
+ .code-annotation-panel {
46
+ padding: 16px;
47
+ max-height: 600px;
48
+ overflow-y: auto;
49
+ }
50
+
51
+ .annotated-code {
52
+ background-color: var(--color-bg-code);
53
+ border: 1px solid var(--color-border);
54
+ border-radius: 4px;
55
+ overflow: hidden;
56
+ }
57
+
58
+ .code-line {
59
+ display: flex;
60
+ gap: 12px;
61
+ padding: 4px 8px;
62
+ border-bottom: 1px solid var(--color-border);
63
+ position: relative;
64
+ align-items: center;
65
+ background-color: var(--color-bg-primary);
66
+ transition: background-color 0.2s;
67
+ }
68
+
69
+ .code-line:hover {
70
+ background-color: var(--color-bg-hover);
71
+ }
72
+
73
+ .code-line[data-has-annotation] {
74
+ background-color: rgba(59, 130, 246, 0.05);
75
+ }
76
+
77
+ .line-number {
78
+ color: var(--color-text-secondary);
79
+ text-align: right;
80
+ min-width: 40px;
81
+ user-select: none;
82
+ flex-shrink: 0;
83
+ font-size: 11px;
84
+ }
85
+
86
+ .line-content {
87
+ color: var(--color-text-terminal);
88
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
89
+ font-size: 12px;
90
+ flex: 1;
91
+ white-space: pre-wrap;
92
+ }
93
+
94
+ .annotation-indicator {
95
+ background: none;
96
+ border: none;
97
+ color: var(--color-primary);
98
+ cursor: pointer;
99
+ padding: 2px;
100
+ border-radius: 3px;
101
+ transition: all 0.2s;
102
+ flex-shrink: 0;
103
+ }
104
+
105
+ .annotation-indicator:hover {
106
+ background-color: var(--color-primary-alpha);
107
+ }
108
+
109
+ .annotation-detail {
110
+ padding: 8px 12px;
111
+ background-color: rgba(59, 130, 246, 0.08);
112
+ border-left: 3px solid var(--color-primary);
113
+ border-top: 1px solid var(--color-border);
114
+ }
115
+
116
+ .annotation-header {
117
+ display: flex;
118
+ align-items: center;
119
+ gap: 8px;
120
+ }
121
+
122
+ .badge {
123
+ background-color: var(--color-primary);
124
+ color: white;
125
+ padding: 2px 6px;
126
+ border-radius: 3px;
127
+ font-size: 10px;
128
+ font-weight: 600;
129
+ }
130
+
131
+ .annotation-text {
132
+ color: var(--color-text-primary);
133
+ line-height: 1.5;
134
+ }
135
+
136
+ .annotation-actions {
137
+ display: flex;
138
+ gap: 6px;
139
+ }
140
+
141
+ .btn-micro {
142
+ background: none;
143
+ border: 1px solid var(--color-primary);
144
+ color: var(--color-primary);
145
+ padding: 2px 6px;
146
+ border-radius: 2px;
147
+ font-size: 10px;
148
+ cursor: pointer;
149
+ transition: all 0.2s;
150
+ }
151
+
152
+ .btn-micro:hover {
153
+ background-color: var(--color-primary-alpha);
154
+ }
155
+ </style>
@@ -1,184 +1,184 @@
1
- <!-- Code Suggestion Panel with Before/After -->
2
- <div class="code-suggestion-panel card" role="region" aria-label="Code suggestion">
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">{{ suggestionTitle }}</h4>
6
- <p class="text-xs text-secondary mt-1">In {{ fileName }} at line {{ lineNumber }}</p>
7
- </div>
8
- <div class="badge" data-severity="{{ severity }}">
9
- {{ severityLabel }}
10
- </div>
11
- </div>
12
-
13
- <!-- Description -->
14
- <div class="mb-3 pb-3 border-b">
15
- <p class="text-sm">{{ suggestionDescription }}</p>
16
- </div>
17
-
18
- <!-- Before/After Code Tabs -->
19
- <div class="tabs mb-3" role="tablist">
20
- <button class="tab-button active" data-tab="before" role="tab" aria-selected="true">
21
- Before
22
- </button>
23
- <button class="tab-button" data-tab="after" role="tab" aria-selected="false">
24
- After
25
- </button>
26
- <button class="tab-button" data-tab="explanation" role="tab" aria-selected="false">
27
- Why?
28
- </button>
29
- </div>
30
-
31
- <!-- Before Code -->
32
- <div class="tab-panel active" data-tab="before">
33
- <pre class="code-block"><code class="language-{{ language }}">{{ codeBeforeHighlighted }}</code></pre>
34
- </div>
35
-
36
- <!-- After Code -->
37
- <div class="tab-panel hidden" data-tab="after">
38
- <pre class="code-block"><code class="language-{{ language }}">{{ codeAfterHighlighted }}</code></pre>
39
- </div>
40
-
41
- <!-- Explanation -->
42
- <div class="tab-panel hidden" data-tab="explanation">
43
- <div class="explanation-content text-sm space-y-2">
44
- <p>{{ explanationText }}</p>
45
- {{ if benefitsText }}
46
- <div class="bg-green-50 p-2 rounded text-xs">
47
- <strong>Benefits:</strong> {{ benefitsText }}
48
- </div>
49
- {{ end }}
50
- </div>
51
- </div>
52
-
53
- <!-- Actions -->
54
- <div class="flex gap-2 mt-3 pt-3 border-t">
55
- <button class="btn btn-sm btn-primary" data-action="apply" aria-label="Apply suggestion">
56
- Apply
57
- </button>
58
- <button class="btn btn-sm btn-secondary" data-action="skip" aria-label="Skip suggestion">
59
- Skip
60
- </button>
61
- <button class="btn btn-sm btn-secondary" data-action="dismiss" aria-label="Dismiss suggestion">
62
- Dismiss
63
- </button>
64
- </div>
65
- </div>
66
-
67
- <style scoped>
68
- .code-suggestion-panel {
69
- padding: 16px;
70
- }
71
-
72
- .tabs {
73
- display: flex;
74
- gap: 8px;
75
- border-bottom: 1px solid var(--color-border);
76
- margin-bottom: 16px;
77
- }
78
-
79
- .tab-button {
80
- padding: 8px 12px;
81
- background: none;
82
- border: none;
83
- color: var(--color-text-secondary);
84
- font-size: 13px;
85
- cursor: pointer;
86
- border-bottom: 2px solid transparent;
87
- transition: all 0.2s;
88
- }
89
-
90
- .tab-button.active {
91
- color: var(--color-primary);
92
- border-bottom-color: var(--color-primary);
93
- }
94
-
95
- .tab-panel {
96
- display: none;
97
- }
98
-
99
- .tab-panel.active {
100
- display: block;
101
- }
102
-
103
- .code-block {
104
- background-color: var(--color-bg-code);
105
- border: 1px solid var(--color-border);
106
- border-radius: 4px;
107
- padding: 12px;
108
- font-size: 12px;
109
- line-height: 1.5;
110
- font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
111
- overflow-x: auto;
112
- margin: 0;
113
- }
114
-
115
- .badge {
116
- padding: 4px 8px;
117
- border-radius: 3px;
118
- font-size: 11px;
119
- font-weight: 600;
120
- }
121
-
122
- .badge[data-severity="critical"] {
123
- background-color: #dc2626;
124
- color: white;
125
- }
126
-
127
- .badge[data-severity="high"] {
128
- background-color: #ea580c;
129
- color: white;
130
- }
131
-
132
- .badge[data-severity="medium"] {
133
- background-color: #f59e0b;
134
- color: white;
135
- }
136
-
137
- .badge[data-severity="low"] {
138
- background-color: #3b82f6;
139
- color: white;
140
- }
141
-
142
- .explanation-content {
143
- padding: 8px;
144
- background-color: var(--color-bg-secondary);
145
- border-radius: 3px;
146
- }
147
-
148
- .btn {
149
- padding: 6px 10px;
150
- border-radius: 3px;
151
- font-size: 12px;
152
- cursor: pointer;
153
- border: none;
154
- transition: all 0.2s;
155
- }
156
-
157
- .btn-sm {
158
- padding: 4px 8px;
159
- font-size: 11px;
160
- }
161
-
162
- .btn-primary {
163
- background-color: var(--color-primary);
164
- color: white;
165
- }
166
-
167
- .btn-primary:hover {
168
- background-color: var(--color-primary-dark);
169
- }
170
-
171
- .btn-secondary {
172
- background-color: var(--color-bg-secondary);
173
- color: var(--color-text-primary);
174
- border: 1px solid var(--color-border);
175
- }
176
-
177
- .btn-secondary:hover {
178
- background-color: var(--color-bg-hover);
179
- }
180
-
181
- .hidden {
182
- display: none;
183
- }
184
- </style>
1
+ <!-- Code Suggestion Panel with Before/After -->
2
+ <div class="code-suggestion-panel card" role="region" aria-label="Code suggestion">
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">{{ suggestionTitle }}</h4>
6
+ <p class="text-xs text-secondary mt-1">In {{ fileName }} at line {{ lineNumber }}</p>
7
+ </div>
8
+ <div class="badge" data-severity="{{ severity }}">
9
+ {{ severityLabel }}
10
+ </div>
11
+ </div>
12
+
13
+ <!-- Description -->
14
+ <div class="mb-3 pb-3 border-b">
15
+ <p class="text-sm">{{ suggestionDescription }}</p>
16
+ </div>
17
+
18
+ <!-- Before/After Code Tabs -->
19
+ <div class="tabs mb-3" role="tablist">
20
+ <button class="tab-button active" data-tab="before" role="tab" aria-selected="true">
21
+ Before
22
+ </button>
23
+ <button class="tab-button" data-tab="after" role="tab" aria-selected="false">
24
+ After
25
+ </button>
26
+ <button class="tab-button" data-tab="explanation" role="tab" aria-selected="false">
27
+ Why?
28
+ </button>
29
+ </div>
30
+
31
+ <!-- Before Code -->
32
+ <div class="tab-panel active" data-tab="before">
33
+ <pre class="code-block"><code class="language-{{ language }}">{{ codeBeforeHighlighted }}</code></pre>
34
+ </div>
35
+
36
+ <!-- After Code -->
37
+ <div class="tab-panel hidden" data-tab="after">
38
+ <pre class="code-block"><code class="language-{{ language }}">{{ codeAfterHighlighted }}</code></pre>
39
+ </div>
40
+
41
+ <!-- Explanation -->
42
+ <div class="tab-panel hidden" data-tab="explanation">
43
+ <div class="explanation-content text-sm space-y-2">
44
+ <p>{{ explanationText }}</p>
45
+ {{ if benefitsText }}
46
+ <div class="bg-green-50 p-2 rounded text-xs">
47
+ <strong>Benefits:</strong> {{ benefitsText }}
48
+ </div>
49
+ {{ end }}
50
+ </div>
51
+ </div>
52
+
53
+ <!-- Actions -->
54
+ <div class="flex gap-2 mt-3 pt-3 border-t">
55
+ <button class="btn btn-sm btn-primary" data-action="apply" aria-label="Apply suggestion">
56
+ Apply
57
+ </button>
58
+ <button class="btn btn-sm btn-secondary" data-action="skip" aria-label="Skip suggestion">
59
+ Skip
60
+ </button>
61
+ <button class="btn btn-sm btn-secondary" data-action="dismiss" aria-label="Dismiss suggestion">
62
+ Dismiss
63
+ </button>
64
+ </div>
65
+ </div>
66
+
67
+ <style scoped>
68
+ .code-suggestion-panel {
69
+ padding: 16px;
70
+ }
71
+
72
+ .tabs {
73
+ display: flex;
74
+ gap: 8px;
75
+ border-bottom: 1px solid var(--color-border);
76
+ margin-bottom: 16px;
77
+ }
78
+
79
+ .tab-button {
80
+ padding: 8px 12px;
81
+ background: none;
82
+ border: none;
83
+ color: var(--color-text-secondary);
84
+ font-size: 13px;
85
+ cursor: pointer;
86
+ border-bottom: 2px solid transparent;
87
+ transition: all 0.2s;
88
+ }
89
+
90
+ .tab-button.active {
91
+ color: var(--color-primary);
92
+ border-bottom-color: var(--color-primary);
93
+ }
94
+
95
+ .tab-panel {
96
+ display: none;
97
+ }
98
+
99
+ .tab-panel.active {
100
+ display: block;
101
+ }
102
+
103
+ .code-block {
104
+ background-color: var(--color-bg-code);
105
+ border: 1px solid var(--color-border);
106
+ border-radius: 4px;
107
+ padding: 12px;
108
+ font-size: 12px;
109
+ line-height: 1.5;
110
+ font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
111
+ overflow-x: auto;
112
+ margin: 0;
113
+ }
114
+
115
+ .badge {
116
+ padding: 4px 8px;
117
+ border-radius: 3px;
118
+ font-size: 11px;
119
+ font-weight: 600;
120
+ }
121
+
122
+ .badge[data-severity="critical"] {
123
+ background-color: #dc2626;
124
+ color: white;
125
+ }
126
+
127
+ .badge[data-severity="high"] {
128
+ background-color: #ea580c;
129
+ color: white;
130
+ }
131
+
132
+ .badge[data-severity="medium"] {
133
+ background-color: #f59e0b;
134
+ color: white;
135
+ }
136
+
137
+ .badge[data-severity="low"] {
138
+ background-color: #3b82f6;
139
+ color: white;
140
+ }
141
+
142
+ .explanation-content {
143
+ padding: 8px;
144
+ background-color: var(--color-bg-secondary);
145
+ border-radius: 3px;
146
+ }
147
+
148
+ .btn {
149
+ padding: 6px 10px;
150
+ border-radius: 3px;
151
+ font-size: 12px;
152
+ cursor: pointer;
153
+ border: none;
154
+ transition: all 0.2s;
155
+ }
156
+
157
+ .btn-sm {
158
+ padding: 4px 8px;
159
+ font-size: 11px;
160
+ }
161
+
162
+ .btn-primary {
163
+ background-color: var(--color-primary);
164
+ color: white;
165
+ }
166
+
167
+ .btn-primary:hover {
168
+ background-color: var(--color-primary-dark);
169
+ }
170
+
171
+ .btn-secondary {
172
+ background-color: var(--color-bg-secondary);
173
+ color: var(--color-text-primary);
174
+ border: 1px solid var(--color-border);
175
+ }
176
+
177
+ .btn-secondary:hover {
178
+ background-color: var(--color-bg-hover);
179
+ }
180
+
181
+ .hidden {
182
+ display: none;
183
+ }
184
+ </style>