MCPcopy Index your code
hub / github.com/anomalyco/opencode / renderRows

Function renderRows

packages/opencode/test/cli/run/scrollback.surface.test.ts:49–54  ·  view source on GitHub ↗
(commit: ClaimedCommit, width = 80)

Source from the content-addressed store, hash-verified

47}
48
49function renderRows(commit: ClaimedCommit, width = 80) {
50 const raw = decoder.decode(commit.snapshot.getRealCharBytes(true))
51 return Array.from({ length: commit.snapshot.height }, (_, index) =>
52 raw.slice(index * width, (index + 1) * width).trimEnd(),
53 )
54}
55
56function destroy(commits: ClaimedCommit[]) {
57 for (const commit of commits) {

Callers 2

takeFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected