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