MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / short

Function short

dashboard/lcm/src/helpers.ts:26–29  ·  view source on GitHub ↗
(s: any, n: number)

Source from the content-addressed store, hash-verified

24export const SESSION_MESSAGE_PAGE_SIZE = 8;
25
26export function short(s: any, n: number): string {
27 const text = String(s || "");
28 return text.length > n ? text.slice(0, n - 1) + "…" : text;
29}
30
31export function fmtInt(n: any): string {
32 const v = Number(n) || 0;

Callers 9

TimelineChartFunction · 0.90
ToolSearchFilesFunction · 0.90
ToolResultFunction · 0.90
SearchResultCardFunction · 0.90
MessageItemFunction · 0.90
NodeRefFunction · 0.90
MessageDetailFunction · 0.90
AppFunction · 0.90
sessionLabelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected