agent-loft 0.2.48 → 0.2.50
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/README.md +32 -15
- package/package.json +1 -1
- package/src/agents/claude/driver.ts +1 -1
- package/src/agents/claude/session.ts +140 -47
- package/src/agents/codex/driver.ts +1 -1
- package/src/agents/codex/session.ts +90 -58
- package/src/channels/feishu/bot.ts +1 -3
- package/src/channels/feishu/cards.ts +2 -2
- package/src/channels/web/api.ts +49 -19
- package/src/channels/web/conv-pages.ts +37 -0
- package/src/channels/web/experts-api.ts +203 -0
- package/src/channels/web/skills-api.ts +1 -7
- package/src/channels/web/tasks-api.ts +9 -5
- package/src/core/command-catalog.ts +4 -6
- package/src/core/commands.ts +6 -11
- package/src/core/expert-prompt.ts +119 -0
- package/src/core/experts.ts +438 -0
- package/src/core/hub.ts +137 -102
- package/src/core/mcp.ts +253 -0
- package/src/core/memory-curator.ts +14 -19
- package/src/core/memory.ts +11 -4
- package/src/core/personal.ts +5 -1
- package/src/core/skill-runtime.ts +11 -114
- package/src/core/store.ts +30 -11
- package/src/core/task-prompt.ts +1 -1
- package/src/core/task-runner.ts +24 -11
- package/src/core/tasks-bridge.ts +7 -7
- package/src/core/tasks.ts +49 -14
- package/src/core/types.ts +4 -7
- package/src/core/uploads.ts +7 -7
- package/src/mcp/tasks-server.ts +1 -2
- package/web/css/experts.css +225 -0
- package/web/css/messages.css +43 -0
- package/web/css/overlay.css +12 -0
- package/web/css/search.css +214 -0
- package/web/css/sidebar.css +79 -56
- package/web/css/skills.css +0 -11
- package/web/css/topbar.css +135 -5
- package/web/index.html +2 -0
- package/web/lib/dom.js +6 -14
- package/web/settings/experts.js +622 -0
- package/web/settings/index.js +3 -0
- package/web/settings/memory.js +23 -7
- package/web/settings/skills.js +3 -3
- package/web/state.js +7 -2
- package/web/views/composer.js +31 -29
- package/web/views/conv-actions.js +8 -9
- package/web/views/conv-search.js +206 -0
- package/web/views/experts.js +74 -0
- package/web/views/layout.js +9 -4
- package/web/views/messages.js +44 -11
- package/web/views/quota.js +13 -10
- package/web/views/sidebar.js +71 -19
- package/web/views/tasks.js +21 -36
- package/web/views/topbar.js +148 -74
- package/src/core/chat-mode.ts +0 -62
- package/web/views/mention.js +0 -202
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/* ---------- 搜索会话弹窗(views/conv-search.js) ---------- */
|
|
2
|
+
|
|
3
|
+
/* 靠上显示:结果多少不同时输入框不跳 */
|
|
4
|
+
.search-overlay {
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
padding-top: 12vh;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.search-modal {
|
|
10
|
+
width: 100%;
|
|
11
|
+
max-width: 620px;
|
|
12
|
+
max-height: 72vh;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
background: var(--bg);
|
|
16
|
+
border-radius: 16px;
|
|
17
|
+
box-shadow: var(--shadow);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.search-head {
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
gap: 10px;
|
|
25
|
+
padding: 10px 10px 10px 16px;
|
|
26
|
+
border-bottom: 1px solid var(--border);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.search-icon {
|
|
30
|
+
display: inline-grid;
|
|
31
|
+
color: var(--fg-faint);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.search-icon svg {
|
|
35
|
+
width: 18px;
|
|
36
|
+
height: 18px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.search-input {
|
|
40
|
+
flex: 1;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
border: none;
|
|
43
|
+
outline: none;
|
|
44
|
+
background: transparent;
|
|
45
|
+
color: var(--fg);
|
|
46
|
+
font: inherit;
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
padding: 6px 0;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* 用自己的 × */
|
|
52
|
+
.search-input::-webkit-search-cancel-button {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* 专家筛选:一排小标签,放不下横向滚 */
|
|
57
|
+
.search-experts {
|
|
58
|
+
display: flex;
|
|
59
|
+
gap: 6px;
|
|
60
|
+
padding: 10px 16px;
|
|
61
|
+
overflow-x: auto;
|
|
62
|
+
scrollbar-width: none;
|
|
63
|
+
border-bottom: 1px solid var(--border);
|
|
64
|
+
flex-shrink: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.search-experts::-webkit-scrollbar {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.search-chip {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 5px;
|
|
75
|
+
flex-shrink: 0;
|
|
76
|
+
padding: 4px 11px;
|
|
77
|
+
border-radius: 999px;
|
|
78
|
+
border: 1px solid var(--border);
|
|
79
|
+
font-size: 13px;
|
|
80
|
+
color: var(--fg-soft);
|
|
81
|
+
white-space: nowrap;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.search-chip:hover {
|
|
85
|
+
color: var(--fg);
|
|
86
|
+
background: var(--bg-hover);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.search-chip.on {
|
|
90
|
+
background: var(--fg);
|
|
91
|
+
border-color: var(--fg);
|
|
92
|
+
color: var(--bg);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.search-chip .agent-icon {
|
|
96
|
+
display: inline-grid;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.search-chip .agent-icon svg {
|
|
100
|
+
width: 13px;
|
|
101
|
+
height: 13px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.search-chip .agent-icon.expert-emoji {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
width: auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.search-results {
|
|
110
|
+
overflow-y: auto;
|
|
111
|
+
padding: 6px;
|
|
112
|
+
min-height: 120px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.search-label {
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
color: var(--fg-faint);
|
|
118
|
+
padding: 6px 10px 4px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.search-empty {
|
|
122
|
+
padding: 28px 10px;
|
|
123
|
+
text-align: center;
|
|
124
|
+
font-size: 13px;
|
|
125
|
+
color: var(--fg-faint);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.search-hit {
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
gap: 10px;
|
|
132
|
+
width: 100%;
|
|
133
|
+
padding: 8px 10px;
|
|
134
|
+
border-radius: 8px;
|
|
135
|
+
text-align: left;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.search-hit.sel {
|
|
139
|
+
background: var(--bg-hover);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.hit-icon {
|
|
143
|
+
display: inline-grid;
|
|
144
|
+
flex-shrink: 0;
|
|
145
|
+
color: var(--fg-soft);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.hit-icon .agent-icon {
|
|
149
|
+
display: inline-grid;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.hit-icon svg {
|
|
153
|
+
width: 16px;
|
|
154
|
+
height: 16px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.search-hit .hit-body {
|
|
158
|
+
flex: 1;
|
|
159
|
+
min-width: 0;
|
|
160
|
+
display: flex;
|
|
161
|
+
flex-direction: column;
|
|
162
|
+
gap: 2px;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.hit-title,
|
|
166
|
+
.hit-snippet {
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
text-overflow: ellipsis;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.hit-title {
|
|
173
|
+
font-size: 14px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.hit-snippet {
|
|
177
|
+
font-size: 12px;
|
|
178
|
+
color: var(--fg-faint);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.search-hit mark {
|
|
182
|
+
background: none;
|
|
183
|
+
color: inherit;
|
|
184
|
+
font-weight: 600;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.hit-snippet mark {
|
|
188
|
+
color: var(--fg-soft);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.hit-meta {
|
|
192
|
+
flex-shrink: 0;
|
|
193
|
+
max-width: 40%;
|
|
194
|
+
overflow: hidden;
|
|
195
|
+
white-space: nowrap;
|
|
196
|
+
text-overflow: ellipsis;
|
|
197
|
+
font-size: 12px;
|
|
198
|
+
color: var(--fg-faint);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/* 手机:铺满宽度,贴着顶部 */
|
|
202
|
+
@media (max-width: 768px) {
|
|
203
|
+
.search-overlay {
|
|
204
|
+
padding: calc(8px + env(safe-area-inset-top)) 8px 8px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.search-modal {
|
|
208
|
+
max-height: calc(100% - 8px);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.hit-meta {
|
|
212
|
+
display: none;
|
|
213
|
+
}
|
|
214
|
+
}
|
package/web/css/sidebar.css
CHANGED
|
@@ -152,7 +152,7 @@ button.conv-group:hover {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.sub-more .conv-more {
|
|
155
|
-
padding-left:
|
|
155
|
+
padding-left: 10px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.conv-item .lead {
|
|
@@ -161,17 +161,43 @@ button.conv-group:hover {
|
|
|
161
161
|
opacity: 0.85;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
.conv-item.sub {
|
|
165
|
-
padding-left: 36px;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
164
|
.proj-row {
|
|
169
165
|
position: relative;
|
|
170
166
|
margin-top: 2px;
|
|
171
167
|
}
|
|
172
168
|
|
|
173
169
|
.conv-item.proj {
|
|
174
|
-
|
|
170
|
+
color: var(--fg-soft);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.conv-item.proj:hover {
|
|
174
|
+
color: var(--fg);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/* 标题后面的小三角:朝下 = 展开,朝右 = 折叠 */
|
|
178
|
+
.conv-item .caret {
|
|
179
|
+
display: inline-grid;
|
|
180
|
+
place-items: center;
|
|
181
|
+
flex-shrink: 0;
|
|
182
|
+
/* 点击区域大一点,视觉上不占地方 */
|
|
183
|
+
padding: 4px;
|
|
184
|
+
margin: -4px -4px -4px -2px;
|
|
185
|
+
border-radius: 4px;
|
|
186
|
+
color: var(--fg-faint);
|
|
187
|
+
transition: transform 0.15s;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.conv-item .caret svg {
|
|
191
|
+
width: 10px;
|
|
192
|
+
height: 10px;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.conv-item .caret.folded {
|
|
196
|
+
transform: rotate(-90deg);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.conv-item .caret[role="button"]:hover {
|
|
200
|
+
color: var(--fg);
|
|
175
201
|
}
|
|
176
202
|
|
|
177
203
|
/* 拖动目录排序:被拖的行变淡,落点处画一条横线 */
|
|
@@ -200,17 +226,6 @@ button.conv-group:hover {
|
|
|
200
226
|
bottom: -2px;
|
|
201
227
|
}
|
|
202
228
|
|
|
203
|
-
.proj-icon {
|
|
204
|
-
display: inline-grid;
|
|
205
|
-
color: var(--fg-soft);
|
|
206
|
-
flex-shrink: 0;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.proj-icon svg {
|
|
210
|
-
width: 18px;
|
|
211
|
-
height: 18px;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
229
|
/* 目录行 hover 时右侧出现「在此目录开新对话」 */
|
|
215
230
|
.proj-new {
|
|
216
231
|
position: absolute;
|
|
@@ -230,8 +245,9 @@ button.conv-group:hover {
|
|
|
230
245
|
height: 15px;
|
|
231
246
|
}
|
|
232
247
|
|
|
248
|
+
/* 行本身已经是 hover 底色,加号的再深一点才看得出来 */
|
|
233
249
|
.proj-new:hover {
|
|
234
|
-
background: var(--bg-
|
|
250
|
+
background: color-mix(in srgb, var(--fg) 8%, var(--bg-hover));
|
|
235
251
|
color: var(--fg);
|
|
236
252
|
}
|
|
237
253
|
|
|
@@ -239,8 +255,11 @@ button.conv-group:hover {
|
|
|
239
255
|
display: grid;
|
|
240
256
|
}
|
|
241
257
|
|
|
258
|
+
/* 鼠标挪到右边的加号上时,整行的 hover 底色还留着 */
|
|
242
259
|
.proj-row:hover .conv-item.proj {
|
|
243
260
|
padding-right: 36px;
|
|
261
|
+
background: var(--bg-hover);
|
|
262
|
+
color: var(--fg);
|
|
244
263
|
}
|
|
245
264
|
|
|
246
265
|
@media (pointer: coarse) {
|
|
@@ -270,15 +289,28 @@ button.conv-group:hover {
|
|
|
270
289
|
}
|
|
271
290
|
|
|
272
291
|
.conv-item .title {
|
|
273
|
-
|
|
292
|
+
/* 不撑满:三角紧跟在标题后面,状态点靠右(见下面的 margin-left: auto) */
|
|
293
|
+
flex: 0 1 auto;
|
|
294
|
+
min-width: 0;
|
|
274
295
|
overflow: hidden;
|
|
275
|
-
text-overflow: ellipsis;
|
|
276
296
|
white-space: nowrap;
|
|
277
297
|
}
|
|
278
298
|
|
|
279
|
-
/*
|
|
280
|
-
.conv-item .title.
|
|
281
|
-
|
|
299
|
+
/* 放不下:尾巴淡出,代替省略号(.clip 由 sidebar.js 量过后加) */
|
|
300
|
+
.conv-item .title.clip {
|
|
301
|
+
-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
|
|
302
|
+
mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/* 跑马灯滚动时两头都淡出 */
|
|
306
|
+
.conv-item .title.clip.marquee {
|
|
307
|
+
-webkit-mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
|
|
308
|
+
mask-image: linear-gradient(to right, transparent, #000 16px, #000 calc(100% - 16px), transparent);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.conv-item > .dot,
|
|
312
|
+
.conv-item > .conv-spin {
|
|
313
|
+
margin-left: auto;
|
|
282
314
|
}
|
|
283
315
|
|
|
284
316
|
.conv-item .badge {
|
|
@@ -329,8 +361,9 @@ button.conv-group:hover {
|
|
|
329
361
|
display: none;
|
|
330
362
|
}
|
|
331
363
|
|
|
332
|
-
.conv-item .
|
|
333
|
-
|
|
364
|
+
.conv-item .expert-mark {
|
|
365
|
+
font-size: 13px;
|
|
366
|
+
line-height: 1;
|
|
334
367
|
}
|
|
335
368
|
|
|
336
369
|
/* ---- 侧栏底部的额度 ---- */
|
|
@@ -528,17 +561,11 @@ button.conv-group:hover {
|
|
|
528
561
|
}
|
|
529
562
|
|
|
530
563
|
/*
|
|
531
|
-
*
|
|
532
|
-
* 竖线从主对话标题下方往下走,每个分叉一个拐角;最后一个分叉的竖线只画到它的拐角为止。
|
|
564
|
+
* 分叉树:分叉对话缩进挂在主对话下面,左边一条细实线,最后一条拐个圆角接过去。
|
|
533
565
|
* 行高约 34px(.conv-item 上下 7px + 一行字),拐角在 17px 处。
|
|
534
566
|
*/
|
|
535
567
|
.fork-children {
|
|
536
|
-
margin-left:
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/* 「项目」里的会话行本身缩进 36px,竖线跟着右移 */
|
|
540
|
-
.fork-children.in-proj {
|
|
541
|
-
margin-left: 42px;
|
|
568
|
+
margin-left: 18px;
|
|
542
569
|
}
|
|
543
570
|
|
|
544
571
|
/* 分叉的分叉:竖线对齐上一层分叉的标题 */
|
|
@@ -546,8 +573,7 @@ button.conv-group:hover {
|
|
|
546
573
|
margin-left: 14px;
|
|
547
574
|
}
|
|
548
575
|
|
|
549
|
-
.fork-children .conv-item
|
|
550
|
-
.fork-children .conv-item.sub {
|
|
576
|
+
.fork-children .conv-item {
|
|
551
577
|
padding-left: 8px;
|
|
552
578
|
}
|
|
553
579
|
|
|
@@ -556,38 +582,35 @@ button.conv-group:hover {
|
|
|
556
582
|
padding-left: 14px;
|
|
557
583
|
}
|
|
558
584
|
|
|
559
|
-
.fork-node::before
|
|
560
|
-
.fork-node::after {
|
|
585
|
+
.fork-node::before {
|
|
561
586
|
content: "";
|
|
562
587
|
position: absolute;
|
|
563
588
|
left: 0;
|
|
564
|
-
border: 0 dashed var(--fg-faint);
|
|
565
|
-
opacity: 0.7;
|
|
566
|
-
pointer-events: none;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.fork-node::before {
|
|
570
589
|
top: 0;
|
|
571
590
|
bottom: 0;
|
|
572
|
-
border-left
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
/* 第一个分叉的竖线往上接到主对话那一行 */
|
|
576
|
-
.fork-node:first-child::before {
|
|
577
|
-
top: -6px;
|
|
591
|
+
border-left: 1px solid color-mix(in srgb, var(--fg-faint) 45%, transparent);
|
|
592
|
+
pointer-events: none;
|
|
578
593
|
}
|
|
579
594
|
|
|
595
|
+
/* 最后一条:竖线到行中间,圆角拐向标题 */
|
|
580
596
|
.fork-node:last-child::before {
|
|
581
597
|
bottom: auto;
|
|
582
|
-
height:
|
|
598
|
+
height: 15px;
|
|
599
|
+
width: 8px;
|
|
600
|
+
border-bottom: 1px solid color-mix(in srgb, var(--fg-faint) 45%, transparent);
|
|
601
|
+
border-bottom-left-radius: 8px;
|
|
583
602
|
}
|
|
584
603
|
|
|
585
|
-
|
|
586
|
-
|
|
604
|
+
/* 折叠后的「N 个嵌套会话」 */
|
|
605
|
+
.conv-item.fork-more {
|
|
606
|
+
color: var(--fg-soft);
|
|
587
607
|
}
|
|
588
608
|
|
|
589
|
-
.fork-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
609
|
+
.conv-item.fork-more:hover {
|
|
610
|
+
color: var(--fg);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/* 「搜索」和下面的「定时任务」挨着,间距和「新聊天」到它一样 */
|
|
614
|
+
.side-nav.search-nav {
|
|
615
|
+
margin-bottom: 0;
|
|
593
616
|
}
|
package/web/css/skills.css
CHANGED
|
@@ -337,17 +337,6 @@
|
|
|
337
337
|
margin-top: 14px;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
|
-
/* @ 补全:在弹窗里的输入框下面弹出 */
|
|
341
|
-
.mention-wrap {
|
|
342
|
-
position: relative;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
.slash-menu.below {
|
|
346
|
-
top: calc(100% + 4px);
|
|
347
|
-
bottom: auto;
|
|
348
|
-
max-height: 240px;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
340
|
@media (max-width: 640px) {
|
|
352
341
|
.skills-page .tasks-head {
|
|
353
342
|
flex-direction: column;
|
package/web/css/topbar.css
CHANGED
|
@@ -155,16 +155,146 @@
|
|
|
155
155
|
gap: 6px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
/* 标题前的专家头像:点一下 / 鼠标停上去弹出专家信息卡 */
|
|
159
|
+
.top-title .conv-expert-icon {
|
|
159
160
|
display: inline-grid;
|
|
161
|
+
place-items: center;
|
|
160
162
|
flex-shrink: 0;
|
|
161
|
-
|
|
163
|
+
width: 28px;
|
|
164
|
+
height: 28px;
|
|
165
|
+
margin-left: 2px;
|
|
166
|
+
border-radius: 50%;
|
|
162
167
|
color: var(--fg-soft);
|
|
163
168
|
}
|
|
164
169
|
|
|
165
|
-
.top-title .conv-
|
|
166
|
-
|
|
167
|
-
|
|
170
|
+
.top-title .conv-expert-icon:hover {
|
|
171
|
+
background: var(--bg-hover);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.top-title .conv-expert-icon svg,
|
|
175
|
+
.top-title .conv-expert-icon img {
|
|
176
|
+
width: 18px;
|
|
177
|
+
height: 18px;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.top-title .conv-expert-icon .expert-emoji {
|
|
181
|
+
font-size: 16px;
|
|
182
|
+
width: auto;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* ---- 专家信息卡 ---- */
|
|
186
|
+
.popover.expert-card {
|
|
187
|
+
width: 300px;
|
|
188
|
+
padding: 14px;
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
gap: 10px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.ec-head {
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
gap: 10px;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.ec-avatar {
|
|
201
|
+
display: inline-grid;
|
|
202
|
+
place-items: center;
|
|
203
|
+
flex-shrink: 0;
|
|
204
|
+
width: 40px;
|
|
205
|
+
height: 40px;
|
|
206
|
+
border-radius: 50%;
|
|
207
|
+
background: var(--bg-soft);
|
|
208
|
+
color: var(--fg-soft);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.ec-avatar svg {
|
|
212
|
+
width: 24px;
|
|
213
|
+
height: 24px;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.ec-avatar img {
|
|
217
|
+
width: 40px;
|
|
218
|
+
height: 40px;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.ec-avatar.expert-emoji {
|
|
222
|
+
font-size: 22px;
|
|
223
|
+
line-height: 1;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.ec-name {
|
|
227
|
+
display: flex;
|
|
228
|
+
flex-direction: column;
|
|
229
|
+
gap: 2px;
|
|
230
|
+
min-width: 0;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.ec-name b {
|
|
234
|
+
font-size: 15px;
|
|
235
|
+
font-weight: 600;
|
|
236
|
+
overflow: hidden;
|
|
237
|
+
text-overflow: ellipsis;
|
|
238
|
+
white-space: nowrap;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.ec-sub {
|
|
242
|
+
font-size: 12px;
|
|
243
|
+
color: var(--fg-faint);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.ec-desc {
|
|
247
|
+
font-size: 13px;
|
|
248
|
+
color: var(--fg-soft);
|
|
249
|
+
line-height: 1.5;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.ec-rows {
|
|
253
|
+
display: flex;
|
|
254
|
+
flex-direction: column;
|
|
255
|
+
gap: 6px;
|
|
256
|
+
padding-top: 10px;
|
|
257
|
+
border-top: 1px solid var(--border);
|
|
258
|
+
font-size: 13px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.ec-row {
|
|
262
|
+
display: flex;
|
|
263
|
+
gap: 10px;
|
|
264
|
+
align-items: baseline;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.ec-label {
|
|
268
|
+
flex: 0 0 56px;
|
|
269
|
+
color: var(--fg-faint);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.ec-value {
|
|
273
|
+
flex: 1;
|
|
274
|
+
min-width: 0;
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: baseline;
|
|
277
|
+
gap: 8px;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.ec-cwd {
|
|
281
|
+
flex: 1;
|
|
282
|
+
min-width: 0;
|
|
283
|
+
overflow-wrap: anywhere;
|
|
284
|
+
font-family: var(--mono);
|
|
285
|
+
font-size: 12px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.ec-link {
|
|
289
|
+
flex-shrink: 0;
|
|
290
|
+
padding: 0;
|
|
291
|
+
line-height: inherit;
|
|
292
|
+
font-size: 12px;
|
|
293
|
+
color: var(--accent);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.ec-link:hover {
|
|
297
|
+
text-decoration: underline;
|
|
168
298
|
}
|
|
169
299
|
|
|
170
300
|
.top-title .conv-name {
|
package/web/index.html
CHANGED
|
@@ -22,11 +22,13 @@
|
|
|
22
22
|
<link rel="stylesheet" href="/css/loader.css" />
|
|
23
23
|
<link rel="stylesheet" href="/css/composer.css" />
|
|
24
24
|
<link rel="stylesheet" href="/css/overlay.css" />
|
|
25
|
+
<link rel="stylesheet" href="/css/search.css" />
|
|
25
26
|
<link rel="stylesheet" href="/css/settings.css" />
|
|
26
27
|
<link rel="stylesheet" href="/css/schedule.css" />
|
|
27
28
|
<link rel="stylesheet" href="/css/todos.css" />
|
|
28
29
|
<link rel="stylesheet" href="/css/tasks.css" />
|
|
29
30
|
<link rel="stylesheet" href="/css/skills.css" />
|
|
31
|
+
<link rel="stylesheet" href="/css/experts.css" />
|
|
30
32
|
<link rel="stylesheet" href="/css/terminal.css" />
|
|
31
33
|
<link rel="stylesheet" href="/css/remote.css" />
|
|
32
34
|
<link rel="stylesheet" href="/css/servers.css" />
|
package/web/lib/dom.js
CHANGED
|
@@ -37,6 +37,8 @@ export const ICON = {
|
|
|
37
37
|
spark: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3l1.9 5.1L19 10l-5.1 1.9L12 17l-1.9-5.1L5 10l5.1-1.9Z"/><path d="M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8Z"/></svg>',
|
|
38
38
|
clock: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></svg>',
|
|
39
39
|
down: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><path d="m6 9 6 6 6-6"/></svg>',
|
|
40
|
+
search: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg>',
|
|
41
|
+
caret:'<svg viewBox="0 0 10 10" fill="currentColor"><path d="M1.6 3.2h6.8L5 7.4Z"/></svg>',
|
|
40
42
|
gear: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"/></svg>',
|
|
41
43
|
fork: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="5" r="2"/><circle cx="6" cy="19" r="2"/><circle cx="18" cy="7" r="2"/><path d="M6 7v10"/><path d="M18 9c0 5-6 4-11.2 8.6"/></svg>',
|
|
42
44
|
chat: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.4 8.4 0 0 1-12.3 7.5L3 20.5l1.6-5A8.4 8.4 0 1 1 21 11.5Z"/></svg>',
|
|
@@ -68,20 +70,10 @@ export const ICON = {
|
|
|
68
70
|
'<svg viewBox="2 4 44 40"><path fill="#00D6B9" d="M11.6 7H27.6C30.9 9.9 32.8 14.7 33.6 17C30.9 18.3 29 20.6 27 24C22.6 16.4 15.6 11 11.6 7Z"/><path fill="#133C9A" d="M17 29C21 29 25 26.9 28 23.4C36 14 41.4 16.8 44 18C38.5 21 40.5 29.6 33 36C27.5 34.8 21.8 32.2 17 29Z"/><path fill="#3370FF" d="M4 16.2C7.2 20.8 12.4 26 17.4 29.4C23 33.2 28.6 35.7 34 35.2C28.9 39.8 23.8 41 19 41C12.5 41 6.9 37.8 4 35.4Z"/></svg>',
|
|
69
71
|
};
|
|
70
72
|
|
|
71
|
-
/** Claude
|
|
72
|
-
ICON.claude =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
.map((len, i) => {
|
|
76
|
-
const a = (i / lens.length) * Math.PI * 2 + 0.12;
|
|
77
|
-
const x = (r) => (12 + Math.cos(a) * r).toFixed(2);
|
|
78
|
-
const y = (r) => (12 + Math.sin(a) * r).toFixed(2);
|
|
79
|
-
return `M${x(1.6)} ${y(1.6)}L${x(len)} ${y(len)}`;
|
|
80
|
-
})
|
|
81
|
-
.join("");
|
|
82
|
-
return `<svg viewBox="0 0 24 24" fill="none" stroke="#D97757" stroke-width="2.3" stroke-linecap="round"><path d="${rays}"/></svg>`;
|
|
83
|
-
})();
|
|
84
|
-
ICON.codex = ICON.logo;
|
|
73
|
+
/** Claude 的标志(橙色放射状),也是内置专家 Claude Code 的头像 */
|
|
74
|
+
ICON.claude = '<svg viewBox="0 0 640 640"><path fill="#D97757" fill-rule="evenodd" d="M173 2C168 3 167 4 158 17C146 32 146 32 151 52C155 66 155 66 164 81C188 118 252 233 250 235C248 238 246 237 241 233C238 230 221 218 203 204C185 191 156 169 138 156C94 122 96 123 92 122C90 122 84 121 77 120L66 120 58 129L49 139 51 152C52 159 53 165 53 165C53 168 65 179 74 186C80 190 92 199 101 205C110 211 129 225 144 235C185 262 247 304 252 307C254 310 255 311 254 312C253 315 246 315 212 311C196 309 170 307 153 306C114 304 35 298 24 297L14 296 8 301C2 305 1 305 1 310C0 314 0 314 7 323L14 333 21 334C31 337 103 341 170 342C230 344 251 345 252 347C253 347 253 349 253 351C252 355 251 355 190 390C136 420 124 427 102 442C68 465 69 464 68 477L67 486 74 493C79 498 81 499 83 498C84 498 91 497 98 496L110 495 194 440C240 410 279 386 280 385C281 385 281 386 281 387C281 389 277 394 269 404C262 411 248 429 238 442C227 456 204 486 186 509C143 564 143 563 143 574L142 583 152 588L161 593 167 590C172 588 174 586 196 563C220 536 230 524 295 435C308 416 315 408 316 408C318 408 318 408 316 417C315 421 312 436 310 450C306 475 295 533 284 584L279 608 283 618C287 628 287 628 296 634L304 640 313 636C321 633 323 632 327 628L331 623 340 526C348 445 349 429 351 428C353 427 353 426 369 454C395 498 454 586 459 588C461 588 465 589 469 590C476 591 476 591 484 588C492 586 492 585 494 581L496 576 495 562L493 547 456 492C436 461 419 435 419 434C419 433 420 432 421 432C423 432 460 463 486 486C501 499 553 538 557 539C563 541 564 540 569 534L573 528 571 520C570 514 569 512 566 509C556 500 502 450 478 429C447 401 420 374 420 372C420 370 424 371 443 375C453 378 493 388 533 397L606 414 622 406L638 398 639 392L640 385 634 377C628 369 626 367 617 361L606 354 574 351C553 350 528 349 502 348C464 347 425 344 423 342C422 341 419 342 472 329C496 323 531 316 549 312C568 308 594 302 606 299L629 294 633 283C638 273 638 272 637 267L636 262 625 257L613 251 591 255C548 262 523 267 486 275C439 285 443 284 441 283C440 281 441 278 450 263C463 241 486 209 540 142C547 133 547 132 551 118C553 110 555 103 555 102C555 101 551 94 545 86L536 72 521 72L507 72 499 79C480 94 436 145 396 199C381 219 375 226 371 226C370 226 369 225 369 225C369 223 376 184 386 133C390 114 395 83 398 66L403 35 396 26C390 18 389 17 383 13C379 12 375 10 375 10C374 10 369 13 364 16L354 23 349 35C343 49 344 45 339 105C337 125 335 152 333 167C331 181 329 202 329 212C326 245 326 244 324 244C322 244 321 241 317 229C313 216 311 211 286 162C261 113 248 87 226 35C212 4 212 4 181 1C179 0 175 1 173 2"/></svg>';
|
|
75
|
+
/** OpenAI 的标志,也是内置专家 Codex 的头像。跟着文字颜色(深色模式下是白的) */
|
|
76
|
+
ICON.codex = '<svg viewBox="0 0 640 640"><path fill="currentColor" fill-rule="evenodd" d="M253 1C193 8 141 51 122 109C120 115 118 121 117 123C117 127 117 127 108 130C31 154 -16 240 6 321C12 346 26 370 45 391L53 399 52 407C43 448 51 491 75 527C83 539 104 560 116 569C156 596 205 604 250 591L257 589 264 595C284 613 307 624 335 631C351 635 382 635 399 631C461 618 506 575 523 511C523 508 524 508 534 504C587 485 625 442 637 384C640 369 640 341 637 325C631 293 616 266 594 244L587 236 588 228C606 142 552 60 466 41C442 36 412 37 390 44L384 46 375 38C340 9 297 -4 253 1M259 39C258 39 253 39 249 40C206 46 169 78 156 119C150 137 150 139 150 224L150 302 153 305C156 308 206 338 207 338C208 338 208 296 208 245C208 181 208 150 209 148C211 140 215 138 280 100C314 80 343 64 343 63C345 61 322 48 308 44C293 39 272 37 259 39M405 78C385 82 385 82 309 126C271 148 249 161 248 163C246 166 245 168 245 198C245 220 245 230 246 230C247 230 283 209 326 184C412 134 410 135 416 135C422 135 421 135 489 174C524 195 552 211 553 211C554 209 554 196 553 186C547 133 512 92 462 79C448 76 418 75 405 78M103 173C62 194 36 238 38 284C40 316 53 346 75 368C86 379 88 380 145 413C171 428 199 444 206 448C217 454 221 456 224 456C227 456 281 427 281 425C281 425 245 403 201 378C157 353 120 331 119 329C112 323 113 327 112 244L112 169 103 173M385 194C370 202 358 209 358 209C358 210 394 231 438 256C482 281 519 303 521 305C522 306 525 309 526 311C528 316 528 316 528 390C528 444 528 465 529 465C531 465 547 456 554 451C612 407 618 321 566 267C554 256 553 255 497 222C416 176 420 178 416 178C413 178 406 181 385 194M282 252L246 273 246 317L246 362 282 382C303 394 320 403 320 403C321 403 388 365 393 362L395 361 395 317L394 273 358 252C337 240 320 231 320 231C320 231 303 240 282 252M432 389C432 453 432 484 431 486C429 494 425 497 360 535C325 554 297 571 297 571C295 572 307 580 317 585C336 593 353 597 374 596C432 593 475 558 489 502C491 490 492 336 489 331C488 328 483 325 460 312C445 303 433 296 432 296C432 296 432 338 432 389M376 414C367 419 331 440 297 460C230 498 228 500 222 499C217 498 220 500 150 459C117 440 89 424 88 424C87 424 86 440 87 450C91 492 115 527 153 545C183 561 223 563 254 551C264 547 388 476 391 472L394 469 394 436C394 419 394 404 394 404C394 404 386 408 376 414"/></svg>';
|
|
85
77
|
|
|
86
78
|
/**
|
|
87
79
|
* 星星加载动画(回复末尾、打开会话时用)。开屏那个带台面的完整 logo 动画直接写在 index.html 里。
|