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

Function streamEffectPortable

packages/httpapi-codegen/src/index.ts:1002–1010  ·  view source on GitHub ↗
(schema: Schema.Top)

Source from the content-addressed store, hash-verified

1000}
1001
1002function streamEffectPortable(schema: Schema.Top) {
1003 if (!isStreamSchema(schema) || schema._tag === "StreamUint8Array" || schema.sseMode === "events") return true
1004 const rebuilt = HttpApiSchema.StreamSse({
1005 data: streamDataSchema(schema),
1006 error: schema.error,
1007 contentType: schema.contentType,
1008 })
1009 return sameEncoding(schema.events.ast, rebuilt.events.ast)
1010}
1011
1012function renderGroup(group: Group, groupIndex: number) {
1013 const slots: Array<Slot> = []

Callers 1

onEndpointFunction · 0.85

Calls 3

isStreamSchemaFunction · 0.85
streamDataSchemaFunction · 0.85
sameEncodingFunction · 0.85

Tested by

no test coverage detected