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