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

Function response

packages/app/src/context/server-session.test.ts:43–46  ·  view source on GitHub ↗
(data: MessageResponse["data"] = [], cursor?: string)

Source from the content-addressed store, hash-verified

41})
42
43const response = (data: MessageResponse["data"] = [], cursor?: string): MessageResponse => ({
44 data,
45 response: { headers: new Headers(cursor ? { "x-next-cursor": cursor } : undefined) },
46})
47
48const deferredResponse = () => Promise.withResolvers<MessageResponse>()
49

Callers 2

setupFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected