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

Function entrySyntax

packages/opencode/src/cli/cmd/run/scrollback.shared.ts:9–15  ·  view source on GitHub ↗
(commit: StreamCommit, theme: RunTheme)

Source from the content-addressed store, hash-verified

7}
8
9export function entrySyntax(commit: StreamCommit, theme: RunTheme): SyntaxStyle {
10 if (commit.kind === "reasoning") {
11 return syntax(theme.block.subtleSyntax ?? theme.block.syntax)
12 }
13
14 return syntax(theme.block.syntax)
15}
16
17export function entryFailed(commit: StreamCommit): boolean {
18 return commit.kind === "tool" && (commit.toolState === "error" || commit.part?.state.status === "error")

Callers 3

RunEntryContentFunction · 0.90
setThemeMethod · 0.90
createEntryMethod · 0.90

Calls 1

syntaxFunction · 0.85

Tested by

no test coverage detected