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

Function annotateItem

packages/infra/src/Store/Cosmos.ts:77–86  ·  view source on GitHub ↗
(resp: {
  requestCharge?: number
  statusCode?: number
  diagnostics?: { clientSideRequestStatistics?: { totalResponsePayloadLengthInBytes?: number } }
})

Source from the content-addressed store, hash-verified

75 })
76
77const annotateItem = (resp: {
78 requestCharge?: number
79 statusCode?: number
80 diagnostics?: { clientSideRequestStatistics?: { totalResponsePayloadLengthInBytes?: number } }
81}) =>
82 annotateCosmosResponse({
83 requestCharge: resp.requestCharge,
84 statusCode: resp.statusCode,
85 responseBytes: respBytes(resp)
86 })
87
88const makeCosmosStore = Effect.fnUntraced(function*({ prefix }: StorageConfig) {
89 const { db } = yield* CosmosClient

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…