codexmate 0.1.34 → 0.1.35
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 +15 -1
- package/README.vi.md +15 -1
- package/README.zh.md +15 -1
- package/cli/analytics-export-args.js +7 -0
- package/cli/session-usage.js +4 -1
- package/cli.js +29 -5
- package/lib/data/model-prices.json +1868 -0
- package/lib/session-context-health.js +5 -1
- package/lib/session-evidence-collections.js +85 -0
- package/lib/session-features.js +15 -0
- package/lib/session-project-git.js +65 -0
- package/lib/session-projects.js +12 -1
- package/lib/session-stories.js +67 -0
- package/lib/session-usage-ledger.js +77 -0
- package/lib/session-usage-pricing.js +42 -0
- package/lib/session-usage-report.js +101 -0
- package/package.json +4 -1
- package/plugins/prompt-templates/computed.mjs +9 -0
- package/web-ui/app.js +10 -0
- package/web-ui/logic.session-artifacts.mjs +39 -0
- package/web-ui/modules/app.methods.agents.mjs +3 -2
- package/web-ui/modules/app.methods.session-browser.mjs +35 -0
- package/web-ui/modules/app.methods.system-prompt.mjs +16 -7
- package/web-ui/modules/app.methods.web-ui-preferences.mjs +5 -0
- package/web-ui/modules/i18n/locales/en.mjs +116 -1
- package/web-ui/modules/i18n/locales/ja.mjs +116 -1
- package/web-ui/modules/i18n/locales/vi.mjs +116 -1
- package/web-ui/modules/i18n/locales/zh-tw.mjs +116 -1
- package/web-ui/modules/i18n/locales/zh.mjs +116 -1
- package/web-ui/modules/session-collections.mjs +65 -0
- package/web-ui/modules/session-evidence.mjs +81 -0
- package/web-ui/modules/session-features.mjs +15 -1
- package/web-ui/modules/session-git.mjs +39 -0
- package/web-ui/modules/session-stories.mjs +64 -0
- package/web-ui/modules/usage-pricing.mjs +30 -0
- package/web-ui/partials/index/layout-footer.html +1 -1
- package/web-ui/partials/index/panel-sessions.html +20 -20
- package/web-ui/partials/index/panel-usage.html +2 -0
- package/web-ui/partials/index/session-features.html +82 -2
- package/web-ui/partials/index/thread-handoff.html +73 -62
- package/web-ui/partials/index/usage-records.html +41 -0
- package/web-ui/res/web-ui-render.precompiled.js +772 -125
- package/web-ui/styles/session-features.css +63 -0
- package/web-ui/styles/sessions-list.css +74 -0
- package/web-ui/styles/sessions-preview.css +106 -68
- package/web-ui/styles/sessions-usage.css +8 -0
- package/web-ui/styles/theme-violet.css +9 -3
|
@@ -256,3 +256,66 @@
|
|
|
256
256
|
#panel-settings .feature-diagnostics-chevron { transition: none; }
|
|
257
257
|
.session-features button, .context-window-reference button, .session-feature-controls button { transition: none; }
|
|
258
258
|
}
|
|
259
|
+
|
|
260
|
+
.evidence-basket { margin-block: 16px; min-width: 0; }
|
|
261
|
+
.evidence-select { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
|
|
262
|
+
.evidence-select input { accent-color: var(--color-brand-dark); }
|
|
263
|
+
.evidence-list { padding-inline-start: 24px; margin-block: 8px; }
|
|
264
|
+
.evidence-list li { padding-block: 4px; }
|
|
265
|
+
.evidence-list li > span { display: inline-flex; flex-direction: column; max-width: calc(100% - 80px); vertical-align: middle; overflow-wrap: anywhere; }
|
|
266
|
+
.evidence-list .btn-mini { margin-inline-start: 8px; min-height: 44px; }
|
|
267
|
+
.evidence-preview pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 480px; overflow-y: auto; font-family: var(--font-family-mono, monospace); }
|
|
268
|
+
.evidence-select:focus-within { outline: 2px solid var(--color-brand-dark); outline-offset: 4px; }
|
|
269
|
+
|
|
270
|
+
.usage-pricing .usage-price-total { margin-block: 16px 8px; font-size: var(--font-size-h3, 20px); font-weight: var(--font-weight-primary); }
|
|
271
|
+
.usage-price-rates { display: block; margin-block-start: 4px; font-size: var(--font-size-small, 12px); color: var(--color-text-secondary); overflow-wrap: anywhere; }
|
|
272
|
+
.usage-pricing code { overflow-wrap: anywhere; }
|
|
273
|
+
|
|
274
|
+
.git-change-list, .git-commit-list { padding-inline-start: 24px; overflow-wrap: anywhere; }
|
|
275
|
+
.git-commit-list > li { padding-block: 8px; }
|
|
276
|
+
.git-commit-list > li > small { display: block; margin-block: 4px; }
|
|
277
|
+
.git-commit-list .btn-mini { min-height: 44px; text-align: start; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
|
|
278
|
+
.git-commit-stat { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow-y: auto; }
|
|
279
|
+
.project-git code { overflow-wrap: anywhere; }
|
|
280
|
+
|
|
281
|
+
.collection-list { padding: 0; margin-block: var(--spacing-sm); max-width: 72ch; list-style: none; }
|
|
282
|
+
.collection-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--spacing-xs); padding-block: var(--spacing-xs); min-width: 0; }
|
|
283
|
+
.collection-list li + li { border-top: 1px solid var(--color-border-soft); }
|
|
284
|
+
.collection-list li > button:first-child { min-width: 0; padding: 8px 12px; border-color: transparent; background: transparent; text-align: start; white-space: normal; overflow-wrap: anywhere; font-size: var(--font-size-body); font-weight: var(--font-weight-secondary); line-height: var(--line-height-normal); }
|
|
285
|
+
.collection-list li > button[aria-pressed="true"], .collection-list li > button[aria-pressed="true"]:hover:not(:disabled) { background: var(--color-brand-light); color: var(--color-brand-dark); }
|
|
286
|
+
.evidence-collections > summary { font-size: var(--font-size-body); font-weight: var(--font-weight-primary); }
|
|
287
|
+
.collection-list .feature-count { color: var(--color-text-secondary); text-align: end; white-space: nowrap; }
|
|
288
|
+
.collection-editor { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--spacing-sm); margin-block: var(--spacing-md) var(--spacing-sm); }
|
|
289
|
+
.collection-editor > .feature-actions { flex-wrap: nowrap; }
|
|
290
|
+
.evidence-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--spacing-xs); }
|
|
291
|
+
.evidence-list li > span { flex: 1 1 180px; min-width: 0; max-width: 100%; }
|
|
292
|
+
.evidence-list .btn-mini { margin-inline-start: 0; flex-shrink: 0; }
|
|
293
|
+
.collection-source-state { color: var(--color-text-secondary); }
|
|
294
|
+
.collection-source-state[data-state="changed"], .collection-source-state[data-state="unavailable"] { color: var(--color-error); }
|
|
295
|
+
.project-stories { margin-top: var(--spacing-md); padding-top: var(--spacing-md); border-top: 1px solid var(--color-border-soft); min-width: 0; }
|
|
296
|
+
.project-stories > h4 { margin: 0; font-size: var(--font-size-large); font-weight: var(--font-weight-primary); line-height: var(--line-height-normal); }
|
|
297
|
+
.story-record { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--spacing-sm); row-gap: 4px; padding-block: var(--spacing-sm); overflow-wrap: anywhere; }
|
|
298
|
+
.story-record + .story-record { border-top: 1px solid var(--color-border-soft); }
|
|
299
|
+
.story-record > .feature-meta { grid-column: 1; margin: 0; }
|
|
300
|
+
.story-record > button:not(.feature-quiet) { grid-column: 1; justify-self: start; padding: 8px 0; border-color: transparent; background: transparent; font-size: var(--font-size-body); font-weight: var(--font-weight-primary); text-align: start; white-space: normal; line-height: var(--line-height-normal); }
|
|
301
|
+
.story-record > .feature-hint { grid-column: 1; margin: 0; }
|
|
302
|
+
.story-record > .feature-note { grid-column: 1; margin: 0; white-space: pre-wrap; line-height: 1.65; }
|
|
303
|
+
.story-record > .feature-note:empty { display: none; }
|
|
304
|
+
.story-record > .feature-quiet { grid-column: 2; grid-row: 2; align-self: start; white-space: nowrap; }
|
|
305
|
+
.story-editor { max-width: 72ch; padding-top: var(--spacing-sm); margin-top: var(--spacing-xs); border-top: 1px solid var(--color-border-soft); }
|
|
306
|
+
.collection-editor label, .story-editor label { font-weight: var(--font-weight-secondary); }
|
|
307
|
+
@media (max-width: 640px) {
|
|
308
|
+
.collection-editor { grid-template-columns: minmax(0, 1fr); }
|
|
309
|
+
.collection-list li { column-gap: 4px; }
|
|
310
|
+
.collection-list li > button:first-child { padding-inline: 8px; }
|
|
311
|
+
.collection-list .feature-quiet { padding-inline: 8px; }
|
|
312
|
+
.story-record { column-gap: var(--spacing-xs); }
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.evidence-generator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-sm); align-items: start; }
|
|
316
|
+
.evidence-generator-note, .evidence-generator > button { grid-column: 1 / -1; }
|
|
317
|
+
.evidence-generator-note { resize: vertical; }
|
|
318
|
+
.evidence-generator > button { justify-self: start; }
|
|
319
|
+
@media (max-width: 640px) {
|
|
320
|
+
.evidence-generator { grid-template-columns: minmax(0, 1fr); }
|
|
321
|
+
}
|
|
@@ -801,3 +801,77 @@
|
|
|
801
801
|
.btn-tool-batch-delete:not(:disabled) {
|
|
802
802
|
color: var(--color-error);
|
|
803
803
|
}
|
|
804
|
+
|
|
805
|
+
/* Record rows share theme tokens; keep overrides local to the browser, not trash cards. */
|
|
806
|
+
#panel-sessions .session-list > .session-item {
|
|
807
|
+
border-color: transparent;
|
|
808
|
+
border-radius: 8px;
|
|
809
|
+
background: transparent;
|
|
810
|
+
box-shadow: none;
|
|
811
|
+
padding: 8px 12px;
|
|
812
|
+
display: flex;
|
|
813
|
+
flex-direction: column;
|
|
814
|
+
flex: 0 0 auto;
|
|
815
|
+
transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
816
|
+
}
|
|
817
|
+
#panel-sessions .session-list > .session-item::before { content: none; display: none; }
|
|
818
|
+
#panel-sessions .session-list > .session-item:hover {
|
|
819
|
+
background: color-mix(in oklch, var(--color-text-primary) 4%, var(--color-surface));
|
|
820
|
+
transform: none;
|
|
821
|
+
}
|
|
822
|
+
#panel-sessions .session-list > .session-item.active,
|
|
823
|
+
#panel-sessions .session-list > .session-item.batch-selected {
|
|
824
|
+
background: color-mix(in oklch, var(--color-brand-dark) 8%, var(--color-surface));
|
|
825
|
+
}
|
|
826
|
+
#panel-sessions .session-list > .session-item:active { transform: none; }
|
|
827
|
+
#panel-sessions .session-list > .session-item:focus-visible {
|
|
828
|
+
outline: 2px solid var(--color-brand-dark);
|
|
829
|
+
outline-offset: -2px;
|
|
830
|
+
}
|
|
831
|
+
#panel-sessions .session-item-header { margin: 0; gap: 8px; }
|
|
832
|
+
#panel-sessions .session-item-main { align-items: center; }
|
|
833
|
+
#panel-sessions .session-item-title { font-weight: var(--font-weight-primary); }
|
|
834
|
+
#panel-sessions .session-item-location { color: var(--color-text-secondary); }
|
|
835
|
+
#panel-sessions .session-item-actions { gap: 0; }
|
|
836
|
+
#panel-sessions .session-item-copy {
|
|
837
|
+
width: 44px; height: 44px; min-width: 44px; min-height: 44px;
|
|
838
|
+
padding: 0; border: 0; border-radius: 8px;
|
|
839
|
+
background: transparent; color: var(--color-text-secondary);
|
|
840
|
+
transform: none; opacity: 1;
|
|
841
|
+
transition: background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), color 160ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
842
|
+
}
|
|
843
|
+
#panel-sessions .session-item-copy:hover:not(:disabled) { background: var(--color-surface-alt); color: var(--color-brand-dark); transform: none; }
|
|
844
|
+
#panel-sessions .session-item-copy:active:not(:disabled) { background: var(--color-brand-light); }
|
|
845
|
+
#panel-sessions .session-item-copy:focus-visible { outline: 2px solid var(--color-brand-dark); outline-offset: -2px; }
|
|
846
|
+
#panel-sessions .session-item-copy:disabled { opacity: 0.5; }
|
|
847
|
+
#panel-sessions .session-item-copy svg { width: 16px; height: 16px; color: currentColor; }
|
|
848
|
+
#panel-sessions .session-item.pinned .session-item-pin { background: var(--color-brand-light); color: var(--color-brand-dark); }
|
|
849
|
+
#panel-sessions .session-item-meta { margin: 0; gap: 4px 8px; }
|
|
850
|
+
#panel-sessions .session-item .session-count-badge { background: transparent; box-shadow: none; color: var(--color-text-secondary); padding: 0 4px; }
|
|
851
|
+
#panel-sessions .session-item-hot { background: var(--color-surface-alt); color: var(--color-text-secondary); }
|
|
852
|
+
#panel-sessions .session-item .session-batch-check {
|
|
853
|
+
min-width: 44px;
|
|
854
|
+
min-height: 44px;
|
|
855
|
+
display: grid;
|
|
856
|
+
place-items: center;
|
|
857
|
+
margin-inline-end: 0;
|
|
858
|
+
padding: 0;
|
|
859
|
+
}
|
|
860
|
+
#panel-sessions .session-item .session-batch-check-mark {
|
|
861
|
+
position: relative;
|
|
862
|
+
pointer-events: none;
|
|
863
|
+
}
|
|
864
|
+
#panel-sessions .session-batch-check input:focus-visible + .session-batch-check-mark {
|
|
865
|
+
outline: 2px solid var(--color-brand-dark);
|
|
866
|
+
outline-offset: 2px;
|
|
867
|
+
}
|
|
868
|
+
#panel-sessions .session-match-snippets { flex: 0 0 100%; min-width: 0; }
|
|
869
|
+
#panel-sessions .session-match-snippet { border: 0; }
|
|
870
|
+
@media (max-width: 720px) {
|
|
871
|
+
#panel-sessions .session-list > .session-item { height: auto; padding-block: 4px; }
|
|
872
|
+
#panel-sessions .session-item-meta { gap: 4px; }
|
|
873
|
+
#panel-sessions .session-item-meta > span { font-size: 14px; }
|
|
874
|
+
}
|
|
875
|
+
@media (prefers-reduced-motion: reduce) {
|
|
876
|
+
#panel-sessions .session-list > .session-item, #panel-sessions .session-item-copy { transition: none; }
|
|
877
|
+
}
|
|
@@ -353,14 +353,19 @@
|
|
|
353
353
|
|
|
354
354
|
.session-msg-header {
|
|
355
355
|
display: flex;
|
|
356
|
-
align-items:
|
|
356
|
+
align-items: center;
|
|
357
357
|
justify-content: space-between;
|
|
358
358
|
gap: var(--spacing-xs);
|
|
359
|
-
margin-bottom:
|
|
359
|
+
margin-bottom: 8px;
|
|
360
360
|
font-size: var(--font-size-caption);
|
|
361
361
|
color: var(--color-text-tertiary);
|
|
362
362
|
}
|
|
363
363
|
|
|
364
|
+
.session-msg-header .session-feature-controls {
|
|
365
|
+
/* Use the card padding and body gap to preserve 44px targets in a 28px row. */
|
|
366
|
+
margin-block: -8px;
|
|
367
|
+
}
|
|
368
|
+
|
|
364
369
|
.session-msg-meta {
|
|
365
370
|
min-width: 0;
|
|
366
371
|
flex: 1;
|
|
@@ -382,44 +387,55 @@
|
|
|
382
387
|
}
|
|
383
388
|
|
|
384
389
|
.session-msg-copy {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
390
|
+
/* Reuse the message header's hit-target space without increasing its height. */
|
|
391
|
+
margin-block: -8px;
|
|
392
|
+
margin-inline-end: -8px;
|
|
393
|
+
flex: 0 0 auto;
|
|
394
|
+
width: 44px;
|
|
395
|
+
height: 44px;
|
|
396
|
+
padding: 0;
|
|
397
|
+
border: 0;
|
|
393
398
|
border-radius: 8px;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
399
|
+
background: transparent;
|
|
400
|
+
color: var(--color-text-secondary);
|
|
401
|
+
display: grid;
|
|
402
|
+
place-items: center;
|
|
397
403
|
cursor: pointer;
|
|
398
|
-
|
|
399
|
-
transition: all var(--transition-fast) var(--ease-spring);
|
|
404
|
+
transition: color var(--transition-fast) var(--ease-spring), background-color var(--transition-fast) var(--ease-spring);
|
|
400
405
|
}
|
|
401
406
|
|
|
402
407
|
.session-msg-copy:hover {
|
|
403
|
-
|
|
404
|
-
background: var(--color-surface);
|
|
408
|
+
background: var(--color-surface-alt);
|
|
405
409
|
color: var(--color-brand);
|
|
406
|
-
transform: translateY(-1px);
|
|
407
410
|
}
|
|
408
411
|
|
|
409
412
|
.session-msg-copy:active {
|
|
410
|
-
|
|
413
|
+
background: var(--color-brand-light);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.session-msg-copy:focus-visible {
|
|
417
|
+
outline: 2px solid var(--color-brand);
|
|
418
|
+
outline-offset: -2px;
|
|
411
419
|
}
|
|
412
420
|
|
|
413
421
|
.session-msg-copy svg {
|
|
414
|
-
width:
|
|
415
|
-
height:
|
|
422
|
+
width: 8px;
|
|
423
|
+
height: 8px;
|
|
416
424
|
}
|
|
417
425
|
|
|
418
|
-
|
|
419
|
-
|
|
426
|
+
@media (max-width: 720px) {
|
|
427
|
+
.session-msg.user > .session-msg-header,
|
|
428
|
+
.session-msg.user .session-msg-meta {
|
|
429
|
+
gap: 4px;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.session-msg-copy {
|
|
433
|
+
margin-inline-end: -16px;
|
|
434
|
+
}
|
|
420
435
|
}
|
|
421
436
|
|
|
422
437
|
.session-msg-content {
|
|
438
|
+
border-top: 1px solid var(--color-border-strong);
|
|
423
439
|
font-size: var(--font-size-secondary);
|
|
424
440
|
line-height: 1.6;
|
|
425
441
|
color: var(--color-text-primary);
|
|
@@ -793,48 +809,45 @@
|
|
|
793
809
|
display: block;
|
|
794
810
|
padding: 0;
|
|
795
811
|
border: 0;
|
|
796
|
-
border-radius:
|
|
812
|
+
border-radius: var(--radius-sm);
|
|
797
813
|
background: var(--color-surface-alt);
|
|
798
814
|
box-shadow: none;
|
|
799
815
|
overflow: hidden;
|
|
816
|
+
container: handoff / inline-size;
|
|
800
817
|
}
|
|
801
818
|
.thread-handoff-summary {
|
|
802
819
|
display: flex;
|
|
803
820
|
align-items: center;
|
|
804
|
-
gap:
|
|
821
|
+
gap: var(--spacing-xs);
|
|
805
822
|
min-height: 56px;
|
|
806
|
-
padding:
|
|
823
|
+
padding: var(--spacing-sm);
|
|
807
824
|
cursor: pointer;
|
|
808
825
|
list-style: none;
|
|
809
|
-
font-size:
|
|
826
|
+
font-size: var(--font-size-large);
|
|
810
827
|
font-weight: 600;
|
|
811
828
|
color: var(--color-text-primary);
|
|
812
|
-
transition: background 160ms ease;
|
|
829
|
+
transition: background-color 160ms var(--ease-out-expo);
|
|
813
830
|
}
|
|
814
831
|
.thread-handoff-summary::-webkit-details-marker { display: none; }
|
|
815
832
|
.thread-handoff-summary::before {
|
|
816
833
|
content: '';
|
|
817
834
|
width: 6px;
|
|
818
835
|
height: 6px;
|
|
836
|
+
flex-shrink: 0;
|
|
819
837
|
border-right: 1.5px solid currentColor;
|
|
820
838
|
border-bottom: 1.5px solid currentColor;
|
|
821
839
|
transform: rotate(-45deg);
|
|
822
|
-
transition: transform 160ms ease;
|
|
840
|
+
transition: transform 160ms var(--ease-out-expo);
|
|
823
841
|
}
|
|
824
842
|
.thread-handoff[open] > .thread-handoff-summary::before { transform: rotate(45deg); }
|
|
825
|
-
.thread-handoff-summary-hint {
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
}
|
|
831
|
-
.thread-handoff-
|
|
832
|
-
.thread-handoff-
|
|
833
|
-
.thread-handoff-body .session-workspace-subtitle { margin: 0; }
|
|
834
|
-
.thread-handoff-form { display: grid; gap: 20px; min-width: 0; }
|
|
835
|
-
.thread-handoff-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
|
|
836
|
-
.thread-handoff-field .session-workspace-card-title { margin: 0; font-size: 13px; }
|
|
837
|
-
.thread-handoff small { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--color-text-tertiary); }
|
|
843
|
+
.thread-handoff-summary-hint { margin-left: auto; font-size: max(14px, var(--font-size-secondary)); font-weight: 400; color: var(--color-text-secondary); }
|
|
844
|
+
.thread-handoff-body { display: grid; gap: var(--spacing-sm); padding: 0 var(--spacing-sm) var(--spacing-sm); min-width: 0; }
|
|
845
|
+
.thread-handoff-body .session-workspace-header { align-items: center; gap: var(--spacing-xs); }
|
|
846
|
+
.thread-handoff-body .session-workspace-subtitle { margin: 0; max-width: 72ch; font-size: max(14px, var(--font-size-secondary)); color: var(--color-text-secondary); line-height: 1.6; }
|
|
847
|
+
.thread-handoff-form { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(0, 1.3fr); gap: var(--spacing-sm); min-width: 0; }
|
|
848
|
+
.thread-handoff-field { display: flex; flex-direction: column; align-self: start; gap: var(--spacing-xs); min-width: 0; }
|
|
849
|
+
.thread-handoff-field .session-workspace-card-title, .thread-handoff-copy .session-workspace-card-title { margin: 0; font-size: max(14px, var(--font-size-secondary)); font-weight: 600; }
|
|
850
|
+
.thread-handoff small { margin-left: var(--spacing-xs); font-size: inherit; font-weight: 400; color: var(--color-text-secondary); }
|
|
838
851
|
#panel-sessions .thread-handoff .session-query-input {
|
|
839
852
|
width: 100%;
|
|
840
853
|
max-width: none;
|
|
@@ -842,41 +855,66 @@
|
|
|
842
855
|
min-height: 44px;
|
|
843
856
|
box-sizing: border-box;
|
|
844
857
|
padding: 12px;
|
|
845
|
-
border
|
|
846
|
-
|
|
858
|
+
border: 1px solid var(--color-border-strong);
|
|
859
|
+
border-radius: var(--radius-sm);
|
|
860
|
+
color: var(--color-text-primary);
|
|
861
|
+
font-size: max(16px, var(--font-size-body));
|
|
847
862
|
background: var(--color-surface);
|
|
848
863
|
}
|
|
849
|
-
#panel-sessions .thread-handoff textarea.session-query-input { min-height:
|
|
850
|
-
.thread-handoff-optional-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
864
|
+
#panel-sessions .thread-handoff textarea.session-query-input { min-height: 104px; resize: vertical; line-height: 1.6; }
|
|
865
|
+
.thread-handoff-optional, .thread-handoff-actions { grid-column: 1 / -1; }
|
|
866
|
+
.thread-handoff-optional-summary, .thread-handoff-audit > summary {
|
|
867
|
+
display: list-item;
|
|
868
|
+
width: fit-content;
|
|
869
|
+
max-width: 100%;
|
|
854
870
|
min-height: 44px;
|
|
871
|
+
align-content: center;
|
|
855
872
|
cursor: pointer;
|
|
856
|
-
font-size:
|
|
873
|
+
font-size: max(14px, var(--font-size-secondary));
|
|
857
874
|
color: var(--color-text-secondary);
|
|
858
875
|
}
|
|
859
|
-
.thread-handoff-optional[open] .session-workspace-grid {
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}
|
|
864
|
-
.thread-handoff-
|
|
865
|
-
.thread-handoff
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
#panel-sessions .thread-handoff-submit:disabled { opacity: .45; cursor: not-allowed; }
|
|
876
|
+
.thread-handoff-optional[open] .session-workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--spacing-xs); gap: var(--spacing-sm); }
|
|
877
|
+
.thread-handoff-actions { display: flex; justify-content: flex-end; gap: var(--spacing-sm); }
|
|
878
|
+
.thread-handoff .btn-mini { min-height: 44px; min-width: 44px; padding: 8px 16px; font-size: max(14px, var(--font-size-secondary)); transition: background-color 160ms var(--ease-out-expo), color 160ms var(--ease-out-expo), opacity 160ms var(--ease-out-expo); }
|
|
879
|
+
.thread-handoff .btn-mini:not(.thread-handoff-submit) { border-color: transparent; background: transparent; color: var(--color-text-secondary); }
|
|
880
|
+
.thread-handoff .btn-mini:not(.thread-handoff-submit):hover:not(:disabled) { background: var(--color-surface); color: var(--color-text-primary); }
|
|
881
|
+
#panel-sessions .thread-handoff-submit { background: var(--color-text-primary); color: var(--color-surface); border-color: transparent; }
|
|
882
|
+
#panel-sessions .thread-handoff-submit:hover:not(:disabled) { background: var(--color-text-secondary); }
|
|
883
|
+
.thread-handoff .btn-mini:active:not(:disabled) { opacity: .76; }
|
|
884
|
+
.thread-handoff .btn-mini:disabled { opacity: .45; cursor: not-allowed; }
|
|
869
885
|
.thread-handoff-summary:hover { background: var(--color-brand-light); }
|
|
870
886
|
.thread-handoff-summary:active { background: var(--color-brand-subtle); }
|
|
871
|
-
.thread-handoff summary:focus-visible
|
|
872
|
-
|
|
887
|
+
.thread-handoff :is(summary, button, input, textarea):focus-visible { outline: 2px solid var(--color-brand); outline-offset: -2px; }
|
|
888
|
+
.thread-handoff-copy { display: grid; gap: var(--spacing-xs); min-width: 0; }
|
|
889
|
+
#panel-sessions .thread-handoff-copy textarea.session-query-input { max-height: 240px; font-family: var(--font-family-mono); font-size: max(14px, var(--font-size-secondary)); }
|
|
890
|
+
.thread-handoff-body .state-message { margin: 0; overflow-wrap: anywhere; font-size: max(14px, var(--font-size-secondary)); }
|
|
891
|
+
.thread-handoff-history { min-width: 0; }
|
|
892
|
+
.thread-handoff-history h3 { margin: 0 0 var(--spacing-xs); font-size: var(--font-size-body); font-weight: 600; }
|
|
893
|
+
.thread-handoff-history .session-workspace-list { padding: 0; gap: 0; list-style: none; font-size: max(14px, var(--font-size-secondary)); line-height: 1.6; }
|
|
894
|
+
.thread-handoff-history .session-workspace-card { padding: var(--spacing-sm) 0; border: 0; border-radius: 0; background: transparent; font-size: max(14px, var(--font-size-secondary)); }
|
|
895
|
+
.thread-handoff-record + .thread-handoff-record { border-top: 1px solid var(--color-border-soft); }
|
|
896
|
+
.thread-handoff-record-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--spacing-xs); }
|
|
897
|
+
.thread-handoff-record-title { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
|
|
898
|
+
.thread-handoff-record-title strong { font-size: var(--font-size-body); font-weight: 600; color: var(--color-text-primary); }
|
|
899
|
+
.thread-handoff-record-status { font-size: max(14px, var(--font-size-secondary)); color: var(--color-text-secondary); }
|
|
900
|
+
.thread-handoff-record-route, .thread-handoff-record-reason, .thread-handoff-read-proof { margin: var(--spacing-xs) 0 0; overflow-wrap: anywhere; }
|
|
901
|
+
.thread-handoff-record-reason { max-width: 72ch; }
|
|
902
|
+
.thread-handoff-audit { min-width: 0; }
|
|
903
|
+
.thread-handoff-audit dl { display: grid; gap: var(--spacing-xs); margin: var(--spacing-xs) 0 0; }
|
|
904
|
+
.thread-handoff-audit dl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--spacing-xs); }
|
|
905
|
+
.thread-handoff-audit dt { color: var(--color-text-secondary); font-weight: 400; }
|
|
906
|
+
.thread-handoff-audit dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--color-text-primary); }
|
|
907
|
+
.thread-handoff-audit code { font-size: inherit; }
|
|
908
|
+
.thread-handoff-audit pre { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
|
|
909
|
+
.thread-handoff-evidence { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
|
|
910
|
+
.thread-handoff-history .session-workspace-empty { margin: 0; padding: var(--spacing-xs) 0; font-size: max(14px, var(--font-size-secondary)); color: var(--color-text-secondary); }
|
|
911
|
+
@container handoff (max-width: 560px) {
|
|
912
|
+
.thread-handoff-form, .thread-handoff-optional[open] .session-workspace-grid { grid-template-columns: minmax(0, 1fr); }
|
|
913
|
+
.thread-handoff-body .session-workspace-header { align-items: flex-start; flex-wrap: wrap; }
|
|
914
|
+
.thread-handoff-actions > button { width: 100%; }
|
|
873
915
|
}
|
|
874
|
-
@media (
|
|
875
|
-
.thread-handoff-summary {
|
|
876
|
-
.thread-handoff-body { padding: 0 16px 16px; gap: 16px; }
|
|
877
|
-
.thread-handoff-body .session-workspace-header { align-items: flex-start; }
|
|
878
|
-
.thread-handoff-actions { align-items: stretch; flex-direction: column; gap: 12px; }
|
|
879
|
-
.thread-handoff-optional-summary small { width: 100%; margin: 4px 0 8px; }
|
|
916
|
+
@media (prefers-reduced-motion: reduce) {
|
|
917
|
+
.thread-handoff-summary, .thread-handoff-summary::before, .thread-handoff .btn-mini { transition: none; }
|
|
880
918
|
}
|
|
881
919
|
|
|
882
920
|
/* Keep the session tab close to the viewport edge without changing other tabs. */
|
|
@@ -908,3 +908,11 @@
|
|
|
908
908
|
font-size: 7px;
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
|
+
|
|
912
|
+
/* Keep wide numeric breakdowns inside the usage card on compact screens. */
|
|
913
|
+
.usage-records { margin: 16px 0; min-width: 0; }
|
|
914
|
+
.usage-records > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
|
|
915
|
+
.usage-records-table { overflow-x: auto; max-width: 100%; margin: 16px 0; }
|
|
916
|
+
.usage-records-table table { width: 100%; border-collapse: collapse; }
|
|
917
|
+
.usage-records-table th, .usage-records-table td { padding: 8px; text-align: right; white-space: nowrap; }
|
|
918
|
+
.usage-records-table th:first-child, .usage-records-table td:first-child { text-align: left; }
|
|
@@ -823,6 +823,12 @@
|
|
|
823
823
|
[data-theme="violet"] .session-batch-check input:checked + .session-batch-check-mark::after {
|
|
824
824
|
border:solid var(--color-border);
|
|
825
825
|
}
|
|
826
|
+
[data-theme="violet"] #panel-sessions .session-list > .session-item {
|
|
827
|
+
box-shadow:none;
|
|
828
|
+
}
|
|
829
|
+
[data-theme="violet"] #panel-sessions .session-item .session-count-badge {
|
|
830
|
+
box-shadow:none;
|
|
831
|
+
}
|
|
826
832
|
[data-theme="violet"] .session-preview-header {
|
|
827
833
|
background-color:color-mix(in oklch, var(--color-surface) 92%, transparent);
|
|
828
834
|
}
|
|
@@ -890,9 +896,6 @@
|
|
|
890
896
|
[data-theme="violet"] #panel-sessions .thread-handoff {
|
|
891
897
|
box-shadow:none;
|
|
892
898
|
}
|
|
893
|
-
[data-theme="violet"] #panel-sessions .thread-handoff-submit {
|
|
894
|
-
color:var(--color-surface-elevated);
|
|
895
|
-
}
|
|
896
899
|
[data-theme="violet"] .usage-range-group {
|
|
897
900
|
background-image:none; background-color:color-mix(in oklch, var(--color-surface) 90%, transparent);
|
|
898
901
|
border:1px solid color-mix(in oklch, var(--color-border) 8%, transparent);
|
|
@@ -1539,6 +1542,9 @@
|
|
|
1539
1542
|
[data-theme="violet"] #panel-plugins .prompt-template-item.active {
|
|
1540
1543
|
box-shadow:none;
|
|
1541
1544
|
}
|
|
1545
|
+
[data-theme="violet"] .file-sharing-row .file-sharing-icon {
|
|
1546
|
+
box-shadow:none;
|
|
1547
|
+
}
|
|
1542
1548
|
[data-theme="violet"] .docs-toolbar-card .install-action-tabs .btn-mini {
|
|
1543
1549
|
box-shadow:none;
|
|
1544
1550
|
}
|