把星盘接口的计算和 HTTP 拆成两个类,离线入口不再伪造请求对象。

方法体未改。定向测试 383 通过;1 条校正回归在基线上同样失败,断言未改。快速门和全量 pytest 未跑。

Co-Authored-By: Grok (agent loop)
This commit is contained in:
jesse-ux
2026-10-16 10:24:42 +08:00
co-authored by Grok (agent loop)
parent fbf04f0b5f
commit c7350bcafb
25 changed files with 3104 additions and 658 deletions
+2 -2
View File
@@ -15,9 +15,9 @@ for path in (ROOT, SCRIPTS_DIR):
def execute_consultation_workflow(body: dict[str, Any], *, surface: str = "api") -> dict[str, Any]:
from jyotish_api_server import JyotishAPIHandler, execute_consultation_workflow as _execute
from jyotish_api_server import JyotishComputeService, execute_consultation_workflow as _execute
handler = JyotishAPIHandler.__new__(JyotishAPIHandler)
handler = JyotishComputeService()
return _execute(handler, body=body, surface=surface)