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

Function lastReply

packages/infra/src/ClusterCosmos.ts:394–400  ·  view source on GitHub ↗
(replyId: string | null)

Source from the content-addressed store, hash-verified

392 )
393
394 const lastReply = (replyId: string | null) =>
395 replyId === null
396 ? Effect.succeed(Option.none<Reply.Encoded>())
397 : queryReplies("SELECT * FROM c WHERE c.type = 'reply' AND c.rowid = @id", [{ name: "@id", value: replyId }])
398 .pipe(
399 Effect.map((docs) => Option.map(Option.fromNullishOr(docs[0]), replyFromDoc))
400 )
401
402 const markReplyAcked = (requestId: string, replyId: string) =>
403 Effect

Callers 1

ClusterCosmos.tsFile · 0.85

Calls 4

queryRepliesFunction · 0.85
pipeMethod · 0.65
mapMethod · 0.65
succeedMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…