MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / sendError

Function sendError

crates/opencode-plugin/host/plugin-host.ts:158–160  ·  view source on GitHub ↗
(id: number, code: number, message: string)

Source from the content-addressed store, hash-verified

156}
157
158function sendError(id: number, code: number, message: string): void {
159 send({ jsonrpc: "2.0", id, error: { code, message } });
160}
161
162// ---------------------------------------------------------------------------
163// Plugin state

Callers 8

handleInitializeFunction · 0.85
handleHookInvokeFunction · 0.85
handleAuthAuthorizeFunction · 0.85
handleAuthCallbackFunction · 0.85
handleAuthLoadFunction · 0.85
handleAuthFetchFunction · 0.85
handleAuthFetchStreamFunction · 0.85
mainFunction · 0.85

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected