pi-web-ui 0.108.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 (83) hide show
  1. package/CHANGELOG.md +54 -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 +47 -36
  7. package/dist/server/attachments.js +26 -6
  8. package/dist/server/client-state.js +4 -3
  9. package/dist/server/dispatch-domain-handlers.js +2 -0
  10. package/dist/server/dispatch-plugin-handlers.js +1 -0
  11. package/dist/server/dsh/dsh-agent-service.js +2 -2
  12. package/dist/server/durable/durable-driver.js +1 -1
  13. package/dist/server/durable/durable-tools.js +4 -1
  14. package/dist/server/files-service.js +23 -4
  15. package/dist/server/goal-service.js +12 -3
  16. package/dist/server/index.js +39 -10
  17. package/dist/server/locales.js +33 -0
  18. package/dist/server/marker-service.js +7 -13
  19. package/dist/server/markers/builtins/action.js +5 -6
  20. package/dist/server/markers/builtins/notify.js +2 -2
  21. package/dist/server/markers/builtins/rename.js +2 -2
  22. package/dist/server/markers/registry.js +5 -1
  23. package/dist/server/message-window.js +190 -0
  24. package/dist/server/model-admin.js +0 -4
  25. package/dist/server/plugin-catalog-sync.js +10 -2
  26. package/dist/server/plugin-catalog.js +63 -10
  27. package/dist/server/plugins.js +47 -6
  28. package/dist/server/preset-share.js +2 -3
  29. package/dist/server/process-utils.js +58 -24
  30. package/dist/server/protocol-version.js +1 -1
  31. package/dist/server/settings-service.js +8 -3
  32. package/dist/server/slash-commands.js +16 -4
  33. package/dist/server/text-sniff.js +10 -7
  34. package/dist/server/themes.js +36 -1
  35. package/dist/server/universal/drivers/dsh-driver.js +1 -1
  36. package/dist/server/universal/universal-session.js +12 -4
  37. package/dist/server/worktree-service.js +1 -1
  38. package/package.json +7 -2
  39. package/plugin-sdk/index.d.ts +20 -0
  40. package/plugin-sdk/index.mjs +14 -0
  41. package/plugins/catalog.json +22 -2
  42. package/themes/aetheris.css +155 -121
  43. package/themes/ayu-light.css +19 -15
  44. package/themes/bases/flow-base.css +1363 -0
  45. package/themes/bases/obsidian-base.css +679 -0
  46. package/themes/bases/zhujian-base.css +687 -0
  47. package/themes/bases/zhupi-base.css +659 -0
  48. package/themes/catppuccin-latte.css +17 -15
  49. package/themes/catppuccin.css +5 -2
  50. package/themes/claude-code-dark.css +2 -0
  51. package/themes/codex.css +16 -14
  52. package/themes/cyberpunk.css +4 -1
  53. package/themes/dark-teal.css +4 -1
  54. package/themes/dazzle.css +3 -0
  55. package/themes/everforest-light.css +17 -15
  56. package/themes/flow-light.css +10 -931
  57. package/themes/flow.css +13 -946
  58. package/themes/geist.css +16 -14
  59. package/themes/gruvbox-light.css +13 -11
  60. package/themes/kanagawa-lotus.css +16 -14
  61. package/themes/mist.css +18 -16
  62. package/themes/nord.css +16 -12
  63. package/themes/one-dark.css +9 -5
  64. package/themes/paper.css +9 -7
  65. package/themes/rose-pine-dawn.css +14 -12
  66. package/themes/sakura.css +15 -13
  67. package/themes/solarized-light.css +19 -17
  68. package/themes/tokyo-night.css +4 -2
  69. package/themes/vs-code-dark.css +4 -3
  70. package/themes/wallpaper-flow.css +73 -1031
  71. package/themes/wallpaper-obsidian.css +4 -673
  72. package/themes/white.css +8 -6
  73. package/themes/zhujian-dark.css +6 -608
  74. package/themes/zhujian.css +6 -657
  75. package/themes/zhupi-dark.css +6 -579
  76. package/themes/zhupi.css +6 -629
  77. package/web/dist/assets/{TerminalPanel-CslRhcS7.js → TerminalPanel-BHjM6pzY.js} +1 -1
  78. package/web/dist/assets/index-DwInT7-a.css +1 -0
  79. package/web/dist/assets/index-GfVFIgIL.js +693 -0
  80. package/web/dist/index.html +2 -2
  81. package/web/dist/sw.js +1 -1
  82. package/web/dist/assets/index-C_2Fl6f6.js +0 -690
  83. package/web/dist/assets/index-D0BtO5dn.css +0 -1
@@ -19,11 +19,13 @@
19
19
  --text-faint: #6b7280;
20
20
  --accent: #111827;
21
21
  --accent-soft: rgba(17, 24, 39, 0.08);
22
- --green: #059669;
22
+ --green: #047d58;
23
+ --on-green: #ffffff;
23
24
  --green-soft: rgba(5, 150, 105, 0.12);
