pi-web-ui 0.103.2 → 0.104.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/server/agent-formatters.js +18 -2
  3. package/dist/server/agent-service-daemon.js +4 -3
  4. package/dist/server/agent-service.js +773 -181
  5. package/dist/server/compaction-markers.js +111 -3
  6. package/dist/server/delegate-mode.js +2 -0
  7. package/dist/server/dispatch-domain-handlers.js +25 -0
  8. package/dist/server/dsh/dsh-agent-service.js +265 -11
  9. package/dist/server/goal-review-gate.js +2 -0
  10. package/dist/server/goal-service.js +59 -2
  11. package/dist/server/index.js +1 -0
  12. package/dist/server/markers-list-tool.js +1 -1
  13. package/dist/server/market-service.js +36 -9
  14. package/dist/server/mcp-agent-tool.js +164 -0
  15. package/dist/server/mcp-manager.js +182 -0
  16. package/dist/server/plan-mode.js +3 -0
  17. package/dist/server/plugin-api-catalog.js +24 -0
  18. package/dist/server/plugins.js +113 -0
  19. package/dist/server/preset-share.js +52 -1
  20. package/dist/server/remote-ssh-service.js +90 -25
  21. package/dist/server/sandbox-service.js +705 -0
  22. package/dist/server/sandbox-tool.js +365 -0
  23. package/dist/server/session-parser.js +48 -21
  24. package/dist/server/subagent-helpers.js +32 -1
  25. package/dist/server/terminals.js +210 -10
  26. package/dist/server/tool-manager.js +24 -0
  27. package/dist/server/webui-context.js +16 -2
  28. package/dist/server/workspace-snapshot.js +51 -13
  29. package/package.json +1 -1
  30. package/plugin-sdk/index.d.ts +39 -0
  31. package/plugin-sdk/index.mjs +14 -0
  32. package/plugins/catalog.json +110 -0
  33. package/themes/zhujian-dark.css +711 -0
  34. package/themes/zhujian.css +760 -0
  35. package/web/dist/assets/{TerminalPanel-DQFDRz0A.js → TerminalPanel-28naZdcs.js} +1 -1
  36. package/web/dist/assets/index-DbGGBf5I.js +680 -0
  37. package/web/dist/assets/index-RqIdFOsh.css +1 -0
  38. package/web/dist/index.html +2 -2
  39. package/web/dist/sw.js +1 -1
  40. package/web/dist/assets/index-CYQdZEbx.css +0 -1
  41. package/web/dist/assets/index-aGRL6x3h.js +0 -680
@@ -0,0 +1,760 @@
1
+ /* theme-name: 朱笺 */
2
+ /* theme-name-en: Vermilion Note */
3
+ /* theme-group: builtin */
4
+ :root {
5
+ color-scheme: light;
6
+ --bg: #f5f1e8;
7
+ --bg-elev: #f0ebdf;
8
+ --bg-elev2: #fbf8f1;
9
+ --bg-elev3: rgba(38, 34, 24, 0.05);
10
+ --border: #dad2c0;
11
+ --border-soft: #e6dfcf;
12
+ --text: #262218;
13
+ --text-dim: #6e6656;
14
+ --text-faint: #9a9078;
15
+ --accent: #bf3b1f;
16
+ --accent-soft: rgba(191, 59, 31, 0.1);
17
+ --green: #3d7a55;
18
+ --green-soft: rgba(61, 122, 85, 0.12);
19
+ --red: #c2402a;
20
+ --red-soft: rgba(194, 64, 42, 0.1);
21
+ --amber: #a8722a;
22
+ --blue: #3a5fa0;
23
+ --blue-soft: rgba(58, 95, 160, 0.12);
24
+ --term-bg: #2a2620;
25
+ --term-fg: #e8e2d4;
26
+ --term-cursor: #d95a35;
27
+ --term-cursor-accent: #2a2620;
28
+ --term-selection: rgba(217, 90, 53, 0.35);
29
+ --term-black: #2a2620;
30
+ --term-red: #d95a35;
31
+ --term-green: #7ba05b;
32
+ --term-yellow: #d9a441;
33
+ --term-blue: #7a97c2;
34
+ --term-magenta: #b07da8;
35
+ --term-cyan: #6aa8a0;
36
+ --term-white: #e8e2d4;
37
+ --term-bright-black: #8a8272;
38
+ --term-bright-red: #e87350;
39
+ --term-bright-green: #97bd77;
40
+ --term-bright-yellow: #e8bb5f;
41
+ --term-bright-blue: #96b1d8;
42
+ --term-bright-magenta: #c99cc2;
43
+ --term-bright-cyan: #86c2ba;
44
+ --term-bright-white: #fffdf7;
45
+ --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
46
+ --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, Georgia, "Times New Roman", serif;
47
+ --mermaid-font-size: 12px;
48
+ --sans:
49
+ -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Roboto,
50
+ Helvetica, Arial, sans-serif;
51
+ --tooltip-bg: #fffdf7;
52
+ --code-bg: #efe9db;
53
+ --code-text: #33301f;
54
+ --code-border: transparent;
55
+ --code-pad: 0;
56
+ --card-body-pad: 4px 14px 12px;
57
+ --err-text: #a03618;
58
+ --red-text: #a03618;
59
+ --amber-text: #8a5c1e;
60
+ --info-blue: #3a5fa0;
61
+ --link: #a03618;
62
+ --link-hover: #bf3b1f;
63
+ --link-soft: #5a3020;
64
+ --md-strong: #1a160e;
65
+ --skill-blue: #3a5fa0;
66
+ --plugin-purple: #7a5296;
67
+ --auth-green: #3d7a55;
68
+ --scroll-thumb: rgba(38, 34, 24, 0.18);
69
+ --scroll-thumb-hover: rgba(191, 59, 31, 0.4);
70
+ --notice-err-bg: #f5e0d8;
71
+ --notice-warn-bg: #f2e8d4;
72
+ --notice-info-bg: #e2e8ef;
73
+ --notice-err-border: #c2402a;
74
+ --notice-warn-border: #a8722a;
75
+ --notice-info-border: #3a5fa0;
76
+ --send-blue: #bf3b1f;
77
+ --send-blue-hover: #a53118;
78
+ --stop-red: #c2402a;
79
+ --stop-red-hover: #a03618;
80
+ --brand-grad-a: #bf3b1f;
81
+ --brand-grad-b: #a8722a;
82
+ --on-amber: #fffdf7;
83
+ --search-active-fg: #fffdf7;
84
+ --switch-knob: #fffdf7;
85
+ --sunken-bg: rgba(38, 34, 24, 0.06);
86
+ --glow-015: rgba(38, 34, 24, 0.015);
87
+ --glow-025: rgba(38, 34, 24, 0.025);
88
+ --glow-03: rgba(38, 34, 24, 0.03);
89
+ --glow-04: rgba(38, 34, 24, 0.04);
90
+ --glow-05: rgba(38, 34, 24, 0.05);
91
+ --glow-12: rgba(38, 34, 24, 0.12);
92
+ --glow-18: rgba(38, 34, 24, 0.18);
93
+ --glow-22: rgba(38, 34, 24, 0.22);
94
+ --glow-38: rgba(38, 34, 24, 0.38);
95
+ --control-fg: #6e6656;
96
+ --control-bg: #fbf8f1;
97
+ --control-border: #dad2c0;
98
+ --bg-image: none;
99
+ --bg-image-dim: 0.85;
100
+ --bg-image-blur: 0px;
101
+ --wallpaper-panel-alpha: 100%;
102
+ --topbar-bg: #f5f1e8;
103
+ --statusbar-bg: #f5f1e8;
104
+ --panel-bg: #f0ebdf;
105
+ --card-bg: #fbf8f1;
106
+ --chip-bg: #f0ebdf;
107
+ --msgs-bg: #f5f1e8;
108
+ --inputbox-bg: #fbf8f1;
109
+ --menu-bg: #fffdf7;
110
+ }
111
+
112
+ /* =========================================================================
113
+ 朱笺 · Vermilion Note
114
+ 基于宣纸稿纸美学演进的笺纸凹版主题:
115
+ · 工具调用与思考流采用笺纸凹版卡片(独立边框与底色,层次分明)
116
+ · 空思考内容自动撑开高度并显示占位提示
117
+ · 输入框 = 命令栏,左缘一抹朱笔
118
+ · 色彩只有语义:墨、淡墨、朱(唯一强调)、印绿
119
+ ========================================================================= */
120
+
121
+ /* ---- 0. 稿纸底色:旧纸的暗角与天头微光,纯渐变无图 ---- */
122
+ body,
123
+ .app-root {
124
+ background-color: var(--bg);
125
+ background-image:
126
+ radial-gradient(ellipse 90% 55% at 50% -8%, rgba(255, 253, 247, 0.85) 0%, rgba(255, 253, 247, 0) 70%),
127
+ radial-gradient(ellipse 100% 70% at 108% 112%, rgba(166, 140, 100, 0.1) 0%, rgba(166, 140, 100, 0) 70%);
128
+ background-attachment: fixed;
129
+ }
130
+
131
+ ::selection {
132
+ background: rgba(191, 59, 31, 0.18);
133
+ }
134
+
135
+ /* ---- 1. 顶栏隐形化:无底色层次,只一条 hairline,印章品牌 ---- */
136
+ .topbar {
137
+ background: var(--topbar-bg) !important;
138
+ border-bottom: 1px solid var(--border-soft) !important;
139
+ box-shadow: none !important;
140
+ }
141
+
142
+ .brand-logo {
143
+ background: var(--accent) !important;
144
+ color: #f6f2e9 !important;
145
+ border-radius: 2px !important;
146
+ box-shadow: none !important;
147
+ }
148
+
149
+ .brand-name {
150
+ font-family: var(--serif);
151
+ font-weight: 700;
152
+ letter-spacing: 0.06em;
153
+ }
154
+
155
+ /* 顶栏控件全部素色化:无底无框,hover 才现 hairline。兜底所有 button /
156
+ * [role=button]——不管类名是谁(基线 chip / 插件注入 / capsule 等),顶栏里
157
+ * 一律裸图标,dropdown 触发器不许再带盒子。 */
158
+ .topbar button,
159
+ .topbar [role="button"],
160
+ .topbar a.chip,
161
+ .topbar .chip {
162
+ background: transparent !important;
163
+ border: 1px solid transparent !important;
164
+ border-radius: 3px !important;
165
+ box-shadow: none !important;
166
+ transition:
167
+ border-color 0.15s ease,
168
+ color 0.15s ease !important;
169
+ }
170
+
171
+ .topbar button:hover,
172
+ .topbar [role="button"]:hover,
173
+ .topbar a.chip:hover,
174
+ .topbar .chip:hover {
175
+ border-color: var(--border) !important;
176
+ background: transparent !important;
177
+ }
178
+
179
+ .topbar .dropdown {
180
+ background: transparent !important;
181
+ border: none !important;
182
+ box-shadow: none !important;
183
+ }
184
+
185
+ /* ---- 2. 消息区:文档化排版 ----
186
+ * 消息区左右边缘与输入框/快捷短语行保持一致严丝合缝对齐(继承基线列几何)。 */
187
+
188
+ .msg {
189
+ position: relative;
190
+ padding: 2px 0 10px;
191
+ }
192
+
193
+ /* 操作按钮:卡头只有自己的复制键(.chead-copy),消息级按钮(复制三件套 /
194
+ 分叉 / 回滚 / 朗读)统一在底部 .msg-actions 行,流内排在消息气泡/正文下边,
195
+ 桌面端与手机端保持一致。 */
196
+
197
+ /* 角色行:书目式小标 */
198
+ .msg-meta {
199
+ margin-bottom: 4px;
200
+ }
201
+
202
+ /* head 行左右内边距归零:折叠三角贴齐列左缘(文字同一条线),右侧复制
203
+ * 按钮贴右缘——head 无边框后,钮与缘之间不能悬空。三角形 28px 盒内 16px
204
+ * 图标居中内缩 6px,用负外边距做光学对齐。 */
205
+ .chead {
206
+ padding-left: 0;
207
+ padding-right: 0;
208
+ }
209
+
210
+ .chead-toggle {
211
+ margin-left: -6px;
212
+ }
213
+
214
+ /* 正文块上的单一复制键去重:卡头现在只有自己的复制键,消息级复制
215
+ (纯文本 / Markdown / 长图三件套)统一在底部 .msg-actions 行里。 */
216
+ .msg-text-copy {
217
+ display: none !important;
218
+ }
219
+
220
+ /* head 悬浮不再出现底色块:纸面保持完全平整(键盘 focus 的 outline 保留,
221
+ * 只服务键盘导航) */
222
+ div.chead[role="button"]:hover,
223
+ .chead-toggle:hover {
224
+ background: transparent !important;
225
+ }
226
+
227
+ .msg-role {
228
+ font-size: 10.5px;
229
+ font-weight: 600;
230
+ letter-spacing: 0.18em;
231
+ color: var(--text-faint);
232
+ }
233
+
234
+ .msg-time {
235
+ font-family: var(--mono);
236
+ font-size: 10.5px;
237
+ }
238
+
239
+ /* ---- 3. 用户输入:去气泡,「起手式,稿纸批注体 ---- */
240
+ .msg-user .msg-body {
241
+ position: relative;
242
+ background: transparent !important;
243
+ border: none !important;
244
+ border-radius: 0 !important;
245
+ padding: 0 0 0 1.5em !important;
246
+ font-family: var(--serif);
247
+ font-size: 15.5px;
248
+ font-weight: 600;
249
+ line-height: 1.8;
250
+ color: var(--text);
251
+ }
252
+
253
+ .msg-user .msg-body::before {
254
+ content: "「";
255
+ position: absolute;
256
+ left: 0;
257
+ top: -0.12em;
258
+ font-family: var(--serif);
259
+ font-size: 1.3em;
260
+ font-weight: 700;
261
+ color: var(--accent);
262
+ line-height: 1;
263
+ }
264
+
265
+ /* ---- 4. 助手正文:衬线文档体,直接是书页 ---- */
266
+ .msg-assistant .msg-text {
267
+ font-family: var(--serif);
268
+ font-size: 15px;
269
+ line-height: 1.85;
270
+ color: var(--text);
271
+ }
272
+
273
+ .msg-assistant .msg-text p:first-child {
274
+ margin-top: 0;
275
+ }
276
+
277
+ .msg-assistant .msg-text h1,
278
+ .msg-assistant .msg-text h2,
279
+ .msg-assistant .msg-text h3,
280
+ .msg-assistant .msg-text h4 {
281
+ font-family: var(--serif);
282
+ font-weight: 700;
283
+ color: var(--md-strong);
284
+ letter-spacing: 0.02em;
285
+ }
286
+
287
+ .msg-assistant .msg-text blockquote {
288
+ border-left: 2px solid var(--accent-soft);
289
+ font-style: normal;
290
+ color: var(--text-dim);
291
+ }
292
+
293
+ .msg-assistant .msg-text a {
294
+ color: var(--link);
295
+ text-decoration: underline dotted;
296
+ text-decoration-color: rgba(191, 59, 31, 0.45);
297
+ text-underline-offset: 3px;
298
+ }
299
+
300
+ .msg-assistant .msg-text hr {
301
+ border: none;
302
+ border-top: 1px dotted var(--border);
303
+ }
304
+
305
+ .msg-assistant .msg-text code {
306
+ background: #ece4d0;
307
+ color: #6b3a1f;
308
+ border-radius: 2px;
309
+ padding: 1px 5px;
310
+ }
311
+
312
+ /* ---- 5. 工具调用 = 笺纸凹版卡片(与代码块同色,点线引导符填空) ---- */
313
+ .toolcall {
314
+ margin: 6px 0 !important;
315
+ border: 1px solid var(--border-soft) !important;
316
+ border-radius: 4px !important;
317
+ background: var(--code-bg) !important;
318
+ box-shadow: inset 0 1px 2px rgba(38, 34, 24, 0.04) !important;
319
+ overflow: hidden !important;
320
+ }
321
+
322
+ .toolcall-head {
323
+ display: flex;
324
+ align-items: center;
325
+ min-height: 28px;
326
+ padding: 4px 10px !important;
327
+ font-family: var(--mono);
328
+ font-size: 12px;
329
+ }
330
+
331
+ .toolcall-name {
332
+ font-family: var(--mono) !important;
333
+ font-weight: 500 !important;
334
+ font-size: 12px !important;
335
+ letter-spacing: 0.02em;
336
+ color: var(--text-dim) !important;
337
+ }
338
+
339
+ /* 点线引导符:账本目录式填空,落在名字与状态之间 */
340
+ .toolcall .toolcall-spacer {
341
+ border-bottom: 1px dotted #c9bfa8;
342
+ height: 0.7em;
343
+ margin: 0 10px;
344
+ }
345
+
346
+ .toolcall-status {
347
+ color: var(--text-faint) !important;
348
+ }
349
+
350
+ .toolcall.run {
351
+ border-color: rgba(191, 59, 31, 0.5) !important;
352
+ background: var(--code-bg) !important;
353
+ }
354
+
355
+ .toolcall.run .toolcall-name {
356
+ color: var(--accent) !important;
357
+ }
358
+
359
+ .toolcall.run .toolcall-status {
360
+ color: var(--accent) !important;
361
+ }
362
+
363
+ .toolcall.run .toolcall-head {
364
+ background: transparent;
365
+ border-left: none;
366
+ }
367
+
368
+ .toolcall.ok .toolcall-status {
369
+ color: var(--green) !important;
370
+ }
371
+
372
+ .toolcall.err {
373
+ border-color: rgba(194, 64, 42, 0.5) !important;
374
+ background: var(--red-soft) !important;
375
+ }
376
+
377
+ .toolcall.err .toolcall-status {
378
+ color: var(--red) !important;
379
+ }
380
+
381
+ .toolcall.err .toolcall-name {
382
+ color: var(--red) !important;
383
+ }
384
+
385
+ /* 展开的参数/输出:并入台账,无框零内边距平面文本(--code-border/--code-pad
386
+ 已按全透明主题机制置 transparent/0,连带 .termline 一并生效) */
387
+ .toolcall-args pre,
388
+ .toolcall-output pre {
389
+ background: transparent !important;
390
+ border: none !important;
391
+ border-radius: 0 !important;
392
+ padding: 0 !important;
393
+ }
394
+
395
+ /* 工具卡体:带淡墨顶部分隔线与舒适内边距 */
396
+ .toolcall-body {
397
+ border-top: 1px solid var(--border-soft) !important;
398
+ padding: 8px 12px !important;
399
+ background: transparent !important;
400
+ }
401
+
402
+ /* 卡内重复的终端图标只剩噪音(卡头已有工具图标),参照全透明主题隐藏 */
403
+ .termline-icon {
404
+ display: none;
405
+ }
406
+
407
+ .toolcall-output-label {
408
+ margin-top: 6px;
409
+ }
410
+
411
+ .toolcall-kill {
412
+ border-radius: 3px;
413
+ }
414
+
415
+ /* ---- 6. 思考流 = 笺纸凹版卡片 + 空态高度修复(※ 起手,淡墨小字) ---- */
416
+ .thinking {
417
+ margin: 6px 0 !important;
418
+ border: 1px solid var(--border-soft) !important;
419
+ border-radius: 4px !important;
420
+ background: var(--code-bg) !important;
421
+ box-shadow: inset 0 1px 2px rgba(38, 34, 24, 0.04) !important;
422
+ overflow: hidden !important;
423
+ }
424
+
425
+ .thinking-head {
426
+ font-size: 12px;
427
+ color: var(--text-faint);
428
+ padding: 4px 10px !important;
429
+ min-height: 28px;
430
+ display: flex;
431
+ align-items: center;
432
+ }
433
+
434
+ .thinking-icon {
435
+ color: var(--text-faint) !important;
436
+ }
437
+
438
+ .thinking-body {
439
+ border-top: 1px solid var(--border-soft) !important;
440
+ font-style: normal !important;
441
+ font-size: 12.5px !important;
442
+ color: var(--text-dim) !important;
443
+ background: transparent !important;
444
+ position: relative;
445
+ padding: 8px 14px 8px 2em !important;
446
+ min-height: 2.4em;
447
+ line-height: 1.6;
448
+ }
449
+
450
+ .thinking-body::before {
451
+ content: "※";
452
+ position: absolute;
453
+ left: 8px;
454
+ top: 8px;
455
+ color: var(--text-faint);
456
+ }
457
+
458
+ .thinking-body:empty::after {
459
+ content: "(无思考文本记录)";
460
+ color: var(--text-faint);
461
+ font-style: italic;
462
+ }
463
+
464
+ .thinking-live {
465
+ border-color: rgba(191, 59, 31, 0.5) !important;
466
+ background: var(--code-bg) !important;
467
+ }
468
+
469
+ .thinking-live .thinking-toggle,
470
+ .thinking-live-label {
471
+ color: var(--accent) !important;
472
+ }
473
+
474
+ /* ---- 7. 折叠摘要行 / 排队提示:并入台账体系 ---- */
475
+ .msg-collapsed {
476
+ background: transparent !important;
477
+ border: none !important;
478
+ border-bottom: 1px dotted var(--border-soft) !important;
479
+ border-radius: 0 !important;
480
+ box-shadow: none !important;
481
+ padding-left: 0 !important;
482
+ padding-right: 0 !important;
483
+ }
484
+
485
+ .msg-collapsed-action::before {
486
+ margin-left: 0 !important;
487
+ }
488
+
489
+ .msg-error {
490
+ background: var(--red-soft) !important;
491
+ border: none !important;
492
+ border-left: 3px solid var(--red) !important;
493
+ border-radius: 0 !important;
494
+ font-family: var(--serif);
495
+ }
496
+
497
+ /* ---- 8. 输入区 = 命令栏:与其他主题同构——只动颜色不动几何,
498
+ 朱笔以 inset 阴影画在边框内侧,外缘与消息列/chips 恒对齐 ---- */
499
+ .inputbar {
500
+ background: transparent !important;
501
+ }
502
+
503
+ .inputbox {
504
+ background: var(--inputbox-bg) !important;
505
+ border: none !important;
506
+ border-radius: 3px !important;
507
+ box-shadow: inset 3px 0 0 0 rgba(191, 59, 31, 0.35) !important;
508
+ transition:
509
+ border-color 0.2s ease,
510
+ box-shadow 0.2s ease !important;
511
+ }
512
+
513
+ .inputbox:focus-within {
514
+ border: none !important;
515
+ box-shadow: inset 3px 0 0 0 var(--accent) !important;
516
+ }
517
+
518
+ .btn.send {
519
+ background: var(--send-blue) !important;
520
+ color: #f6f2e9 !important;
521
+ border-radius: 50% !important;
522
+ box-shadow: none !important;
523
+ font-weight: 600;
524
+ }
525
+
526
+ .btn.send:hover {
527
+ background: var(--send-blue-hover) !important;
528
+ }
529
+
530
+ .btn.stop {
531
+ background: var(--stop-red) !important;
532
+ color: #f6f2e9 !important;
533
+ border-radius: 50% !important;
534
+ }
535
+
536
+ /* 输入框底部模型选择、思考强度、预设等按钮:去边框、透明底,hover 现 hairline */
537
+ .composer-tools {
538
+ border-top: none !important;
539
+ }
540
+
541
+ .composer-tools .chip,
542
+ .composer-tools .capsule-segment {
543
+ font-size: 13px !important;
544
+ padding: 4px 10px !important;
545
+ gap: 6px !important;
546
+ background: transparent !important;
547
+ border: 1px solid transparent !important;
548
+ box-shadow: none !important;
549
+ border-radius: 3px !important;
550
+ transition:
551
+ border-color 0.15s ease,
552
+ background 0.15s ease !important;
553
+ }
554
+
555
+ .composer-tools .model-thinking-capsule {
556
+ background: transparent !important;
557
+ border: none !important;
558
+ box-shadow: none !important;
559
+ padding: 0 !important;
560
+ }
561
+
562
+ .composer-tools .model-thinking-capsule .capsule-divider {
563
+ display: none !important;
564
+ }
565
+
566
+ .composer-tools .chip:hover,
567
+ .composer-tools .capsule-segment:hover {
568
+ border-color: var(--border) !important;
569
+ background: transparent !important;
570
+ }
571
+
572
+ .composer-tools-left {
573
+ gap: 6px !important;
574
+ }
575
+
576
+ .composer-tools .chip-model,
577
+ .composer-tools .chip-sub,
578
+ .composer-tools .capsule-model-name,
579
+ .composer-tools .capsule-thinking-text {
580
+ font-size: 12.5px !important;
581
+ }
582
+
583
+ /* ---- 9. 底栏 / 状态栏:hairline 收边 ---- */
584
+ .statusbar {
585
+ background: var(--statusbar-bg) !important;
586
+ border-top: 1px solid var(--border-soft) !important;
587
+ box-shadow: none !important;
588
+ }
589
+
590
+ .goalbar {
591
+ background: transparent !important;
592
+ border-top: 1px solid var(--border-soft) !important;
593
+ box-shadow: none !important;
594
+ }
595
+
596
+ /* ---- 10. 左右面板:素纸文件栏 ----
597
+ * 激活态不做红洗(accent-soft 洗在纸上是一块脏粉),改为中性墨面 5% +
598
+ * 左缘 2px 朱标;圆角统一 8px。 */
599
+ .panel {
600
+ background: var(--panel-bg) !important;
601
+ border-color: var(--border-soft) !important;
602
+ }
603
+
604
+ .session-item,
605
+ .project-item,
606
+ .file-item,
607
+ .scm-file {
608
+ border-radius: 8px;
609
+ }
610
+
611
+ .session-item.active,
612
+ .project-item.active {
613
+ background: rgba(38, 34, 24, 0.05);
614
+ border: none;
615
+ box-shadow: inset 2px 0 0 var(--accent);
616
+ }
617
+
618
+ .session-item.active {
619
+ padding: 8px 10px;
620
+ }
621
+
622
+ .project-item.active {
623
+ padding: 7px 10px;
624
+ }
625
+
626
+ /* ---- 11. 代码块与终端:纸凹版 + 暖墨终端 ---- */
627
+ .codeblock {
628
+ background: var(--code-bg) !important;
629
+ border: 1px solid var(--border-soft) !important;
630
+ border-radius: 3px !important;
631
+ box-shadow: none !important;
632
+ }
633
+
634
+ .codeblock pre,
635
+ .msg-text pre {
636
+ background: var(--code-bg) !important;
637
+ color: var(--code-text) !important;
638
+ }
639
+
640
+ /* ---- 11b. 语法高亮适配纸面(全局捆绑的是 github-dark,必须整套覆盖)---- */
641
+ .hljs {
642
+ color: #33301f;
643
+ background: transparent !important;
644
+ }
645
+
646
+ .hljs-comment,
647
+ .hljs-quote {
648
+ color: #948b78;
649
+ }
650
+
651
+ .hljs-keyword,
652
+ .hljs-selector-tag,
653
+ .hljs-doctag,
654
+ .hljs-formula {
655
+ color: #a03618;
656
+ }
657
+
658
+ .hljs-string,
659
+ .hljs-regexp {
660
+ color: #3f6c4f;
661
+ }
662
+
663
+ .hljs-number,
664
+ .hljs-literal {
665
+ color: #8a5c1e;
666
+ }
667
+
668
+ .hljs-title,
669
+ .hljs-title.function_,
670
+ .hljs-section {
671
+ color: #6b3fa0;
672
+ }
673
+
674
+ .hljs-attr,
675
+ .hljs-attribute,
676
+ .hljs-variable,
677
+ .hljs-template-variable,
678
+ .hljs-type,
679
+ .hljs-name {
680
+ color: #8a4a2e;
681
+ }
682
+
683
+ .hljs-built_in {
684
+ color: #2f5f8a;
685
+ }
686
+
687
+ .hljs-deletion {
688
+ color: #7a2718;
689
+ background: rgba(194, 64, 42, 0.12);
690
+ }
691
+
692
+ .hljs-addition {
693
+ color: #2f6b4f;
694
+ background: rgba(61, 122, 85, 0.14);
695
+ }
696
+
697
+ /* ---- 12. 弹层与菜单:纸面实底 + hairline,方角家族 ---- */
698
+ .modal,
699
+ .tool-info-modal,
700
+ .settings-modal,
701
+ .model-modal,
702
+ .tpl-modal,
703
+ .dd-menu,
704
+ .dialog-inline {
705
+ border-radius: 4px !important;
706
+ border: 1px solid var(--border) !important;
707
+ box-shadow:
708
+ 0 1px 2px rgba(38, 34, 24, 0.06),
709
+ 0 16px 40px -12px rgba(38, 34, 24, 0.25) !important;
710
+ }
711
+
712
+ .dd-menu {
713
+ background: var(--menu-bg) !important;
714
+ border: 1px solid var(--border) !important;
715
+ border-radius: 4px !important;
716
+ box-shadow: 0 12px 32px -8px rgba(38, 34, 24, 0.28) !important;
717
+ }
718
+
719
+ .dd-item:hover,
720
+ .dd-all-item:hover {
721
+ background: var(--accent-soft) !important;
722
+ }
723
+
724
+ /* ---- 13. chips / 徽标:账目标签体 ---- */
725
+ .chip {
726
+ background: var(--chip-bg) !important;
727
+ border: 1px solid var(--border-soft) !important;
728
+ border-radius: 2px !important;
729
+ box-shadow: none !important;
730
+ font-family: var(--mono);
731
+ font-size: 11px;
732
+ }
733
+
734
+ /* ---- 14. 滚动条:细墨线 ---- */
735
+ ::-webkit-scrollbar {
736
+ width: 6px;
737
+ height: 6px;
738
+ }
739
+
740
+ ::-webkit-scrollbar-track {
741
+ background: transparent;
742
+ }
743
+
744
+ ::-webkit-scrollbar-thumb {
745
+ background: var(--scroll-thumb);
746
+ border-radius: 0;
747
+ }
748
+
749
+ ::-webkit-scrollbar-thumb:hover {
750
+ background: var(--scroll-thumb-hover);
751
+ }
752
+
753
+ /* ---- 15. 通知条:hairline 左线式 ---- */
754
+ .notice-err,
755
+ .notice-warn,
756
+ .notice-info {
757
+ border-radius: 0 !important;
758
+ border-width: 1px !important;
759
+ border-left-width: 3px !important;
760
+ }