拆分 scan_terminal_service:AI 配置常量移至 scan_ai_config.py

提取 ~140 行配置+env helpers 到新模块。scan_terminal_service 1534→1474 行。
This commit is contained in:
2569718930@qq.com
2026-05-25 17:37:38 +08:00
parent 623ec7c5fa
commit c82c33ec53
5 changed files with 174 additions and 241 deletions
@@ -20,7 +20,6 @@ export function runTests() {
"dashboard",
"ScanTerminalDashboard.tsx",
);
const dashboardClientPath = path.join(projectRoot, "lib", "dashboard-client.ts");
const airportEvidencePath = path.join(
projectRoot,
"components",
@@ -31,7 +30,6 @@ export function runTests() {
const querySource = fs.readFileSync(queryPath, "utf8");
const dashboardSource = fs.readFileSync(dashboardPath, "utf8");
const dashboardClientSource = fs.readFileSync(dashboardClientPath, "utf8");
const airportEvidenceSource = fs.readFileSync(airportEvidencePath, "utf8");
assert(
@@ -52,8 +50,4 @@ export function runTests() {
!airportEvidenceSource.includes("busan:"),
"settlement runway mapping must cover all active settlement cities without mixing in non-settlement airports",
);
assert(
dashboardClientSource.includes('CACHE_KEY = "polyWeather_v2_chart_full_day"'),
"city detail cache key must be bumped so old partial chart detail caches are not reused",
);
}