feat: 梅花易数证据链架构 + 64卦爻辞

This commit is contained in:
小钰 committed 2026-08-03 09:10:31 +08:00
1 parent 0a7858bc98
commit cea8e012b5
4 files changed
+1364 -1

No files matched your search

+50
View File
@@ -91,5 +91,55 @@ ${mutual.fullName} (${mutual.symbol})
卦辞:${mutual.judgment}
`;
// 证据链摘要
if (r.evidence) {
const ev = r.evidence;
text += `
───────────────────────────────────
证 据 链
───────────────────────────────────
`;
// 阶段体用
for (const s of ev.stages) {
text += `【${s.label}】${s.hexagramName}:体${s.ti.name}${s.ti.element}(${s.ti.seasonState})vs 用${s.yong.name}${s.yong.element}(${s.yong.seasonState})→ ${s.relation}
`;
}
// 推进
if (ev.transitionFacts.length > 0) {
text += `
【阶段推进】
`;
for (const t of ev.transitionFacts) {
text += ` ${t.promptText}
`;
}
}
// 反证
text += `
【反证】${ev.counterSummary.detail}
`;
// 应期
if (ev.timingFacts.length > 0) {
text += `
【应期参考】
`;
for (const t of ev.timingFacts) {
text += ` ${t.promptText}
`;
}
}
// 传统文本(仅动爻爻辞)
const movingYaoFacts = ev.traditionalFacts.filter(f => f.applicability === '当前动爻辅助');
if (movingYaoFacts.length > 0) {
text += `
【动爻爻辞】
`;
for (const f of movingYaoFacts) {
text += ` ${f.originalText}
`;
}
}
}
return text;
}