feat(app-controller): modularize handlers and enforce 1-space indentation

This commit is contained in:
2026-05-13 21:26:29 -04:00
parent 34b1349c4f
commit fa4388bbe0
5 changed files with 1041 additions and 842 deletions
+12
View File
@@ -43,11 +43,23 @@ import tomllib
import datetime
from dataclasses import dataclass, field
from typing import List, Optional, Dict, Any, Union
from pydantic import BaseModel
from pathlib import Path
from src.paths import get_config_path
PROVIDERS: List[str] = ["gemini", "anthropic", "gemini_cli", "deepseek", "minimax"]
class GenerateRequest(BaseModel):
prompt: str
auto_add_history: bool = True
temperature: float | None = None
top_p: float | None = None
max_tokens: int | None = None
class ConfirmRequest(BaseModel):
approved: bool
script: Optional[str] = None
CONFIG_PATH = get_config_path()
def _clean_nones(data: Any) -> Any: