MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / loadSessionUsageReport

Function loadSessionUsageReport

apps/kimi-code/src/tui/commands/info.ts:186–192  ·  view source on GitHub ↗
(host: SlashCommandHost)

Source from the content-addressed store, hash-verified

184}
185
186async function loadSessionUsageReport(host: SlashCommandHost): Promise<SessionUsageResult> {
187 try {
188 return { usage: await host.requireSession().getUsage() };
189 } catch (error) {
190 return { error: formatErrorMessage(error) };
191 }
192}
193
194async function loadRuntimeStatusReport(host: SlashCommandHost): Promise<RuntimeStatusResult> {
195 try {

Callers 1

showUsageFunction · 0.85

Calls 3

formatErrorMessageFunction · 0.90
requireSessionMethod · 0.65
getUsageMethod · 0.45

Tested by

no test coverage detected