Files
Jyotisha/frontend/src/lib/rectification-varga-sentence.ts
T
Jesse_ChenandCursor b1b4f5fac9
Independent Staging Quality Gate / validate (push) Successful in 10m19s
Independent Staging Quality Gate / publish (push) Successful in 8m7s
fix(rectification): score family events and allow appearance follow-up
Dated family evidence now moves candidates via D12 and kin houses, career receipts expose both D1-10 and D10, and appearance/marks may be asked as auxiliary first-house scores. New cases bind Skill 10.0.4.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-20 08:35:46 +08:00

32 lines
1.2 KiB
TypeScript

import type { PublicRectificationMethod } from "./rectification-agentic/v9/public-receipt";
export const PUBLIC_RECTIFICATION_METHOD_LABELS: Readonly<Record<PublicRectificationMethod, string>> = {
"d1-rashi": "D1 本命盘",
"d2-hora": "D2 财帛分盘",
"d4-chaturthamsha": "D4 迁移分盘",
"d9-navamsa": "D9 婚姻分盘",
"d10-dashamsa": "D10 事业分盘",
"d11-labhamsha": "D11 收益分盘",
"d12-dwadashamsha": "D12 父母分盘",
"d24-chaturvimshamsha": "D24 教育分盘",
"d30-trimshamsha": "D30 健康压力分盘",
"vimshottari-dasha": "Vimshottari",
"narayana-dasha": "Narayana",
gochara: "Gochara",
ashtakavarga: "Ashtakavarga",
shadbala: "Shadbala",
"arudha-pada": "Arudha Pada",
"functional-benefic-malefic": "本命功能吉凶星",
};
export function vargaSentenceFromMethods(
methods: readonly string[] | null | undefined,
): string | null {
const labels = [...new Set((methods ?? []).flatMap((method) => {
const label = PUBLIC_RECTIFICATION_METHOD_LABELS[method as PublicRectificationMethod];
return label ? [label] : [];
}))];
if (labels.length === 0) return null;
return `本轮对照了${labels.join("、")}。`;
}