From 244a939d05f1614bcf09c8b2273a00c3fe2787aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 23 Aug 2026 18:55:52 +0200 Subject: [PATCH] Drop unimported re-exports from the remaining barrels Same shape as the derived and MCP barrels: the line in the barrel had no importer because the consumer imports the concrete module. Affected: cycle (15), coach tools (9), record-settings (8), links (4), data-list, workout-detail and analytics/score (1 each). analytics/score also carried CompositeValue on an explicit export line above an export * of the same module, so the name stays exported either way. Definitions are untouched. --- src/components/data-list/index.ts | 1 - .../insights/workout-detail/index.ts | 5 +---- src/lib/ai/coach/tools/index.ts | 22 +++---------------- src/lib/analytics/score/index.ts | 3 +-- src/lib/cycle/index.ts | 18 +-------------- src/lib/links/index.ts | 4 ---- src/lib/record-settings/index.ts | 13 ++--------- 7 files changed, 8 insertions(+), 58 deletions(-) diff --git a/src/components/data-list/index.ts b/src/components/data-list/index.ts index e57f9faa4..5ae4cd35f 100644 --- a/src/components/data-list/index.ts +++ b/src/components/data-list/index.ts @@ -16,5 +16,4 @@ export { selectAllState, selectedIdsOnPage, selectedCountOnPage, - type SelectAllState, } from "./selection"; diff --git a/src/components/insights/workout-detail/index.ts b/src/components/insights/workout-detail/index.ts index 1b77f8345..ed2a654a1 100644 --- a/src/components/insights/workout-detail/index.ts +++ b/src/components/insights/workout-detail/index.ts @@ -11,7 +11,4 @@ export { WorkoutDetailZones } from "./zones"; export { WorkoutDetailRoute } from "./route-map"; export { WorkoutDetailSplits } from "./splits"; export { WorkoutDetailDayContext } from "./day-context"; -export { - WorkoutInsightCard, - type WorkoutActivityInsightData, -} from "./insight-slot"; +export { WorkoutInsightCard } from "./insight-slot"; diff --git a/src/lib/ai/coach/tools/index.ts b/src/lib/ai/coach/tools/index.ts index 55d8b8a1f..6c3972b28 100644 --- a/src/lib/ai/coach/tools/index.ts +++ b/src/lib/ai/coach/tools/index.ts @@ -6,28 +6,12 @@ * figures, and a bounded loop that executes them. The legacy snapshot path * stays alive as the no-tools fallback (per-provider `supportsTools`). */ -export { - COACH_TOOL_DEFS, - COACH_TOOL_NAMES, - isCoachToolName, - type CoachToolName, -} from "./definitions"; -export { - executeCoachTool, - type CoachToolResult, - type CoachToolTrace, -} from "./executor"; +export { COACH_TOOL_DEFS } from "./definitions"; +export type { CoachToolTrace } from "./executor"; export { buildCoachDataInventory, renderDataInventory, renderFocusHint, - type CoachDataInventory, - type InventoryEntry, } from "./inventory"; export { buildToolModeAddendum } from "./system-addendum"; -export { - runCoachToolLoop, - MAX_ROUNDS, - HARD_CAP, - type CoachToolLoopResult, -} from "./loop"; +export { runCoachToolLoop, MAX_ROUNDS } from "./loop"; diff --git a/src/lib/analytics/score/index.ts b/src/lib/analytics/score/index.ts index b06e0e637..a044997c5 100644 --- a/src/lib/analytics/score/index.ts +++ b/src/lib/analytics/score/index.ts @@ -11,7 +11,6 @@ import { SCORE_PILLAR_DOMAINS, SCORE_PILLAR_IDS, SCORE_VERSION, - type CompositeValue, type HealthScoreReport, type PillarInputs, type ScorePillarId, @@ -95,5 +94,5 @@ export function computeHealthScore( }; } -export type { CompositeValue, HealthScoreReport }; +export type { HealthScoreReport }; export * from "./types"; diff --git a/src/lib/cycle/index.ts b/src/lib/cycle/index.ts index 14fac3fa0..4dc97406a 100644 --- a/src/lib/cycle/index.ts +++ b/src/lib/cycle/index.ts @@ -10,25 +10,9 @@ export * from "./types"; export * from "./day-math"; export { predictCycle, - estimateCycleLength, - estimatePeriodLength, - observedPeriodLength, - detectTempShift, - detectMucusPeak, - confirmSymptothermal, - detectTemperatureTrend, - detectLhSurgeOvulation, median, mad, resolveLuteal, clampLuteal, } from "./prediction"; -export { phaseForDay, phaseSeries, type PhaseCycle } from "./phase"; -export { - resolveCycleVerdict, - type CycleVerdict, - type CycleVerdictState, - type CyclePhaseSpan, - type CycleProfileLengths, - type VerdictCalendarDay, -} from "./verdict"; +export { phaseForDay, type PhaseCycle } from "./phase"; diff --git a/src/lib/links/index.ts b/src/lib/links/index.ts index 3de5c1e27..e3f340e04 100644 --- a/src/lib/links/index.ts +++ b/src/lib/links/index.ts @@ -41,9 +41,5 @@ export { listTargets, listTargetsBySource, listDistinctTargets, - type LinkSourceKind, type LinkTargetKind, - type LinkRequest, - type LinkResult, - type LinkedTarget, } from "@/lib/links/link-service"; diff --git a/src/lib/record-settings/index.ts b/src/lib/record-settings/index.ts index f479498fb..525bae0a7 100644 --- a/src/lib/record-settings/index.ts +++ b/src/lib/record-settings/index.ts @@ -1,17 +1,9 @@ -export { - assertRecordSettingsAccess, - resolveGuardianRecordSettingsAccess, - type RecordSettingsAccess, -} from "./access"; -export { toRecordSettingsDto, type RecordSettingsDto } from "./dto"; +export { resolveGuardianRecordSettingsAccess } from "./access"; +export { toRecordSettingsDto } from "./dto"; export { resolveManagedIntegrationState } from "./integrations"; export { classifySettingsDestination, - isGuardianSettingsWriteAllowed, isManageDelegateSettingsDestination, - SETTINGS_DESTINATION_INVENTORY, - type SettingsDestinationClassification, - type SettingsDestinationKind, } from "./classification"; export { isManagedRecordSettingsFamily, @@ -22,6 +14,5 @@ export { parseManagedRecordSettingsPatch, safeParseManagedRecordSettingsPatch, type ManagedRecordSettingsFamily, - type ManagedRecordSettingsPatch, } from "./configuration"; export { assertRecordSettingsResponseForRecord } from "./response";