MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / GetConfig

Function GetConfig

config/config.go:770–787  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

768 keys := make([]string, 0, typeOfDefaults.NumField())
769 for index := 0; index < typeOfDefaults.NumField(); index++ {
770 name := strings.Split(typeOfDefaults.Field(index).Tag.Get("json"), ",")[0]
771 if name != "" && name != "-" {
772 keys = append(keys, name)
773 }
774 }
775 sort.Strings(keys)
776 return keys
777}
778
779func applyLuminaDefaults(cfg *Config, path string, cwd string, resourceDir string) {
780 data, err := os.ReadFile(path)
781 if err != nil {
782 return
783 }
784 var defaults luminaDefaults
785 if err := json.Unmarshal(data, &defaults); err != nil {
786 return
787 }
788 if defaults.APIKey != nil {
789 cfg.APIKey = *defaults.APIKey
790 }

Callers 14

FormatLargeResultMethod · 0.92
ExecuteMethod · 0.92
ExecuteMethod · 0.92
resolveToolPathFunction · 0.92
RunDaemonCLIFunction · 0.92
RunMethod · 0.92
DefaultContextPipelineFunction · 0.92
RunMemoryRecallWithQueryFunction · 0.92

Calls 1

NewConfigFunction · 0.85