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

Function error

packages/opencode/test/cli/run/scrollback.surface.test.ts:213–220  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

211}
212
213function error(text: string): StreamCommit {
214 return {
215 kind: "error",
216 text,
217 phase: "start",
218 source: "system",
219 }
220}
221
222function toolPart(tool: string, state: Record<string, unknown>, id: string, messageID: string): ToolPart {
223 return {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected