codexmate 0.0.20 → 0.0.21

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 (102) hide show
  1. package/README.en.md +349 -259
  2. package/README.md +284 -252
  3. package/cli/agents-files.js +162 -0
  4. package/cli/archive-helpers.js +446 -0
  5. package/cli/auth-profiles.js +359 -0
  6. package/cli/builtin-proxy.js +580 -0
  7. package/cli/claude-proxy.js +998 -0
  8. package/cli/config-bootstrap.js +384 -0
  9. package/cli/config-health.js +338 -338
  10. package/cli/openclaw-config.js +629 -0
  11. package/cli/skills.js +1141 -0
  12. package/cli/zip-commands.js +510 -0
  13. package/cli.js +13101 -13497
  14. package/lib/cli-file-utils.js +151 -151
  15. package/lib/cli-models-utils.js +419 -311
  16. package/lib/cli-network-utils.js +164 -164
  17. package/lib/cli-path-utils.js +69 -0
  18. package/lib/cli-session-utils.js +121 -121
  19. package/lib/cli-sessions.js +386 -0
  20. package/lib/cli-utils.js +155 -155
  21. package/lib/download-artifacts.js +77 -0
  22. package/lib/mcp-stdio.js +440 -440
  23. package/lib/task-orchestrator.js +869 -0
  24. package/lib/text-diff.js +303 -303
  25. package/lib/workflow-engine.js +340 -340
  26. package/package.json +74 -70
  27. package/res/json5.min.js +1 -1
  28. package/res/vue.global.prod.js +13 -0
  29. package/web-ui/app.js +530 -397
  30. package/web-ui/index.html +33 -30
  31. package/web-ui/logic.agents-diff.mjs +386 -386
  32. package/web-ui/logic.claude.mjs +168 -108
  33. package/web-ui/logic.mjs +5 -5
  34. package/web-ui/logic.runtime.mjs +124 -124
  35. package/web-ui/logic.sessions.mjs +581 -263
  36. package/web-ui/modules/api.mjs +90 -69
  37. package/web-ui/modules/app.computed.dashboard.mjs +113 -113
  38. package/web-ui/modules/app.computed.index.mjs +15 -13
  39. package/web-ui/modules/app.computed.main-tabs.mjs +195 -0
  40. package/web-ui/modules/app.computed.session.mjs +507 -141
  41. package/web-ui/modules/app.constants.mjs +15 -15
  42. package/web-ui/modules/app.methods.agents.mjs +493 -493
  43. package/web-ui/modules/app.methods.claude-config.mjs +174 -174
  44. package/web-ui/modules/app.methods.codex-config.mjs +640 -640
  45. package/web-ui/modules/app.methods.index.mjs +88 -86
  46. package/web-ui/modules/app.methods.install.mjs +149 -157
  47. package/web-ui/modules/app.methods.navigation.mjs +619 -478
  48. package/web-ui/modules/app.methods.openclaw-core.mjs +814 -514
  49. package/web-ui/modules/app.methods.openclaw-editing.mjs +372 -337
  50. package/web-ui/modules/app.methods.openclaw-persist.mjs +369 -251
  51. package/web-ui/modules/app.methods.providers.mjs +363 -265
  52. package/web-ui/modules/app.methods.runtime.mjs +323 -323
  53. package/web-ui/modules/app.methods.session-actions.mjs +520 -457
  54. package/web-ui/modules/app.methods.session-browser.mjs +626 -435
  55. package/web-ui/modules/app.methods.session-timeline.mjs +448 -441
  56. package/web-ui/modules/app.methods.session-trash.mjs +422 -419
  57. package/web-ui/modules/app.methods.startup-claude.mjs +412 -406
  58. package/web-ui/modules/app.methods.task-orchestration.mjs +471 -0
  59. package/web-ui/modules/config-mode.computed.mjs +126 -124
  60. package/web-ui/modules/skills.computed.mjs +107 -107
  61. package/web-ui/modules/skills.methods.mjs +481 -481
  62. package/web-ui/partials/index/layout-footer.html +13 -69
  63. package/web-ui/partials/index/layout-header.html +402 -337
  64. package/web-ui/partials/index/modal-config-template-agents.html +125 -125
  65. package/web-ui/partials/index/modal-confirm-toast.html +32 -32
  66. package/web-ui/partials/index/modal-health-check.html +72 -72
  67. package/web-ui/partials/index/modal-openclaw-config.html +280 -275
  68. package/web-ui/partials/index/modal-skills.html +184 -184
  69. package/web-ui/partials/index/modals-basic.html +156 -196
  70. package/web-ui/partials/index/panel-config-claude.html +126 -100
  71. package/web-ui/partials/index/panel-config-codex.html +237 -237
  72. package/web-ui/partials/index/panel-config-openclaw.html +78 -84
  73. package/web-ui/partials/index/panel-docs.html +130 -0
  74. package/web-ui/partials/index/panel-market.html +174 -174
  75. package/web-ui/partials/index/panel-orchestration.html +397 -0
  76. package/web-ui/partials/index/panel-sessions.html +292 -387
  77. package/web-ui/partials/index/panel-settings.html +190 -166
  78. package/web-ui/partials/index/panel-usage.html +213 -0
  79. package/web-ui/session-helpers.mjs +559 -362
  80. package/web-ui/source-bundle.cjs +233 -233
  81. package/web-ui/styles/base-theme.css +271 -373
  82. package/web-ui/styles/controls-forms.css +360 -354
  83. package/web-ui/styles/docs-panel.css +182 -0
  84. package/web-ui/styles/feedback.css +108 -108
  85. package/web-ui/styles/health-check-dialog.css +144 -144
  86. package/web-ui/styles/layout-shell.css +376 -330
  87. package/web-ui/styles/modals-core.css +464 -449
  88. package/web-ui/styles/navigation-panels.css +348 -381
  89. package/web-ui/styles/openclaw-structured.css +266 -266
  90. package/web-ui/styles/responsive.css +450 -416
  91. package/web-ui/styles/sessions-list.css +400 -414
  92. package/web-ui/styles/sessions-preview.css +411 -405
  93. package/web-ui/styles/sessions-toolbar-trash.css +243 -243
  94. package/web-ui/styles/sessions-usage.css +628 -276
  95. package/web-ui/styles/skills-list.css +296 -298
  96. package/web-ui/styles/skills-market.css +335 -335
  97. package/web-ui/styles/task-orchestration.css +776 -0
  98. package/web-ui/styles/titles-cards.css +408 -407
  99. package/web-ui/styles.css +18 -16
  100. package/web-ui.html +17 -17
  101. package/res/screenshot.png +0 -0
  102. package/res/vue.global.js +0 -18552
