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

Function Endpoint2_0

packages/client/src/generated-effect/client.ts:30–31  ·  view source on GitHub ↗
(raw: RawClient["server.agent"])

Source from the content-addressed store, hash-verified

28type Endpoint2_0Request = Parameters<RawClient["server.agent"]["agent.list"]>[0]
29type Endpoint2_0Input = { readonly location?: Endpoint2_0Request["query"]["location"] }
30const Endpoint2_0 = (raw: RawClient["server.agent"]) => (input?: Endpoint2_0Input) =>
31 raw["agent.list"]({ query: { location: input?.["location"] } }).pipe(Effect.mapError(mapClientError))
32
33const adaptGroup2 = (raw: RawClient["server.agent"]) => ({ list: Endpoint2_0(raw) })
34

Callers 1

adaptGroup2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected