{"agent":"claude","input":"Replace the deprecated io/ioutil package in this Go module with its replacements in os and io. Read go.mod first: the replacements need Go 1.16 (os.ReadFile, os.WriteFile, os.ReadDir, os.MkdirTemp, os.CreateTemp, io.ReadAll, io.Discard, io.NopCloser). If the go directive is older, raise it to the lowest version that works, or to the version the CI workflow or Dockerfile builds with if one is pinned, run go mod tidy, and explain the choice and any change it caused in go.mod and go.sum. List every ioutil call with its file, line and enclosing function. Apply the same-signature renames. For each ioutil.ReadDir, read how the result is used: if the code needs Size, Mode or ModTime, call Info() on the DirEntry and handle its error; when the directory can change while it is being read (downloads, temp files, logs), treat an fs.ErrNotExist from Info() as an entry to skip and say so in a comment, and return any other error. Note that os.ReadDir sorts by filename as ioutil.ReadDir did. Remove the import. Do not refactor anything else. Run gofmt, go build ./..., go vet ./... and the tests if there are any; if there are none, say so. Install staticcheck and run check SA1019 before and after; if it reports nothing before your change, say whether the go directive is the reason. Report other findings without fixing them. Open a pull request with the list of calls, the build and vet output, and the staticcheck output before and after.","resources":[{"url":"https://github.com/your-org/your-app"}]}