{
  "last_updated": "2026-02-22T21:45:00.000Z",
  "integration_status": {
    "sdk_installed": true,
    "api_key_valid": true,
    "provider_generated": true,
    "pageview_tracker": true,
    "event_helper": true,
    "kpi_adapter": true
  },
  "framework": {
    "framework": "nextjs",
    "typescript": true,
    "appRouter": true,
    "srcDir": true
  },
  "generated_files": [
    "website/src/components/PostHogProvider.tsx",
    "website/src/components/PostHogPageview.tsx",
    "website/src/lib/posthog.ts"
  ],
  "detected_events": [
    {
      "event": "waitlist_signup_success",
      "location": "website/src/app/page.tsx",
      "type": "website"
    },
    {
      "event": "waitlist_signup_error",
      "location": "website/src/app/page.tsx",
      "type": "website"
    },
    {
      "event": "checkout_completed",
      "location": "website/src/components/TrackCheckoutComplete.tsx",
      "type": "website"
    },
    {
      "event": "command_run",
      "location": "bin/ai-analyst.ts",
      "type": "cli",
      "properties": ["command", "dryRun", "session", "task", "type", "deep", "minimal"]
    },
    {
      "event": "heartbeat_task",
      "location": "scripts/heartbeat.ts",
      "type": "backend",
      "properties": ["taskType", "success", "errorType"]
    }
  ],
  "kpi_mappings": {
    "kpi-beta-signups": "waitlist_signup_success",
    "kpi-paying-users": "checkout_completed",
    "kpi-cli-init-count": "command_run[command=init]",
    "kpi-cli-vibe-count": "command_run[command=vibe]",
    "kpi-cli-scan-count": "command_run[command=scan]"
  },
  "unmapped_events": [
    {
      "event": "waitlist_signup_error",
      "reason": "No matching KPI — useful for error monitoring in PostHog dashboards"
    },
    {
      "event": "heartbeat_task",
      "reason": "Operational metric — useful in PostHog dashboards but no business KPI match"
    }
  ]
}
