MCPcopy Create free account
hub / github.com/arctic-cli/interface / limitLine

Function limitLine

packages/arctic/src/session/usage-format.ts:136–141  ·  view source on GitHub ↗
(label: string, window: RateLimitWindowSummary | undefined, now: number)

Source from the content-addressed store, hash-verified

134}
135
136function limitLine(label: string, window: RateLimitWindowSummary | undefined, now: number): string | undefined {
137 if (!window) return undefined
138 const remaining = formatRemaining(window)
139 const reset = formatReset(window.resetsAt || undefined, now) ?? "reset unknown"
140 return `${label.padEnd(9)} ${remaining} · ${reset} `
141}
142
143function formatRemaining(window: RateLimitWindowSummary): string {
144 if (typeof window.usedPercent !== "number") {

Callers 1

formatLimitsFunction · 0.85

Calls 2

formatRemainingFunction · 0.85
formatResetFunction · 0.70

Tested by

no test coverage detected