codexmate 0.1.38 → 0.1.39
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 +1 -1
- package/README.vi.md +1 -1
- package/README.zh.md +1 -1
- package/cli.js +4 -1
- package/lib/model-test.js +126 -21
- package/package.json +3 -1
- package/plugins/prompt-templates/overview.mjs +1 -7
- package/web-ui/modules/i18n/locales/en.mjs +1945 -2018
- package/web-ui/modules/i18n/locales/expand.mjs +18 -0
- package/web-ui/modules/i18n/locales/ja.mjs +1946 -2019
- package/web-ui/modules/i18n/locales/keys.mjs +1945 -0
- package/web-ui/modules/i18n/locales/vi.mjs +1945 -1987
- package/web-ui/modules/i18n/locales/zh-tw.mjs +1945 -2016
- package/web-ui/modules/i18n/locales/zh.mjs +1944 -2016
- package/web-ui/modules/model-test.mjs +114 -26
- package/web-ui/partials/index/layout-header.html +2 -2
- package/web-ui/partials/index/panel-plugins.html +12 -27
- package/web-ui/partials/index/plugin-file-sharing.html +1 -1
- package/web-ui/partials/index/routing-model-test.html +29 -9
- package/web-ui/res/web-ui-render.precompiled.js +1 -14783
- package/web-ui/styles/navigation-panels.css +8 -9
- package/web-ui/styles/plugins-panel.css +16 -91
- package/web-ui/styles/responsive.css +7 -7
- package/web-ui/styles/routing.css +8 -0
- package/web-ui/styles/sub-tabs.css +13 -0
|
@@ -39,10 +39,8 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
/* Give the status strip a bit more breathing room under the sticky header. */
|
|
43
42
|
.main-panel-topbar .status-strip {
|
|
44
|
-
margin
|
|
45
|
-
margin-bottom: 8px;
|
|
43
|
+
margin: 0;
|
|
46
44
|
min-height: 36px;
|
|
47
45
|
align-items: center;
|
|
48
46
|
}
|
|
@@ -109,7 +107,6 @@
|
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
.provider-fast-switch {
|
|
112
|
-
margin: 0 0 14px;
|
|
113
110
|
padding: 10px 12px;
|
|
114
111
|
border-radius: var(--radius-md);
|
|
115
112
|
border: 1px solid var(--color-border-soft);
|
|
@@ -159,7 +156,7 @@
|
|
|
159
156
|
}
|
|
160
157
|
|
|
161
158
|
.main-panel {
|
|
162
|
-
--panel-top-gap:
|
|
159
|
+
--panel-top-gap: 2.4px;
|
|
163
160
|
min-width: 0;
|
|
164
161
|
background: transparent;
|
|
165
162
|
border: none;
|
|
@@ -184,9 +181,11 @@
|
|
|
184
181
|
position: sticky;
|
|
185
182
|
top: 0;
|
|
186
183
|
z-index: 12;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: column;
|
|
186
|
+
gap: 8px;
|
|
187
|
+
margin: 0 -16px var(--panel-top-gap);
|
|
188
|
+
padding: 0 16px;
|
|
190
189
|
background: linear-gradient(180deg, var(--color-bg-topbar-strong) 0%, var(--color-bg-topbar-soft) 78%, var(--color-bg-topbar-clear) 100%);
|
|
191
190
|
backdrop-filter: blur(18px) saturate(130%);
|
|
192
191
|
}
|
|
@@ -201,7 +200,7 @@
|
|
|
201
200
|
align-items: center;
|
|
202
201
|
justify-content: space-between;
|
|
203
202
|
gap: 14px;
|
|
204
|
-
margin: 0
|
|
203
|
+
margin: 0;
|
|
205
204
|
padding: 20px 0 16px;
|
|
206
205
|
border-bottom: 1px solid rgba(137, 111, 94, 0.14);
|
|
207
206
|
background: transparent;
|
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
.plugins-layout {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
|
|
4
|
-
gap: var(--spacing-sm);
|
|
5
|
-
align-items: start;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.plugins-layout-single {
|
|
9
|
-
grid-template-columns: minmax(0, 1fr);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
1
|
.plugins-sidebar {
|
|
13
|
-
|
|
14
|
-
border-radius: var(--radius-lg);
|
|
15
|
-
background: linear-gradient(to bottom, rgba(255,255,255,0.92) 0%, rgba(255,248,241,0.72) 100%);
|
|
16
|
-
box-shadow: var(--shadow-subtle);
|
|
17
|
-
padding: var(--spacing-sm);
|
|
2
|
+
display: none;
|
|
18
3
|
min-width: 0;
|
|
19
4
|
}
|
|
20
5
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
6
|
+
@media (max-width: 820px) {
|
|
7
|
+
.plugins-sidebar {
|
|
8
|
+
display: block;
|
|
9
|
+
margin-bottom: var(--spacing-sm);
|
|
10
|
+
}
|
|
25
11
|
}
|
|
26
12
|
|
|
27
13
|
.plugins-panel-note {
|
|
@@ -31,66 +17,6 @@
|
|
|
31
17
|
line-height: 1.5;
|
|
32
18
|
}
|
|
33
19
|
|
|
34
|
-
.plugins-list {
|
|
35
|
-
display: grid;
|
|
36
|
-
gap: 8px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.plugins-item {
|
|
40
|
-
width: 100%;
|
|
41
|
-
text-align: left;
|
|
42
|
-
display: flex;
|
|
43
|
-
justify-content: space-between;
|
|
44
|
-
align-items: center;
|
|
45
|
-
gap: var(--spacing-xs);
|
|
46
|
-
padding: 10px 12px;
|
|
47
|
-
border-radius: var(--radius-sm);
|
|
48
|
-
border: 1px solid transparent;
|
|
49
|
-
background: transparent;
|
|
50
|
-
cursor: pointer;
|
|
51
|
-
position: relative;
|
|
52
|
-
transition: all var(--transition-fast) var(--ease-spring);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.plugins-item:hover {
|
|
56
|
-
background: rgba(255,255,255,0.7);
|
|
57
|
-
transform: translateX(2px);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.plugins-item.active {
|
|
61
|
-
border-color: rgba(208,88,58,0.2);
|
|
62
|
-
background: linear-gradient(to right, rgba(255,243,236,0.96) 0%, rgba(255,255,255,0.86) 100%);
|
|
63
|
-
box-shadow: 0 2px 8px rgba(200,121,99,0.1);
|
|
64
|
-
}
|
|
65
|
-
.plugins-item.active::before {
|
|
66
|
-
content: '';
|
|
67
|
-
position: absolute;
|
|
68
|
-
left: 0;
|
|
69
|
-
top: 8px;
|
|
70
|
-
bottom: 8px;
|
|
71
|
-
width: 3px;
|
|
72
|
-
border-radius: 0 3px 3px 0;
|
|
73
|
-
background: var(--color-brand);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.plugins-item-main {
|
|
77
|
-
min-width: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.plugins-item-title {
|
|
81
|
-
font-size: var(--font-size-body);
|
|
82
|
-
font-weight: var(--font-weight-secondary);
|
|
83
|
-
color: var(--color-text-primary);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.plugins-item-meta {
|
|
87
|
-
margin-top: 3px;
|
|
88
|
-
font-size: var(--font-size-caption);
|
|
89
|
-
color: var(--color-text-tertiary);
|
|
90
|
-
line-height: 1.45;
|
|
91
|
-
overflow-wrap: anywhere;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
20
|
.plugins-main {
|
|
95
21
|
min-width: 0;
|
|
96
22
|
}
|
|
@@ -546,9 +472,6 @@
|
|
|
546
472
|
}
|
|
547
473
|
|
|
548
474
|
@media (max-width: 980px) {
|
|
549
|
-
.plugins-layout {
|
|
550
|
-
grid-template-columns: 1fr;
|
|
551
|
-
}
|
|
552
475
|
.prompt-compose-workspace {
|
|
553
476
|
grid-template-columns: 1fr;
|
|
554
477
|
}
|
|
@@ -564,17 +487,13 @@
|
|
|
564
487
|
}
|
|
565
488
|
|
|
566
489
|
#panel-plugins { container-type: inline-size; }
|
|
567
|
-
#panel-plugins .plugins-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
|
|
568
|
-
#panel-plugins .plugins-sidebar { min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
|
|
569
|
-
#panel-plugins .plugins-sidebar-header { display: none; }
|
|
570
|
-
#panel-plugins .plugins-list { display: flex; }
|
|
571
|
-
#panel-plugins .plugins-item-meta, #panel-plugins .plugins-item > .pill { display: none; }
|
|
572
|
-
#panel-plugins .plugins-item.active::before { display: none; }
|
|
573
490
|
#panel-plugins .plugins-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
|
|
574
491
|
#panel-plugins .plugins-panel-head { align-items: center; gap: 8px 16px; margin-bottom: 12px; }
|
|
492
|
+
/* A screen-reader heading alone must not leave a visual gap before the mode switch. */
|
|
493
|
+
#panel-plugins .plugins-panel-head:has(> .sr-only:only-child) { margin-bottom: 0; }
|
|
575
494
|
#panel-plugins .plugins-panel-title { margin: 0; font-size: var(--font-size-title); line-height: 1.4; letter-spacing: 0; }
|
|
576
495
|
#panel-plugins .plugins-panel-note { line-height: 1.65; overflow-wrap: anywhere; }
|
|
577
|
-
#panel-plugins .prompt-templates-modebar { margin-bottom:
|
|
496
|
+
#panel-plugins .prompt-templates-modebar { display: flex; margin-bottom: var(--spacing-sm); }
|
|
578
497
|
|
|
579
498
|
#panel-plugins .prompt-compose-workspace { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
|
|
580
499
|
#panel-plugins .prompt-compose-main { gap: 24px; align-content: start; }
|
|
@@ -615,7 +534,13 @@
|
|
|
615
534
|
#panel-plugins .prompt-template-item.active .prompt-template-item-title { color: var(--color-text-primary); }
|
|
616
535
|
#panel-plugins .prompt-template-item-main { min-width: 0; overflow-wrap: anywhere; }
|
|
617
536
|
#panel-plugins .prompt-template-item-meta { display: flex; flex-wrap: wrap; gap: 0 4px; margin-top: 4px; }
|
|
618
|
-
#panel-plugins .prompt-template-
|
|
537
|
+
#panel-plugins .prompt-template-origin {
|
|
538
|
+
flex-shrink: 0;
|
|
539
|
+
max-width: 40%;
|
|
540
|
+
color: var(--color-text-secondary);
|
|
541
|
+
font-size: var(--font-size-caption);
|
|
542
|
+
overflow-wrap: anywhere;
|
|
543
|
+
}
|
|
619
544
|
#panel-plugins .prompt-templates-pane-editor { display: grid; align-content: start; gap: 16px; }
|
|
620
545
|
#panel-plugins .prompt-editor-head { margin: 0; padding: 0; border: 0; background: transparent; gap: 8px; }
|
|
621
546
|
#panel-plugins .prompt-editor-name { min-width: min(100%, 208px); font-size: var(--font-size-body); font-weight: 600; }
|
|
@@ -26,7 +26,7 @@ textarea:focus-visible {
|
|
|
26
26
|
|
|
27
27
|
.main-panel-topbar {
|
|
28
28
|
margin: 0 -20px var(--panel-top-gap);
|
|
29
|
-
padding: 0 20px
|
|
29
|
+
padding: 0 20px;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
}
|
|
@@ -49,7 +49,7 @@ textarea:focus-visible {
|
|
|
49
49
|
}
|
|
50
50
|
.main-panel-topbar {
|
|
51
51
|
margin: 0 -16px var(--panel-top-gap);
|
|
52
|
-
padding: 0 16px
|
|
52
|
+
padding: 0 16px;
|
|
53
53
|
}
|
|
54
54
|
.top-tabs {
|
|
55
55
|
display: none !important;
|
|
@@ -154,7 +154,7 @@ textarea:focus-visible {
|
|
|
154
154
|
top: 0;
|
|
155
155
|
z-index: 20;
|
|
156
156
|
margin: 0 0 var(--panel-top-gap);
|
|
157
|
-
padding: 0
|
|
157
|
+
padding: 0;
|
|
158
158
|
background: rgba(255, 248, 241, 0.96);
|
|
159
159
|
backdrop-filter: blur(14px) saturate(130%);
|
|
160
160
|
}
|
|
@@ -260,7 +260,6 @@ textarea:focus-visible {
|
|
|
260
260
|
gap: 8px;
|
|
261
261
|
overflow-x: auto;
|
|
262
262
|
overflow-y: hidden;
|
|
263
|
-
padding-bottom: 2px;
|
|
264
263
|
scrollbar-width: none;
|
|
265
264
|
-webkit-overflow-scrolling: touch;
|
|
266
265
|
}
|
|
@@ -691,8 +690,9 @@ textarea:focus-visible {
|
|
|
691
690
|
overflow: hidden;
|
|
692
691
|
}
|
|
693
692
|
|
|
694
|
-
.app-shell
|
|
695
|
-
|
|
693
|
+
.app-shell,
|
|
694
|
+
.app-shell.sidebar-collapsed {
|
|
695
|
+
grid-template-columns: minmax(0, 1fr);
|
|
696
696
|
flex: 1 1 auto;
|
|
697
697
|
min-height: 0;
|
|
698
698
|
height: auto;
|
|
@@ -740,7 +740,7 @@ textarea:focus-visible {
|
|
|
740
740
|
top: 0;
|
|
741
741
|
z-index: 20;
|
|
742
742
|
margin: 0 0 var(--panel-top-gap);
|
|
743
|
-
padding: 0
|
|
743
|
+
padding: 0;
|
|
744
744
|
background: rgba(255, 248, 241, 0.96);
|
|
745
745
|
backdrop-filter: blur(14px) saturate(130%);
|
|
746
746
|
}
|
|
@@ -63,6 +63,14 @@
|
|
|
63
63
|
#panel-routing .routing-test-result-head { color: var(--color-text-primary); overflow-wrap: anywhere; }
|
|
64
64
|
#panel-routing .routing-test-question { margin: 16px 0 24px; color: var(--color-text-tertiary); white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
65
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-batch-result summary {
|
|
67
|
+
min-height: 44px;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
padding-block: 12px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
overflow-wrap: anywhere;
|
|
72
|
+
}
|
|
73
|
+
#panel-routing .routing-batch-result summary:focus-visible { outline: 2px solid var(--color-brand); }
|
|
66
74
|
#panel-routing .routing-test-plain { white-space: pre-wrap; }
|
|
67
75
|
#panel-routing .routing-test-answer :is(h1, h2, h3, h4) { font-size: var(--font-size-body); margin: 24px 0 8px; }
|
|
68
76
|
#panel-routing .routing-test-answer :is(p, ul, ol) { margin: 12px 0; }
|
|
@@ -179,3 +179,16 @@
|
|
|
179
179
|
--sub-tab-transition: none;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
+
|
|
183
|
+
@media (max-width: 820px) {
|
|
184
|
+
#panel-plugins .plugins-sidebar .plugins-list {
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-wrap: wrap;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#panel-plugins .plugins-sidebar .plugins-item {
|
|
190
|
+
max-width: 100%;
|
|
191
|
+
white-space: normal;
|
|
192
|
+
overflow-wrap: anywhere;
|
|
193
|
+
}
|
|
194
|
+
}
|