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

Function api

packages/httpapi-codegen/test/generate.test.ts:19–21  ·  view source on GitHub ↗
(endpoint: HttpApiEndpoint.Any)

Source from the content-addressed store, hash-verified

17import { Api as FixtureApi, Missing } from "./fixture"
18
19function api(endpoint: HttpApiEndpoint.Any) {
20 return HttpApi.make("test").add(HttpApiGroup.make("session").add(endpoint))
21}
22
23function compile<Id extends string, Groups extends HttpApiGroup.Any>(source: HttpApi.HttpApi<Id, Groups>) {
24 return emitEffect(compileContract(source))

Callers 1

generate.test.tsFile · 0.70

Calls 2

addMethod · 0.65
makeMethod · 0.45

Tested by

no test coverage detected