diff --git a/README.md b/README.md
index 13a4a84..228d35b 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
Painel administrativo web para orquestração de agentes [Claude Code](https://docs.anthropic.com/en/docs/claude-code). Crie, configure e execute múltiplos agentes com diferentes personalidades, modelos e diretórios de trabalho — tudo a partir de uma interface visual profissional.
+
+
## Funcionalidades
### Gerenciamento de Agentes
diff --git a/package-lock.json b/package-lock.json
index 261a572..fba7433 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,14 +1,15 @@
{
"name": "agents-orchestrator",
- "version": "1.0.0",
+ "version": "1.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "agents-orchestrator",
- "version": "1.0.0",
+ "version": "1.1.0",
"dependencies": {
"express": "^4.21.0",
+ "express-rate-limit": "^8.2.1",
"node-cron": "^3.0.3",
"uuid": "^10.0.0",
"ws": "^8.18.0"
@@ -279,6 +280,24 @@
"url": "https://opencollective.com/express"
}
},
+ "node_modules/express-rate-limit": {
+ "version": "8.2.1",
+ "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.2.1.tgz",
+ "integrity": "sha512-PCZEIEIxqwhzw4KF0n7QF4QqruVTcF73O5kFKUnGOyjbCCgizBBiFaYpd/fnBLUMPw/BWw9OsiN7GgrNYr7j6g==",
+ "license": "MIT",
+ "dependencies": {
+ "ip-address": "10.0.1"
+ },
+ "engines": {
+ "node": ">= 16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/express-rate-limit"
+ },
+ "peerDependencies": {
+ "express": ">= 4.11"
+ }
+ },
"node_modules/finalhandler": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.2.tgz",
@@ -435,6 +454,15 @@
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
"license": "ISC"
},
+ "node_modules/ip-address": {
+ "version": "10.0.1",
+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.0.1.tgz",
+ "integrity": "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==",
+ "license": "MIT",
+ "engines": {
+ "node": ">= 12"
+ }
+ },
"node_modules/ipaddr.js": {
"version": "1.9.1",
"resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz",
diff --git a/package.json b/package.json
index 176e463..70c4586 100644
--- a/package.json
+++ b/package.json
@@ -10,8 +10,9 @@
},
"dependencies": {
"express": "^4.21.0",
- "ws": "^8.18.0",
+ "express-rate-limit": "^8.2.1",
"node-cron": "^3.0.3",
- "uuid": "^10.0.0"
+ "uuid": "^10.0.0",
+ "ws": "^8.18.0"
}
}
diff --git a/public/css/styles.css b/public/css/styles.css
index e17ff79..3f29115 100644
--- a/public/css/styles.css
+++ b/public/css/styles.css
@@ -447,6 +447,8 @@ textarea {
border-radius: 12px;
overflow: hidden;
transition: all 0.3s;
+ display: flex;
+ flex-direction: column;
animation: fadeInUp 0.3s ease both;
}
@@ -461,6 +463,7 @@ textarea {
display: flex;
flex-direction: column;
gap: 12px;
+ flex: 1;
}
.agent-card-top {
@@ -529,6 +532,7 @@ textarea {
gap: 8px;
padding: 12px 20px;
border-top: 1px solid var(--border-primary);
+ margin-top: auto;
}
.badge {
@@ -664,7 +668,7 @@ textarea {
color: #ffffff;
}
-.btn-icon {
+.btn.btn-icon {
width: 36px;
height: 36px;
padding: 0;
@@ -679,6 +683,7 @@ textarea {
.btn-sm.btn-icon {
width: 30px;
height: 30px;
+ padding: 0;
}
.btn-lg {
@@ -1967,6 +1972,7 @@ tbody tr:hover td {
flex: 1;
padding: 24px 32px;
overflow-y: auto;
+ overflow-x: hidden;
}
.section {
@@ -3395,6 +3401,10 @@ tbody tr:hover td {
color: #8b5cf6;
}
+#history-list {
+ overflow: hidden;
+}
+
.history-card {
background-color: var(--bg-card);
border: 1px solid var(--border-primary);
@@ -3406,6 +3416,8 @@ tbody tr:hover td {
transition: all 0.2s;
animation: fadeInUp 0.2s ease both;
margin-bottom: 8px;
+ overflow: hidden;
+ min-width: 0;
}
.history-card:hover {
@@ -3419,6 +3431,7 @@ tbody tr:hover td {
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
+ min-width: 0;
}
.history-card-identity {
@@ -3435,6 +3448,7 @@ tbody tr:hover td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ max-width: 300px;
}
.history-card-task {
@@ -3443,6 +3457,7 @@ tbody tr:hover td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ max-width: 100%;
}
.history-card-info {
@@ -4022,3 +4037,210 @@ tbody tr:hover td {
display: block;
white-space: pre;
}
+
+[data-theme="light"] {
+ --bg-primary: #f5f6f8;
+ --bg-secondary: #ffffff;
+ --bg-tertiary: #eef0f4;
+ --bg-card: #ffffff;
+ --bg-card-hover: #f8f9fb;
+ --bg-input: #eef0f4;
+ --text-primary: #1a1d23;
+ --text-secondary: #4a5068;
+ --text-tertiary: #7c8298;
+ --border-color: #dde0e9;
+ --border-light: #e8ebf0;
+ --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
+ --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
+ --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
+}
+
+[data-theme="light"] .sidebar { background: #ffffff; border-right: 1px solid var(--border-color); }
+[data-theme="light"] .sidebar .nav-item:hover,
+[data-theme="light"] .sidebar .nav-item.active { background: #eef0f4; }
+[data-theme="light"] .header { background: #ffffff; border-bottom: 1px solid var(--border-color); }
+[data-theme="light"] .card { background: #ffffff; border: 1px solid var(--border-color); }
+[data-theme="light"] .modal-content { background: #ffffff; border: 1px solid var(--border-color); }
+[data-theme="light"] .terminal-output { background: #1e1e2e; color: #cdd6f4; }
+[data-theme="light"] .input,
+[data-theme="light"] .select,
+[data-theme="light"] textarea { background: #eef0f4; border-color: #dde0e9; color: #1a1d23; }
+[data-theme="light"] .badge { opacity: 0.9; }
+[data-theme="light"] .table th { background: #eef0f4; }
+[data-theme="light"] .table td { border-color: #e8ebf0; }
+[data-theme="light"] .metrics-card { background: #ffffff; border: 1px solid var(--border-color); }
+
+body, .sidebar, .header, .card, .modal-content, .input, .select, textarea, .metrics-card {
+ transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
+}
+
+.theme-icon-dark { display: none; }
+.theme-icon-light { display: block; }
+[data-theme="light"] .theme-icon-dark { display: block; }
+[data-theme="light"] .theme-icon-light { display: none; }
+
+.charts-row {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 1.25rem;
+ margin-bottom: 1.25rem;
+}
+.charts-row--triple { grid-template-columns: repeat(3, 1fr); }
+.chart-container {
+ background: var(--bg-card);
+ border-radius: 12px;
+ padding: 1.25rem;
+ border: 1px solid var(--border-color);
+ position: relative;
+ height: 300px;
+}
+.charts-row--triple .chart-container {
+ height: auto;
+ min-height: 200px;
+ display: flex;
+ flex-direction: column;
+}
+.charts-row--triple .chart-container canvas {
+ max-height: 200px;
+ align-self: center;
+}
+.chart-container canvas {
+ max-height: calc(100% - 2.5rem);
+}
+.chart-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ margin-bottom: 0.75rem;
+}
+.chart-header h3 {
+ font-size: 0.8125rem;
+ font-weight: 600;
+ color: var(--text-secondary);
+ margin: 0;
+}
+.select-sm {
+ padding: 0.25rem 0.5rem;
+ font-size: 0.75rem;
+ border-radius: 6px;
+ background: var(--bg-input);
+ border: 1px solid var(--border-color);
+ color: var(--text-primary);
+ cursor: pointer;
+}
+@media (max-width: 1024px) {
+ .charts-row, .charts-row--triple { grid-template-columns: 1fr; }
+}
+
+.notification-wrapper { position: relative; }
+.notification-badge {
+ position: absolute; top: -4px; right: -4px;
+ background: var(--danger); color: white;
+ font-size: 0.625rem; font-weight: 700;
+ min-width: 18px; height: 18px; border-radius: 9px;
+ display: flex; align-items: center; justify-content: center;
+ padding: 0 4px; pointer-events: none;
+ animation: pulse 2s infinite;
+}
+.notification-panel {
+ position: absolute; top: calc(100% + 8px); right: 0;
+ width: 380px; max-height: 480px;
+ background: var(--bg-card);
+ border: 1px solid var(--border-color);
+ border-radius: 12px;
+ box-shadow: var(--shadow-lg);
+ z-index: 1000;
+ display: flex; flex-direction: column; overflow: hidden;
+}
+.notification-panel-header {
+ display: flex; align-items: center; justify-content: space-between;
+ padding: 0.75rem 1rem;
+ border-bottom: 1px solid var(--border-color);
+}
+.notification-panel-header h3 { font-size: 0.8125rem; font-weight: 600; margin: 0; }
+.notification-panel-actions { display: flex; gap: 0.25rem; }
+.notification-list { flex: 1; overflow-y: auto; max-height: 380px; }
+.notification-item {
+ display: flex; gap: 0.75rem; padding: 0.75rem 1rem;
+ border-bottom: 1px solid var(--border-light);
+ cursor: pointer; transition: background 0.15s;
+}
+.notification-item:hover { background: var(--bg-tertiary); }
+.notification-item.unread { background: rgba(99, 102, 241, 0.05); }
+.notification-item-icon {
+ flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
+ display: flex; align-items: center; justify-content: center; font-size: 14px;
+}
+.notification-item-icon.success { background: rgba(34, 197, 94, 0.1); color: var(--success); }
+.notification-item-icon.error { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
+.notification-item-icon.info { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
+.notification-item-content { flex: 1; min-width: 0; }
+.notification-item-title { font-size: 0.8125rem; font-weight: 600; color: var(--text-primary); }
+.notification-item-message { font-size: 0.75rem; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
+.notification-item-time { font-size: 0.6875rem; color: var(--text-tertiary); margin-top: 2px; }
+.notification-empty { padding: 2rem; text-align: center; color: var(--text-tertiary); font-size: 0.8125rem; }
+
+.terminal-action-toolbar {
+ display: flex; align-items: center; justify-content: space-between;
+ padding: 0.5rem 0.75rem;
+ background: var(--bg-tertiary);
+ border: 1px solid var(--border-color);
+ border-bottom: none;
+ border-radius: 8px 8px 0 0;
+}
+.terminal-toolbar-left, .terminal-toolbar-right { display: flex; align-items: center; gap: 0.25rem; }
+.terminal-toggle-label {
+ display: flex; align-items: center; gap: 0.375rem;
+ font-size: 0.75rem; color: var(--text-secondary); cursor: pointer; user-select: none;
+}
+.terminal-toggle-label input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--primary); }
+.terminal-search-bar {
+ display: flex; align-items: center; gap: 0.5rem;
+ padding: 0.5rem 0.75rem;
+ background: var(--bg-secondary);
+ border: 1px solid var(--border-color); border-top: none;
+}
+.terminal-search-bar .input--sm { flex: 1; max-width: 300px; }
+.terminal-search-count { font-size: 0.75rem; color: var(--text-tertiary); min-width: 40px; text-align: center; }
+.terminal-search-highlight { background: rgba(250, 204, 21, 0.4); border-radius: 2px; }
+.terminal-search-highlight.active { background: rgba(250, 204, 21, 0.8); }
+
+.skeleton-pulse {
+ background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-card-hover) 50%, var(--bg-tertiary) 75%);
+ background-size: 200% 100%;
+ animation: skeleton-pulse 1.5s ease-in-out infinite;
+ border-radius: 6px;
+}
+@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
+
+.hidden { display: none !important; }
+
+.report-content {
+ max-height: 70vh;
+ overflow-y: auto;
+ padding: 1.5rem;
+ background: var(--bg-primary);
+ border-radius: 8px;
+ border: 1px solid var(--border-primary);
+}
+
+.report-markdown {
+ white-space: pre-wrap;
+ word-wrap: break-word;
+ font-family: 'JetBrains Mono', monospace;
+ font-size: 0.85rem;
+ line-height: 1.7;
+ color: var(--text-primary);
+ tab-size: 2;
+}
+
+.report-toast {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ cursor: pointer;
+}
+
+.report-toast:hover {
+ text-decoration: underline;
+}
diff --git a/public/index.html b/public/index.html
index 962d721..8cd7a7a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,6 +4,7 @@
Agents Orchestrator
+
@@ -104,13 +105,35 @@
Sistema
+
+
@@ -138,7 +161,7 @@
-
+
Execuções Hoje
@@ -174,6 +197,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 0/0
+
+
+
+
@@ -471,6 +560,10 @@
+
+
+
+
+
+
+
+ -
+ Fechar modal
+ Esc
+
+ -
+ Novo agente (em Agentes)
+ N
+
+ -
+ Dashboard
+ 1
+
+ -
+ Agentes
+ 2
+
+ -
+ Tarefas
+ 3
+
+ -
+ Agendamentos
+ 4
+
+ -
+ Pipelines
+ 5
+
+ -
+ Terminal
+ 6
+
+ -
+ Histórico
+ 7
+
+ -
+ Webhooks
+ 8
+
+ -
+ Configurações
+ 9
+
@@ -778,11 +929,11 @@
Revisão OWASP