style(lint): fix config and qq formatting
This commit is contained in:
parent
bef17d6453
commit
168b75ae21
2 changed files with 21 additions and 19 deletions
|
|
@ -50,15 +50,15 @@ func TestHandleC2CMessage_IncludesAccountIDMetadata(t *testing.T) {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
t.Fatal("timeout waiting for inbound message")
|
t.Fatal("timeout waiting for inbound message")
|
||||||
return
|
return
|
||||||
case inbound, ok := <-messageBus.InboundChan():
|
case inbound, ok := <-messageBus.InboundChan():
|
||||||
if !ok {
|
if !ok {
|
||||||
t.Fatal("expected inbound message")
|
t.Fatal("expected inbound message")
|
||||||
}
|
|
||||||
if inbound.Context.Raw["account_id"] != "7750283E123456" {
|
|
||||||
t.Fatalf("account_id raw = %q, want %q", inbound.Context.Raw["account_id"], "7750283E123456")
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
if inbound.Context.Raw["account_id"] != "7750283E123456" {
|
||||||
|
t.Fatalf("account_id raw = %q, want %q", inbound.Context.Raw["account_id"], "7750283E123456")
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,17 +25,19 @@ const CurrentVersion = 2
|
||||||
|
|
||||||
// Config is the current config structure with version support
|
// Config is the current config structure with version support
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Version int `json:"version" yaml:"-"` // Config schema version for migration
|
// Config schema version for migration.
|
||||||
Agents AgentsConfig `json:"agents" yaml:"-"`
|
Version int `json:"version" yaml:"-"`
|
||||||
Session SessionConfig `json:"session,omitempty" yaml:"-"`
|
Agents AgentsConfig `json:"agents" yaml:"-"`
|
||||||
Channels ChannelsConfig `json:"channels" yaml:"channels"`
|
Session SessionConfig `json:"session,omitempty" yaml:"-"`
|
||||||
ModelList SecureModelList `json:"model_list" yaml:"model_list"` // New model-centric provider configuration
|
Channels ChannelsConfig `json:"channels" yaml:"channels"`
|
||||||
Gateway GatewayConfig `json:"gateway" yaml:"-"`
|
// New model-centric provider configuration.
|
||||||
Hooks HooksConfig `json:"hooks,omitempty" yaml:"-"`
|
ModelList SecureModelList `json:"model_list" yaml:"model_list"`
|
||||||
Tools ToolsConfig `json:"tools" yaml:",inline"`
|
Gateway GatewayConfig `json:"gateway" yaml:"-"`
|
||||||
Heartbeat HeartbeatConfig `json:"heartbeat" yaml:"-"`
|
Hooks HooksConfig `json:"hooks,omitempty" yaml:"-"`
|
||||||
Devices DevicesConfig `json:"devices" yaml:"-"`
|
Tools ToolsConfig `json:"tools" yaml:",inline"`
|
||||||
Voice VoiceConfig `json:"voice" yaml:"-"`
|
Heartbeat HeartbeatConfig `json:"heartbeat" yaml:"-"`
|
||||||
|
Devices DevicesConfig `json:"devices" yaml:"-"`
|
||||||
|
Voice VoiceConfig `json:"voice" yaml:"-"`
|
||||||
// BuildInfo contains build-time version information
|
// BuildInfo contains build-time version information
|
||||||
BuildInfo BuildInfo `json:"build_info,omitempty" yaml:"-"`
|
BuildInfo BuildInfo `json:"build_info,omitempty" yaml:"-"`
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue