{"agent":"claude","input":"Add Idempotency-Key support to the POST APIs in this Django REST Framework project and open a pull request. Read requirements/base.txt, requirements/local.txt, config/django/base.py, styleguide_example/api/mixins.py, styleguide_example/api/exception_handlers.py, styleguide_example/users/apis.py, styleguide_example/files/apis.py, styleguide_example/common/models.py and styleguide_example/tasks/management/commands/setup_periodic_tasks.py first. Add an IdempotencyKey model in styleguide_example/api with key, user, request_hash, response_status, response_body and created_at, unique on user and key, with a migration. Add an IdempotentPostMixin beside ApiAuthMixin that replays a stored response when the key and hash match, answers 422 in the project's detail error shape when the body differs, answers 409 when the same key is in flight, and does nothing without the header. Apply it to UserCreateApi, FileStandardUploadApi and FileDirectUploadStartApi. Add a periodic Celery task that deletes keys older than a day. Write tests with APIClient covering replay, changed body, two users sharing a key and no header. Run python manage.py makemigrations --check, pytest, ruff check . and mypy --config mypy.ini styleguide_example/, and paste the output in the pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}