File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ type ConfigSync struct {
3030 CodegraphSuccessPercent float32 `json:"codegraphSuccessPercent"`
3131}
3232
33+ type configDeepwiki struct {
34+ BaseURL string `json:"baseURL"`
35+ Model string `json:"model"`
36+ ApiKey string `json:"apiKey"`
37+ }
38+
3339// Pprof configuration
3440type ConfigPprof struct {
3541 Enabled bool `json:"enabled"`
@@ -38,10 +44,11 @@ type ConfigPprof struct {
3844
3945// Client configuration file structure
4046type ClientConfig struct {
41- Server ConfigServer `json:"server"`
42- Scan ConfigScan `json:"scan"`
43- Sync ConfigSync `json:"sync"`
44- Pprof ConfigPprof `json:"pprof"`
47+ Server ConfigServer `json:"server"`
48+ Scan ConfigScan `json:"scan"`
49+ Sync ConfigSync `json:"sync"`
50+ Pprof ConfigPprof `json:"pprof"`
51+ Deepwiki configDeepwiki `json:"deepwiki"`
4552}
4653
4754var DefaultConfigServer = ConfigServer {
Original file line number Diff line number Diff line change @@ -245,7 +245,10 @@ func configChanged(current, new config.ClientConfig) bool {
245245 current .Scan .MaxFileCount != new .Scan .MaxFileCount ||
246246 ! equalIgnorePatterns (current .Scan .FolderIgnorePatterns , new .Scan .FolderIgnorePatterns ) ||
247247 ! equalIgnorePatterns (current .Scan .FileIncludePatterns , new .Scan .FileIncludePatterns ) ||
248- ! equalIgnorePatterns (current .Scan .DeepwikiFolderIgnorePatterns , new .Scan .DeepwikiFolderIgnorePatterns )
248+ ! equalIgnorePatterns (current .Scan .DeepwikiFolderIgnorePatterns , new .Scan .DeepwikiFolderIgnorePatterns ) ||
249+ current .Deepwiki .BaseURL != new .Deepwiki .BaseURL ||
250+ current .Deepwiki .Model != new .Deepwiki .Model ||
251+ current .Deepwiki .ApiKey != new .Deepwiki .ApiKey
249252}
250253
251254// equalIgnorePatterns compares whether ignore patterns are same
You can’t perform that action at this time.
0 commit comments