pi-web-ui 0.109.0 → 0.110.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 (59) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +21 -1
  3. package/README.zh-CN.md +21 -1
  4. package/README.zh-TW.md +201 -677
  5. package/dist/server/agent-service-daemon.js +2 -2
  6. package/dist/server/agent-service.js +20 -30
  7. package/dist/server/attachments.js +26 -6
  8. package/dist/server/dispatch-domain-handlers.js +2 -0
  9. package/dist/server/dispatch-plugin-handlers.js +1 -0
  10. package/dist/server/durable/durable-driver.js +1 -1
  11. package/dist/server/durable/durable-tools.js +4 -1
  12. package/dist/server/files-service.js +23 -4
  13. package/dist/server/goal-service.js +12 -3
  14. package/dist/server/index.js +39 -10
  15. package/dist/server/locales.js +33 -0
  16. package/dist/server/marker-service.js +7 -13
  17. package/dist/server/markers/builtins/action.js +5 -6
  18. package/dist/server/markers/builtins/notify.js +2 -2
  19. package/dist/server/markers/builtins/rename.js +2 -2
  20. package/dist/server/markers/registry.js +5 -1
  21. package/dist/server/message-window.js +190 -0
  22. package/dist/server/model-admin.js +0 -4
  23. package/dist/server/plugin-catalog-sync.js +10 -2
  24. package/dist/server/plugin-catalog.js +63 -10
  25. package/dist/server/plugins.js +47 -6
  26. package/dist/server/preset-share.js +2 -3
  27. package/dist/server/process-utils.js +58 -24
  28. package/dist/server/protocol-version.js +1 -1
  29. package/dist/server/settings-service.js +5 -0
  30. package/dist/server/slash-commands.js +16 -4
  31. package/dist/server/text-sniff.js +10 -7
  32. package/dist/server/themes.js +36 -1
  33. package/dist/server/universal/drivers/dsh-driver.js +1 -1
  34. package/dist/server/universal/universal-session.js +10 -3
  35. package/dist/server/worktree-service.js +1 -1
  36. package/package.json +7 -2
  37. package/plugin-sdk/index.d.ts +20 -0
  38. package/plugin-sdk/index.mjs +14 -0
  39. package/plugins/catalog.json +22 -2
  40. package/themes/aetheris.css +149 -118
  41. package/themes/bases/flow-base.css +1363 -0
  42. package/themes/bases/obsidian-base.css +679 -0
  43. package/themes/bases/zhujian-base.css +687 -0
  44. package/themes/bases/zhupi-base.css +659 -0
  45. package/themes/flow-light.css +2 -925
  46. package/themes/flow.css +1 -936
  47. package/themes/wallpaper-flow.css +71 -1031
  48. package/themes/wallpaper-obsidian.css +1 -673
  49. package/themes/zhujian-dark.css +1 -605
  50. package/themes/zhujian.css +1 -654
  51. package/themes/zhupi-dark.css +1 -576
  52. package/themes/zhupi.css +1 -626
  53. package/web/dist/assets/{TerminalPanel-BD3a9o-a.js → TerminalPanel-BHjM6pzY.js} +1 -1
  54. package/web/dist/assets/index-DwInT7-a.css +1 -0
  55. package/web/dist/assets/index-GfVFIgIL.js +693 -0
  56. package/web/dist/index.html +2 -2
  57. package/web/dist/sw.js +1 -1
  58. package/web/dist/assets/index-AccytlpP.css +0 -1
  59. package/web/dist/assets/index-B3dar1BK.js +0 -690
@@ -73,7 +73,11 @@
73
73
  --switch-knob: #ffffff;
74
74
  --switch-bg-on: #4ade80;
75
75
  }
76
+ @import "./bases/flow-base.css";
76
77
 
78
+ /* ========================================================
79
+ 壁纸专属覆盖:完全透明化与毛玻璃渗透
80
+ ======================================================== */
77
81
  #root,
78
82
  .app,
79
83
  .layout,
@@ -84,976 +88,54 @@
84
88
  .chat-scroll,
85
89
  .messages,
86
90
  .inputbar {
87
- background: transparent !important;
91
+ background: transparent;
88
92
  }
89
93
 
90
94
  .topbar {
91
- background: rgba(6, 6, 8, 0.4) !important;
92
- border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
93
- backdrop-filter: none !important;
94
- -webkit-backdrop-filter: none !important;
95
- box-shadow: none !important;
96
- z-index: 50 !important;
95
+ background: rgba(6, 6, 8, 0.4);
96
+ border-bottom: 1px solid rgba(255, 255, 255, 0.14);
97
+ box-shadow: none;
97
98
  }
98
99
 
99
100
  .footer-bar,
100
101
  .statusbar {
101
- background: rgba(6, 6, 8, 0.4) !important;
102
- border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
103
- backdrop-filter: none !important;
104
- -webkit-backdrop-filter: none !important;
105
- box-shadow: none !important;
106
- z-index: 50 !important;
102
+ background: rgba(6, 6, 8, 0.4);
103
+ border-top: 1px solid rgba(255, 255, 255, 0.14);
104
+ box-shadow: none;
107
105
  }
108
106
 
109
107
  .panel,
110
108
  .drawer-left .panel,
111
109
  .drawer-right .panel,
112
110
  .lp-panel {
113
- background: rgba(8, 8, 12, 0.38) !important;
114
- border-color: rgba(255, 255, 255, 0.12) !important;
115
- backdrop-filter: none !important;
116
- -webkit-backdrop-filter: none !important;
117
- box-shadow: none !important;
118
- }
119
-
120
- .panel-header,
121
- .lp-section-header,
122
- .panel-convs,
123
- .panel-sessions,
124
- .lp-group-title,
125
- .panel-body {
126
- background: transparent !important;
111
+ background: rgba(8, 8, 12, 0.38);
112
+ border-color: rgba(255, 255, 255, 0.12);
113
+ box-shadow: none;
127
114
  }
128
115
 
129
- .lp-conv-row:hover,
130
116
  .lp-conv-row.active,
131
117
  .ft-row:hover,
132
118
  .panel-item:hover {
133
- background: rgba(255, 255, 255, 0.1) !important;
134
- }
135
-
136
- /* 左侧分区标题提亮并施加微暗边缘 */
137
- .lp-section-header,
138
- .lp-section-title,
139
- .lp-section-title-text,
140
- .lp-section-chevron,
141
- .lp-section-count,
142
- .panel-section-title {
143
- color: #f8fafc !important;
144
- opacity: 0.96 !important;
145
- text-shadow:
146
- 0 0 1px rgba(0, 0, 0, 0.95),
147
- 0 1px 1.5px rgba(0, 0, 0, 0.88) !important;
148
- }
149
-
150
- /* ========================================================
151
- 核心:极简行文(Flow)—— 正文零边框、零背景色、极致紧凑
152
- ======================================================== */
153
- .messages-wrap,
154
- .chat-scroll,
155
- .messages {
156
- background: transparent !important;
157
- }
158
-
159
- .messages {
160
- padding-top: 4px !important;
161
- padding-bottom: calc(48px + var(--quick-row-h, 0px)) !important;
162
- }
163
-
164
- .msg {
165
- background: transparent !important;
166
- border: none !important;
167
- box-shadow: none !important;
168
- margin: 4px 0 !important;
169
- padding: 0 !important;
170
- }
171
-
172
- .msg-assistant {
173
- margin: 8px 0 !important;
174
- padding: 0 !important;
175
- }
176
-
177
- /* 正文主体:完全透明无边框无圆角无遮挡,如字行书纸上 */
178
- .msg-assistant .msg-body {
179
- background: transparent !important;
180
- border: none !important;
181
- border-radius: 0 !important;
182
- box-shadow: none !important;
183
- backdrop-filter: none !important;
184
- -webkit-backdrop-filter: none !important;
185
- overflow: visible !important;
186
- display: block !important;
187
- padding: 0 !important;
188
- margin: 0 !important;
189
- line-height: 1.62 !important;
190
- letter-spacing: 0.012em !important;
191
- }
192
-
193
- .msg-text,
194
- .msg-assistant .msg-text {
195
- background: transparent !important;
196
- border: none !important;
197
- box-shadow: none !important;
198
- padding: 0 !important;
199
- margin: 0 !important;
119
+ background: rgba(255, 255, 255, 0.1);
200
120
  }
201
121
 
202
- /* 正文排版极致紧凑:段间距、行高、列表间隙微调,彻底消灭笨重留白 */
203
- .msg-body p {
204
- margin: 0.36em 0 !important;
205
- line-height: 1.62 !important;
206
- }
207
- .msg-body p:first-child {
208
- margin-top: 0 !important;
209
- }
210
- .msg-body p:last-child {
211
- margin-bottom: 0 !important;
212
- }
213
-
214
- .msg-body ul,
215
- .msg-body ol {
216
- margin: 0.25em 0 !important;
217
- padding-left: 1.25em !important;
218
- }
219
-
220
- .msg-body li {
221
- margin: 0.12em 0 !important;
222
- line-height: 1.58 !important;
223
- }
224
- .msg-body li > p {
225
- margin: 0 !important;
226
- display: inline !important;
227
- }
228
-
229
- .msg-body h1,
230
- .msg-body h2,
231
- .msg-body h3,
232
- .msg-body h4,
233
- .msg-body h5,
234
- .msg-body h6 {
235
- margin: 0.55em 0 0.22em 0 !important;
236
- line-height: 1.35 !important;
237
- font-weight: 600 !important;
238
- color: #ffffff !important;
239
- }
240
- .msg-body h1:first-child,
241
- .msg-body h2:first-child,
242
- .msg-body h3:first-child,
243
- .msg-body h4:first-child {
244
- margin-top: 0 !important;
245
- }
246
-
247
- .msg-body blockquote {
248
- background: transparent !important;
249
- border: none !important;
250
- border-left: 2px solid rgba(255, 255, 255, 0.32) !important;
251
- margin: 0.35em 0 !important;
252
- padding: 2px 0 2px 10px !important;
253
- opacity: 0.92 !important;
254
- }
255
-
256
- .msg-body hr {
257
- margin: 0.5em 0 !important;
258
- border: none !important;
259
- border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
260
- }
261
-
262
- .msg-body table {
263
- background: transparent !important;
264
- border-collapse: collapse !important;
265
- border: 1px solid rgba(255, 255, 255, 0.14) !important;
266
- margin: 0.4em 0 !important;
267
- font-size: 13.5px !important;
268
- }
269
-
270
- .msg-body th,
271
- .msg-body td {
272
- background: transparent !important;
273
- border: 1px solid rgba(255, 255, 255, 0.1) !important;
274
- padding: 4px 8px !important;
275
- }
276
-
277
- .msg-body code:not(pre code) {
278
- background: rgba(255, 255, 255, 0.08) !important;
279
- border: 1px solid rgba(255, 255, 255, 0.14) !important;
280
- border-radius: 4px !important;
281
- padding: 1px 4px !important;
282
- }
283
-
284
- .msg-body pre {
285
- background: rgba(6, 8, 12, 0.72) !important;
286
- border: 1px solid rgba(255, 255, 255, 0.12) !important;
287
- border-radius: 8px !important;
288
- margin: 0.42em 0 !important;
289
- padding: 8px 12px !important;
290
- line-height: 1.45 !important;
291
- font-size: 13px !important;
292
- }
293
-
294
- /* ========================================================
295
- 核心:所有正文文字微小黑色阴影(Micro Crisp Dark Shadow)
296
- 紧锁字形边缘,锐利如印,不散不糊,在任何壁纸上行文自如
297
- ======================================================== */
298
- .topbar,
299
- .topbar-title,
300
- .bar-item-text,
301
- .bar-item-badge,
302
- .brand,
303
- .brand *,
304
- .lp-section-header,
305
- .lp-section-title,
306
- .lp-group-title,
307
- .project-name,
308
- .session-title,
309
- .lp-conv-title,
310
- .ft-name,
311
- .quick-chip,
312
- .msg-editor-file,
313
- .msg-assistant,
314
- .msg-assistant *,
122
+ /* 壁纸文字边缘锁边微小紧致阴影 */
315
123
  .msg-text,
316
- .msg-text *,
317
- .msg-body,
318
- .msg-body *,
319
- .msg-body p,
320
- .msg-body li,
321
- .msg-body ul,
322
- .msg-body ol,
323
- .msg-body h1,
324
- .msg-body h2,
325
- .msg-body h3,
326
- .msg-body h4,
327
- .msg-body h5,
328
- .msg-body h6,
329
- .msg-body strong,
330
- .msg-body b,
331
- .msg-body em,
332
- .msg-body i,
333
- .msg-body span,
334
- .msg-body a,
335
- .msg-body blockquote,
336
- .msg-body table,
337
- .msg-body td,
338
- .msg-body th,
339
- .msg-body code:not(pre code),
340
- .thinking-title,
341
- .thinking-summary,
342
- .thinking-body,
343
- .thinking-body *,
344
- .tool-title,
345
- .toolcall-name,
346
- .chead-title,
347
- button:not(.icon-btn):not(.lp-section-action),
348
- .btn {
349
- text-shadow:
350
- 0 0 1px rgba(0, 0, 0, 0.95),
351
- 0 1px 1.5px rgba(0, 0, 0, 0.88) !important;
352
- }
353
-
354
- /* 次要小字保护:防眩光微锁边 */
355
- .project-path,
356
- .project-time,
357
- .session-sub,
358
- .session-meta,
359
- .session-time,
360
- .ft-path,
361
- .ft-size,
362
- .ft-date,
363
- .msg-time,
364
- .msg-role,
365
- .bar-item-char,
366
- .cwd-sub,
367
- .lp-section-count,
368
- .lp-count,
369
- .statusbar,
370
- .statusbar *,
371
- .footer-bar,
372
- .footer-bar *,
373
- .ctx-val,
374
- .ctx-max,
375
- .status-conn-label,
376
- .status-cache-label,
377
- .engine-picker-name,
378
- .engine-badge,
379
- .text-dim,
380
- .text-faint,
381
- .version-text,
382
- .template-desc,
383
- .inputbox textarea {
384
- color: #e2e8f0 !important;
385
- opacity: 0.95 !important;
386
- text-shadow:
387
- 0 0 1px rgba(0, 0, 0, 0.95),
388
- 0 1px 1px rgba(0, 0, 0, 0.85) !important;
389
- }
390
-
391
- .project-path,
392
- .session-meta {
393
- color: #f1f5f9 !important;
394
- opacity: 0.92 !important;
395
- }
396
-
397
- .project-time,
398
- .session-time {
399
- color: #e2e8f0 !important;
400
- opacity: 0.95 !important;
401
- }
402
-
403
- /* 用户提问消息气泡:紧凑微透暗晶微胶囊 */
404
- .msg-user {
405
- background: transparent !important;
406
- box-shadow: none !important;
407
- margin: 6px 0 2px 0 !important;
408
- }
409
-
410
- .msg-user .msg-body {
411
- background: linear-gradient(135deg, rgba(28, 30, 40, 0.55) 0%, rgba(16, 18, 24, 0.45) 100%) !important;
412
- border: 1px solid rgba(255, 255, 255, 0.12) !important;
413
- border-radius: 12px !important;
414
- padding: 6px 12px !important;
415
- box-shadow: none !important;
416
- backdrop-filter: blur(2px) saturate(115%) !important;
417
- -webkit-backdrop-filter: blur(2px) saturate(115%) !important;
418
- }
419
-
420
- /* 输入框 */
421
- .inputbox {
422
- background: rgba(12, 14, 20, 0.5) !important;
423
- border: 1px solid rgba(255, 255, 255, 0.2) !important;
424
- border-radius: 18px !important;
425
- box-shadow: none !important;
426
- backdrop-filter: blur(8px) saturate(130%) !important;
427
- -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
428
- transition: border-color 0.2s ease;
429
- }
430
-
431
- .inputbox:focus-within {
432
- border-color: rgba(255, 255, 255, 0.6) !important;
433
- box-shadow: none !important;
434
- }
435
-
436
- .inputbox textarea {
437
- background: transparent !important;
438
- color: #ffffff !important;
439
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.88);
440
- }
441
-
442
- .composer-tools,
443
- .composer-tools-left,
444
- .composer-tools-center,
445
- .composer-tools-right {
446
- color: #ffffff !important;
447
- }
448
-
449
- .composer-tools .chip {
450
- background: rgba(14, 15, 22, 0.45) !important;
451
- border: 1px solid rgba(255, 255, 255, 0.2) !important;
452
- color: #ffffff !important;
453
- box-shadow: none !important;
454
- transition:
455
- background 0.15s ease,
456
- border-color 0.15s ease;
457
- }
458
-
459
- .composer-tools .chip:hover {
460
- background: rgba(14, 15, 22, 0.7) !important;
461
- border-color: #ffffff !important;
462
- }
463
-
464
- .composer-tools .chip > span,
465
- .composer-tools .chip > span.chip-model,
466
- .composer-tools .chip > span.chip-sub,
467
- .composer-tools .chip-sub {
468
- color: #ffffff !important;
469
- opacity: 0.98 !important;
124
+ .msg-assistant .msg-text,
125
+ .msg-assistant .msg-text p,
126
+ .msg-assistant .msg-text li,
127
+ .msg-assistant .msg-text h1,
128
+ .msg-assistant .msg-text h2,
129
+ .msg-assistant .msg-text h3,
130
+ .msg-assistant .msg-text h4,
131
+ .msg-assistant .msg-text h5,
132
+ .msg-assistant .msg-text h6 {
470
133
  text-shadow:
471
134
  0 0 1px rgba(0, 0, 0, 0.95),
472
- 0 1px 1.5px rgba(0, 0, 0, 0.85) !important;
473
- }
474
-
475
- .composer-tools .chip > svg,
476
- .composer-tools .dd-caret svg,
477
- .composer-tools .dd-caret,
478
- .inputbox .composer-tools-left button svg,
479
- .inputbox .btn.composer-plugin-action svg,
480
- .inputbox .composer-tools-left .btn svg {
481
- color: #ffffff !important;
482
- stroke: #ffffff !important;
483
- filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.85)) !important;
484
- }
485
-
486
- .inputbox .composer-tools-left button,
487
- .inputbox .btn.composer-plugin-action,
488
- .inputbox .composer-tools-left .btn {
489
- filter: none !important;
490
- }
491
-
492
- .composer-tools .chip,
493
- .composer-tools .chip:hover,
494
- .composer-tools .dropdown > button,
495
- .composer-tools .dropdown > button:hover,
496
- .dropdown > button.chip,
497
- .dropdown > button.chip:hover {
498
- border-radius: 8px !important;
499
- }
500
-
501
- .inputbox .btn.composer-plugin-action:not(.chip):hover,
502
- .inputbox .composer-tools-left > button:not(.chip):not(.dropdown):hover {
503
- color: #ffffff !important;
504
- background: rgba(255, 255, 255, 0.14) !important;
505
- border-radius: 6px !important;
135
+ 0 1px 1.5px rgba(0, 0, 0, 0.88);
506
136
  }
507
137
 
508
- .inputbox .btn.send {
509
- background: #f8fafc !important;
510
- border-color: #ffffff !important;
511
- color: #050507 !important;
512
- box-shadow: 0 2px 12px rgba(255, 255, 255, 0.35) !important;
513
- }
514
- .inputbox .btn.send svg {
515
- stroke: #050507 !important;
516
- color: #050507 !important;
517
- filter: none !important;
518
- }
519
- .inputbox .btn.send:hover:not(:disabled) {
520
- background: #ffffff !important;
521
- border-color: #ffffff !important;
522
- color: #000000 !important;
523
- box-shadow: 0 0 16px rgba(255, 255, 255, 0.55) !important;
524
- transform: translateY(-1px);
525
- }
526
- .inputbox .btn.send:disabled {
527
- opacity: 0.35 !important;
528
- box-shadow: none !important;
529
- cursor: default !important;
530
- }
531
- .inputbox .btn.send:disabled svg {
532
- stroke: #050507 !important;
533
- color: #050507 !important;
534
- filter: none !important;
535
- }
536
-
537
- .inputbox .split-send {
538
- background: #f8fafc !important;
539
- border-color: #ffffff !important;
540
- box-shadow: 0 2px 12px rgba(255, 255, 255, 0.35) !important;
541
- }
542
- .inputbox .split-send button {
543
- color: #050507 !important;
544
- }
545
- .inputbox .split-send button svg {
546
- stroke: #050507 !important;
547
- color: #050507 !important;
548
- filter: none !important;
549
- }
550
- .inputbox .split-send .split-queue {
551
- background: rgba(0, 0, 0, 0.08) !important;
552
- }
553
- .inputbox .split-send button + button {
554
- border-left: 1px solid rgba(0, 0, 0, 0.18) !important;
555
- }
556
- .inputbox .split-send:hover {
557
- background: #ffffff !important;
558
- border-color: #ffffff !important;
559
- box-shadow: 0 0 16px rgba(255, 255, 255, 0.55) !important;
560
- }
561
- .inputbox .split-send button:hover:not(:disabled) {
562
- background: rgba(0, 0, 0, 0.12) !important;
563
- }
564
-
565
- .card {
566
- background: transparent !important;
567
- border: none !important;
568
- box-shadow: none !important;
569
- }
570
-
571
- /* ========================================================
572
- 字级输入流系统(Character-Level Inline Stream):
573
- 对话流就像一个输入框,每个工具调用、思考、附件就是一个字。
574
- 无折叠按钮,无任何换行,字字连贯,一点一点混排流进正文中。
575
- ======================================================== */
576
-
577
- /* 1. 助手消息体:完全作为文字流容器,不设多余内外边距 */
578
- .turn-tools-trail {
579
- display: flex !important;
580
- flex-direction: row !important;
581
- flex-wrap: wrap !important;
582
- align-items: center !important;
583
- gap: 6px !important;
584
- margin: 6px 0 16px 0 !important;
585
- padding: 0 !important;
586
- width: 100% !important;
587
- }
588
- .turn-tools-trail > .msg,
589
- .turn-tools-trail > .msg-assistant,
590
- .turn-tools-trail > .msg .msg-body,
591
- .turn-tools-trail > .msg-assistant .msg-body {
592
- display: contents !important;
593
- width: auto !important;
594
- }
595
- /* 彻底隐藏工具流集群内的元数据行(角色/模型/时间)与操作栏,杜绝100%全宽节点打断胶囊横向流动 */
596
- .turn-tools-trail .msg-meta,
597
- .turn-tools-trail .msg-actions,
598
- .turn-tools-trail > .msg > .msg-meta,
599
- .turn-tools-trail > .msg > .msg-actions,
600
- .turn-tools-trail > .msg-assistant > .msg-meta,
601
- .turn-tools-trail > .msg-assistant > .msg-actions {
602
- display: none !important;
603
- width: 0 !important;
604
- height: 0 !important;
605
- margin: 0 !important;
606
- padding: 0 !important;
607
- }
608
- /* 消除兄弟选择器在横向流中对卡头施加的任何 border 细线,彻底清零外边距 */
609
- .turn-tools-trail .chead,
610
- .turn-tools-trail .toolcall .chead,
611
- .turn-tools-trail .thinking .chead,
612
- .turn-tools-trail .toolcall + .toolcall .chead,
613
- .turn-tools-trail .thinking + .toolcall .chead,
614
- .turn-tools-trail .toolcall + .thinking .chead,
615
- .turn-tools-trail * .chead {
616
- border: none !important;
617
- margin: 0 !important;
618
- }
619
- .turn-tools-trail .thinking,
620
- .turn-tools-trail .toolcall,
621
- .main.hide-model-row .turn-tools-trail .thinking,
622
- .main.hide-model-row .turn-tools-trail .toolcall,
623
- .main.hide-model-row .msg-assistant .turn-tools-trail .thinking,
624
- .main.hide-model-row .msg-assistant .turn-tools-trail .toolcall {
625
- display: inline-flex !important;
626
- align-items: center !important;
627
- justify-content: center !important;
628
- vertical-align: middle !important;
629
- box-sizing: border-box !important;
630
- width: auto !important;
631
- min-width: 0 !important;
632
- max-width: fit-content !important;
633
- flex: 0 0 auto !important;
634
- height: 22px !important;
635
- line-height: 20px !important;
636
- margin: 0 !important;
637
- padding: 0 7px !important;
638
- overflow: hidden !important;
639
- }
640
-
641
- .msg-assistant .msg-body {
642
- display: block !important;
643
- line-height: 1.62 !important;
644
- font-size: 14px !important;
645
- letter-spacing: 0.015em !important;
646
- word-break: break-word !important;
647
- }
648
-
649
- /* 2. 工具调用、思考、附件徽标:Apple Vision 液态毛玻璃亚克力呼吸晶体微胶囊 */
650
- .toolcall,
651
- .thinking {
652
- display: inline-flex !important;
653
- align-items: center !important;
654
- justify-content: center !important;
655
- vertical-align: middle !important;
656
- box-sizing: border-box !important;
657
- width: auto !important;
658
- min-width: 0 !important;
659
- max-width: fit-content !important;
660
- flex: 0 0 auto !important;
661
- height: 23px !important;
662
- line-height: 21px !important;
663
- margin: 0 !important;
664
- padding: 0 8px !important;
665
- background: rgba(255, 255, 255, 0.05) !important;
666
- border: 1px solid rgba(255, 255, 255, 0.09) !important;
667
- border-radius: 999px !important;
668
- font-family: var(--mono, monospace) !important;
669
- font-size: 11px !important;
670
- font-weight: 500 !important;
671
- cursor: pointer !important;
672
- white-space: nowrap !important;
673
- box-shadow:
674
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.22),
675
- 0 2px 5px rgba(0, 0, 0, 0.35) !important;
676
- backdrop-filter: blur(12px) saturate(140%) !important;
677
- -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
678
- transition:
679
- background 0.15s cubic-bezier(0.16, 1, 0.3, 1),
680
- border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1),
681
- box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1),
682
- transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
683
- overflow: hidden !important;
684
- user-select: none !important;
685
- text-decoration: none !important;
686
- }
687
-
688
- .toolcall:hover,
689
- .thinking:hover {
690
- background: rgba(255, 255, 255, 0.09) !important;
691
- border-color: rgba(255, 255, 255, 0.22) !important;
692
- box-shadow:
693
- inset 0 1px 1px rgba(255, 255, 255, 0.35),
694
- 0 4px 10px rgba(0, 0, 0, 0.45) !important;
695
- transform: translateY(-1px) !important;
696
- }
697
-
698
- /* 状态氛围微光点睛 */
699
- .toolcall.run {
700
- border-color: rgba(245, 158, 11, 0.45) !important;
701
- box-shadow:
702
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25),
703
- 0 0 10px rgba(245, 158, 11, 0.25) !important;
704
- }
705
-
706
- .toolcall.ok {
707
- border-color: rgba(52, 211, 153, 0.25) !important;
708
- }
709
-
710
- .toolcall.err {
711
- border-color: rgba(248, 113, 113, 0.45) !important;
712
- box-shadow:
713
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25),
714
- 0 0 10px rgba(239, 68, 68, 0.25) !important;
715
- }
716
-
717
- .thinking {
718
- border-color: rgba(192, 132, 252, 0.25) !important;
719
- }
720
- .thinking:hover {
721
- border-color: rgba(192, 132, 252, 0.45) !important;
722
- }
723
- .thinking.run {
724
- border-color: rgba(192, 132, 252, 0.5) !important;
725
- box-shadow:
726
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.25),
727
- 0 0 10px rgba(192, 132, 252, 0.25) !important;
728
- }
729
- .thinking.ok {
730
- border: none !important;
731
- }
732
-
733
- /* 彻底隐藏流内图片缩略图,read 的图片绝不直接塞在流里破坏胶囊排布;
734
- 用户点击胶囊时由居中弹窗 Tool Inspector 完整展示高清大图与详情 */
735
- .toolcall-images,
736
- .toolcall-image,
737
- .toolcall .toolcall-images {
738
- display: none !important;
739
- }
740
-
741
- /* 3. 卡头:自适应内容宽度,严格水平垂直对齐,统一由 gap 提供间距,彻底消除内部 margin */
742
- .toolcall .toolcall-head,
743
- .toolcall .chead,
744
- .thinking .chead {
745
- display: inline-flex !important;
746
- align-items: center !important;
747
- justify-content: center !important;
748
- vertical-align: middle !important;
749
- box-sizing: border-box !important;
750
- width: auto !important;
751
- min-width: 0 !important;
752
- max-width: fit-content !important;
753
- min-height: unset !important;
754
- height: 100% !important;
755
- padding: 0 !important;
756
- margin: 0 !important;
757
- border: none !important;
758
- background: transparent !important;
759
- gap: 4px !important;
760
- box-shadow: none !important;
761
- line-height: 1 !important;
762
- }
763
-
764
- /* 彻底隐藏一切占位、折叠、复制等破坏行内流动性的元素:不需要折叠按钮、不需要长文本,所有按钮只显示名称与状态 */
765
- .toolcall .chead-toggle,
766
- .toolcall .toolcall-toggle,
767
- .toolcall .toolcall-spacer,
768
- .toolcall .chead-copy,
769
- .toolcall .toolcall-copy,
770
- .toolcall .toolcall-path,
771
- .toolcall .toolcall-cmd,
772
- .toolcall .toolcall-query,
773
- .toolcall .toolcall-timeout,
774
- .toolcall .toolcall-agent,
775
- .toolcall .toolcall-open,
776
- .toolcall .toolcall-kill,
777
- .toolcall .toolcall-duration,
778
- .thinking .chead-toggle,
779
- .thinking .thinking-toggle,
780
- .thinking .chead-copy,
781
- .thinking .thinking-copy,
782
- .thinking .thinking-spacer,
783
- .thinking .thinking-summary-text,
784
- .thinking .thinking-preview-live,
785
- .thinking .thinking-preview-viewport,
786
- .thinking .thinking-preview-track,
787
- .thinking .thinking-preview-prefix,
788
- .thinking .thinking-live-label,
789
- .thinking-summary {
790
- display: none !important;
791
- }
792
-
793
- .chead-icon,
794
- .chead-icon.thinking-icon,
795
- .chead-icon.toolcall-icon,
796
- .toolcall-icon,
797
- .toolcall-head svg,
798
- .thinking-icon,
799
- .thinking svg {
800
- display: inline-flex !important;
801
- align-items: center !important;
802
- justify-content: center !important;
803
- width: 12px !important;
804
- height: 12px !important;
805
- padding: 0 !important;
806
- margin: 0 !important;
807
- border-radius: 0 !important;
808
- background: transparent !important;
809
- flex: none !important;
810
- opacity: 0.82 !important;
811
- font-size: 10px !important;
812
- }
813
-
814
- .toolcall-name,
815
- .chead-title.toolcall-name,
816
- .thinking-name,
817
- .thinking-label,
818
- .chead-title.thinking-label {
819
- display: inline-flex !important;
820
- align-items: center !important;
821
- justify-content: center !important;
822
- line-height: 1 !important;
823
- font-size: 11px !important;
824
- font-weight: 500 !important;
825
- color: #f1f5f9 !important;
826
- padding: 0 !important;
827
- margin: 0 !important;
828
- flex: none !important;
829
- min-width: unset !important;
830
- max-width: unset !important;
831
- letter-spacing: 0.02em !important;
832
- }
833
-
834
- .thinking .thinking-name {
835
- color: #f1f5f9 !important;
836
- }
837
- .thinking .thinking-icon,
838
- .thinking .thinking-status {
839
- color: #c084fc !important;
840
- filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.75)) !important;
841
- }
842
-
843
- /* 语义化工具微光宝石呼吸灯 */
844
- .toolcall-icon.tc-tone-exec {
845
- color: #38bdf8 !important;
846
- filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.75)) !important;
847
- }
848
- .toolcall-icon.tc-tone-read,
849
- .toolcall-icon.tc-tone-search {
850
- color: #34d399 !important;
851
- filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.75)) !important;
852
- }
853
- .toolcall-icon.tc-tone-edit {
854
- color: #fbbf24 !important;
855
- filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.75)) !important;
856
- }
857
- .toolcall-icon.tc-tone-code {
858
- color: #e879f9 !important;
859
- filter: drop-shadow(0 0 4px rgba(232, 121, 249, 0.75)) !important;
860
- }
861
- .toolcall-icon.tc-tone-agent {
862
- color: #f87171 !important;
863
- filter: drop-shadow(0 0 4px rgba(248, 113, 113, 0.75)) !important;
864
- }
865
-
866
- .toolcall.ok .toolcall-status {
867
- color: #34d399 !important;
868
- filter: drop-shadow(0 0 3px rgba(52, 211, 153, 0.6)) !important;
869
- }
870
- .toolcall.err .toolcall-status {
871
- color: #f87171 !important;
872
- filter: drop-shadow(0 0 4px rgba(248, 113, 113, 0.8)) !important;
873
- }
874
-
875
- .toolcall-status,
876
- .thinking-status {
877
- display: inline-flex !important;
878
- align-items: center !important;
879
- justify-content: center !important;
880
- vertical-align: middle !important;
881
- width: 11px !important;
882
- height: 11px !important;
883
- font-size: 9px !important;
884
- flex: none !important;
885
- margin: 0 !important;
886
- padding: 0 !important;
887
- }
888
- .toolcall-status > svg,
889
- .toolcall-status svg,
890
- .thinking-status > svg,
891
- .thinking-status svg {
892
- width: 10px !important;
893
- height: 10px !important;
894
- margin: 0 !important;
895
- padding: 0 !important;
896
- }
897
- .thinking-status .spin,
898
- .toolcall-status .spin,
899
- .toolcall-status .half-ring-spin,
900
- .thinking-status .half-ring-spin,
901
- .toolcall.run .toolcall-status svg,
902
- .toolcall.run .toolcall-status-icon svg {
903
- animation: spin 0.85s linear infinite !important;
904
- transform-origin: center center !important;
905
- }
906
-
907
- /* 特殊输出代表性微标:图片 🖼️、Markdown 📝 等精致小徽标,行内零干扰 */
908
- .toolcall-out-badge {
909
- display: inline-flex !important;
910
- align-items: center !important;
911
- justify-content: center !important;
912
- vertical-align: middle !important;
913
- width: 11px !important;
914
- height: 11px !important;
915
- font-size: 9.5px !important;
916
- margin: 0 !important;
917
- padding: 0 !important;
918
- flex: none !important;
919
- opacity: 0.85 !important;
920
- }
921
- .toolcall-out-badge.img {
922
- color: #38bdf8 !important;
923
- }
924
- .toolcall-out-badge.md {
925
- color: #a78bfa !important;
926
- }
927
- .toolcall-out-badge svg {
928
- width: 10px !important;
929
- height: 10px !important;
930
- margin: 0 !important;
931
- padding: 0 !important;
932
- }
933
-
934
- /* 4. 附件也是一个“字”:排布在同一输入流中,外边距清零由 gap 管理 */
935
- .msg-queued-atts-bar {
936
- display: inline-flex !important;
937
- align-items: center !important;
938
- gap: 6px !important;
939
- margin: 0 !important;
940
- padding: 0 !important;
941
- }
942
- .queued-att-chip,
943
- .attach-chip {
944
- display: inline-flex !important;
945
- align-items: center !important;
946
- vertical-align: middle !important;
947
- box-sizing: border-box !important;
948
- height: 22px !important;
949
- line-height: 20px !important;
950
- margin: 0 !important;
951
- padding: 0 7px !important;
952
- font-size: 11px !important;
953
- border-radius: 5px !important;
954
- }
955
-
956
- /* 5. 核心铁律:正文文本自成段落倾泻,与上方工具流保持呼吸间距 */
957
- .msg-assistant .msg-text {
958
- display: block !important;
959
- padding: 0 !important;
960
- margin: 8px 0 0 0 !important;
961
- }
962
- .msg-assistant .msg-text > .markdown {
963
- display: inline !important;
964
- }
965
- .msg-assistant .msg-text > .markdown > p:first-child {
966
- display: inline !important;
967
- margin: 0 !important;
968
- }
969
-
970
- /* 6. 核心:彻底隐藏原地展开内容,点击由检查器弹窗全屏/居中接管 */
971
- .toolcall-body,
972
- .thinking-body {
973
- display: none !important;
974
- }
975
-
976
- .msg-actions {
977
- opacity: 0.3 !important;
978
- margin-top: 2px !important;
979
- transition: opacity 0.15s ease !important;
980
- }
981
- .msg-assistant:hover .msg-actions,
982
- .msg-user:hover .msg-actions {
983
- opacity: 1 !important;
984
- }
985
-
986
- pre,
987
- code {
988
- text-shadow: none !important;
989
- }
990
-
991
- /* 快捷指令/快捷短语与底部建议胶囊:悬浮、背景透明、毛玻璃磨砂浮空效果 */
992
- .quick-chip,
993
- .action-suggestion-chip {
994
- background: rgba(14, 16, 24, 0.42) !important;
995
- border: 1px solid rgba(255, 255, 255, 0.18) !important;
996
- border-radius: 999px !important;
997
- backdrop-filter: blur(14px) saturate(140%) !important;
998
- -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
999
- box-shadow:
1000
- 0 4px 16px rgba(0, 0, 0, 0.35),
1001
- 0 1px 3px rgba(0, 0, 0, 0.25),
1002
- inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
1003
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9) !important;
1004
- transition:
1005
- transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
1006
- box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
1007
- border-color 0.18s ease,
1008
- background 0.18s ease,
1009
- color 0.18s ease !important;
1010
- }
1011
-
1012
- .quick-chip:hover:not(:disabled),
1013
- .action-suggestion-chip:hover:not(:disabled) {
1014
- transform: translateY(-2px) !important;
1015
- background: rgba(255, 255, 255, 0.18) !important;
1016
- border-color: rgba(255, 255, 255, 0.45) !important;
1017
- box-shadow:
1018
- 0 8px 24px rgba(0, 0, 0, 0.5),
1019
- 0 2px 6px rgba(0, 0, 0, 0.3),
1020
- inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
1021
- }
1022
-
1023
- .quick-chip:active:not(:disabled),
1024
- .action-suggestion-chip:active:not(:disabled) {
1025
- transform: translateY(0) scale(0.97) !important;
1026
- }
1027
-
1028
- .dd-menu,
1029
- .ctx-menu,
1030
- .pm-panel,
1031
- .modal-dialog {
1032
- background: #111218 !important;
1033
- border: 1px solid rgba(255, 255, 255, 0.22) !important;
1034
- box-shadow:
1035
- 0 12px 40px rgba(0, 0, 0, 0.85),
1036
- 0 0 20px rgba(255, 255, 255, 0.1) !important;
1037
- }
1038
-
1039
- [data-pi-floating-panel],
1040
- .floating-panel {
1041
- background: rgba(12, 13, 18, 0.85) !important;
1042
- border: 1px solid rgba(255, 255, 255, 0.22) !important;
1043
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
1044
- color: #ffffff !important;
1045
- }
1046
-
1047
- [data-pi-floating-panel] *,
1048
- .floating-panel * {
1049
- color: #ffffff !important;
1050
- text-shadow:
1051
- 0 0 1px rgba(0, 0, 0, 0.95),
1052
- 0 1px 1.2px rgba(0, 0, 0, 0.85) !important;
1053
- }
1054
-
1055
- .statusbar-right,
1056
- .statusbar-right *,
138
+ /* 底栏指标文字微调提亮 */
1057
139
  .statusbar .bar-item-host-metrics,
