codexmate 0.1.32 → 0.1.33

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 (70) hide show
  1. package/README.md +5 -0
  2. package/README.vi.md +5 -0
  3. package/README.zh.md +5 -0
  4. package/cli/claude-proxy.js +2 -2
  5. package/cli/prompt-history.js +2 -0
  6. package/cli.js +165 -213
  7. package/lib/cli-config-engine.js +6 -1
  8. package/lib/cli-file-utils.js +6 -1
  9. package/lib/config-change-fs.js +132 -0
  10. package/lib/config-changes.js +293 -0
  11. package/lib/handoff-mcp.js +18 -2
  12. package/lib/local-feature-store.js +39 -0
  13. package/lib/session-bookmarks.js +72 -0
  14. package/lib/session-context-health.js +23 -3
  15. package/lib/session-diagnostics.js +75 -0
  16. package/lib/session-feature-settings.js +21 -0
  17. package/lib/session-features.js +63 -0
  18. package/lib/session-handoff-draft.js +43 -0
  19. package/lib/session-projects.js +76 -0
  20. package/lib/session-search-index.js +188 -0
  21. package/lib/thread-handoff.js +8 -0
  22. package/lib/web-server.js +216 -0
  23. package/package.json +1 -1
  24. package/web-ui/app.js +7 -1
  25. package/web-ui/index.html +1 -0
  26. package/web-ui/logic.context-window.mjs +15 -0
  27. package/web-ui/modules/api.mjs +72 -39
  28. package/web-ui/modules/app.methods.agents.mjs +5 -0
  29. package/web-ui/modules/app.methods.claude-config.mjs +2 -0
  30. package/web-ui/modules/app.methods.codex-config.mjs +9 -0
  31. package/web-ui/modules/app.methods.config-changes.mjs +124 -0
  32. package/web-ui/modules/app.methods.kilocode-config.mjs +2 -0
  33. package/web-ui/modules/app.methods.openclaw-persist.mjs +2 -0
  34. package/web-ui/modules/app.methods.opencode-config.mjs +2 -0
  35. package/web-ui/modules/app.methods.pi-config.mjs +12 -3
  36. package/web-ui/modules/app.methods.provider-cache.mjs +9 -3
  37. package/web-ui/modules/app.methods.providers.mjs +6 -0
  38. package/web-ui/modules/app.methods.startup-claude.mjs +8 -47
  39. package/web-ui/modules/config-change-actions.mjs +9 -0
  40. package/web-ui/modules/i18n/locales/en.mjs +131 -4
  41. package/web-ui/modules/i18n/locales/ja.mjs +131 -4
  42. package/web-ui/modules/i18n/locales/vi.mjs +131 -4
  43. package/web-ui/modules/i18n/locales/zh-tw.mjs +131 -4
  44. package/web-ui/modules/i18n/locales/zh.mjs +131 -4
  45. package/web-ui/modules/request-deadline.mjs +33 -0
  46. package/web-ui/modules/session-features.mjs +279 -0
  47. package/web-ui/modules/thread-handoff.mjs +1 -1
  48. package/web-ui/partials/index/config-changes.html +25 -0
  49. package/web-ui/partials/index/context-window-reference.html +17 -0
  50. package/web-ui/partials/index/layout-header.html +7 -30
  51. package/web-ui/partials/index/modal-openclaw-config.html +0 -2
  52. package/web-ui/partials/index/modal-skills.html +0 -1
  53. package/web-ui/partials/index/modals-basic.html +0 -8
  54. package/web-ui/partials/index/modals-pi-provider.html +0 -1
  55. package/web-ui/partials/index/panel-config-codex.html +0 -3
  56. package/web-ui/partials/index/panel-config-openclaw.html +16 -13
  57. package/web-ui/partials/index/panel-dashboard.html +0 -2
  58. package/web-ui/partials/index/panel-plugins.html +0 -1
  59. package/web-ui/partials/index/panel-prompts.html +0 -1
  60. package/web-ui/partials/index/panel-sessions.html +9 -0
  61. package/web-ui/partials/index/panel-settings.html +1 -12
  62. package/web-ui/partials/index/panel-trash.html +0 -1
  63. package/web-ui/partials/index/session-diagnostics.html +29 -0
  64. package/web-ui/partials/index/session-features.html +107 -0
  65. package/web-ui/partials/index/thread-handoff.html +6 -3
  66. package/web-ui/res/web-ui-render.precompiled.js +1077 -135
  67. package/web-ui/styles/config-changes.css +30 -0
  68. package/web-ui/styles/openclaw-structured.css +205 -189
  69. package/web-ui/styles/session-features.css +148 -0
  70. package/web-ui/styles.css +3 -1
@@ -0,0 +1,148 @@
1
+ .session-features {
2
+ --feature-surface: var(--color-surface-alt);
3
+ --feature-duration: 160ms;
4
+ --feature-ease: cubic-bezier(0.16, 1, 0.3, 1);
5
+ margin: var(--spacing-sm) 0;
6
+ min-width: 0;
7
+ color: var(--color-text-primary);
8
+ font-family: var(--font-family-body);
9
+ }
10
+ /* Match neighboring controls, including their one-pixel container border. */
11
+ #panel-sessions .session-features { box-sizing: border-box; margin-inline: 1px; padding-inline: 10px; }
12
+ #panel-sessions .feature-tabs button { padding-inline: 10px; }
13
+ #panel-settings .feature-diagnostics { box-sizing: border-box; margin-inline: 1px; padding-inline: var(--spacing-md); }
14
+ .feature-toolbar, .feature-section-heading, .feature-record-heading {
15
+ display: flex;
16
+ align-items: center;
17
+ justify-content: space-between;
18
+ gap: var(--spacing-xs);
19
+ min-width: 0;
20
+ }
21
+ .feature-toolbar { flex-wrap: wrap; padding-block: 4px; }
22
+ .feature-tabs { display: flex; gap: 4px; max-width: 100%; overflow-x: auto; }
23
+ .feature-tabs button {
24
+ flex: 0 0 auto;
25
+ min-height: 44px;
26
+ padding: 8px 16px;
27
+ border: 0;
28
+ border-radius: var(--radius-sm);
29
+ background: transparent;
30
+ color: var(--color-text-secondary);
31
+ font: inherit;
32
+ font-size: var(--font-size-secondary);
33
+ cursor: pointer;
34
+ }
35
+ .feature-tabs button[aria-expanded="true"] { background: var(--feature-surface); color: var(--color-text-primary); font-weight: 600; }
36
+ .feature-actions, .feature-record-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); }
37
+ .feature-actions input, .feature-actions select { flex: 1 1 200px; min-width: 0; max-width: 100%; }
38
+ .session-features input:not([type="checkbox"]), .session-features select, .session-features textarea,
39
+ .context-window-reference input, .context-window-reference select {
40
+ box-sizing: border-box;
41
+ width: 100%;
42
+ min-width: 0;
43
+ min-height: 44px;
44
+ padding: 8px 12px;
45
+ border: 1px solid var(--color-border-strong);
46
+ border-radius: var(--radius-sm);
47
+ background: var(--color-surface);
48
+ color: var(--color-text-primary);
49
+ font: inherit;
50
+ font-size: max(16px, var(--font-size-body));
51
+ }
52
+ .session-features button, .context-window-reference button, .session-feature-controls button {
53
+ min-height: 44px;
54
+ max-width: 100%;
55
+ transition: color var(--feature-duration, 160ms) var(--feature-ease, ease-out), background-color var(--feature-duration, 160ms) var(--feature-ease, ease-out), opacity var(--feature-duration, 160ms) var(--feature-ease, ease-out);
56
+ }
57
+ .session-features .feature-primary { background: var(--color-text-primary); color: var(--color-surface); border-color: transparent; }
58
+ .session-features .feature-primary:not(:disabled):hover { background: var(--color-text-secondary); }
59
+ .session-features .feature-quiet, .context-window-reference .feature-quiet { border-color: transparent; background: transparent; color: var(--color-text-secondary); }
60
+ .session-features button:not(:disabled):hover, .feature-link-list button:not(:disabled):hover { background: var(--feature-surface); color: var(--color-text-primary); }
61
+ .session-features button:not(:disabled):active, .context-window-reference button:not(:disabled):active { opacity: 0.76; }
62
+ .session-features button:disabled, .context-window-reference button:disabled { cursor: not-allowed; opacity: 0.45; }
63
+ .session-features :is(button, input, select, textarea, summary):focus-visible,
64
+ .context-window-reference :is(button, input, select, summary):focus-visible,
65
+ .session-feature-controls :is(button, input):focus-visible { outline: 2px solid var(--color-brand); outline-offset: 3px; }
66
+ .feature-content { padding: var(--spacing-md) 0 var(--spacing-xs); min-width: 0; }
67
+ .feature-section-heading { margin-bottom: var(--spacing-sm); flex-wrap: wrap; }
68
+ .feature-section-heading h3 { margin: 0; font-size: var(--font-size-title); font-weight: 600; }
69
+ .feature-section-heading h4, .feature-record-heading h4 { margin: 0; font-size: var(--font-size-body); font-weight: 600; }
70
+ .feature-hint, .feature-issue, .feature-note { max-width: 72ch; margin: 8px 0; line-height: 1.65; }
71
+ .feature-hint { color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
72
+ .feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--color-text-muted); font-size: var(--font-size-secondary); overflow-wrap: anywhere; }
73
+ .feature-source { color: var(--color-text-secondary); font-size: var(--font-size-secondary); font-weight: 600; }
74
+ .feature-path { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-text-muted); font-size: var(--font-size-secondary); }
75
+ .feature-search-form { margin-top: var(--spacing-sm); }
76
+ .feature-disclosure { margin-top: 12px; min-width: 0; }
77
+ .feature-disclosure > summary { width: fit-content; max-width: 100%; min-height: 44px; display: list-item; align-content: center; cursor: pointer; color: var(--color-text-secondary); font-size: var(--font-size-secondary); overflow-wrap: anywhere; }
78
+ .feature-disclosure[open] > summary { color: var(--color-text-primary); }
79
+ .feature-record { padding: var(--spacing-md) 0; overflow-wrap: anywhere; min-width: 0; }
80
+ .feature-record + .feature-record { border-top: 1px solid var(--color-border-soft); }
81
+ .feature-record-heading { margin-bottom: 8px; }
82
+ .feature-record-heading h4 { min-width: 0; overflow-wrap: anywhere; }
83
+ .feature-record pre, .feature-focus pre, .feature-code { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; overflow: auto; line-height: 1.6; }
84
+ .feature-excerpt { max-width: 72ch; margin: var(--spacing-sm) 0; font-family: var(--font-family-body); font-size: var(--font-size-body); }
85
+ .feature-code, .feature-disclosure pre { padding: 12px; border-radius: var(--radius-sm); background: var(--feature-surface, var(--color-surface-alt)); font-family: var(--font-family-mono); font-size: var(--font-size-secondary); }
86
+ .feature-note { color: var(--color-text-secondary); }
87
+ .feature-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 12px 0; }
88
+ .feature-tag, .feature-count { font-size: var(--font-size-secondary); color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
89
+ .feature-tag { padding: 4px 8px; border-radius: 4px; background: var(--feature-surface); }
90
+ .feature-count { flex-shrink: 0; }
91
+ .feature-record-actions { margin-top: var(--spacing-xs); }
92
+ .feature-editor { display: grid; gap: var(--spacing-sm); max-width: 72ch; margin-top: var(--spacing-md); }
93
+ .feature-editor label, .feature-filter-fields label, .feature-window-fields label { display: grid; gap: 8px; min-width: 0; color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
94
+ .feature-editor textarea { min-height: 104px; resize: vertical; }
95
+ .feature-filter-fields, .feature-window-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: var(--spacing-sm); margin-top: 8px; }
96
+ .feature-filter-fields input { margin-top: 0; }
97
+ .feature-window-fields button { justify-self: start; }
98
+ .feature-empty { padding: 24px 0; color: var(--color-text-secondary); }
99
+ .feature-empty p { margin: 0 0 8px; font-size: var(--font-size-body); }
100
+ .feature-empty small { font-size: var(--font-size-secondary); }
101
+ .feature-loading { margin: var(--spacing-sm) 0; color: var(--color-text-secondary); }
102
+ .feature-feedback { margin: 12px 0; }
103
+ .feature-status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 4px; background: var(--feature-surface, var(--color-surface-alt)); color: var(--color-text-primary); font-size: var(--font-size-secondary); }
104
+ .feature-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
105
+ .feature-status[data-status="passed"]::before, .feature-status[data-status="success"]::before { background: var(--color-success); }
106
+ .feature-status[data-status="failed"]::before, .feature-status[data-status="timeout"]::before { background: var(--color-error); }
107
+ .feature-status[data-status="running"] { color: var(--color-text-primary); }
108
+ .feature-project-picker { display: grid; gap: 4px; max-height: 288px; overflow-y: auto; margin-top: var(--spacing-sm); }
109
+ .feature-project-picker > button { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; border: 0; border-radius: var(--radius-sm); background: transparent; text-align: left; color: var(--color-text-primary); }
110
+ .feature-project-picker > button[aria-pressed="true"] { background: var(--feature-surface); }
111
+ .feature-project-label { display: grid; gap: 4px; min-width: 0; }
112
+ .feature-project-label strong { font-size: var(--font-size-body); }
113
+ .feature-project-heading { margin-top: var(--spacing-md); }
114
+ .feature-session-row { padding: 12px 0; }
115
+ .feature-session-row > button, .feature-link-list button { display: block; padding: 8px 0; border: 0; background: transparent; color: var(--color-text-primary); font: inherit; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
116
+ .feature-link-list { display: grid; min-width: 0; }
117
+ .feature-diagnostics { margin-bottom: var(--spacing-md); }
118
+ .feature-diagnostics > summary { min-height: 44px; cursor: pointer; font-size: var(--font-size-title); font-weight: 600; align-content: center; }
119
+ .feature-diagnostic-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: var(--spacing-sm) 0; }
120
+ .feature-diagnostic-options label { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
121
+ .feature-diagnostic-controls { margin-bottom: 8px; }
122
+ .feature-export-actions { padding-top: var(--spacing-sm); }
123
+ .context-window-reference { box-sizing: border-box; margin: var(--spacing-md) 0 var(--spacing-sm); padding-inline: var(--spacing-sm); color: var(--color-text-primary); }
124
+ .context-window-reference .feature-section-heading { margin-bottom: 4px; }
125
+ .feature-window-warning { margin-top: 12px; padding-block: 8px; }
126
+ .feature-window-warning > span { color: var(--color-text-secondary); font-size: var(--font-size-secondary); }
127
+ .session-feature-controls { display: flex; align-items: center; gap: 4px; margin-left: auto; }
128
+ .session-feature-controls button { min-width: 44px; padding: 8px; border: 0; background: transparent; color: var(--color-text-muted); }
129
+ .session-feature-controls button:not(:disabled):hover { color: var(--color-text-primary); background: var(--color-surface-alt); }
130
+ .session-feature-controls button:disabled { opacity: 0.45; cursor: not-allowed; }
131
+ .session-feature-controls button:not(:disabled):active { opacity: 0.76; }
132
+ .feature-message-select { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
133
+ .feature-focus { margin: 16px 0; padding: 16px; background: var(--color-surface-alt); }
134
+ @media (max-width: 640px) {
135
+ #panel-settings .feature-diagnostics { padding-inline: 20px; }
136
+ .feature-toolbar { align-items: stretch; }
137
+ .feature-toolbar > .feature-primary { width: 100%; }
138
+ .feature-filter-fields, .feature-window-fields { grid-template-columns: minmax(0, 1fr); }
139
+ .feature-search-form { flex-wrap: nowrap; }
140
+ .feature-search-form input { flex-basis: 0; }
141
+ .feature-search-form > button { flex-shrink: 0; }
142
+ .feature-record { padding-block: var(--spacing-sm); }
143
+ .feature-record-heading { flex-wrap: wrap; }
144
+ .feature-project-picker { max-height: 240px; }
145
+ }
146
+ @media (prefers-reduced-motion: reduce) {
147
+ .session-features button, .context-window-reference button, .session-feature-controls button { transition: none; }
148
+ }
package/web-ui/styles.css CHANGED
@@ -1,4 +1,4 @@
1
- @import url('./styles/base-theme.css');
1
+ @import url('./styles/base-theme.css');
2
2
  @import url('./styles/layout-shell.css');
3
3
  @import url('./styles/navigation-panels.css');
4
4
  @import url('./styles/titles-cards.css');
@@ -24,6 +24,8 @@
24
24
  @import url('./styles/system-prompt.css');
25
25
  @import url('./styles/prompts-editor.css');
26
26
  @import url('./styles/context-health.css');
27
+ @import url('./styles/session-features.css');
28
+ @import url('./styles/config-changes.css');
27
29
  @import url('./styles/theme-dark.css');
28
30
  @import url('./styles/theme-ocean.css');
29
31
  @import url('./styles/sub-tabs.css');