优化流程

This commit is contained in:
2026-09-02 13:51:35 +08:00
parent 97a03c290b
commit f3eb5dff54
71 changed files with 5290 additions and 515 deletions
+16
View File
@@ -0,0 +1,16 @@
from __future__ import annotations
from dataclasses import asdict, dataclass, field
from typing import Any
@dataclass
class Diagnostic:
code: str
message: str
severity: str = "error"
feature_id: str | None = None
detail: dict[str, Any] = field(default_factory=dict)
def as_dict(self) -> dict[str, Any]:
return asdict(self)