MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / repeatCount

Function repeatCount

graph-ui/src/app/ui-log.ts:140–143  ·  view source on GitHub ↗
(detail: string | undefined)

Source from the content-addressed store, hash-verified

138
139/** The count of a repeat entry, undefined for an ordinary one. */
140export function repeatCount(detail: string | undefined): number | undefined {
141 const match = /^(\d+) identical entries in this session\b/.exec(detail ?? '');
142 return match ? Number(match[1]) : undefined;
143}
144
145/** The detail of the entry a repeat count stands for; an ordinary detail as it is. */
146export function countedDetail(detail: string | undefined): string | undefined {

Callers 4

ui-log.test.tsFile · 0.90
repeatIdentityFunction · 0.90
countedDetailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected