MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / preview

Function preview

packages/core/src/context-prune.ts:105–108  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

103}
104
105function preview(text: string): string {
106 const firstLine = text.split('\n')[0] ?? '';
107 return firstLine.slice(0, 80);
108}
109
110function stubText(text: string, label: string): string {
111 return `[${label} — ${text.length}B, head: "${preview(text)}"]`;

Callers 2

stubTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected