Agent Executor (AX) is Google's open agentic orchestration runtime
Go
Run go fmt ./... (#100)
Jaana Doganc03370ee94ce
diff --git a/cmd/ax/fork.go b/cmd/ax/fork.goindex 0272396..1671b82 100644--- a/cmd/ax/fork.go+++ b/cmd/ax/fork.go@@ -24,10 +24,10 @@ import ()var (- forkSourceID string+ forkSourceID stringforkCheckpointID string- forkDestID string- forkServerAddr string+ forkDestID string+ forkServerAddr string)var forkCmd = &cobra.Command{diff --git a/cmd/ax/internal/display.go b/cmd/ax/internal/display.goindex 28e65ca..d5c19f3 100644--- a/cmd/ax/internal/display.go+++ b/cmd/ax/internal/display.go@@ -36,7 +36,7 @@ type Display struct {userStyle lipgloss.StylecheckpointStyle lipgloss.Style- idStyle lipgloss.Style+ idStyle lipgloss.StyleloadingVisible atomic.BoolloadingStopCh chan booldiff --git a/cmd/sandbox-router/main.go b/cmd/sandbox-router/main.goindex 982e1af..bb0913c 100644--- a/cmd/sandbox-router/main.go+++ b/cmd/sandbox-router/main.go@@ -63,7 +63,7 @@ func main() {}log.Printf("Proxying request %s to %s", req.URL.Path, targetURL)-+req.URL.Scheme = target.Schemereq.URL.Host = target.Hostreq.Host = target.Hostdiff --git a/examples/gke_sandbox_agent/main.go b/examples/gke_sandbox_agent/main.goindex b08581d..4d6bd4b 100644--- a/examples/gke_sandbox_agent/main.go+++ b/examples/gke_sandbox_agent/main.go@@ -50,7 +50,7 @@ func (s *server) Process(stream grpc.BidiStreamingServer[proto.ProcessRequest, p}var outputs []*proto.Content-+if len(req.Contents) > 0 {// Find the most recent message from the "user" in the historyvar targetText stringdiff --git a/examples/gke_sandbox_agent/main_test.go b/examples/gke_sandbox_agent/main_test.goindex 05d0ff5..6b9832f 100644--- a/examples/gke_sandbox_agent/main_test.go+++ b/examples/gke_sandbox_agent/main_test.go@@ -15,9 +15,9 @@package mainimport (- "testing"- "strings""fmt"+ "strings"+ "testing""github.com/google/ax/proto")diff --git a/internal/controller/task/task.go b/internal/controller/task/task.goindex d68d8ba..0057876 100644--- a/internal/controller/task/task.go+++ b/internal/controller/task/task.go@@ -26,9 +26,9 @@ import (type EventLogBuilder func() (EventLog, error)type taskExecutor struct {- id string- eventLog EventLog- registry map[string]agent.Agent+ id string+ eventLog EventLog+ registry map[string]agent.Agent}func newTaskID(parent, child string) string {@@ -40,9 +40,9 @@ func newTaskID(parent, child string) string {func DefaultExecutor(eventLog EventLog, registry map[string]agent.Agent) agent.TaskExecutor {return &taskExecutor{- id: "",- eventLog: eventLog,- registry: registry,+ id: "",+ eventLog: eventLog,+ registry: registry,}}@@ -78,9 +78,9 @@ func (tm *taskExecutor) exec(allInputs []*proto.Content,o agent.OutputHandler) error {child := &taskExecutor{- id: t.ID,- eventLog: tm.eventLog,- registry: tm.registry,+ id: t.ID,+ eventLog: tm.eventLog,+ registry: tm.registry,}var allOutputs []*proto.Contentdiff --git a/internal/controller/validation_test.go b/internal/controller/validation_test.goindex 6082b39..4b1dde1 100644--- a/internal/controller/validation_test.go+++ b/internal/controller/validation_test.go@@ -27,22 +27,22 @@ func TestValidateID(t *testing.T) {{name: "valid lowercase",id: "task123",- wantErr: false,+ wantErr: false,},{name: "valid mixed",id: "Task-ID_123",- wantErr: false,+ wantErr: false,},{name: "valid simple",id: "Task-ID",- wantErr: false,+ wantErr: false,},{name: "valid underscore",id: "task_id",- wantErr: false,+ wantErr: false,},{name: "invalid space",diff --git a/internal/sandboxclient/client.go b/internal/sandboxclient/client.goindex 2313982..98a5c38 100644--- a/internal/sandboxclient/client.go+++ b/internal/sandboxclient/client.go@@ -75,7 +75,6 @@ func NewClient(namespace string) (*Client, error) {}, nil}-// CreateClaim provisions an ephemeral sandbox execution environment.func (c *Client) CreateClaim(ctx context.Context, claimName, templateRef string) error {claim := &unstructured.Unstructured{diff --git a/internal/skills/skills.go b/internal/skills/skills.goindex 3333e33..e462093 100644--- a/internal/skills/skills.go+++ b/internal/skills/skills.go@@ -51,12 +51,12 @@ type ScriptResult struct {// DefaultDir returns the default system-wide directory for discovering skills.// It resolves to ~/.agents/skills on all platforms.func DefaultDir() string {- homeDir, err := os.UserHomeDir()- if err != nil {- // Fallback to Unix HOME if UserHomeDir fails (though rare).- homeDir = os.Getenv("HOME")- }- return filepath.Join(homeDir, ".agents", "skills")+ homeDir, err := os.UserHomeDir()+ if err != nil {+ // Fallback to Unix HOME if UserHomeDir fails (though rare).+ homeDir = os.Getenv("HOME")+ }+ return filepath.Join(homeDir, ".agents", "skills")}// Discover scans dir for agentskills.io-compatible skill directories and@@ -134,8 +134,8 @@ func (s Skill) RunScript(ctx context.Context, script string, args []string) (*Sccmd := exec.CommandContext(ctx, scriptPath, args...)cmd.Dir = s.Dir-- var stdout, stderr bytes.Buffer++ var stdout, stderr bytes.Buffercmd.Stdout = &stdoutcmd.Stderr = &stderrdiff --git a/internal/skills/skills_test.go b/internal/skills/skills_test.goindex 99a4455..94d5ec4 100644--- a/internal/skills/skills_test.go+++ b/internal/skills/skills_test.go@@ -87,7 +87,7 @@ func TestRunScript(t *testing.T) {ctx := context.Background()s := Skill{Dir: skillDir, Name: "test-skill"}-+result, err := s.RunScript(ctx, "hello.sh", []string{"world"})if err != nil {t.Fatalf("RunScript() failed: %v", err)