pi-web-ui 0.106.0 → 0.108.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 +77 -11
  2. package/README.zh-TW.md +2 -2
  3. package/dist/server/agent-formatters.js +19 -4
  4. package/dist/server/agent-service.js +33 -16
  5. package/dist/server/bg-servers.js +205 -53
  6. package/dist/server/client-state.js +6 -2
  7. package/dist/server/dispatch-domain-handlers.js +2 -0
  8. package/dist/server/dsh/dsh-agent-service.js +24 -10
  9. package/dist/server/durable/durable-agent-service.js +153 -0
  10. package/dist/server/durable/durable-capabilities.js +11 -0
  11. package/dist/server/durable/durable-driver.js +481 -0
  12. package/dist/server/durable/durable-loader.js +38 -0
  13. package/dist/server/durable/durable-models.js +283 -0
  14. package/dist/server/durable/durable-storage.js +42 -0
  15. package/dist/server/durable/durable-tools.js +45 -0
  16. package/dist/server/durable/index.js +8 -0
  17. package/dist/server/engine-capabilities.js +20 -1
  18. package/dist/server/engine-probe.js +156 -8
  19. package/dist/server/files-service.js +15 -1
  20. package/dist/server/global-loader.js +335 -0
  21. package/dist/server/index.js +127 -17
  22. package/dist/server/managed.js +2 -0
  23. package/dist/server/marker-service.js +5 -19
  24. package/dist/server/markers/index.js +1 -3
  25. package/dist/server/model-admin.js +61 -10
  26. package/dist/server/model-resolver.js +91 -3
  27. package/dist/server/plugins.js +18 -1
  28. package/dist/server/preset-fields.js +14 -0
  29. package/dist/server/preset-share.js +2 -0
  30. package/dist/server/process-utils.js +114 -12
  31. package/dist/server/protocol-version.js +1 -1
  32. package/dist/server/sdk-origin.js +2 -2
  33. package/dist/server/serialize.js +1 -1
  34. package/dist/server/settings-service.js +4 -0
  35. package/dist/server/text-sniff.js +2 -0
  36. package/dist/server/tool-manager.js +3 -19
  37. package/dist/server/universal/driver-base.js +4 -0
  38. package/dist/server/universal/drivers/claude-code.js +3 -2
  39. package/dist/server/universal/universal-service.js +19 -2
  40. package/dist/server/universal/universal-session.js +63 -7
  41. package/dist/server/update-check.js +20 -8
  42. package/package.json +2 -1
  43. package/plugins/catalog.json +13 -2
  44. package/themes/dark-teal.css +0 -1
  45. package/themes/flow-light.css +1085 -0
  46. package/themes/flow.css +1094 -0
  47. package/themes/wallpaper-flow.css +1158 -0
  48. package/themes/wallpaper-obsidian.css +50 -0
  49. package/themes/zhujian-dark.css +0 -7
  50. package/themes/zhujian.css +0 -7
  51. package/themes/zhupi-dark.css +0 -7
  52. package/themes/zhupi.css +0 -7
  53. package/web/dist/assets/{TerminalPanel-CfxKLDW9.js → TerminalPanel-CslRhcS7.js} +2 -2
  54. package/web/dist/assets/index-C_2Fl6f6.js +690 -0
  55. package/web/dist/assets/index-D0BtO5dn.css +1 -0
  56. package/web/dist/index.html +2 -2
  57. package/web/dist/sw.js +1 -1
  58. package/web/dist/assets/index-BtcP6BDk.css +0 -1
  59. package/web/dist/assets/index-XVtCzcHR.js +0 -690
@@ -0,0 +1,1085 @@
1
+ /* theme-name: 极简行文 */
2
+ /* theme-name-en: Pure Flow Light */
3
+ /* theme-group: builtin */
4
+ /*
5
+ * 极简行文 · 浅色(Pure Flow Light & Borderless Canvas)—— 现代清澈素白/极简浅调版:
6
+ * 深度复刻新一代 AI 桌面工作区(OpenAI Codex / ChatGPT Desktop)标志性的中性实体画布;
7
+ * 搭配悬浮素白双层输入岛、纯黑高对比圆形动作按钮、经典电光蓝状态点睛与行书无外壳行内微胶囊流,
8
+ * 纯净护眼、通透利落、无蓝绿偏色,回答如笔墨行书、一气呵成。
9
+ */
10
+ :root {
11
+ color-scheme: light;
12
+ --bg: #ffffff;
13
+ --bg-elev: #f8f9fa;
14
+ --bg-elev2: #f1f3f5;
15
+ --border: rgba(0, 0, 0, 0.08);
16
+ --border-soft: rgba(0, 0, 0, 0.04);
17
+ --text: #111827;
18
+ --text-dim: #4b5563;
19
+ --text-faint: #6b7280;
20
+ --accent: #111827;
21
+ --accent-soft: rgba(17, 24, 39, 0.08);
22
+ --green: #059669;
23
+ --green-soft: rgba(5, 150, 105, 0.12);
24
+ --red: #dc2626;
25
+ --red-soft: rgba(220, 38, 38, 0.1);
26
+ --amber: #d97706;
27
+ --blue: #2563eb;
28
+ --blue-soft: rgba(37, 99, 235, 0.12);
29
+
30
+ --term-bg: #f8f9fa;
31
+ --term-fg: #1f2937;
32
+ --term-cursor: #111827;
33
+ --term-cursor-accent: #ffffff;
34
+ --term-selection: rgba(17, 24, 39, 0.14);
35
+ --term-black: #1f2937;
36
+ --term-red: #dc2626;
37
+ --term-green: #059669;
38
+ --term-yellow: #d97706;
39
+ --term-blue: #2563eb;
40
+ --term-magenta: #7c3aed;
41
+ --term-cyan: #0891b2;
42
+ --term-white: #f8f9fa;
43
+ --term-bright-black: #6b7280;
44
+ --term-bright-red: #ef4444;
45
+ --term-bright-green: #10b981;
46
+ --term-bright-yellow: #f59e0b;
47
+ --term-bright-blue: #3b82f6;
48
+ --term-bright-magenta: #8b5cf6;
49
+ --term-bright-cyan: #06b6d4;
50
+ --term-bright-white: #ffffff;
51
+
52
+ --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
53
+ --mermaid-font-size: 12px;
54
+ --tooltip-bg: #ffffff;
55
+ --code-bg: #f6f8fa;
56
+ --code-text: #1f2328;
57
+ --code-border: rgba(0, 0, 0, 0.08);
58
+ --code-pad: 8px 10px;
59
+ --card-body-pad: 4px 14px 12px;
60
+ --err-text: #dc2626;
61
+ --red-text: #dc2626;
62
+ --amber-text: #b45309;
63
+ --info-blue: #2563eb;
64
+ --link: #0969da;
65
+ --link-hover: #0550ae;
66
+ --link-soft: #0969da;
67
+ --md-strong: #000000;
68
+ --skill-blue: #2563eb;
69
+ --plugin-purple: #7c3aed;
70
+ --auth-green: #059669;
71
+ --scroll-thumb: rgba(0, 0, 0, 0.18);
72
+ --scroll-thumb-hover: rgba(0, 0, 0, 0.32);
73
+ --notice-err-bg: color-mix(in srgb, var(--bg-elev) 92%, var(--red));
74
+ --notice-warn-bg: color-mix(in srgb, var(--bg-elev) 92%, var(--amber));
75
+ --notice-info-bg: color-mix(in srgb, var(--bg) 95%, var(--blue));
76
+ --notice-err-border: var(--red);
77
+ --notice-warn-border: var(--amber);
78
+ --notice-info-border: var(--blue);
79
+ --send-blue: #111827;
80
+ --send-blue-hover: #1f2937;
81
+ --stop-red: #dc2626;
82
+ --stop-red-hover: #b91c1c;
83
+ --brand-grad-a: #111827;
84
+ --brand-grad-b: #4b5563;
85
+ --on-amber: #ffffff;
86
+ --search-active-fg: #111827;
87
+ --switch-knob: #ffffff;
88
+ --bg-elev3: rgba(0, 0, 0, 0.04);
89
+ --sunken-bg: rgba(0, 0, 0, 0.04);
90
+ --glow-015: rgba(0, 0, 0, 0.015);
91
+ --glow-025: rgba(0, 0, 0, 0.025);
92
+ --glow-03: rgba(0, 0, 0, 0.03);
93
+ --glow-04: rgba(0, 0, 0, 0.04);
94
+ --glow-05: rgba(0, 0, 0, 0.05);
95
+ --glow-12: rgba(0, 0, 0, 0.08);
96
+ --glow-18: rgba(0, 0, 0, 0.12);
97
+ --glow-22: rgba(0, 0, 0, 0.15);
98
+ --glow-38: rgba(0, 0, 0, 0.22);
99
+ --control-fg: #374151;
100
+ --control-bg: #f3f4f6;
101
+ --control-border: rgba(0, 0, 0, 0.08);
102
+ --bg-image: none;
103
+ --bg-image-dim: 0.85;
104
+ --bg-image-blur: 0px;
105
+
106
+ --wallpaper-panel-alpha: 100%;
107
+ --topbar-bg: #f8f9fa;
108
+ --statusbar-bg: #f8f9fa;
109
+ --panel-bg: #f8f9fa;
110
+ --card-bg: #ffffff;
111
+ --chip-bg: #f3f4f6;
112
+ --msgs-bg: #ffffff;
113
+ --inputbox-bg: #ffffff;
114
+ --menu-bg: #ffffff;
115
+ }
116
+
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
+ }
1041
+
1042
+ /* ========================================================
1043
+ 代码语法高亮(hljs)—— 极简出版物浅亮色
1044
+ ======================================================== */
1045
+ .hljs {
1046
+ color: #1f2328;
1047
+ }
1048
+ .hljs-doctag,
1049
+ .hljs-keyword,
1050
+ .hljs-meta .hljs-keyword {
1051
+ color: #cf222e;
1052
+ }
1053
+ .hljs-title,
1054
+ .hljs-title.class_,
1055
+ .hljs-title.function_ {
1056
+ color: #8250df;
1057
+ }
1058
+ .hljs-attr,
1059
+ .hljs-attribute,
1060
+ .hljs-literal,
1061
+ .hljs-number {
1062
+ color: #0550ae;
1063
+ }
1064
+ .hljs-string,
1065
+ .hljs-regexp {
1066
+ color: #0a7b45;
1067
+ }
1068
+ .hljs-built_in,
1069
+ .hljs-type {
1070
+ color: #953800;
1071
+ }
1072
+ .hljs-comment,
1073
+ .hljs-code {
1074
+ color: #57606a;
1075
+ font-style: italic;
1076
+ }
1077
+ .hljs-tag,
1078
+ .hljs-name {
1079
+ color: #116329;
1080
+ }
1081
+
1082
+ /* 角标防白底白字:当 --accent 为深黑时,顶栏实体胶囊角标字体为白色(底栏透明徽标保持 var(--accent) 深色高对比) */
1083
+ .topbar .bar-item-badge:not(.bg-task-badge) {
1084
+ color: #ffffff !important;
1085
+ }