codexmate 0.1.29 → 0.1.30

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 (33) hide show
  1. package/cli/skills.js +33 -8
  2. package/cli.js +10 -4
  3. package/package.json +6 -1
  4. package/web-ui/app.js +10 -2
  5. package/web-ui/logic.sessions.mjs +24 -0
  6. package/web-ui/modules/app.computed.dashboard.mjs +1 -1
  7. package/web-ui/modules/app.methods.codex-config.mjs +1 -1
  8. package/web-ui/modules/app.methods.session-browser.mjs +5 -1
  9. package/web-ui/modules/app.methods.system-prompt.mjs +1 -8
  10. package/web-ui/modules/i18n/locales/en.mjs +6 -0
  11. package/web-ui/modules/i18n/locales/ja.mjs +6 -0
  12. package/web-ui/modules/i18n/locales/vi.mjs +6 -0
  13. package/web-ui/modules/i18n/locales/zh-tw.mjs +6 -0
  14. package/web-ui/modules/i18n/locales/zh.mjs +6 -0
  15. package/web-ui/modules/i18n.mjs +16 -0
  16. package/web-ui/modules/skills.computed.mjs +11 -0
  17. package/web-ui/modules/skills.methods.mjs +58 -8
  18. package/web-ui/partials/index/layout-footer.html +1 -1
  19. package/web-ui/partials/index/layout-header.html +32 -12
  20. package/web-ui/partials/index/panel-market.html +23 -5
  21. package/web-ui/partials/index/panel-sessions.html +30 -37
  22. package/web-ui/partials/index/panel-trash.html +3 -0
  23. package/web-ui/res/web-ui-render.precompiled.js +406 -341
  24. package/web-ui/styles/feedback.css +26 -0
  25. package/web-ui/styles/layout-shell.css +66 -2
  26. package/web-ui/styles/navigation-panels.css +4 -10
  27. package/web-ui/styles/sessions-list.css +19 -1
  28. package/web-ui/styles/sessions-preview.css +39 -29
  29. package/web-ui/styles/sessions-toolbar-trash.css +2 -2
  30. package/web-ui/styles/settings-panel.css +1 -1
  31. package/web-ui/styles/skills-market.css +47 -0
  32. package/web-ui/styles/titles-cards.css +1 -1
  33. package/web-ui/styles/trash-panel.css +43 -6
@@ -42,6 +42,32 @@
42
42
  letter-spacing: -0.005em;
43
43
  }
44
44
 
45
+ .app-loading-state {
46
+ display: flex;
47
+ align-items: center;
48
+ justify-content: center;
49
+ min-height: calc(100vh - 180px);
50
+ text-align: center;
51
+ }
52
+
53
+ .app-navigation-loading-state {
54
+ position: fixed;
55
+ inset: 0;
56
+ z-index: 200;
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ background: var(--color-bg);
61
+ color: var(--color-text-tertiary);
62
+ }
63
+
64
+ .navigation-pending > .mobile-brand-bar,
65
+ .navigation-pending > .top-tabs,
66
+ .navigation-pending > .lang-fab,
67
+ .navigation-pending > .app-shell {
68
+ visibility: hidden;
69
+ }
70
+
45
71
  .state-message.error {
46
72
  color: var(--color-error);
47
73
  }
@@ -1014,6 +1014,11 @@ body::after {
1014
1014
  cursor: pointer;
1015
1015
  transition: background-color var(--transition-fast) var(--ease-smooth), border-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth), transform var(--transition-fast) var(--ease-smooth);
1016
1016
  }
1017
+ .language-settings-link > svg {
1018
+ width: 13px;
1019
+ height: 13px;
1020
+ flex-shrink: 0;
1021
+ }
1017
1022
 
1018
1023
  .language-settings-link:hover {
1019
1024
  border-color: rgba(200, 121, 99, 0.58);
@@ -1034,12 +1039,71 @@ body::after {
1034
1039
  gap: 8px;
1035
1040
  }
1036
1041
 
1042
+ .side-language-menu {
1043
+ position: relative;
1044
+ flex: 1 1 auto;
1045
+ min-width: 0;
1046
+ display: flex;
1047
+ justify-content: center;
1048
+ }
1049
+
1050
+ .side-language-dropdown {
1051
+ position: absolute;
1052
+ left: 0;
1053
+ bottom: calc(100% + 8px);
1054
+ z-index: 20;
1055
+ width: max(100%, 176px);
1056
+ padding: 6px;
1057
+ border: 1px solid var(--color-border-soft);
1058
+ border-radius: var(--radius-md);
1059
+ background: var(--color-surface-elevated);
1060
+ box-shadow: var(--shadow-float);
1061
+ }
1062
+
1063
+ .side-language-option {
1064
+ width: 100%;
1065
+ min-height: 36px;
1066
+ display: grid;
1067
+ grid-template-columns: minmax(0, 1fr) auto;
1068
+ align-items: center;
1069
+ gap: 2px 8px;
1070
+ padding: 7px 9px;
1071
+ border: 0;
1072
+ border-radius: var(--radius-sm);
1073
+ background: transparent;
1074
+ color: var(--color-text-secondary);
1075
+ text-align: left;
1076
+ cursor: pointer;
1077
+ }
1078
+
1079
+ .side-language-option small {
1080
+ grid-column: 1;
1081
+ color: var(--color-text-tertiary);
1082
+ font-size: 11px;
1083
+ }
1084
+
1085
+ .side-language-option svg {
1086
+ grid-column: 2;
1087
+ grid-row: 1 / span 2;
1088
+ width: 14px;
1089
+ height: 14px;
1090
+ color: var(--color-brand);
1091
+ }
1092
+
1093
+ .side-language-option:hover,
1094
+ .side-language-option.active {
1095
+ background: var(--color-brand-light);
1096
+ color: var(--color-text-primary);
1097
+ }
1098
+
1037
1099
  .side-rail-lang .language-settings-link {
1038
1100
  min-width: 0;
1039
- flex: 1 1 auto;
1101
+ width: fit-content;
1102
+ max-width: 100%;
1103
+ flex: 0 1 auto;
1104
+ margin-inline: auto;
1040
1105
  box-shadow: none;
1041
1106
  }
1042
-
1043
1107
  .side-announcement-button {
1044
1108
  flex: 0 0 36px;
1045
1109
  width: 36px;
@@ -38,20 +38,14 @@
38
38
  margin: 0 0 12px;
39
39
  }
40
40
 
41
- .status-strip-placeholder {
42
- visibility: hidden;
43
- pointer-events: none;
44
- user-select: none;
45
- }
46
41
 
47
42
  /* Give the status strip a bit more breathing room under the sticky header. */
48
43
  .main-panel-topbar .status-strip {
49
- margin-top: 10px;
50
- margin-bottom: 16px;
44
+ margin-top: 8px;
45
+ margin-bottom: 8px;
51
46
  min-height: 36px;
52
47
  align-items: center;
53
48
  }
54
-
55
49
  .lang-toggle {
56
50
  display: grid;
57
51
  grid-template-columns: 1fr 1fr;
@@ -189,8 +183,8 @@
189
183
  position: sticky;
190
184
  top: 0;
191
185
  z-index: 12;
192
- margin: 0 -16px 18px;
193
- padding: 0 16px 14px;
186
+ margin: 0 -16px 12px;
187
+ padding: 0 16px 8px;
194
188
  background: linear-gradient(180deg, var(--color-bg-topbar-strong) 0%, var(--color-bg-topbar-soft) 78%, var(--color-bg-topbar-clear) 100%);
195
189
  backdrop-filter: blur(18px) saturate(130%);
196
190
  }
@@ -511,6 +511,14 @@
511
511
  background: linear-gradient(180deg, var(--color-brand), var(--color-brand-dark));
512
512
  }
513
513
 
514
+ .session-item-heading {
515
+ min-width: 0;
516
+ flex: 1;
517
+ display: flex;
518
+ flex-direction: column;
519
+ gap: 2px;
520
+ }
521
+
514
522
  .session-item-title {
515
523
  font-size: var(--font-size-body);
516
524
  font-weight: var(--font-weight-secondary);
@@ -519,10 +527,20 @@
519
527
  white-space: nowrap;
520
528
  overflow: hidden;
521
529
  text-overflow: ellipsis;
522
- flex: 1;
523
530
  max-width: none;
524
531
  }
525
532
 
533
+ .session-item-location {
534
+ min-width: 0;
535
+ max-width: 100%;
536
+ color: var(--color-text-tertiary);
537
+ font-size: var(--font-size-caption);
538
+ line-height: 1.35;
539
+ white-space: nowrap;
540
+ overflow: hidden;
541
+ text-overflow: ellipsis;
542
+ }
543
+
526
544
  .session-item-actions {
527
545
  display: inline-flex;
528
546
  align-items: center;
@@ -1,4 +1,6 @@
1
- .session-preview.active {
1
+ .session-preview {
2
+ container-name: session-preview;
3
+ container-type: inline-size;
2
4
  box-shadow: var(--shadow-float);
3
5
  }
4
6
 
@@ -762,44 +764,45 @@
762
764
  /* Refined session workspace: preserve the list/detail structure and action contracts. */
763
765
  #panel-sessions.session-browser-refined .session-preview-header {
764
766
  padding: 12px 16px 8px; gap: 8px 16px;
765
- display: grid; grid-template-columns: minmax(0, 1fr) auto;
766
- grid-template-areas: "title export" "actions actions";
767
+ display: grid; grid-template-columns: minmax(0, 1fr);
768
+ grid-template-areas: "title" "actions";
767
769
  background: var(--color-surface); backdrop-filter: none;
768
770
  }
769
771
  #panel-sessions.session-browser-refined .session-preview-title {
770
772
  font-size: 17px; line-height: 1.5; letter-spacing: -.015em;
771
773
  }
772
774
  #panel-sessions.session-browser-refined .session-preview-header > div:first-child { grid-area: title; min-width: 0; }
773
- #panel-sessions .session-preview-actions { grid-area: actions; gap: 10px; justify-content: flex-start; margin-top: 0; }
774
- #panel-sessions .session-export-control {
775
- grid-area: export; justify-self: end; align-self: start;
776
- display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
777
- padding: 2px; border: 1px solid var(--color-border-soft); border-radius: var(--radius-md);
778
- background: var(--color-surface-alt); max-width: 100%;
779
- }
780
- #panel-sessions .session-export-label { font-size: 12px; line-height: 1; color: var(--color-text-secondary); padding-inline: 6px 0; margin-block: 0; }
781
- #panel-sessions #session-export-range {
782
- min-height: 44px; min-width: 0; max-width: 100%; padding: 8px 28px 8px 10px;
783
- border: 0; border-radius: var(--radius-sm); background: var(--color-surface);
784
- color: var(--color-text-primary); font: inherit; font-size: 14px; cursor: pointer;
775
+ #panel-sessions .session-preview-actions {
776
+ grid-area: actions; display: flex; justify-content: space-between; align-items: center;
777
+ flex-wrap: nowrap; gap: 16px; margin-top: 0; min-width: 0; width: 100%;
785
778
  }
786
779
  #panel-sessions .session-preview-actions button {
787
- min-width: 44px; min-height: 44px; height: auto; width: auto; padding: 9px 12px;
788
- border-radius: var(--radius-sm); box-shadow: none;
780
+ min-width: 32px; min-height: 32px; height: 32px; width: auto; padding: 0 10px;
781
+ border-radius: var(--radius-sm); box-shadow: none; white-space: nowrap;
789
782
  transition: background-color 120ms ease-out, transform 100ms ease-out, color 120ms ease-out;
790
783
  touch-action: manipulation;
791
784
  }
792
- #panel-sessions .session-export-control .btn-session-export {
793
- background: var(--color-text-primary); color: var(--color-surface);
794
- border-color: transparent; font-weight: 600;
785
+ #panel-sessions .session-secondary-actions {
786
+ display: flex; align-items: center; flex-wrap: nowrap; gap: 8px;
787
+ min-width: 0; overflow: hidden;
795
788
  }
796
- #panel-sessions .session-secondary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
797
789
  #panel-sessions .session-secondary-actions button { background: transparent; border-color: transparent; color: var(--color-text-secondary); }
798
- #panel-sessions .session-secondary-actions .session-link-group { display: inline-flex; gap: 2px; }
799
- #panel-sessions .session-danger-action { margin-inline-start: auto; padding-inline-start: 12px; border-inline-start: 1px solid var(--color-border-soft); }
800
- #panel-sessions .session-danger-action button { background: transparent; border-color: transparent; }
790
+ #panel-sessions .session-secondary-actions .session-link-group { display: inline-flex; gap: 0; flex-shrink: 0; }
791
+ #panel-sessions .session-primary-actions {
792
+ display: flex; align-items: center; flex-shrink: 0; gap: 16px; white-space: nowrap;
793
+ }
794
+ #panel-sessions .session-primary-actions .btn-session-export {
795
+ background: var(--color-brand); color: #fff;
796
+ border-color: var(--color-brand); font-weight: 600;
797
+ box-shadow: 0 2px 6px rgba(210, 107, 90, 0.18);
798
+ }
799
+ #panel-sessions .session-delete-text-button {
800
+ border-color: transparent; background: transparent; color: #b74545;
801
+ box-shadow: none; font-weight: 600;
802
+ }
801
803
  #panel-sessions .session-preview-actions button:hover:not(:disabled) { transform: none; background: var(--color-surface-alt); }
802
- #panel-sessions .session-export-control .btn-session-export:hover:not(:disabled) { background: var(--color-text-secondary); }
804
+ #panel-sessions .session-primary-actions .btn-session-export:hover:not(:disabled) { background: var(--color-brand-dark); border-color: var(--color-brand-dark); transform: translateY(-1px); }
805
+ #panel-sessions .session-primary-actions .session-delete-text-button:hover:not(:disabled) { background: rgba(189, 70, 68, 0.06); border-color: transparent; color: #9f3b3b; }
803
806
  #panel-sessions .session-preview-actions button:active:not(:disabled) { transform: scale(.97); }
804
807
  #panel-sessions .session-preview-actions :is(button, select):focus-visible,
805
808
  #panel-sessions .session-empty-refined button:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
@@ -821,14 +824,21 @@
821
824
  #panel-sessions .session-empty-refined::before { display: none; }
822
825
  #panel-sessions .session-empty-refined p { margin: 0 0 16px; line-height: 1.65; }
823
826
  #panel-sessions .session-empty-refined button { min-height: 44px; padding-inline: 16px; }
827
+ @container session-preview (max-width: 620px) {
828
+ #panel-sessions .session-action-optional-text { display: none; }
829
+ #panel-sessions .session-action-optional-label {
830
+ width: 32px;
831
+ min-width: 32px;
832
+ padding: 0;
833
+ justify-content: center;
834
+ }
835
+ }
824
836
  @media (max-width: 640px) {
825
- #panel-sessions .session-preview-actions { flex-direction: row; align-items: center; gap: 10px; }
826
- #panel-sessions .session-export-control { justify-self: stretch; }
827
- #panel-sessions #session-export-range { flex: 1 1 120px; }
837
+ #panel-sessions .session-preview-actions { gap: 10px; }
828
838
  #panel-sessions .session-secondary-actions { flex: 1 1 180px; }
829
839
  #panel-sessions .session-preview-actions button { width: auto; }
830
840
  #panel-sessions .session-search-scope { flex-basis: 100%; margin-inline-start: 0; }
831
- #panel-sessions.session-browser-refined .session-preview-header { padding: 12px 12px 8px; gap: 8px; grid-template-columns: 1fr; grid-template-areas: "title" "export" "actions"; }
841
+ #panel-sessions.session-browser-refined .session-preview-header { padding: 12px 12px 8px; gap: 8px; grid-template-columns: 1fr; grid-template-areas: "title" "actions"; }
832
842
  #panel-sessions .session-export-feedback { padding-inline: 12px; }
833
843
  }
834
844
  @media (prefers-reduced-motion: reduce) {
@@ -1,6 +1,6 @@
1
1
  .session-selector-section {
2
- padding: 8px 10px;
3
- gap: 4px;
2
+ padding: 0 10px 8px;
3
+ gap: 0;
4
4
  margin-bottom: 8px;
5
5
  }
6
6
 
@@ -16,7 +16,7 @@
16
16
 
17
17
  /* ---- 分段控制器:苹果风格 ---- */
18
18
  .settings-tab-header {
19
- margin: 0 0 24px;
19
+ margin: 0 0 12px;
20
20
  padding: 0;
21
21
  }
22
22
 
@@ -107,6 +107,53 @@
107
107
  font-weight: var(--font-weight-caption);
108
108
  }
109
109
 
110
+ .skills-flow-header > .skills-flow-actions {
111
+ display: flex;
112
+ flex-wrap: nowrap;
113
+ gap: 8px;
114
+ padding: 0;
115
+ border: 0;
116
+ background: transparent;
117
+ }
118
+
119
+ .skills-flow-header > .skills-flow-actions .skills-action-btn {
120
+ min-height: 32px;
121
+ padding: 7px 10px;
122
+ white-space: nowrap;
123
+ }
124
+
125
+ .skills-market-selection-bar {
126
+ display: flex;
127
+ align-items: center;
128
+ justify-content: space-between;
129
+ gap: 12px;
130
+ padding: 8px var(--spacing-md);
131
+ border-bottom: 1px solid var(--color-border-soft);
132
+ background: rgba(255,255,255,0.22);
133
+ }
134
+
135
+ .skills-market-select-all {
136
+ display: inline-flex;
137
+ align-items: center;
138
+ gap: 6px;
139
+ color: var(--color-text-secondary);
140
+ font-size: var(--font-size-caption);
141
+ }
142
+
143
+ .skills-market-selection-count {
144
+ color: var(--color-text-tertiary);
145
+ font-size: var(--font-size-caption);
146
+ }
147
+
148
+ .skills-market-item-check {
149
+ display: inline-flex;
150
+ align-items: center;
151
+ flex: 0 0 auto;
152
+ }
153
+
154
+ .skills-flow-item.selected {
155
+ background: rgba(210, 107, 90, 0.08);
156
+ }
110
157
  /* Flow list */
111
158
  .skills-flow-list {
112
159
  display: flex;
@@ -38,7 +38,7 @@
38
38
  background: rgba(255, 255, 255, 0.48);
39
39
  border-radius: var(--radius-md);
40
40
  padding: 4px;
41
- margin-bottom: 14px;
41
+ margin-bottom: 12px;
42
42
  position: relative;
43
43
  box-shadow: var(--shadow-subtle);
44
44
  border: 1px solid var(--color-border-soft);
@@ -1,11 +1,37 @@
1
1
  /* 回收站面板 — 极简·本质 */
2
2
 
3
3
  .trash-panel-shell {
4
- max-width: 720px;
5
- margin: 0 auto;
6
- padding: 20px 0 40px;
4
+ width: min(100%, 1480px);
5
+ max-width: none;
6
+ margin: 0;
7
+ padding: 0 0 32px;
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 16px;
11
+ }
12
+
13
+ .trash-config-card {
14
+ display: block;
15
+ padding: 16px 20px;
16
+ }
17
+
18
+ .trash-config-card .settings-toggle-row {
19
+ justify-content: space-between;
20
+ margin: 10px 0 8px;
7
21
  }
8
22
 
23
+ .trash-config-card .settings-retention {
24
+ width: 100%;
25
+ justify-content: space-between;
26
+ margin: 8px 0;
27
+ }
28
+
29
+ .trash-content-section {
30
+ min-width: 0;
31
+ display: flex;
32
+ flex-direction: column;
33
+ gap: 14px;
34
+ }
9
35
  /* ---- 空态 — 宁静留白 ---- */
10
36
  .trash-empty-state {
11
37
  display: flex;
@@ -13,7 +39,11 @@
13
39
  align-items: center;
14
40
  justify-content: center;
15
41
  gap: 12px;
16
- padding: 80px 20px;
42
+ min-height: 240px;
43
+ padding: 40px 24px;
44
+ border: 1px solid var(--color-border-soft);
45
+ border-radius: var(--radius-lg);
46
+ background: var(--color-surface);
17
47
  text-align: center;
18
48
  }
19
49
 
@@ -52,11 +82,18 @@
52
82
  align-items: center;
53
83
  justify-content: space-between;
54
84
  gap: 12px;
55
- padding: 0 0 14px;
85
+ padding: 0 0 12px;
56
86
  border-bottom: 1px solid var(--color-border-soft);
57
- margin-bottom: 14px;
87
+ margin-bottom: 0;
58
88
  }
59
89
 
90
+ .trash-list {
91
+ min-width: 0;
92
+ display: grid;
93
+ grid-template-columns: minmax(0, 1fr);
94
+ align-content: start;
95
+ gap: 8px;
96
+ }
60
97
  .trash-toolbar-left {
61
98
  display: flex;
62
99
  align-items: baseline;