24
- --red: #dc2626;
25
+ --red: #d52222;
26
+ --on-red: #ffffff;
25
27
  --red-soft: rgba(220, 38, 38, 0.1);
26
- --amber: #d97706;
28
+ --amber: #a75c05;
27
29
  --blue: #2563eb;
28
30
  --blue-soft: rgba(37, 99, 235, 0.12);
29
31
 
@@ -57,8 +59,8 @@
57
59
  --code-border: rgba(0, 0, 0, 0.08);
58
60
  --code-pad: 8px 10px;
59
61
  --card-body-pad: 4px 14px 12px;
60
- --err-text: #dc2626;
61
- --red-text: #dc2626;
62
+ --err-text: #d52222;
63
+ --red-text: #d52222;
62
64
  --amber-text: #b45309;
63
65
  --info-blue: #2563eb;
64
66
  --link: #0969da;
@@ -67,7 +69,7 @@
67
69
  --md-strong: #000000;
68
70
  --skill-blue: #2563eb;
69
71
  --plugin-purple: #7c3aed;
70
- --auth-green: #059669;
72
+ --auth-green: #047d58;
71
73
  --scroll-thumb: rgba(0, 0, 0, 0.18);
72
74
  --scroll-thumb-hover: rgba(0, 0, 0, 0.32);
73
75
  --notice-err-bg: color-mix(in srgb, var(--bg-elev) 92%, var(--red));
@@ -114,930 +116,7 @@
114
116
  --menu-bg: #ffffff;
115
117
  }
116
118
 
117
- /* ========================================================
118
- 骨架与层级:实体明亮结构,利落细线分割
119
- ======================================================== */
120
- #root,
121
- .app,
122
- .layout,
123
- .view-pane,
124
- .main,
125
- .chat-view,
126
- .chat-scroll,
127
- .messages {
128
- background: var(--bg) !important;
129
- }
130
-
131
- /* 输入栏与消息包裹层必须保持背景透明,确保快捷短语所在带子透出底层消息正文 */
132
- .messages-wrap,
133
- .inputbar {
134
- background: transparent !important;
135
- }
136
-
137
- .topbar {
138
- background: #f8f9fa !important;
139
- border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
140
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
141
- backdrop-filter: none !important;
142
- -webkit-backdrop-filter: none !important;
143
- z-index: 50 !important;
144
- }
145
-
146
- .footer-bar,
147
- .statusbar {
148
- background: #f8f9fa !important;
149
- border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
150
- box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04) !important;
151
- backdrop-filter: none !important;
152
- -webkit-backdrop-filter: none !important;
153
- z-index: 50 !important;
154
- }
155
-
156
- .panel,
157
- .drawer-left .panel,
158
- .drawer-right .panel,
159
- .lp-panel {
160
- background: #f8f9fa !important;
161
- border-color: rgba(0, 0, 0, 0.06) !important;
162
- backdrop-filter: none !important;
163
- -webkit-backdrop-filter: none !important;
164
- box-shadow: none !important;
165
- }
166
-
167
- .panel-header,
168
- .lp-section-header,
169
- .panel-convs,
170
- .panel-sessions,
171
- .lp-group-title,
172
- .panel-body {
173
- background: transparent !important;
174
- }
175
-
176
- .lp-conv-row:hover,
177
- .lp-conv-row.active,
178
- .ft-row:hover,
179
- .panel-item:hover {
180
- background: rgba(0, 0, 0, 0.04) !important;
181
- border-radius: 8px !important;
182
- }
183
-
184
- /* 消除会话项激活与聚焦态的一切蓝色/紫蓝色外边框 */
185
- .session-item,
186
- .session-item.active,
187
- .session-item:hover,
188
- .session-item:focus,
189
- .session-item:focus-visible,
190
- .lp-row .session-item,
191
- .lp-row .session-item.active {
192
- border: none !important;
193
- outline: none !important;
194
- box-shadow: none !important;
195
- }
196
-
197
- .session-item.active,
198
- .lp-row .session-item.active {
199
- background: rgba(0, 0, 0, 0.06) !important;
200
- color: #111827 !important;
201
- border: none !important;
202
- border-radius: 8px !important;
203
- padding: 8px 10px !important;
204
- }
205
-
206
- .session-item:hover,
207
- .lp-row .session-item:hover {
208
- background: rgba(0, 0, 0, 0.04) !important;
209
- color: #111827 !important;
210
- border: none !important;
211
- border-radius: 8px !important;
212
- }
213
-
214
- .lp-section-header,
215
- .lp-section-title,
216
- .lp-section-title-text,
217
- .panel-section-title {
218
- color: #6b7280 !important;
219
- font-size: 11px !important;
220
- text-transform: uppercase !important;
221
- letter-spacing: 0.05em !important;
222
- font-weight: 600 !important;
223
- }
224
-
225
- .lp-conv-title,
226
- .lp-conv-row {
227
- color: #4b5563 !important;
228
- }
229
- .lp-conv-row:hover .lp-conv-title,
230
- .lp-conv-row.active .lp-conv-title {
231
- color: #111827 !important;
232
- }
233
-
234
- /* ========================================================
235
- 核心:极简行文(Flow)—— 正文零气泡外壳、零边框、极致紧凑排版
236
- ======================================================== */
237
- .messages {
238
- padding-top: 6px !important;
239
- padding-bottom: calc(48px + var(--quick-row-h, 0px)) !important;
240
- }
241
-
242
- .msg {
243
- background: transparent !important;
244
- border: none !important;
245
- box-shadow: none !important;
246
- margin: 4px 0 !important;
247
- padding: 0 !important;
248
- }
249
-
250
- .msg-assistant {
251
- margin: 8px 0 !important;
252
- padding: 0 !important;
253
- }
254
-
255
- /* 助手正文主体:完全透明无外框无圆角无遮挡,如字书印于素白画布上 */
256
- .msg-assistant .msg-body {
257
- background: transparent !important;
258
- border: none !important;
259
- border-radius: 0 !important;
260
- box-shadow: none !important;
261
- backdrop-filter: none !important;
262
- -webkit-backdrop-filter: none !important;
263
- overflow: visible !important;
264
- display: block !important;
265
- padding: 0 !important;
266
- margin: 0 !important;
267
- line-height: 1.62 !important;
268
- letter-spacing: 0.012em !important;
269
- font-size: 14px !important;
270
- color: #111827 !important;
271
- word-break: break-word !important;
272
- }
273
-
274
- .msg-text,
275
- .msg-assistant .msg-text {
276
- background: transparent !important;
277
- border: none !important;
278
- box-shadow: none !important;
279
- padding: 0 !important;
280
- margin: 0 !important;
281
- }
282
-
283
- /* 正文排版:段间距、行高、列表间隙微调,彻底消灭笨重留白 */
284
- .msg-body p {
285
- margin: 0.36em 0 !important;
286
- line-height: 1.62 !important;
287
- }
288
- .msg-body p:first-child {
289
- margin-top: 0 !important;
290
- }
291
- .msg-body p:last-child {
292
- margin-bottom: 0 !important;
293
- }
294
-
295
- .msg-body ul,
296
- .msg-body ol {
297
- margin: 0.25em 0 !important;
298
- padding-left: 1.25em !important;
299
- }
300
-
301
- .msg-body li {
302
- margin: 0.12em 0 !important;
303
- line-height: 1.58 !important;
304
- }
305
- .msg-body li > p {
306
- margin: 0 !important;
307
- display: inline !important;
308
- }
309
-
310
- .msg-body h1,
311
- .msg-body h2,
312
- .msg-body h3,
313
- .msg-body h4,
314
- .msg-body h5,
315
- .msg-body h6 {
316
- margin: 0.55em 0 0.22em 0 !important;
317
- line-height: 1.35 !important;
318
- font-weight: 600 !important;
319
- color: #111827 !important;
320
- }
321
- .msg-body h1:first-child,
322
- .msg-body h2:first-child,
323
- .msg-body h3:first-child,
324
- .msg-body h4:first-child {
325
- margin-top: 0 !important;
326
- }
327
-
328
- .msg-body blockquote {
329
- background: transparent !important;
330
- border: none !important;
331
- border-left: 2px solid rgba(0, 0, 0, 0.22) !important;
332
- margin: 0.35em 0 !important;
333
- padding: 2px 0 2px 10px !important;
334
- color: #4b5563 !important;
335
- }
336
-
337
- .msg-body hr {
338
- margin: 0.5em 0 !important;
339
- border: none !important;
340
- border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
341
- }
342
-
343
- .msg-body table {
344
- background: transparent !important;
345
- border-collapse: collapse !important;
346
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
347
- margin: 0.4em 0 !important;
348
- font-size: 13.5px !important;
349
- }
350
-
351
- .msg-body th,
352
- .msg-body td {
353
- background: transparent !important;
354
- border: 1px solid rgba(0, 0, 0, 0.06) !important;
355
- padding: 4px 8px !important;
356
- }
357
-
358
- .msg-body code:not(pre code) {
359
- background: #f3f4f6 !important;
360
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
361
- border-radius: 4px !important;
362
- padding: 1px 4px !important;
363
- font-size: 12.5px !important;
364
- color: #1f2937 !important;
365
- }
366
-
367
- .msg-body pre {
368
- background: #f8f9fa !important;
369
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
370
- border-radius: 10px !important;
371
- margin: 0.42em 0 !important;
372
- padding: 10px 14px !important;
373
- line-height: 1.45 !important;
374
- font-size: 13px !important;
375
- }
376
-
377
- /* ========================================================
378
- 字级输入流系统(Character-Level Inline Stream):
379
- 对话流如同打字输入流,每个工具调用、思考、附件就是一个字。
380
- 横向平铺流动,原位不展开,字字连贯,一点一点混排流进正文中。
381
- ======================================================== */
382
-
383
- .turn-tools-trail {
384
- display: flex !important;
385
- flex-direction: row !important;
386
- flex-wrap: wrap !important;
387
- align-items: center !important;
388
- gap: 5px 6px !important;
389
- margin: 4px 0 10px 0 !important;
390
- width: 100% !important;
391
- }
392
- .turn-tools-trail > .msg,
393
- .turn-tools-trail > .msg-assistant,
394
- .turn-tools-trail > .msg .msg-body,
395
- .turn-tools-trail > .msg-assistant .msg-body {
396
- display: contents !important;
397
- width: auto !important;
398
- }
399
-
400
- /* 隐藏工具流集群内的元数据行与操作栏,杜绝全宽节点打断胶囊横向流动 */
401
- .turn-tools-trail .msg-meta,
402
- .turn-tools-trail .msg-actions,
403
- .turn-tools-trail > .msg > .msg-meta,
404
- .turn-tools-trail > .msg > .msg-actions,
405
- .turn-tools-trail > .msg-assistant > .msg-meta,
406
- .turn-tools-trail > .msg-assistant > .msg-actions {
407
- display: none !important;
408
- width: 0 !important;
409
- height: 0 !important;
410
- margin: 0 !important;
411
- padding: 0 !important;
412
- }
413
-
414
- /* 消除兄弟选择器在横向流中对卡头施加的任何 border 细线,彻底清零外边距 */
415
- .turn-tools-trail .chead,
416
- .turn-tools-trail .toolcall .chead,
417
- .turn-tools-trail .thinking .chead,
418
- .turn-tools-trail .toolcall + .toolcall .chead,
419
- .turn-tools-trail .thinking + .toolcall .chead,
420
- .turn-tools-trail .toolcall + .thinking .chead,
421
- .turn-tools-trail * .chead {
422
- border: none !important;
423
- margin: 0 !important;
424
- }
425
-
426
- .turn-tools-trail .thinking,
427
- .turn-tools-trail .toolcall,
428
- .main.hide-model-row .turn-tools-trail .thinking,
429
- .main.hide-model-row .turn-tools-trail .toolcall,
430
- .main.hide-model-row .msg-assistant .turn-tools-trail .thinking,
431
- .main.hide-model-row .msg-assistant .turn-tools-trail .toolcall {
432
- display: inline-flex !important;
433
- align-items: center !important;
434
- justify-content: center !important;
435
- vertical-align: middle !important;
436
- box-sizing: border-box !important;
437
- width: auto !important;
438
- min-width: 0 !important;
439
- max-width: fit-content !important;
440
- flex: 0 0 auto !important;
441
- height: 22px !important;
442
- line-height: 20px !important;
443
- margin: 0 !important;
444
- padding: 0 7px !important;
445
- overflow: hidden !important;
446
- }
447
-
448
- /* 工具调用与深度思考:素雅浅透白砂灰亚克力微胶囊 */
449
- .toolcall,
450
- .thinking {
451
- display: inline-flex !important;
452
- align-items: center !important;
453
- justify-content: center !important;
454
- vertical-align: middle !important;
455
- box-sizing: border-box !important;
456
- width: auto !important;
457
- min-width: 0 !important;
458
- max-width: fit-content !important;
459
- flex: 0 0 auto !important;
460
- height: 23px !important;
461
- line-height: 21px !important;
462
- margin: 0 !important;
463
- padding: 0 8px !important;
464
- background: rgba(0, 0, 0, 0.04) !important;
465
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
466
- border-radius: 999px !important;
467
- font-family: var(--mono, monospace) !important;
468
- font-size: 11px !important;
469
- font-weight: 500 !important;
470
- cursor: pointer !important;
471
- white-space: nowrap !important;
472
- box-shadow:
473
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8),
474
- 0 1px 3px rgba(0, 0, 0, 0.05) !important;
475
- backdrop-filter: blur(12px) saturate(140%) !important;
476
- -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
477
- transition:
478
- background 0.15s cubic-bezier(0.16, 1, 0.3, 1),
479
- border-color 0.15s cubic-bezier(0.16, 1, 0.3, 1),
480
- box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1),
481
- transform 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
482
- overflow: hidden !important;
483
- user-select: none !important;
484
- text-decoration: none !important;
485
- }
486
-
487
- .toolcall:hover,
488
- .thinking:hover {
489
- background: rgba(0, 0, 0, 0.07) !important;
490
- border-color: rgba(0, 0, 0, 0.16) !important;
491
- box-shadow:
492
- inset 0 1px 1px rgba(255, 255, 255, 0.9),
493
- 0 2px 6px rgba(0, 0, 0, 0.08) !important;
494
- transform: translateY(-1px) !important;
495
- }
496
-
497
- /* 状态氛围点睛 */
498
- .toolcall.run {
499
- border-color: rgba(217, 119, 6, 0.45) !important;
500
- box-shadow:
501
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8),
502
- 0 0 8px rgba(217, 119, 6, 0.2) !important;
503
- }
504
- .toolcall.ok {
505
- border-color: rgba(5, 150, 105, 0.25) !important;
506
- }
507
- .toolcall.err {
508
- border-color: rgba(220, 38, 38, 0.45) !important;
509
- box-shadow:
510
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8),
511
- 0 0 8px rgba(220, 38, 38, 0.2) !important;
512
- }
513
-
514
- .thinking {
515
- border-color: rgba(124, 58, 237, 0.25) !important;
516
- }
517
- .thinking:hover {
518
- border-color: rgba(124, 58, 237, 0.45) !important;
519
- }
520
- .thinking.run {
521
- border-color: rgba(124, 58, 237, 0.5) !important;
522
- box-shadow:
523
- inset 0 0.5px 0.5px rgba(255, 255, 255, 0.8),
524
- 0 0 8px rgba(124, 58, 237, 0.2) !important;
525
- }
526
-
527
- /* 隐藏流内大图缩略图(由点击居中弹窗展示大图) */
528
- .toolcall-images,
529
- .toolcall-image,
530
- .toolcall .toolcall-images {
531
- display: none !important;
532
- }
533
-
534
- /* 卡头:自适应内容宽度,严格水平对齐 */
535
- .toolcall .toolcall-head,
536
- .toolcall .chead,
537
- .thinking .chead {
538
- display: inline-flex !important;
539
- align-items: center !important;
540
- justify-content: center !important;
541
- vertical-align: middle !important;
542
- box-sizing: border-box !important;
543
- width: auto !important;
544
- min-width: 0 !important;
545
- max-width: fit-content !important;
546
- min-height: unset !important;
547
- height: 100% !important;
548
- padding: 0 !important;
549
- margin: 0 !important;
550
- border: none !important;
551
- border-top: none !important;
552
- border-bottom: none !important;
553
- background: transparent !important;
554
- gap: 4px !important;
555
- box-shadow: none !important;
556
- line-height: 1 !important;
557
- }
558
-
559
- /* 隐藏原地折叠、复制、长命令与长路径等干扰元素 */
560
- .toolcall .chead-toggle,
561
- .toolcall .toolcall-toggle,
562
- .toolcall .toolcall-spacer,
563
- .toolcall .chead-copy,
564
- .toolcall .toolcall-copy,
565
- .toolcall .toolcall-path,
566
- .toolcall .toolcall-cmd,
567
- .toolcall .toolcall-query,
568
- .toolcall .toolcall-timeout,
569
- .toolcall .toolcall-agent,
570
- .toolcall .toolcall-open,
571
- .toolcall .toolcall-kill,
572
- .toolcall .toolcall-duration,
573
- .thinking .chead-toggle,
574
- .thinking .thinking-toggle,
575
- .thinking .chead-copy,
576
- .thinking .thinking-copy,
577
- .thinking .thinking-spacer,
578
- .thinking .thinking-summary-text,
579
- .thinking .thinking-preview-live,
580
- .thinking .thinking-preview-viewport,
581
- .thinking .thinking-preview-track,
582
- .thinking .thinking-preview-prefix,
583
- .thinking .thinking-live-label,
584
- .thinking-summary {
585
- display: none !important;
586
- }
587
-
588
- .chead-icon,
589
- .chead-icon.thinking-icon,
590
- .chead-icon.toolcall-icon,
591
- .toolcall-icon,
592
- .toolcall-head svg,
593
- .thinking-icon,
594
- .thinking svg {
595
- display: inline-flex !important;
596
- align-items: center !important;
597
- justify-content: center !important;
598
- width: 12px !important;
599
- height: 12px !important;
600
- padding: 0 !important;
601
- margin: 0 !important;
602
- border-radius: 0 !important;
603
- background: transparent !important;
604
- flex: none !important;
605
- opacity: 0.85 !important;
606
- font-size: 10px !important;
607
- }
608
-
609
- .toolcall-name,
610
- .chead-title.toolcall-name,
611
- .thinking-name,
612
- .thinking-label,
613
- .chead-title.thinking-label {
614
- display: inline-flex !important;
615
- align-items: center !important;
616
- justify-content: center !important;
617
- line-height: 1 !important;
618
- font-size: 11px !important;
619
- font-weight: 500 !important;
620
- color: #374151 !important;
621
- padding: 0 !important;
622
- margin: 0 !important;
623
- flex: none !important;
624
- min-width: unset !important;
625
- max-width: unset !important;
626
- letter-spacing: 0.02em !important;
627
- }
628
-
629
- .thinking .thinking-name {
630
- color: #374151 !important;
631
- }
632
- .thinking .thinking-icon,
633
- .thinking .thinking-status {
634
- color: #7c3aed !important;
635
- filter: none !important;
636
- }
637
-
638
- /* 语义化工具微光宝石呼吸灯 */
639
- .toolcall-icon.tc-tone-exec {
640
- color: #0284c7 !important;
641
- filter: none !important;
642
- }
643
- .toolcall-icon.tc-tone-read,
644
- .toolcall-icon.tc-tone-search {
645
- color: #059669 !important;
646
- filter: none !important;
647
- }
648
- .toolcall-icon.tc-tone-edit {
649
- color: #d97706 !important;
650
- filter: none !important;
651
- }
652
- .toolcall-icon.tc-tone-code {
653
- color: #c026d3 !important;
654
- filter: none !important;
655
- }
656
- .toolcall-icon.tc-tone-agent {
657
- color: #dc2626 !important;
658
- filter: none !important;
659
- }
660
-
661
- .toolcall.ok .toolcall-status {
662
- color: #059669 !important;
663
- filter: none !important;
664
- }
665
- .toolcall.err .toolcall-status {
666
- color: #dc2626 !important;
667
- filter: none !important;
668
- }
669
-
670
- .toolcall-status,
671
- .thinking-status {
672
- display: inline-flex !important;
673
- align-items: center !important;
674
- justify-content: center !important;
675
- vertical-align: middle !important;
676
- width: 11px !important;
677
- height: 11px !important;
678
- font-size: 9px !important;
679
- flex: none !important;
680
- margin: 0 !important;
681
- padding: 0 !important;
682
- }
683
- .toolcall-status > svg,
684
- .toolcall-status svg,
685
- .thinking-status > svg,
686
- .thinking-status svg {
687
- width: 10px !important;
688
- height: 10px !important;
689
- margin: 0 !important;
690
- padding: 0 !important;
691
- }
692
- .thinking-status .spin,
693
- .toolcall-status .spin,
694
- .toolcall-status .half-ring-spin,
695
- .thinking-status .half-ring-spin,
696
- .toolcall.run .toolcall-status svg,
697
- .toolcall.run .toolcall-status-icon svg {
698
- animation: spin 0.85s linear infinite !important;
699
- transform-origin: center center !important;
700
- }
701
-
702
- /* 输出徽标:图片 🖼️、Markdown 📝 等行内小微标 */
703
- .toolcall-out-badge {
704
- display: inline-flex !important;
705
- align-items: center !important;
706
- justify-content: center !important;
707
- vertical-align: middle !important;
708
- width: 11px !important;
709
- height: 11px !important;
710
- font-size: 9.5px !important;
711
- margin: 0 !important;
712
- padding: 0 !important;
713
- flex: none !important;
714
- opacity: 0.85 !important;
715
- }
716
- .toolcall-out-badge.img {
717
- color: #0284c7 !important;
718
- }
719
- .toolcall-out-badge.md {
720
- color: #7c3aed !important;
721
- }
722
- .toolcall-out-badge svg {
723
- width: 10px !important;
724
- height: 10px !important;
725
- margin: 0 !important;
726
- padding: 0 !important;
727
- }
728
-
729
- /* 附件也是一个“字”:混排在同一输入流中,外边距清零由 gap 管理 */
730
- .msg-queued-atts-bar {
731
- display: inline-flex !important;
732
- align-items: center !important;
733
- gap: 6px !important;
734
- margin: 0 !important;
735
- padding: 0 !important;
736
- }
737
- .queued-att-chip,
738
- .attach-chip {
739
- display: inline-flex !important;
740
- align-items: center !important;
741
- vertical-align: middle !important;
742
- box-sizing: border-box !important;
743
- height: 22px !important;
744
- line-height: 20px !important;
745
- margin: 0 !important;
746
- padding: 0 7px !important;
747
- font-size: 11px !important;
748
- border-radius: 6px !important;
749
- background: #f3f4f6 !important;
750
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
751
- color: #374151 !important;
752
- }
753
-
754
- /* 正文自成段落倾泻,与上方工具流保持舒适间距 */
755
- .msg-assistant .msg-text {
756
- display: block !important;
757
- padding: 0 !important;
758
- margin: 8px 0 0 0 !important;
759
- }
760
- .msg-assistant .msg-text > .markdown {
761
- display: inline !important;
762
- }
763
- .msg-assistant .msg-text > .markdown > p:first-child {
764
- display: inline !important;
765
- margin: 0 !important;
766
- }
767
-
768
- /* 彻底隐藏原地展开内容,点击由居中检查器弹窗接管 */
769
- .toolcall-body,
770
- .thinking-body {
771
- display: none !important;
772
- }
773
-
774
- .msg-actions {
775
- opacity: 0.3 !important;
776
- margin-top: 2px !important;
777
- transition: opacity 0.15s ease !important;
778
- }
779
- .msg-assistant:hover .msg-actions,
780
- .msg-user:hover .msg-actions {
781
- opacity: 1 !important;
782
- }
783
-
784
- /* ========================================================
785
- 用户消息气泡:克制典雅的素白浅灰微卡片(无边框纯净融合)
786
- ======================================================== */
787
- .msg-user {
788
- background: transparent !important;
789
- box-shadow: none !important;
790
- margin: 6px 0 2px 0 !important;
791
- }
792
-
793
- .msg-user .msg-body {
794
- background: #f3f4f6 !important;
795
- border: none !important;
796
- border-radius: 14px !important;
797
- padding: 8px 14px !important;
798
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
799
- backdrop-filter: none !important;
800
- -webkit-backdrop-filter: none !important;
801
- color: #111827 !important;
802
- }
803
-
804
- /* ========================================================
805
- 输入框与控件(复刻 OpenAI Codex 桌面悬浮岛)
806
- ======================================================== */
807
- .inputbox {
808
- background: #ffffff !important;
809
- border: 1px solid rgba(0, 0, 0, 0.1) !important;
810
- border-radius: 18px !important;
811
- box-shadow:
812
- 0 4px 24px rgba(0, 0, 0, 0.06),
813
- 0 1px 2px rgba(0, 0, 0, 0.03) !important;
814
- backdrop-filter: none !important;
815
- -webkit-backdrop-filter: none !important;
816
- transition:
817
- border-color 0.2s ease,
818
- box-shadow 0.2s ease !important;
819
- }
820
-
821
- .inputbox:focus-within {
822
- border-color: rgba(0, 0, 0, 0.25) !important;
823
- box-shadow:
824
- 0 6px 32px rgba(0, 0, 0, 0.09),
825
- 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
826
- }
827
-
828
- .inputbox textarea {
829
- background: transparent !important;
830
- color: #111827 !important;
831
- }
832
-
833
- .composer-tools,
834
- .composer-tools-left,
835
- .composer-tools-center,
836
- .composer-tools-right {
837
- color: #6b7280 !important;
838
- }
839
-
840
- .composer-tools .chip {
841
- background: #f3f4f6 !important;
842
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
843
- color: #374151 !important;
844
- box-shadow: none !important;
845
- border-radius: 12px !important;
846
- transition:
847
- background 0.15s ease,
848
- border-color 0.15s ease,
849
- color 0.15s ease;
850
- }
851
-
852
- .composer-tools .chip:hover {
853
- background: #e5e7eb !important;
854
- border-color: rgba(0, 0, 0, 0.16) !important;
855
- color: #111827 !important;
856
- }
857
-
858
- .composer-tools .chip > span,
859
- .composer-tools .chip > span.chip-model,
860
- .composer-tools .chip > span.chip-sub,
861
- .composer-tools .chip-sub {
862
- color: #374151 !important;
863
- opacity: 0.95 !important;
864
- }
865
-
866
- .inputbox .composer-tools-left button:hover,
867
- .inputbox .btn.composer-plugin-action:hover,
868
- .inputbox .composer-tools-left .btn:hover {
869
- background: rgba(0, 0, 0, 0.06) !important;
870
- }
871
-
872
- .composer-tools .chip,
873
- .composer-tools .chip:hover,
874
- .composer-tools .dropdown > button,
875
- .composer-tools .dropdown > button:hover,
876
- .dropdown > button.chip,
877
- .dropdown > button.chip:hover {
878
- border-radius: 12px !important;
879
- }
880
-
881
- .inputbox .btn.send {
882
- background: #111827 !important;
883
- border-color: #111827 !important;
884
- color: #ffffff !important;
885
- border-radius: 50% !important;
886
- width: 32px !important;
887
- height: 32px !important;
888
- min-width: 32px !important;
889
- padding: 0 !important;
890
- display: inline-flex !important;
891
- align-items: center !important;
892
- justify-content: center !important;
893
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
894
- }
895
- .inputbox .btn.send svg {
896
- stroke: #ffffff !important;
897
- color: #ffffff !important;
898
- stroke-width: 2.5 !important;
899
- }
900
- .inputbox .btn.send:hover:not(:disabled) {
901
- background: #1f2937 !important;
902
- border-color: #1f2937 !important;
903
- color: #ffffff !important;
904
- box-shadow: 0 0 14px rgba(0, 0, 0, 0.18) !important;
905
- transform: translateY(-1px);
906
- }
907
- .inputbox .btn.send:disabled {
908
- opacity: 0.35 !important;
909
- background: #e5e7eb !important;
910
- border-color: #e5e7eb !important;
911
- box-shadow: none !important;
912
- cursor: default !important;
913
- }
914
- .inputbox .btn.send:disabled svg {
915
- stroke: #9ca3af !important;
916
- color: #9ca3af !important;
917
- }
918
-
919
- .inputbox .split-send {
920
- background: #111827 !important;
921
- border-color: #111827 !important;
922
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
923
- border-radius: 18px !important;
924
- }
925
- .inputbox .split-send button {
926
- color: #ffffff !important;
927
- }
928
- .inputbox .split-send button svg {
929
- stroke: #ffffff !important;
930
- color: #ffffff !important;
931
- }
932
- .inputbox .split-send .split-queue {
933
- background: rgba(255, 255, 255, 0.15) !important;
934
- }
935
- .inputbox .split-send button + button {
936
- border-left: 1px solid rgba(255, 255, 255, 0.2) !important;
937
- }
938
- .inputbox .split-send:hover {
939
- background: #1f2937 !important;
940
- border-color: #1f2937 !important;
941
- box-shadow: 0 0 14px rgba(0, 0, 0, 0.18) !important;
942
- }
943
- .inputbox .split-send button:hover:not(:disabled) {
944
- background: rgba(255, 255, 255, 0.15) !important;
945
- }
946
-
947
- /* 快捷指令/快捷短语胶囊:悬浮、背景透明、磨砂毛玻璃浮空质感 */
948
- .quick-chip {
949
- background: rgba(255, 255, 255, 0.88) !important;
950
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
951
- border-radius: 999px !important;
952
- box-shadow:
953
- 0 4px 16px rgba(0, 0, 0, 0.06),
954
- 0 1px 3px rgba(0, 0, 0, 0.03),
955
- inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
956
- backdrop-filter: blur(14px) saturate(140%) !important;
957
- -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
958
- color: #374151 !important;
959
- transition:
960
- transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
961
- box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
962
- border-color 0.18s ease,
963
- background 0.18s ease,
964
- color 0.18s ease !important;
965
- }
966
-
967
- .quick-chip:hover:not(:disabled) {
968
- transform: translateY(-2px) !important;
969
- background: #ffffff !important;
970
- border-color: rgba(0, 0, 0, 0.18) !important;
971
- box-shadow:
972
- 0 8px 24px rgba(0, 0, 0, 0.09),
973
- 0 2px 6px rgba(0, 0, 0, 0.04),
974
- inset 0 1px 0 #ffffff !important;
975
- color: #111827 !important;
976
- }
977
-
978
- .quick-chip:active:not(:disabled) {
979
- transform: translateY(0) scale(0.97) !important;
980
- box-shadow:
981
- 0 2px 8px rgba(0, 0, 0, 0.04),
982
- inset 0 1px 0 rgba(0, 0, 0, 0.03) !important;
983
- }
984
-
985
- /* 底部候选操作建议(同属快捷指令交互):悬浮透明毛玻璃 */
986
- .action-suggestion-chip {
987
- background: rgba(255, 255, 255, 0.88) !important;
988
- border: 1px solid rgba(0, 0, 0, 0.08) !important;
989
- border-radius: 999px !important;
990
- box-shadow:
991
- 0 4px 16px rgba(0, 0, 0, 0.06),
992
- 0 1px 3px rgba(0, 0, 0, 0.03),
993
- inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
994
- backdrop-filter: blur(14px) saturate(140%) !important;
995
- -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
996
- color: #374151 !important;
997
- transition:
998
- transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
999
- box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
1000
- border-color 0.18s ease,
1001
- background 0.18s ease,
1002
- color 0.18s ease !important;
1003
- }
1004
-
1005
- .action-suggestion-chip:hover:not(:disabled) {
1006
- transform: translateY(-2px) !important;
1007
- background: #ffffff !important;
1008
- border-color: rgba(0, 0, 0, 0.18) !important;
1009
- box-shadow:
1010
- 0 8px 24px rgba(0, 0, 0, 0.09),
1011
- 0 2px 6px rgba(0, 0, 0, 0.04),
1012
- inset 0 1px 0 #ffffff !important;
1013
- color: #111827 !important;
1014
- }
1015
-
1016
- .action-suggestion-chip:active:not(:disabled) {
1017
- transform: translateY(0) scale(0.97) !important;
1018
- }
1019
-
1020
- /* 浮层与弹窗 */
1021
- .dd-menu,
1022
- .ctx-menu,
1023
- .pm-panel,
1024
- .modal-dialog {
1025
- background: #ffffff !important;
1026
- border: 1px solid rgba(0, 0, 0, 0.1) !important;
1027
- box-shadow:
1028
- 0 16px 40px rgba(0, 0, 0, 0.12),
1029
- inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
1030
- }
1031
-
1032
- [data-pi-floating-panel],
1033
- .floating-panel {
1034
- background: #ffffff !important;
1035
- border: 1px solid rgba(0, 0, 0, 0.1) !important;
1036
- box-shadow:
1037
- 0 12px 32px rgba(0, 0, 0, 0.1),
1038
- inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
1039
- color: #111827 !important;
1040
- }
119
+ @import "./bases/flow-base.css";
1041
120
 
1042
121
  /* ========================================================
1043
122
  代码语法高亮(hljs)—— 极简出版物浅亮色
@@ -1081,5 +160,5 @@
1081
160
 
1082
161
  /* 角标防白底白字:当 --accent 为深黑时,顶栏实体胶囊角标字体为白色(底栏透明徽标保持 var(--accent) 深色高对比) */
1083
162
  .topbar .bar-item-badge:not(.bg-task-badge) {
1084
- color: #ffffff !important;
163
+ color: #ffffff;
1085
164
  }