MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / sendResult

Function sendResult

crates/opencode-plugin/host/plugin-host.ts:154–156  ·  view source on GitHub ↗
(id: number, result: unknown)

Source from the content-addressed store, hash-verified

152}
153
154function sendResult(id: number, result: unknown): void {
155 send({ jsonrpc: "2.0", id, result });
156}
157
158function sendError(id: number, code: number, message: string): void {
159 send({ jsonrpc: "2.0", id, error: { code, message } });

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