import type { BrandProfile, Project } from "@/types/workflow";
import {
  buildBrandIntelligence,
  formatBrandIntelligenceMarkdown,
} from "../intelligence/brand-intelligence";

/** Brand Intelligence Engine — structured understanding from project data. */
export function buildBrandContext(
  brand: BrandProfile,
  project: Project,
  website?: import("../website-intelligence").WebsiteIntelligence | null,
) {
  const intelligence = buildBrandIntelligence(brand, project, website);
  return {
    intelligence,
    markdown: formatBrandIntelligenceMarkdown(intelligence),
  };
}

export { buildBrandIntelligence, formatBrandIntelligenceMarkdown };
