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

Function take

packages/opencode/test/cli/run/scrollback.surface.test.ts:544–551  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

542 try {
543 const lines: string[] = []
544 const take = () => {
545 const commits = claim(out.renderer)
546 try {
547 lines.push(...commits.flatMap((commit) => renderRows(commit).flatMap((row) => row.split("\n"))))
548 } finally {
549 destroy(commits)
550 }
551 }
552
553 await out.scrollback.append(user("Hello you"))
554 take()

Callers 1

Calls 5

renderRowsFunction · 0.85
pushMethod · 0.80
claimFunction · 0.70
destroyFunction · 0.70
checkFunction · 0.50

Tested by

no test coverage detected