diff --git a/src/__tests__/baselines/source-file-lines.json b/src/__tests__/baselines/source-file-lines.json index 6758047d3..1dc83d219 100644 --- a/src/__tests__/baselines/source-file-lines.json +++ b/src/__tests__/baselines/source-file-lines.json @@ -1,24 +1,24 @@ { "$comment": "Production files over 800 lines and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.", - "count": 123, - "total": 145591, + "count": 124, + "total": 146512, "entries": { "app/api/dashboard/summary/route.ts": 1032, "app/api/documents/inbound/route.ts": 811, - "app/api/insights/generate/route.ts": 1209, + "app/api/insights/generate/route.ts": 1214, "app/api/measurements/batch/route.ts": 1562, "app/api/measurements/route.ts": 938, "app/api/medications/[id]/route.ts": 1281, "app/api/medications/intake/bulk/route.ts": 1044, "app/api/workouts/batch/route.ts": 971, "app/medications/page-client.tsx": 839, - "app/page-client.tsx": 2326, + "app/page-client.tsx": 2324, "components/admin/backups-section.tsx": 1462, "components/charts/health-chart.tsx": 2517, "components/charts/mood-chart.tsx": 1166, "components/cycle/log-day-sheet.tsx": 1639, "components/documents/document-detail-sheet.tsx": 1305, - "components/documents/documents-view.tsx": 1212, + "components/documents/documents-view.tsx": 1244, "components/insights/coach-panel/chat-bubble.tsx": 888, "components/insights/coach-panel/coach-conversation.tsx": 1286, "components/insights/coach-panel/use-coach.ts": 1486, @@ -50,6 +50,7 @@ "lib/ai/coach/turn/model.ts": 820, "lib/ai/coach/types.ts": 1011, "lib/ai/codex-client.ts": 1094, + "lib/ai/local-client.ts": 880, "lib/ai/prompts/insight-generator.ts": 1110, "lib/ai/provider.ts": 1632, "lib/analytics/score/reader.ts": 998, @@ -63,7 +64,7 @@ "lib/daily/load-digest.ts": 1000, "lib/daily/today-overview.ts": 838, "lib/dashboard-layout.ts": 971, - "lib/dashboard/snapshot.ts": 1549, + "lib/dashboard/snapshot.ts": 1550, "lib/day/records.ts": 1175, "lib/doctor-report/collect.ts": 803, "lib/export/backup-plan.ts": 853, @@ -81,7 +82,7 @@ "lib/import/health-connect/import.ts": 1689, "lib/import/unzip-export-xml.ts": 825, "lib/insights/comprehensive-aggregator.ts": 943, - "lib/insights/comprehensive-generate.ts": 1669, + "lib/insights/comprehensive-generate.ts": 1674, "lib/insights/correlation-channel-series.ts": 1339, "lib/insights/correlation-discovery.ts": 1240, "lib/insights/correlations.ts": 1026, diff --git a/src/__tests__/baselines/source-function-lines.json b/src/__tests__/baselines/source-function-lines.json index b3ac7b5f3..86967afbb 100644 --- a/src/__tests__/baselines/source-function-lines.json +++ b/src/__tests__/baselines/source-function-lines.json @@ -1,7 +1,7 @@ { "$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.", - "count": 409, - "total": 147774, + "count": 411, + "total": 148369, "entries": { "app/achievements/page.tsx :: AchievementsPage": 206, "app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 314, @@ -28,8 +28,8 @@ "app/api/ingest/medication/route.ts :: apiHandler(arg)": 269, "app/api/insights/cards/route.ts :: apiHandler(arg)": 211, "app/api/insights/comprehensive/route.ts :: buildComprehensiveResponse": 505, - "app/api/insights/generate/route.ts :: apiHandler(arg) #2": 862, - "app/api/insights/generate/route.ts :: apiHandler(arg) > withFeatureCacheScope(arg)": 858, + "app/api/insights/generate/route.ts :: apiHandler(arg) #2": 866, + "app/api/insights/generate/route.ts :: apiHandler(arg) > withFeatureCacheScope(arg)": 862, "app/api/integrations/status/route.ts :: apiHandler(arg)": 451, "app/api/labs/[id]/route.ts :: apiHandler(arg) #2": 244, "app/api/labs/ocr/commit/route.ts :: commitOcrRows": 290, @@ -76,7 +76,7 @@ "app/labs/page.tsx :: LabsPage": 228, "app/medications/page-client.tsx :: MedicationsPageClient": 591, "app/notifications/page.tsx :: NotificationsPage": 327, - "app/page-client.tsx :: DashboardPageClient": 2133, + "app/page-client.tsx :: DashboardPageClient": 2131, "app/page-client.tsx :: DashboardPageClient > (anonymous)": 1279, "components/activity/activity-calendar-card.tsx :: ActivityCalendarCard": 470, "components/admin/admin-shell.tsx :: AdminShell": 254, @@ -118,8 +118,8 @@ "components/daily/today-hero.tsx :: TodayHero": 490, "components/dashboard/dashboard-header.tsx :: DashboardHeader": 215, "components/dashboard/medication-intake-quick-add.tsx :: MedicationIntakeQuickAdd": 384, - "components/day/day-layer.tsx :: DayLayer": 375, - "components/day/day-view.tsx :: DayView": 300, + "components/day/day-layer.tsx :: DayLayer": 374, + "components/day/day-view.tsx :: DayView": 309, "components/documents/document-ai-section.tsx :: DocumentAiSection": 262, "components/documents/document-bulk-bar.tsx :: DocumentBulkBar": 204, "components/documents/document-card.tsx :: DocumentCard": 354, @@ -129,7 +129,7 @@ "components/documents/document-filter-bar.tsx :: DocumentFilterBar": 348, "components/documents/document-record-links.tsx :: DocumentRecordLinks": 202, "components/documents/document-timeline.tsx :: DocumentTimeline": 314, - "components/documents/documents-view.tsx :: DocumentsView": 964, + "components/documents/documents-view.tsx :: DocumentsView": 969, "components/documents/sources/document-source-picker.tsx :: DocumentSourcePicker": 565, "components/illness/log-day-sheet.tsx :: LogDaySheet": 265, "components/illness/new-episode-sheet.tsx :: NewEpisodeSheet": 264, @@ -173,7 +173,7 @@ "components/labs/ocr-review-dialog.tsx :: OcrReviewDialog": 359, "components/labs/ocr-row-editor.tsx :: OcrRowEditor": 393, "components/layout/auth-shell.tsx :: AuthShell": 520, - "components/layout/bottom-nav.tsx :: BottomNav": 260, + "components/layout/bottom-nav.tsx :: BottomNav": 262, "components/layout/capture-picker.tsx :: CapturePicker": 235, "components/layout/sidebar-nav.tsx :: SidebarNav": 372, "components/layout/top-bar.tsx :: TopBar": 212, @@ -225,6 +225,7 @@ "components/provenance/source-provenance-view.tsx :: SourceProvenanceView": 363, "components/records/allergy-form.tsx :: AllergyForm": 225, "components/records/audit-c-panel.tsx :: AuditCPanel": 285, + "components/records/free-text-take-over.tsx :: FreeTextTakeOver": 201, "components/records/life-circumstances-manager.tsx :: SectionBody": 482, "components/settings/about-section.tsx :: AboutSection": 236, "components/settings/access/grant-invite-card.tsx :: GrantInviteCard": 311, @@ -276,11 +277,12 @@ "components/timeline/timeline-chart.tsx :: ChartBody": 243, "components/timeline/timeline-chronicle.tsx :: TimelineChronicle": 274, "components/timeline/timeline-view.tsx :: TimelineView": 502, - "components/ui/responsive-sheet.tsx :: ResponsiveSheet": 237, + "components/ui/responsive-sheet.tsx :: ResponsiveSheet": 239, "components/vaccinations/catalog-picker.tsx :: CatalogPicker": 221, "components/vaccinations/custom-vaccine-sheet.tsx :: CustomVaccineSheet": 246, "components/vaccinations/vaccination-form.tsx :: VaccinationForm": 218, "components/workouts/manual-workout-form.tsx :: ManualWorkoutForm": 323, + "hooks/use-sheet-drag.ts :: createSheetDrag": 312, "lib/activity/calendar-math.ts :: buildActivityCalendar": 204, "lib/ai/anthropic-client.ts :: generateCompletion": 294, "lib/ai/coach/cycle-snapshot.ts :: buildCycleSnapshotBlock": 218, @@ -291,8 +293,8 @@ "lib/ai/coach/turn/pipeline.ts :: runTurn": 274, "lib/ai/coach/turn/reply-guards.ts :: guardReply": 331, "lib/ai/codex-client.ts :: parseResponse": 302, - "lib/ai/local-client.ts :: generateCompletionStream": 288, - "lib/ai/openai-client.ts :: generateCompletion": 346, + "lib/ai/local-client.ts :: generateCompletionStream": 298, + "lib/ai/openai-client.ts :: generateCompletion": 390, "lib/analytics/bp-in-target-fast-path.ts :: computeFromRollups": 203, "lib/analytics/compliance/display.ts :: calculateCompliance": 212, "lib/analytics/correlations-fast-path.ts :: computeCorrelationHypothesesFastPath": 256, @@ -307,7 +309,7 @@ "lib/cycle/day-log-write.ts :: writeDayLog": 311, "lib/daily/digest.ts :: buildDailyDigest": 227, "lib/daily/load-digest.ts :: loadDailyDigest": 452, - "lib/dashboard/snapshot.ts :: buildDashboardSnapshot": 312, + "lib/dashboard/snapshot.ts :: buildDashboardSnapshot": 313, "lib/dashboard/snapshot.ts :: buildExtras": 240, "lib/day/records.ts :: medicationsPart": 306, "lib/doctor-report-pdf/clinical-records-notes-section.ts :: buildClinicalRecordsNotesSection": 648, @@ -336,7 +338,7 @@ "lib/insights/blood-pressure-status.ts :: prepareBloodPressureStatusForUser": 635, "lib/insights/bmi-status.ts :: prepareBmiStatusForUser": 387, "lib/insights/comprehensive-aggregator.ts :: buildFromRollups": 220, - "lib/insights/comprehensive-generate.ts :: generateComprehensiveInsight": 872, + "lib/insights/comprehensive-generate.ts :: generateComprehensiveInsight": 876, "lib/insights/features.ts :: extractFeatures": 796, "lib/insights/general-status.ts :: prepareGeneralStatusForUser": 449, "lib/insights/medication-compliance-status.ts :: prepareMedicationComplianceStatusForUser": 485, diff --git a/src/__tests__/baselines/test-source-reads.json b/src/__tests__/baselines/test-source-reads.json index 4ff3ebc60..2aff0e4d8 100644 --- a/src/__tests__/baselines/test-source-reads.json +++ b/src/__tests__/baselines/test-source-reads.json @@ -1,12 +1,13 @@ { "$comment": "tests that read a source file by path, per test file under src/. Maintained by src/__tests__/test-realism-ratchet.test.ts.", - "count": 365, - "total": 365, + "count": 367, + "total": 367, "entries": { "__tests__/account-payload-consumer-guard.test.ts": 1, "__tests__/admin-data-wipe-completeness.test.ts": 1, "__tests__/aging-fixture-dates-guard.test.ts": 1, "__tests__/ai-call-timeout-guard.test.ts": 1, + "__tests__/ai-client-abort-guard.test.ts": 1, "__tests__/ai-consent-enforcement-guard.test.ts": 1, "__tests__/ai-egress-capability-guard.test.ts": 1, "__tests__/ai-reasoning-admin-guard.test.ts": 1, @@ -87,6 +88,7 @@ "__tests__/mood-backup-completeness.test.ts": 1, "__tests__/mood-prediction-write-surface-guard.test.ts": 1, "__tests__/moodlog-removal-guard.test.ts": 1, + "__tests__/next-image-optimizer-guard.test.ts": 1, "__tests__/no-server-actions-guard.test.ts": 1, "__tests__/oidc-native-error-reasons-documented.test.ts": 1, "__tests__/openapi-account-sharing-components.test.ts": 1, diff --git a/src/__tests__/baselines/version-stamp-comments.json b/src/__tests__/baselines/version-stamp-comments.json index 48b05f896..37e3bc44e 100644 --- a/src/__tests__/baselines/version-stamp-comments.json +++ b/src/__tests__/baselines/version-stamp-comments.json @@ -1,7 +1,7 @@ { "$comment": "Comment lines that open with a release version, per file under src/. Maintained by src/__tests__/version-stamp-ratchet.test.ts.", "count": 2959, - "total": 10524, + "total": 10521, "entries": { "__tests__/account-payload-consumer-guard.test.ts": 2, "__tests__/acting-account-boundary-guard.test.ts": 7, @@ -678,7 +678,7 @@ "app/onboarding/[step]/page.tsx": 1, "app/onboarding/handover/page.tsx": 1, "app/onboarding/page.tsx": 2, - "app/page-client.tsx": 82, + "app/page-client.tsx": 81, "app/privacy/__tests__/page.test.tsx": 1, "app/privacy/page.tsx": 1, "app/settings/[section]/page.tsx": 1, @@ -1972,13 +1972,13 @@ "lib/dashboard/__tests__/snapshot-flag.test.ts": 1, "lib/dashboard/__tests__/snapshot.test.ts": 15, "lib/dashboard/__tests__/target-bands.test.ts": 2, - "lib/dashboard/bands.ts": 2, + "lib/dashboard/bands.ts": 1, "lib/dashboard/batch-chart-types.ts": 1, "lib/dashboard/meds-today.ts": 3, "lib/dashboard/score-narrative.ts": 1, "lib/dashboard/score-rings.ts": 2, "lib/dashboard/snapshot-read.ts": 1, - "lib/dashboard/snapshot.ts": 56, + "lib/dashboard/snapshot.ts": 55, "lib/dashboard/summary-reads.ts": 5, "lib/dashboard/widget-modules.ts": 1, "lib/data-wipe/wipe-plan.ts": 11,