Project every player route safely

This commit is contained in:
Meta Vens 2026-08-17 18:04:24 +02:00
commit e05b7edb16
7 changed files with 232 additions and 22 deletions

View file

@ -172,8 +172,8 @@ async function showPreview(result: any) {
const card = node("article", undefined, "card");
card.append(
node("h3", preview.title),
node("p", preview.campaign.transcript?.[0]?.text ?? ""),
node("p", `${Object.keys(preview.campaign.locations).length} locations · ${Object.keys(preview.campaign.actors).length} actors · ${Object.keys(preview.campaign.institutions).length} institutions`),
node("p", preview.opening ?? ""),
node("p", `${preview.locations?.length ?? 0} locations · ${(preview.cast?.length ?? 0) + 1} actors · ${preview.institutions?.length ?? 0} institutions`),
node("p", preview.gaps.length ? `Material gaps: ${preview.gaps.join("; ")}` : "No declared material gaps.", "warning"),
node("p", `Branch assumptions: ${preview.branch_assumptions.join("; ") || "none"}`),
node("p", coverage.length