MCPcopy Create free account
hub / github.com/anomalyco/opencode / live

Function live

packages/opencode/test/account/service.test.ts:38–39  ·  view source on GitHub ↗
(client: HttpClient.HttpClient)

Source from the content-addressed store, hash-verified

36const outsideEagerRefreshWindow = Duration.toMillis(Duration.minutes(10))
37
38const live = (client: HttpClient.HttpClient) =>
39 LayerNode.compile(Account.node, [[httpClient, Layer.succeed(HttpClient.HttpClient, client)]])
40
41const json = (req: Parameters<typeof HttpClientResponse.fromWeb>[0], body: unknown, status = 200) =>
42 HttpClientResponse.fromWeb(

Callers 2

pollFunction · 0.70
service.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected