codexmate 0.1.10 → 0.1.13
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 +5 -7
- package/README.vi.md +4 -7
- package/README.zh.md +5 -7
- package/cli/agents-files.js +27 -3
- package/cli/prompt-history.js +171 -0
- package/cli/system-prompt-files.js +20 -2
- package/cli.js +162 -5
- package/package.json +1 -1
- package/web-ui/app.js +95 -4
- package/web-ui/index.html +2 -1
- package/web-ui/modules/app.methods.agents.mjs +90 -0
- package/web-ui/modules/app.methods.index.mjs +2 -0
- package/web-ui/modules/app.methods.navigation.mjs +7 -1
- package/web-ui/modules/app.methods.pi-config.mjs +371 -0
- package/web-ui/modules/app.methods.session-actions.mjs +57 -0
- package/web-ui/modules/app.methods.startup-claude.mjs +2 -1
- package/web-ui/modules/app.methods.system-prompt.mjs +81 -0
- package/web-ui/modules/app.methods.tool-config-permissions.mjs +3 -2
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +8 -1
- package/web-ui/modules/config-mode.computed.mjs +2 -1
- package/web-ui/modules/i18n/locales/en.mjs +52 -0
- package/web-ui/modules/i18n/locales/ja.mjs +52 -0
- package/web-ui/modules/i18n/locales/vi.mjs +52 -0
- package/web-ui/modules/i18n/locales/zh-tw.mjs +52 -0
- package/web-ui/modules/i18n/locales/zh.mjs +52 -0
- package/web-ui/partials/index/layout-header.html +20 -0
- package/web-ui/partials/index/panel-config-claude.html +3 -3
- package/web-ui/partials/index/panel-config-codex.html +3 -3
- package/web-ui/partials/index/panel-config-kilocode.html +5 -5
- package/web-ui/partials/index/panel-config-openclaw.html +3 -3
- package/web-ui/partials/index/panel-config-opencode.html +5 -5
- package/web-ui/partials/index/panel-config-pi.html +171 -0
- package/web-ui/partials/index/panel-prompts.html +52 -0
- package/web-ui/partials/index/panel-sessions.html +12 -0
- package/web-ui/partials/index/panel-settings.html +42 -0
- package/web-ui/res/web-ui-render.precompiled.js +1101 -252
- package/web-ui/styles/modals-core.css +86 -0
- package/web-ui/styles/sessions-preview.css +38 -0
- package/web-ui/styles/settings-panel.css +7 -0
- package/web-ui/styles/titles-cards.css +2 -2
|
@@ -945,3 +945,89 @@
|
|
|
945
945
|
.btn-danger-mini {
|
|
946
946
|
color: var(--color-danger);
|
|
947
947
|
}
|
|
948
|
+
|
|
949
|
+
.prompt-history-panel {
|
|
950
|
+
margin: 12px 0;
|
|
951
|
+
border: 1px solid var(--color-border-soft);
|
|
952
|
+
border-radius: var(--radius-md);
|
|
953
|
+
background: var(--color-bg-card);
|
|
954
|
+
}
|
|
955
|
+
|
|
956
|
+
.prompt-history-summary {
|
|
957
|
+
display: flex;
|
|
958
|
+
align-items: center;
|
|
959
|
+
justify-content: space-between;
|
|
960
|
+
padding: 10px 12px;
|
|
961
|
+
cursor: default;
|
|
962
|
+
color: var(--color-text-primary);
|
|
963
|
+
font-weight: var(--font-weight-primary);
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.prompt-history-close {
|
|
967
|
+
margin-left: auto;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.prompt-history-body {
|
|
971
|
+
padding: 0 12px 12px;
|
|
972
|
+
display: flex;
|
|
973
|
+
flex-direction: column;
|
|
974
|
+
gap: 10px;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
.prompt-history-list {
|
|
978
|
+
list-style: none;
|
|
979
|
+
margin: 0;
|
|
980
|
+
padding: 0;
|
|
981
|
+
max-height: 200px;
|
|
982
|
+
overflow-y: auto;
|
|
983
|
+
border: 1px solid var(--color-border-soft);
|
|
984
|
+
border-radius: var(--radius-sm);
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.prompt-history-item {
|
|
988
|
+
display: flex;
|
|
989
|
+
justify-content: space-between;
|
|
990
|
+
gap: 10px;
|
|
991
|
+
padding: 8px 10px;
|
|
992
|
+
cursor: pointer;
|
|
993
|
+
border-bottom: 1px solid var(--color-border-soft);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
.prompt-history-item:last-child {
|
|
997
|
+
border-bottom: none;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.prompt-history-item:hover {
|
|
1001
|
+
background: var(--color-bg-hover);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.prompt-history-item.active {
|
|
1005
|
+
background: var(--color-bg-active);
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.prompt-history-time {
|
|
1009
|
+
color: var(--color-text-primary);
|
|
1010
|
+
font-variant-numeric: tabular-nums;
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
.prompt-history-size {
|
|
1014
|
+
color: var(--color-text-secondary);
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
.prompt-history-preview-wrap {
|
|
1018
|
+
display: flex;
|
|
1019
|
+
flex-direction: column;
|
|
1020
|
+
gap: 8px;
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
.prompt-history-preview {
|
|
1024
|
+
margin: 0;
|
|
1025
|
+
padding: 10px;
|
|
1026
|
+
max-height: 240px;
|
|
1027
|
+
overflow: auto;
|
|
1028
|
+
border: 1px solid var(--color-border-soft);
|
|
1029
|
+
border-radius: var(--radius-sm);
|
|
1030
|
+
background: var(--color-bg-inline);
|
|
1031
|
+
white-space: pre-wrap;
|
|
1032
|
+
word-break: break-word;
|
|
1033
|
+
}
|
|
@@ -439,6 +439,44 @@
|
|
|
439
439
|
color: var(--color-text-tertiary);
|
|
440
440
|
}
|
|
441
441
|
|
|
442
|
+
.session-msg-copy {
|
|
443
|
+
position: absolute;
|
|
444
|
+
right: 12px;
|
|
445
|
+
bottom: 12px;
|
|
446
|
+
border: 1px solid var(--color-border-soft);
|
|
447
|
+
background: var(--color-surface-alt);
|
|
448
|
+
color: var(--color-text-secondary);
|
|
449
|
+
width: 24px;
|
|
450
|
+
height: 24px;
|
|
451
|
+
border-radius: 8px;
|
|
452
|
+
display: inline-flex;
|
|
453
|
+
align-items: center;
|
|
454
|
+
justify-content: center;
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
flex-shrink: 0;
|
|
457
|
+
transition: all var(--transition-fast) var(--ease-spring);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.session-msg-copy:hover {
|
|
461
|
+
border-color: var(--color-brand);
|
|
462
|
+
background: var(--color-surface);
|
|
463
|
+
color: var(--color-brand);
|
|
464
|
+
transform: translateY(-1px);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.session-msg-copy:active {
|
|
468
|
+
transform: translateY(0);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.session-msg-copy svg {
|
|
472
|
+
width: 10px;
|
|
473
|
+
height: 10px;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.session-msg.user .session-msg-content {
|
|
477
|
+
padding-right: 36px;
|
|
478
|
+
}
|
|
479
|
+
|
|
442
480
|
.session-msg-content {
|
|
443
481
|
font-size: var(--font-size-secondary);
|
|
444
482
|
line-height: 1.6;
|
|
@@ -191,6 +191,13 @@
|
|
|
191
191
|
color: var(--color-text-secondary);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
.settings-toggle-grid {
|
|
195
|
+
display: grid;
|
|
196
|
+
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
|
197
|
+
gap: 4px 12px;
|
|
198
|
+
margin: 8px 0 4px;
|
|
199
|
+
}
|
|
200
|
+
|
|
194
201
|
/* ---- 切换按钮组 ---- */
|
|
195
202
|
.settings-toggle-group {
|
|
196
203
|
display: flex;
|
|
@@ -334,9 +334,9 @@
|
|
|
334
334
|
grid-auto-columns: max-content;
|
|
335
335
|
column-gap: var(--spacing-xs);
|
|
336
336
|
row-gap: 6px;
|
|
337
|
-
align-items:
|
|
337
|
+
align-items: start;
|
|
338
338
|
justify-content: end;
|
|
339
|
-
align-self:
|
|
339
|
+
align-self: flex-start;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
342
|
.card-trailing .card-actions {
|