neoagent 1.0.0
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.
- package/.env.example +28 -0
- package/LICENSE +21 -0
- package/README.md +42 -0
- package/bin/neoagent.js +8 -0
- package/com.neoagent.plist +45 -0
- package/docs/configuration.md +45 -0
- package/docs/skills.md +45 -0
- package/lib/manager.js +459 -0
- package/package.json +61 -0
- package/server/db/database.js +239 -0
- package/server/index.js +442 -0
- package/server/middleware/auth.js +35 -0
- package/server/public/app.html +559 -0
- package/server/public/css/app.css +608 -0
- package/server/public/css/styles.css +472 -0
- package/server/public/favicon.svg +17 -0
- package/server/public/js/app.js +3283 -0
- package/server/public/login.html +313 -0
- package/server/routes/agents.js +125 -0
- package/server/routes/auth.js +105 -0
- package/server/routes/browser.js +116 -0
- package/server/routes/mcp.js +164 -0
- package/server/routes/memory.js +193 -0
- package/server/routes/messaging.js +153 -0
- package/server/routes/protocols.js +87 -0
- package/server/routes/scheduler.js +63 -0
- package/server/routes/settings.js +98 -0
- package/server/routes/skills.js +107 -0
- package/server/routes/store.js +1192 -0
- package/server/services/ai/compaction.js +82 -0
- package/server/services/ai/engine.js +1690 -0
- package/server/services/ai/models.js +46 -0
- package/server/services/ai/multiStep.js +112 -0
- package/server/services/ai/providers/anthropic.js +181 -0
- package/server/services/ai/providers/base.js +40 -0
- package/server/services/ai/providers/google.js +187 -0
- package/server/services/ai/providers/grok.js +121 -0
- package/server/services/ai/providers/ollama.js +162 -0
- package/server/services/ai/providers/openai.js +167 -0
- package/server/services/ai/toolRunner.js +218 -0
- package/server/services/browser/controller.js +320 -0
- package/server/services/cli/executor.js +204 -0
- package/server/services/mcp/client.js +260 -0
- package/server/services/memory/embeddings.js +126 -0
- package/server/services/memory/manager.js +431 -0
- package/server/services/messaging/base.js +23 -0
- package/server/services/messaging/discord.js +238 -0
- package/server/services/messaging/manager.js +328 -0
- package/server/services/messaging/telegram.js +243 -0
- package/server/services/messaging/telnyx.js +693 -0
- package/server/services/messaging/whatsapp.js +304 -0
- package/server/services/scheduler/cron.js +312 -0
- package/server/services/websocket.js +191 -0
- package/server/utils/security.js +71 -0
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
/* ══════════════════════════════════════════
|
|
2
|
+
NeoAgent · App Layout · v2
|
|
3
|
+
══════════════════════════════════════════ */
|
|
4
|
+
|
|
5
|
+
#app { display: flex; height: 100vh; overflow: hidden; }
|
|
6
|
+
|
|
7
|
+
/* ── SIDEBAR ── */
|
|
8
|
+
|
|
9
|
+
.sidebar {
|
|
10
|
+
width: var(--sidebar-width);
|
|
11
|
+
background: var(--bg-1);
|
|
12
|
+
border-right: 1px solid var(--border);
|
|
13
|
+
display: flex; flex-direction: column;
|
|
14
|
+
flex-shrink: 0; overflow: hidden;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.sidebar-header {
|
|
18
|
+
display: flex; align-items: center;
|
|
19
|
+
padding: 16px 14px 14px;
|
|
20
|
+
border-bottom: 1px solid var(--border);
|
|
21
|
+
flex-shrink: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.sidebar-logo { display: flex; align-items: center; gap: 10px; }
|
|
25
|
+
|
|
26
|
+
.logo-icon-sm {
|
|
27
|
+
width: 30px; height: 30px;
|
|
28
|
+
background: linear-gradient(135deg, var(--accent), #8b5cf6);
|
|
29
|
+
border-radius: 8px;
|
|
30
|
+
display: flex; align-items: center; justify-content: center;
|
|
31
|
+
box-shadow: 0 2px 12px rgba(99,102,241,.4); flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
.logo-icon-sm svg { width: 16px; height: 16px; stroke: white; }
|
|
34
|
+
|
|
35
|
+
.logo-text {
|
|
36
|
+
font-weight: 700; font-size: 15px;
|
|
37
|
+
background: linear-gradient(135deg, #eaeaf4, #a5a5c8);
|
|
38
|
+
-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* main nav fills available space */
|
|
42
|
+
.sidebar-nav {
|
|
43
|
+
flex: 1; overflow-y: auto; padding: 8px;
|
|
44
|
+
display: flex; flex-direction: column; gap: 1px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.sidebar-section { flex: 1; overflow-y: auto; padding: 10px 8px; }
|
|
48
|
+
|
|
49
|
+
.sidebar-label {
|
|
50
|
+
font-size: 11px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
text-transform: uppercase;
|
|
53
|
+
letter-spacing: 0.5px;
|
|
54
|
+
color: var(--text-muted);
|
|
55
|
+
padding: 0 8px;
|
|
56
|
+
margin-bottom: 8px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.chat-history-item {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: 8px;
|
|
63
|
+
padding: 8px 12px;
|
|
64
|
+
border-radius: var(--radius);
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
color: var(--text-secondary);
|
|
67
|
+
font-size: 13px;
|
|
68
|
+
transition: all var(--transition);
|
|
69
|
+
overflow: hidden;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.chat-history-item:hover {
|
|
73
|
+
background: var(--bg-hover);
|
|
74
|
+
color: var(--text-primary);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.chat-history-item.active {
|
|
78
|
+
background: var(--accent-muted);
|
|
79
|
+
color: var(--accent);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.chat-history-item .chat-title {
|
|
83
|
+
overflow: hidden;
|
|
84
|
+
text-overflow: ellipsis;
|
|
85
|
+
white-space: nowrap;
|
|
86
|
+
flex: 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.sidebar-footer {
|
|
90
|
+
border-top: 1px solid var(--border);
|
|
91
|
+
padding: 8px;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.sidebar-btn {
|
|
96
|
+
display: flex; align-items: center; gap: 10px;
|
|
97
|
+
width: 100%; padding: 8px 10px;
|
|
98
|
+
border: none; background: transparent;
|
|
99
|
+
color: var(--text-secondary); border-radius: var(--radius);
|
|
100
|
+
cursor: pointer; font-size: 13px; font-weight: 500;
|
|
101
|
+
transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
|
|
102
|
+
text-align: left; position: relative;
|
|
103
|
+
}
|
|
104
|
+
.sidebar-btn svg { flex-shrink: 0; }
|
|
105
|
+
|
|
106
|
+
.sidebar-btn:hover {
|
|
107
|
+
background: rgba(255,255,255,.05);
|
|
108
|
+
color: var(--text-primary);
|
|
109
|
+
transform: translateX(2px);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.sidebar-btn.active {
|
|
113
|
+
background: var(--accent-muted);
|
|
114
|
+
color: var(--accent);
|
|
115
|
+
}
|
|
116
|
+
.sidebar-btn.active::before {
|
|
117
|
+
content: '';
|
|
118
|
+
position: absolute; left: 0; top: 22%; bottom: 22%;
|
|
119
|
+
width: 3px; border-radius: 0 3px 3px 0;
|
|
120
|
+
background: var(--accent); box-shadow: 0 0 8px var(--accent-glow);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.sidebar-divider { height: 1px; background: var(--border); margin: 4px 0; }
|
|
124
|
+
|
|
125
|
+
/* ── MAIN CONTENT ── */
|
|
126
|
+
|
|
127
|
+
.main-content {
|
|
128
|
+
flex: 1; overflow: hidden;
|
|
129
|
+
display: flex; flex-direction: column;
|
|
130
|
+
background: var(--bg-0);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.page {
|
|
134
|
+
display: none; flex: 1; overflow: hidden; flex-direction: column;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.page.active {
|
|
138
|
+
display: flex;
|
|
139
|
+
animation: pageFadeIn var(--t-mid, 200ms) cubic-bezier(.16,1,.3,1) both;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@keyframes pageFadeIn {
|
|
143
|
+
from { opacity: 0; transform: translateY(6px); }
|
|
144
|
+
to { opacity: 1; transform: translateY(0); }
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.page-header {
|
|
148
|
+
display: flex; align-items: center; justify-content: space-between;
|
|
149
|
+
padding: 16px 24px; border-bottom: 1px solid var(--border);
|
|
150
|
+
flex-shrink: 0; background: var(--bg-0);
|
|
151
|
+
}
|
|
152
|
+
.page-header h1 { font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
|
|
153
|
+
|
|
154
|
+
.page-body { flex: 1; overflow-y: auto; padding: 24px; }
|
|
155
|
+
|
|
156
|
+
/* ── Chat ── */
|
|
157
|
+
|
|
158
|
+
.chat-container {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
height: 100%;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.activity-badge {
|
|
165
|
+
margin-left: auto;
|
|
166
|
+
width: 7px;
|
|
167
|
+
height: 7px;
|
|
168
|
+
border-radius: 50%;
|
|
169
|
+
background: var(--accent);
|
|
170
|
+
animation: pulse 1.5s ease-in-out infinite;
|
|
171
|
+
flex-shrink: 0;
|
|
172
|
+
box-shadow: 0 0 6px var(--accent-glow, rgba(99,102,241,.4));
|
|
173
|
+
}
|
|
174
|
+
.activity-badge.hidden { display: none; }
|
|
175
|
+
|
|
176
|
+
/* ── Activity UI ── */
|
|
177
|
+
|
|
178
|
+
.activity-container {
|
|
179
|
+
display: flex; height: 100%; width: 100%; overflow: hidden;
|
|
180
|
+
background: var(--bg-0);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.activity-sidebar {
|
|
184
|
+
width: 280px; flex-shrink: 0;
|
|
185
|
+
background: var(--bg-1);
|
|
186
|
+
border-right: 1px solid var(--border);
|
|
187
|
+
display: flex; flex-direction: column;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.activity-sidebar-header {
|
|
191
|
+
padding: 16px; border-bottom: 1px solid var(--border);
|
|
192
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
193
|
+
flex-shrink: 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.activity-sidebar-header h2 {
|
|
197
|
+
font-size: 14px; font-weight: 600; color: var(--text-primary);
|
|
198
|
+
text-transform: uppercase; letter-spacing: 0.5px;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.activity-sidebar-list {
|
|
202
|
+
flex: 1; overflow-y: auto; padding: 12px;
|
|
203
|
+
display: flex; flex-direction: column; gap: 4px;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.activity-empty-text {
|
|
207
|
+
text-align: center; color: var(--text-muted); font-size: 13px; padding: 20px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.ahp-run-card {
|
|
211
|
+
padding: 12px; border-radius: var(--radius-lg); cursor: pointer;
|
|
212
|
+
border: 1px solid transparent; background: transparent;
|
|
213
|
+
transition: all 0.15s ease;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ahp-run-card:hover { background: var(--bg-hover); border-color: var(--border); }
|
|
217
|
+
.ahp-run-card.active { background: var(--bg-card); border-color: var(--accent); box-shadow: 0 2px 12px rgba(99,102,241,0.15); }
|
|
218
|
+
|
|
219
|
+
.ahp-run-title {
|
|
220
|
+
font-size: 13px; font-weight: 600; color: var(--text-primary);
|
|
221
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.ahp-run-meta {
|
|
225
|
+
display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.ahp-run-status {
|
|
229
|
+
padding: 2px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; text-transform: uppercase;
|
|
230
|
+
}
|
|
231
|
+
.ahp-run-status.completed { background: rgba(16,185,129,0.15); color: #10b981; }
|
|
232
|
+
.ahp-run-status.failed { background: rgba(239,68,68,0.15); color: #ef4444; }
|
|
233
|
+
.ahp-run-status.running { background: var(--accent-muted); color: var(--accent); animation: pulse 1.2s infinite; }
|
|
234
|
+
|
|
235
|
+
.activity-main {
|
|
236
|
+
flex: 1; display: flex; flex-direction: column; min-width: 0;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.activity-main-header {
|
|
240
|
+
padding: 16px 24px; border-bottom: 1px solid var(--border);
|
|
241
|
+
background: var(--bg-0); flex-shrink: 0;
|
|
242
|
+
display: flex; justify-content: space-between; align-items: center;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.activity-main-header h2 {
|
|
246
|
+
font-size: 16px; font-weight: 600; color: var(--text-primary);
|
|
247
|
+
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.activity-main-actions {
|
|
251
|
+
display: flex; align-items: center; gap: 12px; flex-shrink: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.atl-viewport {
|
|
255
|
+
flex: 1; overflow-y: auto; padding: 24px;
|
|
256
|
+
background: var(--bg-0); scroll-behavior: smooth;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.atl-feed {
|
|
260
|
+
max-width: 800px; margin: 0 auto;
|
|
261
|
+
display: flex; flex-direction: column; gap: 16px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Step Layout */
|
|
265
|
+
.atl-step {
|
|
266
|
+
display: flex; gap: 16px;
|
|
267
|
+
animation: pageFadeIn 0.2s cubic-bezier(0.16,1,0.3,1) both;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/* Spine */
|
|
271
|
+
.atl-spine {
|
|
272
|
+
display: flex; flex-direction: column; align-items: center;
|
|
273
|
+
flex-shrink: 0; width: 32px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.atl-dot {
|
|
277
|
+
width: 32px; height: 32px; border-radius: 50%;
|
|
278
|
+
display: flex; align-items: center; justify-content: center;
|
|
279
|
+
font-size: 14px; background: var(--bg-card); border: 2px solid var(--border);
|
|
280
|
+
z-index: 2; transition: all 0.2s ease;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.atl-connector {
|
|
284
|
+
flex: 1; width: 2px; min-height: 24px; background: var(--border); margin: 4px 0;
|
|
285
|
+
}
|
|
286
|
+
.atl-step:last-child .atl-connector { display: none; }
|
|
287
|
+
|
|
288
|
+
.atl-step.running .atl-dot {
|
|
289
|
+
border-color: var(--accent);
|
|
290
|
+
box-shadow: 0 0 0 4px var(--accent-muted);
|
|
291
|
+
animation: pulse 1.5s infinite;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/* Step Colors */
|
|
295
|
+
.atl-step[data-color="cli"] .atl-dot { border-color: #10b981; color: #10b981; }
|
|
296
|
+
.atl-step[data-color="browser"] .atl-dot { border-color: #3b82f6; color: #3b82f6; }
|
|
297
|
+
.atl-step[data-color="memory"] .atl-dot { border-color: #f59e0b; color: #f59e0b; }
|
|
298
|
+
.atl-step[data-color="thinking"] .atl-dot { border-color: #8b5cf6; color: #8b5cf6; }
|
|
299
|
+
.atl-step[data-color="messaging"] .atl-dot { border-color: #ec4899; color: #ec4899; }
|
|
300
|
+
.atl-step[data-color="http"] .atl-dot { border-color: #06b6d4; color: #06b6d4; }
|
|
301
|
+
.atl-step[data-color="file"] .atl-dot { border-color: #f97316; color: #f97316; }
|
|
302
|
+
.atl-step[data-color="agent"] .atl-dot { border-color: #a855f7; color: #a855f7; }
|
|
303
|
+
.atl-step[data-color="response"] .atl-dot { border-color: #10b981; background: rgba(16,185,129,0.1); color: #10b981; }
|
|
304
|
+
|
|
305
|
+
/* Timeline Card */
|
|
306
|
+
.atl-card {
|
|
307
|
+
flex: 1; min-width: 0; background: var(--bg-card); border: 1px solid var(--border);
|
|
308
|
+
border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
309
|
+
transition: box-shadow 0.2s; margin-bottom: 24px;
|
|
310
|
+
}
|
|
311
|
+
.atl-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
|
|
312
|
+
|
|
313
|
+
.atl-card-head {
|
|
314
|
+
padding: 14px 16px; background: rgba(255,255,255,0.015);
|
|
315
|
+
display: flex; align-items: flex-start; gap: 12px;
|
|
316
|
+
cursor: pointer; user-select: none;
|
|
317
|
+
}
|
|
318
|
+
.atl-card.open .atl-card-head { border-bottom: 1px solid var(--border); }
|
|
319
|
+
|
|
320
|
+
.atl-card-label {
|
|
321
|
+
font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
|
|
322
|
+
color: var(--text-primary); flex-shrink: 0;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.atl-card-summary {
|
|
326
|
+
font-size: 13px; color: var(--text-secondary); flex: 1; min-width: 0;
|
|
327
|
+
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.atl-status-chip {
|
|
331
|
+
font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 12px; flex-shrink: 0;
|
|
332
|
+
}
|
|
333
|
+
.atl-status-chip.running { background: var(--accent-muted); color: var(--accent); animation: pulse 1.2s infinite; }
|
|
334
|
+
.atl-status-chip.completed { background: rgba(16,185,129,0.15); color: #10b981; }
|
|
335
|
+
.atl-status-chip.failed { background: rgba(239,68,68,0.15); color: #ef4444; }
|
|
336
|
+
|
|
337
|
+
.atl-toggle {
|
|
338
|
+
color: var(--text-muted); font-size: 12px; margin-top: 2px;
|
|
339
|
+
transition: transform 0.2s; flex-shrink: 0;
|
|
340
|
+
}
|
|
341
|
+
.atl-card.open .atl-toggle { transform: rotate(180deg); }
|
|
342
|
+
|
|
343
|
+
.atl-card-body {
|
|
344
|
+
display: none; padding: 16px; background: var(--bg-card);
|
|
345
|
+
}
|
|
346
|
+
.atl-card.open .atl-card-body { display: block; }
|
|
347
|
+
|
|
348
|
+
/* Card Body Content */
|
|
349
|
+
.atl-cmd {
|
|
350
|
+
font-family: 'SF Mono', monospace; font-size: 12px; color: var(--text-primary);
|
|
351
|
+
background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius);
|
|
352
|
+
padding: 10px; margin-bottom: 12px; word-break: break-all;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.atl-detail { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
|
|
356
|
+
|
|
357
|
+
.atl-code {
|
|
358
|
+
font-family: 'SF Mono', monospace; font-size: 12px; background: var(--bg-1);
|
|
359
|
+
border: 1px solid var(--border); border-radius: var(--radius); padding: 12px;
|
|
360
|
+
color: var(--text-secondary); max-height: 400px; overflow-y: auto; line-height: 1.5;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.atl-text { font-size: 13px; color: var(--text-secondary); line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
|
|
364
|
+
.atl-text.error { color: #ef4444; background: rgba(239,68,68,0.1); padding: 12px; border-radius: var(--radius); }
|
|
365
|
+
.atl-success { font-size: 13px; font-weight: 500; color: #10b981; }
|
|
366
|
+
|
|
367
|
+
.atl-http-badge {
|
|
368
|
+
display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
|
|
369
|
+
}
|
|
370
|
+
.atl-http-badge.ok { background: rgba(16,185,129,0.15); color: #10b981; }
|
|
371
|
+
.atl-http-badge.warn { background: rgba(245,158,11,0.15); color: #f59e0b; }
|
|
372
|
+
.atl-http-badge.err { background: rgba(239,68,68,0.15); color: #ef4444; }
|
|
373
|
+
|
|
374
|
+
.atl-url-chip {
|
|
375
|
+
display: inline-flex; font-size: 12px; color: var(--accent); background: var(--accent-muted);
|
|
376
|
+
border-radius: 4px; padding: 4px 10px; margin-bottom: 12px; font-family: monospace;
|
|
377
|
+
text-decoration: none; word-break: break-all;
|
|
378
|
+
}
|
|
379
|
+
.atl-url-chip:hover { text-decoration: underline; }
|
|
380
|
+
|
|
381
|
+
.atl-screenshot {
|
|
382
|
+
width: 100%; border-radius: 8px; border: 1px solid var(--border);
|
|
383
|
+
display: block; max-height: 400px; object-fit: contain; object-position: center; margin-top: 8px;
|
|
384
|
+
background: var(--bg-1);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.atl-response-body {
|
|
388
|
+
font-size: 14px; line-height: 1.6; color: var(--text-primary); padding: 4px;
|
|
389
|
+
}
|
|
390
|
+
.atl-response-body pre { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; overflow-x: auto; margin: 12px 0; }
|
|
391
|
+
.atl-response-body code { font-family: 'SF Mono', monospace; font-size: 13px; }
|
|
392
|
+
|
|
393
|
+
.atl-empty {
|
|
394
|
+
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
|
395
|
+
height: 100%; min-height: 400px; color: var(--text-muted); text-align: center; gap: 12px;
|
|
396
|
+
}
|
|
397
|
+
.atl-empty svg { opacity: 0.3; }
|
|
398
|
+
.atl-empty p { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0; }
|
|
399
|
+
.atl-empty span { font-size: 14px; margin: 0; }
|
|
400
|
+
|
|
401
|
+
/* ── Chat: social message bubble ── */
|
|
402
|
+
.chat-message.social .chat-avatar {
|
|
403
|
+
background: #25d36620; color: #25d366; font-size: 12px;
|
|
404
|
+
}
|
|
405
|
+
.chat-message.social .chat-bubble {
|
|
406
|
+
background: var(--bg-card); border: 1px solid var(--border);
|
|
407
|
+
border-bottom-left-radius: 4px;
|
|
408
|
+
}
|
|
409
|
+
.chat-platform-badge {
|
|
410
|
+
display: inline-flex; align-items: center; gap: 4px;
|
|
411
|
+
font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
|
|
412
|
+
color: var(--text-muted); margin-bottom: 4px;
|
|
413
|
+
}
|
|
414
|
+
.chat-platform-badge.whatsapp { color: #25d366; }
|
|
415
|
+
.chat-sender { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 4px; }
|
|
416
|
+
|
|
417
|
+
/* ── Chat: interim status message ── */
|
|
418
|
+
.chat-interim {
|
|
419
|
+
display: flex; align-items: flex-start; gap: 8px;
|
|
420
|
+
margin-bottom: 8px; padding-left: 4px;
|
|
421
|
+
}
|
|
422
|
+
.chat-interim-dot {
|
|
423
|
+
width: 6px; height: 6px; border-radius: 50%;
|
|
424
|
+
background: var(--accent); flex-shrink: 0; margin-top: 6px;
|
|
425
|
+
animation: pulse 1.2s ease-in-out infinite;
|
|
426
|
+
}
|
|
427
|
+
.chat-interim-text {
|
|
428
|
+
font-size: 13px; color: var(--text-muted);
|
|
429
|
+
font-style: italic; line-height: 1.5;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.chat-messages {
|
|
433
|
+
flex: 1;
|
|
434
|
+
overflow-y: auto;
|
|
435
|
+
padding: 24px 24px 12px;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.chat-message {
|
|
439
|
+
display: flex; gap: 12px; margin-bottom: 20px; max-width: 820px;
|
|
440
|
+
animation: msgIn 200ms cubic-bezier(.16,1,.3,1) both;
|
|
441
|
+
}
|
|
442
|
+
@keyframes msgIn {
|
|
443
|
+
from { opacity: 0; transform: translateY(6px); }
|
|
444
|
+
to { opacity: 1; transform: translateY(0); }
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.chat-message.user { flex-direction: row-reverse; margin-left: auto; }
|
|
448
|
+
|
|
449
|
+
.chat-avatar {
|
|
450
|
+
width: 30px; height: 30px; border-radius: 8px;
|
|
451
|
+
display: flex; align-items: center; justify-content: center;
|
|
452
|
+
flex-shrink: 0; font-size: 13px; font-weight: 600;
|
|
453
|
+
}
|
|
454
|
+
.chat-message.assistant .chat-avatar {
|
|
455
|
+
background: linear-gradient(135deg, var(--accent), #8b5cf6);
|
|
456
|
+
color: white; box-shadow: 0 2px 10px rgba(99,102,241,.35);
|
|
457
|
+
}
|
|
458
|
+
.chat-message.user .chat-avatar {
|
|
459
|
+
background: var(--bg-4, #1e1e32); color: var(--text-secondary);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.chat-bubble {
|
|
463
|
+
padding: 11px 16px; border-radius: var(--radius-lg);
|
|
464
|
+
max-width: 620px; line-height: 1.65; word-break: break-word;
|
|
465
|
+
}
|
|
466
|
+
.chat-message.user .chat-bubble {
|
|
467
|
+
background: var(--accent); color: #fff;
|
|
468
|
+
border-bottom-right-radius: 4px;
|
|
469
|
+
box-shadow: 0 2px 12px rgba(99,102,241,.3);
|
|
470
|
+
}
|
|
471
|
+
.chat-message.assistant .chat-bubble {
|
|
472
|
+
background: var(--bg-card);
|
|
473
|
+
border: 1px solid var(--border); border-bottom-left-radius: 4px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.chat-tool-call {
|
|
477
|
+
background: var(--bg-primary);
|
|
478
|
+
border: 1px solid var(--border);
|
|
479
|
+
border-radius: var(--radius);
|
|
480
|
+
padding: 10px 14px;
|
|
481
|
+
margin: 8px 0;
|
|
482
|
+
font-size: 12px;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.chat-tool-call .tool-name {
|
|
486
|
+
color: var(--accent);
|
|
487
|
+
font-weight: 600;
|
|
488
|
+
font-family: 'SF Mono', monospace;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.chat-tool-call .tool-result {
|
|
492
|
+
color: var(--text-secondary);
|
|
493
|
+
margin-top: 6px;
|
|
494
|
+
font-family: 'SF Mono', monospace;
|
|
495
|
+
white-space: pre-wrap;
|
|
496
|
+
max-height: 200px;
|
|
497
|
+
overflow-y: auto;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
.chat-thinking {
|
|
501
|
+
display: flex;
|
|
502
|
+
align-items: center;
|
|
503
|
+
gap: 8px;
|
|
504
|
+
padding: 12px 16px;
|
|
505
|
+
color: var(--text-muted);
|
|
506
|
+
font-size: 13px;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.chat-thinking .spinner {
|
|
510
|
+
width: 16px;
|
|
511
|
+
height: 16px;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/* ── Animations ── */
|
|
515
|
+
|
|
516
|
+
@keyframes pulse {
|
|
517
|
+
0%, 100% { opacity: 1; }
|
|
518
|
+
50% { opacity: 0.3; }
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/* ── CHAT INPUT ── */
|
|
522
|
+
|
|
523
|
+
.chat-input-area {
|
|
524
|
+
padding: 12px 20px 20px;
|
|
525
|
+
border-top: 1px solid var(--border); flex-shrink: 0;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.chat-input-wrapper {
|
|
529
|
+
display: flex; align-items: flex-end; gap: 8px;
|
|
530
|
+
background: var(--bg-2, #111120); border: 1px solid var(--border);
|
|
531
|
+
border-radius: var(--radius-lg); padding: 4px 4px 4px 16px;
|
|
532
|
+
transition: border-color 120ms ease, box-shadow 120ms ease;
|
|
533
|
+
}
|
|
534
|
+
.chat-input-wrapper:focus-within {
|
|
535
|
+
border-color: var(--accent);
|
|
536
|
+
box-shadow: 0 0 0 3px var(--accent-muted), 0 4px 20px rgba(99,102,241,.12);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
.chat-input {
|
|
540
|
+
flex: 1; border: none; background: transparent; resize: none;
|
|
541
|
+
padding: 10px 0; max-height: 200px; line-height: 1.5; color: var(--text-primary);
|
|
542
|
+
}
|
|
543
|
+
.chat-input:focus { outline: none; }
|
|
544
|
+
|
|
545
|
+
.chat-send-btn {
|
|
546
|
+
border-radius: 10px; padding: 8px 12px; flex-shrink: 0;
|
|
547
|
+
transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
|
|
548
|
+
}
|
|
549
|
+
.chat-send-btn:hover { transform: scale(1.06); }
|
|
550
|
+
|
|
551
|
+
.chat-input-info { display: flex; justify-content: space-between; padding: 5px 2px 0;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* ── MEMORY PANELS ── */
|
|
555
|
+
|
|
556
|
+
.mem-panel { display: none; }
|
|
557
|
+
.mem-panel.active {
|
|
558
|
+
display: block;
|
|
559
|
+
animation: pageFadeIn 200ms cubic-bezier(.16,1,.3,1) both;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/* ── MCP / Skill / Task Cards ── */
|
|
563
|
+
|
|
564
|
+
.item-card {
|
|
565
|
+
background: var(--bg-card); border: 1px solid var(--border);
|
|
566
|
+
border-radius: var(--radius-lg); padding: 16px; margin-bottom: 10px;
|
|
567
|
+
transition: border-color 120ms ease, box-shadow 120ms ease;
|
|
568
|
+
animation: fadeSlideUp 200ms cubic-bezier(.16,1,.3,1) both;
|
|
569
|
+
}
|
|
570
|
+
.item-card:hover { border-color: var(--border-light); box-shadow: 0 2px 12px rgba(0,0,0,.3); }
|
|
571
|
+
|
|
572
|
+
.item-card-header {
|
|
573
|
+
display: flex;
|
|
574
|
+
align-items: center;
|
|
575
|
+
justify-content: space-between;
|
|
576
|
+
margin-bottom: 8px;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.item-card-title {
|
|
580
|
+
font-weight: 600;
|
|
581
|
+
font-size: 14px;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
.item-card-meta {
|
|
585
|
+
font-size: 12px;
|
|
586
|
+
color: var(--text-secondary);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
.item-card-actions {
|
|
590
|
+
display: flex;
|
|
591
|
+
gap: 6px;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* ── QR Code ── */
|
|
595
|
+
|
|
596
|
+
#qrContainer canvas, #qrContainer img {
|
|
597
|
+
border-radius: var(--radius);
|
|
598
|
+
max-width: 280px;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
/* ── Responsive ── */
|
|
602
|
+
|
|
603
|
+
@media (max-width: 768px) {
|
|
604
|
+
.sidebar { width: 0; position: absolute; z-index: 100; height: 100%; }
|
|
605
|
+
.sidebar.open { width: var(--sidebar-width); }
|
|
606
|
+
.chat-message { max-width: 100%; }
|
|
607
|
+
.activity-timeline { padding: 16px 12px 32px; }
|
|
608
|
+
}
|