MCPcopy
hub / github.com/7836246/cursor2api / getVueStats

Function getVueStats

src/logger.ts:708–719  ·  view source on GitHub ↗
(since?: number)

Source from the content-addressed store, hash-verified

706}
707
708export function getVueStats(since?: number) {
709 const cfg = getConfig();
710 if (cfg.logging?.db_enabled) {
711 try {
712 return { ...dbGetStats(since), totalLogEntries: logEntries.length };
713 } catch (e) {
714 console.warn('[Logger] dbGetStats 失败,降级到内存:', e);
715 }
716 }
717 // 内存模式:since 参数忽略,数据本就有限,直接复用 getStats()
718 return getStats();
719}
720
721// ==================== 核心 API ====================
722

Callers 1

apiGetVueStatsFunction · 0.85

Calls 4

getConfigFunction · 0.90
dbGetStatsFunction · 0.85
getStatsFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected