From 1744b1e923dd5fe3e5e8db179520ea0806e9e3cd Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 20 Apr 2026 19:59:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(aider):=20stdlib=20logging=20=E2=86=92=20st?= =?UTF-8?q?ructlog=20+=20typing-extensions=20dep=20(E2E=E4=BF=AE=E5=BE=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - aider_events.py: logging.getLogger → structlog.get_logger (keyword args compatible) - pyproject.toml: add typing-extensions>=4.0 (python-ulid 3.x requires Self) 2026-04-20 @ Asia/Taipei --- apps/api/src/api/v1/aider_events.py | 4 ++-- scripts/aider_watch_client/pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/api/src/api/v1/aider_events.py b/apps/api/src/api/v1/aider_events.py index d4de02ae..8d3f917d 100644 --- a/apps/api/src/api/v1/aider_events.py +++ b/apps/api/src/api/v1/aider_events.py @@ -5,13 +5,13 @@ from __future__ import annotations import hmac import hashlib import os -import logging +import structlog from fastapi import APIRouter, Header, HTTPException, Request, status from pydantic import ValidationError from src.models.aider import AiderBatchIn from src.services.aider_event_service import push_aider_batch_to_stream -logger = logging.getLogger(__name__) +logger = structlog.get_logger(__name__) router = APIRouter(prefix="/aider", tags=["Aider"]) diff --git a/scripts/aider_watch_client/pyproject.toml b/scripts/aider_watch_client/pyproject.toml index f300b95f..5ddf3d6c 100644 --- a/scripts/aider_watch_client/pyproject.toml +++ b/scripts/aider_watch_client/pyproject.toml @@ -3,7 +3,7 @@ name = "aider-watch-client" version = "0.2.0" description = "Mac client for aider-watch (posts events to awoooi API)" requires-python = ">=3.11" -dependencies = ["requests>=2.31", "python-ulid>=3.0"] +dependencies = ["requests>=2.31", "python-ulid>=3.0", "typing-extensions>=4.0"] [project.optional-dependencies] dev = ["pytest>=8.0"]