MCPcopy Create free account
hub / github.com/codeaholicguy/ai-devkit / truncate

Function truncate

packages/cli/src/util/text.ts:6–24  ·  view source on GitHub ↗
(
  text: string,
  maxLength: number,
  replaceText: string = "...",
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

formatFirstMessageFunction · 0.70
registerMemoryCommandFunction · 0.50
registerSkillCommandFunction · 0.50
text.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected