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

Function json

packages/opencode/test/config/config.test.ts:49–56  ·  view source on GitHub ↗
(request: Parameters<typeof HttpClientResponse.fromWeb>[0], body: unknown, status = 200)

Source from the content-addressed store, hash-verified

47)
48
49const json = (request: Parameters<typeof HttpClientResponse.fromWeb>[0], body: unknown, status = 200) =>
50 HttpClientResponse.fromWeb(
51 request,
52 new Response(JSON.stringify(body), {
53 status,
54 headers: { "content-type": "application/json" },
55 }),
56 )
57
58const wellKnownAuth = (url: string) =>
59 Layer.mock(Auth.Service)({

Callers 1

remoteConfigClientFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected