dsh-team-bots 0.3.70 → 0.3.80
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/docs/assets/global-config.png +0 -0
- package/docs/assets/global-config.zh.png +0 -0
- package/docs/assets/tasks.png +0 -0
- package/docs/assets/tasks.zh.png +0 -0
- package/docs/assets/usage.png +0 -0
- package/docs/assets/usage.zh.png +0 -0
- package/package.json +1 -1
- package/src/db-migrations.js +3 -0
- package/src/db.js +1 -0
- package/src/services/runtime/session.js +10 -1
- package/src/services/scheduler.js +16 -6
- package/src/services/task-dispatch.js +28 -21
- package/src/services/task-review.js +7 -6
- package/src/services/tasks.js +16 -8
- package/src/usage.js +73 -32
- package/ui/i18n/en/settings.js +1 -0
- package/ui/i18n/zh/settings.js +1 -0
- package/ui/modules/cards.js +36 -5
- package/ui/modules/modal-forms.js +8 -8
- package/ui/styles/base.css +27 -23
- package/ui/styles/buttons.css +35 -21
- package/ui/styles/cards.css +6 -4
- package/ui/styles/chat-cards.css +32 -21
- package/ui/styles/chat-composer.css +17 -13
- package/ui/styles/chat-images.css +24 -19
- package/ui/styles/chat.css +5 -3
- package/ui/styles/frame.css +4 -2
- package/ui/styles/global-config.css +3 -2
- package/ui/styles/main.css +2 -1
- package/ui/styles/modal.css +13 -7
- package/ui/styles/settings.css +5 -3
- package/ui/styles/surfaces.css +5 -3
- package/ui/styles/tasks.css +9 -7
- package/ui/styles/toast.css +1 -1
- package/ui/styles/wide.css +6 -7
package/ui/styles/chat.css
CHANGED
|
@@ -121,9 +121,11 @@
|
|
|
121
121
|
text-overflow: ellipsis;
|
|
122
122
|
white-space: nowrap;
|
|
123
123
|
}
|
|
124
|
+
/* 浮雕气泡:与画布同色,靠小号双影从底面上轻轻挤出;密集流里用按钮级而非卡片级影。 */
|
|
124
125
|
.message-bubble {
|
|
125
126
|
color: var(--ink);
|
|
126
|
-
background: var(--surface
|
|
127
|
+
background: var(--surface);
|
|
128
|
+
box-shadow: var(--shadow-btn);
|
|
127
129
|
border-radius: 4px 12px 12px 12px;
|
|
128
130
|
padding: 9px 13px;
|
|
129
131
|
line-height: 1.7;
|
|
@@ -184,7 +186,7 @@
|
|
|
184
186
|
:is(.message-bubble, .comment-body) a {
|
|
185
187
|
text-decoration: underline;
|
|
186
188
|
text-underline-offset: 2px;
|
|
187
|
-
/* bot 气泡底是 --surface
|
|
189
|
+
/* bot 气泡底是 --surface、评论底是 --surface:--accent-text 在四套主题下
|
|
188
190
|
对比 4.22:1 ~ 8.40:1,配合下划线可读。 */
|
|
189
191
|
color: var(--accent-text);
|
|
190
192
|
}
|
|
@@ -288,7 +290,7 @@
|
|
|
288
290
|
white-space: nowrap;
|
|
289
291
|
}
|
|
290
292
|
/* 引用块:气泡顶部的「❝ 名字:摘要」行。颜色继承气泡正文,
|
|
291
|
-
bot 气泡(surface
|
|
293
|
+
bot 气泡(surface)与用户气泡(accent)各自可读,明暗主题共用变量。 */
|
|
292
294
|
.msg-quote {
|
|
293
295
|
display: flex;
|
|
294
296
|
align-items: baseline;
|
package/ui/styles/frame.css
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
color: var(--accent-text);
|
|
37
37
|
font: 600 0.6875rem var(--mono);
|
|
38
38
|
letter-spacing: 0.01em;
|
|
39
|
+
box-shadow: var(--shadow-btn);
|
|
39
40
|
transition: opacity 0.12s ease;
|
|
40
41
|
}
|
|
41
42
|
.brand:hover .brand-mark {
|
|
@@ -284,14 +285,15 @@
|
|
|
284
285
|
align-items: center;
|
|
285
286
|
gap: 6px;
|
|
286
287
|
padding: 3px 9px;
|
|
287
|
-
border: 1px solid
|
|
288
|
+
border: 1px solid transparent;
|
|
288
289
|
border-radius: 999px;
|
|
289
290
|
background: var(--star-wash);
|
|
290
291
|
color: var(--ink);
|
|
291
292
|
font-size: var(--fs-small);
|
|
293
|
+
box-shadow: var(--shadow-btn);
|
|
292
294
|
cursor: pointer;
|
|
293
295
|
}
|
|
294
|
-
.sidebar-bubble:hover { border-color: var(--
|
|
296
|
+
.sidebar-bubble:hover { border-color: transparent; box-shadow: var(--shadow-btn-hover); }
|
|
295
297
|
.sidebar-bubble .unread-badge { margin-left: 0; }
|
|
296
298
|
.global-config {
|
|
297
299
|
width: 100%;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
justify-content: space-between;
|
|
18
18
|
gap: 24px;
|
|
19
19
|
padding: 22px 24px 20px;
|
|
20
|
-
border: 1px solid
|
|
20
|
+
border: 1px solid transparent;
|
|
21
21
|
border-radius: 14px;
|
|
22
22
|
background: var(--surface);
|
|
23
23
|
box-shadow: var(--shadow-card);
|
|
@@ -65,9 +65,10 @@
|
|
|
65
65
|
flex-wrap: wrap;
|
|
66
66
|
gap: 4px;
|
|
67
67
|
padding: 5px;
|
|
68
|
-
border: 1px solid
|
|
68
|
+
border: 1px solid transparent;
|
|
69
69
|
border-radius: 12px;
|
|
70
70
|
background: color-mix(in srgb, var(--surface) 92%, transparent);
|
|
71
|
+
box-shadow: var(--shadow-inset);
|
|
71
72
|
backdrop-filter: blur(10px);
|
|
72
73
|
}
|
|
73
74
|
.global-nav-item {
|
package/ui/styles/main.css
CHANGED
package/ui/styles/modal.css
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: column;
|
|
23
23
|
background: var(--surface);
|
|
24
|
-
border: 1px solid
|
|
24
|
+
border: 1px solid transparent;
|
|
25
25
|
border-radius: 14px;
|
|
26
26
|
box-shadow: var(--shadow-3);
|
|
27
27
|
overflow: hidden;
|
|
@@ -143,6 +143,8 @@ body:has(#modal-root .modal-backdrop) #app *::after {
|
|
|
143
143
|
/* 写范围(DSHBOTS-124):路径 chip 行(沿用审批卡片的等宽小字 chip)+ 未声明兜底灰字 */
|
|
144
144
|
.scope-block { margin-top: 12px; }
|
|
145
145
|
.scope-chips { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
146
|
+
/* 染色写范围(命中 .gitignore):进卡展示但不参与并行锁,虚线边框 + 淡墨色与生效条目区分 */
|
|
147
|
+
.scope-chip-ignored { border-style: dashed; color: var(--ink-3); opacity: .85; }
|
|
146
148
|
.scope-empty { color: var(--ink-3); font-size: var(--fs-small); }
|
|
147
149
|
.config-card {
|
|
148
150
|
padding: 20px 22px;
|
|
@@ -175,10 +177,11 @@ body:has(#modal-root .modal-backdrop) #app *::after {
|
|
|
175
177
|
overflow-wrap: anywhere;
|
|
176
178
|
}
|
|
177
179
|
.run-row {
|
|
178
|
-
background: var(--surface
|
|
180
|
+
background: var(--surface);
|
|
179
181
|
border-radius: 10px;
|
|
180
182
|
padding: 9px 11px;
|
|
181
183
|
margin-bottom: 6px;
|
|
184
|
+
box-shadow: var(--shadow-inset);
|
|
182
185
|
}
|
|
183
186
|
.run-row-top {
|
|
184
187
|
display: flex;
|
|
@@ -221,9 +224,10 @@ body:has(#modal-root .modal-backdrop) #app *::after {
|
|
|
221
224
|
display: block;
|
|
222
225
|
width: 100%;
|
|
223
226
|
padding: 0;
|
|
224
|
-
border: 1px solid
|
|
227
|
+
border: 1px solid transparent;
|
|
225
228
|
border-radius: 8px;
|
|
226
|
-
background: var(--surface
|
|
229
|
+
background: var(--surface);
|
|
230
|
+
box-shadow: var(--shadow-btn);
|
|
227
231
|
overflow: hidden;
|
|
228
232
|
cursor: zoom-in;
|
|
229
233
|
}
|
|
@@ -238,8 +242,9 @@ body:has(#modal-root .modal-backdrop) #app *::after {
|
|
|
238
242
|
align-items: center;
|
|
239
243
|
gap: 8px;
|
|
240
244
|
padding: 5px 8px;
|
|
241
|
-
border: 1px solid
|
|
245
|
+
border: 1px solid transparent;
|
|
242
246
|
border-radius: 8px;
|
|
247
|
+
box-shadow: var(--shadow-btn);
|
|
243
248
|
font-size: var(--fs-caption);
|
|
244
249
|
color: var(--ink-2);
|
|
245
250
|
text-decoration: none;
|
|
@@ -269,9 +274,10 @@ body:has(#modal-root .modal-backdrop) #app *::after {
|
|
|
269
274
|
word-break: break-all;
|
|
270
275
|
}
|
|
271
276
|
.detail-pre {
|
|
272
|
-
background: var(--surface
|
|
273
|
-
border: 1px solid
|
|
277
|
+
background: var(--surface);
|
|
278
|
+
border: 1px solid transparent;
|
|
274
279
|
border-radius: 10px;
|
|
280
|
+
box-shadow: var(--shadow-inset);
|
|
275
281
|
padding: 12px 14px;
|
|
276
282
|
font: 400 var(--fs-caption) var(--mono);
|
|
277
283
|
color: var(--ink-2);
|
package/ui/styles/settings.css
CHANGED
|
@@ -78,10 +78,11 @@
|
|
|
78
78
|
gap: 2px;
|
|
79
79
|
max-height: 190px;
|
|
80
80
|
overflow: auto;
|
|
81
|
-
background: var(--surface
|
|
82
|
-
border: 1px solid
|
|
81
|
+
background: var(--surface);
|
|
82
|
+
border: 1px solid transparent;
|
|
83
83
|
border-radius: 10px;
|
|
84
84
|
padding: 5px;
|
|
85
|
+
box-shadow: var(--shadow-inset);
|
|
85
86
|
}
|
|
86
87
|
.check-row {
|
|
87
88
|
display: flex;
|
|
@@ -251,5 +252,6 @@
|
|
|
251
252
|
.input[aria-invalid='true'],
|
|
252
253
|
.select[aria-invalid='true'],
|
|
253
254
|
textarea[aria-invalid='true'] {
|
|
254
|
-
|
|
255
|
+
/* 输入件无边框后,非法态改用 danger 光环叠加在凹槽影上,保持可见。 */
|
|
256
|
+
box-shadow: var(--shadow-inset), 0 0 0 1.5px var(--danger);
|
|
255
257
|
}
|
package/ui/styles/surfaces.css
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* ---------------------------------------------------------------- Surfaces */
|
|
2
|
+
/* Relief card: same plane as the canvas, extruded by the dual light. No border —
|
|
3
|
+
the edge is the shadow, separators inside stay as engraved hairlines. */
|
|
2
4
|
.card {
|
|
3
5
|
background: var(--surface);
|
|
4
|
-
border: 1px solid var(--line);
|
|
5
6
|
border-radius: 12px;
|
|
6
|
-
box-shadow: var(--shadow-
|
|
7
|
+
box-shadow: var(--shadow-card);
|
|
7
8
|
}
|
|
8
9
|
.card-head {
|
|
9
10
|
display: flex;
|
|
@@ -75,8 +76,9 @@
|
|
|
75
76
|
width: 40px;
|
|
76
77
|
height: 40px;
|
|
77
78
|
border-radius: 11px;
|
|
78
|
-
background: var(--surface
|
|
79
|
+
background: var(--surface);
|
|
79
80
|
color: var(--ink-3);
|
|
81
|
+
box-shadow: var(--shadow-1);
|
|
80
82
|
display: grid;
|
|
81
83
|
place-items: center;
|
|
82
84
|
margin-bottom: 14px;
|
package/ui/styles/tasks.css
CHANGED
|
@@ -6,26 +6,27 @@
|
|
|
6
6
|
margin-bottom: 16px;
|
|
7
7
|
flex-wrap: wrap;
|
|
8
8
|
}
|
|
9
|
+
/* 输入件是凹槽:同一块材质向内陷,焦点用高对比光环补足(替代原描边色)。 */
|
|
9
10
|
.input,
|
|
10
11
|
.select,
|
|
11
12
|
.textarea {
|
|
12
13
|
background: var(--surface);
|
|
13
|
-
border: 1px solid
|
|
14
|
+
border: 1px solid transparent;
|
|
14
15
|
border-radius: 8px;
|
|
15
16
|
outline: none;
|
|
16
17
|
color: var(--ink);
|
|
17
18
|
padding: 0 10px;
|
|
18
19
|
font-size: var(--fs-body);
|
|
19
20
|
min-height: 32px;
|
|
21
|
+
box-shadow: var(--shadow-inset);
|
|
20
22
|
transition:
|
|
21
|
-
|
|
23
|
+
box-shadow 0.13s ease,
|
|
22
24
|
background-color 0.13s ease;
|
|
23
25
|
}
|
|
24
26
|
.input:focus,
|
|
25
27
|
.select:focus,
|
|
26
28
|
.textarea:focus {
|
|
27
|
-
|
|
28
|
-
background: var(--surface);
|
|
29
|
+
box-shadow: var(--shadow-inset), 0 0 0 2px var(--accent);
|
|
29
30
|
}
|
|
30
31
|
.input::placeholder,
|
|
31
32
|
.textarea::placeholder {
|
|
@@ -416,8 +417,9 @@
|
|
|
416
417
|
.tag {
|
|
417
418
|
border-radius: 5px;
|
|
418
419
|
padding: 1px 6px;
|
|
419
|
-
background: var(--surface
|
|
420
|
-
border: 1px solid
|
|
420
|
+
background: var(--surface);
|
|
421
|
+
border: 1px solid transparent;
|
|
422
|
+
box-shadow: var(--shadow-btn);
|
|
421
423
|
color: var(--ink-2);
|
|
422
424
|
font-size: var(--fs-caption);
|
|
423
425
|
white-space: nowrap;
|
|
@@ -603,7 +605,7 @@
|
|
|
603
605
|
min-width: 168px;
|
|
604
606
|
padding: 6px;
|
|
605
607
|
background: var(--surface);
|
|
606
|
-
border: 1px solid
|
|
608
|
+
border: 1px solid transparent;
|
|
607
609
|
border-radius: 10px;
|
|
608
610
|
box-shadow: var(--shadow-3);
|
|
609
611
|
pointer-events: auto;
|
package/ui/styles/toast.css
CHANGED
package/ui/styles/wide.css
CHANGED
|
@@ -356,11 +356,12 @@
|
|
|
356
356
|
margin-bottom: 12px;
|
|
357
357
|
}
|
|
358
358
|
.secret-request {
|
|
359
|
-
border: 1px solid
|
|
359
|
+
border: 1px solid transparent;
|
|
360
360
|
border-radius: 10px;
|
|
361
361
|
padding: 10px 12px;
|
|
362
362
|
margin-top: 8px;
|
|
363
|
-
background: var(--surface
|
|
363
|
+
background: var(--surface);
|
|
364
|
+
box-shadow: var(--shadow-inset);
|
|
364
365
|
}
|
|
365
366
|
.secret-request-info {
|
|
366
367
|
display: flex;
|
|
@@ -436,9 +437,10 @@
|
|
|
436
437
|
background: var(--line);
|
|
437
438
|
}
|
|
438
439
|
.traj-entry {
|
|
439
|
-
border: 1px solid
|
|
440
|
+
border: 1px solid transparent;
|
|
440
441
|
border-radius: 10px;
|
|
441
|
-
background: var(--surface
|
|
442
|
+
background: var(--surface);
|
|
443
|
+
box-shadow: var(--shadow-inset);
|
|
442
444
|
}
|
|
443
445
|
.traj-entry-head {
|
|
444
446
|
display: flex;
|
|
@@ -487,9 +489,6 @@
|
|
|
487
489
|
font-size: var(--fs-caption);
|
|
488
490
|
line-height: 1.65;
|
|
489
491
|
}
|
|
490
|
-
.traj-end {
|
|
491
|
-
border-color: var(--line-2);
|
|
492
|
-
}
|
|
493
492
|
.traj-end .traj-entry-head {
|
|
494
493
|
color: var(--ink);
|
|
495
494
|
font-weight: 600;
|