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

Function isPostsBlock

packages/shared/src/features/interests/chat.ts:38–39  ·  view source on GitHub ↗
(block: AgentBlock)

Source from the content-addressed store, hash-verified

36// Blocks that carry posts. A type guard rather than "not text", so a new block
37// type is excluded by default instead of crashing whatever reads `.posts`.
38export const isPostsBlock = (block: AgentBlock): block is AgentPostsBlock =>
39 block.type === 'posts' || block.type === 'picks' || block.type === 'feedLink';
40
41export type AgentMessage = {
42 id: string;

Callers 3

transcriptPostsFunction · 0.90
messageAsMarkdownFunction · 0.90
messageAsHtmlFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected