MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / getMessageTypeDistribution

Function getMessageTypeDistribution

apps/desktop/main/worker/query/basic.ts:78–82  ·  view source on GitHub ↗
(sessionId: string, filter?: TimeFilter)

Source from the content-addressed store, hash-verified

76}
77
78export function getMessageTypeDistribution(sessionId: string, filter?: TimeFilter): any[] {
79 const db = openDatabaseAdapter(sessionId)
80 if (!db) return []
81 return coreGetMessageTypeStats(db, filter)
82}
83
84export function getMessageLengthDistribution(
85 sessionId: string,

Callers 1

dbWorker.tsFile · 0.90

Calls 1

openDatabaseAdapterFunction · 0.90

Tested by

no test coverage detected