Skip to content

UsageLimitsService

Defined in: src/usage-limits.ts:279

new UsageLimitsService(index, caps, probe, creditStore): UsageLimitsService

Defined in: src/usage-limits.ts:280

AccountUsageIndex

CapStore

UsageProbe

CreditStore

UsageLimitsService

calibrate(now): Promise<boolean>

Defined in: src/usage-limits.ts:288

Scrape /usage and recalibrate the per-window caps from local JSONL.

number

Promise<boolean>


limits(now): UsageLimits

Defined in: src/usage-limits.ts:358

Current live limits, recomputed from local JSONL against the calibrated caps.

number

UsageLimits