MCPcopy
hub / github.com/codeaashu/claude-code / call

Function call

src/commands/cost/cost.ts:6–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { isClaudeAISubscriber } from '../../utils/auth.js'
5
6export const call: LocalCommandCall = async () => {
7 if (isClaudeAISubscriber()) {
8 let value: string
9
10 if (currentLimits.isUsingOverage) {
11 value =
12 'You are currently using your overages to power your Claude Code usage. We will automatically switch you back to your subscription rate limits when they reset'
13 } else {
14 value =
15 'You are currently using your subscription to power your Claude Code usage'
16 }
17
18 if (process.env.USER_TYPE === 'ant') {
19 value += `\n\n[ANT-ONLY] Showing cost anyway:\n ${formatTotalCost()}`
20 }
21 return { type: 'text', value }
22 }
23 return { type: 'text', value: formatTotalCost() }
24}
25
26

Callers

nothing calls this directly

Calls 2

formatTotalCostFunction · 0.85
isClaudeAISubscriberFunction · 0.50

Tested by

no test coverage detected