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

Function capture

packages/opencode/test/server/httpapi-sdk.test.ts:115–123  ·  view source on GitHub ↗
(request: () => Promise<SdkResult>)

Source from the content-addressed store, hash-verified

113}
114
115function capture(request: () => Promise<SdkResult>) {
116 return call(request).pipe(
117 Effect.map((result) => ({
118 status: result.response.status,
119 data: result.data,
120 error: result.error,
121 })),
122 )
123}
124
125function captureThrown(request: () => Promise<unknown>) {
126 return call(async () => {

Callers 2

replyFunction · 0.50

Calls 1

callFunction · 0.70

Tested by

no test coverage detected