diff options
| author | adamdottv <[email protected]> | 2025-05-12 14:32:27 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-05-12 14:32:27 -0500 |
| commit | 36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3 (patch) | |
| tree | e4dd3910956376104c2b3996c245393bf625bc32 /cmd | |
| parent | c9b90dd184084a2a3669db49717eb485c8861ee4 (diff) | |
| download | opencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.tar.gz opencode-36e5ae804e4bf0c96a0ce6cca90029e88c2da9b3.zip | |
chore: rename coder -> primary
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/root.go | 6 | ||||
| -rw-r--r-- | cmd/schema/README.md | 5 | ||||
| -rw-r--r-- | cmd/schema/main.go | 2 |
3 files changed, 7 insertions, 6 deletions
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), } |
