@sourcegraph/cody-web 0.7.1 → 0.7.3

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":"use-cody-agent.d.ts","sourceRoot":"","sources":["../../../lib/components/use-cody-agent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,kCAAkC,CAAA;AAUvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,IAAI,IAAI,CAAA;CAClB;AAED,UAAU,oBAAoB;IAC1B,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;CACzC;AAED,UAAU,qBAAqB;IAC3B,MAAM,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI,CAAA;IAClC,SAAS,EAAE,aAAa,GAAG,IAAI,CAAA;CAClC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,qBAAqB,CA0DlF"}
1
+ {"version":3,"file":"use-cody-agent.d.ts","sourceRoot":"","sources":["../../../lib/components/use-cody-agent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,kCAAkC,CAAA;AAWvF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C,MAAM,WAAW,WAAW;IACxB,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,IAAI,IAAI,CAAA;CAClB;AAED,UAAU,oBAAoB;IAC1B,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;CACzC;AAED,UAAU,qBAAqB;IAC3B,MAAM,EAAE,WAAW,GAAG,KAAK,GAAG,IAAI,CAAA;IAClC,SAAS,EAAE,aAAa,GAAG,IAAI,CAAA;CAClC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,GAAG,qBAAqB,CAiFlF"}
@@ -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-B1CAn5Kx.mjs";
2
- import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-DJC99jis.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-7dUx4v7q.mjs";
2
+ import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-0yJ2hV_u.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
@@ -791,25 +791,25 @@ body[data-vscode-theme-kind='vscode-high-contrast-light'] ._context-item-link_13
791
791
  min-height: 1lh;
792
792
  }
793
793
  :root {
794
- --toolbar-button-font-size: 11px;
794
+ --toolbar-button-font-size: 12px;
795
795
  }
796
796
 
