codexmate 0.1.33 → 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 (61) hide show
  1. package/README.md +13 -2
  2. package/README.vi.md +13 -2
  3. package/README.zh.md +13 -2
  4. package/cli/local-bridge.js +10 -6
  5. package/cli/openai-chat-routing.js +38 -0
  6. package/cli/routing-bridge.js +143 -0
  7. package/cli/system-prompt-files.js +75 -53
  8. package/cli.js +162 -4
  9. package/lib/file-sharing-lan.js +111 -0
  10. package/lib/file-sharing.js +196 -0
  11. package/lib/model-test-client.js +61 -0
  12. package/lib/model-test.js +126 -0
  13. package/lib/routing-groups.js +161 -0
  14. package/package.json +1 -1
  15. package/plugins/file-sharing/manifest.mjs +10 -0
  16. package/plugins/file-sharing/methods.mjs +101 -0
  17. package/plugins/file-sharing/overview.mjs +3 -0
  18. package/plugins/file-sharing/ownership.mjs +5 -0
  19. package/plugins/registry.mjs +3 -0
  20. package/web-ui/app.js +15 -2
  21. package/web-ui/index.html +3 -2
  22. package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
  23. package/web-ui/modules/app.methods.agents.mjs +12 -0
  24. package/web-ui/modules/app.methods.install.mjs +23 -3
  25. package/web-ui/modules/app.methods.navigation.mjs +2 -0
  26. package/web-ui/modules/app.methods.prompts-editor.mjs +7 -4
  27. package/web-ui/modules/app.methods.session-actions.mjs +2 -2
  28. package/web-ui/modules/app.methods.system-prompt.mjs +88 -17
  29. package/web-ui/modules/app.methods.theme.mjs +4 -3
  30. package/web-ui/modules/app.methods.web-ui-preferences.mjs +7 -0
  31. package/web-ui/modules/i18n/locales/en.mjs +123 -4
  32. package/web-ui/modules/i18n/locales/ja.mjs +123 -4
  33. package/web-ui/modules/i18n/locales/vi.mjs +123 -4
  34. package/web-ui/modules/i18n/locales/zh-tw.mjs +123 -4
  35. package/web-ui/modules/i18n/locales/zh.mjs +123 -4
  36. package/web-ui/modules/model-test.mjs +82 -0
  37. package/web-ui/modules/plugins.methods.mjs +3 -1
  38. package/web-ui/modules/prompt-ecosystem.methods.mjs +4 -3
  39. package/web-ui/modules/routing.mjs +206 -0
  40. package/web-ui/partials/index/layout-header.html +33 -12
  41. package/web-ui/partials/index/modals-basic.html +15 -0
  42. package/web-ui/partials/index/panel-plugins.html +3 -9
  43. package/web-ui/partials/index/panel-prompts.html +13 -7
  44. package/web-ui/partials/index/panel-routing.html +3 -0
  45. package/web-ui/partials/index/panel-settings.html +11 -1
  46. package/web-ui/partials/index/plugin-file-sharing.html +47 -0
  47. package/web-ui/partials/index/routing-model-test.html +53 -0
  48. package/web-ui/partials/index/session-diagnostics.html +7 -4
  49. package/web-ui/res/web-ui-render.precompiled.js +606 -105
  50. package/web-ui/styles/base-theme.css +1 -1
  51. package/web-ui/styles/modals-core.css +6 -5
  52. package/web-ui/styles/navigation-panels.css +4 -0
  53. package/web-ui/styles/plugins-panel.css +40 -1
  54. package/web-ui/styles/responsive.css +10 -5
  55. package/web-ui/styles/routing.css +78 -0
  56. package/web-ui/styles/session-features.css +117 -7
  57. package/web-ui/styles/settings-panel.css +30 -0
  58. package/web-ui/styles/system-prompt.css +8 -7
  59. package/web-ui/styles/theme-violet-tokens.css +52 -0
  60. package/web-ui/styles/theme-violet.css +1736 -0
  61. package/web-ui/styles.css +2 -0
@@ -167,7 +167,7 @@ body.force-compact .provider-fast-switch-select {
167
167
 
168
168
  body.force-compact .main-panel-topbar {
169
169
  position: static;
170
- margin: 0 0 10px;
170
+ margin: 0 0 var(--panel-top-gap);
171
171
  padding: 0;
172
172
  background: transparent;
173
173
  backdrop-filter: none;
@@ -168,6 +168,12 @@
168
168
  letter-spacing: -0.01em;
169
169
  }
170
170
 
171
+ .app-update-modal .btn,
172
+ .app-update-modal .docs-copy-btn {
173
+ min-width: 44px;
174
+ min-height: 44px;
175
+ }
176
+
171
177
  .confirm-dialog {
172
178
  max-width: 460px;
173
179
  }
@@ -823,11 +829,6 @@
823
829
  min-width: 0;
824
830
  }
825
831
 
826
- .project-path-detected {
827
- margin-top: 4px;
828
- font-size: 0.82em;
829
- }
830
-
831
832
  .editor-frame {
832
833
  position: relative;
833
834
  border-radius: var(--radius-md);
@@ -159,6 +159,7 @@
159
159
  }
160
160
 
161
161
  .main-panel {
162
+ --panel-top-gap: 12px;
162
163
  min-width: 0;
163
164
  background: transparent;
164
165
  border: none;
@@ -184,6 +185,7 @@
184
185
  top: 0;
185
186
  z-index: 12;
186
187
  margin: 0 -16px 12px;
188
+ margin-block-end: var(--panel-top-gap);
187
189
  padding: 0 16px 8px;
188
190
  background: linear-gradient(180deg, var(--color-bg-topbar-strong) 0%, var(--color-bg-topbar-soft) 78%, var(--color-bg-topbar-clear) 100%);
189
191
  backdrop-filter: blur(18px) saturate(130%);
@@ -386,6 +388,8 @@
386
388
  }
387
389
 
388
390
  .content-wrapper {
391
+ /* Contain leading margins without changing the session-specific flex layout. */
392
+ display: flow-root;
389
393
  background: transparent;
390
394
  border: none;
391
395
  border-radius: 0;
@@ -568,7 +568,6 @@
568
568
  #panel-plugins .plugins-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
569
569
  #panel-plugins .plugins-sidebar { padding: 0; border: 0; background: transparent; box-shadow: none; }
570
570
  #panel-plugins .plugins-sidebar-header { display: none; }
571
- #panel-plugins .plugins-sidebar-header .plugins-panel-note { display: none; }
572
571
  #panel-plugins .plugins-list { display: flex; flex-wrap: wrap; gap: 2px; width: fit-content; border-bottom: 1px solid var(--color-border-soft); }
573
572
  #panel-plugins .plugins-item { width: auto; min-height: 44px; padding: 7px 10px 8px; gap: 12px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
574
573
  #panel-plugins .plugins-item-meta, #panel-plugins .plugins-item > .pill { display: none; }
@@ -624,3 +623,43 @@
624
623
  @media (prefers-reduced-motion: reduce) {
625
624
  #panel-plugins button { transition: none; }
626
625
  }
626
+
627
+ #plugin-file-sharing .plugins-panel-head { flex-wrap: wrap; }
628
+ .file-sharing-actions { display: flex; flex-wrap: wrap; gap: 8px; }
629
+ .file-sharing-actions .btn-mini, .file-sharing-row .btn-mini { min-height: 44px; min-width: 44px; }
630
+ .file-sharing-items { list-style: none; margin: 0; padding: 0; overflow-wrap: anywhere; }
631
+ .file-sharing-pending { display: grid; gap: 8px; margin-block: 16px; }
632
+ .file-sharing-pending .file-sharing-items { max-height: 200px; overflow: auto; }
633
+ .file-sharing-batches { display: grid; gap: 16px; margin-block: 16px; }
634
+ .file-sharing-batches > li {
635
+ min-width: 0;
636
+ padding: 12px;
637
+ border-radius: var(--radius-md);
638
+ background: var(--color-surface);
639
+ }
640
+ .file-sharing-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
641
+ .file-sharing-row > :first-child { flex: 1 1 160px; min-width: 0; }
642
+ .file-sharing-row .file-sharing-icon {
643
+ display: inline-grid;
644
+ place-items: center;
645
+ width: 44px;
646
+ height: 44px;
647
+ padding: 0;
648
+ border-color: transparent;
649
+ background: transparent;
650
+ box-shadow: none;
651
+ color: var(--color-text-secondary);
652
+ transition: background-color 150ms ease, color 150ms ease;
653
+ }
654
+ .file-sharing-icon svg { width: 18px; height: 18px; }
655
+ .file-sharing-row .file-sharing-icon:hover,
656
+ .file-sharing-row .file-sharing-icon:active {
657
+ background: var(--color-surface-alt);
658
+ color: var(--color-text-primary);
659
+ transform: none;
660
+ }
661
+ .file-sharing-row .file-sharing-remove:hover,
662
+ .file-sharing-row .file-sharing-remove:active { color: var(--color-error); }
663
+ .file-sharing-row .file-sharing-icon:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 2px; }
664
+ .file-sharing-row .file-sharing-icon:disabled { opacity: .5; cursor: not-allowed; }
665
+ .file-sharing-size { color: var(--color-text-secondary); }
@@ -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
+ }
@@ -9,8 +9,15 @@
9
9
  }
10
10
  /* Match neighboring controls, including their one-pixel container border. */
11
11
  #panel-sessions .session-features { box-sizing: border-box; margin-inline: 1px; padding-inline: 10px; }
12
- #panel-sessions .feature-tabs button { padding-inline: 10px; }
13
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
+ }
14
21
  .feature-toolbar, .feature-section-heading, .feature-record-heading {
15
22
  display: flex;
16
23
  align-items: center;
@@ -19,20 +26,52 @@
19
26
  min-width: 0;
20
27
  }
21
28
  .feature-toolbar { flex-wrap: wrap; padding-block: 4px; }
22
- .feature-tabs { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; }
23
- .feature-tabs button {
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;
24
45
  flex: 0 0 auto;
46
+ min-width: 44px;
25
47
  min-height: 44px;
26
- padding: 8px 16px;
48
+ padding-block: 8px;
27
49
  border: 0;
28
- border-radius: var(--radius-sm);
50
+ border-radius: 4px;
29
51
  background: transparent;
30
52
  color: var(--color-text-secondary);
31
53
  font: inherit;
32
- font-size: var(--font-size-secondary);
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;
33
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;
34
74
  }
35
- .feature-tabs button[aria-expanded="true"] { background: var(--feature-surface); color: var(--color-text-primary); font-weight: 600; }
36
75
  .feature-actions, .feature-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); }
37
76
  .feature-actions input, .feature-actions select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
38
77
  .session-features input:not([type="checkbox"]), .session-features select, .session-features textarea,
@@ -120,6 +159,68 @@
120
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); }
121
160
  .feature-diagnostic-controls { margin-bottom: 8px; }
122
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; }
123
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); }
124
225
  .context-window-reference .feature-section-heading { margin-bottom: 4px; }
125
226
  .feature-window-warning { margin-top: 12px; padding-block: 8px; }
@@ -133,7 +234,15 @@
133
234
  .feature-focus { margin: 16px 0; padding: 16px; background: var(--color-surface-alt); }
134
235
  @media (max-width: 640px) {
135
236
  #panel-settings .feature-diagnostics { padding-inline: 20px; }
237
+ #panel-settings .feature-diagnostic-options { grid-template-columns: minmax(0, 1fr); }
136
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; }
137
246
  .feature-toolbar > .feature-primary { width: 100%; }
138
247
  .feature-filter-fields, .feature-window-fields { grid-template-columns: minmax(0, 1fr); }
139
248
  .feature-search-form { flex-wrap: nowrap; }
@@ -144,5 +253,6 @@
144
253
  .feature-project-picker { max-height: 240px; }
145
254
  }
146
255
  @media (prefers-reduced-motion: reduce) {
256
+ #panel-settings .feature-diagnostics-chevron { transition: none; }
147
257
  .session-features button, .context-window-reference button, .session-feature-controls button { transition: none; }
148
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
+ }