@sourcegraph/cody-web 0.7.4 → 0.7.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CodyWebChat.d.ts","sourceRoot":"","sources":["../../../lib/components/CodyWebChat.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,iBAAiB,EAAmD,MAAM,OAAO,CAAA;AAgCxG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAK9C,OAAO,6BAA6B,CAAA;AAWpC,MAAM,WAAW,gBAAgB;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AACD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,CAqC3D,CAAA"}
1
+ {"version":3,"file":"CodyWebChat.d.ts","sourceRoot":"","sources":["../../../lib/components/CodyWebChat.tsx"],"names":[],"mappings":"AACA,OAAO,EAAW,KAAK,iBAAiB,EAAsC,MAAM,OAAO,CAAA;AA8B3F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAK9C,OAAO,6BAA6B,CAAA;AAWpC,MAAM,WAAW,gBAAgB;IAC7B,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,iBAAiB,EAAE,MAAM,MAAM,CAAA;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACtC,SAAS,CAAC,EAAE,MAAM,CAAA;CACrB;AACD;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,CAqC3D,CAAA"}
@@ -1,5 +1,5 @@
1
- import { u as util, e as exec, o as os, a as env, w as window, p as path, b as workspace, U as Uri, l as logError } from "./agent.worker-CiIPD-tv.mjs";
2
- import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-BTzYzFoB.mjs";
1
+ import { u as util, e as exec, o as os, a as env, w as window, p as path, b as workspace, U as Uri, l as logError } from "./agent.worker-cEJ-Id1V.mjs";
2
+ import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-5V4RMNo3.mjs";
3
3
  var define_process_default = { env: {} };
4
4
  const _exec = util.promisify(exec);
5
5
  async function getContextFileFromShell(command) {
package/dist/style.css CHANGED
@@ -717,18 +717,16 @@ body[data-vscode-theme-kind='vscode-light'] ._content_1kf9a_116 pre > code {
717
717
  body[data-vscode-theme-kind='vscode-high-contrast-light'] ._context-item-link_13e3r_12 {
718
718
  color: inherit;
719
719
  }
720
- ._user-avatar_tzwlo_1 {
720
+ ._user-avatar_yacrp_1 {
721
721
  isolation: isolate;
722
722
  display: inline-flex;
723
723
  border-radius: 50%;
724
- background-color: var(--vscode-inputOption-activeBackground);
725
- color: var(--vscode-inputOption-activeForeground);
726
724
  align-items: center;
727
725
  justify-content: center;
728
726
  height: fit-content;
729
727
  }
730
728
 
731
- ._sourcegraph-gradient-border_tzwlo_12 {
729
+ ._sourcegraph-gradient-border_yacrp_10 {
732
730
  --gradient-border-width: 1px;
733
731
 
734
732
  border-radius: 50%;
@@ -938,7 +936,7 @@ button > ._model-title-with-icon_rn0uf_1 ._badge_rn0uf_35 {
938
936
  Root element which only exists to use container query
939
937
  for changing header tabs layout.
940
938
  */
941
- ._tabs-root_1do08_10 {
939
+ ._tabs-root_1e23y_10 {
942
940
  container-type: inline-size;
943
941
  container-name: tabs-container;
944
942
 
@@ -946,104 +944,72 @@ button > ._model-title-with-icon_rn0uf_1 ._badge_rn0uf_35 {
946
944
  z-index: 1;
947
945
  }
948
946
 
949
- ._tabs-container_1do08_18 {
947
+ ._tabs-container_1e23y_18 {
950
948
  display: flex;
949
+ width: 100%;
950
+ padding: 0;
951
+ flex-direction: column;
951
952
  justify-content: space-between;
952
953
  position: sticky;
953
- padding: 0 8px;
954
954
  border-bottom: 1px solid var(--vscode-dropdown-border);
955
955
  background-color: var(--vscode-sideBar-background);
956
956
  }
957
957
 
958
- ._tabs_1do08_10 {
958
+ ._tabs_1e23y_10 {
959
959
  display: flex;
960
960
  flex-shrink: 0;
961
961
  gap: 2px;
962
+ width: 100%;
963
+ padding: 0 8px;
964
+ border-bottom: 1px solid var(--vscode-dropdown-border);
962
965
  }
963
966
 
964
- ._tabs_1do08_10 > * {
967
+ ._tabs_1e23y_10 > * {
965
968
  flex-shrink: 0;
966
969
  }
967
970
 
968
- ._sub-tabs_1do08_37 {
971
+ ._sub-tabs_1e23y_42 {
969
972
  display: flex;
970
973
  flex-shrink: 0;
971
974
  gap: 8px;
975
+ padding: 0 8px;
972
976
  }
973
977
 
974
- ._sub-tabs_1do08_37 > * {
978
+ ._sub-tabs_1e23y_42 > * {
975
979
  flex-shrink: 0;
976
980
  }
977
981
 
978
- ._tab-action-label_1do08_47 {
982
+ ._tab-action-label_1e23y_53 {
979
983
  display: inline;
980
984
  }
981
985
 
982
- ._tooltip_1do08_51 {
983
- /*
984
- Hide tooltips by default, show them only for state when labels are hidden.
985
- Important is needed to override standard tailwind styles in tooltip internals
986
- */
987
- display: none !important;
988
- }
989
-
990
- /*
991
- By default if we have enough space we render tabs and its
992
- sub action tabs in one row but if we don't have enough space
993
- which currently is just static value we switch to two rows
994
- layout (one for tab and one below for sub-actions)
995
- */
996
- @container tabs-container (width < 750px) {
997
- ._tabs-container_1do08_18 {
998
- padding: 0;
999
- flex-direction: column;
1000
- }
1001
-
1002
- ._tabs_1do08_10 {
1003
- padding: 0 8px;
1004
- border-bottom: 1px solid var(--vscode-dropdown-border);
1005
- }
1006
-
1007
- ._sub-tabs_1do08_37 {
1008
- padding: 0 8px;
1009
- }
1010
- }
1011
-
1012
986
  /*
1013
987
  For small container turn off tabs labels completely and go back
1014
- to one row layout for tabs and its sub actions
988
+ to one row layout for tabs and its sub actions. Note that for
989
+ Cody Web we have a special override since it has different tabs
990
+ configurations (later we switch to dynamic items query and remove
991
+ this override)
1015
992
  */
1016
- @container tabs-container (width < 475px) {
1017
- ._tab-action-label_1do08_47 {
1018
- display: none;
1019
- }
1020
-
1021
- ._tabs-container_1do08_18 {
1022
- padding: 0 8px;
1023
- flex-direction: row;
1024
- }
1025
-
1026
- ._tabs_1do08_10 {
1027
- padding: 0;
1028
- border-bottom: none;
1029
- }
1030
-
1031
- ._sub-tabs_1do08_37 {
1032
- padding: 0;
1033
- }
993
+ @container tabs-container (width < 575px) {
994
+ ._tabs-root_1e23y_10:not(._tabs-root--cody-web_1e23y_65) ._tab-action-label_1e23y_53 {
995
+ display: none;
996
+ }
997
+ }
1034
998
 
1035
- ._tooltip_1do08_51 {
1036
- display: block !important;
999
+ /* Special override for Cody Web tabs */
1000
+ @container tabs-container (width < 375px) {
1001
+ ._tabs-root--cody-web_1e23y_65 ._tab-action-label_1e23y_53 {
1002
+ display: none;
1037
1003
  }
1038
1004
  }
1039
1005
 
1040
- ._dialog-overlay_1do08_1 {
1006
+ ._dialog-overlay_1e23y_1 {
1041
1007
  inset: 0;
1042
1008
  position: fixed;
1043
1009
  background-color: var(--vscode-overlay-background);
1044
1010
  }
1045
1011
 
1046
- ._dialog-content_1do08_1 {
1012
+ ._dialog-content_1e23y_1 {
1047
1013
  width: 90vw;
1048
1014
  max-width: 450px;
1049
1015
  max-height: 85vh;
@@ -1058,23 +1024,23 @@ button > ._model-title-with-icon_rn0uf_1 ._badge_rn0uf_35 {
1058
1024
  box-shadow: hsl(206 22% 7% / 35%) 0 10px 38px -10px, hsl(206 22% 7% / 20%) 0 10px 20px -15px;
1059
1025
  }
1060
1026
 
1061
- ._dialog-content_1do08_1:focus {
1027
+ ._dialog-content_1e23y_1:focus {
1062
1028
  outline: none;
1063
1029
  }
1064
1030
 
1065
- ._dialog-title_1do08_1 {
1031
+ ._dialog-title_1e23y_1 {
1066
1032
  margin: 0;
1067
1033
  font-weight: 500;
1068
1034
  font-size: 17px;
1069
1035
  }
1070
1036
 
1071
- ._dialog-description_1do08_1 {
1037
+ ._dialog-description_1e23y_1 {
1072
1038
  margin: 10px 0 20px;
1073
1039
  font-size: 15px;
1074
1040
  line-height: 1.5;
1075
1041
  }
1076
1042
 
1077
- ._dialog-footer_1do08_1 {
1043
+ ._dialog-footer_1e23y_1 {
1078
1044
  margin-top: 1.5rem;
1079
1045
  width: 100%;
1080
1046
  display: flex;
@@ -2379,9 +2345,6 @@ imported in Sourcegraph shell.
2379
2345
  since they will conflict with any possible reset/global
2380
2346
  styles in consumer. See @mixin reset-styles for more details
2381
2347
  */
2382
- .tw-invisible {
2383
- visibility: hidden;
2384
- }
2385
2348
  .tw-absolute {
2386
2349
  position: absolute;
2387
2350
  }
@@ -2419,19 +2382,26 @@ imported in Sourcegraph shell.
2419
2382
  margin-left: -4px;
2420
2383
  margin-right: -4px;
2421
2384
  }
2385
+ .tw-mx-auto {
2386
+ margin-left: auto;
2387
+ margin-right: auto;
2388
+ }
2422
2389
  .tw-my-2 {
2423
2390
  margin-top: 4px;
2424
2391
  margin-bottom: 4px;
2425
2392
  }
2393
+ .tw-mb-12 {
2394
+ margin-bottom: 24px;
2395
+ }
2396
+ .tw-mb-3 {
2397
+ margin-bottom: 6px;
2398
+ }
2426
2399
  .tw-mb-4 {
2427
2400
  margin-bottom: 8px;
2428
2401
  }
2429
2402
  .tw-mb-5 {
2430
2403
  margin-bottom: 10px;
2431
2404
  }
2432
- .tw-mb-6 {
2433
- margin-bottom: 12px;
2434
- }
2435
2405
  .tw-mb-8 {
2436
2406
  margin-bottom: 16px;
2437
2407
  }
@@ -2471,6 +2441,9 @@ imported in Sourcegraph shell.
2471
2441
  .tw-mt-6 {
2472
2442
  margin-top: 12px;
2473
2443
  }
2444
+ .tw-mt-8 {
2445
+ margin-top: 16px;
2446
+ }
2474
2447
  .tw-mt-\[-1px\] {
2475
2448
  margin-top: -1px;
2476
2449
  }
@@ -2489,6 +2462,9 @@ imported in Sourcegraph shell.
2489
2462
  .\!tw-h-\[30px\] {
2490
2463
  height: 30px !important;
2491
2464
  }
2465
+ .\!tw-h-\[unset\] {
2466
+ height: unset !important;
2467
+ }
2492
2468
  .tw-h-8 {
2493
2469
  height: 16px;
2494
2470
  }
@@ -2540,8 +2516,8 @@ imported in Sourcegraph shell.
2540
2516
  .tw-w-\[20px\] {
2541
2517
  width: 20px;
2542
2518
  }
2543
- .tw-w-\[75vw\] {
2544
- width: 75vw;
2519
+ .tw-w-\[22px\] {
2520
+ width: 22px;
2545
2521
  }
2546
2522
  .tw-w-\[7px\] {
2547
2523
  width: 7px;
@@ -2564,9 +2540,6 @@ imported in Sourcegraph shell.
2564
2540
  .tw-max-w-72 {
2565
2541
  max-width: 18rem;
2566
2542
  }
2567
- .tw-max-w-\[550px\] {
2568
- max-width: 550px;
2569
- }
2570
2543
  .tw-max-w-\[90\%\] {
2571
2544
  max-width: 90%;
2572
2545
  }
@@ -2582,6 +2555,9 @@ imported in Sourcegraph shell.
2582
2555
  .tw-flex-none {
2583
2556
  flex: none;
2584
2557
  }
2558
+ .tw-flex-shrink-0 {
2559
+ flex-shrink: 0;
2560
+ }
2585
2561
  .tw-shrink-0 {
2586
2562
  flex-shrink: 0;
2587
2563
  }
@@ -2662,12 +2638,6 @@ imported in Sourcegraph shell.
2662
2638
  .tw-justify-between {
2663
2639
  justify-content: space-between;
2664
2640
  }
2665
- .tw-gap-0 {
2666
- gap: 0px;
2667
- }
2668
- .tw-gap-0\.5 {
2669
- gap: 0.125rem;
2670
- }
2671
2641
  .tw-gap-1 {
2672
2642
  gap: 2px;
2673
2643
  }
@@ -2724,8 +2694,8 @@ imported in Sourcegraph shell.
2724
2694
  .tw-overflow-hidden {
2725
2695
  overflow: hidden;
2726
2696
  }
2727
- .tw-overflow-clip {
2728
- overflow: clip;
2697
+ .\!tw-overflow-visible {
2698
+ overflow: visible !important;
2729
2699
  }
2730
2700
  .tw-overflow-y-auto {
2731
2701
  overflow-y: auto;
@@ -2753,6 +2723,9 @@ imported in Sourcegraph shell.
2753
2723
  .\!tw-rounded-full {
2754
2724
  border-radius: 9999px !important;
2755
2725
  }
2726
+ .\!tw-rounded-lg {
2727
+ border-radius: 6px !important;
2728
+ }
2756
2729
  .\!tw-rounded-none {
2757
2730
  border-radius: 0px !important;
2758
2731
  }
@@ -2780,9 +2753,15 @@ imported in Sourcegraph shell.
2780
2753
  .tw-rounded-sm {
2781
2754
  border-radius: 2px;
2782
2755
  }
2756
+ .\!tw-border-0 {
2757
+ border-width: 0px !important;
2758
+ }
2783
2759
  .tw-border {
2784
2760
  border-width: 1px;
2785
2761
  }
2762
+ .tw-border-0 {
2763
+ border-width: 0px;
2764
+ }
2786
2765
  .tw-border-\[1px\] {
2787
2766
  border-width: 1px;
2788
2767
  }
@@ -2807,6 +2786,9 @@ imported in Sourcegraph shell.
2807
2786
  .\!tw-border-\[var\(--vscode-tab-activeBorderTop\)\] {
2808
2787
  border-color: var(--vscode-tab-activeBorderTop) !important;
2809
2788
  }
2789
+ .\!tw-border-border {
2790
+ border-color: var(--vscode-dropdown-border) !important;
2791
+ }
2810
2792
  .tw-border-border {
2811
2793
  border-color: var(--vscode-dropdown-border);
2812
2794
  }
@@ -2864,6 +2846,9 @@ imported in Sourcegraph shell.
2864
2846
  .tw-bg-keybinding-background {
2865
2847
  background-color: var(--vscode-keybindingLabel-background);
2866
2848
  }
2849
+ .tw-bg-muted {
2850
+ background-color: var(--vscode-input-background);
2851
+ }
2867
2852
  .tw-bg-popover {
2868
2853
  background-color: var(--vscode-quickInput-background);
2869
2854
  }
@@ -2879,6 +2864,9 @@ imported in Sourcegraph shell.
2879
2864
  .\!tw-p-3 {
2880
2865
  padding: 6px !important;
2881
2866
  }
2867
+ .\!tw-p-4 {
2868
+ padding: 8px !important;
2869
+ }
2882
2870
  .tw-p-0 {
2883
2871
  padding: 0px;
2884
2872
  }
@@ -2897,6 +2885,10 @@ imported in Sourcegraph shell.
2897
2885
  .tw-p-8 {
2898
2886
  padding: 16px;
2899
2887
  }
2888
+ .\!tw-py-3 {
2889
+ padding-top: 6px !important;
2890
+ padding-bottom: 6px !important;
2891
+ }
2900
2892
  .tw-px-0 {
2901
2893
  padding-left: 0px;
2902
2894
  padding-right: 0px;
@@ -3006,6 +2998,9 @@ imported in Sourcegraph shell.
3006
2998
  .tw-text-xxs {
3007
2999
  font-size: calc(calc(10/13)*var(--vscode-font-size));
3008
3000
  }
3001
+ .\!tw-font-normal {
3002
+ font-weight: 400 !important;
3003
+ }
3009
3004
  .tw-font-medium {
3010
3005
  font-weight: 500;
3011
3006
  }
@@ -3024,18 +3019,15 @@ imported in Sourcegraph shell.
3024
3019
  .tw-leading-tight {
3025
3020
  line-height: 1.25;
3026
3021
  }
3027
- .tw-tracking-tight {
3028
- letter-spacing: -0.025em;
3029
- }
3030
3022
  .tw-tracking-widest {
3031
3023
  letter-spacing: 0.1em;
3032
3024
  }
3033
- .\!tw-text-\[unset\] {
3034
- color: unset !important;
3035
- }
3036
3025
  .\!tw-text-foreground {
3037
3026
  color: var(--vscode-foreground) !important;
3038
3027
  }
3028
+ .\!tw-text-inherit {
3029
+ color: inherit !important;
3030
+ }
3039
3031
  .\!tw-text-muted-foreground {
3040
3032
  color: var(--vscode-input-placeholderForeground) !important;
3041
3033
  }
@@ -3072,9 +3064,6 @@ imported in Sourcegraph shell.
3072
3064
  .\!tw-opacity-100 {
3073
3065
  opacity: 1 !important;
3074
3066
  }
3075
- .tw-opacity-30 {
3076
- opacity: 0.3;
3077
- }
3078
3067
  .tw-opacity-60 {
3079
3068
  opacity: 0.6;
3080
3069
  }
@@ -3483,6 +3472,9 @@ imported in Sourcegraph shell.
3483
3472
  .empty\:tw-hidden:empty {
3484
3473
  display: none;
3485
3474
  }
3475
+ .hover\:tw-border-accent:hover {
3476
+ border-color: var(--vscode-list-activeSelectionBackground);
3477
+ }
3486
3478
  .hover\:tw-bg-accent:hover {
3487
3479
  background-color: var(--vscode-list-activeSelectionBackground);
3488
3480
  }
@@ -3498,9 +3490,6 @@ imported in Sourcegraph shell.
3498
3490
  .hover\:tw-bg-muted-transparent:hover {
3499
3491
  background-color: color-mix(in lch, currentColor 15%, transparent);
3500
3492
  }
3501
- .hover\:tw-bg-transparent:hover {
3502
- background-color: transparent;
3503
- }
3504
3493
  .hover\:\!tw-text-accent-foreground:hover {
3505
3494
  color: var(--vscode-list-activeSelectionForeground) !important;
3506
3495
  }
@@ -3522,6 +3511,9 @@ imported in Sourcegraph shell.
3522
3511
  .hover\:tw-opacity-100:hover {
3523
3512
  opacity: 1;
3524
3513
  }
3514
+ .focus\:\!tw-border-ring:focus {
3515
+ border-color: var(--vscode-focusBorder) !important;
3516
+ }
3525
3517
  .focus\:tw-outline-none:focus {
3526
3518
  outline: 2px solid transparent;
3527
3519
  outline-offset: 2px;
@@ -3565,15 +3557,9 @@ imported in Sourcegraph shell.
3565
3557
  .disabled\:tw-opacity-75:disabled {
3566
3558
  opacity: 0.75;
3567
3559
  }
3568
- .tw-group\/\[cmdk-item\]:hover .group-hover\/\[cmdk-item\]\:tw-visible {
3569
- visibility: visible;
3570
- }
3571
3560
  .tw-group:hover .group-hover\:tw-opacity-100 {
3572
3561
  opacity: 1;
3573
3562
  }
3574
- .tw-group\/\[cmdk-item\][aria-selected="true"] .group-\[\[aria-selected\=\"true\"\]\]\/\[cmdk-item\]\:tw-visible {
3575
- visibility: visible;
3576
- }
3577
3563
  .aria-selected\:tw-bg-accent[aria-selected="true"] {
3578
3564
  background-color: var(--vscode-list-activeSelectionBackground);
3579
3565
  }
@@ -3707,6 +3693,11 @@ body[data-vscode-theme-kind="vscode-high-contrast"] .high-contrast-dark\:tw-bord
3707
3693
  .\[\&_\[cmdk-group-heading\]\]\:tw-text-muted-foreground [cmdk-group-heading] {
3708
3694
  color: var(--vscode-input-placeholderForeground);
3709
3695
  }
3696
+ .\[\&_\[cmdk-group-items\]\]\:tw-space-y-4 [cmdk-group-items] > :not([hidden]) ~ :not([hidden]) {
3697
+ --tw-space-y-reverse: 0;
3698
+ margin-top: calc(8px * calc(1 - var(--tw-space-y-reverse)));
3699
+ margin-bottom: calc(8px * var(--tw-space-y-reverse));
3700
+ }
3710
3701
  .\[\&_\[cmdk-group\]\]\:\!tw-border-0 [cmdk-group] {
3711
3702
  border-width: 0px !important;
3712
3703
  }