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

Function parseMessage

packages/tui/src/context/editor.ts:400–408  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

398}
399
400function parseMessage(value: unknown) {
401 if (typeof value !== "string") return
402
403 try {
404 return Option.getOrUndefined(decodeJsonRpcMessage(JSON.parse(value)))
405 } catch {
406 return
407 }
408}

Callers 1

connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected