htmlgraph 0.24.1__py3-none-any.whl → 0.25.0__py3-none-any.whl

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 (103) hide show
  1. htmlgraph/__init__.py +20 -1
  2. htmlgraph/agent_detection.py +26 -10
  3. htmlgraph/analytics/cross_session.py +4 -3
  4. htmlgraph/analytics/work_type.py +52 -16
  5. htmlgraph/analytics_index.py +51 -19
  6. htmlgraph/api/__init__.py +3 -0
  7. htmlgraph/api/main.py +2115 -0
  8. htmlgraph/api/static/htmx.min.js +1 -0
  9. htmlgraph/api/static/style-redesign.css +1344 -0
  10. htmlgraph/api/static/style.css +1079 -0
  11. htmlgraph/api/templates/dashboard-redesign.html +812 -0
  12. htmlgraph/api/templates/dashboard.html +783 -0
  13. htmlgraph/api/templates/partials/activity-feed-hierarchical.html +326 -0
  14. htmlgraph/api/templates/partials/activity-feed.html +570 -0
  15. htmlgraph/api/templates/partials/agents-redesign.html +317 -0
  16. htmlgraph/api/templates/partials/agents.html +317 -0
  17. htmlgraph/api/templates/partials/event-traces.html +373 -0
  18. htmlgraph/api/templates/partials/features-kanban-redesign.html +509 -0
  19. htmlgraph/api/templates/partials/features.html +509 -0
  20. htmlgraph/api/templates/partials/metrics-redesign.html +346 -0
  21. htmlgraph/api/templates/partials/metrics.html +346 -0
  22. htmlgraph/api/templates/partials/orchestration-redesign.html +443 -0
  23. htmlgraph/api/templates/partials/orchestration.html +163 -0
  24. htmlgraph/api/templates/partials/spawners.html +375 -0
  25. htmlgraph/atomic_ops.py +560 -0
  26. htmlgraph/builders/base.py +55 -1
  27. htmlgraph/builders/bug.py +17 -2
  28. htmlgraph/builders/chore.py +17 -2
  29. htmlgraph/builders/epic.py +17 -2
  30. htmlgraph/builders/feature.py +25 -2
  31. htmlgraph/builders/phase.py +17 -2
  32. htmlgraph/builders/spike.py +27 -2
  33. htmlgraph/builders/track.py +14 -0
  34. htmlgraph/cigs/__init__.py +4 -0
  35. htmlgraph/cigs/reporter.py +818 -0
  36. htmlgraph/cli.py +1427 -401
  37. htmlgraph/cli_commands/__init__.py +1 -0
  38. htmlgraph/cli_commands/feature.py +195 -0
  39. htmlgraph/cli_framework.py +115 -0
  40. htmlgraph/collections/__init__.py +2 -0
  41. htmlgraph/collections/base.py +21 -0
  42. htmlgraph/collections/session.py +189 -0
  43. htmlgraph/collections/spike.py +7 -1
  44. htmlgraph/collections/task_delegation.py +236 -0
  45. htmlgraph/collections/traces.py +482 -0
  46. htmlgraph/config.py +113 -0
  47. htmlgraph/converter.py +41 -0
  48. htmlgraph/cost_analysis/__init__.py +5 -0
  49. htmlgraph/cost_analysis/analyzer.py +438 -0
  50. htmlgraph/dashboard.html +3315 -492
  51. htmlgraph-0.24.1.data/data/htmlgraph/dashboard.html → htmlgraph/dashboard.html.backup +2246 -248
  52. htmlgraph/dashboard.html.bak +7181 -0
  53. htmlgraph/dashboard.html.bak2 +7231 -0
  54. htmlgraph/dashboard.html.bak3 +7232 -0
  55. htmlgraph/db/__init__.py +38 -0
  56. htmlgraph/db/queries.py +790 -0
  57. htmlgraph/db/schema.py +1334 -0
  58. htmlgraph/deploy.py +26 -27
  59. htmlgraph/docs/API_REFERENCE.md +841 -0
  60. htmlgraph/docs/HTTP_API.md +750 -0
  61. htmlgraph/docs/INTEGRATION_GUIDE.md +752 -0
  62. htmlgraph/docs/ORCHESTRATION_PATTERNS.md +710 -0
  63. htmlgraph/docs/README.md +533 -0
  64. htmlgraph/docs/version_check.py +3 -1
  65. htmlgraph/error_handler.py +544 -0
  66. htmlgraph/event_log.py +2 -0
  67. htmlgraph/hooks/__init__.py +8 -0
  68. htmlgraph/hooks/bootstrap.py +169 -0
  69. htmlgraph/hooks/context.py +271 -0
  70. htmlgraph/hooks/drift_handler.py +521 -0
  71. htmlgraph/hooks/event_tracker.py +405 -15
  72. htmlgraph/hooks/post_tool_use_handler.py +257 -0
  73. htmlgraph/hooks/pretooluse.py +476 -6
  74. htmlgraph/hooks/prompt_analyzer.py +648 -0
  75. htmlgraph/hooks/session_handler.py +583 -0
  76. htmlgraph/hooks/state_manager.py +501 -0
  77. htmlgraph/hooks/subagent_stop.py +309 -0
  78. htmlgraph/hooks/task_enforcer.py +39 -0
  79. htmlgraph/models.py +111 -15
  80. htmlgraph/operations/fastapi_server.py +230 -0
  81. htmlgraph/orchestration/headless_spawner.py +22 -14
  82. htmlgraph/pydantic_models.py +476 -0
  83. htmlgraph/quality_gates.py +350 -0
  84. htmlgraph/repo_hash.py +511 -0
  85. htmlgraph/sdk.py +348 -10
  86. htmlgraph/server.py +194 -0
  87. htmlgraph/session_hooks.py +300 -0
  88. htmlgraph/session_manager.py +131 -1
  89. htmlgraph/session_registry.py +587 -0
  90. htmlgraph/session_state.py +436 -0
  91. htmlgraph/system_prompts.py +449 -0
  92. htmlgraph/templates/orchestration-view.html +350 -0
  93. htmlgraph/track_builder.py +19 -0
  94. htmlgraph/validation.py +115 -0
  95. htmlgraph-0.25.0.data/data/htmlgraph/dashboard.html +7417 -0
  96. {htmlgraph-0.24.1.dist-info → htmlgraph-0.25.0.dist-info}/METADATA +91 -64
  97. {htmlgraph-0.24.1.dist-info → htmlgraph-0.25.0.dist-info}/RECORD +103 -42
  98. {htmlgraph-0.24.1.data → htmlgraph-0.25.0.data}/data/htmlgraph/styles.css +0 -0
  99. {htmlgraph-0.24.1.data → htmlgraph-0.25.0.data}/data/htmlgraph/templates/AGENTS.md.template +0 -0
  100. {htmlgraph-0.24.1.data → htmlgraph-0.25.0.data}/data/htmlgraph/templates/CLAUDE.md.template +0 -0
  101. {htmlgraph-0.24.1.data → htmlgraph-0.25.0.data}/data/htmlgraph/templates/GEMINI.md.template +0 -0
  102. {htmlgraph-0.24.1.dist-info → htmlgraph-0.25.0.dist-info}/WHEEL +0 -0
  103. {htmlgraph-0.24.1.dist-info → htmlgraph-0.25.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,317 @@
1
+ <div class="view-container agents-view">
2
+ <div class="view-header">
3
+ <h2>Agent Fleet Status</h2>
4
+ <div class="view-description">
5
+ Real-time performance metrics for all active agents
6
+ </div>
7
+ </div>
8
+
9
+ <div class="agents-grid">
10
+ {% if agents %}
11
+ {% for agent in agents %}
12
+ <div class="agent-card">
13
+ <div class="agent-header">
14
+ <div class="agent-icon {{ agent.model|lower }}">
15
+ {% if agent.model == 'claude' %}
16
+ C
17
+ {% elif agent.model == 'gemini' %}
18
+ G
19
+ {% elif agent.model == 'copilot' %}
20
+ M
21
+ {% else %}
22
+ A
23
+ {% endif %}
24
+ </div>
25
+ <div>
26
+ <h4 class="agent-name">{{ agent.name or agent.id }}</h4>
27
+ <div class="agent-status {% if agent.status == 'active' %}active{% else %}idle{% endif %}">
28
+ <span class="status-dot"></span>
29
+ {{ agent.status or 'idle' }}
30
+ </div>
31
+ </div>
32
+ </div>
33
+
34
+ <div class="agent-stats">
35
+ <div class="stat-item">
36
+ <span class="stat-item-label">Model</span>
37
+ <span class="stat-item-value">{{ agent.model or 'unknown' }}</span>
38
+ </div>
39
+ <div class="stat-item">
40
+ <span class="stat-item-label">Activity</span>
41
+ <span class="stat-item-value">{{ agent.event_count or 0 }}</span>
42
+ </div>
43
+ <div class="stat-item">
44
+ <span class="stat-item-label">Tokens</span>
45
+ <span class="stat-item-value">{% if agent.total_tokens %}{{ "{:,}".format(agent.total_tokens) }}{% else %}0{% endif %}</span>
46
+ </div>
47
+ <div class="stat-item">
48
+ <span class="stat-item-label">Avg Time</span>
49
+ <span class="stat-item-value">{% if agent.avg_duration %}{{ "%.2f"|format(agent.avg_duration) }}s{% else %}—{% endif %}</span>
50
+ </div>
51
+ </div>
52
+
53
+ <div class="agent-details" style="border-top: 1px solid var(--border-subtle); padding-top: var(--spacing-lg); margin-top: var(--spacing-lg);">
54
+ {% if agent.last_activity %}
55
+ <div class="detail-row">
56
+ <span class="detail-label">Last Activity</span>
57
+ <span class="detail-value" data-utc-time="{{ agent.last_activity }}">{{ agent.last_activity }}</span>
58
+ </div>
59
+ {% endif %}
60
+
61
+ {% if agent.success_rate %}
62
+ <div class="detail-row" style="margin-top: var(--spacing-md);">
63
+ <span class="detail-label">Success Rate</span>
64
+ <div style="display: flex; align-items: center; gap: var(--spacing-md);">
65
+ <div style="flex: 1; height: 6px; background: var(--bg-darker); border-radius: 2px; overflow: hidden;">
66
+ <div style="height: 100%; background: linear-gradient(90deg, var(--status-success) 0%, var(--accent-lime) 100%); width: {{ agent.success_rate }}%;"></div>
67
+ </div>
68
+ <span class="stat-item-value" style="min-width: 50px;">{{ agent.success_rate }}%</span>
69
+ </div>
70
+ </div>
71
+ {% endif %}
72
+
73
+ {% if agent.error_count %}
74
+ <div class="detail-row" style="margin-top: var(--spacing-md);">
75
+ <span class="detail-label">Errors</span>
76
+ <span class="stat-item-value" style="color: var(--status-blocked);">{{ agent.error_count }}</span>
77
+ </div>
78
+ {% endif %}
79
+ </div>
80
+ </div>
81
+ {% endfor %}
82
+ {% else %}
83
+ <div class="empty-state" style="grid-column: 1 / -1;">
84
+ <p>No agents found</p>
85
+ <small>Agent activity will appear here as tasks are delegated</small>
86
+ </div>
87
+ {% endif %}
88
+ </div>
89
+ </div>
90
+
91
+ <script>
92
+ // Convert timestamps after load
93
+ function convertTimestampsToLocal() {
94
+ const timestampElements = document.querySelectorAll('[data-utc-time]');
95
+ timestampElements.forEach(element => {
96
+ const utcTime = element.getAttribute('data-utc-time');
97
+ if (utcTime) {
98
+ try {
99
+ const date = new Date(utcTime.replace(' ', 'T') + 'Z');
100
+ const localTime = new Intl.DateTimeFormat('en-US', {
101
+ year: 'numeric',
102
+ month: '2-digit',
103
+ day: '2-digit',
104
+ hour: '2-digit',
105
+ minute: '2-digit',
106
+ second: '2-digit',
107
+ hour12: false,
108
+ timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
109
+ }).format(date);
110
+ element.textContent = localTime;
111
+ element.setAttribute('title', `UTC: ${utcTime} | Local: ${localTime}`);
112
+ } catch (err) {
113
+ console.warn('Failed to convert timestamp:', utcTime, err);
114
+ }
115
+ }
116
+ });
117
+ }
118
+
119
+ document.addEventListener('htmx:afterSettle', function(evt) {
120
+ if (evt.detail.target.id === 'content-area' &&
121
+ document.querySelector('.agents-view')) {
122
+ convertTimestampsToLocal();
123
+ }
124
+ });
125
+
126
+ if (document.querySelector('.agents-view')) {
127
+ convertTimestampsToLocal();
128
+ }
129
+ </script>
130
+
131
+ <style>
132
+ .agents-grid {
133
+ display: grid;
134
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
135
+ gap: var(--spacing-lg);
136
+ }
137
+
138
+ .agent-card {
139
+ background: var(--bg-card);
140
+ border: 1px solid var(--border-subtle);
141
+ border-radius: 2px;
142
+ padding: var(--spacing-xl);
143
+ display: flex;
144
+ flex-direction: column;
145
+ gap: var(--spacing-lg);
146
+ transition: all var(--transition-base);
147
+ }
148
+
149
+ .agent-card:hover {
150
+ border-color: var(--accent-lime);
151
+ box-shadow: var(--shadow-lg);
152
+ transform: translateY(-4px);
153
+ }
154
+
155
+ .agent-header {
156
+ display: flex;
157
+ align-items: center;
158
+ gap: var(--spacing-lg);
159
+ padding-bottom: var(--spacing-lg);
160
+ border-bottom: 1px solid var(--border-subtle);
161
+ }
162
+
163
+ .agent-icon {
164
+ width: 56px;
165
+ height: 56px;
166
+ border-radius: 4px;
167
+ display: flex;
168
+ align-items: center;
169
+ justify-content: center;
170
+ font-size: 1.8rem;
171
+ font-weight: 700;
172
+ flex-shrink: 0;
173
+ }
174
+
175
+ .agent-icon.claude {
176
+ background: rgba(139, 92, 246, 0.2);
177
+ color: var(--agent-claude);
178
+ }
179
+
180
+ .agent-icon.gemini {
181
+ background: rgba(59, 130, 246, 0.2);
182
+ color: var(--agent-gemini);
183
+ }
184
+
185
+ .agent-icon.copilot {
186
+ background: rgba(107, 114, 128, 0.2);
187
+ color: var(--agent-copilot);
188
+ }
189
+
190
+ .agent-icon.openai {
191
+ background: rgba(16, 185, 129, 0.2);
192
+ color: var(--agent-openai);
193
+ }
194
+
195
+ .agent-name {
196
+ color: var(--text-primary);
197
+ font-size: 1.15rem;
198
+ font-weight: 700;
199
+ margin: 0;
200
+ text-transform: uppercase;
201
+ letter-spacing: 0.05em;
202
+ }
203
+
204
+ .agent-status {
205
+ display: inline-flex;
206
+ align-items: center;
207
+ gap: var(--spacing-sm);
208
+ color: var(--status-success);
209
+ font-size: 0.85rem;
210
+ text-transform: uppercase;
211
+ letter-spacing: 0.05em;
212
+ }
213
+
214
+ .agent-status.idle {
215
+ color: var(--text-muted);
216
+ }
217
+
218
+ .status-dot {
219
+ width: 8px;
220
+ height: 8px;
221
+ border-radius: 50%;
222
+ background: currentColor;
223
+ animation: pulse-dot 2s infinite;
224
+ }
225
+
226
+ @keyframes pulse-dot {
227
+ 0%, 100% { opacity: 1; }
228
+ 50% { opacity: 0.5; }
229
+ }
230
+
231
+ .agent-stats {
232
+ display: grid;
233
+ grid-template-columns: 1fr 1fr;
234
+ gap: var(--spacing-md);
235
+ }
236
+
237
+ .stat-item {
238
+ display: flex;
239
+ flex-direction: column;
240
+ gap: var(--spacing-xs);
241
+ }
242
+
243
+ .stat-item-label {
244
+ font-size: 0.75rem;
245
+ color: var(--text-muted);
246
+ text-transform: uppercase;
247
+ letter-spacing: 0.05em;
248
+ }
249
+
250
+ .stat-item-value {
251
+ font-size: 1.4rem;
252
+ color: var(--accent-lime);
253
+ font-weight: 700;
254
+ font-family: 'JetBrains Mono', monospace;
255
+ overflow: hidden;
256
+ text-overflow: ellipsis;
257
+ }
258
+
259
+ .agent-details {
260
+ display: flex;
261
+ flex-direction: column;
262
+ gap: var(--spacing-md);
263
+ }
264
+
265
+ .detail-row {
266
+ display: flex;
267
+ flex-direction: column;
268
+ gap: var(--spacing-xs);
269
+ }
270
+
271
+ .detail-label {
272
+ font-size: 0.75rem;
273
+ color: var(--text-muted);
274
+ text-transform: uppercase;
275
+ letter-spacing: 0.05em;
276
+ }
277
+
278
+ .detail-value {
279
+ color: var(--text-secondary);
280
+ font-family: 'Courier New', monospace;
281
+ word-break: break-all;
282
+ }
283
+
284
+ .empty-state {
285
+ display: flex;
286
+ flex-direction: column;
287
+ align-items: center;
288
+ justify-content: center;
289
+ height: 300px;
290
+ color: var(--text-muted);
291
+ text-align: center;
292
+ background: var(--bg-card);
293
+ border: 1px solid var(--border-subtle);
294
+ border-radius: 2px;
295
+ }
296
+
297
+ .empty-state p {
298
+ font-size: 1.1rem;
299
+ margin-bottom: var(--spacing-md);
300
+ }
301
+
302
+ .empty-state small {
303
+ color: var(--text-secondary);
304
+ }
305
+
306
+ @media (max-width: 1024px) {
307
+ .agents-grid {
308
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
309
+ }
310
+ }
311
+
312
+ @media (max-width: 768px) {
313
+ .agents-grid {
314
+ grid-template-columns: 1fr;
315
+ }
316
+ }
317
+ </style>
@@ -0,0 +1,317 @@
1
+ <div class="view-container agents-view">
2
+ <div class="view-header">
3
+ <h2>Agent Fleet Status</h2>
4
+ <div class="view-description">
5
+ Real-time performance metrics for all active agents
6
+ </div>
7
+ </div>
8
+
9
+ <div class="agents-grid">
10
+ {% if agents %}
11
+ {% for agent in agents %}
12
+ <div class="agent-card">
13
+ <div class="agent-header">
14
+ <div class="agent-icon {{ agent.model|lower }}">
15
+ {% if agent.model == 'claude' %}
16
+ C
17
+ {% elif agent.model == 'gemini' %}
18
+ G
19
+ {% elif agent.model == 'copilot' %}
20
+ M
21
+ {% else %}
22
+ A
23
+ {% endif %}
24
+ </div>
25
+ <div>
26
+ <h4 class="agent-name">{{ agent.name or agent.id }}</h4>
27
+ <div class="agent-status {% if agent.status == 'active' %}active{% else %}idle{% endif %}">
28
+ <span class="status-dot"></span>
29
+ {{ agent.status or 'idle' }}
30
+ </div>
31
+ </div>
32
+ </div>
33
+
34
+ <div class="agent-stats">
35
+ <div class="stat-item">
36
+ <span class="stat-item-label">Model</span>
37
+ <span class="stat-item-value">{{ agent.model or 'unknown' }}</span>
38
+ </div>
39
+ <div class="stat-item">
40
+ <span class="stat-item-label">Activity</span>
41
+ <span class="stat-item-value">{{ agent.event_count or 0 }}</span>
42
+ </div>
43
+ <div class="stat-item">
44
+ <span class="stat-item-label">Tokens</span>
45
+ <span class="stat-item-value">{% if agent.total_tokens %}{{ "{:,}".format(agent.total_tokens) }}{% else %}0{% endif %}</span>
46
+ </div>
47
+ <div class="stat-item">
48
+ <span class="stat-item-label">Avg Time</span>
49
+ <span class="stat-item-value">{% if agent.avg_duration %}{{ "%.2f"|format(agent.avg_duration) }}s{% else %}—{% endif %}</span>
50
+ </div>
51
+ </div>
52
+
53
+ <div class="agent-details" style="border-top: 1px solid var(--border-subtle); padding-top: var(--spacing-lg); margin-top: var(--spacing-lg);">
54
+ {% if agent.last_activity %}
55
+ <div class="detail-row">
56
+ <span class="detail-label">Last Activity</span>
57
+ <span class="detail-value" data-utc-time="{{ agent.last_activity }}">{{ agent.last_activity }}</span>
58
+ </div>
59
+ {% endif %}
60
+
61
+ {% if agent.success_rate %}
62
+ <div class="detail-row" style="margin-top: var(--spacing-md);">
63
+ <span class="detail-label">Success Rate</span>
64
+ <div style="display: flex; align-items: center; gap: var(--spacing-md);">
65
+ <div style="flex: 1; height: 6px; background: var(--bg-darker); border-radius: 2px; overflow: hidden;">
66
+ <div style="height: 100%; background: linear-gradient(90deg, var(--status-success) 0%, var(--accent-lime) 100%); width: {{ agent.success_rate }}%;"></div>
67
+ </div>
68
+ <span class="stat-item-value" style="min-width: 50px;">{{ agent.success_rate }}%</span>
69
+ </div>
70
+ </div>
71
+ {% endif %}
72
+
73
+ {% if agent.error_count %}
74
+ <div class="detail-row" style="margin-top: var(--spacing-md);">
75
+ <span class="detail-label">Errors</span>
76
+ <span class="stat-item-value" style="color: var(--status-blocked);">{{ agent.error_count }}</span>
77
+ </div>
78
+ {% endif %}
79
+ </div>
80
+ </div>
81
+ {% endfor %}
82
+ {% else %}
83
+ <div class="empty-state" style="grid-column: 1 / -1;">
84
+ <p>No agents found</p>
85
+ <small>Agent activity will appear here as tasks are delegated</small>
86
+ </div>
87
+ {% endif %}
88
+ </div>
89
+ </div>
90
+
91
+ <script>
92
+ // Convert timestamps after load
93
+ function convertTimestampsToLocal() {
94
+ const timestampElements = document.querySelectorAll('[data-utc-time]');
95
+ timestampElements.forEach(element => {
96
+ const utcTime = element.getAttribute('data-utc-time');
97
+ if (utcTime) {
98
+ try {
99
+ const date = new Date(utcTime.replace(' ', 'T') + 'Z');
100
+ const localTime = new Intl.DateTimeFormat('en-US', {
101
+ year: 'numeric',
102
+ month: '2-digit',
103
+ day: '2-digit',
104
+ hour: '2-digit',
105
+ minute: '2-digit',
106
+ second: '2-digit',
107
+ hour12: false,
108
+ timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone
109
+ }).format(date);
110
+ element.textContent = localTime;
111
+ element.setAttribute('title', `UTC: ${utcTime} | Local: ${localTime}`);
112
+ } catch (err) {
113
+ console.warn('Failed to convert timestamp:', utcTime, err);
114
+ }
115
+ }
116
+ });
117
+ }
118
+
119
+ document.addEventListener('htmx:afterSettle', function(evt) {
120
+ if (evt.detail.target.id === 'content-area' &&
121
+ document.querySelector('.agents-view')) {
122
+ convertTimestampsToLocal();
123
+ }
124
+ });
125
+
126
+ if (document.querySelector('.agents-view')) {
127
+ convertTimestampsToLocal();
128
+ }
129
+ </script>
130
+
131
+ <style>
132
+ .agents-grid {
133
+ display: grid;
134
+ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
135
+ gap: var(--spacing-lg);
136
+ }
137
+
138
+ .agent-card {
139
+ background: var(--bg-card);
140
+ border: 1px solid var(--border-subtle);
141
+ border-radius: 2px;
142
+ padding: var(--spacing-xl);
143
+ display: flex;
144
+ flex-direction: column;
145
+ gap: var(--spacing-lg);
146
+ transition: all var(--transition-base);
147
+ }
148
+
149
+ .agent-card:hover {
150
+ border-color: var(--accent-lime);
151
+ box-shadow: var(--shadow-lg);
152
+ transform: translateY(-4px);
153
+ }
154
+
155
+ .agent-header {
156
+ display: flex;
157
+ align-items: center;
158
+ gap: var(--spacing-lg);
159
+ padding-bottom: var(--spacing-lg);
160
+ border-bottom: 1px solid var(--border-subtle);
161
+ }
162
+
163
+ .agent-icon {
164
+ width: 56px;
165
+ height: 56px;
166
+ border-radius: 4px;
167
+ display: flex;
168
+ align-items: center;
169
+ justify-content: center;
170
+ font-size: 1.8rem;
171
+ font-weight: 700;
172
+ flex-shrink: 0;
173
+ }
174
+
175
+ .agent-icon.claude {
176
+ background: rgba(139, 92, 246, 0.2);
177
+ color: var(--agent-claude);
178
+ }
179
+
180
+ .agent-icon.gemini {
181
+ background: rgba(59, 130, 246, 0.2);
182
+ color: var(--agent-gemini);
183
+ }
184
+
185
+ .agent-icon.copilot {
186
+ background: rgba(107, 114, 128, 0.2);
187
+ color: var(--agent-copilot);
188
+ }
189
+
190
+ .agent-icon.openai {
191
+ background: rgba(16, 185, 129, 0.2);
192
+ color: var(--agent-openai);
193
+ }
194
+
195
+ .agent-name {
196
+ color: var(--text-primary);
197
+ font-size: 1.15rem;
198
+ font-weight: 700;
199
+ margin: 0;
200
+ text-transform: uppercase;
201
+ letter-spacing: 0.05em;
202
+ }
203
+
204
+ .agent-status {
205
+ display: inline-flex;
206
+ align-items: center;
207
+ gap: var(--spacing-sm);
208
+ color: var(--status-success);
209
+ font-size: 0.85rem;
210
+ text-transform: uppercase;
211
+ letter-spacing: 0.05em;
212
+ }
213
+
214
+ .agent-status.idle {
215
+ color: var(--text-muted);
216
+ }
217
+
218
+ .status-dot {
219
+ width: 8px;
220
+ height: 8px;
221
+ border-radius: 50%;
222
+ background: currentColor;
223
+ animation: pulse-dot 2s infinite;
224
+ }
225
+
226
+ @keyframes pulse-dot {
227
+ 0%, 100% { opacity: 1; }
228
+ 50% { opacity: 0.5; }
229
+ }
230
+
231
+ .agent-stats {
232
+ display: grid;
233
+ grid-template-columns: 1fr 1fr;
234
+ gap: var(--spacing-md);
235
+ }
236
+
237
+ .stat-item {
238
+ display: flex;
239
+ flex-direction: column;
240
+ gap: var(--spacing-xs);
241
+ }
242
+
243
+ .stat-item-label {
244
+ font-size: 0.75rem;
245
+ color: var(--text-muted);
246
+ text-transform: uppercase;
247
+ letter-spacing: 0.05em;
248
+ }
249
+
250
+ .stat-item-value {
251
+ font-size: 1.4rem;
252
+ color: var(--accent-lime);
253
+ font-weight: 700;
254
+ font-family: 'JetBrains Mono', monospace;
255
+ overflow: hidden;
256
+ text-overflow: ellipsis;
257
+ }
258
+
259
+ .agent-details {
260
+ display: flex;
261
+ flex-direction: column;
262
+ gap: var(--spacing-md);
263
+ }
264
+
265
+ .detail-row {
266
+ display: flex;
267
+ flex-direction: column;
268
+ gap: var(--spacing-xs);
269
+ }
270
+
271
+ .detail-label {
272
+ font-size: 0.75rem;
273
+ color: var(--text-muted);
274
+ text-transform: uppercase;
275
+ letter-spacing: 0.05em;
276
+ }
277
+
278
+ .detail-value {
279
+ color: var(--text-secondary);
280
+ font-family: 'Courier New', monospace;
281
+ word-break: break-all;
282
+ }
283
+
284
+ .empty-state {
285
+ display: flex;
286
+ flex-direction: column;
287
+ align-items: center;
288
+ justify-content: center;
289
+ height: 300px;
290
+ color: var(--text-muted);
291
+ text-align: center;
292
+ background: var(--bg-card);
293
+ border: 1px solid var(--border-subtle);
294
+ border-radius: 2px;
295
+ }
296
+
297
+ .empty-state p {
298
+ font-size: 1.1rem;
299
+ margin-bottom: var(--spacing-md);
300
+ }
301
+
302
+ .empty-state small {
303
+ color: var(--text-secondary);
304
+ }
305
+
306
+ @media (max-width: 1024px) {
307
+ .agents-grid {
308
+ grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
309
+ }
310
+ }
311
+
312
+ @media (max-width: 768px) {
313
+ .agents-grid {
314
+ grid-template-columns: 1fr;
315
+ }
316
+ }
317
+ </style>