MCPcopy Index your code
hub / github.com/Waishnav/devspace / textSummary

Function textSummary

src/server.ts:318–327  ·  view source on GitHub ↗
(content: ToolContent[])

Source from the content-addressed store, hash-verified

316}
317
318function textSummary(content: ToolContent[]): {
319 lines: number;
320 characters: number;
321} {
322 const text = contentText(content);
323 return {
324 lines: text.length === 0 ? 0 : text.split("\n").length,
325 characters: text.length,
326 };
327}
328
329function contentLineCount(content: string): number {
330 if (content.length === 0) return 0;

Callers 2

processToolResponseFunction · 0.85
createMcpServerFunction · 0.85

Calls 1

contentTextFunction · 0.85

Tested by

no test coverage detected