MCPcopy
hub / github.com/Waishnav/devspace / formatHeadTail

Function formatHeadTail

src/process-sessions.ts:131–134  ·  view source on GitHub ↗
(head: string, tail: string, omittedCharacters: number)

Source from the content-addressed store, hash-verified

129}
130
131function formatHeadTail(head: string, tail: string, omittedCharacters: number): string {
132 if (omittedCharacters <= 0) return head + tail;
133 return `${head}\n... output truncated (${omittedCharacters} characters omitted) ...\n${tail}`;
134}
135
136export class HeadTailBuffer {
137 private head = "";

Callers 1

drainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected