@sourcegraph/cody-web 0.7.4 → 0.7.7

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-BZzA02C_.mjs";
2
+ import { w as wrapInActiveSpan, T as TokenCounterUtils, C as ContextItemSource } from "./browser-hDxNMh5y.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
@@ -126,9 +126,9 @@ body:is([data-vscode-theme-kind='vscode-high-contrast'], [data-vscode-theme-kind
126
126
  html[data-ide=JetBrains] ._template-input-node_14yoh_1 {
127
127
  background-color: transparent;
128
128
  }
129
- ._popover-dimensions_18ann_1 {
129
+ ._popover-dimensions_1uf3m_1 {
130
130
  margin-top: 20px; /* show on the line below the cursor */
131
- width: clamp(200px, 65vw, 440px);
131
+ width: clamp(300px, 65vw, 440px);
132
132
 
133
133
  --max-items: 12;
134
134
  --mention-item-height: 30px;
@@ -137,14 +137,14 @@ html[data-ide=JetBrains] ._template-input-node_14yoh_1 {
137
137
  display: flex;
138
138
  align-items: start;
139
139
  }
140
- ._popover-dimensions_18ann_1 ._popover_18ann_1 {
140
+ ._popover-dimensions_1uf3m_1 ._popover_1uf3m_1 {
141
141
  flex: 1;
142
142
  }
143
- .typeahead-flipped ._popover-dimensions_18ann_1 {
143
+ .typeahead-flipped ._popover-dimensions_1uf3m_1 {
144
144
  align-items: end;
145
145
  }
146
146
 
147
- ._popover_18ann_1 {
147
+ ._popover_1uf3m_1 {
148
148
  overflow: auto;
149
149
  background: var(--vscode-sideBar-background);
150
150
  color: var(--vscode-sideBar-foreground);
@@ -153,19 +153,23 @@ html[data-ide=JetBrains] ._template-input-node_14yoh_1 {
153
153
  border-radius: 3px;
154
154
  max-height: calc(var(--max-items)*var(--mention-item-height) + 2px);
155
155
  }
156
- ._container_101x5_1 {
156
+ ._container_fr158_1 {
157
157
  outline: none;
158
158
 
159
159
  /* In order to override shadcn tailwind tw-rounded-md */
160
160
  border-radius: 0 !important;
161
161
  }
162
162
 
163
- ._item_101x5_8._context-item_101x5_9 {
163
+ ._item_fr158_8._context-item_fr158_9 {
164
164
  display: flex;
165
165
  flex-direction: column;
166
166
  align-items: stretch !important;
167
167
  gap: 0.2rem;
168
168
  }
169
+
170
+ ._experimental_fr158_17 {
171
+ background: var(--vscode-inputOption-activeBackground);
172
+ }
169
173
  :root {
170
174
  --prompt-editor-padding-y: 8px;
171
175
  --prompt-editor-padding-x: 8px;
@@ -938,7 +942,7 @@ button > ._model-title-with-icon_rn0uf_1 ._badge_rn0uf_35 {
938
942
  Root element which only exists to use container query
939
943
  for changing header tabs layout.
940
944
  */
941
- ._tabs-root_1do08_10 {
945
+ ._tabs-root_1e23y_10 {
942
946
  container-type: inline-size;
943
947
  container-name: tabs-container;
944
948
 
@@ -946,104 +950,72 @@ button > ._model-title-with-icon_rn0uf_1 ._badge_rn0uf_35 {
946
950
  z-index: 1;
947
951
  }
948
952
 
949
- ._tabs-container_1do08_18 {
953
+ ._tabs-container_1e23y_18 {
950
954
  display: flex;
955
+ width: 100%;
956
+ padding: 0;
957
+ flex-direction: column;
951
958
  justify-content: space-between;
952
959
  position: sticky;
953
- padding: 0 8px;
954
960
  border-bottom: 1px solid var(--vscode-dropdown-border);
955
961
  background-color: var(--vscode-sideBar-background);
956
962
  }
957
963
 
958
- ._tabs_1do08_10 {
964
+ ._tabs_1e23y_10 {
959
965
  display: flex;
960
966
  flex-shrink: 0;
961
967
  gap: 2px;
968
+ width: 100%;
969
+ padding: 0 8px;
970
+ border-bottom: 1px solid var(--vscode-dropdown-border);
962
971
  }
963
972
 
964
- ._tabs_1do08_10 > * {
973
+ ._tabs_1e23y_10 > * {
965
974
  flex-shrink: 0;
966
975
  }
967
976
 
968
- ._sub-tabs_1do08_37 {
977
+ ._sub-tabs_1e23y_42 {
969
978
  display: flex;
970
979
  flex-shrink: 0;
971
980
  gap: 8px;
981
+ padding: 0 8px;
972
982
  }
973
983
 
974
- ._sub-tabs_1do08_37 > * {
984
+ ._sub-tabs_1e23y_42 > * {
975
985
  flex-shrink: 0;
976
986
  }
977
987
 
978
- ._tab-action-label_1do08_47 {
988
+ ._tab-action-label_1e23y_53 {
979
989
  display: inline;
980
990
  }
981
991
 
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
992
  /*
1013
993
  For small container turn off tabs labels completely and go back
1014
- to one row layout for tabs and its sub actions
994
+ to one row layout for tabs and its sub actions. Note that for
995
+ Cody Web we have a special override since it has different tabs
996
+ configurations (later we switch to dynamic items query and remove
997
+ this override)
1015
998
  */
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
- }
999
+ @container tabs-container (width < 575px) {
1000
+ ._tabs-root_1e23y_10:not(._tabs-root--cody-web_1e23y_65) ._tab-action-label_1e23y_53 {
1001
+ display: none;
1002
+ }
1003
+ }
1034
1004
 
1035
- ._tooltip_1do08_51 {
1036
- display: block !important;
1005
+ /* Special override for Cody Web tabs */
1006
+ @container tabs-container (width < 375px) {
1007
+ ._tabs-root--cody-web_1e23y_65 ._tab-action-label_1e23y_53 {
1008
+ display: none;
1037
1009
  }
1038
1010
  }
1039
1011
 
1040
- ._dialog-overlay_1do08_1 {
1012
+ ._dialog-overlay_1e23y_1 {
1041
1013
  inset: 0;
1042
1014
  position: fixed;
1043
1015
  background-color: var(--vscode-overlay-background);
1044
1016
  }
1045
1017
 
1046
- ._dialog-content_1do08_1 {
1018
+ ._dialog-content_1e23y_1 {
1047
1019
  width: 90vw;
1048
1020
  max-width: 450px;
1049
1021
  max-height: 85vh;
@@ -1058,23 +1030,23 @@ button > ._model-title-with-icon_rn0uf_1 ._badge_rn0uf_35 {
1058
1030
  box-shadow: hsl(206 22% 7% / 35%) 0 10px 38px -10px, hsl(206 22% 7% / 20%) 0 10px 20px -15px;
1059
1031
  }
1060
1032
 
1061
- ._dialog-content_1do08_1:focus {
1033
+ ._dialog-content_1e23y_1:focus {
1062
1034
  outline: none;
1063
1035
  }
1064
1036
 
1065
- ._dialog-title_1do08_1 {
1037
+ ._dialog-title_1e23y_1 {
1066
1038
  margin: 0;
1067
1039
  font-weight: 500;
1068
1040
  font-size: 17px;
1069
1041
  }
1070
1042
 
1071
- ._dialog-description_1do08_1 {
1043
+ ._dialog-description_1e23y_1 {
1072
1044
  margin: 10px 0 20px;
1073
1045
  font-size: 15px;
1074
1046
  line-height: 1.5;
1075
1047
  }
1076
1048
 
1077
- ._dialog-footer_1do08_1 {
1049
+ ._dialog-footer_1e23y_1 {
1078
1050
  margin-top: 1.5rem;
1079
1051
  width: 100%;
1080
1052
  display: flex;