- Replace private localApi.request() calls with public methods
- Add aiInterpretation public methods to LocalApiClient
- Fix type mismatches in AnalysisPage and HistoryPage
- Convert string IDs to numbers where required
- Ensure all API calls use proper public interfaces