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

Function requestLayer

packages/opencode/test/share/share-next.test.ts:36–39  ·  view source on GitHub ↗
(client: HttpClient.HttpClient)

Source from the content-addressed store, hash-verified

34const none = HttpClient.make(() => Effect.die("unexpected http call"))
35
36function requestLayer(client: HttpClient.HttpClient) {
37 const replacement = [httpClient, Layer.succeed(HttpClient.HttpClient, client)] as const
38 return LayerNode.compile(LayerNode.group([ShareNext.node, AccountRepo.node]), [replacement])
39}
40
41function integrationLayer(client: HttpClient.HttpClient) {
42 const replacement = [httpClient, Layer.succeed(HttpClient.HttpClient, client)] as const

Callers 1

share-next.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected