- calculate_detailed_element_balance: 가중치 오행 점수 (천간 1.0, 본기 1.0, 중기 0.5, 여기 0.3) - calculate_element_score: 오행 비율 (%) — JS Math.round 호환 - analyze_day_master_strength: 신강/신약/중화 + score + reasons (월령 득령/실령, 통근, 투출, 오행 비율 4단계 평가) - estimate_yongshin: 용신/희신/기신 + explanation (신강 → 식상/재성/관살 중 약한 2개, 신약 → 인성/비겁 중 약한 것, 중화 → 5행 중 약한 2개) - calculate_seun: 올해 세운 + 4주 지지와 충/합 매핑 - perform_full_analysis: 위 5종 + branch_interactions + shinsal + gongmang + hidden_stems 통합 saju-web/lib/ai-interpretation.ts 와 1:1 매핑, 30 reference fixture 모두 통과 (180/180). 전체 saju-lab 테스트 389/389 passed. JS Math.round 와 Python round() 의 banker-rounding 차이 보정을 위해 _js_round 헬퍼 추가. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
17 KiB
17 KiB