MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / push

Function push

packages/core/sdk/src/artifact-preview.ts:480–485  ·  view source on GitHub ↗
(chunk: string)

Source from the content-addressed store, hash-verified

478 let size = 0;
479
480 const push = (chunk: string): boolean => {
481 size += chunk.length;
482 if (size > ARTIFACT_PREVIEW_MARKUP_LIMIT) return false;
483 output.push(chunk);
484 return true;
485 };
486
487 while (index < markup.length) {
488 const next = markup.indexOf("<", index);

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected