MCPcopy
hub / github.com/ResearAI/AutoFigure-Edit / appendLogLine

Function appendLogLine

web/app.js:1965–1974  ·  view source on GitHub ↗
(container, data)

Source from the content-addressed store, hash-verified

1963 }
1964
1965 function appendLogLine(container, data) {
1966 const line = `[${data.stream}] ${data.line}`;
1967 const lines = container.textContent.split("\n").filter(Boolean);
1968 lines.push(line);
1969 if (lines.length > 200) {
1970 lines.splice(0, lines.length - 200);
1971 }
1972 container.textContent = lines.join("\n");
1973 container.scrollTop = container.scrollHeight;
1974 }
1975
1976 function addArtifactCard(container, data) {
1977 const card = document.createElement("a");

Callers 1

initCanvasPageFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected