codexmate 0.1.36 → 0.1.38

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 (43) hide show
  1. package/README.md +1 -1
  2. package/README.vi.md +1 -1
  3. package/README.zh.md +1 -1
  4. package/cli/desktop-release.js +73 -0
  5. package/cli/skills.js +103 -4
  6. package/cli/update.js +27 -15
  7. package/cli.js +9 -3
  8. package/package.json +2 -1
  9. package/web-ui/app.js +17 -0
  10. package/web-ui/modules/app.computed.main-tabs.mjs +12 -0
  11. package/web-ui/modules/app.methods.agents.mjs +0 -3
  12. package/web-ui/modules/app.methods.install.mjs +38 -2
  13. package/web-ui/modules/app.methods.prompts-editor.mjs +30 -6
  14. package/web-ui/modules/app.methods.provider-cache.mjs +3 -0
  15. package/web-ui/modules/app.methods.startup-claude.mjs +10 -5
  16. package/web-ui/modules/i18n/locales/en.mjs +25 -0
  17. package/web-ui/modules/i18n/locales/ja.mjs +26 -1
  18. package/web-ui/modules/i18n/locales/vi.mjs +25 -0
  19. package/web-ui/modules/i18n/locales/zh-tw.mjs +25 -0
  20. package/web-ui/modules/i18n/locales/zh.mjs +25 -0
  21. package/web-ui/modules/i18n.mjs +3 -2
  22. package/web-ui/modules/session-features.mjs +25 -1
  23. package/web-ui/modules/skills.methods.mjs +61 -16
  24. package/web-ui/partials/index/layout-header.html +91 -90
  25. package/web-ui/partials/index/modals-basic.html +22 -9
  26. package/web-ui/partials/index/panel-market.html +10 -3
  27. package/web-ui/partials/index/panel-plugins.html +13 -10
  28. package/web-ui/partials/index/panel-prompts.html +40 -20
  29. package/web-ui/partials/index/plugin-file-sharing.html +4 -4
  30. package/web-ui/partials/index/session-features.html +24 -7
  31. package/web-ui/res/web-ui-render.precompiled.js +831 -268
  32. package/web-ui/styles/layout-shell.css +176 -259
  33. package/web-ui/styles/plugins-panel.css +67 -46
  34. package/web-ui/styles/prompts-editor.css +127 -27
  35. package/web-ui/styles/session-features.css +12 -1
  36. package/web-ui/styles/settings-panel.css +16 -14
  37. package/web-ui/styles/system-prompt.css +9 -4
  38. package/web-ui/styles/theme-dark-tokens.css +4 -0
  39. package/web-ui/styles/theme-dark.css +5 -31
  40. package/web-ui/styles/theme-ocean-tokens.css +3 -0
  41. package/web-ui/styles/theme-ocean.css +3 -26
  42. package/web-ui/styles/theme-violet-tokens.css +3 -0
  43. package/web-ui/styles/theme-violet.css +12 -59
