import { buildOnboardingBlueprint } from '@/lib/onboarding.js';

export const runtime = 'nodejs';
export const dynamic = 'force-dynamic';

export async function POST(request) {
  const input = await request.json().catch(() => ({}));
  return Response.json(buildOnboardingBlueprint(input));
}

export async function GET() {
  return Response.json(buildOnboardingBlueprint({
    businessName: 'Villa 515',
    city: 'Dubai / Jumeirah',
    market: 'luxury fragrance, workshops, hospitality, and gifting',
    description: 'Luxury Jumeirah niche perfumery destination with bespoke scent workshops, private dining, premium gifting, and WhatsApp concierge.',
    goals: ['marketing', 'concierge', 'events', 'commerce', 'website_qa', 'competitor_research', 'pr', 'creative_assets'],
    channels: ['website', 'whatsapp', 'instagram', 'google_calendar', 'image_generation'],
    autonomy: 'approval',
  }));
}