1058
140
  .statusbar .bar-item-host-metrics *,
1059
141
  .statusbar .status-host-metrics,
@@ -1062,11 +144,11 @@ code {
1062
144
  .statusbar .bar-item-cwd *,
1063
145
  .statusbar .status-cwd,
1064
146
  .statusbar .status-cwd * {
1065
- color: #ffffff !important;
1066
- opacity: 0.98 !important;
147
+ color: #ffffff;
148
+ opacity: 0.98;
1067
149
  text-shadow:
1068
150
  0 0 1px rgba(0, 0, 0, 0.95),
1069
- 0 1px 1.5px rgba(0, 0, 0, 0.85) !important;
151
+ 0 1px 1.5px rgba(0, 0, 0, 0.85);
1070
152
  }
1071
153
 
1072
154
  .statusbar-right .bar-item-icon svg,
@@ -1074,87 +156,45 @@ code {
1074
156
  .statusbar .status-host-metrics svg,
1075
157
  .statusbar .bar-item-cwd svg,
1076
158
  .statusbar .status-cwd svg {
1077
- color: #ffffff !important;
1078
- stroke: #ffffff !important;
1079
- filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.85)) !important;
1080
- }
1081
-
1082
- span.bar-item-icon,
1083
- span.plugin-icon-svg,
1084
- .side-dock-btn,
1085
- .chead-copy,
1086
- .chead-toggle,
1087
- .msg-actions button,
1088
- .panel-header .icon-btn,
1089
- .panel-collapse-btn,
1090
- .panel-rail,
1091
- .lp-section-action,
1092
- .pi-we-icon-btn,
1093
- .topbar .icon-btn,
1094
- .icon-btn,
1095
- .project-icon {
1096
- background: transparent !important;
1097
- border: none !important;
1098
- box-shadow: none !important;
1099
- filter: none !important;
1100
- text-shadow: none !important;
1101
- color: #ffffff !important;
1102
- transition:
1103
- filter 0.15s ease,
1104
- transform 0.15s ease,
1105
- color 0.15s ease;
1106
- }
1107
-
1108
- svg.bar-item-icon,
1109
- .bar-item-glyph,
1110
- .bar-item-icon svg,
1111
- .bar-item-icon.plugin-icon-svg svg,
1112
- .lp-section-action svg,
1113
- .panel-collapse-btn svg,
1114
- .panel-rail svg,
1115
- .side-dock-btn svg,
1116
- .project-icon svg,
1117
- .chead-copy svg,
1118
- .chead-copy > svg,
1119
- .chead-toggle svg,
1120
- .chead-toggle > svg,
1121
- .chead-icon svg,
1122
- .toolcall-icon svg,
1123
- .thinking-icon svg,
1124
- .toolcall-status svg,
1125
- .toolcall-open svg {
1126
- color: #ffffff !important;
1127
- stroke: #ffffff !important;
1128
- filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.85)) !important;
1129
- transition:
1130
- filter 0.15s ease,
1131
- color 0.15s ease;
1132
- }
1133
-
1134
- svg.bar-item-icon:hover,
1135
- .bar-item-icon:hover svg,
1136
- .lp-section-action:hover svg,
1137
- .panel-collapse-btn:hover svg,
1138
- .panel-rail:hover svg,
1139
- .side-dock-btn:hover svg,
1140
- .project-icon:hover svg,
1141
- .chead-copy:hover svg,
1142
- .chead-toggle:hover svg {
1143
- filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)) !important;
1144
- color: #ffffff !important;
1145
- stroke: #ffffff !important;
1146
- }
1147
-
1148
- /* 角标防白底白字:当 --accent 为纯白时,顶栏实体胶囊角标反色为深色,后台任务保持红底白字(底栏透明徽标保持 var(--accent) 纯白高亮) */
1149
- .topbar .bar-item-badge:not(.bg-task-badge) {
1150
- color: #000000 !important;
1151
- }
1152
-
1153
- /* 主操作按钮防白底白字:--accent 为纯白时文字深色 */
1154
- .btn.primary,
1155
- .cwd-choose-btn.primary,
1156
- .sandbox-banner-btn.primary,
1157
- .worktree-banner-btn.primary,
1158
- .chip.primary {
1159
- color: #000000 !important;
159
+ color: #ffffff;
160
+ stroke: #ffffff;
161
+ filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.85));
162
+ }
163
+
164
+ /* 语法高亮(hljs)—— 极简冷冽暗调 */
165
+ .hljs {
166
+ color: #f2f2f2;
167
+ }
168
+ .hljs-doctag,
169
+ .hljs-keyword,
170
+ .hljs-meta .hljs-keyword {
171
+ color: #f472b6;
172
+ }
173
+ .hljs-title,
174
+ .hljs-title.class_,
175
+ .hljs-title.function_ {
176
+ color: #38bdf8;
177
+ }
178
+ .hljs-attr,
179
+ .hljs-attribute,
180
+ .hljs-literal,
181
+ .hljs-number {
182
+ color: #fbbf24;
183
+ }
184
+ .hljs-string,
185
+ .hljs-regexp {
186
+ color: #34d399;
187
+ }
188
+ .hljs-built_in,
189
+ .hljs-type {
190
+ color: #c084fc;
191
+ }
192
+ .hljs-comment,
193
+ .hljs-code {
194
+ color: #737373;
195
+ font-style: italic;
196
+ }
197
+ .hljs-tag,
198
+ .hljs-name {
199
+ color: #3b82f6;
1160
200
  }