Files
Jyotisha/scripts/marriage_match_cli.py
T
jesse-uxGrok (agent loop)Cursor
cf063834ca 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>
2026-10-18 16:44:05 +08:00

21 lines
703 B
Python

"""CLI for snapshot marriage matching. Birth details are not an input."""
from __future__ import annotations
import json
from pathlib import Path
from marriage_match import build_marriage_match_dossier
def run_marriage_match_cli(args) -> dict:
person_a = json.loads(Path(args.person_a).read_text(encoding="utf-8"))
person_b = json.loads(Path(args.person_b).read_text(encoding="utf-8"))
if not isinstance(person_a, dict) or not isinstance(person_b, dict):
raise ValueError("person snapshots must be JSON objects")
return build_marriage_match_dossier(
person_a,
person_b,
profile_id=getattr(args, "profile", None) or "practitioner_consensus_v1",
)