@@ -22,6 +22,8 @@ body::after {
22
22
  :root {
23
23
  --side-rail-width: 248px;
24
24
  --side-rail-collapsed-width: 136px;
25
+ --side-toolbar-height: 52px;
26
+ --side-popup-gap: 8px;
25
27
  }
26
28
 
27
29
  /* ============================================
@@ -54,9 +56,8 @@ body::after {
54
56
  display: flex;
55
57
  flex-direction: column;
56
58
  gap: 0;
57
- padding: 14px 10px;
58
- background:
59
- linear-gradient(180deg, rgba(255, 252, 248, 0.95) 0%, rgba(255, 248, 241, 0.89) 100%);
59
+ padding: 14px 10px 0;
60
+ background: var(--side-rail-surface, #FAF7F5);
60
61
  border-right: 1px solid rgba(137, 111, 94, 0.10);
61
62
  border-radius: 0;
62
63
  box-shadow: 8px 0 28px rgba(92, 68, 52, 0.05), 1px 0 0 rgba(255, 255, 255, 0.5);
@@ -106,13 +107,10 @@ body::after {
106
107
 
107
108
  .side-section {
108
109
  display: flex;
110
+ flex: 0 0 auto;
109
111
  flex-direction: column;
110
- gap: 3px;
111
- padding: 8px 4px;
112
- }
113
-
114
- .side-section + .side-section {
115
- border-top: 1px solid rgba(137, 111, 94, 0.08);
112
+ gap: 2px;
113
+ padding: 3px 0;
116
114
  }
117
115
 
118
116
  .side-rail-nav {
@@ -120,8 +118,10 @@ body::after {
120
118
  flex-direction: column;
121
119
  flex: 1 1 auto;
122
120
  gap: 0;
123
- padding-bottom: 64px;
121
+ min-height: 0;
122
+ overflow-x: hidden;
124
123
  overflow-y: auto;
124
+ scroll-padding-block: 4px;
125
125
  scrollbar-width: none;
126
126
  -ms-overflow-style: none;
127
127
  }
@@ -246,26 +246,18 @@ body::after {
246
246
  border-color: rgba(200, 121, 99, 0.7);
247
247
  }
248
248
 
249
- .side-rail-lang {
250
- position: absolute;
251
- bottom: 0;
252
- left: 0;
253
- right: 0;
249
+ .side-rail-footer {
250
+ position: relative;
254
251
  z-index: 2;
255
- padding: 10px 4px 6px;
256
- background: linear-gradient(180deg, rgba(255, 248, 241, 0), rgba(255, 248, 241, 0.94) 28%);
257
- border-top: 1px solid rgba(137, 111, 94, 0.08);
258
- backdrop-filter: blur(12px);
252
+ flex: 0 0 auto;
259
253
  display: flex;
260
- flex-direction: column;
254
+ flex-direction: row;
255
+ min-height: var(--side-toolbar-height);
256
+ padding-block: 4px;
261
257
  align-items: center;
258
+ justify-content: space-between;
262
259
  gap: 4px;
263
- }
264
-
265
- .side-rail-lang .lang-choice {
266
- background: rgba(255, 253, 252, 0.9);
267
- box-shadow: none;
268
- backdrop-filter: none;
260
+ border-top: 1px solid var(--side-toolbar-border, #EFEAE6);
269
261
  }
270
262
 
271
263
  .lang-switch {
@@ -370,119 +362,99 @@ body::after {
370
362
  }
371
363
 
372
364
  .side-section-title {
373
- font-size: 10px;
374
- font-weight: 700;
375
- color: var(--color-text-muted);
376
- letter-spacing: 0.08em;
377
- text-transform: uppercase;
378
- padding: 0 8px;
379
- margin-bottom: 6px;
365
+ padding-left: 10px;
366
+ color: var(--side-section-title-color, #8C827D);
367
+ font-size: 11px;
368
+ font-weight: 600;
369
+ line-height: 16px;
370
+ text-align: left;
371
+ }
372
+
373
+ /* Keep the rail compact without shortening localized labels. */
374
+ .side-section-title,
375
+ .side-item-title,
376
+ .brand-kicker,
377
+ .side-update-title,
378
+ .side-language-menu .side-rail-action span,
379
+ .side-language-option > :is(span, small) {
380
+ min-width: 0;
381
+ white-space: normal;
382
+ overflow-wrap: anywhere;
380
383
  }
381
384
 
382
385
  .side-item {
386
+ position: relative;
387
+ display: flex;
388
+ align-items: center;
389
+ gap: 10px;
383
390
  width: 100%;
384
- text-align: left;
385
- padding: 9px 12px 9px 14px;
386
- border-radius: 12px;
387
- border: 1px solid transparent;
391
+ min-height: 34px;
392
+ padding: 6px 4px 6px 10px;
393
+ border: 0;
394
+ border-radius: 8px;
388
395
  background: transparent;
389
396
  color: var(--color-text-secondary);
397
+ text-align: left;
390
398
  cursor: pointer;
391
- transition: border-color 180ms var(--ease-out-expo), background-color 180ms var(--ease-out-expo), color 180ms var(--ease-out-expo), box-shadow 180ms var(--ease-out-expo), transform 180ms var(--ease-out-expo);
392
- display: flex;
393
- flex-direction: column;
394
- gap: 3px;
395
- box-shadow: none;
396
- position: relative;
397
- }
398
-
399
- .side-item-compact {
400
- padding-top: 7px;
401
- padding-bottom: 7px;
402
- gap: 2px;
403
- }
404
-
405
- .side-item-compact::before {
406
- height: 14px;
399
+ transition: background-color 160ms ease, color 160ms ease;
407
400
  }
408
401
 
409
-
410
402
  .side-item-icon {
411
- display: none;
412
- width: 28px;
413
- height: 28px;
414
- border-radius: 10px;
415
- align-items: center;
416
- justify-content: center;
417
- font-size: 15px;
418
- font-weight: 700;
419
- line-height: 1;
420
- color: currentColor;
421
- }
422
-
423
- .side-item::before {
424
- content: "";
425
- position: absolute;
426
- left: 2px;
427
- top: 50%;
428
- transform: translateY(-50%);
429
- width: 3px;
430
- height: 18px;
431
- border-radius: 0 3px 3px 0;
432
- background: transparent;
403
+ flex: 0 0 auto;
404
+ width: 16px;
405
+ height: 16px;
433
406
  }
434
407
 
435
- .side-item:hover {
408
+ .side-item:where(:hover:not(.nav-intent-inactive)) {
436
409
  background: rgba(255, 255, 255, 0.64);
437
410
  color: var(--color-text-primary);
438
- transform: translateX(2px);
411
+ }
412
+
413
+ .side-item:focus-visible {
414
+ outline: 2px solid var(--color-brand);
415
+ outline-offset: -2px;
439
416
  }
440
417
 
441
418
  .side-item.side-item-disabled,
442
419
  .side-item.side-item-disabled:hover {
443
- border-color: transparent;
444
420
  background: transparent;
445
421
  color: var(--color-text-muted);
446
422
  cursor: not-allowed;
447
423
  opacity: 0.62;
448
- transform: none;
449
424
  box-shadow: none;
450
425
  }
451
426
 
452
- .side-item.active,
453
- .side-item.nav-intent-active {
454
- border-color: rgba(200, 121, 99, 0.22);
455
- background:
456
- linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(200, 121, 99, 0.10));
457
- color: var(--color-brand-dark);
458
- box-shadow: 0 8px 20px rgba(92, 68, 52, 0.06);
459
- }
460
-
461
- .side-item.nav-intent-inactive,
462
- .side-item.active.nav-intent-inactive {
463
- border-color: transparent;
464
- background: transparent;
465
- color: var(--color-text-secondary);
466
- box-shadow: none;
427
+ .side-item:is(.active, .nav-intent-active):not(.nav-intent-inactive) {
428
+ background-color: var(--color-surface);
429
+ background-color: color-mix(in srgb, var(--color-brand) 16%, var(--color-surface));
430
+ color: var(--color-text-primary);
467
431
  }
468
432
 
469
- .side-item.active::before,
470
- .side-item.nav-intent-active::before {
471
- background: var(--color-brand);
433
+ .side-item:is(.active, .nav-intent-active):not(.nav-intent-inactive)::before {
434
+ content: "";
435
+ position: absolute;
436
+ inset: 8px auto 8px 4px;
437
+ width: 3px;
438
+ border-radius: 2px;
439
+ background-color: var(--color-brand-dark);
440
+ pointer-events: none;
472
441
  }
473
442
 
474
- .side-item.nav-intent-inactive::before,
475
- .side-item.active.nav-intent-inactive::before {
443
+ .side-item.nav-intent-inactive {
476
444
  background: transparent;
445
+ color: var(--color-text-secondary);
477
446
  }
478
447
 
479
448
  .side-item-title {
480
449
  font-size: 13px;
481
450
  font-weight: 600;
482
- letter-spacing: -0.01em;
483
451
  line-height: 1.25;
484
452
  }
485
453
 
454
+ .side-item:is(.active, .nav-intent-active):not(.nav-intent-inactive) .side-item-title {
455
+ font-weight: 700;
456
+ }
457
+
486
458
  .side-item-meta {
487
459
  font-size: 11px;
488
460
  color: var(--color-text-muted);
@@ -494,8 +466,7 @@ body::after {
494
466
  min-height: 1.4em;
495
467
  }
496
468
 
497
- .side-item.active .side-item-meta,
498
- .side-item.nav-intent-active .side-item-meta {
469
+ .side-item:is(.active, .nav-intent-active):not(.nav-intent-inactive) .side-item-meta {
499
470
  color: var(--color-text-secondary);
500
471
  }
501
472
 
@@ -510,101 +481,21 @@ body::after {
510
481
  pointer-events: none;
511
482
  user-select: none;
512
483
  cursor: default;
513
- flex: 0 0 auto;
484
+ flex: 0 0 4px;
485
+ min-height: 0;
486
+ height: 4px;
487
+ padding-block: 0;
488
+ overflow: hidden;
514
489
  }
515
490
 
516
491
  .sidebar-collapsed .side-rail {
517
- padding: 14px 8px;
518
- }
519
-
520
- .sidebar-collapsed .brand-block {
521
- padding: 14px 6px 16px;
522
- align-items: stretch;
523
- }
524
-
525
- .sidebar-collapsed .brand-head {
526
- justify-content: flex-start;
527
- gap: 8px;
492
+ padding: 14px 8px 0;
528
493
  }
529
494
 
530
495
  .sidebar-collapsed .side-item-meta {
531
496
  display: none;
532
497
  }
533
498
 
534
- .sidebar-collapsed .brand-copy,
535
- .sidebar-collapsed .side-update-copy {
536
- display: flex;
537
- }
538
-
539
- .sidebar-collapsed .brand-kicker {
540
- font-size: 13px;
541
- white-space: nowrap;
542
- }
543
-
544
- .sidebar-collapsed .side-update-notice {
545
- padding: 7px 8px;
546
- gap: 6px;
547
- }
548
-
549
- .sidebar-collapsed .side-section {
550
- padding: 5px 0;
551
- align-items: stretch;
552
- }
553
-
554
- .sidebar-collapsed .side-section + .side-section {
555
- border-top-color: rgba(137, 111, 94, 0.06);
556
- }
557
-
558
- .sidebar-collapsed .side-item {
559
- width: 100%;
560
- min-height: 36px;
561
- padding: 8px 10px;
562
- align-items: center;
563
- justify-content: center;
564
- text-align: center;
565
- gap: 0;
566
- border-radius: 14px;
567
- }
568
-
569
- .sidebar-collapsed .side-item-icon {
570
- display: none;
571
- }
572
-
573
- .sidebar-collapsed .side-section-title {
574
- display: block;
575
- padding: 0 10px;
576
- margin: 4px 0 5px;
577
- text-align: left;
578
- white-space: nowrap;
579
- }
580
-
581
- .sidebar-collapsed .side-item-title {
582
- display: block;
583
- max-width: 100%;
584
- white-space: nowrap;
585
- font-size: 12px;
586
- line-height: 1.2;
587
- }
588
-
589
- .sidebar-collapsed .side-item::before {
590
- left: -3px;
591
- }
592
-
593
- .sidebar-collapsed .side-rail-lang {
594
- padding-inline: 4px;
595
- }
596
-
597
- .sidebar-collapsed .side-rail-lang-actions {
598
- justify-content: center;
599
- width: calc(100% - 8px);
600
- }
601
-
602
- .sidebar-collapsed .side-rail-lang .language-settings-link {
603
- display: inline-flex;
604
- padding-inline: 10px;
605
- font-size: 12px;
606
- }
607
-
608
499
  @media (min-width: 721px) {
609
500
  body:not(.force-compact) #app > .top-tabs {
610
501
  display: none;
@@ -613,23 +504,23 @@ body::after {
613
504
 
614
505
  .brand-block {
615
506
  display: flex;
507
+ flex: 0 0 auto;
616
508
  flex-direction: column;
617
- align-items: flex-start;
618
- margin-bottom: 0;
619
- padding: 16px 12px 20px;
620
- border-bottom: 0.5px solid rgba(0, 0, 0, 0.06);
621
- background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
509
+ gap: 4px;
510
+ min-height: 70px;
511
+ padding-bottom: 6px;
622
512
  }
623
513
 
624
514
  .brand-head {
625
515
  display: flex;
626
516
  align-items: center;
627
- gap: 10px;
517
+ gap: 6px;
518
+ min-height: 28px;
628
519
  }
629
520
 
630
521
  .brand-logo {
631
- width: 28px;
632
- height: 28px;
522
+ width: 24px;
523
+ height: 24px;
633
524
  border-radius: 6px;
634
525
  object-fit: cover;
635
526
  flex-shrink: 0;
@@ -666,15 +557,14 @@ body::after {
666
557
  .brand-kicker {
667
558
  font-size: 15px;
668
559
  line-height: 1.2;
669
- font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
670
- color: #1d1d1f;
560
+ color: var(--color-text-primary);
671
561
  letter-spacing: -0.01em;
672
- font-weight: 500;
562
+ font-weight: 700;
673
563
  }
674
564
 
675
565
  @supports (-webkit-background-clip: text) or (background-clip: text) {
676
566
  .brand-kicker {
677
- background: linear-gradient(180deg, #1d1d1f 0%, #2d2d2f 100%);
567
+ background: linear-gradient(var(--color-text-primary), var(--color-text-primary));
678
568
  -webkit-background-clip: text;
679
569
  -webkit-text-fill-color: transparent;
680
570
  background-clip: text;
@@ -753,16 +643,17 @@ body::after {
753
643
  }
754
644
 
755
645
  .side-update-notice {
756
- width: 100%;
757
- margin-top: 12px;
758
- padding: 8px 9px;
646
+ min-height: 32px;
647
+ margin-inline: -6px;
648
+ padding: 4px 10px;
759
649
  border: 1px solid rgba(200, 121, 99, 0.16);
760
- border-radius: 12px;
650
+ border-radius: 999px;
761
651
  background: rgba(255, 255, 255, 0.52);
762
652
  color: var(--color-text-secondary);
763
653
  display: flex;
764
654
  align-items: center;
765
- gap: 8px;
655
+ gap: 2px;
656
+ font-size: 12px;
766
657
  text-align: left;
767
658
  cursor: pointer;
768
659
  box-shadow: none;
@@ -811,27 +702,25 @@ body::after {
811
702
  flex-shrink: 0;
812
703
  }
813
704
 
814
- .side-update-copy {
815
- min-width: 0;
816
- display: flex;
817
- flex-direction: column;
818
- gap: 1px;
705
+ .side-update-notice .side-update-dot {
706
+ width: 6px;
707
+ height: 6px;
708
+ box-shadow: none;
709
+ }
710
+
711
+ .side-update-notice--available .side-update-dot {
712
+ background: #E58B73;
819
713
  }
820
714
 
821
715
  .side-update-title {
822
- font-size: 11px;
823
- line-height: 1.25;
824
- font-weight: 650;
825
- color: inherit;
716
+ flex: 1 1 auto;
717
+ font-weight: 600;
826
718
  }
827
719
 
828
- .side-update-meta {
829
- font-size: 10px;
830
- line-height: 1.2;
831
- color: var(--color-text-tertiary);
832
- white-space: nowrap;
833
- overflow: hidden;
834
- text-overflow: ellipsis;
720
+ .side-update-chevron {
721
+ width: 6px;
722
+ height: 10px;
723
+ flex: 0 0 auto;
835
724
  }
836
725
 
837
726
  .brand-version-fade-enter-active,
@@ -1031,28 +920,21 @@ body::after {
1031
920
  transform: translateY(0);
1032
921
  }
1033
922
 
1034
- .side-rail-lang-actions {
1035
- width: calc(100% - 20px);
1036
- display: flex;
1037
- align-items: center;
1038
- justify-content: center;
1039
- gap: 8px;
1040
- }
1041
-
1042
923
  .side-language-menu {
1043
924
  position: relative;
1044
- flex: 1 1 auto;
1045
925
  min-width: 0;
1046
- display: flex;
1047
- justify-content: center;
926
+ flex: 1 1 auto;
1048
927
  }
1049
928
 
1050
929
  .side-language-dropdown {
1051
930
  position: absolute;
1052
931
  left: 0;
1053
- bottom: calc(100% + 8px);
932
+ bottom: calc(100% + var(--side-popup-gap));
1054
933
  z-index: 20;
1055
- width: max(100%, 176px);
934
+ width: 176px;
935
+ max-height: calc(100dvh - var(--side-toolbar-height) - 16px);
936
+ overflow: auto;
937
+ overscroll-behavior: contain;
1056
938
  padding: 6px;
1057
939
  border: 1px solid var(--color-border-soft);
1058
940
  border-radius: var(--radius-md);
@@ -1096,38 +978,73 @@ body::after {
1096
978
  color: var(--color-text-primary);
1097
979
  }
1098
980
 
1099
- .side-rail-lang .language-settings-link {
1100
- min-width: 0;
1101
- width: fit-content;
1102
- max-width: 100%;
1103
- flex: 0 1 auto;
1104
- margin-inline: auto;
1105
- box-shadow: none;
1106
- }
1107
- .side-announcement-button {
1108
- flex: 0 0 36px;
1109
- width: 36px;
1110
- height: 36px;
1111
- display: inline-grid;
1112
- place-items: center;
981
+ .side-rail-action {
982
+ display: flex;
983
+ align-items: center;
984
+ justify-content: center;
985
+ gap: 3px;
986
+ height: 34px;
987
+ padding: 0 4px;
988
+ border: 1px solid var(--side-toolbar-border, #EFEAE6);
1113
989
  border-radius: 999px;
1114
- border: 1px solid rgba(163, 146, 134, 0.28);
1115
- background: rgba(255, 253, 252, 0.92);
990
+ background: var(--color-surface-elevated);
1116
991
  color: var(--color-text-secondary);
1117
- box-shadow: none;
992
+ font: inherit;
993
+ font-size: 12px;
994
+ font-weight: 600;
995
+ line-height: 1.3;
1118
996
  cursor: pointer;
1119
- transition: background-color var(--transition-fast) var(--ease-smooth), border-color var(--transition-fast) var(--ease-smooth), color var(--transition-fast) var(--ease-smooth), transform var(--transition-fast) var(--ease-smooth);
997
+ transition: background-color 160ms ease, color 160ms ease;
1120
998
  }
1121
999
 
1122
- .side-announcement-button:hover {
1123
- border-color: rgba(200, 121, 99, 0.58);
1124
- background: rgba(255, 255, 255, 0.96);
1000
+ .side-language-menu .side-rail-action {
1001
+ width: 100%;
1002
+ height: auto;
1003
+ min-height: 34px;
1004
+ padding-block: 4px;
1005
+ }
1006
+
1007
+ .side-announcement-button {
1008
+ position: relative;
1009
+ flex: 0 0 auto;
1010
+ width: 34px;
1011
+ height: 34px;
1012
+ padding: 0;
1013
+ border-radius: 50%;
1014
+ }
1015
+
1016
+ .side-announcement-unread {
1017
+ position: absolute;
1018
+ top: 4px;
1019
+ right: 4px;
1020
+ width: 6px;
1021
+ height: 6px;
1022
+ border-radius: 50%;
1023
+ background: #D9454B;
1024
+ }
1025
+
1026
+ .side-rail-action:hover,
1027
+ .side-rail-action:active,
1028
+ .side-rail-action[aria-expanded="true"] {
1029
+ background: var(--color-brand-light);
1125
1030
  color: var(--color-text-primary);
1126
- transform: translateY(-1px);
1127
1031
  }
1128
1032
 
1129
- .side-announcement-button:active {
1130
- transform: translateY(0);
1033
+ .side-rail-action:focus-visible {
1034
+ outline: 2px solid var(--color-brand);
1035
+ outline-offset: -2px;
1036
+ }
1037
+
1038
+ .side-rail-action-icon {
1039
+ flex: 0 0 auto;
1040
+ width: 16px;
1041
+ height: 16px;
1042
+ }
1043
+
1044
+ .side-rail-action-chevron {
1045
+ flex: 0 0 auto;
1046
+ width: 10px;
1047
+ height: 10px;
1131
1048
  }
1132
1049
 
1133
1050
  .lang-fab .language-settings-link {