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

Function emitEffect

packages/httpapi-codegen/src/index.ts:215–223  ·  view source on GitHub ↗
(contract: Contract)

Source from the content-addressed store, hash-verified

213}
214
215export function emitEffect(contract: Contract): Output {
216 const endpoint = contract.groups.flatMap((group) => group.endpoints).find((endpoint) => !endpoint.effectPortable)
217 if (endpoint !== undefined) {
218 throw new GenerationError({
219 reason: `Effect schema requires authoritative import: ${endpoint.group}.${endpoint.endpoint.name}`,
220 })
221 }
222 return { operations: operations(contract.groups), files: renderEffectFiles(contract.groups) }
223}
224
225export function emitEffectImported(
226 contract: Contract,

Callers 3

compileFunction · 0.90
generate.test.tsFile · 0.90
generateFunction · 0.85

Calls 3

operationsFunction · 0.85
renderEffectFilesFunction · 0.85
findMethod · 0.65

Tested by 1

compileFunction · 0.72