@@ -53,6 +53,7 @@ type profileEntry struct {
5353type fileLayout struct {
5454 DefaultProfile string `yaml:"default_profile"`
5555 DefaultSettle string `yaml:"default_settle"`
56+ Intel config.IntelFile `yaml:"intel,omitempty"`
5657 Profiles map [string ]profileEntry `yaml:"profiles"`
5758}
5859
@@ -82,6 +83,11 @@ func runInit(cmd *cobra.Command, args []string) error {
8283 fc := fileLayout {
8384 DefaultProfile : profileName ,
8485 DefaultSettle : "usdt" ,
86+ // Defaults come from internal/config constants (CR-1010); bump those when public QC URLs move.
87+ Intel : config.IntelFile {
88+ InfoMCPURL : config .DefaultIntelInfoMCPURL ,
89+ NewsMCPURL : config .DefaultIntelNewsMCPURL ,
90+ },
8591 Profiles : map [string ]profileEntry {
8692 profileName : {APIKey : apiKey , APISecret : apiSecret },
8793 },
@@ -102,7 +108,9 @@ func maskSecrets(content string) string {
102108 lines := strings .Split (content , "\n " )
103109 for i , line := range lines {
104110 trimmed := strings .TrimLeft (line , " \t " )
105- if strings .HasPrefix (trimmed , "api_key:" ) || strings .HasPrefix (trimmed , "api_secret:" ) {
111+ if strings .HasPrefix (trimmed , "api_key:" ) || strings .HasPrefix (trimmed , "api_secret:" ) ||
112+ strings .HasPrefix (trimmed , "bearer_token:" ) || strings .HasPrefix (trimmed , "news_bearer_token:" ) ||
113+ strings .HasPrefix (trimmed , "info_bearer_token:" ) {
106114 indent := line [:len (line )- len (trimmed )]
107115 field := trimmed [:strings .Index (trimmed , ":" )]
108116 lines [i ] = indent + field + ": ****"
0 commit comments