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

Function request

packages/tui/src/context/editor.ts:167–171  ·  view source on GitHub ↗
(method: string, params?: unknown)

Source from the content-addressed store, hash-verified

165 }
166
167 const request = (method: string, params?: unknown) => {
168 requestID += 1
169 pending.set(requestID, method)
170 send({ id: requestID, method, params })
171 }
172
173 const connect = () => {
174 if (closed) return

Callers 1

connectFunction · 0.70

Calls 2

sendFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected