{"agent":"claude","input":"Add an --output / -o flag with the values text and json to the commands of this Cobra CLI that print lists or single values: get clusters, get nodes and version. Read go.mod, .go-version, Makefile, pkg/cmd/iostreams.go, pkg/cmd/kind/root.go, pkg/cmd/kind/get/ and pkg/cmd/kind/version/ first. Put the flag type, its registration and its validation in one helper in pkg/internal/cli, reject any other value before doing work, keep the text output exactly as it is, write JSON with encoding/json and a trailing newline to the command's Out stream, print an empty JSON array when there is nothing to list while keeping the existing log line on the logger, and include name, cluster and role for nodes. Leave get kubeconfig and the commands that print progress unchanged. Write unit tests that run each command with a bytes.Buffer as Out and unmarshal the JSON, run make unit and the lint and gofmt verify scripts, and open a pull request with their output. Do not change the Makefile or the workflows.","resources":[{"url":"https://github.com/your-org/your-app"}]}