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

Function entryDone

packages/opencode/src/cli/cmd/run/entry.body.ts:137–147  ·  view source on GitHub ↗
(commit: StreamCommit)

Source from the content-addressed store, hash-verified

135}
136
137export function entryDone(commit: StreamCommit): boolean {
138 if (commit.kind === "assistant" || commit.kind === "reasoning") {
139 return commit.phase === "final"
140 }
141
142 if (commit.kind === "tool") {
143 return commit.phase === "final" || (commit.phase === "progress" && commit.toolState === "completed")
144 }
145
146 return true
147}
148
149export function entryCanStream(commit: StreamCommit, body: RunEntryBody): boolean {
150 if (commit.phase !== "progress") {

Callers 2

entry.body.test.tsFile · 0.90
appendMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected