MCPcopy Create free account
hub / github.com/arctic-cli/interface / append

Function append

packages/arctic/src/tool/bash.ts:252–262  ·  view source on GitHub ↗
(chunk: Buffer)

Source from the content-addressed store, hash-verified

250 })
251
252 const append = (chunk: Buffer) => {
253 if (output.length <= MAX_OUTPUT_LENGTH) {
254 output += chunk.toString()
255 ctx.metadata({
256 metadata: {
257 output,
258 description: params.description,
259 },
260 })
261 }
262 }
263
264 proc.stdout?.on("data", append)
265 proc.stderr?.on("data", append)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected