@vincentbanana/bananacli 0.8.20 → 0.8.21
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.en.md +1 -1
- package/README.md +1 -1
- package/design-tokens.json +20 -18
- package/dist/ui/style.css +161 -139
- package/docs/design/principles.md +1 -1
- package/docs/design/tokens.md +11 -10
- package/package.json +1 -1
package/README.en.md
CHANGED
|
@@ -36,7 +36,7 @@ A multi-provider AI agent for the terminal, with a local GUI. It can read and wr
|
|
|
36
36
|
| |_) | (_| | | | | (_| | |_) | (_| | | | |
|
|
37
37
|
|____/ \__,_|_| |_|\__,_|_.__/ \__,_|_| |_|
|
|
38
38
|
|
|
39
|
-
BananaCLI v0.8.
|
|
39
|
+
BananaCLI v0.8.21 · terminal + GUI
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
- **No frontend framework**: the CLI uses Node built-ins only; runtime dependencies are `ws` and `@lydell/node-pty` (prebuilt native module).
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
| |_) | (_| | | | | (_| | |_) | (_| | | | |
|
|
35
35
|
|____/ \__,_|_| |_|\__,_|_.__/ \__,_|_| |_|
|
|
36
36
|
|
|
37
|
-
BananaCLI v0.8.
|
|
37
|
+
BananaCLI v0.8.21 · 终端 + 图形界面
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
- **无前端框架依赖**:CLI 只用 Node 内置模块;运行时依赖 `ws`(GUI/终端 WebSocket)和 `@lydell/node-pty`(预编译原生模块)。
|
package/design-tokens.json
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"color": {
|
|
3
|
-
"bg": "#
|
|
3
|
+
"bg": "#f4f7fa",
|
|
4
4
|
"bgDeep": "#ffffff",
|
|
5
|
-
"panel": "#
|
|
6
|
-
"surface": "#
|
|
7
|
-
"panel2": "#
|
|
8
|
-
"border": "rgba(0,0,0,0.
|
|
9
|
-
"borderStrong": "rgba(0,0,0,0.
|
|
10
|
-
"text": "#
|
|
11
|
-
"text2": "#
|
|
12
|
-
"text3": "#
|
|
13
|
-
"accent": "#
|
|
14
|
-
"accentInk": "#
|
|
5
|
+
"panel": "#ffffff",
|
|
6
|
+
"surface": "#ffffff",
|
|
7
|
+
"panel2": "#eef2f6",
|
|
8
|
+
"border": "rgba(0,0,0,0.09)",
|
|
9
|
+
"borderStrong": "rgba(0,0,0,0.18)",
|
|
10
|
+
"text": "#1a1a1a",
|
|
11
|
+
"text2": "#5a6472",
|
|
12
|
+
"text3": "#8a94a3",
|
|
13
|
+
"accent": "#ffc400",
|
|
14
|
+
"accentInk": "#6f5200",
|
|
15
|
+
"accentSoft": "#fff4cc",
|
|
16
|
+
"onAccent": "#241c00",
|
|
15
17
|
"danger": "#c9564a",
|
|
16
18
|
"success": "#2f7d50"
|
|
17
19
|
},
|
|
18
|
-
"radius": { "none": 0, "sm": 4, "md": 6, "lg":
|
|
20
|
+
"radius": { "none": 0, "sm": 4, "md": 6, "lg": 6 },
|
|
19
21
|
"shadow": {
|
|
20
|
-
"sm": "
|
|
21
|
-
"overlay": "
|
|
22
|
+
"sm": "none",
|
|
23
|
+
"overlay": "none"
|
|
22
24
|
},
|
|
23
25
|
"motion": {
|
|
24
26
|
"default": "off",
|
|
@@ -30,11 +32,11 @@
|
|
|
30
32
|
},
|
|
31
33
|
"spacing": { "unit": 4, "scale": [4, 8, 12, 16, 24, 32, 40, 48] },
|
|
32
34
|
"typography": {
|
|
33
|
-
"xs":
|
|
35
|
+
"xs": 10,
|
|
34
36
|
"sm": 12,
|
|
35
|
-
"md":
|
|
36
|
-
"base":
|
|
37
|
-
"lg":
|
|
37
|
+
"md": 12,
|
|
38
|
+
"base": 13,
|
|
39
|
+
"lg": 15,
|
|
38
40
|
"xl": 20,
|
|
39
41
|
"xxl": 28
|
|
40
42
|
},
|
package/dist/ui/style.css
CHANGED
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
:root {
|
|
10
10
|
/* 唯一一套设计令牌:颜色、间距、字号、圆角、阴影、动效。 */
|
|
11
|
-
--bg-deep: #
|
|
11
|
+
--bg-deep: #f4f7fa;
|
|
12
12
|
--bg: #ffffff;
|
|
13
|
-
--panel: #
|
|
14
|
-
--surface: #
|
|
15
|
-
--panel-2: #
|
|
16
|
-
--panel-3: #
|
|
17
|
-
--line: rgba(0, 0, 0, 0.
|
|
18
|
-
--line-strong: rgba(0, 0, 0, 0.
|
|
13
|
+
--panel: #ffffff;
|
|
14
|
+
--surface: #ffffff;
|
|
15
|
+
--panel-2: #eef2f6;
|
|
16
|
+
--panel-3: #e4e9ef;
|
|
17
|
+
--line: rgba(0, 0, 0, 0.09);
|
|
18
|
+
--line-strong: rgba(0, 0, 0, 0.18);
|
|
19
19
|
--text: #1a1a1a;
|
|
20
|
-
--text-2: #
|
|
21
|
-
--text-3: #
|
|
22
|
-
--text-placeholder: #
|
|
20
|
+
--text-2: #5a6472;
|
|
21
|
+
--text-3: #8a94a3;
|
|
22
|
+
--text-placeholder: #a9b2bd;
|
|
23
23
|
--inverse: #1a1a1a;
|
|
24
|
-
--accent: #
|
|
25
|
-
--accent-ink: #
|
|
26
|
-
--accent-soft: #
|
|
27
|
-
--on-accent: #
|
|
24
|
+
--accent: #ffc400;
|
|
25
|
+
--accent-ink: #6f5200;
|
|
26
|
+
--accent-soft: #fff4cc;
|
|
27
|
+
--on-accent: #241c00;
|
|
28
28
|
--success: #2f7d50;
|
|
29
29
|
--danger: #c9564a;
|
|
30
30
|
--warn: #8f6b1f;
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
--space-6: 32px;
|
|
44
44
|
--space-7: 40px;
|
|
45
45
|
--space-8: 48px;
|
|
46
|
-
--text-xs:
|
|
46
|
+
--text-xs: 10px;
|
|
47
47
|
--text-sm: 12px;
|
|
48
|
-
--text-md:
|
|
49
|
-
--text-base:
|
|
50
|
-
--text-lg:
|
|
48
|
+
--text-md: 12px;
|
|
49
|
+
--text-base: 13px;
|
|
50
|
+
--text-lg: 15px;
|
|
51
51
|
--text-xl: 20px;
|
|
52
52
|
--text-2xl: 28px;
|
|
53
53
|
--radius-sm: 4px;
|
|
54
54
|
--radius-md: 6px;
|
|
55
|
-
--radius:
|
|
56
|
-
--radius-lg:
|
|
55
|
+
--radius: 6px;
|
|
56
|
+
--radius-lg: 6px;
|
|
57
57
|
|
|
58
|
-
--shadow-sm:
|
|
59
|
-
--shadow-1:
|
|
60
|
-
--shadow-overlay:
|
|
61
|
-
--shadow-lg:
|
|
62
|
-
--shadow-raised:
|
|
58
|
+
--shadow-sm: none;
|
|
59
|
+
--shadow-1: none;
|
|
60
|
+
--shadow-overlay: none;
|
|
61
|
+
--shadow-lg: none;
|
|
62
|
+
--shadow-raised: none;
|
|
63
63
|
|
|
64
64
|
--ease: cubic-bezier(0.22, 1, 0.36, 1);
|
|
65
65
|
--ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -92,9 +92,9 @@
|
|
|
92
92
|
--text-3: #94949d;
|
|
93
93
|
--text-placeholder: #6f6f6f;
|
|
94
94
|
--inverse: #f2f2f2;
|
|
95
|
-
--accent: #
|
|
96
|
-
--accent-ink: #
|
|
97
|
-
--accent-soft: #
|
|
95
|
+
--accent: #ffc400;
|
|
96
|
+
--accent-ink: #ffd34d;
|
|
97
|
+
--accent-soft: #3a2f00;
|
|
98
98
|
--on-accent: #161616;
|
|
99
99
|
--success: #86b98d;
|
|
100
100
|
--danger: #d1786e;
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
--diff-del-ink: #d1786e;
|
|
106
106
|
--info: #82bdbd;
|
|
107
107
|
--on-danger: #ffffff;
|
|
108
|
-
--shadow-sm:
|
|
109
|
-
--shadow-overlay:
|
|
108
|
+
--shadow-sm: none;
|
|
109
|
+
--shadow-overlay: none;
|
|
110
110
|
--shadow-lg: var(--shadow-overlay);
|
|
111
111
|
--shadow-raised: var(--shadow-sm);
|
|
112
112
|
}
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
--text-3: #94949d;
|
|
127
127
|
--text-placeholder: #6f6f6f;
|
|
128
128
|
--inverse: #f2f2f2;
|
|
129
|
-
--accent: #
|
|
130
|
-
--accent-ink: #
|
|
131
|
-
--accent-soft: #
|
|
129
|
+
--accent: #ffc400;
|
|
130
|
+
--accent-ink: #ffd34d;
|
|
131
|
+
--accent-soft: #3a2f00;
|
|
132
132
|
--on-accent: #161616;
|
|
133
133
|
--success: #86b98d;
|
|
134
134
|
--danger: #d1786e;
|
|
@@ -139,8 +139,8 @@
|
|
|
139
139
|
--diff-del-ink: #d1786e;
|
|
140
140
|
--info: #82bdbd;
|
|
141
141
|
--on-danger: #ffffff;
|
|
142
|
-
--shadow-sm:
|
|
143
|
-
--shadow-overlay:
|
|
142
|
+
--shadow-sm: none;
|
|
143
|
+
--shadow-overlay: none;
|
|
144
144
|
--shadow-lg: var(--shadow-overlay);
|
|
145
145
|
--shadow-raised: var(--shadow-sm);
|
|
146
146
|
}
|
|
@@ -151,8 +151,16 @@ button:disabled,
|
|
|
151
151
|
input:disabled,
|
|
152
152
|
select:disabled,
|
|
153
153
|
textarea:disabled {
|
|
154
|
-
opacity:
|
|
154
|
+
opacity: 1;
|
|
155
155
|
cursor: not-allowed;
|
|
156
|
+
background: var(--panel-2);
|
|
157
|
+
color: var(--text-3);
|
|
158
|
+
border-color: var(--line);
|
|
159
|
+
}
|
|
160
|
+
.send-btn:disabled {
|
|
161
|
+
background: var(--panel-2);
|
|
162
|
+
color: var(--text-3);
|
|
163
|
+
opacity: 1;
|
|
156
164
|
}
|
|
157
165
|
|
|
158
166
|
:focus-visible {
|
|
@@ -163,12 +171,12 @@ textarea:disabled {
|
|
|
163
171
|
html, body {
|
|
164
172
|
margin: 0;
|
|
165
173
|
height: 100%;
|
|
166
|
-
background: var(--bg);
|
|
174
|
+
background: var(--bg-deep);
|
|
167
175
|
color: var(--text);
|
|
168
176
|
font-family: var(--sans);
|
|
169
|
-
font-size:
|
|
170
|
-
line-height: 1.
|
|
171
|
-
letter-spacing: -0.
|
|
177
|
+
font-size: 13px;
|
|
178
|
+
line-height: 1.65;
|
|
179
|
+
letter-spacing: -0.003em;
|
|
172
180
|
-webkit-font-smoothing: antialiased;
|
|
173
181
|
}
|
|
174
182
|
|
|
@@ -219,7 +227,7 @@ button, input, textarea, select { font: inherit; color: inherit; }
|
|
|
219
227
|
height: 30px;
|
|
220
228
|
padding: 0;
|
|
221
229
|
border: 1px solid transparent;
|
|
222
|
-
border-radius:
|
|
230
|
+
border-radius: 6px;
|
|
223
231
|
background: transparent;
|
|
224
232
|
color: var(--text-2);
|
|
225
233
|
cursor: pointer;
|
|
@@ -245,7 +253,7 @@ button, input, textarea, select { font: inherit; color: inherit; }
|
|
|
245
253
|
text-align: left;
|
|
246
254
|
padding: 8px 10px;
|
|
247
255
|
border: 0;
|
|
248
|
-
border-radius:
|
|
256
|
+
border-radius: 6px;
|
|
249
257
|
background: transparent;
|
|
250
258
|
color: var(--text-2);
|
|
251
259
|
cursor: pointer;
|
|
@@ -290,7 +298,7 @@ button, input, textarea, select { font: inherit; color: inherit; }
|
|
|
290
298
|
gap: 7px;
|
|
291
299
|
padding: 7px 8px;
|
|
292
300
|
border: 1px solid var(--line);
|
|
293
|
-
border-radius:
|
|
301
|
+
border-radius: 6px;
|
|
294
302
|
background: transparent;
|
|
295
303
|
color: var(--text-2);
|
|
296
304
|
font-size: 13px;
|
|
@@ -422,7 +430,7 @@ body.switching { cursor: progress; }
|
|
|
422
430
|
to { opacity: 1; transform: none; }
|
|
423
431
|
}
|
|
424
432
|
|
|
425
|
-
.msg + .msg { margin-top:
|
|
433
|
+
.msg + .msg { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }
|
|
426
434
|
|
|
427
435
|
.msg-role {
|
|
428
436
|
display: flex;
|
|
@@ -475,7 +483,7 @@ pre.code {
|
|
|
475
483
|
margin: 10px 0;
|
|
476
484
|
padding: 12px 14px;
|
|
477
485
|
border: 1px solid var(--line);
|
|
478
|
-
border-radius:
|
|
486
|
+
border-radius: 6px;
|
|
479
487
|
background: var(--panel);
|
|
480
488
|
overflow-x: auto;
|
|
481
489
|
}
|
|
@@ -557,7 +565,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
557
565
|
text-align: left;
|
|
558
566
|
padding: 9px 12px;
|
|
559
567
|
border: 1px solid var(--line);
|
|
560
|
-
border-radius:
|
|
568
|
+
border-radius: 6px;
|
|
561
569
|
background: transparent;
|
|
562
570
|
color: var(--text-2);
|
|
563
571
|
font-size: 13.5px;
|
|
@@ -582,7 +590,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
582
590
|
gap: 8px;
|
|
583
591
|
padding: 6px 8px 6px 12px;
|
|
584
592
|
border: 1px solid var(--line-strong);
|
|
585
|
-
border-radius:
|
|
593
|
+
border-radius: 6px;
|
|
586
594
|
background: var(--bg);
|
|
587
595
|
box-shadow: var(--shadow-sm);
|
|
588
596
|
transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
|
|
@@ -608,9 +616,9 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
608
616
|
width: 32px;
|
|
609
617
|
height: 32px;
|
|
610
618
|
border: 0;
|
|
611
|
-
border-radius:
|
|
612
|
-
background: var(--
|
|
613
|
-
color: var(--
|
|
619
|
+
border-radius: 6px;
|
|
620
|
+
background: var(--accent);
|
|
621
|
+
color: var(--on-accent);
|
|
614
622
|
cursor: pointer;
|
|
615
623
|
transition: opacity 140ms var(--ease), transform 140ms var(--ease);
|
|
616
624
|
}
|
|
@@ -640,7 +648,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
640
648
|
gap: 7px;
|
|
641
649
|
padding: 4px 8px;
|
|
642
650
|
border: 1px solid var(--line);
|
|
643
|
-
border-radius:
|
|
651
|
+
border-radius: 6px;
|
|
644
652
|
background: var(--panel);
|
|
645
653
|
font-size: 12px;
|
|
646
654
|
color: var(--text-2);
|
|
@@ -691,14 +699,14 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
691
699
|
height: 34px;
|
|
692
700
|
padding: 0 10px;
|
|
693
701
|
border: 1px solid var(--line);
|
|
694
|
-
border-radius:
|
|
702
|
+
border-radius: 6px;
|
|
695
703
|
background: var(--bg);
|
|
696
704
|
outline: none;
|
|
697
705
|
font-size: 13.5px;
|
|
698
706
|
}
|
|
699
707
|
.field select:focus, .field input:focus { border-color: var(--text-3); }
|
|
700
708
|
.field .row { display: flex; gap: 8px; }
|
|
701
|
-
.seg { display: flex; border: 1px solid var(--line); border-radius:
|
|
709
|
+
.seg { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex: 1; }
|
|
702
710
|
.seg button {
|
|
703
711
|
flex: 1;
|
|
704
712
|
height: 32px;
|
|
@@ -715,7 +723,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
715
723
|
.seg button.is-on { background: var(--inverse); color: var(--bg); }
|
|
716
724
|
|
|
717
725
|
.perm-row { display: block; }
|
|
718
|
-
.perm-block { border: 1px solid var(--line); border-radius:
|
|
726
|
+
.perm-block { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
|
|
719
727
|
.perm-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
|
|
720
728
|
.perm-name { font-size: 13px; color: var(--text); font-weight: 500; }
|
|
721
729
|
.perm-head .seg { flex: none; width: 190px; }
|
|
@@ -785,7 +793,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
785
793
|
z-index: 40;
|
|
786
794
|
padding: 5px;
|
|
787
795
|
border: 1px solid var(--line);
|
|
788
|
-
border-radius:
|
|
796
|
+
border-radius: 6px;
|
|
789
797
|
background: var(--bg);
|
|
790
798
|
box-shadow: var(--shadow-lg);
|
|
791
799
|
animation: pop 170ms var(--ease) both;
|
|
@@ -801,7 +809,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
801
809
|
width: 100%;
|
|
802
810
|
padding: 7px 9px;
|
|
803
811
|
border: 0;
|
|
804
|
-
border-radius:
|
|
812
|
+
border-radius: 6px;
|
|
805
813
|
background: transparent;
|
|
806
814
|
text-align: left;
|
|
807
815
|
cursor: pointer;
|
|
@@ -831,7 +839,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
831
839
|
max-height: 320px;
|
|
832
840
|
overflow: auto;
|
|
833
841
|
border: 1px solid var(--line);
|
|
834
|
-
border-radius:
|
|
842
|
+
border-radius: 6px;
|
|
835
843
|
background: var(--panel);
|
|
836
844
|
font-family: var(--mono);
|
|
837
845
|
font-size: 12.2px;
|
|
@@ -876,7 +884,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
876
884
|
width: 100%;
|
|
877
885
|
padding: 5px 8px;
|
|
878
886
|
border: 0;
|
|
879
|
-
border-radius:
|
|
887
|
+
border-radius: 6px;
|
|
880
888
|
background: transparent;
|
|
881
889
|
color: var(--text-2);
|
|
882
890
|
font-size: 13px;
|
|
@@ -916,7 +924,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
916
924
|
white-space: pre-wrap;
|
|
917
925
|
overflow-wrap: anywhere;
|
|
918
926
|
}
|
|
919
|
-
.btn.tiny { height: 24px; padding: 0 9px; font-size: 12px; border-radius:
|
|
927
|
+
.btn.tiny { height: 24px; padding: 0 9px; font-size: 12px; border-radius: 6px; }
|
|
920
928
|
|
|
921
929
|
/* ---------- popover ---------- */
|
|
922
930
|
.popover {
|
|
@@ -925,7 +933,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
925
933
|
min-width: 172px;
|
|
926
934
|
padding: 5px;
|
|
927
935
|
border: 1px solid var(--line);
|
|
928
|
-
border-radius:
|
|
936
|
+
border-radius: 6px;
|
|
929
937
|
background: var(--bg);
|
|
930
938
|
box-shadow: var(--shadow-lg);
|
|
931
939
|
animation: pop 190ms var(--spring) both;
|
|
@@ -937,7 +945,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
937
945
|
text-align: left;
|
|
938
946
|
padding: 7px 10px;
|
|
939
947
|
border: 0;
|
|
940
|
-
border-radius:
|
|
948
|
+
border-radius: 6px;
|
|
941
949
|
background: transparent;
|
|
942
950
|
color: var(--text-2);
|
|
943
951
|
font-size: 13px;
|
|
@@ -978,7 +986,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
978
986
|
width: min(560px, 100%);
|
|
979
987
|
background: var(--bg);
|
|
980
988
|
border: 1px solid var(--line);
|
|
981
|
-
border-radius:
|
|
989
|
+
border-radius: 6px;
|
|
982
990
|
box-shadow: var(--shadow-lg);
|
|
983
991
|
padding: 18px;
|
|
984
992
|
animation: pop 200ms var(--ease);
|
|
@@ -994,7 +1002,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
994
1002
|
max-height: 240px;
|
|
995
1003
|
overflow: auto;
|
|
996
1004
|
border: 1px solid var(--line);
|
|
997
|
-
border-radius:
|
|
1005
|
+
border-radius: 6px;
|
|
998
1006
|
background: var(--panel);
|
|
999
1007
|
font-family: var(--mono);
|
|
1000
1008
|
font-size: 12.2px;
|
|
@@ -1007,7 +1015,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
1007
1015
|
height: 32px;
|
|
1008
1016
|
padding: 0 14px;
|
|
1009
1017
|
border: 1px solid var(--line);
|
|
1010
|
-
border-radius:
|
|
1018
|
+
border-radius: 6px;
|
|
1011
1019
|
background: transparent;
|
|
1012
1020
|
color: var(--text-2);
|
|
1013
1021
|
font-size: 13.5px;
|
|
@@ -1015,8 +1023,8 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
1015
1023
|
transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
|
|
1016
1024
|
}
|
|
1017
1025
|
.btn:hover { background: var(--panel-2); color: var(--text); }
|
|
1018
|
-
.btn.primary { background: var(--
|
|
1019
|
-
.btn.primary:hover { opacity: 0.88; background: var(--
|
|
1026
|
+
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
|
|
1027
|
+
.btn.primary:hover { opacity: 0.88; background: var(--accent); color: var(--on-accent); }
|
|
1020
1028
|
|
|
1021
1029
|
.toast {
|
|
1022
1030
|
position: fixed;
|
|
@@ -1025,7 +1033,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
1025
1033
|
transform: translate(-50%, 8px);
|
|
1026
1034
|
padding: 8px 14px;
|
|
1027
1035
|
border: 1px solid var(--line);
|
|
1028
|
-
border-radius:
|
|
1036
|
+
border-radius: 6px;
|
|
1029
1037
|
background: var(--bg);
|
|
1030
1038
|
box-shadow: var(--shadow-lg);
|
|
1031
1039
|
font-size: 13px;
|
|
@@ -1076,7 +1084,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
1076
1084
|
position: absolute;
|
|
1077
1085
|
z-index: 40;
|
|
1078
1086
|
border: 1px solid var(--line-strong);
|
|
1079
|
-
border-radius:
|
|
1087
|
+
border-radius: 6px;
|
|
1080
1088
|
box-shadow: var(--shadow-lg);
|
|
1081
1089
|
overflow: hidden;
|
|
1082
1090
|
}
|
|
@@ -1110,7 +1118,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
1110
1118
|
gap: 5px;
|
|
1111
1119
|
height: 26px;
|
|
1112
1120
|
padding: 0 4px 0 9px;
|
|
1113
|
-
border-radius:
|
|
1121
|
+
border-radius: 6px;
|
|
1114
1122
|
font-size: 11.8px;
|
|
1115
1123
|
color: var(--text-3);
|
|
1116
1124
|
white-space: nowrap;
|
|
@@ -1153,7 +1161,7 @@ pre.code code { border: 0; background: none; padding: 0; font-size: 12.6px; line
|
|
|
1153
1161
|
margin-right: 2px;
|
|
1154
1162
|
padding: 0 6px;
|
|
1155
1163
|
border: 1px solid var(--line);
|
|
1156
|
-
border-radius:
|
|
1164
|
+
border-radius: 6px;
|
|
1157
1165
|
background: var(--bg);
|
|
1158
1166
|
color: var(--text-2);
|
|
1159
1167
|
font-size: 11.5px;
|
|
@@ -1244,7 +1252,7 @@ pre.code {
|
|
|
1244
1252
|
margin: 10px 0;
|
|
1245
1253
|
padding: 11px 13px;
|
|
1246
1254
|
border: 1px solid var(--line);
|
|
1247
|
-
border-radius:
|
|
1255
|
+
border-radius: 6px;
|
|
1248
1256
|
background: var(--panel-2);
|
|
1249
1257
|
overflow: auto;
|
|
1250
1258
|
}
|
|
@@ -1364,32 +1372,32 @@ button:active,
|
|
|
1364
1372
|
right: 12px;
|
|
1365
1373
|
bottom: 12px;
|
|
1366
1374
|
border: 1px solid var(--line-strong);
|
|
1367
|
-
border-radius:
|
|
1375
|
+
border-radius: 6px;
|
|
1368
1376
|
}
|
|
1369
1377
|
.terminal[data-dock='top'] {
|
|
1370
1378
|
left: 12px;
|
|
1371
1379
|
right: 12px;
|
|
1372
1380
|
top: 12px;
|
|
1373
1381
|
border: 1px solid var(--line-strong);
|
|
1374
|
-
border-radius:
|
|
1382
|
+
border-radius: 6px;
|
|
1375
1383
|
}
|
|
1376
1384
|
.terminal[data-dock='right'] {
|
|
1377
1385
|
top: 12px;
|
|
1378
1386
|
right: 12px;
|
|
1379
1387
|
bottom: 12px;
|
|
1380
1388
|
border: 1px solid var(--line-strong);
|
|
1381
|
-
border-radius:
|
|
1389
|
+
border-radius: 6px;
|
|
1382
1390
|
}
|
|
1383
1391
|
.terminal[data-dock='left'] {
|
|
1384
1392
|
top: 12px;
|
|
1385
1393
|
left: 12px;
|
|
1386
1394
|
bottom: 12px;
|
|
1387
1395
|
border: 1px solid var(--line-strong);
|
|
1388
|
-
border-radius:
|
|
1396
|
+
border-radius: 6px;
|
|
1389
1397
|
}
|
|
1390
1398
|
.terminal[data-dock='float'] {
|
|
1391
1399
|
border: 1px solid var(--line-strong);
|
|
1392
|
-
border-radius:
|
|
1400
|
+
border-radius: 6px;
|
|
1393
1401
|
box-shadow: var(--shadow-lg);
|
|
1394
1402
|
overflow: hidden;
|
|
1395
1403
|
}
|
|
@@ -1405,7 +1413,7 @@ button:active,
|
|
|
1405
1413
|
to { opacity: 0; transform: translateY(22px) scale(0.99); }
|
|
1406
1414
|
}
|
|
1407
1415
|
.terminal[data-dock='bottom'] .term-grip {
|
|
1408
|
-
top: -5px; left: 18px; right: 18px; height: 10px; cursor: ns-resize; border-radius:
|
|
1416
|
+
top: -5px; left: 18px; right: 18px; height: 10px; cursor: ns-resize; border-radius: 6px;
|
|
1409
1417
|
}
|
|
1410
1418
|
.terminal[data-dock='top'] .term-grip { bottom: -5px; left: 18px; right: 18px; height: 10px; cursor: ns-resize; }
|
|
1411
1419
|
.terminal[data-dock='right'] .term-grip { left: -5px; top: 18px; bottom: 18px; width: 10px; cursor: ew-resize; }
|
|
@@ -1580,7 +1588,7 @@ button:active,
|
|
|
1580
1588
|
flex-direction: column;
|
|
1581
1589
|
background: var(--bg);
|
|
1582
1590
|
border: 1px solid var(--line-strong);
|
|
1583
|
-
border-radius:
|
|
1591
|
+
border-radius: 6px;
|
|
1584
1592
|
box-shadow: var(--shadow-lg);
|
|
1585
1593
|
overflow: hidden;
|
|
1586
1594
|
animation: bigSpringIn 320ms var(--spring) both;
|
|
@@ -1623,7 +1631,7 @@ button:active,
|
|
|
1623
1631
|
flex-direction: column;
|
|
1624
1632
|
background: var(--bg);
|
|
1625
1633
|
border: 1px solid var(--line-strong);
|
|
1626
|
-
border-radius:
|
|
1634
|
+
border-radius: 6px;
|
|
1627
1635
|
box-shadow: var(--shadow-lg);
|
|
1628
1636
|
overflow: hidden;
|
|
1629
1637
|
animation: bigSpringIn 330ms var(--spring) both;
|
|
@@ -1655,7 +1663,7 @@ button:active,
|
|
|
1655
1663
|
height: 36px;
|
|
1656
1664
|
padding: 0 11px;
|
|
1657
1665
|
border: 0;
|
|
1658
|
-
border-radius:
|
|
1666
|
+
border-radius: 6px;
|
|
1659
1667
|
background: transparent;
|
|
1660
1668
|
color: var(--text-2);
|
|
1661
1669
|
font-size: 13px;
|
|
@@ -1682,7 +1690,7 @@ button:active,
|
|
|
1682
1690
|
.settings-sub { margin: 0 0 16px; font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
|
|
1683
1691
|
.set-card {
|
|
1684
1692
|
border: 1px solid var(--line);
|
|
1685
|
-
border-radius:
|
|
1693
|
+
border-radius: 6px;
|
|
1686
1694
|
background: var(--bg);
|
|
1687
1695
|
overflow: hidden;
|
|
1688
1696
|
}
|
|
@@ -1703,7 +1711,7 @@ button:active,
|
|
|
1703
1711
|
min-width: 180px;
|
|
1704
1712
|
padding: 0 9px;
|
|
1705
1713
|
border: 1px solid var(--line);
|
|
1706
|
-
border-radius:
|
|
1714
|
+
border-radius: 6px;
|
|
1707
1715
|
background: var(--bg);
|
|
1708
1716
|
outline: none;
|
|
1709
1717
|
font-size: 12.5px;
|
|
@@ -1718,7 +1726,7 @@ button:active,
|
|
|
1718
1726
|
min-height: 128px;
|
|
1719
1727
|
padding: 10px 11px;
|
|
1720
1728
|
border: 1px solid var(--line);
|
|
1721
|
-
border-radius:
|
|
1729
|
+
border-radius: 6px;
|
|
1722
1730
|
background: var(--bg);
|
|
1723
1731
|
font-family: var(--mono);
|
|
1724
1732
|
font-size: 12px;
|
|
@@ -1754,7 +1762,7 @@ button:active,
|
|
|
1754
1762
|
.switch:active { transform: scale(0.94); }
|
|
1755
1763
|
.seg {
|
|
1756
1764
|
border: 1px solid var(--line);
|
|
1757
|
-
border-radius:
|
|
1765
|
+
border-radius: 6px;
|
|
1758
1766
|
background: var(--panel);
|
|
1759
1767
|
padding: 3px;
|
|
1760
1768
|
gap: 2px;
|
|
@@ -1771,7 +1779,7 @@ button:active,
|
|
|
1771
1779
|
gap: 12px;
|
|
1772
1780
|
padding: 13px 15px;
|
|
1773
1781
|
border: 1px solid var(--line);
|
|
1774
|
-
border-radius:
|
|
1782
|
+
border-radius: 6px;
|
|
1775
1783
|
background: var(--bg);
|
|
1776
1784
|
animation: sectionSpring 240ms var(--spring) both;
|
|
1777
1785
|
}
|
|
@@ -1797,7 +1805,7 @@ button:active,
|
|
|
1797
1805
|
margin-top: 8px;
|
|
1798
1806
|
padding: 8px 10px;
|
|
1799
1807
|
border: 1px solid var(--line-strong);
|
|
1800
|
-
border-radius:
|
|
1808
|
+
border-radius: 6px;
|
|
1801
1809
|
background: var(--panel);
|
|
1802
1810
|
color: var(--text-2);
|
|
1803
1811
|
font-family: var(--mono);
|
|
@@ -1830,7 +1838,7 @@ button:active,
|
|
|
1830
1838
|
flex-direction: column;
|
|
1831
1839
|
background: var(--bg);
|
|
1832
1840
|
border: 1px solid var(--line-strong);
|
|
1833
|
-
border-radius:
|
|
1841
|
+
border-radius: 6px;
|
|
1834
1842
|
box-shadow: var(--shadow-lg);
|
|
1835
1843
|
overflow: hidden;
|
|
1836
1844
|
animation: ccSpring 260ms var(--spring) both;
|
|
@@ -1875,7 +1883,7 @@ button:active,
|
|
|
1875
1883
|
width: 100%;
|
|
1876
1884
|
padding: 9px 10px;
|
|
1877
1885
|
border: 0;
|
|
1878
|
-
border-radius:
|
|
1886
|
+
border-radius: 6px;
|
|
1879
1887
|
background: transparent;
|
|
1880
1888
|
color: var(--text-2);
|
|
1881
1889
|
text-align: left;
|
|
@@ -1900,7 +1908,7 @@ button:active,
|
|
|
1900
1908
|
gap: 2px;
|
|
1901
1909
|
padding: 4px;
|
|
1902
1910
|
border: 1px solid var(--line-strong);
|
|
1903
|
-
border-radius:
|
|
1911
|
+
border-radius: 6px;
|
|
1904
1912
|
background: var(--bg);
|
|
1905
1913
|
box-shadow: var(--shadow-lg);
|
|
1906
1914
|
animation: ccSpring 190ms var(--spring) both;
|
|
@@ -1933,7 +1941,7 @@ button:active,
|
|
|
1933
1941
|
height: 28px;
|
|
1934
1942
|
padding: 0;
|
|
1935
1943
|
border: 0;
|
|
1936
|
-
border-radius:
|
|
1944
|
+
border-radius: 6px;
|
|
1937
1945
|
background: transparent;
|
|
1938
1946
|
color: var(--text-2);
|
|
1939
1947
|
cursor: pointer;
|
|
@@ -2159,7 +2167,7 @@ html.theme-anim .viewer-panel {
|
|
|
2159
2167
|
max-width: 260px;
|
|
2160
2168
|
padding: 6px 9px;
|
|
2161
2169
|
border: 1px solid var(--line-strong);
|
|
2162
|
-
border-radius:
|
|
2170
|
+
border-radius: 6px;
|
|
2163
2171
|
background: var(--bg);
|
|
2164
2172
|
color: var(--text-2);
|
|
2165
2173
|
font-size: 11.5px;
|
|
@@ -2326,7 +2334,7 @@ html[data-reduce-motion='1'] *::after {
|
|
|
2326
2334
|
height: 28px;
|
|
2327
2335
|
padding: 0 10px;
|
|
2328
2336
|
border: 0;
|
|
2329
|
-
border-radius:
|
|
2337
|
+
border-radius: 6px;
|
|
2330
2338
|
background: transparent;
|
|
2331
2339
|
color: var(--text-3);
|
|
2332
2340
|
font-size: 12.5px;
|
|
@@ -2395,7 +2403,7 @@ html[data-reduce-motion='1'] *::after {
|
|
|
2395
2403
|
position: relative;
|
|
2396
2404
|
}
|
|
2397
2405
|
#terminalPanel .term-tabs { flex: 1 1 auto; min-width: 0; }
|
|
2398
|
-
#terminalPanel .term-tab { height: 26px; padding: 0 8px; border-radius:
|
|
2406
|
+
#terminalPanel .term-tab { height: 26px; padding: 0 8px; border-radius: 6px; font-size: 12px; }
|
|
2399
2407
|
#terminalPanel .term-tab.active { background: var(--bg); color: var(--text); }
|
|
2400
2408
|
#terminalPanel .term-tab-name { max-width: 110px; }
|
|
2401
2409
|
#terminalPanel .term-cwd {
|
|
@@ -2426,7 +2434,7 @@ html[data-reduce-motion='1'] *::after {
|
|
|
2426
2434
|
min-width: 190px;
|
|
2427
2435
|
padding: 5px;
|
|
2428
2436
|
border: 1px solid var(--line-strong);
|
|
2429
|
-
border-radius:
|
|
2437
|
+
border-radius: 6px;
|
|
2430
2438
|
background: var(--bg);
|
|
2431
2439
|
box-shadow: var(--shadow-lg);
|
|
2432
2440
|
animation: popoverSpring 180ms var(--spring) both;
|
|
@@ -2517,7 +2525,7 @@ html[data-reduce-motion='1'] *::after {
|
|
|
2517
2525
|
height: 30px;
|
|
2518
2526
|
padding: 0 8px;
|
|
2519
2527
|
border: 0;
|
|
2520
|
-
border-radius:
|
|
2528
|
+
border-radius: 6px;
|
|
2521
2529
|
background: transparent;
|
|
2522
2530
|
color: var(--text-2);
|
|
2523
2531
|
font-size: 12px;
|
|
@@ -2575,7 +2583,7 @@ html[data-reduce-motion='1'] *::after {
|
|
|
2575
2583
|
.work-group {
|
|
2576
2584
|
margin: 6px 0 10px;
|
|
2577
2585
|
border: 1px solid var(--line);
|
|
2578
|
-
border-radius:
|
|
2586
|
+
border-radius: 6px;
|
|
2579
2587
|
background: var(--panel);
|
|
2580
2588
|
overflow: hidden;
|
|
2581
2589
|
}
|
|
@@ -2636,7 +2644,7 @@ html[data-reduce-motion='1'] *::after {
|
|
|
2636
2644
|
}
|
|
2637
2645
|
.work-group > .tool-group-body { padding: 4px; border-top: 1px solid var(--line); }
|
|
2638
2646
|
.work-group[hidden] { display: none; }
|
|
2639
|
-
.work-group .tool-row { border-radius:
|
|
2647
|
+
.work-group .tool-row { border-radius: 6px; }
|
|
2640
2648
|
.work-group .tool-row + .tool-row { margin-top: 1px; }
|
|
2641
2649
|
|
|
2642
2650
|
/* 终端里 xterm 的滚动条与留白 */
|
|
@@ -2652,7 +2660,8 @@ html, body {
|
|
|
2652
2660
|
background: var(--bg-deep);
|
|
2653
2661
|
color: var(--text);
|
|
2654
2662
|
font-family: var(--sans);
|
|
2655
|
-
font-size:
|
|
2663
|
+
font-size: 13px;
|
|
2664
|
+
line-height: 1.65;
|
|
2656
2665
|
-webkit-font-smoothing: antialiased;
|
|
2657
2666
|
}
|
|
2658
2667
|
|
|
@@ -2867,13 +2876,21 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
2867
2876
|
flex-direction: column;
|
|
2868
2877
|
background: var(--bg);
|
|
2869
2878
|
border: 1px solid var(--line);
|
|
2870
|
-
border-radius:
|
|
2879
|
+
border-radius: 6px;
|
|
2871
2880
|
box-shadow: var(--shadow-raised);
|
|
2872
2881
|
overflow: hidden;
|
|
2873
2882
|
}
|
|
2874
2883
|
.chat-head { flex: none; height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 16px; }
|
|
2875
2884
|
.chat-title-wrap { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; }
|
|
2876
|
-
.chat-title {
|
|
2885
|
+
.chat-title {
|
|
2886
|
+
font-size: 13px;
|
|
2887
|
+
font-weight: 600;
|
|
2888
|
+
letter-spacing: -0.01em;
|
|
2889
|
+
white-space: nowrap;
|
|
2890
|
+
overflow: hidden;
|
|
2891
|
+
text-overflow: ellipsis;
|
|
2892
|
+
box-shadow: inset 0 -6px 0 color-mix(in srgb, var(--accent) 55%, transparent);
|
|
2893
|
+
}
|
|
2877
2894
|
.chat-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
|
|
2878
2895
|
.chat-actions { flex: none; display: flex; align-items: center; gap: 2px; }
|
|
2879
2896
|
|
|
@@ -2890,7 +2907,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
2890
2907
|
flex-direction: column;
|
|
2891
2908
|
background: var(--bg);
|
|
2892
2909
|
border: 1px solid var(--line);
|
|
2893
|
-
border-radius:
|
|
2910
|
+
border-radius: 6px;
|
|
2894
2911
|
box-shadow: var(--shadow-raised);
|
|
2895
2912
|
overflow: hidden;
|
|
2896
2913
|
transition: width 240ms var(--ease), flex-basis 240ms var(--ease), opacity 200ms var(--ease);
|
|
@@ -2950,7 +2967,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
2950
2967
|
position: relative;
|
|
2951
2968
|
background: var(--bg);
|
|
2952
2969
|
border: 1px solid var(--line);
|
|
2953
|
-
border-radius:
|
|
2970
|
+
border-radius: 6px;
|
|
2954
2971
|
box-shadow: var(--shadow-raised);
|
|
2955
2972
|
overflow: hidden;
|
|
2956
2973
|
animation: dockIn 200ms var(--ease) both;
|
|
@@ -2970,7 +2987,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
2970
2987
|
.terminal-dock .term-body { flex: 1; min-height: 0; padding: 4px 0 0 6px; }
|
|
2971
2988
|
.terminal-dock .term-pane { inset: 0; }
|
|
2972
2989
|
.terminal-dock .xterm { padding: 2px 2px 4px 0; }
|
|
2973
|
-
.term-menu { position: absolute; z-index: 20; top: 34px; right: 6px; min-width: 190px; padding: 5px; border: 1px solid var(--line-strong); border-radius:
|
|
2990
|
+
.term-menu { position: absolute; z-index: 20; top: 34px; right: 6px; min-width: 190px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--bg); box-shadow: var(--shadow-lg); animation: menuIn 160ms var(--ease) both; }
|
|
2974
2991
|
.term-menu[hidden] { display: none; }
|
|
2975
2992
|
.term-menu button { display: block; width: 100%; height: 30px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--text-2); font-size: 12px; text-align: left; cursor: pointer; }
|
|
2976
2993
|
.term-menu button:hover { background: var(--panel); color: var(--text); }
|
|
@@ -2989,7 +3006,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
2989
3006
|
padding: 0;
|
|
2990
3007
|
gap: 0;
|
|
2991
3008
|
border: 1px solid var(--line);
|
|
2992
|
-
border-radius:
|
|
3009
|
+
border-radius: 6px;
|
|
2993
3010
|
background: var(--bg);
|
|
2994
3011
|
box-shadow: var(--shadow-raised);
|
|
2995
3012
|
transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
|
|
@@ -3041,7 +3058,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3041
3058
|
display: grid;
|
|
3042
3059
|
place-items: center;
|
|
3043
3060
|
border: 0;
|
|
3044
|
-
border-radius:
|
|
3061
|
+
border-radius: 6px;
|
|
3045
3062
|
background: var(--accent);
|
|
3046
3063
|
color: var(--on-accent);
|
|
3047
3064
|
cursor: pointer;
|
|
@@ -3075,17 +3092,17 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3075
3092
|
}
|
|
3076
3093
|
.msg + .msg { margin-top: 24px; }
|
|
3077
3094
|
.msg-role { display: none; }
|
|
3078
|
-
.msg-body { font-size:
|
|
3095
|
+
.msg-body { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
|
|
3079
3096
|
.msg.user { display: flex; flex-direction: column; align-items: flex-end; }
|
|
3080
3097
|
.msg.user .msg-body {
|
|
3081
3098
|
width: fit-content;
|
|
3082
3099
|
max-width: min(82%, 64ch);
|
|
3083
3100
|
padding: 8px 12px;
|
|
3084
3101
|
border: 0;
|
|
3085
|
-
border-radius:
|
|
3102
|
+
border-radius: 6px;
|
|
3086
3103
|
background: var(--panel);
|
|
3087
3104
|
color: var(--text);
|
|
3088
|
-
font-size:
|
|
3105
|
+
font-size: 13px;
|
|
3089
3106
|
line-height: 1.55;
|
|
3090
3107
|
}
|
|
3091
3108
|
.msg.assistant .msg-body { width: 100%; }
|
|
@@ -3099,7 +3116,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3099
3116
|
.msg-body a { color: var(--accent-ink); text-decoration: none; }
|
|
3100
3117
|
.msg-body a:hover { text-decoration: underline; text-underline-offset: 2px; }
|
|
3101
3118
|
.msg-body code { font-family: var(--mono); font-size: 12.5px; }
|
|
3102
|
-
.msg-body pre.code { border: 1px solid var(--line); border-radius:
|
|
3119
|
+
.msg-body pre.code { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
|
|
3103
3120
|
.turn-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-3); }
|
|
3104
3121
|
.msg.user .turn-meta { justify-content: flex-end; }
|
|
3105
3122
|
.thinking-row, .working-row {
|
|
@@ -3181,7 +3198,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3181
3198
|
height: 30px;
|
|
3182
3199
|
padding: 0 11px;
|
|
3183
3200
|
border: 1px solid var(--line);
|
|
3184
|
-
border-radius:
|
|
3201
|
+
border-radius: 6px;
|
|
3185
3202
|
background: transparent;
|
|
3186
3203
|
color: var(--text-2);
|
|
3187
3204
|
font-size: 12px;
|
|
@@ -3192,7 +3209,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3192
3209
|
.empty .suggest button:active { transform: scale(0.96); }
|
|
3193
3210
|
.empty-tips { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; font-size: 11px; color: var(--text-3); }
|
|
3194
3211
|
.empty-tips b { color: var(--text-2); font-weight: 600; }
|
|
3195
|
-
.empty-warn { max-width: 520px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius:
|
|
3212
|
+
.empty-warn { max-width: 520px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); text-align: left; }
|
|
3196
3213
|
.empty-warn strong { display: block; font-size: 13px; }
|
|
3197
3214
|
.empty-warn span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-3); }
|
|
3198
3215
|
.empty-warn .btn { margin-top: 10px; }
|
|
@@ -3202,7 +3219,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3202
3219
|
.settings-panel {
|
|
3203
3220
|
width: min(1048px, 100%);
|
|
3204
3221
|
height: min(860px, calc(100vh - 16px));
|
|
3205
|
-
border-radius:
|
|
3222
|
+
border-radius: 6px;
|
|
3206
3223
|
border: 1px solid var(--line);
|
|
3207
3224
|
box-shadow: var(--shadow-raised);
|
|
3208
3225
|
background: var(--bg);
|
|
@@ -3220,7 +3237,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3220
3237
|
.settings-title { font-size: 15px; font-weight: 640; }
|
|
3221
3238
|
.settings-sub { font-size: 13px; line-height: 20px; color: var(--text-3); margin-bottom: 16px; }
|
|
3222
3239
|
.settings-section + .settings-section { margin-top: 32px; }
|
|
3223
|
-
.set-card { border-radius:
|
|
3240
|
+
.set-card { border-radius: 6px; background: var(--panel); border: 0; box-shadow: inset 0 0 0 0.5px var(--line); }
|
|
3224
3241
|
.set-card:hover { border: 0; box-shadow: inset 0 0 0 0.5px var(--line); }
|
|
3225
3242
|
.set-row { padding: 16px 16px; gap: 16px; }
|
|
3226
3243
|
.set-row + .set-row { border-top: 0.5px solid var(--line); }
|
|
@@ -3243,7 +3260,7 @@ body.desktop .titlebar { min-height: 44px; }
|
|
|
3243
3260
|
.seg button { height: 24px; border-radius: 4px; font-size: 12px; }
|
|
3244
3261
|
.seg button.is-on { background: var(--panel-3); color: var(--text); }
|
|
3245
3262
|
.settings-actions { gap: 6px; }
|
|
3246
|
-
.plugin-card { border-radius:
|
|
3263
|
+
.plugin-card { border-radius: 6px; padding: 14px 16px; background: var(--panel); border: 0; }
|
|
3247
3264
|
.plugin-card:hover { transform: none; border: 0; box-shadow: none; }
|
|
3248
3265
|
.plugin-name { font-size: 13px; }
|
|
3249
3266
|
.plugin-badge { background: var(--panel-3); }
|
|
@@ -3259,13 +3276,13 @@ body.mac-titlebar .titlebar { padding-left: 78px; }
|
|
|
3259
3276
|
.review { min-width: 420px; max-width: 64%; }
|
|
3260
3277
|
}
|
|
3261
3278
|
@media (max-width: 900px) {
|
|
3262
|
-
.sidebar { position: absolute; z-index: 30; top: 44px; bottom: 8px; left: 8px; width: min(344px, 86vw); padding-right: 8px; background: var(--bg); border-radius:
|
|
3279
|
+
.sidebar { position: absolute; z-index: 30; top: 44px; bottom: 8px; left: 8px; width: min(344px, 86vw); padding-right: 8px; background: var(--bg); border-radius: 6px; box-shadow: var(--shadow-lg); transform: translateX(calc(-100% - 16px)); transition: transform 220ms var(--ease); }
|
|
3263
3280
|
.sidebar.open { transform: none; }
|
|
3264
3281
|
.sidebar[hidden] { display: flex; }
|
|
3265
3282
|
.sb-resizer { display: none; }
|
|
3266
3283
|
.panel-row { gap: 0; }
|
|
3267
|
-
.chat-card { min-width: 0; border-radius:
|
|
3268
|
-
.review { position: absolute; z-index: 25; top: 0; right: 0; bottom: 0; width: min(520px, 94vw); min-width: 0; max-width: 94vw; border-radius:
|
|
3284
|
+
.chat-card { min-width: 0; border-radius: 6px; }
|
|
3285
|
+
.review { position: absolute; z-index: 25; top: 0; right: 0; bottom: 0; width: min(520px, 94vw); min-width: 0; max-width: 94vw; border-radius: 6px; }
|
|
3269
3286
|
.terminal-dock { max-height: 55vh; }
|
|
3270
3287
|
.composer-wrap { padding: 6px 8px 8px; }
|
|
3271
3288
|
}
|
|
@@ -3359,7 +3376,7 @@ html[data-reduce-motion='1'] *::after {
|
|
|
3359
3376
|
.chat-card.home-mode .home-tips:not([hidden]) { display: flex; }
|
|
3360
3377
|
.home-tips .suggest { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 640px; }
|
|
3361
3378
|
.home-tips .suggest button {
|
|
3362
|
-
height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius:
|
|
3379
|
+
height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px;
|
|
3363
3380
|
background: transparent; color: var(--text-2); font-size: 12px; cursor: pointer;
|
|
3364
3381
|
transition: background 140ms var(--ease), color 140ms var(--ease), transform 220ms var(--spring-banana);
|
|
3365
3382
|
}
|
|
@@ -3610,7 +3627,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3610
3627
|
z-index: 90;
|
|
3611
3628
|
padding: 5px;
|
|
3612
3629
|
border: 1px solid var(--line-strong);
|
|
3613
|
-
border-radius:
|
|
3630
|
+
border-radius: 6px;
|
|
3614
3631
|
background: var(--bg);
|
|
3615
3632
|
box-shadow: var(--shadow-lg);
|
|
3616
3633
|
opacity: 0;
|
|
@@ -3774,7 +3791,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3774
3791
|
/* 8. 终端:去复古边框,改成 flat 卡片 */
|
|
3775
3792
|
.terminal-dock {
|
|
3776
3793
|
border: 0;
|
|
3777
|
-
border-radius:
|
|
3794
|
+
border-radius: 6px;
|
|
3778
3795
|
background: var(--bg);
|
|
3779
3796
|
box-shadow: var(--shadow-raised);
|
|
3780
3797
|
}
|
|
@@ -3875,7 +3892,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3875
3892
|
align-items: center;
|
|
3876
3893
|
padding: 2px;
|
|
3877
3894
|
border: 1px solid var(--line);
|
|
3878
|
-
border-radius:
|
|
3895
|
+
border-radius: 6px;
|
|
3879
3896
|
background: var(--panel);
|
|
3880
3897
|
flex: none;
|
|
3881
3898
|
}
|
|
@@ -3908,7 +3925,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3908
3925
|
max-width: 720px;
|
|
3909
3926
|
margin: 0 auto 6px;
|
|
3910
3927
|
border: 1px solid var(--line);
|
|
3911
|
-
border-radius:
|
|
3928
|
+
border-radius: 6px;
|
|
3912
3929
|
background: var(--bg);
|
|
3913
3930
|
overflow: hidden;
|
|
3914
3931
|
}
|
|
@@ -3944,7 +3961,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3944
3961
|
.todo-pulse { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-ink); animation: bananaPulse 1.1s ease-in-out infinite; }
|
|
3945
3962
|
.todo-item.is-done .todo-mark { color: var(--accent-ink); }
|
|
3946
3963
|
|
|
3947
|
-
.att { max-width: 220px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius:
|
|
3964
|
+
.att { max-width: 220px; height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; cursor: pointer; }
|
|
3948
3965
|
.att:hover { border-color: var(--line-strong); color: var(--text); }
|
|
3949
3966
|
.att-ico { display: grid; place-items: center; color: var(--text-3); }
|
|
3950
3967
|
.att-ico svg, .att-remove svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.7; }
|
|
@@ -3955,7 +3972,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3955
3972
|
.msg-attachments { margin-top: 7px; max-width: none; }
|
|
3956
3973
|
.msg-attachments .att { height: 26px; font-size: 11px; }
|
|
3957
3974
|
|
|
3958
|
-
.plan-card { width: 100%; max-width: 744px; margin: 4px auto 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent-ink) 24%, var(--line)); border-radius:
|
|
3975
|
+
.plan-card { width: 100%; max-width: 744px; margin: 4px auto 10px; padding: 10px 12px; border: 1px solid color-mix(in srgb, var(--accent-ink) 24%, var(--line)); border-radius: 6px; background: color-mix(in srgb, var(--accent) 9%, var(--bg)); }
|
|
3959
3976
|
.plan-card.is-approved { border-color: var(--line); background: var(--panel); }
|
|
3960
3977
|
.plan-card.is-cancelled { opacity: 0.6; }
|
|
3961
3978
|
.plan-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text); }
|
|
@@ -3979,7 +3996,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
3979
3996
|
.verify-row:last-of-type { border-bottom: 0; }
|
|
3980
3997
|
.verify-key { flex: none; width: 64px; color: var(--text-3); }
|
|
3981
3998
|
.verify-value { min-width: 0; color: var(--text-2); word-break: break-word; }
|
|
3982
|
-
.task-row { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius:
|
|
3999
|
+
.task-row { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 6px; font-size: 12.5px; color: var(--text-2); }
|
|
3983
4000
|
.task-row:hover { background: var(--panel); }
|
|
3984
4001
|
.task-index { width: 16px; flex: none; font-family: var(--mono); font-size: 10px; color: var(--text-3); }
|
|
3985
4002
|
.task-mark { width: 13px; flex: none; display: grid; place-items: center; color: var(--text-3); }
|
|
@@ -4029,7 +4046,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4029
4046
|
.msg.user .msg-body {
|
|
4030
4047
|
max-width: min(82%, 68ch);
|
|
4031
4048
|
padding: 10px 14px;
|
|
4032
|
-
border-radius:
|
|
4049
|
+
border-radius: 6px;
|
|
4033
4050
|
font-size: 14.5px;
|
|
4034
4051
|
line-height: 1.62;
|
|
4035
4052
|
}
|
|
@@ -4044,7 +4061,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4044
4061
|
.msg-body pre.code {
|
|
4045
4062
|
margin: 12px 0 16px;
|
|
4046
4063
|
padding: 12px 14px;
|
|
4047
|
-
border-radius:
|
|
4064
|
+
border-radius: 6px;
|
|
4048
4065
|
line-height: 1.62;
|
|
4049
4066
|
font-size: 12.5px;
|
|
4050
4067
|
}
|
|
@@ -4066,13 +4083,13 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4066
4083
|
.work-group, .think {
|
|
4067
4084
|
margin: 10px 0 14px;
|
|
4068
4085
|
border: 0;
|
|
4069
|
-
border-radius:
|
|
4086
|
+
border-radius: 6px;
|
|
4070
4087
|
background: transparent;
|
|
4071
4088
|
}
|
|
4072
4089
|
.work-group > summary, .think > summary {
|
|
4073
4090
|
min-height: 32px;
|
|
4074
4091
|
padding: 0 7px;
|
|
4075
|
-
border-radius:
|
|
4092
|
+
border-radius: 6px;
|
|
4076
4093
|
font-size: 12.5px;
|
|
4077
4094
|
font-weight: 450;
|
|
4078
4095
|
color: var(--text-3);
|
|
@@ -4082,7 +4099,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4082
4099
|
.tool-row {
|
|
4083
4100
|
min-height: 32px;
|
|
4084
4101
|
padding: 2px 7px;
|
|
4085
|
-
border-radius:
|
|
4102
|
+
border-radius: 6px;
|
|
4086
4103
|
font-size: 12.5px;
|
|
4087
4104
|
}
|
|
4088
4105
|
.msg .tool-row:hover { transform: none; }
|
|
@@ -4093,7 +4110,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4093
4110
|
max-height: 300px;
|
|
4094
4111
|
margin: 3px 0 8px;
|
|
4095
4112
|
padding: 10px 12px;
|
|
4096
|
-
border-radius:
|
|
4113
|
+
border-radius: 6px;
|
|
4097
4114
|
font-size: 12px;
|
|
4098
4115
|
line-height: 1.62;
|
|
4099
4116
|
}
|
|
@@ -4151,7 +4168,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4151
4168
|
max-width: 100%;
|
|
4152
4169
|
overflow-x: auto;
|
|
4153
4170
|
border: 1px solid var(--line);
|
|
4154
|
-
border-radius:
|
|
4171
|
+
border-radius: 6px;
|
|
4155
4172
|
}
|
|
4156
4173
|
.table-wrap table {
|
|
4157
4174
|
width: 100%;
|
|
@@ -4196,7 +4213,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4196
4213
|
margin-top: 12px;
|
|
4197
4214
|
padding: 0 10px;
|
|
4198
4215
|
border: 1px solid var(--line-strong);
|
|
4199
|
-
border-radius:
|
|
4216
|
+
border-radius: 6px;
|
|
4200
4217
|
background: var(--bg);
|
|
4201
4218
|
color: var(--text);
|
|
4202
4219
|
font-size: 13px;
|
|
@@ -4225,7 +4242,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4225
4242
|
.todo-dock { max-width: 900px; }
|
|
4226
4243
|
|
|
4227
4244
|
/* 正文节奏 */
|
|
4228
|
-
.msg-body { font-size:
|
|
4245
|
+
.msg-body { font-size: 13px; line-height: 1.66; }
|
|
4229
4246
|
.msg-body p { margin-bottom: 12px; }
|
|
4230
4247
|
.msg-body h1,
|
|
4231
4248
|
.msg-body h2,
|
|
@@ -4243,9 +4260,9 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4243
4260
|
.msg.assistant .msg-role::before { background: var(--accent-ink); opacity: 0.45; }
|
|
4244
4261
|
.msg.assistant .msg-role { color: var(--text-3); }
|
|
4245
4262
|
.msg.user .msg-body {
|
|
4246
|
-
background:
|
|
4247
|
-
border
|
|
4248
|
-
padding:
|
|
4263
|
+
background: transparent;
|
|
4264
|
+
border: 0;
|
|
4265
|
+
padding: 0;
|
|
4249
4266
|
}
|
|
4250
4267
|
|
|
4251
4268
|
/* 工具与思考:同一套卡片结构,标题行更像分组头 */
|
|
@@ -4267,7 +4284,8 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4267
4284
|
/* 计划卡:头部与正文分开,按钮区更清楚 */
|
|
4268
4285
|
.plan-card {
|
|
4269
4286
|
padding: 12px 14px;
|
|
4270
|
-
border-color:
|
|
4287
|
+
border-color: var(--line);
|
|
4288
|
+
background: var(--bg);
|
|
4271
4289
|
}
|
|
4272
4290
|
.plan-head {
|
|
4273
4291
|
padding-bottom: 8px;
|
|
@@ -4310,7 +4328,7 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4310
4328
|
border-color: var(--line-strong);
|
|
4311
4329
|
box-shadow: inset 2px 0 0 var(--accent-ink);
|
|
4312
4330
|
}
|
|
4313
|
-
.sb-search { border-radius:
|
|
4331
|
+
.sb-search { border-radius: 6px; }
|
|
4314
4332
|
.sidebar-foot { padding: 10px; gap: 8px; }
|
|
4315
4333
|
|
|
4316
4334
|
/* 任务入口:顶部一枚进度胶囊,点击打开右侧任务面板 */
|
|
@@ -4419,6 +4437,10 @@ input:focus-visible, textarea:focus-visible { outline: none; }
|
|
|
4419
4437
|
.think,
|
|
4420
4438
|
.work-group { box-shadow: none; }
|
|
4421
4439
|
|
|
4440
|
+
/* 工作区留白:让冷灰底露出,面板才有“桌面工具”的边界 */
|
|
4441
|
+
.main { padding: 0 8px 8px; }
|
|
4442
|
+
.topbar { padding-left: 12px; padding-right: 12px; }
|
|
4443
|
+
|
|
4422
4444
|
/* 顶栏和聊天头部:少一点装饰,多一点边界 */
|
|
4423
4445
|
.topbar { height: 50px; }
|
|
4424
4446
|
.chat-head { height: 46px; }
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
| `no-gradient` | 装饰性渐变 | `background: linear-gradient(...)` | `background: var(--panel)` |
|
|
10
10
|
| `no-neon-glow` | 霓虹发光 | `text-shadow: 0 0 18px #8b5cf6` | 无 `text-shadow`,用字重/颜色分层 |
|
|
11
11
|
| `no-glass` | 玻璃拟态 | `backdrop-filter: blur(18px)` | 半透明实色 `rgba(16,16,20,.32)` |
|
|
12
|
-
| `no-ai-palette` | 紫蓝 AI 配色 | `#6366F1` / `#8B5CF6` / `#A855F7` |
|
|
12
|
+
| `no-ai-palette` | 紫蓝 AI 配色 | `#6366F1` / `#8B5CF6` / `#A855F7` | 记号黄 `#ffc400` + 冷灰中性 |
|
|
13
13
|
| `no-big-radius` | 矩形圆角 > 8px | `border-radius: 16px` | `border-radius: var(--radius)` |
|
|
14
14
|
| `no-heavy-shadow` | 多层重阴影 | `0 1px 2px ..., 0 24px 48px ...` | 单层 `var(--shadow-sm)` 或 `var(--shadow-overlay)` |
|
|
15
15
|
| `no-emoji` | emoji 图标 | `💾 保存` | 内联 SVG |
|
package/docs/design/tokens.md
CHANGED
|
@@ -6,22 +6,23 @@
|
|
|
6
6
|
|
|
7
7
|
| 令牌 | 值 | 用途 |
|
|
8
8
|
|---|---|---|
|
|
9
|
-
| `bg` | `#
|
|
10
|
-
| `panel` / `panel2` | `#
|
|
11
|
-
| `border` / `borderStrong` | `rgba(0,0,0,.
|
|
12
|
-
| `text` / `text2` / `text3` | `#
|
|
13
|
-
| `accent` / `accentInk` | `#
|
|
9
|
+
| `bg` | `#f4f7fa` | 工作区背景(冷灰) |
|
|
10
|
+
| `panel` / `panel2` | `#ffffff` / `#eef2f6` | 面板层级 |
|
|
11
|
+
| `border` / `borderStrong` | `rgba(0,0,0,.09)` / `.18` | 边框与分隔 |
|
|
12
|
+
| `text` / `text2` / `text3` | `#1a1a1a` / `#5a6472` / `#8a94a3` | 文字层级 |
|
|
13
|
+
| `accent` / `accentInk` | `#ffc400` / `#6f5200` | 记号笔黄,只做重点 |
|
|
14
|
+
| `onAccent` | `#241c00` | 黄底上的文字 |
|
|
14
15
|
| `danger` / `success` | `#c9564a` / `#2f7d50` | 语义色 |
|
|
15
16
|
|
|
17
|
+
规则:黄色不写字;黄底一律用深褐 `#241c00`;需要黄字时用 `#6f5200`。
|
|
18
|
+
|
|
16
19
|
## 圆角
|
|
17
20
|
|
|
18
|
-
`none` 0、`sm` 4、`md` 6、`lg`
|
|
21
|
+
`none` 0、`sm` 4、`md` 6、`lg` 6。矩形表面 ≤ 6px;胶囊/开关/滚动条/头像可用 `99px` / `999px` / `50%`。
|
|
19
22
|
|
|
20
23
|
## 阴影
|
|
21
24
|
|
|
22
|
-
|
|
23
|
-
- `overlay`:`0 12px 32px rgba(16,16,20,.14)`
|
|
24
|
-
- 禁止逗号分隔的多层重阴影。
|
|
25
|
+
全部 `none`。面板靠 1px 边框和背景色分层,不靠阴影。
|
|
25
26
|
|
|
26
27
|
## 间距
|
|
27
28
|
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
|
|
30
31
|
## 字号
|
|
31
32
|
|
|
32
|
-
`
|
|
33
|
+
`10 / 12 / 13 / 15 / 20 / 28`。正文 13px,辅助 12px,可复制的值用等宽。
|
|
33
34
|
|
|
34
35
|
## 强制规则
|
|
35
36
|
|
package/package.json
CHANGED