codexmate 0.1.7 → 0.1.8
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/cli/system-prompt-files.js +177 -0
- package/cli.js +27 -0
- package/package.json +1 -1
- package/web-ui/app.js +19 -0
- package/web-ui/modules/app.computed.session.mjs +1 -1
- package/web-ui/modules/app.methods.agents.mjs +5 -12
- package/web-ui/modules/app.methods.index.mjs +2 -0
- package/web-ui/modules/app.methods.session-browser.mjs +21 -1
- package/web-ui/modules/app.methods.system-prompt.mjs +294 -0
- package/web-ui/modules/i18n/locales/en.mjs +11 -0
- package/web-ui/modules/i18n/locales/ja.mjs +11 -0
- package/web-ui/modules/i18n/locales/vi.mjs +11 -0
- package/web-ui/modules/i18n/locales/zh-tw.mjs +11 -0
- package/web-ui/modules/i18n/locales/zh.mjs +11 -0
- package/web-ui/modules/request-token.mjs +9 -0
- package/web-ui/partials/index/panel-prompts.html +96 -1
- package/web-ui/res/web-ui-render.precompiled.js +554 -285
- package/web-ui/styles/responsive.css +18 -0
- package/web-ui/styles/sessions-usage.css +20 -1
- package/web-ui/styles/system-prompt.css +23 -0
- package/web-ui/styles.css +1 -0
|
@@ -186,6 +186,24 @@ textarea:focus-visible {
|
|
|
186
186
|
|
|
187
187
|
.mode-cards > .segmented-control {
|
|
188
188
|
flex-direction: row;
|
|
189
|
+
flex-wrap: nowrap;
|
|
190
|
+
max-width: 100%;
|
|
191
|
+
overflow-x: auto;
|
|
192
|
+
overflow-y: hidden;
|
|
193
|
+
scrollbar-width: none;
|
|
194
|
+
-webkit-overflow-scrolling: touch;
|
|
195
|
+
scroll-snap-type: x proximity;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.mode-cards > .segmented-control::-webkit-scrollbar {
|
|
199
|
+
display: none;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.mode-cards > .segmented-control > .segment {
|
|
203
|
+
flex: 0 0 auto;
|
|
204
|
+
min-width: 0;
|
|
205
|
+
white-space: nowrap;
|
|
206
|
+
scroll-snap-align: start;
|
|
189
207
|
}
|
|
190
208
|
|
|
191
209
|
.prompts-editor-toolbar {
|
|
@@ -342,12 +342,26 @@
|
|
|
342
342
|
|
|
343
343
|
.usage-wave-labels {
|
|
344
344
|
display: flex;
|
|
345
|
-
|
|
345
|
+
flex-wrap: nowrap;
|
|
346
|
+
justify-content: flex-start;
|
|
346
347
|
margin-top: 12px;
|
|
347
348
|
padding: 0 8px;
|
|
349
|
+
overflow-x: auto;
|
|
350
|
+
overflow-y: hidden;
|
|
351
|
+
scrollbar-width: none;
|
|
352
|
+
-webkit-overflow-scrolling: touch;
|
|
353
|
+
scroll-snap-type: x proximity;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.usage-wave-labels::-webkit-scrollbar {
|
|
357
|
+
display: none;
|
|
348
358
|
}
|
|
349
359
|
|
|
350
360
|
.usage-wave-label {
|
|
361
|
+
flex: 0 0 auto;
|
|
362
|
+
min-width: 0;
|
|
363
|
+
white-space: nowrap;
|
|
364
|
+
scroll-snap-align: start;
|
|
351
365
|
font-size: 11px;
|
|
352
366
|
color: var(--color-text-muted);
|
|
353
367
|
cursor: pointer;
|
|
@@ -372,6 +386,11 @@
|
|
|
372
386
|
color: var(--color-brand);
|
|
373
387
|
font-weight: 600;
|
|
374
388
|
background: linear-gradient(135deg, rgba(200, 121, 99, 0.12), rgba(200, 121, 99, 0.06));
|
|
389
|
+
scroll-snap-align: center;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.usage-wave-label:last-child {
|
|
393
|
+
scroll-snap-align: end;
|
|
375
394
|
}
|
|
376
395
|
|
|
377
396
|
/* ---- 日期详情 ---- */
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.sys-prompt-controls {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 16px;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
margin-bottom: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.sys-prompt-control-group {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.sys-prompt-control-group .form-label {
|
|
15
|
+
font-size: 0.8em;
|
|
16
|
+
opacity: 0.8;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.sys-prompt-select {
|
|
20
|
+
min-width: 180px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
package/web-ui/styles.css
CHANGED