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

Function formatCredits

packages/arctic/src/session/usage-format.ts:166–171  ·  view source on GitHub ↗
(credits: CreditsSummary)

Source from the content-addressed store, hash-verified

164}
165
166function formatCredits(credits: CreditsSummary): string {
167 if (credits.unlimited) return "unlimited plan"
168 if (!credits.hasCredits) return "not included with this plan"
169 if (credits.balance) return `balance ${credits.balance}`
170 return "available"
171}
172
173function formatTokenUsage(usage: UsageRecordSummary["tokenUsage"]): string | undefined {
174 if (!usage) return undefined

Callers 1

formatUsageSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected