@sourcegraph/cody-web 0.7.0 → 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-Cjx_iNtn.mjs";
2
- import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-BpZhCiRU.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
@@ -205,35 +205,35 @@ html[data-ide=JetBrains] ._template-input-node_14yoh_1 {
205
205
  color: var(--vscode-input-foreground);
206
206
  opacity: 0.5;
207
207
  }
208
- ._outer-container_5yjsn_1 {
208
+ ._outer-container_xb9w0_1 {
209
209
  background-color: var(--vscode-sideBar-background);
210
210
  display: flex;
211
211
  flex-direction: column;
212
212
  box-sizing: border-box;
213
213
  height: 100%;
214
214
  overflow: hidden;
215
+ isolation: isolate;
215
216
  }
216
217
 
217
- ._error-container_5yjsn_10 {
218
+ ._error-container_xb9w0_11 {
218
219
  display: flex;
219
220
  flex-direction: column-reverse;
220
221
  gap: 0.5rem;
221
222
  }
222
223
 
223
- ._error_5yjsn_10 {
224
+ ._error_xb9w0_11 {
224
225
  flex-direction: row;
225
226
  display: flex;
226
227
  padding: 1rem;
227
228
  color: var(--vscode-input-foreground);
228
229
  background-color: var(--vscode-inputValidation-errorBackground);
229
- align-items: center;
230
230
  min-height: 2rem;
231
231
  position: relative;
232
232
  overflow: auto;
233
233
  align-items: baseline;
234
234
  }
235
235
 
236
- ._close-btn_5yjsn_29 {
236
+ ._close-btn_xb9w0_29 {
237
237
  position: absolute;
238
238
  top: 0.65rem;
239
239
  right: 0.25rem;
@@ -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,18 +930,144 @@ 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_1jhmn_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);
954
+ }
955
+
956
+ ._tabs_u8lyl_10 {
957
+ display: flex;
958
+ flex-shrink: 0;
959
+ gap: 2px;
960
+ }
961
+
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
+ }
937
1000
  }
938
1001
 
939
- ._active-tab_1jhmn_7 {
940
- border-color: var(--vscode-button-background);
941
- color: var(--vscode-button-background);
942
- border-width: 1.25px;
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
+ }
943
1024
  }
944
1025
 
1026
+ ._dialog-overlay_u8lyl_1 {
1027
+ inset: 0;
1028
+ position: fixed;
1029
+ background-color: var(--vscode-overlay-background);
1030
+ }
1031
+
1032
+ ._dialog-content_u8lyl_1 {
1033
+ width: 90vw;
1034
+ max-width: 450px;
1035
+ max-height: 85vh;
1036
+ position: fixed;
1037
+ top: 50%;
1038
+ left: 50%;
1039
+ transform: translate(-50%, -50%);
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;
1045
+ }
1046
+
1047
+ ._dialog-content_u8lyl_1:focus {
1048
+ outline: none;
1049
+ }
1050
+
1051
+ ._dialog-title_u8lyl_1 {
1052
+ margin: 0;
1053
+ font-weight: 500;
1054
+ font-size: 17px;
1055
+ }
1056
+
1057
+ ._dialog-description_u8lyl_1 {
1058
+ margin: 10px 0 20px;
1059
+ font-size: 15px;
1060
+ line-height: 1.5;
1061
+ }
1062
+
1063
+ ._dialog-footer_u8lyl_1 {
1064
+ margin-top: 1.5rem;
1065
+ width: 100%;
1066
+ display: flex;
1067
+ justify-content: flex-end;
1068
+ gap: 0.5rem;
1069
+ }
1070
+
945
1071
  /*
946
1072
  Since this package is used only for Cody Web in Sourcegraph it's ok to
947
1073
  not include this in the cody web package since highlights styles is already
@@ -2260,9 +2386,6 @@ imported in Sourcegraph shell.
2260
2386
  .tw-left-\[5\.5px\] {
2261
2387
  left: 5.5px;
2262
2388
  }
2263
- .tw-top-0 {
2264
- top: 0px;
2265
- }
2266
2389
  .tw-top-\[0px\] {
2267
2390
  top: 0px;
2268
2391
  }
@@ -2289,9 +2412,15 @@ imported in Sourcegraph shell.
2289
2412
  .tw-mb-4 {
2290
2413
  margin-bottom: 8px;
2291
2414
  }
2415
+ .tw-mb-5 {
2416
+ margin-bottom: 10px;
2417
+ }
2292
2418
  .tw-mb-6 {
2293
2419
  margin-bottom: 12px;
2294
2420
  }
2421
+ .tw-mb-8 {
2422
+ margin-bottom: 16px;
2423
+ }
2295
2424
  .tw-ml-1 {
2296
2425
  margin-left: 2px;
2297
2426
  }
@@ -2325,9 +2454,15 @@ imported in Sourcegraph shell.
2325
2454
  .tw-mt-4 {
2326
2455
  margin-top: 8px;
2327
2456
  }
2457
+ .tw-mt-6 {
2458
+ margin-top: 12px;
2459
+ }
2328
2460
  .tw-mt-\[-1px\] {
2329
2461
  margin-top: -1px;
2330
2462
  }
2463
+ .tw-mt-auto {
2464
+ margin-top: auto;
2465
+ }
2331
2466
  .tw-flex {
2332
2467
  display: flex;
2333
2468
  }
@@ -2337,9 +2472,6 @@ imported in Sourcegraph shell.
2337
2472
  .tw-grid {
2338
2473
  display: grid;
2339
2474
  }
2340
- .tw-hidden {
2341
- display: none;
2342
- }
2343
2475
  .\!tw-h-\[30px\] {
2344
2476
  height: 30px !important;
2345
2477
  }
@@ -2507,6 +2639,9 @@ imported in Sourcegraph shell.
2507
2639
  .tw-items-stretch {
2508
2640
  align-items: stretch;
2509
2641
  }
2642
+ .tw-justify-end {
2643
+ justify-content: flex-end;
2644
+ }
2510
2645
  .tw-justify-center {
2511
2646
  justify-content: center;
2512
2647
  }
@@ -2613,8 +2748,8 @@ imported in Sourcegraph shell.
2613
2748
  .tw-rounded-\[0\.5px\] {
2614
2749
  border-radius: 0.5px;
2615
2750
  }
2616
- .tw-rounded-\[2px\] {
2617
- border-radius: 2px;
2751
+ .tw-rounded-\[6px\] {
2752
+ border-radius: 6px;
2618
2753
  }
2619
2754
  .tw-rounded-full {
2620
2755
  border-radius: 9999px;
@@ -2812,9 +2947,6 @@ imported in Sourcegraph shell.
2812
2947
  .tw-pl-5 {
2813
2948
  padding-left: 10px;
2814
2949
  }
2815
- .tw-pl-\[15px\] {
2816
- padding-left: 15px;
2817
- }
2818
2950
  .tw-pr-4 {
2819
2951
  padding-right: 8px;
2820
2952
  }
@@ -3494,9 +3626,6 @@ body[data-vscode-theme-kind="vscode-high-contrast"] .high-contrast-dark\:tw-bord
3494
3626
  border-inline-end-color: transparent;
3495
3627
  }
3496
3628
  @media (min-width: 768px) {
3497
- .md\:tw-inline {
3498
- display: inline;
3499
- }
3500
3629
  .md\:tw-hidden {
3501
3630
  display: none;
3502
3631
  }
@@ -3591,15 +3720,15 @@ body[data-vscode-theme-kind="vscode-high-contrast"] .high-contrast-dark\:tw-bord
3591
3720
  margin-top: -4px;
3592
3721
  }
3593
3722
 
3594
- ._root_1dr1n_2 {
3723
+ ._root_maej5_2 {
3595
3724
  display: flex;
3596
- height: 100vh;
3597
3725
  width: 100%;
3726
+ height: 100%;
3598
3727
  font-size: 13px;
3599
3728
  overflow: hidden;
3600
3729
  }
3601
3730
 
3602
- ._container_1dr1n_10 {
3731
+ ._container_maej5_10 {
3603
3732
  height: 100%;
3604
3733
  flex-grow: 1;
3605
3734
  }