style: fix remaining golines and gofmt lint issues
- spawn.go:97: break long fmt.Sprintf into multi-line
- loop.go:1179: break long if-condition into multi-line
- loop.go:2742: map[string]interface{} -> map[string]any (gofmt rewrite)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ce7845ed60
commit
6129623294
2 changed files with 7 additions and 3 deletions
|
|
@ -1176,7 +1176,8 @@ func (al *AgentLoop) runAgentLoop(ctx context.Context, agent *AgentInstance, opt
|
||||||
|
|
||||||
// 5a. Auto-advance plan phases after LLM iteration
|
// 5a. Auto-advance plan phases after LLM iteration
|
||||||
postStatus := agent.ContextBuilder.GetPlanStatus()
|
postStatus := agent.ContextBuilder.GetPlanStatus()
|
||||||
if !agent.ContextBuilder.HasActivePlan() || !(postStatus == "executing" || postStatus == "review" || postStatus == "completed") {
|
if !agent.ContextBuilder.HasActivePlan() ||
|
||||||
|
!(postStatus == "executing" || postStatus == "review" || postStatus == "completed") {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2739,7 +2740,7 @@ func (al *AgentLoop) runLLMIteration(
|
||||||
if reminder, ok := buildOrchReminder(iteration); ok {
|
if reminder, ok := buildOrchReminder(iteration); ok {
|
||||||
messages = append(messages, reminder)
|
messages = append(messages, reminder)
|
||||||
logger.DebugCF("agent", "Injected orchestration nudge",
|
logger.DebugCF("agent", "Injected orchestration nudge",
|
||||||
map[string]interface{}{
|
map[string]any{
|
||||||
"agent_id": agent.ID,
|
"agent_id": agent.ID,
|
||||||
"iteration": iteration,
|
"iteration": iteration,
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,10 @@ func (t *SpawnTool) Execute(ctx context.Context, args map[string]any) *ToolResul
|
||||||
|
|
||||||
// Validate preset name if provided
|
// Validate preset name if provided
|
||||||
if preset != "" && !IsValidPreset(Preset(preset)) {
|
if preset != "" && !IsValidPreset(Preset(preset)) {
|
||||||
return ErrorResult(fmt.Sprintf("preset %q is not valid. Available presets: scout, analyst, coder, worker, coordinator", preset))
|
return ErrorResult(fmt.Sprintf(
|
||||||
|
"preset %q is not valid. Available presets: scout, analyst, coder, worker, coordinator",
|
||||||
|
preset,
|
||||||
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
if t.manager == nil {
|
if t.manager == nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue