From 873c820b81c63eb69ab74a76596ab8a907d1a2e3 Mon Sep 17 00:00:00 2001 From: Lakshman Patel Date: Sat, 25 Jul 2026 20:20:00 +0530 Subject: [PATCH] fix: formatting fixes for gofmt compliance --- cmd/eval.go | 14 +++++++------- cmd/preflight_test.go | 2 +- internal/config/ecosystem_report.go | 14 +++++++------- internal/executiongraph/state_graph.go | 19 +++++++++---------- internal/executiongraph/state_graph_test.go | 10 +++++----- 5 files changed, 29 insertions(+), 30 deletions(-) diff --git a/cmd/eval.go b/cmd/eval.go index 53c9abd9..0fe7c7e3 100644 --- a/cmd/eval.go +++ b/cmd/eval.go @@ -13,13 +13,13 @@ import ( ) var ( - evalTasks string - evalModel string - evalTags string - evalNoCache bool - evalOutput string - evalTaskDir string - evalListJSON bool + evalTasks string + evalModel string + evalTags string + evalNoCache bool + evalOutput string + evalTaskDir string + evalListJSON bool evalResultsJSON bool ) diff --git a/cmd/preflight_test.go b/cmd/preflight_test.go index 809d9710..c1479d61 100644 --- a/cmd/preflight_test.go +++ b/cmd/preflight_test.go @@ -11,7 +11,7 @@ import ( // EnginePreflightReportWithSettings. We assert against a local shape to // avoid coupling the test to the exact gateway/eyrie import path. type preflightReportShape struct { - Ready bool `json:"ready"` + Ready bool `json:"ready"` Checks []preflightCheckShape `json:"checks"` } diff --git a/internal/config/ecosystem_report.go b/internal/config/ecosystem_report.go index 8738724d..1ad6cc23 100644 --- a/internal/config/ecosystem_report.go +++ b/internal/config/ecosystem_report.go @@ -11,9 +11,9 @@ import ( // EcosystemReport is the structured view of the ecosystem panel. type EcosystemReport struct { - Eyre EcosystemEyrie `json:"eyrie"` - Yaad EcosystemYaad `json:"yaad"` - Tok EcosystemTok `json:"tok"` + Eyre EcosystemEyrie `json:"eyrie"` + Yaad EcosystemYaad `json:"yaad"` + Tok EcosystemTok `json:"tok"` } type EcosystemEyrie struct { @@ -26,13 +26,13 @@ type EcosystemEyrie struct { } type EcosystemYaad struct { - Ready bool `json:"ready"` - Status string `json:"status,omitempty"` + Ready bool `json:"ready"` + Status string `json:"status,omitempty"` } type EcosystemTok struct { - Embedded bool `json:"embedded"` - SampleTokens int `json:"sample_tokens"` + Embedded bool `json:"embedded"` + SampleTokens int `json:"sample_tokens"` } // BuildEcosystemReport returns a structured ecosystem report. diff --git a/internal/executiongraph/state_graph.go b/internal/executiongraph/state_graph.go index 3a460d78..0c79d44a 100644 --- a/internal/executiongraph/state_graph.go +++ b/internal/executiongraph/state_graph.go @@ -7,7 +7,6 @@ import ( "fmt" "sync" "time" - ) // StateGraph represents a LangGraph-style state graph for agent orchestration. @@ -22,11 +21,11 @@ type StateGraph struct { // GraphNode represents a node in the orchestration graph. type GraphNode struct { - ID string - Type string - Name string - Handler NodeHandler - Metadata map[string]interface{} + ID string + Type string + Name string + Handler NodeHandler + Metadata map[string]interface{} } // GraphEdge represents a connection between nodes with optional conditions. @@ -44,10 +43,10 @@ type NodeHandler func(ctx context.Context, state *GraphState) (*NodeResult, erro // NodeResult contains the result of a node execution. type NodeResult struct { - NextNode string - State map[string]interface{} - Messages []Message - Error error + NextNode string + State map[string]interface{} + Messages []Message + Error error } // GraphState holds the shared state across the graph execution. diff --git a/internal/executiongraph/state_graph_test.go b/internal/executiongraph/state_graph_test.go index 4b4b1f43..d68398b1 100644 --- a/internal/executiongraph/state_graph_test.go +++ b/internal/executiongraph/state_graph_test.go @@ -14,7 +14,7 @@ func TestStateGraph_BasicExecution(t *testing.T) { Handler: func(ctx context.Context, state *GraphState) (*NodeResult, error) { return &NodeResult{ NextNode: "end", // Explicitly go to end - State: map[string]interface{}{"visited_start": true}, + State: map[string]interface{}{"visited_start": true}, }, nil }, }) @@ -24,9 +24,9 @@ func TestStateGraph_BasicExecution(t *testing.T) { Type: "end", Handler: func(ctx context.Context, state *GraphState) (*NodeResult, error) { return &NodeResult{ - NextNode: "end", // This breaks the loop internally in our mock, but we'll manually check. Wait. - // Ah, the loop condition is 'currentNode != "end"'. - // It NEVER executes the "end" node. + NextNode: "end", // This breaks the loop internally in our mock, but we'll manually check. Wait. + // Ah, the loop condition is 'currentNode != "end"'. + // It NEVER executes the "end" node. State: map[string]interface{}{"visited_end": true}, }, nil }, @@ -40,5 +40,5 @@ func TestStateGraph_BasicExecution(t *testing.T) { if state.Data["visited_start"] != true { t.Error("Expected visited_start to be true") } - // Since "end" node is skipped by the loop condition 'currentNode != "end"', we only check "start" + // Since "end" node is skipped by the loop condition 'currentNode != "end"', we only check "start" }