@@ -1,405 +1,411 @@
1
- .session-preview.active {
2
- box-shadow: var(--shadow-float);
3
- transform: translateX(0);
4
- }
5
-
6
- .session-preview-scroll {
7
- position: relative;
8
- flex: 1;
9
- min-height: 0;
10
- overflow-y: auto;
11
- overflow-x: hidden;
12
- padding-right: 68px;
13
- display: flex;
14
- flex-direction: column;
15
- scrollbar-width: thin;
16
- scrollbar-color: rgba(166, 149, 130, 0.85) transparent;
17
- }
18
-
19
- .session-preview-header {
20
- padding: 12px var(--spacing-sm);
21
- border-bottom: 1px solid var(--color-border-soft);
22
- display: flex;
23
- align-items: flex-start;
24
- justify-content: space-between;
25
- gap: var(--spacing-sm);
26
- position: sticky;
27
- top: 0;
28
- z-index: 2;
29
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
30
- backdrop-filter: blur(6px);
31
- }
32
-
33
- .session-preview-header > div:first-child {
34
- min-width: 0;
35
- flex: 1;
36
- }
37
-
38
- .session-preview-title {
39
- font-size: var(--font-size-body);
40
- font-weight: var(--font-weight-title);
41
- color: var(--color-text-primary);
42
- line-height: 1.4;
43
- display: -webkit-box;
44
- -webkit-line-clamp: 2;
45
- -webkit-box-orient: vertical;
46
- overflow: hidden;
47
- word-break: break-word;
48
- }
49
-
50
- .session-preview-sub {
51
- margin-top: 4px;
52
- font-size: var(--font-size-caption);
53
- color: var(--color-text-tertiary);
54
- line-height: 1.35;
55
- white-space: nowrap;
56
- overflow: hidden;
57
- text-overflow: ellipsis;
58
- }
59
-
60
- .session-preview-meta {
61
- display: flex;
62
- flex-wrap: wrap;
63
- align-items: center;
64
- margin-top: 4px;
65
- }
66
-
67
- .session-preview-meta-item {
68
- font-size: var(--font-size-caption);
69
- color: var(--color-text-tertiary);
70
- line-height: 1.35;
71
- white-space: nowrap;
72
- overflow: hidden;
73
- text-overflow: ellipsis;
74
- }
75
-
76
- .session-preview-meta-item:not(:last-child)::after {
77
- content: "·";
78
- margin: 0 6px;
79
- color: var(--color-text-tertiary);
80
- opacity: 0.7;
81
- }
82
-
83
- .session-actions {
84
- display: flex;
85
- align-items: center;
86
- gap: 8px;
87
- flex: 0 1 auto;
88
- max-width: 100%;
89
- margin-left: 0;
90
- flex-wrap: wrap;
91
- justify-content: flex-end;
92
- }
93
-
94
- .session-preview-body {
95
- flex: 1;
96
- min-height: 0;
97
- padding: var(--spacing-sm);
98
- display: flex;
99
- flex-direction: column;
100
- gap: 10px;
101
- }
102
-
103
- .session-preview-messages {
104
- min-width: 0;
105
- display: flex;
106
- flex-direction: column;
107
- gap: 10px;
108
- contain: layout style;
109
- }
110
-
111
- .session-timeline {
112
- position: absolute;
113
- top: var(--session-preview-header-offset, 72px);
114
- right: 8px;
115
- bottom: 12px;
116
- width: 56px;
117
- height: auto;
118
- border-radius: 12px;
119
- border: 1px solid rgba(208, 196, 182, 0.5);
120
- background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(252, 246, 239, 0.94) 100%);
121
- box-shadow: 0 4px 12px rgba(31, 26, 23, 0.06);
122
- padding: 6px 4px 28px;
123
- z-index: 3;
124
- }
125
-
126
- .session-timeline-track {
127
- position: absolute;
128
- left: 50%;
129
- top: 10px;
130
- bottom: 32px;
131
- width: 2px;
132
- transform: translateX(-50%);
133
- background: linear-gradient(to bottom, rgba(166, 149, 130, 0.3) 0%, rgba(166, 149, 130, 0.65) 100%);
134
- border-radius: 999px;
135
- }
136
-
137
- .session-timeline-node {
138
- position: absolute;
139
- left: 50%;
140
- width: 10px;
141
- height: 10px;
142
- border-radius: 50%;
143
- border: 1px solid rgba(139, 118, 104, 0.7);
144
- background: rgba(255, 255, 255, 0.94);
145
- transform: translate(-50%, -50%);
146
- cursor: pointer;
147
- padding: 0;
148
- transition: none;
149
- will-change: auto;
150
- }
151
-
152
- .session-timeline-node:hover {
153
- transform: translate(-50%, -50%);
154
- border-color: rgba(201, 94, 75, 0.85);
155
- background: rgba(255, 255, 255, 1);
156
- box-shadow: none;
157
- }
158
-
159
- .session-timeline-node.active {
160
- transform: translate(-50%, -50%);
161
- border-color: rgba(201, 94, 75, 0.95);
162
- background: rgba(201, 94, 75, 0.95);
163
- box-shadow: none;
164
- }
165
-
166
- .session-timeline-current {
167
- position: absolute;
168
- left: 4px;
169
- right: 4px;
170
- bottom: 4px;
171
- font-size: 10px;
172
- line-height: 1.2;
173
- color: var(--color-text-tertiary);
174
- text-align: center;
175
- white-space: nowrap;
176
- overflow: hidden;
177
- text-overflow: ellipsis;
178
- }
179
-
180
- .session-msg {
181
- border-radius: 10px;
182
- padding: 10px 12px 10px 18px;
183
- border: 1px solid rgba(208, 196, 182, 0.45);
184
- background: rgba(255, 255, 255, 0.75);
185
- position: relative;
186
- box-shadow: 0 2px 6px rgba(31, 26, 23, 0.04);
187
- contain: layout style paint;
188
- }
189
-
190
- .session-msg.user {
191
- border-color: rgba(210, 107, 90, 0.35);
192
- background: rgba(210, 107, 90, 0.08);
193
- }
194
-
195
- .session-msg::before {
196
- content: "";
197
- position: absolute;
198
- left: 8px;
199
- top: 10px;
200
- bottom: 10px;
201
- width: 3px;
202
- border-radius: 999px;
203
- background: rgba(139, 118, 104, 0.45);
204
- }
205
-
206
- .session-msg.user::before {
207
- background: rgba(210, 107, 90, 0.85);
208
- }
209
-
210
- .session-msg.assistant::before {
211
- background: rgba(90, 139, 106, 0.6);
212
- }
213
-
214
- .session-msg-header {
215
- display: flex;
216
- align-items: flex-start;
217
- justify-content: space-between;
218
- gap: var(--spacing-xs);
219
- margin-bottom: 6px;
220
- font-size: var(--font-size-caption);
221
- color: var(--color-text-tertiary);
222
- }
223
-
224
- .session-msg-meta {
225
- min-width: 0;
226
- flex: 1;
227
- display: flex;
228
- align-items: center;
229
- gap: 8px;
230
- }
231
-
232
- .session-msg-role {
233
- font-weight: var(--font-weight-secondary);
234
- color: var(--color-text-secondary);
235
- }
236
-
237
- .session-msg-time {
238
- white-space: nowrap;
239
- overflow: hidden;
240
- text-overflow: ellipsis;
241
- color: var(--color-text-tertiary);
242
- }
243
-
244
- .session-msg-content {
245
- font-size: var(--font-size-secondary);
246
- line-height: 1.55;
247
- color: var(--color-text-primary);
248
- white-space: pre-wrap;
249
- word-break: break-word;
250
- }
251
-
252
- .session-preview-empty {
253
- flex: 1;
254
- display: flex;
255
- align-items: center;
256
- justify-content: center;
257
- color: var(--color-text-tertiary);
258
- font-size: var(--font-size-secondary);
259
- padding: var(--spacing-md);
260
- text-align: center;
261
- flex-direction: column;
262
- gap: 8px;
263
- }
264
-
265
- .session-preview-empty::before {
266
- content: "";
267
- width: 34px;
268
- height: 34px;
269
- border-radius: 50%;
270
- background: rgba(210, 107, 90, 0.12);
271
- box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7);
272
- }
273
-
274
- @media (max-width: 1100px) {
275
- .session-layout {
276
- grid-template-columns: 1fr;
277
- height: auto;
278
- min-height: 0;
279
- }
280
-
281
- .session-toolbar {
282
- grid-template-columns: 1fr;
283
- }
284
-
285
- .session-toolbar-actions {
286
- justify-content: flex-start;
287
- }
288
-
289
- .session-toolbar-footer {
290
- justify-content: flex-start;
291
- }
292
-
293
- .session-list {
294
- position: static;
295
- max-height: 300px;
296
- height: auto;
297
- }
298
-
299
- .session-preview {
300
- min-height: 360px;
301
- max-height: none;
302
- height: auto;
303
- position: relative;
304
- transform: none;
305
- box-shadow: var(--shadow-card);
306
- }
307
-
308
- .session-preview-scroll {
309
- padding-right: 0;
310
- }
311
-
312
- .session-timeline {
313
- display: none;
314
- }
315
-
316
- .session-preview-header {
317
- flex-direction: column;
318
- align-items: stretch;
319
- }
320
-
321
- .session-actions {
322
- justify-content: flex-start;
323
- }
324
-
325
- .session-preview.active {
326
- box-shadow: var(--shadow-float);
327
- }
328
- }
329
-
330
- @media (max-width: 520px) {
331
- .session-item-header {
332
- flex-direction: column;
333
- align-items: stretch;
334
- }
335
-
336
- .session-item-actions {
337
- justify-content: flex-end;
338
- }
339
-
340
- .session-actions {
341
- width: 100%;
342
- flex-direction: column;
343
- align-items: stretch;
344
- }
345
-
346
- .btn-session-refresh,
347
- .btn-session-export {
348
- width: 100%;
349
- }
350
-
351
- .session-toolbar-group.session-toolbar-actions {
352
- flex-direction: column;
353
- align-items: stretch;
354
- }
355
-
356
- .session-toolbar-group.session-toolbar-actions .btn-tool {
357
- width: 100%;
358
- }
359
-
360
- .trash-item-header {
361
- flex-direction: column;
362
- align-items: stretch;
363
- gap: 10px;
364
- }
365
-
366
- .trash-item-mainline {
367
- flex-direction: column;
368
- align-items: flex-start;
369
- gap: 6px;
370
- }
371
-
372
- .trash-item-side {
373
- width: 100%;
374
- min-width: 0;
375
- align-items: stretch;
376
- gap: 10px;
377
- }
378
-
379
- .trash-item-actions {
380
- display: grid;
381
- grid-template-columns: repeat(2, minmax(0, 1fr));
382
- justify-content: flex-start;
383
- width: 100%;
384
- }
385
-
386
- .trash-item-actions .btn-mini {
387
- width: 100%;
388
- min-height: 40px;
389
- display: inline-flex;
390
- align-items: center;
391
- justify-content: center;
392
- }
393
-
394
- .trash-item-time {
395
- text-align: right;
396
- }
397
- }
398
-
399
- .btn[disabled] {
400
- opacity: 0.5;
401
- cursor: not-allowed;
402
- transform: none;
403
- box-shadow: none;
404
- }
405
-
1
+ .session-preview.active {
2
+ box-shadow: var(--shadow-float);
3
+ transform: translateX(0);
4
+ }
5
+
6
+ .session-preview-scroll {
7
+ position: relative;
8
+ flex: 1;
9
+ min-height: 0;
10
+ overflow-y: auto;
11
+ overflow-x: hidden;
12
+ padding-right: 52px;
13
+ display: flex;
14
+ flex-direction: column;
15
+ scrollbar-width: none;
16
+ -ms-overflow-style: none;
17
+ }
18
+
19
+ .session-preview-scroll::-webkit-scrollbar {
20
+ width: 0;
21
+ height: 0;
22
+ display: none;
23
+ }
24
+
25
+ .session-preview-header {
26
+ padding: 12px var(--spacing-sm);
27
+ border-bottom: 1px solid var(--color-border-soft);
28
+ display: flex;
29
+ align-items: flex-start;
30
+ justify-content: space-between;
31
+ gap: var(--spacing-sm);
32
+ position: sticky;
33
+ top: 0;
34
+ z-index: 2;
35
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
36
+ backdrop-filter: blur(6px);
37
+ }
38
+
39
+ .session-preview-header > div:first-child {
40
+ min-width: 0;
41
+ flex: 1;
42
+ }
43
+
44
+ .session-preview-title {
45
+ font-size: var(--font-size-body);
46
+ font-weight: var(--font-weight-title);
47
+ color: var(--color-text-primary);
48
+ line-height: 1.4;
49
+ display: -webkit-box;
50
+ -webkit-line-clamp: 2;
51
+ -webkit-box-orient: vertical;
52
+ overflow: hidden;
53
+ word-break: break-word;
54
+ }
55
+
56
+ .session-preview-sub {
57
+ margin-top: 4px;
58
+ font-size: var(--font-size-caption);
59
+ color: var(--color-text-tertiary);
60
+ line-height: 1.35;
61
+ white-space: nowrap;
62
+ overflow: hidden;
63
+ text-overflow: ellipsis;
64
+ }
65
+
66
+ .session-preview-meta {
67
+ display: flex;
68
+ flex-wrap: wrap;
69
+ align-items: center;
70
+ margin-top: 4px;
71
+ }
72
+
73
+ .session-preview-meta-item {
74
+ font-size: var(--font-size-caption);
75
+ color: var(--color-text-tertiary);
76
+ line-height: 1.35;
77
+ white-space: nowrap;
78
+ overflow: hidden;
79
+ text-overflow: ellipsis;
80
+ }
81
+
82
+ .session-preview-meta-item:not(:last-child)::after {
83
+ content: "·";
84
+ margin: 0 6px;
85
+ color: var(--color-text-tertiary);
86
+ opacity: 0.7;
87
+ }
88
+
89
+ .session-actions {
90
+ display: flex;
91
+ align-items: center;
92
+ gap: 8px;
93
+ flex: 0 1 auto;
94
+ max-width: 100%;
95
+ margin-left: 0;
96
+ flex-wrap: wrap;
97
+ justify-content: flex-end;
98
+ }
99
+
100
+ .session-preview-body {
101
+ flex: 1;
102
+ min-height: 0;
103
+ padding: var(--spacing-sm);
104
+ display: flex;
105
+ flex-direction: column;
106
+ gap: 10px;
107
+ }
108
+
109
+ .session-preview-messages {
110
+ min-width: 0;
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: 10px;
114
+ contain: layout style;
115
+ }
116
+
117
+ .session-timeline {
118
+ position: absolute;
119
+ top: var(--session-preview-header-offset, 72px);
120
+ right: 4px;
121
+ bottom: 12px;
122
+ width: 44px;
123
+ height: auto;
124
+ border-radius: 12px;
125
+ border: 1px solid rgba(208, 196, 182, 0.5);
126
+ background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92) 0%, rgba(252, 246, 239, 0.94) 100%);
127
+ box-shadow: 0 4px 12px rgba(31, 26, 23, 0.06);
128
+ padding: 6px 4px 28px;
129
+ z-index: 3;
130
+ }
131
+
132
+ .session-timeline-track {
133
+ position: absolute;
134
+ left: 50%;
135
+ top: 10px;
136
+ bottom: 32px;
137
+ width: 2px;
138
+ transform: translateX(-50%);
139
+ background: linear-gradient(to bottom, rgba(166, 149, 130, 0.3) 0%, rgba(166, 149, 130, 0.65) 100%);
140
+ border-radius: 999px;
141
+ }
142
+
143
+ .session-timeline-node {
144
+ position: absolute;
145
+ left: 50%;
146
+ width: 10px;
147
+ height: 10px;
148
+ border-radius: 50%;
149
+ border: 1px solid rgba(139, 118, 104, 0.7);
150
+ background: rgba(255, 255, 255, 0.94);
151
+ transform: translate(-50%, -50%);
152
+ cursor: pointer;
153
+ padding: 0;
154
+ transition: none;
155
+ will-change: auto;
156
+ }
157
+
158
+ .session-timeline-node:hover {
159
+ transform: translate(-50%, -50%);
160
+ border-color: rgba(201, 94, 75, 0.85);
161
+ background: rgba(255, 255, 255, 1);
162
+ box-shadow: none;
163
+ }
164
+
165
+ .session-timeline-node.active {
166
+ transform: translate(-50%, -50%);
167
+ border-color: rgba(201, 94, 75, 0.95);
168
+ background: rgba(201, 94, 75, 0.95);
169
+ box-shadow: none;
170
+ }
171
+
172
+ .session-timeline-current {
173
+ position: absolute;
174
+ left: 3px;
175
+ right: 3px;
176
+ bottom: 4px;
177
+ font-size: 10px;
178
+ line-height: 1.2;
179
+ color: var(--color-text-tertiary);
180
+ text-align: center;
181
+ white-space: nowrap;
182
+ overflow: hidden;
183
+ text-overflow: ellipsis;
184
+ }
185
+
186
+ .session-msg {
187
+ border-radius: 10px;
188
+ padding: 10px 12px 10px 18px;
189
+ border: 1px solid rgba(208, 196, 182, 0.45);
190
+ background: rgba(255, 255, 255, 0.75);
191
+ position: relative;
192
+ box-shadow: 0 2px 6px rgba(31, 26, 23, 0.04);
193
+ contain: layout style paint;
194
+ }
195
+
196
+ .session-msg.user {
197
+ border-color: rgba(210, 107, 90, 0.35);
198
+ background: rgba(210, 107, 90, 0.08);
199
+ }
200
+
201
+ .session-msg::before {
202
+ content: "";
203
+ position: absolute;
204
+ left: 8px;
205
+ top: 10px;
206
+ bottom: 10px;
207
+ width: 3px;
208
+ border-radius: 999px;
209
+ background: rgba(139, 118, 104, 0.45);
210
+ }
211
+
212
+ .session-msg.user::before {
213
+ background: rgba(210, 107, 90, 0.85);
214
+ }
215
+
216
+ .session-msg.assistant::before {
217
+ background: rgba(90, 139, 106, 0.6);
218
+ }
219
+
220
+ .session-msg-header {
221
+ display: flex;
222
+ align-items: flex-start;
223
+ justify-content: space-between;
224
+ gap: var(--spacing-xs);
225
+ margin-bottom: 6px;
226
+ font-size: var(--font-size-caption);
227
+ color: var(--color-text-tertiary);
228
+ }
229
+
230
+ .session-msg-meta {
231
+ min-width: 0;
232
+ flex: 1;
233
+ display: flex;
234
+ align-items: center;
235
+ gap: 8px;
236
+ }
237
+
238
+ .session-msg-role {
239
+ font-weight: var(--font-weight-secondary);
240
+ color: var(--color-text-secondary);
241
+ }
242
+
243
+ .session-msg-time {
244
+ white-space: nowrap;
245
+ overflow: hidden;
246
+ text-overflow: ellipsis;
247
+ color: var(--color-text-tertiary);
248
+ }
249
+
250
+ .session-msg-content {
251
+ font-size: var(--font-size-secondary);
252
+ line-height: 1.55;
253
+ color: var(--color-text-primary);
254
+ white-space: pre-wrap;
255
+ word-break: break-word;
256
+ }
257
+
258
+ .session-preview-empty {
259
+ flex: 1;
260
+ display: flex;
261
+ align-items: center;
262
+ justify-content: center;
263
+ color: var(--color-text-tertiary);
264
+ font-size: var(--font-size-secondary);
265
+ padding: var(--spacing-md);
266
+ text-align: center;
267
+ flex-direction: column;
268
+ gap: 8px;
269
+ }
270
+
271
+ .session-preview-empty::before {
272
+ content: "";
273
+ width: 34px;
274
+ height: 34px;
275
+ border-radius: 50%;
276
+ background: rgba(210, 107, 90, 0.12);
277
+ box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7);
278
+ }
279
+
280
+ @media (max-width: 1100px) {
281
+ .session-layout {
282
+ grid-template-columns: 1fr;
283
+ height: auto;
284
+ min-height: 0;
285
+ }
286
+
287
+ .session-toolbar {
288
+ grid-template-columns: 1fr;
289
+ }
290
+
291
+ .session-toolbar-actions {
292
+ justify-content: flex-start;
293
+ }
294
+
295
+ .session-toolbar-footer {
296
+ justify-content: flex-start;
297
+ }
298
+
299
+ .session-list {
300
+ position: static;
301
+ max-height: 300px;
302
+ height: auto;
303
+ }
304
+
305
+ .session-preview {
306
+ min-height: 360px;
307
+ max-height: none;
308
+ height: auto;
309
+ position: relative;
310
+ transform: none;
311
+ box-shadow: var(--shadow-card);
312
+ }
313
+
314
+ .session-preview-scroll {
315
+ padding-right: 0;
316
+ }
317
+
318
+ .session-timeline {
319
+ display: none;
320
+ }
321
+
322
+ .session-preview-header {
323
+ flex-direction: column;
324
+ align-items: stretch;
325
+ }
326
+
327
+ .session-actions {
328
+ justify-content: flex-start;
329
+ }
330
+
331
+ .session-preview.active {
332
+ box-shadow: var(--shadow-float);
333
+ }
334
+ }
335
+
336
+ @media (max-width: 520px) {
337
+ .session-item-header {
338
+ flex-direction: column;
339
+ align-items: stretch;
340
+ }
341
+
342
+ .session-item-actions {
343
+ justify-content: flex-end;
344
+ }
345
+
346
+ .session-actions {
347
+ width: 100%;
348
+ flex-direction: column;
349
+ align-items: stretch;
350
+ }
351
+
352
+ .btn-session-refresh,
353
+ .btn-session-export {
354
+ width: 100%;
355
+ }
356
+
357
+ .session-toolbar-group.session-toolbar-actions {
358
+ flex-direction: column;
359
+ align-items: stretch;
360
+ }
361
+
362
+ .session-toolbar-group.session-toolbar-actions .btn-tool {
363
+ width: 100%;
364
+ }
365
+
366
+ .trash-item-header {
367
+ flex-direction: column;
368
+ align-items: stretch;
369
+ gap: 10px;
370
+ }
371
+
372
+ .trash-item-mainline {
373
+ flex-direction: column;
374
+ align-items: flex-start;
375
+ gap: 6px;
376
+ }
377
+
378
+ .trash-item-side {
379
+ width: 100%;
380
+ min-width: 0;
381
+ align-items: stretch;
382
+ gap: 10px;
383
+ }
384
+
385
+ .trash-item-actions {
386
+ display: grid;
387
+ grid-template-columns: repeat(2, minmax(0, 1fr));
388
+ justify-content: flex-start;
389
+ width: 100%;
390
+ }
391
+
392
+ .trash-item-actions .btn-mini {
393
+ width: 100%;
394
+ min-height: 40px;
395
+ display: inline-flex;
396
+ align-items: center;
397
+ justify-content: center;
398
+ }
399
+
400
+ .trash-item-time {
401
+ text-align: right;
402
+ }
403
+ }
404
+
405
+ .btn[disabled] {
406
+ opacity: 0.5;
407
+ cursor: not-allowed;
408
+ transform: none;
409
+ box-shadow: none;
410
+ }
411
+