MCPcopy Create free account
hub / github.com/anus-dev/ANUS / useSessionStats

Function useSessionStats

packages/cli/src/ui/contexts/SessionContext.tsx:134–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132// --- Consumer Hook ---
133
134export const useSessionStats = () => {
135 const context = useContext(SessionStatsContext);
136 if (context === undefined) {
137 throw new Error(
138 'useSessionStats must be used within a SessionStatsProvider',
139 );
140 }
141 return context;
142};

Callers 8

AppFunction · 0.85
StatsDisplayFunction · 0.85
ModelStatsDisplayFunction · 0.85
ToolStatsDisplayFunction · 0.85
TestHarnessFunction · 0.85
useAnusStreamFunction · 0.85
useSlashCommandProcessorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHarnessFunction · 0.68