{"agent":"claude","input":"Add a CSV export of a todo list's items to this API and open a pull request. Read global.json, Directory.Packages.props, src/Web/Endpoints/TodoLists.cs, src/Web/Infrastructure/EndpointRouteBuilderExtensions.cs, src/Web/Infrastructure/WebApplicationExtensions.cs, src/Application/TodoLists/Queries/GetTodos/GetTodos.cs, src/Application/TodoLists/Commands/DeleteTodoList/DeleteTodoList.cs, src/Application/Common/Interfaces/IApplicationDbContext.cs, src/Infrastructure/DependencyInjection.cs, src/Domain/Entities/TodoItem.cs, tests/Application.FunctionalTests/TodoLists/Queries/GetTodosTests.cs and tests/Application.FunctionalTests/Infrastructure/TestApp.cs first. In Application add TodoLists/Queries/ExportTodos with an ExportTodosQuery(int ListId) marked [Authorize], a TodoItemRecord DTO with an AutoMapper profile, an ExportTodosVm with FileName, ContentType and Content, a validator requiring ListId greater than zero, and a handler that loads the list's items with AsNoTracking, uses Guard.Against.NotFound for a missing list, and calls a new ICsvFileBuilder interface. Add CsvHelper to Directory.Packages.props and Infrastructure.csproj, implement CsvFileBuilder under src/Infrastructure/Files with a ClassMap writing Id, Title, Note, Priority and Done, and register it in AddInfrastructureServices. In Web/Endpoints/TodoLists.cs add GetTodoListExport on the pattern {id}/export returning TypedResults.File with text/csv, with EndpointSummary and EndpointDescription attributes. Add tests/Application.FunctionalTests/TodoLists/Queries/ExportTodosTests.cs with tests for the header row and item count, the anonymous refusal and the unknown id, in the style of GetTodosTests. Run dotnet build and dotnet test tests/Application.FunctionalTests, then start the API through the AppHost, sign in as Web.http shows and fetch the export with curl -i. Paste the test summary and the curl output in the pull request. Do not change the existing queries, commands or client apps.","resources":[{"url":"https://github.com/your-org/your-app"}]}