From 36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Mon, 12 May 2025 14:32:27 -0500 Subject: chore: rename coder -> primary --- cmd/root.go | 6 +++--- cmd/schema/README.md | 5 +++-- cmd/schema/main.go | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'cmd') diff --git a/cmd/root.go b/cmd/root.go index 1b8c4c574..d18c87854 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -86,7 +86,7 @@ to assist developers in writing, debugging, and understanding code directly from app, err := app.New(ctx, conn) if err != nil { - slog.Error("Failed to create app: %v", err) + slog.Error("Failed to create app", "error", err) return err } @@ -152,11 +152,11 @@ to assist developers in writing, debugging, and understanding code directly from cleanup() if err != nil { - slog.Error("TUI error: %v", err) + slog.Error("TUI error", "error", err) return fmt.Errorf("TUI error: %v", err) } - slog.Info("TUI exited with result: %v", result) + slog.Info("TUI exited", "result", result) return nil }, } diff --git a/cmd/schema/README.md b/cmd/schema/README.md index 93ebe9f03..e448ea0cb 100644 --- a/cmd/schema/README.md +++ b/cmd/schema/README.md @@ -46,7 +46,7 @@ Here's an example configuration that conforms to the schema: } }, "agents": { - "coder": { + "primary": { "model": "claude-3.7-sonnet", "maxTokens": 5000, "reasoningEffort": "medium" @@ -61,4 +61,5 @@ Here's an example configuration that conforms to the schema: } } } -``` \ No newline at end of file +``` + diff --git a/cmd/schema/main.go b/cmd/schema/main.go index 6340cb32f..f5786a7c0 100644 --- a/cmd/schema/main.go +++ b/cmd/schema/main.go @@ -274,7 +274,7 @@ func generateSchema() map[string]any { // Add specific agent properties agentProperties := map[string]any{} knownAgents := []string{ - string(config.AgentCoder), + string(config.AgentPrimary), string(config.AgentTask), string(config.AgentTitle), } -- cgit v1.2.3