File tree Expand file tree Collapse file tree 16 files changed +589
-32
lines changed
app/[domain]/components/searchBar Expand file tree Collapse file tree 16 files changed +589
-32
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010### Added
1111- Added comprehensive Gerrit HTTP authentication support with username/password credentials via secrets and environment variables. [ #366 ] ( https://github.com/sourcebot-dev/sourcebot/pull/366 )
1212
13+ ### Changed
14+ - Disable page scroll when using arrow keys on search suggestions box. [ #493 ] ( https://github.com/sourcebot-dev/sourcebot/pull/493 )
15+
16+ ## [ 4.6.6] - 2025-09-04
17+
18+ ### Added
19+ - Added support for specifying query params for openai compatible language models. [ #490 ] ( https://github.com/sourcebot-dev/sourcebot/pull/490 )
20+
21+ ### Fixed
22+ - Fix issue where zoekt was failing to index repositories due to ` HEAD ` pointing to a branch that does not exist. [ #488 ] ( https://github.com/sourcebot-dev/sourcebot/pull/488 )
23+
1324## [ 4.6.5] - 2025-09-02
1425
1526### Fixed
Original file line number Diff line number Diff line change @@ -275,6 +275,15 @@ The OpenAI compatible provider allows you to use any model that is compatible wi
275275 "displayName" : " OPTIONAL_DISPLAY_NAME" ,
276276 "token" : {
277277 "env" : " OPTIONAL_API_KEY"
278+ },
279+ // Optional query parameters can be passed in the request url as:
280+ "queryParams" : {
281+ // raw string values
282+ "optional-query-param" : " foo" ,
283+ // or as environment variables
284+ "optional-query-param-secret" : {
285+ "env" : " MY_SECRET_ENV_VAR"
286+ }
278287 }
279288 }
280289 ]
Original file line number Diff line number Diff line change 24722472 }
24732473 },
24742474 "additionalProperties" : false
2475+ },
2476+ "queryParams" : {
2477+ "type" : " object" ,
2478+ "description" : " Optional query parameters to include in the request url." ,
2479+ "patternProperties" : {
2480+ "^[!#$%&'*+\\ -.^_`|~0-9A-Za-z]+$" : {
2481+ "anyOf" : [
2482+ {
2483+ "type" : " string"
2484+ },
2485+ {
2486+ "anyOf" : [
2487+ {
2488+ "type" : " object" ,
2489+ "properties" : {
2490+ "secret" : {
2491+ "type" : " string" ,
2492+ "description" : " The name of the secret that contains the token."
2493+ }
2494+ },
2495+ "required" : [
2496+ " secret"
2497+ ],
2498+ "additionalProperties" : false
2499+ },
2500+ {
2501+ "type" : " object" ,
2502+ "properties" : {
2503+ "env" : {
2504+ "type" : " string" ,
2505+ "description" : " The name of the environment variable that contains the token. Only supported in declarative connection configs."
2506+ }
2507+ },
2508+ "required" : [
2509+ " env"
2510+ ],
2511+ "additionalProperties" : false
2512+ }
2513+ ]
2514+ }
2515+ ]
2516+ }
2517+ },
2518+ "additionalProperties" : false
24752519 }
24762520 },
24772521 "required" : [
38993943 }
39003944 },
39013945 "additionalProperties" : false
3946+ },
3947+ "queryParams" : {
3948+ "type" : " object" ,
3949+ "description" : " Optional query parameters to include in the request url." ,
3950+ "patternProperties" : {
3951+ "^[!#$%&'*+\\ -.^_`|~0-9A-Za-z]+$" : {
3952+ "anyOf" : [
3953+ {
3954+ "type" : " string"
3955+ },
3956+ {
3957+ "anyOf" : [
3958+ {
3959+ "type" : " object" ,
3960+ "properties" : {
3961+ "secret" : {
3962+ "type" : " string" ,
3963+ "description" : " The name of the secret that contains the token."
3964+ }
3965+ },
3966+ "required" : [
3967+ " secret"
3968+ ],
3969+ "additionalProperties" : false
3970+ },
3971+ {
3972+ "type" : " object" ,
3973+ "properties" : {
3974+ "env" : {
3975+ "type" : " string" ,
3976+ "description" : " The name of the environment variable that contains the token. Only supported in declarative connection configs."
3977+ }
3978+ },
3979+ "required" : [
3980+ " env"
3981+ ],
3982+ "additionalProperties" : false
3983+ }
3984+ ]
3985+ }
3986+ ]
3987+ }
3988+ },
3989+ "additionalProperties" : false
39023990 }
39033991 },
39043992 "required" : [
Original file line number Diff line number Diff line change 12021202 }
12031203 },
12041204 "additionalProperties" : false
1205+ },
1206+ "queryParams" : {
1207+ "type" : " object" ,
1208+ "description" : " Optional query parameters to include in the request url." ,
1209+ "patternProperties" : {
1210+ "^[!#$%&'*+\\ -.^_`|~0-9A-Za-z]+$" : {
1211+ "anyOf" : [
1212+ {
1213+ "type" : " string"
1214+ },
1215+ {
1216+ "anyOf" : [
1217+ {
1218+ "type" : " object" ,
1219+ "properties" : {
1220+ "secret" : {
1221+ "type" : " string" ,
1222+ "description" : " The name of the secret that contains the token."
1223+ }
1224+ },
1225+ "required" : [
1226+ " secret"
1227+ ],
1228+ "additionalProperties" : false
1229+ },
1230+ {
1231+ "type" : " object" ,
1232+ "properties" : {
1233+ "env" : {
1234+ "type" : " string" ,
1235+ "description" : " The name of the environment variable that contains the token. Only supported in declarative connection configs."
1236+ }
1237+ },
1238+ "required" : [
1239+ " env"
1240+ ],
1241+ "additionalProperties" : false
1242+ }
1243+ ]
1244+ }
1245+ ]
1246+ }
1247+ },
1248+ "additionalProperties" : false
12051249 }
12061250 },
12071251 "required" : [
26292673 }
26302674 },
26312675 "additionalProperties" : false
2676+ },
2677+ "queryParams" : {
2678+ "type" : " object" ,
2679+ "description" : " Optional query parameters to include in the request url." ,
2680+ "patternProperties" : {
2681+ "^[!#$%&'*+\\ -.^_`|~0-9A-Za-z]+$" : {
2682+ "anyOf" : [
2683+ {
2684+ "type" : " string"
2685+ },
2686+ {
2687+ "anyOf" : [
2688+ {
2689+ "type" : " object" ,
2690+ "properties" : {
2691+ "secret" : {
2692+ "type" : " string" ,
2693+ "description" : " The name of the secret that contains the token."
2694+ }
2695+ },
2696+ "required" : [
2697+ " secret"
2698+ ],
2699+ "additionalProperties" : false
2700+ },
2701+ {
2702+ "type" : " object" ,
2703+ "properties" : {
2704+ "env" : {
2705+ "type" : " string" ,
2706+ "description" : " The name of the environment variable that contains the token. Only supported in declarative connection configs."
2707+ }
2708+ },
2709+ "required" : [
2710+ " env"
2711+ ],
2712+ "additionalProperties" : false
2713+ }
2714+ ]
2715+ }
2716+ ]
2717+ }
2718+ },
2719+ "additionalProperties" : false
26322720 }
26332721 },
26342722 "required" : [
Original file line number Diff line number Diff line change 122122 }
123123 },
124124 "additionalProperties" : false
125+ },
126+ "LanguageModelQueryParams" : {
127+ "type" : " object" ,
128+ "description" : " Optional query parameters to include in the request url." ,
129+ "patternProperties" : {
130+ "^[!#$%&'*+\\ -.^_`|~0-9A-Za-z]+$" : {
131+ "anyOf" : [
132+ {
133+ "type" : " string"
134+ },
135+ {
136+ "anyOf" : [
137+ {
138+ "type" : " object" ,
139+ "properties" : {
140+ "secret" : {
141+ "type" : " string" ,
142+ "description" : " The name of the secret that contains the token."
143+ }
144+ },
145+ "required" : [
146+ " secret"
147+ ],
148+ "additionalProperties" : false
149+ },
150+ {
151+ "type" : " object" ,
152+ "properties" : {
153+ "env" : {
154+ "type" : " string" ,
155+ "description" : " The name of the environment variable that contains the token. Only supported in declarative connection configs."
156+ }
157+ },
158+ "required" : [
159+ " env"
160+ ],
161+ "additionalProperties" : false
162+ }
163+ ]
164+ }
165+ ]
166+ }
167+ },
168+ "additionalProperties" : false
125169 }
126170 }
127171}
Original file line number Diff line number Diff line change @@ -18,14 +18,19 @@ export const cloneRepository = async (
1818 path,
1919 } )
2020
21- await git . init ( /*bare = */ true ) ;
22-
23- await git . fetch ( [
21+ await git . clone (
2422 remoteUrl . toString ( ) ,
25- // See https://git-scm.com/book/en/v2/Git-Internals-The-Refspec
26- "+refs/heads/*:refs/heads/*" ,
27- "--progress" ,
28- ] ) ;
23+ path ,
24+ [
25+ "--bare" ,
26+ ]
27+ ) ;
28+
29+ await unsetGitConfig ( path , [ "remote.origin.url" ] ) ;
30+
31+ await git . cwd ( {
32+ path,
33+ } ) . addConfig ( "remote.origin.fetch" , "+refs/heads/*:refs/heads/*" ) ;
2934 } catch ( error : unknown ) {
3035 const baseLog = `Failed to clone repository: ${ path } ` ;
3136
@@ -54,7 +59,6 @@ export const fetchRepository = async (
5459
5560 await git . fetch ( [
5661 remoteUrl . toString ( ) ,
57- "+refs/heads/*:refs/heads/*" ,
5862 "--prune" ,
5963 "--progress"
6064 ] ) ;
You can’t perform that action at this time.
0 commit comments