From ebdb12fc37c9c8db460827fdba1aa10e5b208cb9 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sat, 7 Mar 2026 23:53:15 +0000 Subject: feat(wiring): configure GeminiRunner and update API server --- internal/cli/run.go | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'internal/cli/run.go') diff --git a/internal/cli/run.go b/internal/cli/run.go index c666406..3624cea 100644 --- a/internal/cli/run.go +++ b/internal/cli/run.go @@ -51,7 +51,7 @@ func runTasks(file string, parallel int, dryRun bool) error { if dryRun { fmt.Printf("Validated %d task(s) successfully.\n", len(tasks)) for _, t := range tasks { - fmt.Printf(" - %s (model: %s, timeout: %v)\n", t.Name, t.Claude.Model, t.Timeout.Duration) + fmt.Printf(" - %s (model: %s, timeout: %v)\n", t.Name, t.Agent.Model, t.Timeout.Duration) } return nil } @@ -73,12 +73,19 @@ func runTasks(file string, parallel int, dryRun bool) error { } logger := slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{Level: level})) - runner := &executor.ClaudeRunner{ - BinaryPath: cfg.ClaudeBinaryPath, - Logger: logger, - LogDir: cfg.LogDir, + runners := map[string]executor.Runner{ + "claude": &executor.ClaudeRunner{ + BinaryPath: cfg.ClaudeBinaryPath, + Logger: logger, + LogDir: cfg.LogDir, + }, + "gemini": &executor.GeminiRunner{ + BinaryPath: cfg.GeminiBinaryPath, + Logger: logger, + LogDir: cfg.LogDir, + }, } - pool := executor.NewPool(parallel, runner, store, logger) + pool := executor.NewPool(parallel, runners, store, logger) // Handle graceful shutdown. ctx, cancel := context.WithCancel(context.Background()) -- cgit v1.2.3