MCPcopy Create free account
hub / github.com/effect-app/libs / annotateFeed

Function annotateFeed

packages/infra/src/Store/Cosmos.ts:66–75  ·  view source on GitHub ↗
(resp: {
  resources: readonly unknown[]
  requestCharge?: number
  diagnostics?: { clientSideRequestStatistics?: { totalResponsePayloadLengthInBytes?: number } }
})

Source from the content-addressed store, hash-verified

64) => resp.diagnostics?.clientSideRequestStatistics?.totalResponsePayloadLengthInBytes ?? 0
65
66const annotateFeed = (resp: {
67 resources: readonly unknown[]
68 requestCharge?: number
69 diagnostics?: { clientSideRequestStatistics?: { totalResponsePayloadLengthInBytes?: number } }
70}) =>
71 annotateCosmosResponse({
72 requestCharge: resp.requestCharge,
73 returnedRows: resp.resources.length,
74 responseBytes: respBytes(resp)
75 })
76
77const annotateItem = (resp: {
78 requestCharge?: number

Callers 1

Cosmos.tsFile · 0.70

Calls 2

annotateCosmosResponseFunction · 0.90
respBytesFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…