Build Pigway Frame Flow with bilingual UI, complete KoKonna driver and safe automation

This commit is contained in:
Pigway
2026-10-02 00:03:48 +08:00
commit 6652590b84
79 changed files with 13773 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
from typing import Protocol
class WeatherProvider(Protocol):
def get_current(self) -> dict: ...
def get_forecast(self) -> list[dict]: ...
class MockWeatherProvider:
def get_current(self):
return {
"location": "上海",
"temperature": "--",
"summary": "天气演示数据 · 尚未连接实时天气源",
"mock": True,
}
def get_forecast(self):
return []