70efb56926
Window scan now drives d5_refine when D24 changes, family events use D3, and pada/Hora/Ghati are display-only. New cases bind Skill 10.0.7 without unique-minute confirmation. Co-authored-by: Cursor <cursoragent@cursor.com>
35 lines
1.3 KiB
TypeScript
35 lines
1.3 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 财帛分盘",
|
|
"d3-drekkana": "D3 兄弟分盘",
|
|
"d4-chaturthamsha": "D4 迁移分盘",
|
|
"d5-panchamsha": "D5 成就分盘",
|
|
"d7-saptamsha": "D7 子女分盘",
|
|
"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("、")}。`;
|
|
}
|