@@ -378,6 +378,34 @@ func promptEnvConfig() (*docker.EnvConfig, error) {
378378 return nil , fmt .Errorf ("failed to get Root API Bearer Token: %w" , err )
379379 }
380380
381+ // Prompt for Core Config YAML File (optional)
382+ var coreConfigYAMLFile string
383+ coreConfigPrompt := & survey.Input {
384+ Message : "5. Enter Core Config YAML File path (optional):" ,
385+ Default : "./config.yaml" ,
386+ Help : "Path to your core config.yaml file (e.g., ./config.yaml). Leave empty to use env vars only." ,
387+ }
388+ if err := survey .AskOne (coreConfigPrompt , & coreConfigYAMLFile ); err != nil {
389+ return nil , fmt .Errorf ("failed to get Core Config YAML File: %w" , err )
390+ }
391+
392+ // Convert to absolute path if provided
393+ if coreConfigYAMLFile != "" {
394+ absPath , err := filepath .Abs (coreConfigYAMLFile )
395+ if err != nil {
396+ return nil , fmt .Errorf ("failed to resolve config file path: %w" , err )
397+ }
398+ coreConfigYAMLFile = absPath
399+
400+ // Check if file exists (just for user feedback, not required)
401+ if _ , err := os .Stat (absPath ); os .IsNotExist (err ) {
402+ fmt .Printf ("⚠️ Note: Config file does not exist yet: %s\n " , absPath )
403+ fmt .Println (" The core service will use environment variables for configuration." )
404+ } else {
405+ fmt .Printf ("✅ Using config file: %s\n " , absPath )
406+ }
407+ }
408+
381409 fmt .Println ()
382410 fmt .Println ("✅ Configuration saved!" )
383411
@@ -388,5 +416,6 @@ func promptEnvConfig() (*docker.EnvConfig, error) {
388416 SDK : llmSDK ,
389417 },
390418 RootAPIBearerToken : rootAPIBearerToken ,
419+ CoreConfigYAMLFile : coreConfigYAMLFile ,
391420 }, nil
392421}
0 commit comments