Description
src/storageUsageEstimator.ts reports total estimated storage usage as a single number. Integrators need a breakdown by category (invoices, events, cache) to identify which data type is driving storage costs.
Acceptance Criteria
Context
- Target file:
src/storageUsageEstimator.ts
- Categories should be registered via a
registerCategory(name, estimateFn) method
Description
src/storageUsageEstimator.tsreports total estimated storage usage as a single number. Integrators need a breakdown by category (invoices, events, cache) to identify which data type is driving storage costs.Acceptance Criteria
estimateUsage()returns aStorageReportwith abreakdown: Record<string, number>fieldbreakdownkeys correspond to data categories registered with the estimatorbreakdownvalues sum to the existingtotalBytesfieldContext
src/storageUsageEstimator.tsregisterCategory(name, estimateFn)method