797
- ._button_n6cvl_5, ._button_n6cvl_5 + aside {
797
+ ._button_rqosg_5, ._button_rqosg_5 + aside {
798
798
  /* Also style our popovers. */
799
799
  font-size: var(--toolbar-button-font-size);
800
800
  line-height: var(--toolbar-button-font-size);
801
801
  }
802
802
 
803
- ._button_n6cvl_5 {
803
+ ._button_rqosg_5 {
804
804
 
805
805
  user-select: none;
806
806
  }
807
807
 
808
- ._button_n6cvl_5:enabled {
808
+ ._button_rqosg_5:enabled {
809
809
  cursor: pointer;
810
810
  }
811
811
 
812
- ._button_n6cvl_5 {
812
+ ._button_rqosg_5 {
813
813
 
814
814
  border-radius: 3px;
815
815
  --padding-y: 2px;
@@ -824,45 +824,45 @@ body[data-vscode-theme-kind='vscode-high-contrast-light'] ._context-item-link_13
824
824
  flex-shrink: 0;
825
825
  }
826
826
 
827
- ._button_n6cvl_5 > svg {
827
+ ._button_rqosg_5 > svg {
828
828
  flex-shrink: 0;
829
829
  width: var(--icon-size);
830
830
  height: var(--icon-size);
831
831
  stroke-width: 1.5px;
832
832
  }
833
833
 
834
- ._button--icon-end-chevron_n6cvl_37 > svg:last-child {
834
+ ._button--icon-end-chevron_rqosg_37 > svg:last-child {
835
835
  margin-left: calc(-1*var(--gap));
836
836
  }
837
837
 
838
- ._button--primary_n6cvl_41 {
838
+ ._button--primary_rqosg_41 {
839
839
  color: var(--vscode-button-foreground);
840
840
  background-color: var(--vscode-button-background);
841
841
  }
842
842
 
843
- ._button--primary_n6cvl_41._button--no-icon-start_n6cvl_45 {
843
+ ._button--primary_rqosg_41._button--no-icon-start_rqosg_45 {
844
844
  padding-left: calc(2*var(--padding-x));
845
845
  }
846
846
 
847
- ._button--primary_n6cvl_41._button--no-icon-end_n6cvl_49 {
847
+ ._button--primary_rqosg_41._button--no-icon-end_rqosg_49 {
848
848
  padding-right: calc(2*var(--padding-x));
849
849
  }
850
850
 
851
- ._button--secondary_n6cvl_54 {
851
+ ._button--secondary_rqosg_54 {
852
852
  opacity: 0.6;
853
853
  color: var(--vscode-input-foreground);
854
854
  background-color: unset;
855
855
  }
856
856
 
857
- ._button--secondary_n6cvl_54:enabled:is(:hover, :focus-within) {
857
+ ._button--secondary_rqosg_54:enabled:is(:hover, :focus-within) {
858
858
  opacity: 1;
859
859
  }
860
860
 
861
- ._button_n6cvl_5:disabled {
861
+ ._button_rqosg_5:disabled {
862
862
  opacity: 0.5;
863
863
  }
864
864
 
865
- ._button_n6cvl_5:disabled._button--secondary_n6cvl_54 {
865
+ ._button_rqosg_5:disabled._button--secondary_rqosg_54 {
866
866
  opacity: 0.7;
867
867
  }
868
868
  ._model-title-with-icon_rn0uf_1 {
@@ -930,60 +930,137 @@ button > ._model-title-with-icon_rn0uf_1 ._badge_rn0uf_35 {
930
930
  border-bottom: solid 1px var(--vscode-inputValidation-errorBorder);
931
931
  color: var(--vscode-foreground);
932
932
  }
933
- ._tabs-container_zt8hy_1 {
934
- background-color: var(--vscode-sideBar-background);
935
- display: inline-flex;
933
+ :root {
934
+ --vscode-overlay-background: rgba(0, 0, 0, 0.5);
935
+ --vscode-modal-background: var(--vscode-sideBar-background);
936
+ }
937
+
938
+ /*
939
+ Root element which only exists to use container query
940
+ for changing header tabs layout.
941
+ */
942
+ ._tabs-root_u8lyl_10 {
943
+ container-type: inline-size;
944
+ container-name: tabs-container;
945
+ }
946
+
947
+ ._tabs-container_u8lyl_15 {
948
+ display: flex;
936
949
  justify-content: space-between;
950
+ position: sticky;
951
+ padding: 0 8px;
952
+ border-bottom: 1px solid var(--vscode-dropdown-border);
953
+ background-color: var(--vscode-sideBar-background);
937
954
  }
938
955
 
939
- ._active-tab_zt8hy_7 {
940
- border-color: var(--vscode-button-background);
941
- color: var(--vscode-button-background);
942
- border-width: 1.25px;
956
+ ._tabs_u8lyl_10 {
957
+ display: flex;
958
+ flex-shrink: 0;
959
+ gap: 2px;
943
960
  }
944
961
 
945
- :root {
946
- --vscode-overlay-background: rgba(0, 0, 0, 0.5);
947
- --vscode-modal-background: var(--vscode-sideBar-background);
962
+ ._tabs_u8lyl_10 > * {
963
+ flex-shrink: 0;
964
+ }
965
+
966
+ ._sub-tabs_u8lyl_34 {
967
+ display: flex;
968
+ flex-shrink: 0;
969
+ gap: 8px;
970
+ }
971
+
972
+ ._sub-tabs_u8lyl_34 > * {
973
+ flex-shrink: 0;
974
+ }
975
+
976
+ ._tab-action-label_u8lyl_44 {
977
+ display: inline;
978
+ }
979
+
980
+ /*
981
+ By default if we have enough space we render tabs and its
982
+ sub action tabs in one row but if we don't have enough space
983
+ which currently is just static value we switch to two rows
984
+ layout (one for tab and one below for sub-actions)
985
+ */
986
+ @container tabs-container (width < 750px) {
987
+ ._tabs-container_u8lyl_15 {
988
+ padding: 0;
989
+ flex-direction: column;
990
+ }
991
+
992
+ ._tabs_u8lyl_10 {
993
+ padding: 0 8px;
994
+ border-bottom: 1px solid var(--vscode-dropdown-border);
995
+ }
996
+
997
+ ._sub-tabs_u8lyl_34 {
998
+ padding: 0 8px;
999
+ }
948
1000
  }
949
1001
 
950
- ._dialog-overlay_zt8hy_1 {
1002
+ /*
1003
+ For small container turn off tabs labels completely and go back
1004
+ to one row layout for tabs and its sub actions
1005
+ */
1006
+ @container tabs-container (width < 475px) {
1007
+ ._tab-action-label_u8lyl_44 {
1008
+ display: none;
1009
+ }
1010
+
1011
+ ._tabs-container_u8lyl_15 {
1012
+ padding: 0 8px;
1013
+ flex-direction: row;
1014
+ }
1015
+
1016
+ ._tabs_u8lyl_10 {
1017
+ padding: 0;
1018
+ border-bottom: none;
1019
+ }
1020
+
1021
+ ._sub-tabs_u8lyl_34 {
1022
+ padding: 0;
1023
+ }
1024
+ }
1025
+
1026
+ ._dialog-overlay_u8lyl_1 {
951
1027
  inset: 0;
952
1028
  position: fixed;
953
1029
  background-color: var(--vscode-overlay-background);
954
1030
  }
955
1031
 
956
- ._dialog-content_zt8hy_1 {
957
- background-color: var(--vscode-modal-background);
958
- border-radius: 6px;
959
- box-shadow: hsl(206 22% 7% / 35%) 0 10px 38px -10px, hsl(206 22% 7% / 20%) 0 10px 20px -15px;
1032
+ ._dialog-content_u8lyl_1 {
1033
+ width: 90vw;
1034
+ max-width: 450px;
1035
+ max-height: 85vh;
960
1036
  position: fixed;
961
1037
  top: 50%;
962
1038
  left: 50%;
963
1039
  transform: translate(-50%, -50%);
964
- width: 90vw;
965
- max-width: 450px;
966
- max-height: 85vh;
967
1040
  padding: 25px;
1041
+
1042
+ border-radius: 6px;
1043
+ background-color: var(--vscode-modal-background);
1044
+ box-shadow: hsl(206 22% 7% / 35%) 0 10px 38px -10px, hsl(206 22% 7% / 20%) 0 10px 20px -15px;
968
1045
  }
969
1046
 
970
- ._dialog-content_zt8hy_1:focus {
1047
+ ._dialog-content_u8lyl_1:focus {
971
1048
  outline: none;
972
1049
  }
973
1050
 
974
- ._dialog-title_zt8hy_1 {
1051
+ ._dialog-title_u8lyl_1 {
975
1052
  margin: 0;
976
1053
  font-weight: 500;
977
1054
  font-size: 17px;
978
1055
  }
979
1056
 
980
- ._dialog-description_zt8hy_1 {
1057
+ ._dialog-description_u8lyl_1 {
981
1058
  margin: 10px 0 20px;
982
1059
  font-size: 15px;
983
1060
  line-height: 1.5;
984
1061
  }
985
1062
 
986
- ._dialog-footer_zt8hy_1 {
1063
+ ._dialog-footer_u8lyl_1 {
987
1064
  margin-top: 1.5rem;
988
1065
  width: 100%;
989
1066
  display: flex;
@@ -2309,9 +2386,6 @@ imported in Sourcegraph shell.
2309
2386
  .tw-left-\[5\.5px\] {
2310
2387
  left: 5.5px;
2311
2388
  }
2312
- .tw-top-0 {
2313
- top: 0px;
2314
- }
2315
2389
  .tw-top-\[0px\] {
2316
2390
  top: 0px;
2317
2391
  }
@@ -2338,9 +2412,15 @@ imported in Sourcegraph shell.
2338
2412
  .tw-mb-4 {
2339
2413
  margin-bottom: 8px;
2340
2414
  }
2415
+ .tw-mb-5 {
2416
+ margin-bottom: 10px;
2417
+ }
2341
2418
  .tw-mb-6 {
2342
2419
  margin-bottom: 12px;
2343
2420
  }
2421
+ .tw-mb-8 {
2422
+ margin-bottom: 16px;
2423
+ }
2344
2424
  .tw-ml-1 {
2345
2425
  margin-left: 2px;
2346
2426
  }
@@ -2374,9 +2454,15 @@ imported in Sourcegraph shell.
2374
2454
  .tw-mt-4 {
2375
2455
  margin-top: 8px;
2376
2456
  }
2457
+ .tw-mt-6 {
2458
+ margin-top: 12px;
2459
+ }
2377
2460
  .tw-mt-\[-1px\] {
2378
2461
  margin-top: -1px;
2379
2462
  }
2463
+ .tw-mt-auto {
2464
+ margin-top: auto;
2465
+ }
2380
2466
  .tw-flex {
2381
2467
  display: flex;
2382
2468
  }
@@ -2386,9 +2472,6 @@ imported in Sourcegraph shell.
2386
2472
  .tw-grid {
2387
2473
  display: grid;
2388
2474
  }
2389
- .tw-hidden {
2390
- display: none;
2391
- }
2392
2475
  .\!tw-h-\[30px\] {
2393
2476
  height: 30px !important;
2394
2477
  }
@@ -2556,6 +2639,9 @@ imported in Sourcegraph shell.
2556
2639
  .tw-items-stretch {
2557
2640
  align-items: stretch;
2558
2641
  }
2642
+ .tw-justify-end {
2643
+ justify-content: flex-end;
2644
+ }
2559
2645
  .tw-justify-center {
2560
2646
  justify-content: center;
2561
2647
  }
@@ -2662,8 +2748,8 @@ imported in Sourcegraph shell.
2662
2748
  .tw-rounded-\[0\.5px\] {
2663
2749
  border-radius: 0.5px;
2664
2750
  }
2665
- .tw-rounded-\[2px\] {
2666
- border-radius: 2px;
2751
+ .tw-rounded-\[6px\] {
2752
+ border-radius: 6px;
2667
2753
  }
2668
2754
  .tw-rounded-full {
2669
2755
  border-radius: 9999px;
@@ -2861,9 +2947,6 @@ imported in Sourcegraph shell.
2861
2947
  .tw-pl-5 {
2862
2948
  padding-left: 10px;
2863
2949
  }
2864
- .tw-pl-\[15px\] {
2865
- padding-left: 15px;
2866
- }
2867
2950
  .tw-pr-4 {
2868
2951
  padding-right: 8px;
2869
2952
  }
@@ -3543,9 +3626,6 @@ body[data-vscode-theme-kind="vscode-high-contrast"] .high-contrast-dark\:tw-bord
3543
3626
  border-inline-end-color: transparent;
3544
3627
  }
3545
3628
  @media (min-width: 768px) {
3546
- .md\:tw-inline {
3547
- display: inline;
3548
- }
3549
3629
  .md\:tw-hidden {
3550
3630
  display: none;
3551
3631
  }