codexmate 0.1.32 → 0.1.34

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 (109) hide show
  1. package/README.md +18 -2
  2. package/README.vi.md +18 -2
  3. package/README.zh.md +18 -2
  4. package/cli/claude-proxy.js +2 -2
  5. package/cli/local-bridge.js +10 -6
  6. package/cli/openai-chat-routing.js +38 -0
  7. package/cli/prompt-history.js +2 -0
  8. package/cli/routing-bridge.js +143 -0
  9. package/cli/system-prompt-files.js +75 -53
  10. package/cli.js +325 -215
  11. package/lib/cli-config-engine.js +6 -1
  12. package/lib/cli-file-utils.js +6 -1
  13. package/lib/config-change-fs.js +132 -0
  14. package/lib/config-changes.js +293 -0
  15. package/lib/file-sharing-lan.js +111 -0
  16. package/lib/file-sharing.js +196 -0
  17. package/lib/handoff-mcp.js +18 -2
  18. package/lib/local-feature-store.js +39 -0
  19. package/lib/model-test-client.js +61 -0
  20. package/lib/model-test.js +126 -0
  21. package/lib/routing-groups.js +161 -0
  22. package/lib/session-bookmarks.js +72 -0
  23. package/lib/session-context-health.js +23 -3
  24. package/lib/session-diagnostics.js +75 -0
  25. package/lib/session-feature-settings.js +21 -0
  26. package/lib/session-features.js +63 -0
  27. package/lib/session-handoff-draft.js +43 -0
  28. package/lib/session-projects.js +76 -0
  29. package/lib/session-search-index.js +188 -0
  30. package/lib/thread-handoff.js +8 -0
  31. package/lib/web-server.js +216 -0
  32. package/package.json +1 -1
  33. package/plugins/file-sharing/manifest.mjs +10 -0
  34. package/plugins/file-sharing/methods.mjs +101 -0
  35. package/plugins/file-sharing/overview.mjs +3 -0
  36. package/plugins/file-sharing/ownership.mjs +5 -0
  37. package/plugins/registry.mjs +3 -0
  38. package/web-ui/app.js +22 -3
  39. package/web-ui/index.html +4 -2
  40. package/web-ui/logic.context-window.mjs +15 -0
  41. package/web-ui/modules/api.mjs +72 -39
  42. package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
  43. package/web-ui/modules/app.methods.agents.mjs +17 -0
  44. package/web-ui/modules/app.methods.claude-config.mjs +2 -0
  45. package/web-ui/modules/app.methods.codex-config.mjs +9 -0
  46. package/web-ui/modules/app.methods.config-changes.mjs +124 -0
  47. package/web-ui/modules/app.methods.install.mjs +23 -3
  48. package/web-ui/modules/app.methods.kilocode-config.mjs +2 -0
  49. package/web-ui/modules/app.methods.navigation.mjs +2 -0
  50. package/web-ui/modules/app.methods.openclaw-persist.mjs +2 -0
  51. package/web-ui/modules/app.methods.opencode-config.mjs +2 -0
  52. package/web-ui/modules/app.methods.pi-config.mjs +12 -3
  53. package/web-ui/modules/app.methods.prompts-editor.mjs +7 -4
  54. package/web-ui/modules/app.methods.provider-cache.mjs +9 -3
  55. package/web-ui/modules/app.methods.providers.mjs +6 -0
  56. package/web-ui/modules/app.methods.session-actions.mjs +2 -2
  57. package/web-ui/modules/app.methods.startup-claude.mjs +8 -47
  58. package/web-ui/modules/app.methods.system-prompt.mjs +88 -17
  59. package/web-ui/modules/app.methods.theme.mjs +4 -3
  60. package/web-ui/modules/app.methods.web-ui-preferences.mjs +7 -0
  61. package/web-ui/modules/config-change-actions.mjs +9 -0
  62. package/web-ui/modules/i18n/locales/en.mjs +254 -8
  63. package/web-ui/modules/i18n/locales/ja.mjs +254 -8
  64. package/web-ui/modules/i18n/locales/vi.mjs +254 -8
  65. package/web-ui/modules/i18n/locales/zh-tw.mjs +254 -8
  66. package/web-ui/modules/i18n/locales/zh.mjs +254 -8
  67. package/web-ui/modules/model-test.mjs +82 -0
  68. package/web-ui/modules/plugins.methods.mjs +3 -1
  69. package/web-ui/modules/prompt-ecosystem.methods.mjs +4 -3
  70. package/web-ui/modules/request-deadline.mjs +33 -0
  71. package/web-ui/modules/routing.mjs +206 -0
  72. package/web-ui/modules/session-features.mjs +279 -0
  73. package/web-ui/modules/thread-handoff.mjs +1 -1
  74. package/web-ui/partials/index/config-changes.html +25 -0
  75. package/web-ui/partials/index/context-window-reference.html +17 -0
  76. package/web-ui/partials/index/layout-header.html +40 -42
  77. package/web-ui/partials/index/modal-openclaw-config.html +0 -2
  78. package/web-ui/partials/index/modal-skills.html +0 -1
  79. package/web-ui/partials/index/modals-basic.html +15 -8
  80. package/web-ui/partials/index/modals-pi-provider.html +0 -1
  81. package/web-ui/partials/index/panel-config-codex.html +0 -3
  82. package/web-ui/partials/index/panel-config-openclaw.html +16 -13
  83. package/web-ui/partials/index/panel-dashboard.html +0 -2
  84. package/web-ui/partials/index/panel-plugins.html +3 -10
  85. package/web-ui/partials/index/panel-prompts.html +13 -8
  86. package/web-ui/partials/index/panel-routing.html +3 -0
  87. package/web-ui/partials/index/panel-sessions.html +9 -0
  88. package/web-ui/partials/index/panel-settings.html +12 -13
  89. package/web-ui/partials/index/panel-trash.html +0 -1
  90. package/web-ui/partials/index/plugin-file-sharing.html +47 -0
  91. package/web-ui/partials/index/routing-model-test.html +53 -0
  92. package/web-ui/partials/index/session-diagnostics.html +32 -0
  93. package/web-ui/partials/index/session-features.html +107 -0
  94. package/web-ui/partials/index/thread-handoff.html +6 -3
  95. package/web-ui/res/web-ui-render.precompiled.js +1689 -246
  96. package/web-ui/styles/base-theme.css +1 -1
  97. package/web-ui/styles/config-changes.css +30 -0
  98. package/web-ui/styles/modals-core.css +6 -5
  99. package/web-ui/styles/navigation-panels.css +4 -0
  100. package/web-ui/styles/openclaw-structured.css +205 -189
  101. package/web-ui/styles/plugins-panel.css +40 -1
  102. package/web-ui/styles/responsive.css +10 -5
  103. package/web-ui/styles/routing.css +78 -0
  104. package/web-ui/styles/session-features.css +258 -0
  105. package/web-ui/styles/settings-panel.css +30 -0
  106. package/web-ui/styles/system-prompt.css +8 -7
  107. package/web-ui/styles/theme-violet-tokens.css +52 -0
  108. package/web-ui/styles/theme-violet.css +1736 -0
  109. package/web-ui/styles.css +5 -1
@@ -25,7 +25,7 @@ textarea:focus-visible {
25
25
  }
26
26
 
27
27
  .main-panel-topbar {
28
- margin: 0 -20px 12px;
28
+ margin: 0 -20px var(--panel-top-gap);
29
29
  padding: 0 20px 10px;
30
30
  }
31
31
 
@@ -48,7 +48,7 @@ textarea:focus-visible {
48
48
  min-height: 0;
49
49
  }
50
50
  .main-panel-topbar {
51
- margin: 0 -16px 12px;
51
+ margin: 0 -16px var(--panel-top-gap);
52
52
  padding: 0 16px 10px;
53
53
  }
54
54
  .top-tabs {
@@ -114,6 +114,11 @@ textarea:focus-visible {
114
114
  overflow: hidden;
115
115
  }
116
116
 
117
+ /* Hidden rails must not leave the higher-specificity collapsed grid column. */
118
+ .app-shell.sidebar-collapsed {
119
+ grid-template-columns: 1fr;
120
+ }
121
+
117
122
  .side-rail {
118
123
  display: none;
119
124
  }
@@ -148,7 +153,7 @@ textarea:focus-visible {
148
153
  position: sticky;
149
154
  top: 0;
150
155
  z-index: 20;
151
- margin: 0 0 10px;
156
+ margin: 0 0 var(--panel-top-gap);
152
157
  padding: 0 0 8px;
153
158
  background: rgba(255, 248, 241, 0.96);
154
159
  backdrop-filter: blur(14px) saturate(130%);
@@ -314,7 +319,7 @@ textarea:focus-visible {
314
319
  }
315
320
 
316
321
  .main-panel-topbar {
317
- margin-bottom: 8px;
322
+ margin-bottom: var(--panel-top-gap);
318
323
  }
319
324
  .card {
320
325
  padding: 12px;
@@ -734,7 +739,7 @@ textarea:focus-visible {
734
739
  position: sticky;
735
740
  top: 0;
736
741
  z-index: 20;
737
- margin: 0 0 10px;
742
+ margin: 0 0 var(--panel-top-gap);
738
743
  padding: 0 0 8px;
739
744
  background: rgba(255, 248, 241, 0.96);
740
745
  backdrop-filter: blur(14px) saturate(130%);
@@ -0,0 +1,78 @@
1
+ #panel-routing .segmented-control { margin-bottom: 0; min-width: 192px; }
2
+ #panel-routing .segment { min-height: 44px; }
3
+ #panel-routing .btn-tool { min-height: 44px; }
4
+ #panel-routing :is(.routing-test-heading, .routing-test-actions) > .btn-tool {
5
+ width: auto;
6
+ flex: 0 0 auto;
7
+ white-space: nowrap;
8
+ }
9
+ #panel-routing .routing-icon-btn {
10
+ display: inline-flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ min-width: 44px;
14
+ width: 44px;
15
+ padding: 8px;
16
+ }
17
+ #panel-routing .routing-icon-btn svg { display: block; width: 16px; height: 16px; }
18
+ #panel-routing :is(.btn-tool, .segment):focus-visible {
19
+ outline: 2px solid var(--color-brand);
20
+ outline-offset: 3px;
21
+ }
22
+ #panel-routing .btn-tool:not(:disabled):active { transform: translateY(0); }
23
+ #panel-routing .routing-hint {
24
+ margin: 8px 0 0;
25
+ max-width: 70ch;
26
+ font-size: var(--font-size-secondary);
27
+ color: var(--color-text-tertiary);
28
+ line-height: var(--line-height-normal);
29
+ overflow-wrap: anywhere;
30
+ }
31
+ #panel-routing .routing-error {
32
+ padding: 12px 16px;
33
+ margin: 0 0 16px;
34
+ border: 1px solid var(--color-error);
35
+ border-radius: var(--radius-sm);
36
+ color: var(--color-error);
37
+ overflow-wrap: anywhere;
38
+ }
39
+ #panel-routing fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
40
+ #panel-routing .routing-form-head {
41
+ display: grid;
42
+ grid-template-columns: minmax(0, 1fr) minmax(0, 240px);
43
+ gap: 16px;
44
+ }
45
+ #panel-routing .routing-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
46
+ #panel-routing .routing-field .form-label { margin: 0; }
47
+ #panel-routing :is(.form-input, .model-select) { width: 100%; max-width: none; min-width: 0; min-height: 44px; height: 44px; padding-block: 8px; box-sizing: border-box; }
48
+ #panel-routing :is(.routing-test-heading, .routing-test-actions, .routing-test-result-head) {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: space-between;
52
+ flex-wrap: wrap;
53
+ gap: 8px 16px;
54
+ }
55
+ #panel-routing .routing-test-heading { flex-wrap: nowrap; margin-bottom: 16px; }
56
+ #panel-routing .routing-test-legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); }
57
+ #panel-routing .routing-test-heading .segmented-control { flex-direction: row; width: fit-content; min-width: 0; margin-bottom: 0; }
58
+ #panel-routing .routing-test-prompt { margin-top: 24px; }
59
+ #panel-routing .routing-test-prompt textarea { height: auto; min-height: 128px; resize: vertical; line-height: var(--line-height-normal); }
60
+ #panel-routing .routing-test-actions { justify-content: flex-end; margin: 16px 0 24px; }
61
+ #panel-routing .routing-test-result-head .routing-hint { margin: 0; }
62
+ #panel-routing .routing-test-response { min-height: 192px; padding: 24px 0; border-top: 1px solid var(--color-border-soft); }
63
+ #panel-routing .routing-test-result-head { color: var(--color-text-primary); overflow-wrap: anywhere; }
64
+ #panel-routing .routing-test-question { margin: 16px 0 24px; color: var(--color-text-tertiary); white-space: pre-wrap; overflow-wrap: anywhere; }
65
+ #panel-routing .routing-test-answer { max-width: 72ch; color: var(--color-text-primary); line-height: var(--line-height-normal); overflow-wrap: anywhere; }
66
+ #panel-routing .routing-test-plain { white-space: pre-wrap; }
67
+ #panel-routing .routing-test-answer :is(h1, h2, h3, h4) { font-size: var(--font-size-body); margin: 24px 0 8px; }
68
+ #panel-routing .routing-test-answer :is(p, ul, ol) { margin: 12px 0; }
69
+ #panel-routing .routing-test-answer :is(ul, ol) { padding-left: 24px; }
70
+ #panel-routing .routing-test-answer pre { padding: 16px; max-width: 100%; overflow-x: auto; background: var(--color-surface-alt); border-radius: var(--radius-sm); }
71
+ #panel-routing .routing-test-answer code { font-family: var(--font-family-mono); font-size: var(--font-size-secondary); }
72
+ #panel-routing .routing-test-answer :is(table, img) { max-width: 100%; }
73
+ #panel-routing .routing-test-answer table { display: block; overflow-x: auto; border-collapse: collapse; }
74
+ #panel-routing .routing-test-answer :is(th, td) { padding: 8px; border-bottom: 1px solid var(--color-border-soft); }
75
+ @media (max-width: 760px) {
76
+ #panel-routing .routing-form-head { grid-template-columns: minmax(0, 1fr); }
77
+ #panel-routing :is(.form-input, .model-select) { font-size: 16px; }
78
+ }
@@ -0,0 +1,258 @@
1
+ .session-features {
2
+ --feature-surface: var(--color-surface-alt);
3
+ --feature-duration: 160ms;
4
+ --feature-ease: cubic-bezier(0.16, 1, 0.3, 1);
5
+ margin: var(--spacing-sm) 0;
6
+ min-width: 0;
7
+ color: var(--color-text-primary);
8
+ font-family: var(--font-family-body);
9
+ }
10
+ /* Match neighboring controls, including their one-pixel container border. */
11
+ #panel-sessions .session-features { box-sizing: border-box; margin-inline: 1px; padding-inline: 10px; }
12
+ #panel-settings .feature-diagnostics { box-sizing: border-box; margin-inline: 1px; padding-inline: var(--spacing-md); }
13
+ /* Page-leading tools inherit the shared topbar gap, not an extra section gap. */
14
+ #panel-sessions > div > .session-features,
15
+ #panel-settings > .feature-diagnostics {
16
+ margin-block-start: 0;
17
+ }
18
+ #panel-sessions > div > .session-features > .feature-toolbar {
19
+ padding-block-start: 0;
20
+ }
21
+ .feature-toolbar, .feature-section-heading, .feature-record-heading {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ gap: var(--spacing-xs);
26
+ min-width: 0;
27
+ }
28
+ .feature-toolbar { flex-wrap: wrap; padding-block: 4px; }
29
+ /* Keep the three tools distinct from the source navigation below. */
30
+ #panel-sessions .feature-tabs {
31
+ display: flex;
32
+ align-items: stretch;
33
+ gap: 4px;
34
+ width: fit-content;
35
+ min-width: 0;
36
+ max-width: 100%;
37
+ padding: 4px;
38
+ border-radius: 8px;
39
+ background: var(--feature-surface);
40
+ overflow-x: auto;
41
+ }
42
+ #panel-sessions .feature-tabs button {
43
+ padding-inline: 10px;
44
+ box-sizing: border-box;
45
+ flex: 0 0 auto;
46
+ min-width: 44px;
47
+ min-height: 44px;
48
+ padding-block: 8px;
49
+ border: 0;
50
+ border-radius: 4px;
51
+ background: transparent;
52
+ color: var(--color-text-secondary);
53
+ font: inherit;
54
+ font-size: var(--font-size-body);
55
+ font-weight: var(--font-weight-secondary);
56
+ line-height: 1.5;
57
+ white-space: nowrap;
58
+ text-align: center;
59
+ cursor: pointer;
60
+ touch-action: manipulation;
61
+ }
62
+ #panel-sessions .feature-tabs button:hover:not(:disabled) {
63
+ background: var(--color-surface);
64
+ color: var(--color-text-primary);
65
+ }
66
+ #panel-sessions .feature-tabs button[aria-expanded="true"],
67
+ #panel-sessions .feature-tabs button[aria-expanded="true"]:hover:not(:disabled) {
68
+ background: var(--color-brand-light);
69
+ color: var(--color-brand-dark);
70
+ }
71
+ #panel-sessions .feature-tabs button:focus-visible {
72
+ outline: 2px solid var(--color-brand-dark);
73
+ outline-offset: -4px;
74
+ }
75
+ .feature-actions, .feature-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); }
76
+ .feature-actions input, .feature-actions select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
77
+ .session-features input:not([type="checkbox"]), .session-features select, .session-features textarea,
78
+ .context-window-reference input, .context-window-reference select {
79
+ box-sizing: border-box;
80
+ width: 100%;
81
+ min-width: 0;
82
+ min-height: 44px;
83
+ padding: 8px 12px;
84
+ border: 1px solid var(--color-border-strong);
85
+ border-radius: var(--radius-sm);
86
+ background: var(--color-surface);
87
+ color: var(--color-text-primary);
88
+ font: inherit;
89
+ font-size: max(16px, var(--font-size-body));
90
+ }
91
+ .session-features button, .context-window-reference button, .session-feature-controls button {
92
+ min-height: 44px;
93
+ max-width: 100%;
94
+ transition: color var(--feature-duration, 160ms) var(--feature-ease, ease-out), background-color var(--feature-duration, 160ms) var(--feature-ease, ease-out), opacity var(--feature-duration, 160ms) var(--feature-ease, ease-out);
95
+ }
96
+ .session-features .feature-primary { background: var(--color-text-primary); color: var(--color-surface); border-color: transparent; }
97
+ .session-features .feature-primary:not(:disabled):hover { background: var(--color-text-secondary); }
98
+ .session-features .feature-quiet, .context-window-reference .feature-quiet { border-color: transparent; background: transparent; color: var(--color-text-secondary); }
99
+ .session-features button:not(:disabled):hover, .feature-link-list button:not(:disabled):hover { background: var(--feature-surface); color: var(--color-text-primary); }
100
+ .session-features button:not(:disabled):active, .context-window-reference button:not(:disabled):active { opacity: 0.76; }
101
+ .session-features button:disabled, .context-window-reference button:disabled { cursor: not-allowed; opacity: 0.45; }
102
+ .session-features :is(button, input, select, textarea, summary):focus-visible,
103
+ .context-window-reference :is(button, input, select, summary):focus-visible,
104
+ .session-feature-controls :is(button, input):focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
105
+ .feature-content { padding: var(--spacing-md) 0 var(--spacing-xs); min-width: 0; }
106
+ .feature-section-heading { margin-bottom: var(--spacing-sm); flex-wrap: wrap; }
107
+ .feature-section-heading h3 { margin: 0; font-size: var(--font-size-title); font-weight: 600; }
108
+ .feature-section-heading h4, .feature-record-heading h4 { margin: 0; font-size: var(--font-size-body); font-weight: 600; }
109
+ .feature-hint, .feature-issue, .feature-note { max-width: 72ch; margin: 8px 0; line-height: 1.65; }
110
+ .feature-hint { color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
111
+ .feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--color-text-muted); font-size: var(--font-size-secondary); overflow-wrap: anywhere; }
112
+ .feature-source { color: var(--color-text-secondary); font-size: var(--font-size-secondary); font-weight: 600; }
113
+ .feature-path { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); font-size: var(--font-size-secondary); }
114
+ .feature-search-form { margin-top: var(--spacing-sm); }
115
+ .feature-disclosure { margin-top: 12px; min-width: 0; }
116
+ .feature-disclosure > summary { width: fit-content; max-width: 100%; min-height: 44px; display: list-item; align-content: center; cursor: pointer; color: var(--color-text-secondary); font-size: var(--font-size-secondary); overflow-wrap: anywhere; }
117
+ .feature-disclosure[open] > summary { color: var(--color-text-primary); }
118
+ .feature-record { padding: var(--spacing-md) 0; overflow-wrap: anywhere; min-width: 0; }
119
+ .feature-record + .feature-record { border-top: 1px solid var(--color-border-soft); }
120
+ .feature-record-heading { margin-bottom: 8px; }
121
+ .feature-record-heading h4 { min-width: 0; overflow-wrap: anywhere; }
122
+ .feature-record pre, .feature-focus pre, .feature-code { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; line-height: 1.6; }
123
+ .feature-excerpt { max-width: 72ch; margin: var(--spacing-sm) 0; font-family: var(--font-family-body); font-size: var(--font-size-body); }
124
+ .feature-code, .feature-disclosure pre { padding: 12px; border-radius: var(--radius-sm); background: var(--feature-surface, var(--color-surface-alt)); font-family: var(--font-family-mono); font-size: var(--font-size-secondary); }
125
+ .feature-note { color: var(--color-text-secondary); }
126
+ .feature-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
127
+ .feature-tag, .feature-count { font-size: var(--font-size-secondary); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
128
+ .feature-tag { padding: 4px 8px; border-radius: 4px; background: var(--feature-surface); }
129
+ .feature-count { flex-shrink: 0; }
130
+ .feature-record-actions { margin-top: var(--spacing-xs); }
131
+ .feature-editor { display: grid; gap: var(--spacing-sm); max-width: 72ch; margin-top: var(--spacing-md); }
132
+ .feature-editor label, .feature-filter-fields label, .feature-window-fields label { display: grid; gap: 8px; min-width: 0; color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
133
+ .feature-editor textarea { min-height: 104px; resize: vertical; }
134
+ .feature-filter-fields, .feature-window-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: var(--spacing-sm); margin-top: 8px; }
135
+ .feature-filter-fields input { margin-top: 0; }
136
+ .feature-window-fields button { justify-self: start; }
137
+ .feature-empty { padding: 24px 0; color: var(--color-text-secondary); }
138
+ .feature-empty p { margin: 0 0 8px; font-size: var(--font-size-body); }
139
+ .feature-empty small { font-size: var(--font-size-secondary); }
140
+ .feature-loading { margin: var(--spacing-sm) 0; color: var(--color-text-secondary); }
141
+ .feature-feedback { margin: 12px 0; }
142
+ .feature-status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; background: var(--feature-surface, var(--color-surface-alt)); color: var(--color-text-primary); font-size: var(--font-size-secondary); }
143
+ .feature-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
144
+ .feature-status[data-status="passed"]::before, .feature-status[data-status="success"]::before { background: var(--color-success); }
145
+ .feature-status[data-status="failed"]::before, .feature-status[data-status="timeout"]::before { background: var(--color-error); }
146
+ .feature-status[data-status="running"] { color: var(--color-text-primary); }
147
+ .feature-project-picker { display: grid; gap: 4px; max-height: 288px; overflow-y: auto; margin-top: var(--spacing-sm); }
148
+ .feature-project-picker > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; color: var(--color-text-primary); }
149
+ .feature-project-picker > button[aria-pressed="true"] { background: var(--feature-surface); }
150
+ .feature-project-label { display: grid; gap: 4px; min-width: 0; }
151
+ .feature-project-label strong { font-size: var(--font-size-body); }
152
+ .feature-project-heading { margin-top: var(--spacing-md); }
153
+ .feature-session-row { padding: 12px 0; }
154
+ .feature-session-row > button, .feature-link-list button { display: block; padding: 8px 0; border: 0; background: transparent; color: var(--color-text-primary); font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
155
+ .feature-link-list { display: grid; min-width: 0; }
156
+ .feature-diagnostics { margin-bottom: var(--spacing-md); }
157
+ .feature-diagnostics > summary { min-height: 44px; cursor: pointer; font-size: var(--font-size-title); font-weight: 600; align-content: center; }
158
+ .feature-diagnostic-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: var(--spacing-sm) 0; }
159
+ .feature-diagnostic-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
160
+ .feature-diagnostic-controls { margin-bottom: 8px; }
161
+ .feature-export-actions { padding-top: var(--spacing-sm); }
162
+ #panel-settings .feature-diagnostics-heading {
163
+ display: flex;
164
+ align-items: center;
165
+ justify-content: space-between;
166
+ gap: var(--spacing-sm);
167
+ min-width: 0;
168
+ font-size: var(--font-size-body);
169
+ font-weight: var(--font-weight-primary);
170
+ line-height: var(--line-height-normal);
171
+ list-style: none;
172
+ }
173
+ #panel-settings .feature-diagnostics-heading::-webkit-details-marker { display: none; }
174
+ #panel-settings .feature-diagnostics-heading > span { min-width: 0; overflow-wrap: anywhere; }
175
+ #panel-settings .feature-diagnostics-chevron {
176
+ width: 16px;
177
+ height: 16px;
178
+ flex-shrink: 0;
179
+ color: var(--color-text-muted);
180
+ transition: transform var(--feature-duration) var(--feature-ease);
181
+ }
182
+ #panel-settings .feature-diagnostics[open] > summary .feature-diagnostics-chevron { transform: rotate(90deg); }
183
+ #panel-settings .feature-diagnostics > .feature-content { padding-block: var(--spacing-sm); }
184
+ #panel-settings .feature-diagnostics .feature-hint { margin: 0 0 var(--spacing-sm); }
185
+ #panel-settings .feature-diagnostic-options {
186
+ display: grid;
187
+ grid-template-columns: repeat(2, minmax(0, 1fr));
188
+ gap: 4px var(--spacing-sm);
189
+ margin: 0 0 var(--spacing-sm);
190
+ }
191
+ #panel-settings .feature-diagnostic-options label {
192
+ min-width: 0;
193
+ font-size: var(--font-size-body);
194
+ color: var(--color-text-primary);
195
+ cursor: pointer;
196
+ }
197
+ #panel-settings .feature-diagnostic-options label:first-child { grid-column: 1 / -1; }
198
+ #panel-settings .feature-diagnostic-options input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--color-brand); }
199
+ #panel-settings .feature-diagnostic-options span { min-width: 0; overflow-wrap: anywhere; }
200
+ #panel-settings .feature-diagnostic-options label:has(input:disabled) { cursor: not-allowed; opacity: 0.45; }
201
+ #panel-settings .feature-diagnostic-controls { margin-bottom: var(--spacing-xs); }
202
+ #panel-settings .feature-diagnostic-controls > .feature-status { margin-inline-start: auto; }
203
+ #panel-settings .feature-diagnostics .feature-button {
204
+ min-width: 44px;
205
+ padding: 8px var(--spacing-sm);
206
+ border: 1px solid transparent;
207
+ border-radius: var(--radius-sm);
208
+ background: transparent;
209
+ color: var(--color-text-secondary);
210
+ font: inherit;
211
+ font-size: var(--font-size-secondary);
212
+ font-weight: var(--font-weight-secondary);
213
+ overflow-wrap: anywhere;
214
+ cursor: pointer;
215
+ touch-action: manipulation;
216
+ }
217
+ #panel-settings .feature-diagnostics .feature-button:not(:disabled):hover { background: var(--color-surface-alt); color: var(--color-text-primary); }
218
+ #panel-settings .feature-diagnostics .feature-button:disabled { cursor: not-allowed; }
219
+ #panel-settings .feature-diagnostics .feature-primary { background: var(--color-brand-light); color: var(--color-brand-dark); }
220
+ #panel-settings .feature-diagnostics .feature-primary:not(:disabled):hover { background: var(--color-brand-light); color: var(--color-brand-dark); border-color: var(--color-brand-dark); }
221
+ #panel-settings .feature-diagnostic-row strong { min-width: 0; font-size: var(--font-size-body); font-weight: var(--font-weight-primary); overflow-wrap: anywhere; }
222
+ #panel-settings .feature-diagnostics .feature-status { max-width: 100%; flex-shrink: 0; overflow-wrap: anywhere; }
223
+ #panel-settings .feature-diagnostics .feature-meta { font-variant-numeric: tabular-nums; }
224
+ .context-window-reference { box-sizing: border-box; margin: var(--spacing-md) 0 var(--spacing-sm); padding-inline: var(--spacing-sm); color: var(--color-text-primary); }
225
+ .context-window-reference .feature-section-heading { margin-bottom: 4px; }
226
+ .feature-window-warning { margin-top: 12px; padding-block: 8px; }
227
+ .feature-window-warning > span { color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
228
+ .session-feature-controls { display: flex; align-items: center; gap: 4px; margin-left: auto; }
229
+ .session-feature-controls button { min-width: 44px; padding: 8px; border: 0; background: transparent; color: var(--color-text-muted); }
230
+ .session-feature-controls button:not(:disabled):hover { color: var(--color-text-primary); background: var(--color-surface-alt); }
231
+ .session-feature-controls button:disabled { opacity: 0.45; cursor: not-allowed; }
232
+ .session-feature-controls button:not(:disabled):active { opacity: 0.76; }
233
+ .feature-message-select { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
234
+ .feature-focus { margin: 16px 0; padding: 16px; background: var(--color-surface-alt); }
235
+ @media (max-width: 640px) {
236
+ #panel-settings .feature-diagnostics { padding-inline: 20px; }
237
+ #panel-settings .feature-diagnostic-options { grid-template-columns: minmax(0, 1fr); }
238
+ .feature-toolbar { align-items: stretch; }
239
+ #panel-sessions .feature-tabs {
240
+ display: grid;
241
+ grid-template-columns: repeat(3, minmax(0, 1fr));
242
+ width: 100%;
243
+ box-sizing: border-box;
244
+ }
245
+ #panel-sessions .feature-tabs button { white-space: normal; overflow-wrap: anywhere; }
246
+ .feature-toolbar > .feature-primary { width: 100%; }
247
+ .feature-filter-fields, .feature-window-fields { grid-template-columns: minmax(0, 1fr); }
248
+ .feature-search-form { flex-wrap: nowrap; }
249
+ .feature-search-form input { flex-basis: 0; }
250
+ .feature-search-form > button { flex-shrink: 0; }
251
+ .feature-record { padding-block: var(--spacing-sm); }
252
+ .feature-record-heading { flex-wrap: wrap; }
253
+ .feature-project-picker { max-height: 240px; }
254
+ }
255
+ @media (prefers-reduced-motion: reduce) {
256
+ #panel-settings .feature-diagnostics-chevron { transition: none; }
257
+ .session-features button, .context-window-reference button, .session-feature-controls button { transition: none; }
258
+ }
@@ -245,6 +245,36 @@
245
245
  font-weight: var(--font-weight-primary);
246
246
  }
247
247
 
248
+ /* Scope four-theme sizing to appearance controls, not other setting toggles. */
249
+ #panel-settings .settings-theme-options .toggle-btn {
250
+ min-width: 44px;
251
+ min-height: 44px;
252
+ padding: 8px 12px;
253
+ transition: color var(--transition-fast) var(--ease-smooth),
254
+ background-color var(--transition-fast) var(--ease-smooth);
255
+ }
256
+
257
+ #panel-settings .settings-theme-options .toggle-btn.active {
258
+ box-shadow: none;
259
+ }
260
+
261
+ #panel-settings .settings-theme-options .toggle-btn:active:not(:disabled) {
262
+ transform: none;
263
+ }
264
+
265
+ #panel-settings .settings-theme-options .toggle-btn:focus-visible {
266
+ outline: 2px solid var(--color-brand);
267
+ outline-offset: 2px;
268
+ }
269
+
270
+ @media (max-width: 640px) {
271
+ #panel-settings .settings-theme-options {
272
+ display: grid;
273
+ grid-template-columns: repeat(2, minmax(0, 1fr));
274
+ width: 100%;
275
+ }
276
+ }
277
+
248
278
  /* ---- 保留天数输入 ---- */
249
279
  .settings-retention {
250
280
  display: inline-flex;
@@ -1,23 +1,24 @@
1
1
  .sys-prompt-controls {
2
2
  display: flex;
3
- gap: 16px;
3
+ align-items: flex-start;
4
+ gap: 8px;
4
5
  flex-wrap: wrap;
5
- margin-bottom: 12px;
6
+ margin: 8px 0 4px;
6
7
  }
7
8
 
8
9
  .sys-prompt-control-group {
9
10
  display: flex;
11
+ flex: 1 1 180px;
12
+ min-width: 0;
10
13
  flex-direction: column;
11
14
  gap: 4px;
12
15
  }
13
16
 
14
17
  .sys-prompt-control-group .form-label {
15
- font-size: 0.8em;
16
- opacity: 0.8;
18
+ margin: 0;
19
+ font-size: 0.85em;
17
20
  }
18
21
 
19
22
  .sys-prompt-select {
20
- min-width: 180px;
23
+ min-width: 0;
21
24
  }
22
-
23
-
@@ -0,0 +1,52 @@
1
+ /*
2
+ * Codex Mate Web UI - violet light theme tokens (hand maintained).
3
+ * Palette adapted from Catppuccin Latte (MIT):
4
+ * https://github.com/catppuccin/palette/blob/main/palette.json
5
+ * https://github.com/catppuccin/catppuccin/blob/main/docs/style-guide.md
6
+ * Mauve is the accent; neutral hues and semantic colors are adapted for WCAG AA.
7
+ * Regenerate: node scripts/generate-ocean-theme-css.mjs violet
8
+ */
9
+ :root[data-theme="violet"] {
10
+ color-scheme: light;
11
+ --color-brand: oklch(54.5% 0.250346 297.016);
12
+ --color-brand-dark: oklch(49% 0.225 297.016);
13
+ --color-brand-light: oklch(54.5% 0.25 297.016 / 13%);
14
+ --color-brand-subtle: oklch(54.5% 0.25 297.016 / 20%);
15
+ --color-bg: oklch(95.5% 0.008 297.016);
16
+ --color-surface: oklch(98.2% 0.006 297.016);
17
+ --color-surface-alt: oklch(93.2% 0.01 297.016);
18
+ --color-surface-elevated: oklch(99% 0.005 297.016);
19
+ --color-surface-tint: oklch(98.2% 0.006 297.016 / 86%);
20
+ --color-surface-chip: oklch(99% 0.005 297.016 / 76%);
21
+ --color-text-primary: oklch(43% 0.035 297.016);
22
+ --color-text-secondary: oklch(49% 0.035 297.016);
23
+ --color-text-tertiary: oklch(52% 0.032 297.016);
24
+ --color-text-muted: oklch(52% 0.032 297.016);
25
+ --color-border: oklch(60% 0.025 297.016);
26
+ --color-border-soft: oklch(84% 0.012 297.016);
27
+ --color-border-strong: oklch(52% 0.032 297.016);
28
+ --color-success: oklch(47% 0.12 145);
29
+ --color-success-light: oklch(96% 0.025 145);
30
+ --color-error: oklch(50% 0.18 15);
31
+ --color-error-light: oklch(96% 0.018 15);
32
+ --color-warning: oklch(48% 0.10 70);
33
+ --color-warning-light: oklch(96% 0.025 70);
34
+ --color-delta-up: var(--color-success);
35
+ --color-delta-down: var(--color-error);
36
+ --color-heatmap-1: oklch(54.5% 0.25 297.016 / 20%);
37
+ --color-heatmap-2: oklch(54.5% 0.25 297.016 / 40%);
38
+ --color-heatmap-3: oklch(54.5% 0.25 297.016 / 60%);
39
+ --color-heatmap-4: oklch(54.5% 0.25 297.016 / 85%);
40
+ --color-modal-scrim: color-mix(in oklch, var(--color-text-primary) 48%, transparent);
41
+ --bg-warm-gradient: var(--color-bg);
42
+ --color-bg-topbar-strong: oklch(95.5% 0.008 297.016 / 96%);
43
+ --color-bg-topbar-soft: oklch(95.5% 0.008 297.016 / 86%);
44
+ --color-bg-topbar-clear: oklch(95.5% 0.008 297.016 / 0%);
45
+ --shadow-subtle: none;
46
+ --shadow-card: none;
47
+ --shadow-card-hover: none;
48
+ --shadow-float: none;
49
+ --shadow-raised: none;
50
+ --shadow-modal: none;
51
+ --shadow-input-focus: 0 0 0 3px var(--color-brand-light);
52
+ }