MCPcopy Create free account
hub / github.com/dailydotdev/apps / transcriptPosts

Function transcriptPosts

packages/shared/src/features/interests/attachments.ts:105–111  ·  view source on GitHub ↗
(messages: AgentMessage[])

Source from the content-addressed store, hash-verified

103};
104
105const transcriptPosts = (messages: AgentMessage[]): Post[] =>
106 messages
107 // Newest first, so deduping downstream keeps the most recent copy.
108 .slice()
109 .reverse()
110 .flatMap(({ blocks }) => blocks ?? [])
111 .flatMap((block) => (isPostsBlock(block) ? block.posts : []));
112
113export const mentionCandidates = ({
114 openContent,

Callers 1

mentionCandidatesFunction · 0.85

Calls 1

isPostsBlockFunction · 0.90

Tested by

no test coverage detected