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

Function capField

graph-ui/src/app/ui-log.ts:153–155  ·  view source on GitHub ↗
(text: string, max = UI_LOG_FIELD_MAX)

Source from the content-addressed store, hash-verified

151
152/** Cut a text field at the shared cap and say so. */
153export function capField(text: string, max = UI_LOG_FIELD_MAX): string {
154 return text.length > max ? `${text.slice(0, max)} [cut at ${max}]` : text;
155}
156
157interface Repeat {
158 entry: UiLogEntry;

Callers 3

ui-log.test.tsFile · 0.90
repeatDetailFunction · 0.85
recordMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected