codexmate 0.1.33 → 0.1.35
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.
- package/README.md +27 -2
- package/README.vi.md +27 -2
- package/README.zh.md +27 -2
- package/cli/analytics-export-args.js +7 -0
- package/cli/local-bridge.js +10 -6
- package/cli/openai-chat-routing.js +38 -0
- package/cli/routing-bridge.js +143 -0
- package/cli/session-usage.js +4 -1
- package/cli/system-prompt-files.js +75 -53
- package/cli.js +191 -9
- package/lib/data/model-prices.json +1868 -0
- package/lib/file-sharing-lan.js +111 -0
- package/lib/file-sharing.js +196 -0
- package/lib/model-test-client.js +61 -0
- package/lib/model-test.js +126 -0
- package/lib/routing-groups.js +161 -0
- package/lib/session-context-health.js +5 -1
- package/lib/session-evidence-collections.js +85 -0
- package/lib/session-features.js +15 -0
- package/lib/session-project-git.js +65 -0
- package/lib/session-projects.js +12 -1
- package/lib/session-stories.js +67 -0
- package/lib/session-usage-ledger.js +77 -0
- package/lib/session-usage-pricing.js +42 -0
- package/lib/session-usage-report.js +101 -0
- package/package.json +4 -1
- package/plugins/file-sharing/manifest.mjs +10 -0
- package/plugins/file-sharing/methods.mjs +101 -0
- package/plugins/file-sharing/overview.mjs +3 -0
- package/plugins/file-sharing/ownership.mjs +5 -0
- package/plugins/prompt-templates/computed.mjs +9 -0
- package/plugins/registry.mjs +3 -0
- package/web-ui/app.js +25 -2
- package/web-ui/index.html +3 -2
- package/web-ui/logic.session-artifacts.mjs +39 -0
- package/web-ui/modules/app.computed.main-tabs.mjs +3 -0
- package/web-ui/modules/app.methods.agents.mjs +14 -1
- package/web-ui/modules/app.methods.install.mjs +23 -3
- package/web-ui/modules/app.methods.navigation.mjs +2 -0
- package/web-ui/modules/app.methods.prompts-editor.mjs +7 -4
- package/web-ui/modules/app.methods.session-actions.mjs +2 -2
- package/web-ui/modules/app.methods.session-browser.mjs +35 -0
- package/web-ui/modules/app.methods.system-prompt.mjs +99 -19
- package/web-ui/modules/app.methods.theme.mjs +4 -3
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +12 -0
- package/web-ui/modules/i18n/locales/en.mjs +239 -5
- package/web-ui/modules/i18n/locales/ja.mjs +239 -5
- package/web-ui/modules/i18n/locales/vi.mjs +239 -5
- package/web-ui/modules/i18n/locales/zh-tw.mjs +239 -5
- package/web-ui/modules/i18n/locales/zh.mjs +239 -5
- package/web-ui/modules/model-test.mjs +82 -0
- package/web-ui/modules/plugins.methods.mjs +3 -1
- package/web-ui/modules/prompt-ecosystem.methods.mjs +4 -3
- package/web-ui/modules/routing.mjs +206 -0
- package/web-ui/modules/session-collections.mjs +65 -0
- package/web-ui/modules/session-evidence.mjs +81 -0
- package/web-ui/modules/session-features.mjs +15 -1
- package/web-ui/modules/session-git.mjs +39 -0
- package/web-ui/modules/session-stories.mjs +64 -0
- package/web-ui/modules/usage-pricing.mjs +30 -0
- package/web-ui/partials/index/layout-footer.html +1 -1
- package/web-ui/partials/index/layout-header.html +33 -12
- package/web-ui/partials/index/modals-basic.html +15 -0
- package/web-ui/partials/index/panel-plugins.html +3 -9
- package/web-ui/partials/index/panel-prompts.html +13 -7
- package/web-ui/partials/index/panel-routing.html +3 -0
- package/web-ui/partials/index/panel-sessions.html +20 -20
- package/web-ui/partials/index/panel-settings.html +11 -1
- package/web-ui/partials/index/panel-usage.html +2 -0
- package/web-ui/partials/index/plugin-file-sharing.html +47 -0
- package/web-ui/partials/index/routing-model-test.html +53 -0
- package/web-ui/partials/index/session-diagnostics.html +7 -4
- package/web-ui/partials/index/session-features.html +82 -2
- package/web-ui/partials/index/thread-handoff.html +73 -62
- package/web-ui/partials/index/usage-records.html +41 -0
- package/web-ui/res/web-ui-render.precompiled.js +1378 -230
- package/web-ui/styles/base-theme.css +1 -1
- package/web-ui/styles/modals-core.css +6 -5
- package/web-ui/styles/navigation-panels.css +4 -0
- package/web-ui/styles/plugins-panel.css +40 -1
- package/web-ui/styles/responsive.css +10 -5
- package/web-ui/styles/routing.css +78 -0
- package/web-ui/styles/session-features.css +180 -7
- package/web-ui/styles/sessions-list.css +74 -0
- package/web-ui/styles/sessions-preview.css +106 -68
- package/web-ui/styles/sessions-usage.css +8 -0
- package/web-ui/styles/settings-panel.css +30 -0
- package/web-ui/styles/system-prompt.css +8 -7
- package/web-ui/styles/theme-violet-tokens.css +52 -0
- package/web-ui/styles/theme-violet.css +1742 -0
- package/web-ui/styles.css +2 -0
|
@@ -353,14 +353,19 @@
|
|
|
353
353
|
|
|
354
354
|
.session-msg-header {
|
|
355
355
|
display: flex;
|
|
356
|
-
align-items:
|
|
356
|
+
align-items: center;
|
|
357
357
|
justify-content: space-between;
|
|
358
358
|
gap: var(--spacing-xs);
|
|
359
|
-
margin-bottom:
|
|
359
|
+
margin-bottom: 8px;
|
|
360
360
|
font-size: var(--font-size-caption);
|
|
361
361
|
color: var(--color-text-tertiary);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
.session-msg-header .session-feature-controls {
|
|
365
|
+
/* Use the card padding and body gap to preserve 44px targets in a 28px row. */
|
|
366
|
+
margin-block: -8px;
|
|
367
|
+
}
|
|
368
|
+
|
|
364
369
|
.session-msg-meta {
|
|
365
370
|
min-width: 0;
|
|
366
371
|
flex: 1;
|
|
@@ -382,44 +387,55 @@
|
|
|
382
387
|
}
|
|
383
388
|
|
|
384
389
|
.session-msg-copy {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
390
|
+
/* Reuse the message header's hit-target space without increasing its height. */
|
|
391
|
+
margin-block: -8px;
|
|
392
|
+
margin-inline-end: -8px;
|
|
393
|
+
flex: 0 0 auto;
|
|
394
|
+
width: 44px;
|
|
395
|
+
height: 44px;
|
|
396
|
+
padding: 0;
|
|
397
|
+
border: 0;
|
|
393
398
|
border-radius: 8px;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
399
|
+
background: transparent;
|
|
400
|
+
color: var(--color-text-secondary);
|
|
401
|
+
display: grid;
|
|
402
|
+
place-items: center;
|
|
397
403
|
cursor: pointer;
|
|
398
|
-
|
|
399
|
-
transition: all var(--transition-fast) var(--ease-spring);
|
|
404
|
+
transition: color var(--transition-fast) var(--ease-spring), background-color var(--transition-fast) var(--ease-spring);
|
|
400
405
|
}
|
|
401
406
|
|
|
402
407
|
.session-msg-copy:hover {
|
|
403
|
-
|
|
404
|
-
background: var(--color-surface);
|
|
408
|
+
background: var(--color-surface-alt);
|
|
405
409
|
color: var(--color-brand);
|
|
406
|
-
transform: translateY(-1px);
|
|
407
410
|
}
|
|
408
411
|
|
|
409
412
|
.session-msg-copy:active {
|
|
410
|
-
|
|
413
|
+
background: var(--color-brand-light);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.session-msg-copy:focus-visible {
|
|
417
|
+
outline: 2px solid var(--color-brand);
|
|
418
|
+
outline-offset: -2px;
|
|
411
419
|
}
|
|
412
420
|
|
|
413
421
|
.session-msg-copy svg {
|
|
414
|
-
width:
|
|
415
|
-
height:
|
|
422
|
+
width: 8px;
|
|
423
|
+
height: 8px;
|
|
416
424
|
}
|
|
417
425
|
|
|
418
|
-
|
|
419
|
-
|
|
426
|
+
@media (max-width: 720px) {
|
|
427
|
+
.session-msg.user > .session-msg-header,
|
|
428
|
+
.session-msg.user .session-msg-meta {
|
|
429
|
+
gap: 4px;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.session-msg-copy {
|
|
433
|
+
margin-inline-end: -16px;
|
|
434
|
+
}
|
|
420
435
|
}
|
|
421
436
|
|
|
422
437
|
.session-msg-content {
|
|
438
|
+
border-top: 1px solid var(--color-border-strong);
|
|
423
439
|
font-size: var(--font-size-secondary);
|
|
424
440
|
line-height: 1.6;
|
|
425
441
|
color: var(--color-text-primary);
|
|
@@ -793,48 +809,45 @@
|
|
|
793
809
|
display: block;
|
|
794
810
|
padding: 0;
|
|
795
811
|
border: 0;
|
|
796
|
-
border-radius:
|
|
812
|
+
border-radius: var(--radius-sm);
|
|
797
813
|
background: var(--color-surface-alt);
|
|
798
814
|
box-shadow: none;
|
|
799
815
|
overflow: hidden;
|
|
816
|
+
container: handoff / inline-size;
|
|
800
817
|
}
|
|
801
818
|
.thread-handoff-summary {
|
|
802
819
|
display: flex;
|
|
803
820
|
align-items: center;
|
|
804
|
-
gap:
|
|
821
|
+
gap: var(--spacing-xs);
|
|
805
822
|
min-height: 56px;
|
|
806
|
-
padding:
|
|
823
|
+
padding: var(--spacing-sm);
|
|
807
824
|
cursor: pointer;
|
|
808
825
|
list-style: none;
|
|
809
|
-
font-size:
|
|
826
|
+
font-size: var(--font-size-large);
|
|
810
827
|
font-weight: 600;
|
|
811
828
|
color: var(--color-text-primary);
|
|
812
|
-
transition: background 160ms ease;
|
|
829
|
+
transition: background-color 160ms var(--ease-out-expo);
|
|
813
830
|
}
|
|
814
831
|
.thread-handoff-summary::-webkit-details-marker { display: none; }
|
|
815
832
|
.thread-handoff-summary::before {
|
|
816
833
|
content: '';
|
|
817
834
|
width: 6px;
|
|
818
835
|
height: 6px;
|
|
836
|
+
flex-shrink: 0;
|
|
819
837
|
border-right: 1.5px solid currentColor;
|
|
820
838
|
border-bottom: 1.5px solid currentColor;
|
|
821
839
|
transform: rotate(-45deg);
|
|
822
|
-
transition: transform 160ms ease;
|
|
840
|
+
transition: transform 160ms var(--ease-out-expo);
|
|
823
841
|
}
|
|
824
842
|
.thread-handoff[open] > .thread-handoff-summary::before { transform: rotate(45deg); }
|
|
825
|
-
.thread-handoff-summary-hint {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
}
|
|
831
|
-
.thread-handoff-
|
|
832
|
-
.thread-handoff-
|
|
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); }
|
|
843
|
+
.thread-handoff-summary-hint { margin-left: auto; font-size: max(14px, var(--font-size-secondary)); font-weight: 400; color: var(--color-text-secondary); }
|
|
844
|
+
.thread-handoff-body { display: grid; gap: var(--spacing-sm); padding: 0 var(--spacing-sm) var(--spacing-sm); min-width: 0; }
|
|
845
|
+
.thread-handoff-body .session-workspace-header { align-items: center; gap: var(--spacing-xs); }
|
|
846
|
+
.thread-handoff-body .session-workspace-subtitle { margin: 0; max-width: 72ch; font-size: max(14px, var(--font-size-secondary)); color: var(--color-text-secondary); line-height: 1.6; }
|
|
847
|
+
.thread-handoff-form { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr); gap: var(--spacing-sm); min-width: 0; }
|
|
848
|
+
.thread-handoff-field { display: flex; flex-direction: column; align-self: start; gap: var(--spacing-xs); min-width: 0; }
|
|
849
|
+
.thread-handoff-field .session-workspace-card-title, .thread-handoff-copy .session-workspace-card-title { margin: 0; font-size: max(14px, var(--font-size-secondary)); font-weight: 600; }
|
|
850
|
+
.thread-handoff small { margin-left: var(--spacing-xs); font-size: inherit; font-weight: 400; color: var(--color-text-secondary); }
|
|
838
851
|
#panel-sessions .thread-handoff .session-query-input {
|
|
839
852
|
width: 100%;
|
|
840
853
|
max-width: none;
|
|
@@ -842,41 +855,66 @@
|
|
|
842
855
|
min-height: 44px;
|
|
843
856
|
box-sizing: border-box;
|
|
844
857
|
padding: 12px;
|
|
845
|
-
border
|
|
846
|
-
|
|
858
|
+
border: 1px solid var(--color-border-strong);
|
|
859
|
+
border-radius: var(--radius-sm);
|
|
860
|
+
color: var(--color-text-primary);
|
|
861
|
+
font-size: max(16px, var(--font-size-body));
|
|
847
862
|
background: var(--color-surface);
|
|
848
863
|
}
|
|
849
|
-
#panel-sessions .thread-handoff textarea.session-query-input { min-height:
|
|
850
|
-
.thread-handoff-optional-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
864
|
+
#panel-sessions .thread-handoff textarea.session-query-input { min-height: 104px; resize: vertical; line-height: 1.6; }
|
|
865
|
+
.thread-handoff-optional, .thread-handoff-actions { grid-column: 1 / -1; }
|
|
866
|
+
.thread-handoff-optional-summary, .thread-handoff-audit > summary {
|
|
867
|
+
display: list-item;
|
|
868
|
+
width: fit-content;
|
|
869
|
+
max-width: 100%;
|
|
854
870
|
min-height: 44px;
|
|
871
|
+
align-content: center;
|
|
855
872
|
cursor: pointer;
|
|
856
|
-
font-size:
|
|
873
|
+
font-size: max(14px, var(--font-size-secondary));
|
|
857
874
|
color: var(--color-text-secondary);
|
|
858
875
|
}
|
|
859
|
-
.thread-handoff-optional[open] .session-workspace-grid {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}
|
|
864
|
-
.thread-handoff-
|
|
865
|
-
.thread-handoff
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
#panel-sessions .thread-handoff-submit:disabled { opacity: .45; cursor: not-allowed; }
|
|
876
|
+
.thread-handoff-optional[open] .session-workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--spacing-xs); gap: var(--spacing-sm); }
|
|
877
|
+
.thread-handoff-actions { display: flex; justify-content: flex-end; gap: var(--spacing-sm); }
|
|
878
|
+
.thread-handoff .btn-mini { min-height: 44px; min-width: 44px; padding: 8px 16px; font-size: max(14px, var(--font-size-secondary)); transition: background-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo), opacity 160ms var(--ease-out-expo); }
|
|
879
|
+
.thread-handoff .btn-mini:not(.thread-handoff-submit) { border-color: transparent; background: transparent; color: var(--color-text-secondary); }
|
|
880
|
+
.thread-handoff .btn-mini:not(.thread-handoff-submit):hover:not(:disabled) { background: var(--color-surface); color: var(--color-text-primary); }
|
|
881
|
+
#panel-sessions .thread-handoff-submit { background: var(--color-text-primary); color: var(--color-surface); border-color: transparent; }
|
|
882
|
+
#panel-sessions .thread-handoff-submit:hover:not(:disabled) { background: var(--color-text-secondary); }
|
|
883
|
+
.thread-handoff .btn-mini:active:not(:disabled) { opacity: .76; }
|
|
884
|
+
.thread-handoff .btn-mini:disabled { opacity: .45; cursor: not-allowed; }
|
|
869
885
|
.thread-handoff-summary:hover { background: var(--color-brand-light); }
|
|
870
886
|
.thread-handoff-summary:active { background: var(--color-brand-subtle); }
|
|
871
|
-
.thread-handoff summary:focus-visible
|
|
872
|
-
|
|
887
|
+
.thread-handoff :is(summary, button, input, textarea):focus-visible { outline: 2px solid var(--color-brand); outline-offset: -2px; }
|
|
888
|
+
.thread-handoff-copy { display: grid; gap: var(--spacing-xs); min-width: 0; }
|
|
889
|
+
#panel-sessions .thread-handoff-copy textarea.session-query-input { max-height: 240px; font-family: var(--font-family-mono); font-size: max(14px, var(--font-size-secondary)); }
|
|
890
|
+
.thread-handoff-body .state-message { margin: 0; overflow-wrap: anywhere; font-size: max(14px, var(--font-size-secondary)); }
|
|
891
|
+
.thread-handoff-history { min-width: 0; }
|
|
892
|
+
.thread-handoff-history h3 { margin: 0 0 var(--spacing-xs); font-size: var(--font-size-body); font-weight: 600; }
|
|
893
|
+
.thread-handoff-history .session-workspace-list { padding: 0; gap: 0; list-style: none; font-size: max(14px, var(--font-size-secondary)); line-height: 1.6; }
|
|
894
|
+
.thread-handoff-history .session-workspace-card { padding: var(--spacing-sm) 0; border: 0; border-radius: 0; background: transparent; font-size: max(14px, var(--font-size-secondary)); }
|
|
895
|
+
.thread-handoff-record + .thread-handoff-record { border-top: 1px solid var(--color-border-soft); }
|
|
896
|
+
.thread-handoff-record-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--spacing-xs); }
|
|
897
|
+
.thread-handoff-record-title { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
|
|
898
|
+
.thread-handoff-record-title strong { font-size: var(--font-size-body); font-weight: 600; color: var(--color-text-primary); }
|
|
899
|
+
.thread-handoff-record-status { font-size: max(14px, var(--font-size-secondary)); color: var(--color-text-secondary); }
|
|
900
|
+
.thread-handoff-record-route, .thread-handoff-record-reason, .thread-handoff-read-proof { margin: var(--spacing-xs) 0 0; overflow-wrap: anywhere; }
|
|
901
|
+
.thread-handoff-record-reason { max-width: 72ch; }
|
|
902
|
+
.thread-handoff-audit { min-width: 0; }
|
|
903
|
+
.thread-handoff-audit dl { display: grid; gap: var(--spacing-xs); margin: var(--spacing-xs) 0 0; }
|
|
904
|
+
.thread-handoff-audit dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--spacing-xs); }
|
|
905
|
+
.thread-handoff-audit dt { color: var(--color-text-secondary); font-weight: 400; }
|
|
906
|
+
.thread-handoff-audit dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--color-text-primary); }
|
|
907
|
+
.thread-handoff-audit code { font-size: inherit; }
|
|
908
|
+
.thread-handoff-audit pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
909
|
+
.thread-handoff-evidence { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
910
|
+
.thread-handoff-history .session-workspace-empty { margin: 0; padding: var(--spacing-xs) 0; font-size: max(14px, var(--font-size-secondary)); color: var(--color-text-secondary); }
|
|
911
|
+
@container handoff (max-width: 560px) {
|
|
912
|
+
.thread-handoff-form, .thread-handoff-optional[open] .session-workspace-grid { grid-template-columns: minmax(0, 1fr); }
|
|
913
|
+
.thread-handoff-body .session-workspace-header { align-items: flex-start; flex-wrap: wrap; }
|
|
914
|
+
.thread-handoff-actions > button { width: 100%; }
|
|
873
915
|
}
|
|
874
|
-
@media (
|
|
875
|
-
.thread-handoff-summary {
|
|
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; }
|
|
916
|
+
@media (prefers-reduced-motion: reduce) {
|
|
917
|
+
.thread-handoff-summary, .thread-handoff-summary::before, .thread-handoff .btn-mini { transition: none; }
|
|
880
918
|
}
|
|
881
919
|
|
|
882
920
|
/* Keep the session tab close to the viewport edge without changing other tabs. */
|
|
@@ -908,3 +908,11 @@
|
|
|
908
908
|
font-size: 7px;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
+
|
|
912
|
+
/* Keep wide numeric breakdowns inside the usage card on compact screens. */
|
|
913
|
+
.usage-records { margin: 16px 0; min-width: 0; }
|
|
914
|
+
.usage-records > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
|
|
915
|
+
.usage-records-table { overflow-x: auto; max-width: 100%; margin: 16px 0; }
|
|
916
|
+
.usage-records-table table { width: 100%; border-collapse: collapse; }
|
|
917
|
+
.usage-records-table th, .usage-records-table td { padding: 8px; text-align: right; white-space: nowrap; }
|
|
918
|
+
.usage-records-table th:first-child, .usage-records-table td:first-child { text-align: left; }
|
|
@@ -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
|
-
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 8px;
|
|
4
5
|
flex-wrap: wrap;
|
|
5
|
-
margin
|
|
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
|
-
|
|
16
|
-
|
|
18
|
+
margin: 0;
|
|
19
|
+
font-size: 0.85em;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
.sys-prompt-select {
|
|
20
|
-
min-width:
|
|
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
|
+
}
|