MCPcopy Create free account
hub / github.com/cursor/plugins / truncate

Function truncate

orchestrate/skills/orchestrate/scripts/core/andon.ts:245–247  ·  view source on GitHub ↗
(s: string, n: number)

Source from the content-addressed store, hash-verified

243}
244
245function truncate(s: string, n: number): string {
246 return s.length > n ? `${s.slice(0, n)}…` : s;
247}
248
249function errorMessage(err: unknown): string {
250 return err instanceof Error ? err.message : String(err);

Callers 2

drainEventsMethod · 0.70
syncFromCachedStateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected