MCPcopy Create free account
hub / github.com/anomalyco/opencode / entryWriter

Function entryWriter

packages/opencode/src/cli/cmd/run/scrollback.writer.tsx:302–320  ·  view source on GitHub ↗
(input: {
  commit: StreamCommit
  body?: RunEntryBody
  theme?: RunTheme
  opts?: ScrollbackOptions
})

Source from the content-addressed store, hash-verified

300}
301
302export function entryWriter(input: {
303 commit: StreamCommit
304 body?: RunEntryBody
305 theme?: RunTheme
306 opts?: ScrollbackOptions
307}): ScrollbackWriter {
308 return createScrollbackWriter(
309 (ctx) => (
310 <RunEntryContent
311 commit={input.commit}
312 body={input.body}
313 theme={input.theme}
314 opts={{ ...input.opts, suppressBackgrounds: true }}
315 width={ctx.width}
316 />
317 ),
318 entryFlags(input.commit),
319 )
320}
321
322export function spacerWriter(): ScrollbackWriter {
323 return (ctx: ScrollbackRenderContext) => ({

Callers 1

appendMethod · 0.90

Calls 1

entryFlagsFunction · 0.90

Tested by

no test coverage detected