MCPcopy Create free account
hub / github.com/ConardLi/easy-agent / appendTaskOutput

Function appendTaskOutput

src/utils/taskOutput.ts:112–125  ·  view source on GitHub ↗
(
  filePath: string,
  event: TaskOutputEvent,
)

Source from the content-addressed store, hash-verified

110 // Intentional — see file header.
111 }
112}
113
114/** Truncate long tool results before storing them in the .output file. */
115export function previewToolResult(content: string, max = 2000): string {
116 if (content.length <= max) return content;
117 return `${content.slice(0, max)}\n... [truncated ${content.length - max} chars]`;
118}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected