MCPcopy Create free account
hub / github.com/apache/maka / boundedDisplay

Function boundedDisplay

packages/core/src/computer-use.ts:860–862  ·  view source on GitHub ↗
(value: string, maxLength: number)

Source from the content-addressed store, hash-verified

858}
859
860function boundedDisplay(value: string, maxLength: number): string {
861 return value.replace(/\s+/g, ' ').trim().slice(0, maxLength);
862}
863
864function stableIdentifier(value: string): string | undefined {
865 const normalized = value.trim();

Callers 3

projectStepsFunction · 0.85
computerUseModelCallArgsFunction · 0.85

Calls 2

replaceMethod · 0.80
trimMethod · 0.45

Tested by

no test coverage detected