feat(synastry): store the upstream seven-item marriage match

Move the bde5d615 engine and full-synastry skill in unchanged, save both profiles without billing or a page, and retire the old synastry module.

Checked targeted pytest, tsc 0, lint 0 errors, service tests 6/6, and test:db 73 pass / 13 fail matching the Windows known list.

Co-Authored-By: Grok (agent loop)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jesse-ux
2026-10-18 16:44:05 +08:00
co-authored by Grok (agent loop) Cursor
parent e7bf60c1f2
commit cf063834ca
44 changed files with 5387 additions and 313 deletions
+5 -6
View File
@@ -18,7 +18,7 @@ sys.path.insert(0, SCRIPTS)
from jaimini import calc_arudha_padas, calc_graha_padas, calc_special_lagnas
from argala import calc_argala
from synastry import calc_synastry
from ashtakoot import calculate_ashtakoot
def sample_planet_longitudes():
@@ -64,11 +64,10 @@ def test_argala_enhanced_module():
def test_synastry_dashaflow_additional_kutas():
result = calc_synastry(
{"moon_lon": 210.5, "mars_lon": 130.1, "asc_lon": 120.0, "gender": "M"},
{"moon_lon": 45.2, "mars_lon": 15.0, "asc_lon": 60.0, "gender": "F"},
)
assert result["version"] == "3.8-dashaflow-mit-adapted"
# 原值: synastry.calc_synastry,并断言 version == 3.8-dashaflow-mit-adapted
# 新值: ashtakoot.calculate_ashtakoot 的 additional_kutas
# 原因: scripts/synastry.py 退役;附加 Kuta 仍在 ashtakoot.py
result = calculate_ashtakoot(210.5, 45.2)
assert "additional_kutas" in result
for key in ("Mahendra", "StreeDeergha", "Vedha", "Rajju", "BadConstellations"):
assert key in result["additional_kutas"]