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

Method data

packages/agent-core/src/agent/usage/index.ts:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41 }
42
43 data(): UsageStatus {
44 const byModel = this.byModelSnapshot();
45 const hasByModel = Object.keys(byModel).length > 0;
46 const currentTurn = this.currentTurn;
47 return {
48 byModel: hasByModel ? byModel : undefined,
49 total: hasByModel ? totalUsage(byModel) : undefined,
50 currentTurn: currentTurn === undefined ? undefined : copyUsage(currentTurn),
51 };
52 }
53
54 status(): UsageStatus | undefined {
55 const status = this.data();

Callers 1

statusMethod · 0.95

Calls 4

byModelSnapshotMethod · 0.95
totalUsageFunction · 0.85
copyUsageFunction · 0.85
keysMethod · 0.80

Tested by

no test coverage detected