(container, data)
| 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"); |