codexmate 0.1.30 → 0.1.32

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 (77) hide show
  1. package/README.md +98 -7
  2. package/README.vi.md +98 -7
  3. package/README.zh.md +99 -7
  4. package/cli/agents-files.js +18 -4
  5. package/cli/config-bootstrap.js +25 -11
  6. package/cli/plugin-config.js +64 -0
  7. package/cli/prompt-history.js +17 -4
  8. package/cli/system-prompt-files.js +7 -2
  9. package/cli.js +396 -46
  10. package/lib/cli-config-engine.js +266 -0
  11. package/lib/cli-utils.js +2 -1
  12. package/lib/cli-webhook.js +1 -1
  13. package/lib/handoff-mcp.js +282 -0
  14. package/lib/http-access-control.js +335 -0
  15. package/lib/session-context-health.js +82 -0
  16. package/lib/session-context-records.js +153 -0
  17. package/lib/thread-handoff.js +130 -0
  18. package/lib/web-startup-auth.js +53 -0
  19. package/lib/workflow-engine.js +92 -21
  20. package/lib/workflow-runner.js +261 -0
  21. package/package.json +1 -1
  22. package/plugins/prompt-templates/computed.mjs +3 -3
  23. package/plugins/prompt-templates/invocation.mjs +73 -0
  24. package/plugins/prompt-templates/methods.mjs +48 -3
  25. package/plugins/prompt-templates/overview.mjs +2 -0
  26. package/web-ui/app.js +48 -2
  27. package/web-ui/index.html +1 -0
  28. package/web-ui/logic.context-health.mjs +144 -0
  29. package/web-ui/modules/access-token.mjs +33 -0
  30. package/web-ui/modules/api.mjs +2 -1
  31. package/web-ui/modules/app.computed.prompts.mjs +11 -0
  32. package/web-ui/modules/app.methods.agents.mjs +20 -3
  33. package/web-ui/modules/app.methods.index.mjs +6 -0
  34. package/web-ui/modules/app.methods.navigation.mjs +17 -3
  35. package/web-ui/modules/app.methods.prompts-editor.mjs +7 -0
  36. package/web-ui/modules/app.methods.providers.mjs +2 -2
  37. package/web-ui/modules/app.methods.runtime.mjs +3 -2
  38. package/web-ui/modules/app.methods.session-actions.mjs +3 -0
  39. package/web-ui/modules/app.methods.session-browser.mjs +6 -2
  40. package/web-ui/modules/app.methods.system-prompt.mjs +17 -2
  41. package/web-ui/modules/app.methods.workflows.mjs +41 -0
  42. package/web-ui/modules/context-health.methods.mjs +70 -0
  43. package/web-ui/modules/i18n/locales/en.mjs +70 -2
  44. package/web-ui/modules/i18n/locales/ja.mjs +70 -2
  45. package/web-ui/modules/i18n/locales/vi.mjs +70 -2
  46. package/web-ui/modules/i18n/locales/zh-tw.mjs +70 -2
  47. package/web-ui/modules/i18n/locales/zh.mjs +70 -2
  48. package/web-ui/modules/plugins.methods.mjs +2 -0
  49. package/web-ui/modules/prompt-ecosystem.methods.mjs +136 -0
  50. package/web-ui/modules/sessions-filters-url.mjs +3 -0
  51. package/web-ui/modules/skills.methods.mjs +6 -5
  52. package/web-ui/modules/thread-handoff.mjs +142 -0
  53. package/web-ui/partials/index/context-health.html +45 -0
  54. package/web-ui/partials/index/modal-prompt-invocation.html +17 -0
  55. package/web-ui/partials/index/panel-config-claude.html +2 -0
  56. package/web-ui/partials/index/panel-config-codex.html +2 -0
  57. package/web-ui/partials/index/panel-config-kilocode.html +3 -1
  58. package/web-ui/partials/index/panel-config-openclaw.html +2 -0
  59. package/web-ui/partials/index/panel-config-opencode.html +3 -1
  60. package/web-ui/partials/index/panel-config-pi.html +2 -0
  61. package/web-ui/partials/index/panel-dashboard.html +59 -0
  62. package/web-ui/partials/index/panel-plugins.html +37 -9
  63. package/web-ui/partials/index/panel-prompts.html +46 -18
  64. package/web-ui/partials/index/panel-sessions.html +35 -44
  65. package/web-ui/partials/index/thread-handoff.html +59 -0
  66. package/web-ui/res/web-ui-render.precompiled.js +1289 -177
  67. package/web-ui/styles/context-health.css +107 -0
  68. package/web-ui/styles/controls-forms.css +9 -0
  69. package/web-ui/styles/dashboard.css +51 -0
  70. package/web-ui/styles/modals-core.css +87 -0
  71. package/web-ui/styles/navigation-panels.css +1 -1
  72. package/web-ui/styles/plugins-panel.css +62 -0
  73. package/web-ui/styles/prompts-editor.css +34 -4
  74. package/web-ui/styles/responsive.css +19 -10
  75. package/web-ui/styles/sessions-preview.css +206 -111
  76. package/web-ui/styles/sub-tabs.css +181 -0
  77. package/web-ui/styles.css +2 -0
@@ -11,8 +11,8 @@
11
11
  overflow-y: auto;
12
12
  overflow-x: hidden;
13
13
  padding-right: 52px;
14
- padding-bottom: 28px;
15
- scroll-padding-bottom: 40px;
14
+ padding-bottom: 8px;
15
+ scroll-padding-bottom: 8px;
16
16
  display: flex;
17
17
  flex-direction: column;
18
18
  scrollbar-width: none;
@@ -255,126 +255,66 @@
255
255
  line-height: 1.45;
256
256
  }
257
257
 
258
+ /* Reading index: retain message keys and scroll linkage without crowded markers. */
258
259
  .session-timeline {
259
260
  position: absolute;
260
261
  top: var(--session-preview-header-offset, 72px);
261
- right: 4px;
262
+ right: 8px;
262
263
  bottom: 12px;
263
- width: 44px;
264
- height: auto;
265
- border-radius: 12px;
266
- border: 1px solid var(--color-border-soft);
267
- background: var(--color-surface-elevated);
268
- box-shadow: var(--shadow-card);
269
- padding: 6px 4px 28px;
264
+ width: 144px;
265
+ display: flex;
266
+ flex-direction: column;
267
+ gap: 12px;
268
+ padding: 12px 8px;
270
269
  z-index: 3;
271
- }
272
-
273
- .session-timeline-track {
274
- position: absolute;
275
- left: 50%;
276
- top: 10px;
277
- bottom: 32px;
278
- width: 2px;
279
- transform: translateX(-50%);
280
- background: var(--color-border-soft);
281
- border-radius: 999px;
282
- }
283
-
284
- .session-timeline-node {
285
- position: absolute;
286
- left: 50%;
287
- width: 10px;
288
- height: 10px;
289
- border-radius: 50%;
290
- border: 1px solid var(--color-border-strong);
291
270
  background: var(--color-surface);
292
- transform: translate(-50%, -50%);
293
- cursor: pointer;
294
- padding: 0;
295
- transition: border-color var(--transition-fast) var(--ease-spring), background var(--transition-fast) var(--ease-spring), box-shadow var(--transition-fast) var(--ease-spring);
296
- }
297
-
298
- .session-timeline-node:hover {
299
- border-color: var(--color-brand);
300
- background: var(--color-surface);
301
- box-shadow: 0 0 0 3px rgba(210, 107, 90, 0.15);
302
- }
303
-
304
- .session-timeline-node.active {
305
- border-color: var(--color-brand);
306
- background: var(--color-brand);
307
- box-shadow: 0 0 0 3px rgba(210, 107, 90, 0.2);
308
- }
309
-
310
- .session-timeline-current {
311
- position: absolute;
312
- left: 3px;
313
- right: 3px;
314
- bottom: 4px;
315
- font-size: 10px;
316
- line-height: 1.2;
317
- color: var(--color-text-tertiary);
318
- text-align: center;
319
- white-space: nowrap;
320
- overflow: hidden;
321
- text-overflow: ellipsis;
322
- }
323
-
324
- /* 条状时间线 */
325
- .session-timeline-bar {
326
- width: 8px;
327
- padding: 0;
328
- }
329
-
330
- .session-timeline-bar-track {
331
- position: absolute;
332
- left: 50%;
333
- top: 10px;
334
- bottom: 32px;
335
- width: 6px;
336
- transform: translateX(-50%);
337
- background: var(--color-border-soft);
338
- border-radius: 3px;
271
+ border: 0;
272
+ border-radius: 12px;
273
+ box-shadow: none;
339
274
  overflow: hidden;
340
275
  }
341
-
342
- .session-timeline-bar-progress {
343
- position: absolute;
344
- top: 0;
345
- left: 0;
346
- right: 0;
276
+ .session-timeline-heading { display: flex; flex-direction: column; gap: 4px; padding: 0 8px; }
277
+ .session-timeline-heading > span:first-child { font-size: 12px; font-weight: 600; color: var(--color-text-secondary); }
278
+ .session-timeline-count { font-size: 11px; color: var(--color-text-tertiary); }
279
+ .session-timeline-reading-progress { flex-shrink: 0; height: 2px; margin: 0 8px; background: var(--color-border-soft); border-radius: 2px; overflow: hidden; }
280
+ .session-timeline-reading-progress > span { display: block; height: 100%; background: var(--color-brand); transition: width 180ms ease; }
281
+ .session-timeline-index { display: flex; flex-direction: column; gap: 4px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--color-border-soft) transparent; }
282
+ .session-timeline-node {
283
+ position: relative;
284
+ display: flex;
285
+ align-items: center;
286
+ gap: 8px;
287
+ flex-shrink: 0;
347
288
  width: 100%;
348
- background: var(--color-brand);
349
- border-radius: 3px;
350
- transition: height var(--transition-fast) var(--ease-spring);
351
- }
352
-
353
- .session-timeline-bar-node {
354
- position: absolute;
355
- left: 50%;
356
- width: 12px;
357
- height: 12px;
358
- border-radius: 50%;
359
- border: 2px solid var(--color-border-strong);
360
- background: var(--color-surface);
361
- transform: translate(-50%, -50%);
289
+ min-height: 48px;
290
+ padding: 8px;
291
+ border: 0;
292
+ border-radius: 8px;
293
+ background: transparent;
294
+ color: var(--color-text-tertiary);
295
+ text-align: left;
362
296
  cursor: pointer;
363
- padding: 0;
364
- transition: all var(--transition-fast) var(--ease-spring);
365
- z-index: 2;
297
+ transition: background 160ms ease, color 160ms ease;
298
+ }
299
+ .session-timeline-number { min-width: 28px; font-size: 11px; font-variant-numeric: tabular-nums; }
300
+ .session-timeline-label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
301
+ .session-timeline-role { font-size: 12px; font-weight: 500; color: var(--color-text-secondary); }
302
+ .session-timeline-time { font-size: 11px; font-variant-numeric: tabular-nums; }
303
+ .session-timeline-indicator { margin-left: auto; flex-shrink: 0; width: 4px; height: 16px; border-radius: 4px; background: transparent; }
304
+ .session-timeline-node:hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
305
+ .session-timeline-node.active { background: var(--color-brand-light); color: var(--color-brand-dark); box-shadow: none; }
306
+ .session-timeline-node.active .session-timeline-role { color: var(--color-text-primary); font-weight: 600; }
307
+ .session-timeline-node.active .session-timeline-indicator { background: var(--color-brand); }
308
+ .session-timeline-node:active { background: var(--color-brand-subtle); }
309
+ .session-timeline-node:focus-visible { outline: 2px solid var(--color-brand); outline-offset: -2px; }
310
+ .session-timeline-current { position: static; display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-top: auto; padding: 4px 8px 0; font-size: 11px; line-height: 1.5; color: var(--color-text-tertiary); }
311
+ .session-timeline-status-dot { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: var(--color-brand); }
312
+ .session-timeline-bar .session-timeline-reading-progress { height: 4px; }
313
+ @media (min-width: 1101px) {
314
+ .session-preview-scroll { padding-right: 164px; }
366
315
  }
367
-
368
- .session-timeline-bar-node:hover {
369
- border-color: var(--color-brand);
370
- background: var(--color-surface);
371
- box-shadow: 0 0 0 3px rgba(210, 107, 90, 0.15);
372
- }
373
-
374
- .session-timeline-bar-node.active {
375
- border-color: var(--color-brand);
376
- background: var(--color-brand);
377
- box-shadow: 0 0 0 3px rgba(210, 107, 90, 0.2);
316
+ @media (prefers-reduced-motion: reduce) {
317
+ .session-timeline *, .session-timeline *::before { transition: none; scroll-behavior: auto; }
378
318
  }
379
319
 
380
320
  .session-msg {
@@ -845,3 +785,158 @@
845
785
  #panel-sessions .session-preview-actions button { transition: none; }
846
786
  #panel-sessions .session-preview-actions button:active:not(:disabled) { transform: none; }
847
787
  }
788
+
789
+
790
+ /* Scoped handoff form: quiet surface, full-width fields, one primary action. */
791
+ #panel-sessions .thread-handoff {
792
+ flex-shrink: 0;
793
+ display: block;
794
+ padding: 0;
795
+ border: 0;
796
+ border-radius: 12px;
797
+ background: var(--color-surface-alt);
798
+ box-shadow: none;
799
+ overflow: hidden;
800
+ }
801
+ .thread-handoff-summary {
802
+ display: flex;
803
+ align-items: center;
804
+ gap: 12px;
805
+ min-height: 56px;
806
+ padding: 12px 20px;
807
+ cursor: pointer;
808
+ list-style: none;
809
+ font-size: 14px;
810
+ font-weight: 600;
811
+ color: var(--color-text-primary);
812
+ transition: background 160ms ease;
813
+ }
814
+ .thread-handoff-summary::-webkit-details-marker { display: none; }
815
+ .thread-handoff-summary::before {
816
+ content: '';
817
+ width: 6px;
818
+ height: 6px;
819
+ border-right: 1.5px solid currentColor;
820
+ border-bottom: 1.5px solid currentColor;
821
+ transform: rotate(-45deg);
822
+ transition: transform 160ms ease;
823
+ }
824
+ .thread-handoff[open] > .thread-handoff-summary::before { transform: rotate(45deg); }
825
+ .thread-handoff-summary-hint {
826
+ margin-left: auto;
827
+ font-size: 12px;
828
+ font-weight: 400;
829
+ color: var(--color-text-tertiary);
830
+ }
831
+ .thread-handoff-body { display: grid; gap: 20px; padding: 0 20px 20px; }
832
+ .thread-handoff-body .session-workspace-header { align-items: center; }
833
+ .thread-handoff-body .session-workspace-subtitle { margin: 0; }
834
+ .thread-handoff-form { display: grid; gap: 20px; min-width: 0; }
835
+ .thread-handoff-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
836
+ .thread-handoff-field .session-workspace-card-title { margin: 0; font-size: 13px; }
837
+ .thread-handoff small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--color-text-tertiary); }
838
+ #panel-sessions .thread-handoff .session-query-input {
839
+ width: 100%;
840
+ max-width: none;
841
+ min-width: 0;
842
+ min-height: 44px;
843
+ box-sizing: border-box;
844
+ padding: 12px;
845
+ border-radius: 8px;
846
+ font-size: 13px;
847
+ background: var(--color-surface);
848
+ }
849
+ #panel-sessions .thread-handoff textarea.session-query-input { min-height: 96px; resize: vertical; line-height: 1.6; }
850
+ .thread-handoff-optional-summary {
851
+ display: flex;
852
+ align-items: center;
853
+ flex-wrap: wrap;
854
+ min-height: 44px;
855
+ cursor: pointer;
856
+ font-size: 13px;
857
+ color: var(--color-text-secondary);
858
+ }
859
+ .thread-handoff-optional[open] .session-workspace-grid {
860
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
861
+ margin-top: 12px;
862
+ gap: 16px;
863
+ }
864
+ .thread-handoff-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
865
+ .thread-handoff .btn-mini { min-height: 44px; padding: 8px 16px; transition: background 160ms ease, color 160ms ease; }
866
+ #panel-sessions .thread-handoff-submit { background: var(--color-brand); color: #fff; border-color: transparent; }
867
+ #panel-sessions .thread-handoff-submit:hover:not(:disabled) { background: var(--color-brand-dark); }
868
+ #panel-sessions .thread-handoff-submit:disabled { opacity: .45; cursor: not-allowed; }
869
+ .thread-handoff-summary:hover { background: var(--color-brand-light); }
870
+ .thread-handoff-summary:active { background: var(--color-brand-subtle); }
871
+ .thread-handoff summary:focus-visible, .thread-handoff button:focus-visible {
872
+ outline: 2px solid var(--color-brand); outline-offset: -2px;
873
+ }
874
+ @media (max-width: 640px) {
875
+ .thread-handoff-summary { padding: 12px 16px; }
876
+ .thread-handoff-body { padding: 0 16px 16px; gap: 16px; }
877
+ .thread-handoff-body .session-workspace-header { align-items: flex-start; }
878
+ .thread-handoff-actions { align-items: stretch; flex-direction: column; gap: 12px; }
879
+ .thread-handoff-optional-summary small { width: 100%; margin: 4px 0 8px; }
880
+ }
881
+
882
+ /* Keep the session tab close to the viewport edge without changing other tabs. */
883
+ .main-panel:has(#panel-sessions:not([style*="display: none"])) {
884
+ padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
885
+ }
886
+
887
+ /* Fill the actual remaining viewport rather than subtracting a fixed header estimate. */
888
+ @media (min-width: 1101px) {
889
+ .main-panel:has(#panel-sessions:not([style*="display: none"])) {
890
+ display: flex;
891
+ flex-direction: column;
892
+ padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
893
+ }
894
+ .main-panel:has(#panel-sessions:not([style*="display: none"])) > .main-panel-topbar {
895
+ flex-shrink: 0;
896
+ }
897
+ .content-wrapper:has(#panel-sessions:not([style*="display: none"])) {
898
+ display: flex;
899
+ flex: 1;
900
+ min-height: 0;
901
+ padding-bottom: 0;
902
+ }
903
+ #panel-sessions.session-browser-refined {
904
+ display: flex;
905
+ flex: 1;
906
+ flex-direction: column;
907
+ min-height: 0;
908
+ }
909
+ #panel-sessions > div:has(> .session-layout) {
910
+ display: flex;
911
+ flex: 1;
912
+ flex-direction: column;
913
+ min-height: 0;
914
+ }
915
+ #panel-sessions > div:has(> .session-layout) > :not(.session-layout) { flex-shrink: 0; }
916
+ #panel-sessions .session-layout {
917
+ flex: 1;
918
+ height: auto;
919
+ min-height: 0;
920
+ }
921
+ }
922
+
923
+
924
+ /* 会话操作仅显示图标;保留旧标签节点与按钮契约。 */
925
+ #panel-sessions .session-preview-actions button[data-icon-only="true"] {
926
+ display: inline-flex;
927
+ align-items: center;
928
+ justify-content: center;
929
+ width: 44px;
930
+ min-width: 44px;
931
+ height: 44px;
932
+ min-height: 44px;
933
+ padding: 0;
934
+ gap: 0;
935
+ flex-shrink: 0;
936
+ }
937
+ #panel-sessions .session-preview-actions button[data-icon-only="true"] > .session-action-label { display: none; }
938
+ #panel-sessions .session-preview-actions button[data-icon-only="true"] svg { width: 16px; height: 16px; }
939
+ @container session-preview (max-width: 620px) {
940
+ #panel-sessions .session-preview-actions { align-items: flex-start; }
941
+ #panel-sessions .session-secondary-actions { flex-wrap: wrap; }
942
+ }
@@ -0,0 +1,181 @@
1
+ /* 面板子导航共享外观;保留模板、显隐条件与主题颜色。 */
2
+ :is(
3
+ #panel-prompts, #panel-settings, #panel-plugins, #panel-sessions, #panel-market,
4
+ #panel-config-provider, #panel-config-claude, #panel-config-openclaw,
5
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi
6
+ ) {
7
+ --sub-tab-gap: 2px;
8
+ --sub-tab-min-size: 44px;
9
+ --sub-tab-padding: 7px 10px 8px;
10
+ --sub-tab-line-width: 2px;
11
+ --sub-tab-focus-offset: -4px;
12
+ --sub-tab-transition: color var(--transition-fast) var(--ease-smooth),
13
+ border-color var(--transition-fast) var(--ease-smooth);
14
+ }
15
+
16
+ /* 不设置 display,保留移动端编辑/预览开关的原有显隐。 */
17
+ :is(
18
+ #panel-prompts .prompts-md-tabs,
19
+ #panel-prompts .prompts-mobile-view-switch,
20
+ #panel-settings .settings-tab-header > .segmented-control,
21
+ #panel-plugins .plugins-list,
22
+ #panel-plugins .prompt-templates-modebar,
23
+ #panel-sessions .session-source-pills,
24
+ #panel-market .skills-target-switch,
25
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
26
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control
27
+ ) {
28
+ align-items: center;
29
+ justify-content: flex-start;
30
+ flex-direction: row;
31
+ flex-wrap: nowrap;
32
+ gap: var(--sub-tab-gap);
33
+ width: fit-content;
34
+ min-width: 0;
35
+ max-width: 100%;
36
+ padding: 0;
37
+ border: 0;
38
+ border-bottom: 1px solid var(--color-border-soft);
39
+ border-radius: 0;
40
+ background: transparent;
41
+ box-shadow: none;
42
+ backdrop-filter: none;
43
+ overflow-x: auto;
44
+ overflow-y: hidden;
45
+ }
46
+
47
+ :is(
48
+ #panel-prompts .prompts-md-tab,
49
+ #panel-prompts .prompts-mobile-view-btn,
50
+ #panel-settings .settings-tab-header .segmented-option,
51
+ #panel-plugins .plugins-item,
52
+ #panel-plugins .mode-pill,
53
+ #panel-sessions .session-source-pill,
54
+ #panel-market .skills-target-chip,
55
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
56
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
57
+ ) {
58
+ display: inline-flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ flex: 0 0 auto;
62
+ width: auto;
63
+ min-width: var(--sub-tab-min-size);
64
+ min-height: var(--sub-tab-min-size);
65
+ padding: var(--sub-tab-padding);
66
+ border: 0;
67
+ border-bottom: var(--sub-tab-line-width) solid transparent;
68
+ border-radius: 0;
69
+ background: transparent;
70
+ box-shadow: none;
71
+ color: var(--color-text-secondary);
72
+ font-family: var(--font-family);
73
+ font-size: var(--font-size-body);
74
+ font-weight: var(--font-weight-secondary);
75
+ line-height: 1.4;
76
+ letter-spacing: 0;
77
+ white-space: nowrap;
78
+ cursor: pointer;
79
+ outline: none;
80
+ transform: none;
81
+ transition: var(--sub-tab-transition);
82
+ }
83
+
84
+ :is(
85
+ #panel-prompts .prompts-md-tab,
86
+ #panel-prompts .prompts-mobile-view-btn,
87
+ #panel-settings .settings-tab-header .segmented-option,
88
+ #panel-plugins .plugins-item,
89
+ #panel-plugins .mode-pill,
90
+ #panel-sessions .session-source-pill,
91
+ #panel-market .skills-target-chip,
92
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
93
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
94
+ ):hover:not(:disabled):not(.active) {
95
+ color: var(--color-text-primary);
96
+ background: transparent;
97
+ transform: none;
98
+ }
99
+
100
+ :is(
101
+ #panel-prompts .prompts-md-tab,
102
+ #panel-prompts .prompts-mobile-view-btn,
103
+ #panel-settings .settings-tab-header .segmented-option,
104
+ #panel-plugins .plugins-item,
105
+ #panel-plugins .mode-pill,
106
+ #panel-sessions .session-source-pill,
107
+ #panel-market .skills-target-chip,
108
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
109
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
110
+ ).active {
111
+ color: var(--color-brand-dark);
112
+ border-bottom-color: var(--color-brand);
113
+ background: transparent;
114
+ box-shadow: none;
115
+ }
116
+
117
+ :is(
118
+ #panel-prompts .prompts-md-tab,
119
+ #panel-prompts .prompts-mobile-view-btn,
120
+ #panel-settings .settings-tab-header .segmented-option,
121
+ #panel-plugins .plugins-item,
122
+ #panel-plugins .mode-pill,
123
+ #panel-sessions .session-source-pill,
124
+ #panel-market .skills-target-chip,
125
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
126
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
127
+ ):focus-visible {
128
+ outline: var(--sub-tab-line-width) solid var(--color-brand-dark);
129
+ outline-offset: var(--sub-tab-focus-offset);
130
+ box-shadow: none;
131
+ }
132
+
133
+ :is(
134
+ #panel-prompts .prompts-md-tab,
135
+ #panel-prompts .prompts-mobile-view-btn,
136
+ #panel-settings .settings-tab-header .segmented-option,
137
+ #panel-plugins .plugins-item,
138
+ #panel-plugins .mode-pill,
139
+ #panel-sessions .session-source-pill,
140
+ #panel-market .skills-target-chip,
141
+ :is(#panel-config-provider, #panel-config-claude, #panel-config-openclaw,
142
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi) > .segmented-control > .segment
143
+ ):disabled {
144
+ opacity: 0.5;
145
+ cursor: not-allowed;
146
+ }
147
+
148
+ /* 使用一条底边框,移除插件模式按钮的第二条选中线。 */
149
+ #panel-plugins .mode-pill.active::after {
150
+ content: none;
151
+ }
152
+
153
+ #panel-plugins .plugins-item .plugins-item-title,
154
+ #panel-sessions .session-source-pill-label {
155
+ font-size: inherit;
156
+ font-weight: inherit;
157
+ line-height: inherit;
158
+ color: inherit;
159
+ }
160
+
161
+ /* 已知来源继续使用原有主题调色;其他来源不再保留白色选中圆点。 */
162
+ #panel-sessions .session-source-pill-dot {
163
+ box-shadow: none;
164
+ }
165
+
166
+ #panel-sessions .session-source-pill:not(:is(
167
+ [data-source="codex"], [data-source="claude"],
168
+ [data-source="gemini"], [data-source="codebuddy"]
169
+ )) .session-source-pill-dot {
170
+ background: var(--color-text-muted);
171
+ }
172
+
173
+ @media (prefers-reduced-motion: reduce) {
174
+ :is(
175
+ #panel-prompts, #panel-settings, #panel-plugins, #panel-sessions, #panel-market,
176
+ #panel-config-provider, #panel-config-claude, #panel-config-openclaw,
177
+ #panel-config-opencode, #panel-config-kilocode, #panel-config-pi
178
+ ) {
179
+ --sub-tab-transition: none;
180
+ }
181
+ }
package/web-ui/styles.css CHANGED
@@ -23,5 +23,7 @@
23
23
  @import url('./styles/trash-panel.css');
24
24
  @import url('./styles/system-prompt.css');
25
25
  @import url('./styles/prompts-editor.css');
26
+ @import url('./styles/context-health.css');
26
27
  @import url('./styles/theme-dark.css');
27
28
  @import url('./styles/theme-ocean.css');
29
+ @import url('./styles/sub-tabs.css');