From b4dd792a15126eca3cebc7e1d5a6d2f432239bca Mon Sep 17 00:00:00 2001 From: 732642856 <732642856@qq.com> Date: Mon, 29 Jun 2026 10:12:53 +0800 Subject: [PATCH] Surface VedAstro overview in complete reading audit --- jyotish-app/mevg-audit.js | 49 +++++++++++++++++++++++++++ tests/test_frontend_productization.py | 15 ++++++++ 2 files changed, 64 insertions(+) diff --git a/jyotish-app/mevg-audit.js b/jyotish-app/mevg-audit.js index 666bb29b..640d2401 100644 --- a/jyotish-app/mevg-audit.js +++ b/jyotish-app/mevg-audit.js @@ -131,14 +131,49 @@ function confidenceProfile({ validation, allYogas, dashaData, chartData }) { }; } +function buildVedAstroOverviewHighlights(chartData = {}) { + const overview = chartData?.ai_prompt_pack?.evidence_snapshot?.vedastro_overview + || chartData?.modules?.vedastro_range_scan_result + || chartData?.vedastro_overview + || null; + if (!overview || typeof overview !== 'object' || overview.status !== 'ok') return []; + + const topEvents = overview.top_events_by_domain || {}; + const highlights = []; + const career = topEvents.career || null; + const wealth = topEvents.wealth || topEvents.finance || null; + + if (career) { + highlights.push({ + label: 'Career VedAstro overview', + detail: `${career.signal_label || career.event_id || 'career window'} · ${career.start || overview.reference_date || '-'} · single_day_overview`, + }); + } + if (wealth) { + highlights.push({ + label: 'Wealth VedAstro overview', + detail: `${wealth.signal_label || wealth.event_id || 'wealth window'} · ${wealth.start || overview.reference_date || '-'} · single_day_overview`, + }); + } + if (!highlights.length && overview.reference_date) { + highlights.push({ + label: 'VedAstro main_entry_overview', + detail: `${overview.reference_date} · single_day_overview · vedastro_overview`, + }); + } + return highlights; +} + export function buildMEVGAudit(input) { const claims = buildClaims(input); const internalChecks = buildInternalChecks(input); const profile = confidenceProfile(input); + const vedastroHighlights = buildVedAstroOverviewHighlights(input.chartData); return { profile, internalChecks, claims, + vedastroHighlights, sourceTiers: SOURCE_TIERS, boundaries: BOUNDARIES, stats: { @@ -181,6 +216,12 @@ export function renderMEVGAudit(container, audit) { ${escapeHtml(detail)} `).join(''); + const vedastroHtml = (audit.vedastroHighlights || []).map(item => ` +
这些提示来自 main_entry_overview / single_day_overview;用于事业/财富外部补证,不替代长周期精扫。
+